@nebula.js/sn-pivot-table 3.8.2 → 3.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.8.2
2
+ * @nebula.js/sn-pivot-table v3.8.3
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,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},k=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||_(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&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(A(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=ke;function 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 Pe={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _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 Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===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=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===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)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const 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])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),M(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_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=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],f=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?f:p}var h=Object.prototype.hasOwnProperty,g=Object.prototype.toString,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)},x=function(e){if(!e||"[object Object]"!==g.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},S=function(e,t){v&&"__proto__"===t.name?v(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(b)return b(e,t).value}return e[t]};function C(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function R(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=E(l,n),l!==(o=E(t,n))&&(c&&o&&(x(o)||(i=y(o)))?(i?(i=!1,a=r&&y(r)?r:[]):a=r&&x(r)?r:{},S(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&S(l,{name:n,newValue:o}));return l}));var L=1/.7,k="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),A=new RegExp(`^rgb\\(${M},${M},${M}\\)$`),D=new RegExp(`^rgba\\(${k},${k},${k},${I}\\)$`),T=new RegExp(`^rgba\\(${M},${M},${M},${I}\\)$`),O=new RegExp(`^hsl\\(${I},${M},${M}\\)$`),N=new RegExp(`^hsla\\(${I},${M},${M},${I}\\)$`),q={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function F(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function j(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new G(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?B(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?B(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=P.exec(e))?new G(t[1],t[2],t[3],1):(t=A.exec(e))?new G(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?B(t[1],t[2],t[3],t[4]):(t=T.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?$(q[e]):"transparent"===e?new G(NaN,NaN,NaN,0):null}function $(e){return new G(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new G(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new G((e=e.rgb()).r,e.g,e.b,e.opacity):new G}function W(e,t,n,r){return 1===arguments.length?H(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function V(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function U(){const e=Y(this.opacity);return`${1===e?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===e?")":`, ${e})`}`}function Y(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=K(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function J(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof R||(e=j(e)),!e)return new Z;if(e instanceof Z)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Z(a,l,s,e.opacity)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ee(e){return(e=(e||0)%360)<0?e+360:e}function te(e){return Math.max(0,Math.min(1,e||0))}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(R,j,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:z,toString:z}),C(G,W,w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new G(K(this.r),K(this.g),K(this.b),Y(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),C(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new G(ne(e>=240?e-240:e+120,o,r),ne(e,o,r),ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Z(ee(this.h),te(this.s),te(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Y(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===e?")":`, ${e})`}`}}));const re=Math.PI/180,oe=180/Math.PI,ie=4/29,ae=6/29,le=3*ae*ae;function se(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof me)return he(e);e instanceof G||(e=H(e));var t,n,r=fe(e.r),o=fe(e.g),i=fe(e.b),a=ce((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ce((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ce((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ue(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>.008856451679035631?Math.pow(e,1/3):e/le+ie}function de(e){return e>ae?e*e*e:le*(e-ie)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function me(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function he(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*re;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}C(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new ue(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new G(pe(3.1338561*(t=.96422*de(t))-1.6168667*(e=1*de(e))-.4906146*(n=.82521*de(n))),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(me,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof me)return new me(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new me(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new me(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new me(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new me(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new me(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return he(this).rgb()}}));var ge=e=>()=>e;function ve(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ge(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ve:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ge(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=W(e)).r,(t=W(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var be="center",ye="bottom";[{key:"NoDataExist",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:be,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:be},{key:"DataRangeIncludingZero",alignment:ye},{key:"LimitedData",alignment:ye},{key:"NegativeOrZeroValues",alignment:ye}].reduce((function(e,t){return e[t.key]=t,e}),{});var xe,Se=["__proto__","constructor"];function Ee(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Se.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function we(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Re(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ke)):void 0===t&&(t=Le);for(var n,r,o,i,a,l=new _e(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 _e(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Me)}function Le(e){return e.children}function ke(e){return Array.isArray(e)?e[1]:null}function Ie(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Me(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _e(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pe(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}_e.prototype=Re.prototype={constructor:_e,count:function(){return this.eachAfter(we)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Re(this).eachBefore(Ie)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xe=function(e){
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:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},k=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=I(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||_(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):M(i)&&M(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&I(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,o))return r;if(!I(t[0])&&I(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(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=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){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",Le="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Me=ke;function Ie(e){return Ie="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},Ie(e)}var _e={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Me.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 Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Ie(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(n++,"object"!==Ie(_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"===Ie(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;Me.isValid(n)||Me.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(l++,"object"!==Ie(_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"===Ie(e)&&!e.disabled&&!_e[e.type]}))}(e)?Me.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:!Me.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"===Ie(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"!==Ie(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"===Ie(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)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(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 I=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])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var 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)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),I(g,t,r),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Ie,arrayName:Me,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_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=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],f=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?f:p}var h=Object.prototype.hasOwnProperty,g=Object.prototype.toString,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)},x=function(e){if(!e||"[object Object]"!==g.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},S=function(e,t){v&&"__proto__"===t.name?v(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(b)return b(e,t).value}return e[t]};function C(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function R(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=E(l,n),l!==(o=E(t,n))&&(c&&o&&(x(o)||(i=y(o)))?(i?(i=!1,a=r&&y(r)?r:[]):a=r&&x(r)?r:{},S(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&S(l,{name:n,newValue:o}));return l}));var L=1/.7,k="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),A=new RegExp(`^rgb\\(${I},${I},${I}\\)$`),D=new RegExp(`^rgba\\(${k},${k},${k},${M}\\)$`),T=new RegExp(`^rgba\\(${I},${I},${I},${M}\\)$`),O=new RegExp(`^hsl\\(${M},${I},${I}\\)$`),N=new RegExp(`^hsla\\(${M},${I},${I},${M}\\)$`),q={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function F(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function j(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new G(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?B(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?B(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=P.exec(e))?new G(t[1],t[2],t[3],1):(t=A.exec(e))?new G(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?B(t[1],t[2],t[3],t[4]):(t=T.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?$(q[e]):"transparent"===e?new G(NaN,NaN,NaN,0):null}function $(e){return new G(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new G(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new G((e=e.rgb()).r,e.g,e.b,e.opacity):new G}function W(e,t,n,r){return 1===arguments.length?H(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function V(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function U(){const e=Y(this.opacity);return`${1===e?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===e?")":`, ${e})`}`}function Y(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=K(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function J(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof R||(e=j(e)),!e)return new Z;if(e instanceof Z)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Z(a,l,s,e.opacity)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ee(e){return(e=(e||0)%360)<0?e+360:e}function te(e){return Math.max(0,Math.min(1,e||0))}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(R,j,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:z,toString:z}),C(G,W,w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new G(K(this.r),K(this.g),K(this.b),Y(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),C(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new G(ne(e>=240?e-240:e+120,o,r),ne(e,o,r),ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Z(ee(this.h),te(this.s),te(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Y(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===e?")":`, ${e})`}`}}));const re=Math.PI/180,oe=180/Math.PI,ie=4/29,ae=6/29,le=3*ae*ae;function se(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof me)return he(e);e instanceof G||(e=H(e));var t,n,r=fe(e.r),o=fe(e.g),i=fe(e.b),a=ce((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ce((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ce((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ue(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>.008856451679035631?Math.pow(e,1/3):e/le+ie}function de(e){return e>ae?e*e*e:le*(e-ie)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function me(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function he(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*re;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}C(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new ue(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new G(pe(3.1338561*(t=.96422*de(t))-1.6168667*(e=1*de(e))-.4906146*(n=.82521*de(n))),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(me,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof me)return new me(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new me(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new me(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new me(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new me(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new me(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return he(this).rgb()}}));var ge=e=>()=>e;function ve(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ge(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ve:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ge(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=W(e)).r,(t=W(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var be="center",ye="bottom";[{key:"NoDataExist",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:be,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:be},{key:"DataRangeIncludingZero",alignment:ye},{key:"LimitedData",alignment:ye},{key:"NegativeOrZeroValues",alignment:ye}].reduce((function(e,t){return e[t.key]=t,e}),{});var xe,Se=["__proto__","constructor"];function Ee(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Se.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function we(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Re(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ke)):void 0===t&&(t=Le);for(var n,r,o,i,a,l=new _e(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 _e(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ie)}function Le(e){return e.children}function ke(e){return Array.isArray(e)?e[1]:null}function Me(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ie(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _e(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pe(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}_e.prototype=Re.prototype={constructor:_e,count:function(){return this.eachAfter(we)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Re(this).eachBefore(Me)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xe=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},It=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),Mt=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,_t=(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:Mt(o,n),borderBottom:Mt(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=_t(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Mt(2,o)),n||(a.borderLeft=Mt(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=Mt(1,n)),t&&(r.borderRight=Mt(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(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)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(null,arguments)}var Qt={exports:{}};function Jt(){}function Zt(){}Zt.resetWarningCache=Jt;Qt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Zt,resetWarningCache:Jt};return n.PropTypes=n,n}();var en=n(Qt.exports);function tn(e){if(e.type)return e;if("#"===e.charAt(0))return tn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function nn(e,t){return e=tn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function rn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}var ln={exports:{}},sn={},un=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),pn=Symbol.for("react.strict_mode"),fn=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),gn=Symbol.for("react.forward_ref"),vn=Symbol.for("react.suspense"),bn=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),xn=Symbol.iterator;var Sn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},En=Object.assign,Cn={};function wn(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}function Rn(){}function Ln(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}wn.prototype.isReactComponent={},wn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Rn.prototype=wn.prototype;var kn=Ln.prototype=new Rn;kn.constructor=Ln,En(kn,wn.prototype),kn.isPureReactComponent=!0;var In=Array.isArray,Mn=Object.prototype.hasOwnProperty,_n={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function An(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Mn.call(t,r)&&!Pn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:_n.current}}function Dn(e){return"object"==typeof e&&null!==e&&e.$$typeof===un}var Tn=/\/+/g;function On(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Nn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case un:case cn:a=!0}}if(a)return o=o(a=e),e=""===r?"."+On(a,0):r,In(o)?(n="",null!=e&&(n=e.replace(Tn,"$&/")+"/"),Nn(o,t,n,"",(function(e){return e}))):null!=o&&(Dn(o)&&(o=function(e,t){return{$$typeof:un,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Tn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",In(e))for(var l=0;l<e.length;l++){var s=r+On(i=e[l],l);a+=Nn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xn&&e[xn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Nn(i=i.value,t,n,s=r+On(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qn(e,t,n){if(null==e)return e;var r=[],o=0;return Nn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Fn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var zn={current:null},jn={transition:null},$n={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:jn,ReactCurrentOwner:_n};function Bn(){throw Error("act(...) is not supported in production builds of React.")}sn.Children={map:qn,forEach:function(e,t,n){qn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return qn(e,(function(){t++})),t},toArray:function(e){return qn(e,(function(e){return e}))||[]},only:function(e){if(!Dn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sn.Component=wn,sn.Fragment=dn,sn.Profiler=fn,sn.PureComponent=Ln,sn.StrictMode=pn,sn.Suspense=vn,sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$n,sn.act=Bn,sn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=En({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=_n.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Mn.call(t,s)&&!Pn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:un,type:e.type,key:o,ref:i,props:r,_owner:a}},sn.createContext=function(e){return(e={$$typeof:hn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mn,_context:e},e.Consumer=e},sn.createElement=An,sn.createFactory=function(e){var t=An.bind(null,e);return t.type=e,t},sn.createRef=function(){return{current:null}},sn.forwardRef=function(e){return{$$typeof:gn,render:e}},sn.isValidElement=Dn,sn.lazy=function(e){return{$$typeof:yn,_payload:{_status:-1,_result:e},_init:Fn}},sn.memo=function(e,t){return{$$typeof:bn,type:e,compare:void 0===t?null:t}},sn.startTransition=function(e){var t=jn.transition;jn.transition={};try{e()}finally{jn.transition=t}},sn.unstable_act=Bn,sn.useCallback=function(e,t){return zn.current.useCallback(e,t)},sn.useContext=function(e){return zn.current.useContext(e)},sn.useDebugValue=function(){},sn.useDeferredValue=function(e){return zn.current.useDeferredValue(e)},sn.useEffect=function(e,t){return zn.current.useEffect(e,t)},sn.useId=function(){return zn.current.useId()},sn.useImperativeHandle=function(e,t,n){return zn.current.useImperativeHandle(e,t,n)},sn.useInsertionEffect=function(e,t){return zn.current.useInsertionEffect(e,t)},sn.useLayoutEffect=function(e,t){return zn.current.useLayoutEffect(e,t)},sn.useMemo=function(e,t){return zn.current.useMemo(e,t)},sn.useReducer=function(e,t,n){return zn.current.useReducer(e,t,n)},sn.useRef=function(e){return zn.current.useRef(e)},sn.useState=function(e){return zn.current.useState(e)},sn.useSyncExternalStore=function(e,t,n){return zn.current.useSyncExternalStore(e,t,n)},sn.useTransition=function(){return zn.current.useTransition()},sn.version="18.3.1",ln.exports=sn;var Hn=ln.exports,Wn=n(Hn),Gn=t({__proto__:null,default:Wn},[Hn]);const Vn={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Un={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Yn=12,Kn=14,Xn=16,Qn=24,Jn=3,Zn=300,er=400,tr=600,nr=700,rr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(Un.GREYSCALE_0,.05),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var or;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var ar,lr=function(e){return Hn.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}var ur=function(e){return Hn.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ar||(ar=Hn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function cr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),pr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),hr=({className:e})=>Wn.createElement(cr,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var gr={black:"#000",white:"#fff"};var vr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var br={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var yr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var xr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Sr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Er={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Cr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function wr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Rr="$$material";function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ir(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Mr=Object.freeze({__proto__:null,default:Ir}),_r=function(){return _r=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},_r.apply(this,arguments)};function Pr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ar="-ms-",Dr="-moz-",Tr="-webkit-",Or="comm",Nr="rule",qr="decl",Fr="@import",zr="@keyframes",jr="@layer",$r=Math.abs,Br=String.fromCharCode,Hr=Object.assign;function Wr(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Vr(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Yr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function Qr(e){return e.length}function Jr(e,t){return t.push(e),e}function Zr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var eo=1,to=1,no=0,ro=0,oo=0,io="";function ao(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:eo,column:to,length:a,return:"",siblings:l}}function lo(e,t){return Hr(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=lo(e.root,{children:[e]});Jr(e,e.siblings)}function uo(){return oo=ro>0?Yr(io,--ro):0,to--,10===oo&&(to=1,eo--),oo}function co(){return oo=ro<no?Yr(io,ro++):0,to++,10===oo&&(to=1,eo++),oo}function po(){return Yr(io,ro)}function fo(){return ro}function mo(e,t){return Kr(io,e,t)}function ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function go(e){return Wr(mo(ro-1,yo(91===e?e+2:40===e?e+1:e)))}function vo(e){for(;(oo=po())&&oo<33;)co();return ho(e)>2||ho(oo)>3?"":" "}function bo(e,t){for(;--t&&co()&&!(oo<48||oo>102||oo>57&&oo<65||oo>70&&oo<97););return mo(e,fo()+(t<6&&32==po()&&32==co()))}function yo(e){for(;co();)switch(oo){case e:return ro;case 34:case 39:34!==e&&39!==e&&yo(oo);break;case 40:41===e&&yo(e);break;case 92:co()}return ro}function xo(e,t){for(;co()&&e+oo!==57&&(e+oo!==84||47!==po()););return"/*"+mo(t,ro-1)+"*"+Br(47===e?e:co())}function So(e){for(;!ho(po());)co();return mo(e,ro)}function Eo(e){return function(e){return io="",e}(Co("",null,null,null,[""],e=function(e){return eo=to=1,no=Xr(io=e),ro=0,[]}(e),0,[0],e))}function Co(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=co()){case 40:if(108!=m&&58==Yr(C,d-1)){-1!=Ur(C+=Vr(go(b),"&","&\f"),"&\f",$r(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=go(b);break;case 9:case 10:case 13:case 32:C+=vo(m);break;case 92:C+=bo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:Jr(Ro(xo(co(),fo()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Xr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Vr(C,/\f/g,"")),f>0&&Xr(C)-d&&Jr(f>32?Lo(C+";",r,n,d-1,s):Lo(Vr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Jr(E=wo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Co(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Yr(C,3)?100:p){case 100:case 108:case 109:case 115:Co(e,E,E,r&&Jr(wo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Co(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Xr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch(C+=Br(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=go(co())),p=po(),c=d=Xr(y=C+=So(fo())),b++;break;case 45:45===m&&2==Xr(C)&&(h=0)}}return i}function wo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qr(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Kr(e,p+1,p=$r(g=a[h])),x=e;b<m;++b)(x=Wr(g>0?f[b]+" "+y:Vr(y,/&\f/g,f[b])))&&(s[v++]=x);return ao(e,t,n,0===o?Nr:l,s,u,c,d)}function Ro(e,t,n,r){return ao(e,t,n,Or,Br(oo),Kr(e,2,-2),0,r)}function Lo(e,t,n,r,o){return ao(e,t,n,qr,Kr(e,0,r),Kr(e,r+1,-1),r,o)}function ko(e,t,n){switch(function(e,t){return 45^Yr(e,0)?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}(e,t)){case 5103:return Tr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Tr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Dr+e+Ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tr+e+Ar+e+e;case 6165:return Tr+e+Ar+"flex-"+e+e;case 5187:return Tr+e+Vr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return Tr+e+Ar+"flex-item-"+Vr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Ar+"grid-row-"+Vr(e,/flex-|-self/g,""))+e;case 4675:return Tr+e+Ar+"flex-line-pack"+Vr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tr+e+Ar+Vr(e,"shrink","negative")+e;case 5292:return Tr+e+Ar+Vr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Vr(e,"-grow","")+Tr+e+Ar+Vr(e,"grow","positive")+e;case 4554:return Tr+Vr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Vr(Vr(Vr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Vr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Vr(Vr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Ar+"grid-column-align"+Kr(e,t)+e;break;case 2592:case 3360:return Ar+Vr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Ur(e+(n=n[t].value),"span",0)?e:Ar+Vr(e,"-start","")+e+Ar+"grid-row-span:"+(~Ur(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Ar+Vr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Ar+Vr(Vr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vr(e,/(.+)-inline(.+)/,Tr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xr(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(45!==Yr(e,t+4))break;case 102:return Vr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Dr+(108==Yr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?ko(Vr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ar+n+":"+r+l+(o?Ar+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Yr(e,t+6))return Vr(e,":",":"+Tr)+e;break;case 6444:switch(Yr(e,45===Yr(e,14)?18:11)){case 120:return Vr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tr+(45===Yr(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Ar+"$2box$3")+e;case 100:return Vr(e,":",":"+Ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vr(e,"scroll-","scroll-snap-")+e}return e}function Io(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Mo(e,t,n,r){switch(e.type){case jr:if(e.children.length)break;case Fr:case qr:return e.return=e.return||e.value;case Or:return"";case zr:return e.return=e.value+"{"+Io(e.children,r)+"}";case Nr:if(!Xr(e.value=e.props.join(",")))return""}return Xr(n=Io(e.children,r))?e.return=e.value+"{"+n+"}":""}function _o(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qr:return void(e.return=ko(e.value,e.length,n));case zr:return Io([lo(e,{value:Vr(e.value,"@","@"+Tr)})],r);case Nr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(lo(e,{props:[Vr(t,/:(read-\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)});break;case"::placeholder":so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Tr+"input-$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,Ar+"input-$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)})}return""}))}}var Po={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ao="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",To="data-styled-version",Oo="6.1.11",No="/*!sc*/\n",qo="undefined"!=typeof window&&"HTMLElement"in window,Fo=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),zo={},jo=Object.freeze([]),$o=Object.freeze({});function Bo(e,t,n){return void 0===n&&(n=$o),e.theme!==n.theme&&e.theme||t||n.theme}var Ho=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Vo(e){return e.replace(Wo,"-").replace(Go,"")}var Uo=/(a)(d)/gi,Yo=52,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xo(e){var t,n="";for(t=Math.abs(e);t>Yo;t=t/Yo|0)n=Ko(t%Yo)+n;return(Ko(t%Yo)+n).replace(Uo,"$1-$2")}var Qo,Jo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zo=function(e){return Jo(5381,e)};function ei(e){return Xo(Zo(e)>>>0)}function ti(e){return"string"==typeof e&&!0}var ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.memo"):60115,oi=ni?Symbol.for("react.forward_ref"):60112,ii={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ai={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},li={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},si=((Qo={})[oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[ri]=li,Qo);function ui(e){return("type"in(t=e)&&t.type.$$typeof)===ri?li:"$$typeof"in e?si[e.$$typeof]:ii;var t}var ci=Object.defineProperty,di=Object.getOwnPropertyNames,pi=Object.getOwnPropertySymbols,fi=Object.getOwnPropertyDescriptor,mi=Object.getPrototypeOf,hi=Object.prototype;function gi(e,t,n){if("string"!=typeof t){if(hi){var r=mi(t);r&&r!==hi&&gi(e,r,n)}var o=di(t);pi&&(o=o.concat(pi(t)));for(var i=ui(e),a=ui(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ai||n&&n[s]||a&&s in a||i&&s in i)){var u=fi(t,s);try{ci(e,s,u)}catch(e){}}}}return e}function vi(e){return"function"==typeof e}function bi(e){return"object"==typeof e&&"styledComponentId"in e}function yi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Si(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ei(e,t,n){if(void 0===n&&(n=!1),!n&&!Si(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ei(e[r],t[r]);else if(Si(t))for(var r in t)e[r]=Ei(e[r],t[r]);return e}function Ci(e,t){Object.defineProperty(e,"toString",{value:t})}function wi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ri=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(No);return t},e}(),Li=new Map,ki=new Map,Ii=1,Mi=function(e){if(Li.has(e))return Li.get(e);for(;ki.has(Ii);)Ii++;var t=Ii++;return Li.set(e,t),ki.set(t,e),t},_i=function(e,t){Ii=t+1,Li.set(e,t),ki.set(t,e)},Pi="style[".concat(Ao,"][").concat(To,'="').concat(Oo,'"]'),Ai=new RegExp("^".concat(Ao,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ti=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(No),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ai);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(_i(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Oi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ao,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ao,Do),r.setAttribute(To,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ni=function(){function e(e){this.element=Oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),qi=function(){function e(e){this.element=Oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Fi=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),zi=qo,ji={isServer:!qo,useCSSOMInjection:!Fo},$i=function(){function e(e,t,n){void 0===e&&(e=$o),void 0===t&&(t={});var r=this;this.options=_r(_r({},ji),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qo&&zi&&(zi=!1,function(e){for(var t=document.querySelectorAll(Pi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ao)!==Do&&(Ti(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ci(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ki.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Ao,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(No)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Mi(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(_r(_r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Fi(n):t?new Ni(n):new qi(n)}(this.options),new Ri(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Mi(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(Mi(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Mi(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Bi=/&/g,Hi=/^\s*\/\/.*$/gm;function Wi(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Wi(e.children,t)),e}))}var Gi=new $i,Vi=function(e){var t,n,r,o=void 0===e?$o:e,i=o.options,a=void 0===i?$o:i,l=o.plugins,s=void 0===l?jo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Nr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Bi,n).replace(r,u))})),a.prefix&&c.push(_o),c.push(Mo);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Hi,""),u=Eo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Wi(u,a.namespace));var d,p=[];return Io(u,function(e){var t=Qr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||wi(15),Jo(e,t.name)}),5381).toString():"",d}(),Ui=Wn.createContext({shouldForwardProp:void 0,styleSheet:Gi,stylis:Vi});function Yi(){return Hn.useContext(Ui)}Ui.Consumer;var Ki=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Vi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ci(this,(function(){throw wi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Vi),this.name+e.hash},e}(),Xi=function(e){return e>="A"&&e<="Z"};function Qi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Xi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ji=function(e){return null==e||!1===e||""===e},Zi=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ji(i)&&(Array.isArray(i)&&i.isCss||vi(i)?r.push("".concat(Qi(o),":"),i,";"):Si(i)?r.push.apply(r,Pr(Pr(["".concat(o," {")],Zi(i),!1),["}"],!1)):r.push("".concat(Qi(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Po||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ea(e,t,n,r){return Ji(e)?[]:bi(e)?[".".concat(e.styledComponentId)]:vi(e)?!vi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ea(e(t),t,n,r):e instanceof Ki?n?(e.inject(n,r),[e.getName(r)]):[e]:Si(e)?Zi(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map((function(e){return ea(e,t,n,r)}))):[e.toString()];var o}function ta(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!bi(n))return!1}return!0}var na=Zo(Oo),ra=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ta(e),this.componentId=t,this.baseHash=Jo(na,t),this.baseStyle=n,$i.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=yi(r,this.staticRulesId);else{var o=xi(ea(this.rules,e,t,n)),i=Xo(Jo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=yi(r,i),this.staticRulesId=i}else{for(var l=Jo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=xi(ea(c,e,t,n));l=Jo(l,d+u),s+=d}}if(s){var p=Xo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=yi(r,p)}}return r},e}(),oa=Wn.createContext(void 0);oa.Consumer;var ia={};new Set;function aa(e,t,n){var r=bi(e),o=e,i=!ti(e),a=t.attrs,l=void 0===a?jo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Vo(e);ia[n]=(ia[n]||0)+1;var r="".concat(n,"-").concat(ei(Oo+n+ia[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ti(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new ra(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Wn.useContext(oa),c=Yi(),d=e.shouldForwardProp||c.shouldForwardProp,p=Bo(t,u,i)||$o,f=function(e,t,n){for(var r,o=_r(_r({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=vi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?yi(o[l],a[l]):"style"===l?_r(_r({},o[l]),a[l]):a[l]}return t.className&&(o.className=yi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Yi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=yi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ti(m)&&!Ho.has(m)?"class":"className"]=b,h.ref=n,Hn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=Wn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?yi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ei(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ci(y,(function(){return".".concat(y.styledComponentId)})),i&&gi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function la(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var sa=function(e){return Object.assign(e,{isCss:!0})};function ua(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||Si(e))return sa(ea(la(jo,Pr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ea(r):sa(ea(la(r,t)))}function ca(e,t,n){if(void 0===n&&(n=$o),!t)throw wi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ua.apply(void 0,Pr([r],o,!1)))};return r.attrs=function(r){return ca(e,t,_r(_r({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ca(e,t,_r(_r({},n),r))},r}var da=function(e){return ca(aa,e)},pa=da;Ho.forEach((function(e){pa[e]=da(e)}));var fa=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ta(e),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(xi(ea(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&$i.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ma(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xi(ua.apply(void 0,Pr([e],t,!1))),o=ei(r);return new Ki(o,r)}function ha(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}ha.propTypes={children:en.node,injectFirst:en.bool};const ga=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ua.apply(void 0,Pr([e],t,!1)),o="sc-global-".concat(ei(JSON.stringify(r))),i=new fa(r,o),a=function(e){var t=Yi(),n=Wn.useContext(oa),r=Wn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zo,n,o);else{var l=_r(_r({},t),{theme:Bo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wn.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var va=ga;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Mt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),It=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,_t=(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:It(o,n),borderBottom:It(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=_t(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=It(2,o)),n||(a.borderLeft=It(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=It(1,n)),t&&(r.borderRight=It(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(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)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(null,arguments)}var Qt={exports:{}};function Jt(){}function Zt(){}Zt.resetWarningCache=Jt;Qt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Zt,resetWarningCache:Jt};return n.PropTypes=n,n}();var en=n(Qt.exports);function tn(e){if(e.type)return e;if("#"===e.charAt(0))return tn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function nn(e,t){return e=tn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function rn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}var ln={exports:{}},sn={},un=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),pn=Symbol.for("react.strict_mode"),fn=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),gn=Symbol.for("react.forward_ref"),vn=Symbol.for("react.suspense"),bn=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),xn=Symbol.iterator;var Sn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},En=Object.assign,Cn={};function wn(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}function Rn(){}function Ln(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}wn.prototype.isReactComponent={},wn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Rn.prototype=wn.prototype;var kn=Ln.prototype=new Rn;kn.constructor=Ln,En(kn,wn.prototype),kn.isPureReactComponent=!0;var Mn=Array.isArray,In=Object.prototype.hasOwnProperty,_n={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function An(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)In.call(t,r)&&!Pn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:_n.current}}function Dn(e){return"object"==typeof e&&null!==e&&e.$$typeof===un}var Tn=/\/+/g;function On(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Nn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case un:case cn:a=!0}}if(a)return o=o(a=e),e=""===r?"."+On(a,0):r,Mn(o)?(n="",null!=e&&(n=e.replace(Tn,"$&/")+"/"),Nn(o,t,n,"",(function(e){return e}))):null!=o&&(Dn(o)&&(o=function(e,t){return{$$typeof:un,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Tn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Mn(e))for(var l=0;l<e.length;l++){var s=r+On(i=e[l],l);a+=Nn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xn&&e[xn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Nn(i=i.value,t,n,s=r+On(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qn(e,t,n){if(null==e)return e;var r=[],o=0;return Nn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Fn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var zn={current:null},jn={transition:null},$n={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:jn,ReactCurrentOwner:_n};function Bn(){throw Error("act(...) is not supported in production builds of React.")}sn.Children={map:qn,forEach:function(e,t,n){qn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return qn(e,(function(){t++})),t},toArray:function(e){return qn(e,(function(e){return e}))||[]},only:function(e){if(!Dn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sn.Component=wn,sn.Fragment=dn,sn.Profiler=fn,sn.PureComponent=Ln,sn.StrictMode=pn,sn.Suspense=vn,sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$n,sn.act=Bn,sn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=En({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=_n.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)In.call(t,s)&&!Pn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:un,type:e.type,key:o,ref:i,props:r,_owner:a}},sn.createContext=function(e){return(e={$$typeof:hn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mn,_context:e},e.Consumer=e},sn.createElement=An,sn.createFactory=function(e){var t=An.bind(null,e);return t.type=e,t},sn.createRef=function(){return{current:null}},sn.forwardRef=function(e){return{$$typeof:gn,render:e}},sn.isValidElement=Dn,sn.lazy=function(e){return{$$typeof:yn,_payload:{_status:-1,_result:e},_init:Fn}},sn.memo=function(e,t){return{$$typeof:bn,type:e,compare:void 0===t?null:t}},sn.startTransition=function(e){var t=jn.transition;jn.transition={};try{e()}finally{jn.transition=t}},sn.unstable_act=Bn,sn.useCallback=function(e,t){return zn.current.useCallback(e,t)},sn.useContext=function(e){return zn.current.useContext(e)},sn.useDebugValue=function(){},sn.useDeferredValue=function(e){return zn.current.useDeferredValue(e)},sn.useEffect=function(e,t){return zn.current.useEffect(e,t)},sn.useId=function(){return zn.current.useId()},sn.useImperativeHandle=function(e,t,n){return zn.current.useImperativeHandle(e,t,n)},sn.useInsertionEffect=function(e,t){return zn.current.useInsertionEffect(e,t)},sn.useLayoutEffect=function(e,t){return zn.current.useLayoutEffect(e,t)},sn.useMemo=function(e,t){return zn.current.useMemo(e,t)},sn.useReducer=function(e,t,n){return zn.current.useReducer(e,t,n)},sn.useRef=function(e){return zn.current.useRef(e)},sn.useState=function(e){return zn.current.useState(e)},sn.useSyncExternalStore=function(e,t,n){return zn.current.useSyncExternalStore(e,t,n)},sn.useTransition=function(){return zn.current.useTransition()},sn.version="18.3.1",ln.exports=sn;var Hn=ln.exports,Wn=n(Hn),Gn=t({__proto__:null,default:Wn},[Hn]);const Vn={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Un={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Yn=12,Kn=14,Xn=16,Qn=24,Jn=3,Zn=300,er=400,tr=600,nr=700,rr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(Un.GREYSCALE_0,.05),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var or;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var ar,lr=function(e){return Hn.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}var ur=function(e){return Hn.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ar||(ar=Hn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function cr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),pr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),hr=({className:e})=>Wn.createElement(cr,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var gr={black:"#000",white:"#fff"};var vr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var br={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var yr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var xr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Sr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Er={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Cr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function wr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Rr="$$material";function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Mr(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 Ir=Object.freeze({__proto__:null,default:Mr}),_r=function(){return _r=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},_r.apply(this,arguments)};function Pr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ar="-ms-",Dr="-moz-",Tr="-webkit-",Or="comm",Nr="rule",qr="decl",Fr="@import",zr="@keyframes",jr="@layer",$r=Math.abs,Br=String.fromCharCode,Hr=Object.assign;function Wr(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Vr(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Yr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function Qr(e){return e.length}function Jr(e,t){return t.push(e),e}function Zr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var eo=1,to=1,no=0,ro=0,oo=0,io="";function ao(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:eo,column:to,length:a,return:"",siblings:l}}function lo(e,t){return Hr(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=lo(e.root,{children:[e]});Jr(e,e.siblings)}function uo(){return oo=ro>0?Yr(io,--ro):0,to--,10===oo&&(to=1,eo--),oo}function co(){return oo=ro<no?Yr(io,ro++):0,to++,10===oo&&(to=1,eo++),oo}function po(){return Yr(io,ro)}function fo(){return ro}function mo(e,t){return Kr(io,e,t)}function ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function go(e){return Wr(mo(ro-1,yo(91===e?e+2:40===e?e+1:e)))}function vo(e){for(;(oo=po())&&oo<33;)co();return ho(e)>2||ho(oo)>3?"":" "}function bo(e,t){for(;--t&&co()&&!(oo<48||oo>102||oo>57&&oo<65||oo>70&&oo<97););return mo(e,fo()+(t<6&&32==po()&&32==co()))}function yo(e){for(;co();)switch(oo){case e:return ro;case 34:case 39:34!==e&&39!==e&&yo(oo);break;case 40:41===e&&yo(e);break;case 92:co()}return ro}function xo(e,t){for(;co()&&e+oo!==57&&(e+oo!==84||47!==po()););return"/*"+mo(t,ro-1)+"*"+Br(47===e?e:co())}function So(e){for(;!ho(po());)co();return mo(e,ro)}function Eo(e){return function(e){return io="",e}(Co("",null,null,null,[""],e=function(e){return eo=to=1,no=Xr(io=e),ro=0,[]}(e),0,[0],e))}function Co(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=co()){case 40:if(108!=m&&58==Yr(C,d-1)){-1!=Ur(C+=Vr(go(b),"&","&\f"),"&\f",$r(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=go(b);break;case 9:case 10:case 13:case 32:C+=vo(m);break;case 92:C+=bo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:Jr(Ro(xo(co(),fo()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Xr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Vr(C,/\f/g,"")),f>0&&Xr(C)-d&&Jr(f>32?Lo(C+";",r,n,d-1,s):Lo(Vr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Jr(E=wo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Co(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Yr(C,3)?100:p){case 100:case 108:case 109:case 115:Co(e,E,E,r&&Jr(wo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Co(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Xr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch(C+=Br(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=go(co())),p=po(),c=d=Xr(y=C+=So(fo())),b++;break;case 45:45===m&&2==Xr(C)&&(h=0)}}return i}function wo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qr(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Kr(e,p+1,p=$r(g=a[h])),x=e;b<m;++b)(x=Wr(g>0?f[b]+" "+y:Vr(y,/&\f/g,f[b])))&&(s[v++]=x);return ao(e,t,n,0===o?Nr:l,s,u,c,d)}function Ro(e,t,n,r){return ao(e,t,n,Or,Br(oo),Kr(e,2,-2),0,r)}function Lo(e,t,n,r,o){return ao(e,t,n,qr,Kr(e,0,r),Kr(e,r+1,-1),r,o)}function ko(e,t,n){switch(function(e,t){return 45^Yr(e,0)?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}(e,t)){case 5103:return Tr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Tr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Dr+e+Ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tr+e+Ar+e+e;case 6165:return Tr+e+Ar+"flex-"+e+e;case 5187:return Tr+e+Vr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return Tr+e+Ar+"flex-item-"+Vr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Ar+"grid-row-"+Vr(e,/flex-|-self/g,""))+e;case 4675:return Tr+e+Ar+"flex-line-pack"+Vr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tr+e+Ar+Vr(e,"shrink","negative")+e;case 5292:return Tr+e+Ar+Vr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Vr(e,"-grow","")+Tr+e+Ar+Vr(e,"grow","positive")+e;case 4554:return Tr+Vr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Vr(Vr(Vr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Vr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Vr(Vr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Ar+"grid-column-align"+Kr(e,t)+e;break;case 2592:case 3360:return Ar+Vr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Ur(e+(n=n[t].value),"span",0)?e:Ar+Vr(e,"-start","")+e+Ar+"grid-row-span:"+(~Ur(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Ar+Vr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Ar+Vr(Vr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vr(e,/(.+)-inline(.+)/,Tr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xr(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(45!==Yr(e,t+4))break;case 102:return Vr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Dr+(108==Yr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?ko(Vr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ar+n+":"+r+l+(o?Ar+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Yr(e,t+6))return Vr(e,":",":"+Tr)+e;break;case 6444:switch(Yr(e,45===Yr(e,14)?18:11)){case 120:return Vr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tr+(45===Yr(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Ar+"$2box$3")+e;case 100:return Vr(e,":",":"+Ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vr(e,"scroll-","scroll-snap-")+e}return e}function Mo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Io(e,t,n,r){switch(e.type){case jr:if(e.children.length)break;case Fr:case qr:return e.return=e.return||e.value;case Or:return"";case zr:return e.return=e.value+"{"+Mo(e.children,r)+"}";case Nr:if(!Xr(e.value=e.props.join(",")))return""}return Xr(n=Mo(e.children,r))?e.return=e.value+"{"+n+"}":""}function _o(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qr:return void(e.return=ko(e.value,e.length,n));case zr:return Mo([lo(e,{value:Vr(e.value,"@","@"+Tr)})],r);case Nr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(lo(e,{props:[Vr(t,/:(read-\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)});break;case"::placeholder":so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Tr+"input-$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,Ar+"input-$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)})}return""}))}}var Po={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ao="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",To="data-styled-version",Oo="6.1.12",No="/*!sc*/\n",qo="undefined"!=typeof window&&"HTMLElement"in window,Fo=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),zo={},jo=Object.freeze([]),$o=Object.freeze({});function Bo(e,t,n){return void 0===n&&(n=$o),e.theme!==n.theme&&e.theme||t||n.theme}var Ho=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Vo(e){return e.replace(Wo,"-").replace(Go,"")}var Uo=/(a)(d)/gi,Yo=52,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xo(e){var t,n="";for(t=Math.abs(e);t>Yo;t=t/Yo|0)n=Ko(t%Yo)+n;return(Ko(t%Yo)+n).replace(Uo,"$1-$2")}var Qo,Jo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zo=function(e){return Jo(5381,e)};function ei(e){return Xo(Zo(e)>>>0)}function ti(e){return"string"==typeof e&&!0}var ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.memo"):60115,oi=ni?Symbol.for("react.forward_ref"):60112,ii={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ai={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},li={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},si=((Qo={})[oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[ri]=li,Qo);function ui(e){return("type"in(t=e)&&t.type.$$typeof)===ri?li:"$$typeof"in e?si[e.$$typeof]:ii;var t}var ci=Object.defineProperty,di=Object.getOwnPropertyNames,pi=Object.getOwnPropertySymbols,fi=Object.getOwnPropertyDescriptor,mi=Object.getPrototypeOf,hi=Object.prototype;function gi(e,t,n){if("string"!=typeof t){if(hi){var r=mi(t);r&&r!==hi&&gi(e,r,n)}var o=di(t);pi&&(o=o.concat(pi(t)));for(var i=ui(e),a=ui(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ai||n&&n[s]||a&&s in a||i&&s in i)){var u=fi(t,s);try{ci(e,s,u)}catch(e){}}}}return e}function vi(e){return"function"==typeof e}function bi(e){return"object"==typeof e&&"styledComponentId"in e}function yi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Si(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ei(e,t,n){if(void 0===n&&(n=!1),!n&&!Si(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ei(e[r],t[r]);else if(Si(t))for(var r in t)e[r]=Ei(e[r],t[r]);return e}function Ci(e,t){Object.defineProperty(e,"toString",{value:t})}function wi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ri=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(No);return t},e}(),Li=new Map,ki=new Map,Mi=1,Ii=function(e){if(Li.has(e))return Li.get(e);for(;ki.has(Mi);)Mi++;var t=Mi++;return Li.set(e,t),ki.set(t,e),t},_i=function(e,t){Mi=t+1,Li.set(e,t),ki.set(t,e)},Pi="style[".concat(Ao,"][").concat(To,'="').concat(Oo,'"]'),Ai=new RegExp("^".concat(Ao,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ti=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(No),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ai);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(_i(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Oi=function(e){for(var t=document.querySelectorAll(Pi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ao)!==Do&&(Ti(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ni=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ao,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ao,Do),r.setAttribute(To,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},qi=function(){function e(e){this.element=Ni(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Fi=function(){function e(e){this.element=Ni(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}(),zi=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ji=qo,$i={isServer:!qo,useCSSOMInjection:!Fo},Bi=function(){function e(e,t,n){void 0===e&&(e=$o),void 0===t&&(t={});var r=this;this.options=_r(_r({},$i),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qo&&ji&&(ji=!1,Oi(this)),Ci(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ki.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ao,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(No)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Ii(e)},e.prototype.rehydrate=function(){!this.server&&qo&&Oi(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(_r(_r({},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 zi(n):t?new qi(n):new Fi(n)}(this.options),new Ri(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Ii(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(Ii(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ii(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Hi=/&/g,Wi=/^\s*\/\/.*$/gm;function Gi(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=Gi(e.children,t)),e}))}var Vi=new Bi,Ui=function(e){var t,n,r,o=void 0===e?$o:e,i=o.options,a=void 0===i?$o:i,l=o.plugins,s=void 0===l?jo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Nr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Hi,n).replace(r,u))})),a.prefix&&c.push(_o),c.push(Io);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(Wi,""),u=Eo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Gi(u,a.namespace));var d,p=[];return Mo(u,function(e){var t=Qr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||wi(15),Jo(e,t.name)}),5381).toString():"",d}(),Yi=Wn.createContext({shouldForwardProp:void 0,styleSheet:Vi,stylis:Ui});function Ki(){return Hn.useContext(Yi)}Yi.Consumer;var Xi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ui);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ci(this,(function(){throw wi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ui),this.name+e.hash},e}(),Qi=function(e){return e>="A"&&e<="Z"};function Ji(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Qi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Zi=function(e){return null==e||!1===e||""===e},ea=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Zi(i)&&(Array.isArray(i)&&i.isCss||vi(i)?r.push("".concat(Ji(o),":"),i,";"):Si(i)?r.push.apply(r,Pr(Pr(["".concat(o," {")],ea(i),!1),["}"],!1)):r.push("".concat(Ji(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Po||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ta(e,t,n,r){return Zi(e)?[]:bi(e)?[".".concat(e.styledComponentId)]:vi(e)?!vi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ta(e(t),t,n,r):e instanceof Xi?n?(e.inject(n,r),[e.getName(r)]):[e]:Si(e)?ea(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map((function(e){return ta(e,t,n,r)}))):[e.toString()];var o}function na(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!bi(n))return!1}return!0}var ra=Zo(Oo),oa=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&na(e),this.componentId=t,this.baseHash=Jo(ra,t),this.baseStyle=n,Bi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=yi(r,this.staticRulesId);else{var o=xi(ta(this.rules,e,t,n)),i=Xo(Jo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=yi(r,i),this.staticRulesId=i}else{for(var l=Jo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=xi(ta(c,e,t,n));l=Jo(l,d+u),s+=d}}if(s){var p=Xo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=yi(r,p)}}return r},e}(),ia=Wn.createContext(void 0);ia.Consumer;var aa={};new Set;function la(e,t,n){var r=bi(e),o=e,i=!ti(e),a=t.attrs,l=void 0===a?jo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Vo(e);aa[n]=(aa[n]||0)+1;var r="".concat(n,"-").concat(ei(Oo+n+aa[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ti(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new oa(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Wn.useContext(ia),c=Ki(),d=e.shouldForwardProp||c.shouldForwardProp,p=Bo(t,u,i)||$o,f=function(e,t,n){for(var r,o=_r(_r({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=vi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?yi(o[l],a[l]):"style"===l?_r(_r({},o[l]),a[l]):a[l]}return t.className&&(o.className=yi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Ki();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=yi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ti(m)&&!Ho.has(m)?"class":"className"]=b,h.ref=n,Hn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=Wn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?yi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ei(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ci(y,(function(){return".".concat(y.styledComponentId)})),i&&gi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function sa(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 ua=function(e){return Object.assign(e,{isCss:!0})};function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||Si(e))return ua(ta(sa(jo,Pr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ta(r):ua(ta(sa(r,t)))}function da(e,t,n){if(void 0===n&&(n=$o),!t)throw wi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ca.apply(void 0,Pr([r],o,!1)))};return r.attrs=function(r){return da(e,t,_r(_r({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return da(e,t,_r(_r({},n),r))},r}var pa=function(e){return da(la,e)},fa=pa;Ho.forEach((function(e){fa[e]=pa(e)}));var ma=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=na(e),Bi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(xi(ta(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&&Bi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ha(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xi(ca.apply(void 0,Pr([e],t,!1))),o=ei(r);return new Xi(o,r)}function ga(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}ga.propTypes={children:en.node,injectFirst:en.bool};const va=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ca.apply(void 0,Pr([e],t,!1)),o="sc-global-".concat(ei(JSON.stringify(r))),i=new ma(r,o),a=function(e){var t=Ki(),n=Wn.useContext(ia),r=Wn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zo,n,o);else{var l=_r(_r({},t),{theme:Bo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wn.memo(a)}((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 ba=va;
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.0.0-alpha.24
12
12
  *
@@ -14,7 +14,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
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):pa(e),n}ga.propTypes={defaultTheme:en.object,styles:en.oneOfType([en.array,en.string,en.object,en.func])};const ya=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var xa=Object.freeze({__proto__:null,GlobalStyles:va,StyledEngineProvider:ha,ThemeContext:oa,css:ua,default:ba,internal_processStyles:ya,keyframes:ma});function Sa(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 Ea(e){if(!Sa(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ea(e[n])})),t}function Ca(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach((o=>{Sa(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Sa(e[o])?r[o]=Ca(e[o],t[o],n):n.clone?r[o]=Sa(t[o])?Ea(t[o]):t[o]:r[o]=t[o]})),r}var wa,Ra=Object.freeze({__proto__:null,default:Ca,isPlainObject:Sa}),La={exports:{}},ka={},Ia=Symbol.for("react.element"),Ma=Symbol.for("react.portal"),_a=Symbol.for("react.fragment"),Pa=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Da=Symbol.for("react.provider"),Ta=Symbol.for("react.context"),Oa=Symbol.for("react.server_context"),Na=Symbol.for("react.forward_ref"),qa=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),za=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),$a=Symbol.for("react.offscreen");function Ba(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ia:switch(e=e.type){case _a:case Aa:case Pa:case qa:case Fa:return e;default:switch(e=e&&e.$$typeof){case Oa:case Ta:case Na:case ja:case za:case Da:return e;default:return t}}case Ma:return t}}}wa=Symbol.for("react.module.reference"),ka.ContextConsumer=Ta,ka.ContextProvider=Da,ka.Element=Ia,ka.ForwardRef=Na,ka.Fragment=_a,ka.Lazy=ja,ka.Memo=za,ka.Portal=Ma,ka.Profiler=Aa,ka.StrictMode=Pa,ka.Suspense=qa,ka.SuspenseList=Fa,ka.isAsyncMode=function(){return!1},ka.isConcurrentMode=function(){return!1},ka.isContextConsumer=function(e){return Ba(e)===Ta},ka.isContextProvider=function(e){return Ba(e)===Da},ka.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ia},ka.isForwardRef=function(e){return Ba(e)===Na},ka.isFragment=function(e){return Ba(e)===_a},ka.isLazy=function(e){return Ba(e)===ja},ka.isMemo=function(e){return Ba(e)===za},ka.isPortal=function(e){return Ba(e)===Ma},ka.isProfiler=function(e){return Ba(e)===Aa},ka.isStrictMode=function(e){return Ba(e)===Pa},ka.isSuspense=function(e){return Ba(e)===qa},ka.isSuspenseList=function(e){return Ba(e)===Fa},ka.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===_a||e===Aa||e===Pa||e===qa||e===Fa||e===$a||"object"==typeof e&&null!==e&&(e.$$typeof===ja||e.$$typeof===za||e.$$typeof===Da||e.$$typeof===Ta||e.$$typeof===Na||e.$$typeof===wa||void 0!==e.getModuleId)},ka.typeOf=Ba,La.exports=ka;var Ha=La.exports;const Wa=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ga(e){const t=`${e}`.match(Wa);return t&&t[1]||""}function Va(e,t=""){return e.displayName||e.name||Ga(e)||t}function Ua(e,t,n){const r=Va(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ya=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Va(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ha.ForwardRef:return Ua(e,e.render,"ForwardRef");case Ha.Memo:return Ua(e,e.type,"memo");default:return}}},getFunctionName:Ga});function Ka(e){if("string"!=typeof e)throw new Error(Ir(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Xa=Object.freeze({__proto__:null,default:Ka});function Qa(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ja(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Za(e){return e&&e.ownerDocument||document}function el(e){return Za(e).defaultView||window}function tl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var nl="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;function rl(e){const t=Hn.useRef(e);return nl((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function ol(...e){return Hn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{tl(e,t)}))}),e)}const il={};const al=[];let ll=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 sl(){const e=function(e,t){const n=Hn.useRef(il);return n.current===il&&(n.current=e(t)),n}(ll.create).current;var t;return t=e.disposeEffect,Hn.useEffect(t,al),e}let ul=!0,cl=!1;const dl=new ll,pl={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 fl(e){e.metaKey||e.altKey||e.ctrlKey||(ul=!0)}function ml(){ul=!1}function hl(){"hidden"===this.visibilityState&&cl&&(ul=!0)}function gl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ul||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!pl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function vl(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fl,!0),t.addEventListener("mousedown",ml,!0),t.addEventListener("pointerdown",ml,!0),t.addEventListener("touchstart",ml,!0),t.addEventListener("visibilitychange",hl,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(cl=!0,dl.start(100,(()=>{cl=!1})),t.current=!1,!0)},ref:e}}function bl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function yl(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},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]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=yl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function xl(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 Sl=e=>e;var El=(()=>{let e=Sl;return{configure(t){e=t},generate:t=>e(t),reset(){e=Sl}}})();const Cl={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 wl(e,t,n="Mui"){const r=Cl[t];return r?`${n}-${r}`:`${El.generate(e)}-${t}`}function Rl(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=wl(e,t,n)})),r}function Ll(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var kl=Object.freeze({__proto__:null,default:Ll});const Il=["values","unit","step"],Ml=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)=>Xt({},e,{[t.key]:t.val})),{})};var _l={borderRadius:4};function Pl(e,t){return t?Ca(e,t,{clone:!1}):e}const Al={xs:0,sm:600,md:900,lg:1200,xl:1536},Dl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Al[e]}px)`};function Tl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Dl;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Dl;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Al).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ol(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 Nl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ol(e,n)||r,t&&(o=t(o,r,e)),o}function ql(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=Ol(e.theme,r)||{};return Tl(e,i,(e=>{let r=Nl(a,o,e);return e===r&&"string"==typeof e&&(r=Nl(a,o,`${t}${"default"===e?"":Ka(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Fl={m:"margin",p:"padding"},zl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$l=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!jl[e])return[e];e=jl[e]}const[t,n]=e.split(""),r=Fl[t],o=zl[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Bl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wl(e,t,n,r){var o;const i=null!=(o=Ol(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 Gl(e){return Wl(e,"spacing",8)}function Vl(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 Ul(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Vl(t,n),e)),{})}($l(n),r);return Tl(e,e[n],o)}function Yl(e,t){const n=Gl(e.theme);return Object.keys(e).map((r=>Ul(e,t,r,n))).reduce(Pl,{})}function Kl(e){return Yl(e,Bl)}function Xl(e){return Yl(e,Hl)}function Ql(...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]?Pl(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Jl(e){return"number"!=typeof e?e:`${e}px solid`}function Zl(e,t){return ql({prop:e,themeKey:"borders",transform:t})}Kl.propTypes={},Kl.filterProps=Bl,Xl.propTypes={},Xl.filterProps=Hl;const es=Zl("border",Jl),ts=Zl("borderTop",Jl),ns=Zl("borderRight",Jl),rs=Zl("borderBottom",Jl),os=Zl("borderLeft",Jl),is=Zl("borderColor"),as=Zl("borderTopColor"),ls=Zl("borderRightColor"),ss=Zl("borderBottomColor"),us=Zl("borderLeftColor"),cs=Zl("outline",Jl),ds=Zl("outlineColor"),ps=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Vl(t,e)});return Tl(e,e.borderRadius,n)}return null};ps.propTypes={},ps.filterProps=["borderRadius"],Ql(es,ts,ns,rs,os,is,as,ls,ss,us,ps,cs,ds);const fs=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wl(e.theme,"spacing",8),n=e=>({gap:Vl(t,e)});return Tl(e,e.gap,n)}return null};fs.propTypes={},fs.filterProps=["gap"];const ms=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wl(e.theme,"spacing",8),n=e=>({columnGap:Vl(t,e)});return Tl(e,e.columnGap,n)}return null};ms.propTypes={},ms.filterProps=["columnGap"];const hs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wl(e.theme,"spacing",8),n=e=>({rowGap:Vl(t,e)});return Tl(e,e.rowGap,n)}return null};hs.propTypes={},hs.filterProps=["rowGap"];function gs(e,t){return"grey"===t?t:e}Ql(fs,ms,hs,ql({prop:"gridColumn"}),ql({prop:"gridRow"}),ql({prop:"gridAutoFlow"}),ql({prop:"gridAutoColumns"}),ql({prop:"gridAutoRows"}),ql({prop:"gridTemplateColumns"}),ql({prop:"gridTemplateRows"}),ql({prop:"gridTemplateAreas"}),ql({prop:"gridArea"}));function vs(e){return e<=1&&0!==e?100*e+"%":e}Ql(ql({prop:"color",themeKey:"palette",transform:gs}),ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gs}),ql({prop:"backgroundColor",themeKey:"palette",transform:gs}));const bs=ql({prop:"width",transform:vs}),ys=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])||Al[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:vs(t)}};return Tl(e,e.maxWidth,t)}return null};ys.filterProps=["maxWidth"];const xs=ql({prop:"minWidth",transform:vs}),Ss=ql({prop:"height",transform:vs}),Es=ql({prop:"maxHeight",transform:vs}),Cs=ql({prop:"minHeight",transform:vs});ql({prop:"size",cssProperty:"width",transform:vs}),ql({prop:"size",cssProperty:"height",transform:vs});Ql(bs,ys,xs,Ss,Es,Cs,ql({prop:"boxSizing"}));var ws={border:{themeKey:"borders",transform:Jl},borderTop:{themeKey:"borders",transform:Jl},borderRight:{themeKey:"borders",transform:Jl},borderBottom:{themeKey:"borders",transform:Jl},borderLeft:{themeKey:"borders",transform:Jl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Jl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ps},color:{themeKey:"palette",transform:gs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gs},backgroundColor:{themeKey:"palette",transform:gs},p:{style:Xl},pt:{style:Xl},pr:{style:Xl},pb:{style:Xl},pl:{style:Xl},px:{style:Xl},py:{style:Xl},padding:{style:Xl},paddingTop:{style:Xl},paddingRight:{style:Xl},paddingBottom:{style:Xl},paddingLeft:{style:Xl},paddingX:{style:Xl},paddingY:{style:Xl},paddingInline:{style:Xl},paddingInlineStart:{style:Xl},paddingInlineEnd:{style:Xl},paddingBlock:{style:Xl},paddingBlockStart:{style:Xl},paddingBlockEnd:{style:Xl},m:{style:Kl},mt:{style:Kl},mr:{style:Kl},mb:{style:Kl},ml:{style:Kl},mx:{style:Kl},my:{style:Kl},margin:{style:Kl},marginTop:{style:Kl},marginRight:{style:Kl},marginBottom:{style:Kl},marginLeft:{style:Kl},marginX:{style:Kl},marginY:{style:Kl},marginInline:{style:Kl},marginInlineStart:{style:Kl},marginInlineEnd:{style:Kl},marginBlock:{style:Kl},marginBlockStart:{style:Kl},marginBlockEnd:{style:Kl},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:fs},rowGap:{style:hs},columnGap:{style:ms},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vs},maxWidth:{style:ys},minWidth:{transform:vs},height:{transform:vs},maxHeight:{transform:vs},minHeight:{transform:vs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Rs=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=Ol(n,l)||{};if(u)return u(o);return Tl(o,t,(t=>{let n=Nl(c,s,t);return t===n&&"string"==typeof t&&(n=Nl(c,s,`${e}${"default"===t?"":Ka(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:ws;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=Pl(s,e(n,o,i,a));else{const e=Tl({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=Pl(s,e):s[n]=t({sx:o,theme:i})}else s=Pl(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)}}();Rs.filterProps=["sx"];var Ls=Rs;function ks(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 Is=["breakpoints","palette","spacing","shape"];function Ms(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,Is),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,Il),i=Ml(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 Xt({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=Gl({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=Ca({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},_l,i)},a);return u.applyStyles=ks,u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Xt({},ws,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ls({sx:e,theme:this})},u}function _s(e=null){const t=Hn.useContext(oa);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ps=Ms();function As(e=Ps){return _s(e)}var Ds={exports:{}},Ts={},Os=Hn,Ns=Symbol.for("react.element"),qs=Symbol.for("react.fragment"),Fs=Object.prototype.hasOwnProperty,zs=Os.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,js={key:!0,ref:!0,__self:!0,__source:!0};function $s(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)Fs.call(t,r)&&!js.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:Ns,type:e,key:i,ref:a,props:o,_owner:zs.current}}Ts.Fragment=qs,Ts.jsx=$s,Ts.jsxs=$s,Ds.exports=Ts;var Bs=Ds.exports;function Hs({styles:e,themeId:t,defaultTheme:n={}}){const r=As(n),o="function"==typeof e?e(t&&r[t]||r):e;return Bs.jsx(va,{styles:o})}const Ws=["sx"],Gs=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ws;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Vs(e){const{sx:t}=e,n=rn(e,Ws),{systemProps:r,otherProps:o}=Gs(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Sa(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}function Us(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=Us(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ys(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Us(e))&&(r&&(r+=" "),r+=t);return r}const Ks=["className","component"];const Xs=["ownerState"],Qs=["variants"],Js=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const eu=Ms(),tu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function nu({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ru(e){return e?(t,n)=>n[e]:null}function ou(e,t){let{ownerState:n}=t,r=rn(t,Xs);const o="function"==typeof e?e(Xt({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>ou(e,Xt({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=rn(o,Qs);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Xt({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(Xt({ownerState:n},r)):e.style))})),t}return o}function iu({props:e,name:t,defaultTheme:n,themeId:r}){let o=As(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?yl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function au(e,t=0,n=1){return Ll(e,t,n)}function lu(e){if(e.type)return e;if("#"===e.charAt(0))return lu(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(Ir(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(Ir(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function su(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 uu(e){let t="hsl"===(e=lu(e)).type||"hsla"===e.type?lu(function(e){e=lu(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])),su({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 cu(e,t){return e=lu(e),t=au(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,su(e)}function du(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 pu(e){if(!du(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=pu(e[n])})),t}function fu(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return du(e)&&du(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(du(t[o])&&o in e&&du(e[o])?r[o]=fu(e[o],t[o],n):n.clone?r[o]=du(t[o])?pu(t[o]):t[o]:r[o]=t[o])})),r}function mu(e){if("string"!=typeof e)throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hu(e){return e&&e.ownerDocument||document}function gu(e){return hu(e).defaultView||window}var vu="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;let bu=0;const yu=Gn["useId".toString()];function xu(e){if(void 0!==yu){const t=yu();return null!=e?e:t}return function(e){const[t,n]=Hn.useState(e),r=e||t;return Hn.useEffect((()=>{null==t&&(bu+=1,n(`mui-${bu}`))}),[t]),r}(e)}function Su({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Hn.useRef(void 0!==e),[i,a]=Hn.useState(t);return[o?e:i,Hn.useCallback((e=>{o||a(e)}),[])]}function Eu(e){const t=Hn.useRef(e);return vu((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function Cu(...e){return Hn.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 wu{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new wu}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Ru=!0,Lu=!1;const ku=new wu,Iu={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 Mu(e){e.metaKey||e.altKey||e.ctrlKey||(Ru=!0)}function _u(){Ru=!1}function Pu(){"hidden"===this.visibilityState&&Lu&&(Ru=!0)}function Au(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ru||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Iu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Du(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Mu,!0),t.addEventListener("mousedown",_u,!0),t.addEventListener("pointerdown",_u,!0),t.addEventListener("touchstart",_u,!0),t.addEventListener("visibilitychange",Pu,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Au(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Lu=!0,ku.start(100,(()=>{Lu=!1})),t.current=!1,!0)},ref:e}}function Tu(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},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]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=Tu(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Ou=e=>e;var Nu=(()=>{let e=Ou;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ou}}})();const qu={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 Fu(e,t,n="Mui"){const r=qu[t];return r?`${n}-${r}`:`${Nu.generate(e)}-${t}`}function zu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Fu(e,t,n)})),r}const ju=["mode","contrastThreshold","tonalOffset"],$u={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:gr.white,default:gr.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}},Bu={text:{primary:gr.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:gr.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 Hu(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=lu(e),t=au(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 su(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=lu(e),t=au(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 su(e)}(e.main,i)))}function Wu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kr(e,ju),i=e.primary||function(e="light"){return"dark"===e?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[700],light:yr[400],dark:yr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:br[200],light:br[50],dark:br[400]}:{main:br[500],light:br[300],dark:br[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:vr[500],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[400],dark:vr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xr[400],light:xr[300],dark:xr[700]}:{main:xr[700],light:xr[500],dark:xr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:Sr[800],light:Sr[500],dark:Sr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Er[400],light:Er[300],dark:Er[700]}:{main:"#ed6c02",light:Er[500],dark:Er[900]}}(t);function d(e){const t=function(e,t){const n=uu(e),r=uu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bu.text.primary)>=n?Bu.text.primary:$u.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Lr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Hu(e,"light",o,r),Hu(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Bu,light:$u};return fu(Lr({common:Lr({},gr),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:Cr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Gu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Vu={textTransform:"uppercase"},Uu='"Roboto", "Helvetica", "Arial", sans-serif';function Yu(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Uu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=kr(n,Gu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Lr({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Uu?{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,Vu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Vu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fu(Lr({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ku(...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 Xu=["none",Ku(0,2,1,-1,0,1,1,0,0,1,3,0),Ku(0,3,1,-2,0,2,2,0,0,1,5,0),Ku(0,3,3,-2,0,3,4,0,0,1,8,0),Ku(0,2,4,-1,0,4,5,0,0,1,10,0),Ku(0,3,5,-1,0,5,8,0,0,1,14,0),Ku(0,3,5,-1,0,6,10,0,0,1,18,0),Ku(0,4,5,-2,0,7,10,1,0,2,16,1),Ku(0,5,5,-3,0,8,10,1,0,3,14,2),Ku(0,5,6,-3,0,9,12,1,0,3,16,2),Ku(0,6,6,-3,0,10,14,1,0,4,18,3),Ku(0,6,7,-4,0,11,15,1,0,4,20,3),Ku(0,7,8,-4,0,12,17,2,0,5,22,4),Ku(0,7,8,-4,0,13,19,2,0,5,24,4),Ku(0,7,9,-4,0,14,21,2,0,5,26,4),Ku(0,8,9,-5,0,15,22,2,0,6,28,5),Ku(0,8,10,-5,0,16,24,2,0,6,30,5),Ku(0,8,11,-5,0,17,26,2,0,6,32,5),Ku(0,9,11,-5,0,18,28,2,0,7,34,6),Ku(0,9,12,-6,0,19,29,2,0,7,36,6),Ku(0,10,13,-6,0,20,31,3,0,8,38,7),Ku(0,10,13,-6,0,21,33,3,0,8,40,7),Ku(0,10,14,-6,0,22,35,3,0,8,42,7),Ku(0,11,14,-7,0,23,36,3,0,9,44,8),Ku(0,11,15,-7,0,24,38,3,0,9,46,8)];const Qu=["duration","easing","delay"],Ju={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)"},Zu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ec(e){return`${Math.round(e)}ms`}function tc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nc(e){const t=Lr({},Ju,e.easing),n=Lr({},Zu,e.duration);return Lr({getAutoHeightDuration:tc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kr(r,Qu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ec(o)} ${i} ${"string"==typeof a?a:ec(a)}`)).join(",")}},e,{easing:t,duration:n})}var rc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const oc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ic(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kr(e,oc);if(e.vars)throw new Error(wr(18));const l=Wu(r),s=Ms(e);let u=fu(s,{mixins:(c=s.breakpoints,d=n,Lr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Xu.slice(),typography:Yu(l,i),transitions:nc(o),zIndex:Lr({},rc),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=fu(u,a),u=t.reduce(((e,t)=>fu(e,t)),u),u.unstable_sxConfig=Lr({},ws,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ls({sx:e,theme:this})},u}var ac=ic();function lc(){const e=As(ac);return e[Rr]||e}function sc({props:e,name:t}){return iu({props:e,name:t,defaultTheme:ac,themeId:Rr})}const uc=e=>Zs(e)&&"classes"!==e,cc=Zs,dc=function(e={}){const{themeId:t,defaultTheme:n=eu,rootShouldForwardProp:r=Zs,slotShouldForwardProp:o=Zs}=e,i=e=>Ls(Xt({},e,{theme:nu(Xt({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ya(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ru(tu(s))}=a,p=rn(a,Js),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Zs;"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=ba(e,Xt({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Sa(e)?r=>ou(e,Xt({},r,{theme:nu({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=nu(Xt({},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]=ou(n,Xt({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=nu(Xt({},e,{defaultTheme:n,themeId:t}));return ou({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Xt({},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:Rr,defaultTheme:ac,rootShouldForwardProp:uc});var pc=dc;var fc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function mc(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=mc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mc(e))&&(r&&(r+=" "),r+=t);return r}function gc(e){return Fu("MuiSvgIcon",e)}zu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bc=pc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${mu(n.color)}`],t[`fontSize${mu(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]}})),yc=Hn.forwardRef((function(e,t){const n=sc({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=kr(n,vc),f=Hn.isValidElement(r)&&"svg"===r.type,m=Lr({},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 xl({root:["root","inherit"!==t&&`color${mu(t)}`,`fontSize${mu(n)}`]},gc,r)})(m);return Bs.jsxs(bc,Lr({as:a,className:hc(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?Bs.jsx("title",{children:c}):null]}))}));yc.muiName="SvgIcon";var xc=yc;var Sc,Ec={},Cc=Symbol.for("react.element"),wc=Symbol.for("react.portal"),Rc=Symbol.for("react.fragment"),Lc=Symbol.for("react.strict_mode"),kc=Symbol.for("react.profiler"),Ic=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),_c=Symbol.for("react.server_context"),Pc=Symbol.for("react.forward_ref"),Ac=Symbol.for("react.suspense"),Dc=Symbol.for("react.suspense_list"),Tc=Symbol.for("react.memo"),Oc=Symbol.for("react.lazy"),Nc=Symbol.for("react.offscreen");
17
+ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):fa(e),n}va.propTypes={defaultTheme:en.object,styles:en.oneOfType([en.array,en.string,en.object,en.func])};const xa=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Sa=Object.freeze({__proto__:null,GlobalStyles:ba,StyledEngineProvider:ga,ThemeContext:ia,css:ca,default:ya,internal_processStyles:xa,keyframes:ha});function Ea(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 Ca(e){if(!Ea(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ca(e[n])})),t}function wa(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return Ea(e)&&Ea(t)&&Object.keys(t).forEach((o=>{Ea(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ea(e[o])?r[o]=wa(e[o],t[o],n):n.clone?r[o]=Ea(t[o])?Ca(t[o]):t[o]:r[o]=t[o]})),r}var Ra,La=Object.freeze({__proto__:null,default:wa,isPlainObject:Ea}),ka={exports:{}},Ma={},Ia=Symbol.for("react.element"),_a=Symbol.for("react.portal"),Pa=Symbol.for("react.fragment"),Aa=Symbol.for("react.strict_mode"),Da=Symbol.for("react.profiler"),Ta=Symbol.for("react.provider"),Oa=Symbol.for("react.context"),Na=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),Fa=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),ja=Symbol.for("react.memo"),$a=Symbol.for("react.lazy"),Ba=Symbol.for("react.offscreen");function Ha(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ia:switch(e=e.type){case Pa:case Da:case Aa:case Fa:case za:return e;default:switch(e=e&&e.$$typeof){case Na:case Oa:case qa:case $a:case ja:case Ta:return e;default:return t}}case _a:return t}}}Ra=Symbol.for("react.module.reference"),Ma.ContextConsumer=Oa,Ma.ContextProvider=Ta,Ma.Element=Ia,Ma.ForwardRef=qa,Ma.Fragment=Pa,Ma.Lazy=$a,Ma.Memo=ja,Ma.Portal=_a,Ma.Profiler=Da,Ma.StrictMode=Aa,Ma.Suspense=Fa,Ma.SuspenseList=za,Ma.isAsyncMode=function(){return!1},Ma.isConcurrentMode=function(){return!1},Ma.isContextConsumer=function(e){return Ha(e)===Oa},Ma.isContextProvider=function(e){return Ha(e)===Ta},Ma.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ia},Ma.isForwardRef=function(e){return Ha(e)===qa},Ma.isFragment=function(e){return Ha(e)===Pa},Ma.isLazy=function(e){return Ha(e)===$a},Ma.isMemo=function(e){return Ha(e)===ja},Ma.isPortal=function(e){return Ha(e)===_a},Ma.isProfiler=function(e){return Ha(e)===Da},Ma.isStrictMode=function(e){return Ha(e)===Aa},Ma.isSuspense=function(e){return Ha(e)===Fa},Ma.isSuspenseList=function(e){return Ha(e)===za},Ma.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pa||e===Da||e===Aa||e===Fa||e===za||e===Ba||"object"==typeof e&&null!==e&&(e.$$typeof===$a||e.$$typeof===ja||e.$$typeof===Ta||e.$$typeof===Oa||e.$$typeof===qa||e.$$typeof===Ra||void 0!==e.getModuleId)},Ma.typeOf=Ha,ka.exports=Ma;var Wa=ka.exports;const Ga=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Va(e){const t=`${e}`.match(Ga);return t&&t[1]||""}function Ua(e,t=""){return e.displayName||e.name||Va(e)||t}function Ya(e,t,n){const r=Ua(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ka=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ua(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Wa.ForwardRef:return Ya(e,e.render,"ForwardRef");case Wa.Memo:return Ya(e,e.type,"memo");default:return}}},getFunctionName:Va});function Xa(e){if("string"!=typeof e)throw new Error(Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Qa=Object.freeze({__proto__:null,default:Xa});function Ja(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Za(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function el(e){return e&&e.ownerDocument||document}function tl(e){return el(e).defaultView||window}function nl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var rl="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;function ol(e){const t=Hn.useRef(e);return rl((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function il(...e){return Hn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{nl(e,t)}))}),e)}const al={};const ll=[];let sl=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 ul(){const e=function(e,t){const n=Hn.useRef(al);return n.current===al&&(n.current=e(t)),n}(sl.create).current;var t;return t=e.disposeEffect,Hn.useEffect(t,ll),e}let cl=!0,dl=!1;const pl=new sl,fl={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 ml(e){e.metaKey||e.altKey||e.ctrlKey||(cl=!0)}function hl(){cl=!1}function gl(){"hidden"===this.visibilityState&&dl&&(cl=!0)}function vl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!fl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bl(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ml,!0),t.addEventListener("mousedown",hl,!0),t.addEventListener("pointerdown",hl,!0),t.addEventListener("touchstart",hl,!0),t.addEventListener("visibilitychange",gl,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(dl=!0,pl.start(100,(()=>{dl=!1})),t.current=!1,!0)},ref:e}}function yl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xl(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},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]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=xl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sl(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 El=e=>e;var Cl=(()=>{let e=El;return{configure(t){e=t},generate:t=>e(t),reset(){e=El}}})();const wl={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 Rl(e,t,n="Mui"){const r=wl[t];return r?`${n}-${r}`:`${Cl.generate(e)}-${t}`}function Ll(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Rl(e,t,n)})),r}function kl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Ml=Object.freeze({__proto__:null,default:kl});function Il(e){return"string"==typeof e}function _l(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=_l(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_l(e))&&(r&&(r+=" "),r+=t);return r}function Al(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 Dl(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 Tl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ol(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,Tl),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=Pl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},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=Al(Xt({},o,r)),l=Dl(r),s=Dl(o),u=t(a),c=Pl(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=Xt({},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=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Il(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:il(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Nl=["values","unit","step"],ql=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)=>Xt({},e,{[t.key]:t.val})),{})};var Fl={borderRadius:4};function zl(e,t){return t?wa(e,t,{clone:!1}):e}const jl={xs:0,sm:600,md:900,lg:1200,xl:1536},$l={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jl[e]}px)`};function Bl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||$l;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||$l;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||jl).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Hl(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 Wl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Hl(e,n)||r,t&&(o=t(o,r,e)),o}function Gl(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=Hl(e.theme,r)||{};return Bl(e,i,(e=>{let r=Wl(a,o,e);return e===r&&"string"==typeof e&&(r=Wl(a,o,`${t}${"default"===e?"":Xa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Vl={m:"margin",p:"padding"},Ul={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kl=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Yl[e])return[e];e=Yl[e]}const[t,n]=e.split(""),r=Vl[t],o=Ul[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ql=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jl(e,t,n,r){var o;const i=null!=(o=Hl(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 Zl(e){return Jl(e,"spacing",8)}function es(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 ts(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=es(t,n),e)),{})}(Kl(n),r);return Bl(e,e[n],o)}function ns(e,t){const n=Zl(e.theme);return Object.keys(e).map((r=>ts(e,t,r,n))).reduce(zl,{})}function rs(e){return ns(e,Xl)}function os(e){return ns(e,Ql)}function is(...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]?zl(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function as(e){return"number"!=typeof e?e:`${e}px solid`}function ls(e,t){return Gl({prop:e,themeKey:"borders",transform:t})}rs.propTypes={},rs.filterProps=Xl,os.propTypes={},os.filterProps=Ql;const ss=ls("border",as),us=ls("borderTop",as),cs=ls("borderRight",as),ds=ls("borderBottom",as),ps=ls("borderLeft",as),fs=ls("borderColor"),ms=ls("borderTopColor"),hs=ls("borderRightColor"),gs=ls("borderBottomColor"),vs=ls("borderLeftColor"),bs=ls("outline",as),ys=ls("outlineColor"),xs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:es(t,e)});return Bl(e,e.borderRadius,n)}return null};xs.propTypes={},xs.filterProps=["borderRadius"],is(ss,us,cs,ds,ps,fs,ms,hs,gs,vs,xs,bs,ys);const Ss=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jl(e.theme,"spacing",8),n=e=>({gap:es(t,e)});return Bl(e,e.gap,n)}return null};Ss.propTypes={},Ss.filterProps=["gap"];const Es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jl(e.theme,"spacing",8),n=e=>({columnGap:es(t,e)});return Bl(e,e.columnGap,n)}return null};Es.propTypes={},Es.filterProps=["columnGap"];const Cs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jl(e.theme,"spacing",8),n=e=>({rowGap:es(t,e)});return Bl(e,e.rowGap,n)}return null};Cs.propTypes={},Cs.filterProps=["rowGap"];function ws(e,t){return"grey"===t?t:e}is(Ss,Es,Cs,Gl({prop:"gridColumn"}),Gl({prop:"gridRow"}),Gl({prop:"gridAutoFlow"}),Gl({prop:"gridAutoColumns"}),Gl({prop:"gridAutoRows"}),Gl({prop:"gridTemplateColumns"}),Gl({prop:"gridTemplateRows"}),Gl({prop:"gridTemplateAreas"}),Gl({prop:"gridArea"}));function Rs(e){return e<=1&&0!==e?100*e+"%":e}is(Gl({prop:"color",themeKey:"palette",transform:ws}),Gl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ws}),Gl({prop:"backgroundColor",themeKey:"palette",transform:ws}));const Ls=Gl({prop:"width",transform:Rs}),ks=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])||jl[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:Rs(t)}};return Bl(e,e.maxWidth,t)}return null};ks.filterProps=["maxWidth"];const Ms=Gl({prop:"minWidth",transform:Rs}),Is=Gl({prop:"height",transform:Rs}),_s=Gl({prop:"maxHeight",transform:Rs}),Ps=Gl({prop:"minHeight",transform:Rs});Gl({prop:"size",cssProperty:"width",transform:Rs}),Gl({prop:"size",cssProperty:"height",transform:Rs});is(Ls,ks,Ms,Is,_s,Ps,Gl({prop:"boxSizing"}));var As={border:{themeKey:"borders",transform:as},borderTop:{themeKey:"borders",transform:as},borderRight:{themeKey:"borders",transform:as},borderBottom:{themeKey:"borders",transform:as},borderLeft:{themeKey:"borders",transform:as},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:as},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xs},color:{themeKey:"palette",transform:ws},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ws},backgroundColor:{themeKey:"palette",transform:ws},p:{style:os},pt:{style:os},pr:{style:os},pb:{style:os},pl:{style:os},px:{style:os},py:{style:os},padding:{style:os},paddingTop:{style:os},paddingRight:{style:os},paddingBottom:{style:os},paddingLeft:{style:os},paddingX:{style:os},paddingY:{style:os},paddingInline:{style:os},paddingInlineStart:{style:os},paddingInlineEnd:{style:os},paddingBlock:{style:os},paddingBlockStart:{style:os},paddingBlockEnd:{style:os},m:{style:rs},mt:{style:rs},mr:{style:rs},mb:{style:rs},ml:{style:rs},mx:{style:rs},my:{style:rs},margin:{style:rs},marginTop:{style:rs},marginRight:{style:rs},marginBottom:{style:rs},marginLeft:{style:rs},marginX:{style:rs},marginY:{style:rs},marginInline:{style:rs},marginInlineStart:{style:rs},marginInlineEnd:{style:rs},marginBlock:{style:rs},marginBlockStart:{style:rs},marginBlockEnd:{style:rs},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:Ss},rowGap:{style:Cs},columnGap:{style:Es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rs},maxWidth:{style:ks},minWidth:{transform:Rs},height:{transform:Rs},maxHeight:{transform:Rs},minHeight:{transform:Rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ds=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=Hl(n,l)||{};if(u)return u(o);return Bl(o,t,(t=>{let n=Wl(c,s,t);return t===n&&"string"==typeof t&&(n=Wl(c,s,`${e}${"default"===t?"":Xa(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:As;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=zl(s,e(n,o,i,a));else{const e=Bl({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=zl(s,e):s[n]=t({sx:o,theme:i})}else s=zl(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)}}();Ds.filterProps=["sx"];var Ts=Ds;function Os(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 Ns=["breakpoints","palette","spacing","shape"];function qs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,Ns),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,Nl),i=ql(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 Xt({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=Zl({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=wa({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},Fl,i)},a);return u.applyStyles=Os,u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},As,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ts({sx:e,theme:this})},u}function Fs(e=null){const t=Hn.useContext(ia);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const zs=qs();function js(e=zs){return Fs(e)}var $s={exports:{}},Bs={},Hs=Hn,Ws=Symbol.for("react.element"),Gs=Symbol.for("react.fragment"),Vs=Object.prototype.hasOwnProperty,Us=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ys={key:!0,ref:!0,__self:!0,__source:!0};function Ks(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)Vs.call(t,r)&&!Ys.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:Ws,type:e,key:i,ref:a,props:o,_owner:Us.current}}Bs.Fragment=Gs,Bs.jsx=Ks,Bs.jsxs=Ks,$s.exports=Bs;var Xs=$s.exports;function Qs({styles:e,themeId:t,defaultTheme:n={}}){const r=js(n),o="function"==typeof e?e(t&&r[t]||r):e;return Xs.jsx(ba,{styles:o})}const Js=["sx"],Zs=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:As;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function eu(e){const{sx:t}=e,n=rn(e,Js),{systemProps:r,otherProps:o}=Zs(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ea(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}const tu=["className","component"];const nu=["ownerState"],ru=["variants"],ou=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const au=qs(),lu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function su({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function uu(e){return e?(t,n)=>n[e]:null}function cu(e,t){let{ownerState:n}=t,r=rn(t,nu);const o="function"==typeof e?e(Xt({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>cu(e,Xt({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=rn(o,ru);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Xt({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(Xt({ownerState:n},r)):e.style))})),t}return o}function du({props:e,name:t,defaultTheme:n,themeId:r}){let o=js(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?xl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function pu(e,t=0,n=1){return kl(e,t,n)}function fu(e){if(e.type)return e;if("#"===e.charAt(0))return fu(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(Mr(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(Mr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mu(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 hu(e){let t="hsl"===(e=fu(e)).type||"hsla"===e.type?fu(function(e){e=fu(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])),mu({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 gu(e,t){return e=fu(e),t=pu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mu(e)}function vu(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 bu(e){if(!vu(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=bu(e[n])})),t}function yu(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return vu(e)&&vu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(vu(t[o])&&o in e&&vu(e[o])?r[o]=yu(e[o],t[o],n):n.clone?r[o]=vu(t[o])?bu(t[o]):t[o]:r[o]=t[o])})),r}function xu(e){if("string"!=typeof e)throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Su(e){return e&&e.ownerDocument||document}function Eu(e){return Su(e).defaultView||window}var Cu="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;let wu=0;const Ru=Gn["useId".toString()];function Lu(e){if(void 0!==Ru){const t=Ru();return null!=e?e:t}return function(e){const[t,n]=Hn.useState(e),r=e||t;return Hn.useEffect((()=>{null==t&&(wu+=1,n(`mui-${wu}`))}),[t]),r}(e)}function ku({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Hn.useRef(void 0!==e),[i,a]=Hn.useState(t);return[o?e:i,Hn.useCallback((e=>{o||a(e)}),[])]}function Mu(e){const t=Hn.useRef(e);return Cu((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function Iu(...e){return Hn.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 _u{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new _u}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Pu=!0,Au=!1;const Du=new _u,Tu={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 Ou(e){e.metaKey||e.altKey||e.ctrlKey||(Pu=!0)}function Nu(){Pu=!1}function qu(){"hidden"===this.visibilityState&&Au&&(Pu=!0)}function Fu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Pu||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Tu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zu(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ou,!0),t.addEventListener("mousedown",Nu,!0),t.addEventListener("pointerdown",Nu,!0),t.addEventListener("touchstart",Nu,!0),t.addEventListener("visibilitychange",qu,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Fu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Au=!0,Du.start(100,(()=>{Au=!1})),t.current=!1,!0)},ref:e}}function ju(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},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]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=ju(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const $u=e=>e;var Bu=(()=>{let e=$u;return{configure(t){e=t},generate:t=>e(t),reset(){e=$u}}})();const Hu={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 Wu(e,t,n="Mui"){const r=Hu[t];return r?`${n}-${r}`:`${Bu.generate(e)}-${t}`}function Gu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Wu(e,t,n)})),r}const Vu=["mode","contrastThreshold","tonalOffset"],Uu={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:gr.white,default:gr.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}},Yu={text:{primary:gr.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:gr.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 Ku(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=fu(e),t=pu(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 mu(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fu(e),t=pu(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 mu(e)}(e.main,i)))}function Xu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kr(e,Vu),i=e.primary||function(e="light"){return"dark"===e?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[700],light:yr[400],dark:yr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:br[200],light:br[50],dark:br[400]}:{main:br[500],light:br[300],dark:br[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:vr[500],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[400],dark:vr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xr[400],light:xr[300],dark:xr[700]}:{main:xr[700],light:xr[500],dark:xr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:Sr[800],light:Sr[500],dark:Sr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Er[400],light:Er[300],dark:Er[700]}:{main:"#ed6c02",light:Er[500],dark:Er[900]}}(t);function d(e){const t=function(e,t){const n=hu(e),r=hu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Yu.text.primary)>=n?Yu.text.primary:Uu.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Lr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ku(e,"light",o,r),Ku(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Yu,light:Uu};return yu(Lr({common:Lr({},gr),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:Cr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Qu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ju={textTransform:"uppercase"},Zu='"Roboto", "Helvetica", "Arial", sans-serif';function ec(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=kr(n,Qu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Lr({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Zu?{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,Ju),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yu(Lr({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function tc(...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 nc=["none",tc(0,2,1,-1,0,1,1,0,0,1,3,0),tc(0,3,1,-2,0,2,2,0,0,1,5,0),tc(0,3,3,-2,0,3,4,0,0,1,8,0),tc(0,2,4,-1,0,4,5,0,0,1,10,0),tc(0,3,5,-1,0,5,8,0,0,1,14,0),tc(0,3,5,-1,0,6,10,0,0,1,18,0),tc(0,4,5,-2,0,7,10,1,0,2,16,1),tc(0,5,5,-3,0,8,10,1,0,3,14,2),tc(0,5,6,-3,0,9,12,1,0,3,16,2),tc(0,6,6,-3,0,10,14,1,0,4,18,3),tc(0,6,7,-4,0,11,15,1,0,4,20,3),tc(0,7,8,-4,0,12,17,2,0,5,22,4),tc(0,7,8,-4,0,13,19,2,0,5,24,4),tc(0,7,9,-4,0,14,21,2,0,5,26,4),tc(0,8,9,-5,0,15,22,2,0,6,28,5),tc(0,8,10,-5,0,16,24,2,0,6,30,5),tc(0,8,11,-5,0,17,26,2,0,6,32,5),tc(0,9,11,-5,0,18,28,2,0,7,34,6),tc(0,9,12,-6,0,19,29,2,0,7,36,6),tc(0,10,13,-6,0,20,31,3,0,8,38,7),tc(0,10,13,-6,0,21,33,3,0,8,40,7),tc(0,10,14,-6,0,22,35,3,0,8,42,7),tc(0,11,14,-7,0,23,36,3,0,9,44,8),tc(0,11,15,-7,0,24,38,3,0,9,46,8)];const rc=["duration","easing","delay"],oc={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)"},ic={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ac(e){return`${Math.round(e)}ms`}function lc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sc(e){const t=Lr({},oc,e.easing),n=Lr({},ic,e.duration);return Lr({getAutoHeightDuration:lc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kr(r,rc),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ac(o)} ${i} ${"string"==typeof a?a:ac(a)}`)).join(",")}},e,{easing:t,duration:n})}var uc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kr(e,cc);if(e.vars)throw new Error(wr(18));const l=Xu(r),s=qs(e);let u=yu(s,{mixins:(c=s.breakpoints,d=n,Lr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:nc.slice(),typography:ec(l,i),transitions:sc(o),zIndex:Lr({},uc),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=yu(u,a),u=t.reduce(((e,t)=>yu(e,t)),u),u.unstable_sxConfig=Lr({},As,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ts({sx:e,theme:this})},u}var pc=dc();function fc(){const e=js(pc);return e[Rr]||e}function mc({props:e,name:t}){return du({props:e,name:t,defaultTheme:pc,themeId:Rr})}const hc=e=>iu(e)&&"classes"!==e,gc=iu,vc=function(e={}){const{themeId:t,defaultTheme:n=au,rootShouldForwardProp:r=iu,slotShouldForwardProp:o=iu}=e,i=e=>Ts(Xt({},e,{theme:su(Xt({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{xa(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=uu(lu(s))}=a,p=rn(a,ou),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=iu;"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=ya(e,Xt({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Ea(e)?r=>cu(e,Xt({},r,{theme:su({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=su(Xt({},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]=cu(n,Xt({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=su(Xt({},e,{defaultTheme:n,themeId:t}));return cu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Xt({},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:Rr,defaultTheme:pc,rootShouldForwardProp:hc});var bc=vc;var yc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xc(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=xc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xc(e))&&(r&&(r+=" "),r+=t);return r}function Ec(e){return Wu("MuiSvgIcon",e)}Gu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wc=bc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${xu(n.color)}`],t[`fontSize${xu(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]}})),Rc=Hn.forwardRef((function(e,t){const n=mc({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=kr(n,Cc),f=Hn.isValidElement(r)&&"svg"===r.type,m=Lr({},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 Sl({root:["root","inherit"!==t&&`color${xu(t)}`,`fontSize${xu(n)}`]},Ec,r)})(m);return Xs.jsxs(wc,Lr({as:a,className:Sc(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?Xs.jsx("title",{children:c}):null]}))}));Rc.muiName="SvgIcon";var Lc=Rc;var kc,Mc={},Ic=Symbol.for("react.element"),_c=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Dc=Symbol.for("react.profiler"),Tc=Symbol.for("react.provider"),Oc=Symbol.for("react.context"),Nc=Symbol.for("react.server_context"),qc=Symbol.for("react.forward_ref"),Fc=Symbol.for("react.suspense"),zc=Symbol.for("react.suspense_list"),jc=Symbol.for("react.memo"),$c=Symbol.for("react.lazy"),Bc=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -23,7 +23,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function qc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cc:switch(e=e.type){case Rc:case kc:case Lc:case Ac:case Dc:return e;default:switch(e=e&&e.$$typeof){case _c:case Mc:case Pc:case Oc:case Tc:case Ic:return e;default:return t}}case wc:return t}}}Sc=Symbol.for("react.module.reference"),Ec.ContextConsumer=Mc,Ec.ContextProvider=Ic,Ec.Element=Cc,Ec.ForwardRef=Pc,Ec.Fragment=Rc,Ec.Lazy=Oc,Ec.Memo=Tc,Ec.Portal=wc,Ec.Profiler=kc,Ec.StrictMode=Lc,Ec.Suspense=Ac,Ec.SuspenseList=Dc,Ec.isAsyncMode=function(){return!1},Ec.isConcurrentMode=function(){return!1},Ec.isContextConsumer=function(e){return qc(e)===Mc},Ec.isContextProvider=function(e){return qc(e)===Ic},Ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cc},Ec.isForwardRef=function(e){return qc(e)===Pc},Ec.isFragment=function(e){return qc(e)===Rc},Ec.isLazy=function(e){return qc(e)===Oc},Ec.isMemo=function(e){return qc(e)===Tc},Ec.isPortal=function(e){return qc(e)===wc},Ec.isProfiler=function(e){return qc(e)===kc},Ec.isStrictMode=function(e){return qc(e)===Lc},Ec.isSuspense=function(e){return qc(e)===Ac},Ec.isSuspenseList=function(e){return qc(e)===Dc},Ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Rc||e===kc||e===Lc||e===Ac||e===Dc||e===Nc||"object"==typeof e&&null!==e&&(e.$$typeof===Oc||e.$$typeof===Tc||e.$$typeof===Ic||e.$$typeof===Mc||e.$$typeof===Pc||e.$$typeof===Sc||void 0!==e.getModuleId)},Ec.typeOf=qc;var Fc={exports:{}},zc={},jc={exports:{}},$c={};
26
+ */function Hc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ic:switch(e=e.type){case Pc:case Dc:case Ac:case Fc:case zc:return e;default:switch(e=e&&e.$$typeof){case Nc:case Oc:case qc:case $c:case jc:case Tc:return e;default:return t}}case _c:return t}}}kc=Symbol.for("react.module.reference"),Mc.ContextConsumer=Oc,Mc.ContextProvider=Tc,Mc.Element=Ic,Mc.ForwardRef=qc,Mc.Fragment=Pc,Mc.Lazy=$c,Mc.Memo=jc,Mc.Portal=_c,Mc.Profiler=Dc,Mc.StrictMode=Ac,Mc.Suspense=Fc,Mc.SuspenseList=zc,Mc.isAsyncMode=function(){return!1},Mc.isConcurrentMode=function(){return!1},Mc.isContextConsumer=function(e){return Hc(e)===Oc},Mc.isContextProvider=function(e){return Hc(e)===Tc},Mc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ic},Mc.isForwardRef=function(e){return Hc(e)===qc},Mc.isFragment=function(e){return Hc(e)===Pc},Mc.isLazy=function(e){return Hc(e)===$c},Mc.isMemo=function(e){return Hc(e)===jc},Mc.isPortal=function(e){return Hc(e)===_c},Mc.isProfiler=function(e){return Hc(e)===Dc},Mc.isStrictMode=function(e){return Hc(e)===Ac},Mc.isSuspense=function(e){return Hc(e)===Fc},Mc.isSuspenseList=function(e){return Hc(e)===zc},Mc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Dc||e===Ac||e===Fc||e===zc||e===Bc||"object"==typeof e&&null!==e&&(e.$$typeof===$c||e.$$typeof===jc||e.$$typeof===Tc||e.$$typeof===Oc||e.$$typeof===qc||e.$$typeof===kc||void 0!==e.getModuleId)},Mc.typeOf=Hc;var Wc={exports:{}},Gc={},Vc={exports:{}},Uc={};
27
27
  /**
28
28
  * @license React
29
29
  * scheduler.production.min.js
@@ -33,7 +33,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- !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,A(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,L=5,k=-1;function I(){return!(e.unstable_now()-k<L)}function M(){if(null!==w){var t=e.unstable_now();k=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,P=_.port2;_.port1.onmessage=M,E=function(){P.postMessage(null)}}else E=function(){g(M,0)};function A(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,A(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"):L=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,A(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}}}}($c),jc.exports=$c;var Bc=jc.exports,Hc=Hn,Wc=Bc;
36
+ !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,A(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&&!M());){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,L=5,k=-1;function M(){return!(e.unstable_now()-k<L)}function I(){if(null!==w){var t=e.unstable_now();k=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(I)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,P=_.port2;_.port1.onmessage=I,E=function(){P.postMessage(null)}}else E=function(){g(I,0)};function A(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,A(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"):L=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,A(S))),r},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Uc),Vc.exports=Uc;var Yc=Vc.exports,Kc=Hn,Xc=Yc;
37
37
  /**
38
38
  * @license React
39
39
  * react-dom.production.min.js
@@ -42,7 +42,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */function Gc(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 Vc=new Set,Uc={};function Yc(e,t){Kc(e,t),Kc(e+"Capture",t)}function Kc(e,t){for(Uc[e]=t,e=0;e<t.length;e++)Vc.add(t[e])}var Xc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Qc=Object.prototype.hasOwnProperty,Jc=/^[: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]*$/,Zc={},ed={};function td(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 nd={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){nd[e]=new td(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];nd[t]=new td(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){nd[e]=new td(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){nd[e]=new td(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){nd[e]=new td(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){nd[e]=new td(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){nd[e]=new td(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){nd[e]=new td(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){nd[e]=new td(e,5,!1,e.toLowerCase(),null,!1,!1)}));var rd=/[\-:]([a-z])/g;function od(e){return e[1].toUpperCase()}function id(e,t,n,r){var o=nd.hasOwnProperty(t)?nd[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!!Qc.call(ed,e)||!Qc.call(Zc,e)&&(Jc.test(e)?ed[e]=!0:(Zc[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(rd,od);nd[t]=new td(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(rd,od);nd[t]=new td(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(rd,od);nd[t]=new td(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){nd[e]=new td(e,1,!1,e.toLowerCase(),null,!1,!1)})),nd.xlinkHref=new td("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){nd[e]=new td(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ad=Hc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ld=Symbol.for("react.element"),sd=Symbol.for("react.portal"),ud=Symbol.for("react.fragment"),cd=Symbol.for("react.strict_mode"),dd=Symbol.for("react.profiler"),pd=Symbol.for("react.provider"),fd=Symbol.for("react.context"),md=Symbol.for("react.forward_ref"),hd=Symbol.for("react.suspense"),gd=Symbol.for("react.suspense_list"),vd=Symbol.for("react.memo"),bd=Symbol.for("react.lazy"),yd=Symbol.for("react.offscreen"),xd=Symbol.iterator;function Sd(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xd&&e[xd]||e["@@iterator"])?e:null}var Ed,Cd=Object.assign;function wd(e){if(void 0===Ed)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ed=t&&t[1]||""}return"\n"+Ed+e}var Rd=!1;function Ld(e,t){if(!e||Rd)return"";Rd=!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{Rd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wd(e):""}function kd(e){switch(e.tag){case 5:return wd(e.type);case 16:return wd("Lazy");case 13:return wd("Suspense");case 19:return wd("SuspenseList");case 0:case 2:case 15:return e=Ld(e.type,!1);case 11:return e=Ld(e.type.render,!1);case 1:return e=Ld(e.type,!0);default:return""}}function Id(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 ud:return"Fragment";case sd:return"Portal";case dd:return"Profiler";case cd:return"StrictMode";case hd:return"Suspense";case gd:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case fd:return(e.displayName||"Context")+".Consumer";case pd:return(e._context.displayName||"Context")+".Provider";case md:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case vd:return null!==(t=e.displayName||null)?t:Id(e.type)||"Memo";case bd:t=e._payload,e=e._init;try{return Id(e(t))}catch(e){}}return null}function Md(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 Id(t);case 8:return t===cd?"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 _d(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Pd(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ad(e){e._valueTracker||(e._valueTracker=function(e){var t=Pd(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 Dd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pd(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Td(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 Od(e,t){var n=t.checked;return Cd({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Nd(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=_d(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 qd(e,t){null!=(t=t.checked)&&id(e,"checked",t,!1)}function Fd(e,t){qd(e,t);var n=_d(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")?jd(e,t.type,n):t.hasOwnProperty("defaultValue")&&jd(e,t.type,_d(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function zd(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 jd(e,t,n){"number"===t&&Td(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $d=Array.isArray;function Bd(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=""+_d(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 Hd(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Gc(91));return Cd({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wd(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Gc(92));if($d(n)){if(1<n.length)throw Error(Gc(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:_d(n)}}function Gd(e,t){var n=_d(t.value),r=_d(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 Vd(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ud(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 Yd(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ud(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Kd,Xd,Qd=(Xd=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Kd=Kd||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Kd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Xd(e,t)}))}:Xd);function Jd(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 Zd={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},ep=["Webkit","ms","Moz","O"];function tp(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zd.hasOwnProperty(e)&&Zd[e]?(""+t).trim():t+"px"}function np(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=tp(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Zd).forEach((function(e){ep.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zd[t]=Zd[e]}))}));var rp=Cd({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 op(e,t){if(t){if(rp[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Gc(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Gc(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Gc(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Gc(62))}}function ip(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 ap=null;function lp(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var sp=null,up=null,cp=null;function dp(e){if(e=ig(e)){if("function"!=typeof sp)throw Error(Gc(280));var t=e.stateNode;t&&(t=lg(t),sp(e.stateNode,e.type,t))}}function pp(e){up?cp?cp.push(e):cp=[e]:up=e}function fp(){if(up){var e=up,t=cp;if(cp=up=null,dp(e),t)for(e=0;e<t.length;e++)dp(t[e])}}function mp(e,t){return e(t)}function hp(){}var gp=!1;function vp(e,t,n){if(gp)return e(t,n);gp=!0;try{return mp(e,t,n)}finally{gp=!1,(null!==up||null!==cp)&&(hp(),fp())}}function bp(e,t){var n=e.stateNode;if(null===n)return null;var r=lg(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(Gc(231,t,typeof n));return n}var yp=!1;if(Xc)try{var xp={};Object.defineProperty(xp,"passive",{get:function(){yp=!0}}),window.addEventListener("test",xp,xp),window.removeEventListener("test",xp,xp)}catch(Xd){yp=!1}function Sp(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 Ep=!1,Cp=null,wp=!1,Rp=null,Lp={onError:function(e){Ep=!0,Cp=e}};function kp(e,t,n,r,o,i,a,l,s){Ep=!1,Cp=null,Sp.apply(Lp,arguments)}function Ip(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 Mp(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 _p(e){if(Ip(e)!==e)throw Error(Gc(188))}function Pp(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Ip(e)))throw Error(Gc(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 _p(o),e;if(i===r)return _p(o),t;i=i.sibling}throw Error(Gc(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(Gc(189))}}if(n.alternate!==r)throw Error(Gc(190))}if(3!==n.tag)throw Error(Gc(188));return n.stateNode.current===n?e:t}(e),null!==e?Ap(e):null}function Ap(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ap(e);if(null!==t)return t;e=e.sibling}return null}var Dp=Wc.unstable_scheduleCallback,Tp=Wc.unstable_cancelCallback,Op=Wc.unstable_shouldYield,Np=Wc.unstable_requestPaint,qp=Wc.unstable_now,Fp=Wc.unstable_getCurrentPriorityLevel,zp=Wc.unstable_ImmediatePriority,jp=Wc.unstable_UserBlockingPriority,$p=Wc.unstable_NormalPriority,Bp=Wc.unstable_LowPriority,Hp=Wc.unstable_IdlePriority,Wp=null,Gp=null;var Vp=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Up(e)/Yp|0)|0},Up=Math.log,Yp=Math.LN2;var Kp=64,Xp=4194304;function Qp(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 Jp(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=Qp(l):0!==(i&=a)&&(r=Qp(i))}else 0!==(a=n&~o)?r=Qp(a):0!==i&&(r=Qp(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-Vp(t)),r|=e[n],t&=~o;return r}function Zp(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 ef(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tf(){var e=Kp;return!(4194240&(Kp<<=1))&&(Kp=64),e}function nf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rf(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Vp(t)]=n}function of(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vp(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var af=0;function lf(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var sf,uf,cf,df,pf,ff=!1,mf=[],hf=null,gf=null,vf=null,bf=new Map,yf=new Map,xf=[],Sf="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 Ef(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":gf=null;break;case"mouseover":case"mouseout":vf=null;break;case"pointerover":case"pointerout":bf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yf.delete(t.pointerId)}}function Cf(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=ig(t))&&uf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function wf(e){var t=og(e.target);if(null!==t){var n=Ip(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Mp(n)))return e.blockedOn=t,void pf(e.priority,(function(){cf(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 Rf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ig(n))&&uf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ap=r,n.target.dispatchEvent(r),ap=null,t.shift()}return!0}function Lf(e,t,n){Rf(e)&&n.delete(t)}function kf(){ff=!1,null!==hf&&Rf(hf)&&(hf=null),null!==gf&&Rf(gf)&&(gf=null),null!==vf&&Rf(vf)&&(vf=null),bf.forEach(Lf),yf.forEach(Lf)}function If(e,t){e.blockedOn===t&&(e.blockedOn=null,ff||(ff=!0,Wc.unstable_scheduleCallback(Wc.unstable_NormalPriority,kf)))}function Mf(e){function t(t){return If(t,e)}if(0<mf.length){If(mf[0],e);for(var n=1;n<mf.length;n++){var r=mf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==hf&&If(hf,e),null!==gf&&If(gf,e),null!==vf&&If(vf,e),bf.forEach(t),yf.forEach(t),n=0;n<xf.length;n++)(r=xf[n]).blockedOn===e&&(r.blockedOn=null);for(;0<xf.length&&null===(n=xf[0]).blockedOn;)wf(n),null===n.blockedOn&&xf.shift()}var _f=ad.ReactCurrentBatchConfig,Pf=!0;function Af(e,t,n,r){var o=af,i=_f.transition;_f.transition=null;try{af=1,Tf(e,t,n,r)}finally{af=o,_f.transition=i}}function Df(e,t,n,r){var o=af,i=_f.transition;_f.transition=null;try{af=4,Tf(e,t,n,r)}finally{af=o,_f.transition=i}}function Tf(e,t,n,r){if(Pf){var o=Nf(e,t,n,r);if(null===o)_h(e,t,r,Of,n),Ef(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return hf=Cf(hf,e,t,n,r,o),!0;case"dragenter":return gf=Cf(gf,e,t,n,r,o),!0;case"mouseover":return vf=Cf(vf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return bf.set(i,Cf(bf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,yf.set(i,Cf(yf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ef(e,r),4&t&&-1<Sf.indexOf(e)){for(;null!==o;){var i=ig(o);if(null!==i&&sf(i),null===(i=Nf(e,t,n,r))&&_h(e,t,r,Of,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else _h(e,t,r,null,n)}}var Of=null;function Nf(e,t,n,r){if(Of=null,null!==(e=og(e=lp(r))))if(null===(t=Ip(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Mp(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 Of=e,null}function qf(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(Fp()){case zp:return 1;case jp:return 4;case $p:case Bp:return 16;case Hp:return 536870912;default:return 16}default:return 16}}var Ff=null,zf=null,jf=null;function $f(){if(jf)return jf;var e,t,n=zf,r=n.length,o="value"in Ff?Ff.value:Ff.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 jf=o.slice(e,1<t?1-t:void 0)}function Bf(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 Hf(){return!0}function Wf(){return!1}function Gf(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)?Hf:Wf,this.isPropagationStopped=Wf,this}return Cd(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=Hf)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hf)},persist:function(){},isPersistent:Hf}),t}var Vf,Uf,Yf,Kf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xf=Gf(Kf),Qf=Cd({},Kf,{view:0,detail:0}),Jf=Gf(Qf),Zf=Cd({},Qf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dm,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!==Yf&&(Yf&&"mousemove"===e.type?(Vf=e.screenX-Yf.screenX,Uf=e.screenY-Yf.screenY):Uf=Vf=0,Yf=e),Vf)},movementY:function(e){return"movementY"in e?e.movementY:Uf}}),em=Gf(Zf),tm=Gf(Cd({},Zf,{dataTransfer:0})),nm=Gf(Cd({},Qf,{relatedTarget:0})),rm=Gf(Cd({},Kf,{animationName:0,elapsedTime:0,pseudoElement:0})),om=Cd({},Kf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),im=Gf(om),am=Gf(Cd({},Kf,{data:0})),lm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sm={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"},um={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=um[e])&&!!t[e]}function dm(){return cm}var pm=Cd({},Qf,{key:function(e){if(e.key){var t=lm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Bf(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?sm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dm,charCode:function(e){return"keypress"===e.type?Bf(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Bf(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),fm=Gf(pm),mm=Gf(Cd({},Zf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),hm=Gf(Cd({},Qf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dm})),gm=Gf(Cd({},Kf,{propertyName:0,elapsedTime:0,pseudoElement:0})),vm=Cd({},Zf,{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}),bm=Gf(vm),ym=[9,13,27,32],xm=Xc&&"CompositionEvent"in window,Sm=null;Xc&&"documentMode"in document&&(Sm=document.documentMode);var Em=Xc&&"TextEvent"in window&&!Sm,Cm=Xc&&(!xm||Sm&&8<Sm&&11>=Sm),wm=String.fromCharCode(32),Rm=!1;function Lm(e,t){switch(e){case"keyup":return-1!==ym.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function km(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Im=!1;var Mm={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 _m(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mm[e.type]:"textarea"===t}function Pm(e,t,n,r){pp(r),0<(t=Ah(t,"onChange")).length&&(n=new Xf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Am=null,Dm=null;function Tm(e){wh(e,0)}function Om(e){if(Dd(ag(e)))return e}function Nm(e,t){if("change"===e)return t}var qm=!1;if(Xc){var Fm;if(Xc){var zm="oninput"in document;if(!zm){var jm=document.createElement("div");jm.setAttribute("oninput","return;"),zm="function"==typeof jm.oninput}Fm=zm}else Fm=!1;qm=Fm&&(!document.documentMode||9<document.documentMode)}function $m(){Am&&(Am.detachEvent("onpropertychange",Bm),Dm=Am=null)}function Bm(e){if("value"===e.propertyName&&Om(Dm)){var t=[];Pm(t,Dm,e,lp(e)),vp(Tm,t)}}function Hm(e,t,n){"focusin"===e?($m(),Dm=n,(Am=t).attachEvent("onpropertychange",Bm)):"focusout"===e&&$m()}function Wm(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Om(Dm)}function Gm(e,t){if("click"===e)return Om(t)}function Vm(e,t){if("input"===e||"change"===e)return Om(t)}var Um="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ym(e,t){if(Um(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(!Qc.call(t,o)||!Um(e[o],t[o]))return!1}return!0}function Km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xm(e,t){var n,r=Km(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=Km(r)}}function Qm(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Qm(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Jm(){for(var e=window,t=Td();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Td((e=t.contentWindow).document)}return t}function Zm(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 eh(e){var t=Jm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qm(n.ownerDocument.documentElement,n)){if(null!==r&&Zm(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=Xm(n,i);var a=Xm(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 th=Xc&&"documentMode"in document&&11>=document.documentMode,nh=null,rh=null,oh=null,ih=!1;function ah(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ih||null==nh||nh!==Td(r)||("selectionStart"in(r=nh)&&Zm(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},oh&&Ym(oh,r)||(oh=r,0<(r=Ah(rh,"onSelect")).length&&(t=new Xf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nh)))}function lh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sh={animationend:lh("Animation","AnimationEnd"),animationiteration:lh("Animation","AnimationIteration"),animationstart:lh("Animation","AnimationStart"),transitionend:lh("Transition","TransitionEnd")},uh={},ch={};function dh(e){if(uh[e])return uh[e];if(!sh[e])return e;var t,n=sh[e];for(t in n)if(n.hasOwnProperty(t)&&t in ch)return uh[e]=n[t];return e}Xc&&(ch=document.createElement("div").style,"AnimationEvent"in window||(delete sh.animationend.animation,delete sh.animationiteration.animation,delete sh.animationstart.animation),"TransitionEvent"in window||delete sh.transitionend.transition);var ph=dh("animationend"),fh=dh("animationiteration"),mh=dh("animationstart"),hh=dh("transitionend"),gh=new Map,vh="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 bh(e,t){gh.set(e,t),Yc(t,[e])}for(var yh=0;yh<vh.length;yh++){var xh=vh[yh];bh(xh.toLowerCase(),"on"+(xh[0].toUpperCase()+xh.slice(1)))}bh(ph,"onAnimationEnd"),bh(fh,"onAnimationIteration"),bh(mh,"onAnimationStart"),bh("dblclick","onDoubleClick"),bh("focusin","onFocus"),bh("focusout","onBlur"),bh(hh,"onTransitionEnd"),Kc("onMouseEnter",["mouseout","mouseover"]),Kc("onMouseLeave",["mouseout","mouseover"]),Kc("onPointerEnter",["pointerout","pointerover"]),Kc("onPointerLeave",["pointerout","pointerover"]),Yc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yc("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sh="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(" "),Eh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sh));function Ch(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(kp.apply(this,arguments),Ep){if(!Ep)throw Error(Gc(198));var u=Cp;Ep=!1,Cp=null,wp||(wp=!0,Rp=u)}}(r,t,void 0,e),e.currentTarget=null}function wh(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;Ch(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;Ch(o,l,u),i=s}}}if(wp)throw e=Rp,wp=!1,Rp=null,e}function Rh(e,t){var n=t[tg];void 0===n&&(n=t[tg]=new Set);var r=e+"__bubble";n.has(r)||(Mh(t,e,2,!1),n.add(r))}function Lh(e,t,n){var r=0;t&&(r|=4),Mh(n,e,r,t)}var kh="_reactListening"+Math.random().toString(36).slice(2);function Ih(e){if(!e[kh]){e[kh]=!0,Vc.forEach((function(t){"selectionchange"!==t&&(Eh.has(t)||Lh(t,!1,e),Lh(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[kh]||(t[kh]=!0,Lh("selectionchange",!1,t))}}function Mh(e,t,n,r){switch(qf(t)){case 1:var o=Af;break;case 4:o=Df;break;default:o=Tf}n=o.bind(null,t,n,e),o=void 0,!yp||"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 _h(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=og(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}vp((function(){var r=i,o=lp(n),a=[];e:{var l=gh.get(e);if(void 0!==l){var s=Xf,u=e;switch(e){case"keypress":if(0===Bf(n))break e;case"keydown":case"keyup":s=fm;break;case"focusin":u="focus",s=nm;break;case"focusout":u="blur",s=nm;break;case"beforeblur":case"afterblur":s=nm;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=em;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=tm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=hm;break;case ph:case fh:case mh:s=rm;break;case hh:s=gm;break;case"scroll":s=Jf;break;case"wheel":s=bm;break;case"copy":case"cut":case"paste":s=im;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=mm}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=bp(m,p))&&c.push(Ph(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===ap||!(u=n.relatedTarget||n.fromElement)||!og(u)&&!u[eg])&&(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)?og(u):null)&&(u!==(d=Ip(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=em,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=mm,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:ag(s),f=null==u?l:ag(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,og(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=Dh(f))m++;for(f=0,h=p;h;h=Dh(h))f++;for(;0<m-f;)c=Dh(c),m--;for(;0<f-m;)p=Dh(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=Dh(c),p=Dh(p)}c=null}else c=null;null!==s&&Th(a,l,s,c,!1),null!==u&&null!==d&&Th(a,d,u,c,!0)}if("select"===(s=(l=r?ag(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Nm;else if(_m(l))if(qm)g=Vm;else{g=Wm;var v=Hm}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Gm);switch(g&&(g=g(e,r))?Pm(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&jd(l,"number",l.value)),v=r?ag(r):window,e){case"focusin":(_m(v)||"true"===v.contentEditable)&&(nh=v,rh=r,oh=null);break;case"focusout":oh=rh=nh=null;break;case"mousedown":ih=!0;break;case"contextmenu":case"mouseup":case"dragend":ih=!1,ah(a,n,o);break;case"selectionchange":if(th)break;case"keydown":case"keyup":ah(a,n,o)}var b;if(xm)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 Im?Lm(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Cm&&"ko"!==n.locale&&(Im||"onCompositionStart"!==y?"onCompositionEnd"===y&&Im&&(b=$f()):(zf="value"in(Ff=o)?Ff.value:Ff.textContent,Im=!0)),0<(v=Ah(r,y)).length&&(y=new am(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=km(n))&&(y.data=b))),(b=Em?function(e,t){switch(e){case"compositionend":return km(t);case"keypress":return 32!==t.which?null:(Rm=!0,wm);case"textInput":return(e=t.data)===wm&&Rm?null:e;default:return null}}(e,n):function(e,t){if(Im)return"compositionend"===e||!xm&&Lm(e,t)?(e=$f(),jf=zf=Ff=null,Im=!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 Cm&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ah(r,"onBeforeInput")).length&&(o=new am("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}wh(a,t)}))}function Ph(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ah(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=bp(e,n))&&r.unshift(Ph(e,i,o)),null!=(i=bp(e,t))&&r.push(Ph(e,i,o))),e=e.return}return r}function Dh(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Th(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=bp(n,i))&&a.unshift(Ph(n,s,l)):o||null!=(s=bp(n,i))&&a.push(Ph(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Oh=/\r\n?/g,Nh=/\u0000|\uFFFD/g;function qh(e){return("string"==typeof e?e:""+e).replace(Oh,"\n").replace(Nh,"")}function Fh(e,t,n){if(t=qh(t),qh(e)!==t&&n)throw Error(Gc(425))}function zh(){}var jh=null,$h=null;function Bh(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 Hh="function"==typeof setTimeout?setTimeout:void 0,Wh="function"==typeof clearTimeout?clearTimeout:void 0,Gh="function"==typeof Promise?Promise:void 0,Vh="function"==typeof queueMicrotask?queueMicrotask:void 0!==Gh?function(e){return Gh.resolve(null).then(e).catch(Uh)}:Hh;function Uh(e){setTimeout((function(){throw e}))}function Yh(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 Mf(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Mf(t)}function Kh(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 Xh(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 Qh=Math.random().toString(36).slice(2),Jh="__reactFiber$"+Qh,Zh="__reactProps$"+Qh,eg="__reactContainer$"+Qh,tg="__reactEvents$"+Qh,ng="__reactListeners$"+Qh,rg="__reactHandles$"+Qh;function og(e){var t=e[Jh];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eg]||n[Jh]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Xh(e);null!==e;){if(n=e[Jh])return n;e=Xh(e)}return t}n=(e=n).parentNode}return null}function ig(e){return!(e=e[Jh]||e[eg])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ag(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Gc(33))}function lg(e){return e[Zh]||null}var sg=[],ug=-1;function cg(e){return{current:e}}function dg(e){0>ug||(e.current=sg[ug],sg[ug]=null,ug--)}function pg(e,t){ug++,sg[ug]=e.current,e.current=t}var fg={},mg=cg(fg),hg=cg(!1),gg=fg;function vg(e,t){var n=e.type.contextTypes;if(!n)return fg;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 bg(e){return null!=(e=e.childContextTypes)}function yg(){dg(hg),dg(mg)}function xg(e,t,n){if(mg.current!==fg)throw Error(Gc(168));pg(mg,t),pg(hg,n)}function Sg(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(Gc(108,Md(e)||"Unknown",o));return Cd({},n,r)}function Eg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fg,gg=mg.current,pg(mg,e),pg(hg,hg.current),!0}function Cg(e,t,n){var r=e.stateNode;if(!r)throw Error(Gc(169));n?(e=Sg(e,t,gg),r.__reactInternalMemoizedMergedChildContext=e,dg(hg),dg(mg),pg(mg,e)):dg(hg),pg(hg,n)}var wg=null,Rg=!1,Lg=!1;function kg(e){null===wg?wg=[e]:wg.push(e)}function Ig(){if(!Lg&&null!==wg){Lg=!0;var e=0,t=af;try{var n=wg;for(af=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}wg=null,Rg=!1}catch(t){throw null!==wg&&(wg=wg.slice(e+1)),Dp(zp,Ig),t}finally{af=t,Lg=!1}}return null}var Mg=[],_g=0,Pg=null,Ag=0,Dg=[],Tg=0,Og=null,Ng=1,qg="";function Fg(e,t){Mg[_g++]=Ag,Mg[_g++]=Pg,Pg=e,Ag=t}function zg(e,t,n){Dg[Tg++]=Ng,Dg[Tg++]=qg,Dg[Tg++]=Og,Og=e;var r=Ng;e=qg;var o=32-Vp(r)-1;r&=~(1<<o),n+=1;var i=32-Vp(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Ng=1<<32-Vp(t)+o|n<<o|r,qg=i+e}else Ng=1<<i|n<<o|r,qg=e}function jg(e){null!==e.return&&(Fg(e,1),zg(e,1,0))}function $g(e){for(;e===Pg;)Pg=Mg[--_g],Mg[_g]=null,Ag=Mg[--_g],Mg[_g]=null;for(;e===Og;)Og=Dg[--Tg],Dg[Tg]=null,qg=Dg[--Tg],Dg[Tg]=null,Ng=Dg[--Tg],Dg[Tg]=null}var Bg=null,Hg=null,Wg=!1,Gg=null;function Vg(e,t){var n=gS(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 Ug(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,Bg=e,Hg=Kh(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Bg=e,Hg=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Og?{id:Ng,overflow:qg}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=gS(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Bg=e,Hg=null,!0);default:return!1}}function Yg(e){return!(!(1&e.mode)||128&e.flags)}function Kg(e){if(Wg){var t=Hg;if(t){var n=t;if(!Ug(e,t)){if(Yg(e))throw Error(Gc(418));t=Kh(n.nextSibling);var r=Bg;t&&Ug(e,t)?Vg(r,n):(e.flags=-4097&e.flags|2,Wg=!1,Bg=e)}}else{if(Yg(e))throw Error(Gc(418));e.flags=-4097&e.flags|2,Wg=!1,Bg=e}}}function Xg(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bg=e}function Qg(e){if(e!==Bg)return!1;if(!Wg)return Xg(e),Wg=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Bh(e.type,e.memoizedProps)),t&&(t=Hg)){if(Yg(e))throw Jg(),Error(Gc(418));for(;t;)Vg(e,t),t=Kh(t.nextSibling)}if(Xg(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Gc(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Hg=Kh(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Hg=null}}else Hg=Bg?Kh(e.stateNode.nextSibling):null;return!0}function Jg(){for(var e=Hg;e;)e=Kh(e.nextSibling)}function Zg(){Hg=Bg=null,Wg=!1}function ev(e){null===Gg?Gg=[e]:Gg.push(e)}var tv=ad.ReactCurrentBatchConfig;function nv(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(Gc(309));var r=n.stateNode}if(!r)throw Error(Gc(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(Gc(284));if(!n._owner)throw Error(Gc(290,e))}return e}function rv(e,t){throw e=Object.prototype.toString.call(t),Error(Gc(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ov(e){return(0,e._init)(e._payload)}function iv(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=bS(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=ES(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===ud?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===bd&&ov(i)===t.type)?((r=o(t,n.props)).ref=nv(e,t,n),r.return=e,r):((r=yS(n.type,n.key,n.props,null,e.mode,r)).ref=nv(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=CS(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=xS(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=ES(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ld:return(n=yS(t.type,t.key,t.props,null,e.mode,n)).ref=nv(e,null,t),n.return=e,n;case sd:return(t=CS(t,e.mode,n)).return=e,t;case bd:return d(e,(0,t._init)(t._payload),n)}if($d(t)||Sd(t))return(t=xS(t,e.mode,n,null)).return=e,t;rv(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 ld:return n.key===o?s(e,t,n,r):null;case sd:return n.key===o?u(e,t,n,r):null;case bd:return p(e,t,(o=n._init)(n._payload),r)}if($d(n)||Sd(n))return null!==o?null:c(e,t,n,r,null);rv(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 ld:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case sd:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case bd:return f(e,t,n,(0,r._init)(r._payload),o)}if($d(r)||Sd(r))return c(t,e=e.get(n)||null,r,o,null);rv(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),Wg&&Fg(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 Wg&&Fg(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)})),Wg&&Fg(o,h),u}function h(o,a,l,s){var u=Sd(l);if("function"!=typeof u)throw Error(Gc(150));if(null==(l=u.call(l)))throw Error(Gc(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),Wg&&Fg(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 Wg&&Fg(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)})),Wg&&Fg(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===ud&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case ld:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===ud){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===bd&&ov(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=nv(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===ud?((i=xS(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=yS(l.type,l.key,l.props,null,r.mode,s)).ref=nv(r,i,l),s.return=r,r=s)}return a(r);case sd: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=CS(l,r.mode,s)).return=r,r=i}return a(r);case bd:return e(r,i,(c=l._init)(l._payload),s)}if($d(l))return m(r,i,l,s);if(Sd(l))return h(r,i,l,s);rv(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=ES(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var av=iv(!0),lv=iv(!1),sv=cg(null),uv=null,cv=null,dv=null;function pv(){dv=cv=uv=null}function fv(e){var t=sv.current;dg(sv),e._currentValue=t}function mv(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 hv(e,t){uv=e,dv=cv=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(oy=!0),e.firstContext=null)}function gv(e){var t=e._currentValue;if(dv!==e)if(e={context:e,memoizedValue:t,next:null},null===cv){if(null===uv)throw Error(Gc(308));cv=e,uv.dependencies={lanes:0,firstContext:e}}else cv=cv.next=e;return t}var vv=null;function bv(e){null===vv?vv=[e]:vv.push(e)}function yv(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,bv(t)):(n.next=o.next,o.next=n),t.interleaved=n,xv(e,r)}function xv(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 Sv=!1;function Ev(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cv(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 wv(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rv(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&fx){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,xv(e,n)}return null===(o=r.interleaved)?(t.next=t,bv(r)):(t.next=o.next,o.next=t),r.interleaved=t,xv(e,n)}function Lv(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,of(e,n)}}function kv(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 Iv(e,t,n,r){var o=e.updateQueue;Sv=!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=Cd({},d,p);break e;case 2:Sv=!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);Sx|=a,e.lanes=a,e.memoizedState=d}}function Mv(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(Gc(191,o));o.call(r)}}}var _v={},Pv=cg(_v),Av=cg(_v),Dv=cg(_v);function Tv(e){if(e===_v)throw Error(Gc(174));return e}function Ov(e,t){switch(pg(Dv,t),pg(Av,e),pg(Pv,_v),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yd(null,"");break;default:t=Yd(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}dg(Pv),pg(Pv,t)}function Nv(){dg(Pv),dg(Av),dg(Dv)}function qv(e){Tv(Dv.current);var t=Tv(Pv.current),n=Yd(t,e.type);t!==n&&(pg(Av,e),pg(Pv,n))}function Fv(e){Av.current===e&&(dg(Pv),dg(Av))}var zv=cg(0);function jv(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 $v=[];function Bv(){for(var e=0;e<$v.length;e++)$v[e]._workInProgressVersionPrimary=null;$v.length=0}var Hv=ad.ReactCurrentDispatcher,Wv=ad.ReactCurrentBatchConfig,Gv=0,Vv=null,Uv=null,Yv=null,Kv=!1,Xv=!1,Qv=0,Jv=0;function Zv(){throw Error(Gc(321))}function eb(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Um(e[n],t[n]))return!1;return!0}function tb(e,t,n,r,o,i){if(Gv=i,Vv=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hv.current=null===e||null===e.memoizedState?Fb:zb,e=n(r,o),Xv){i=0;do{if(Xv=!1,Qv=0,25<=i)throw Error(Gc(301));i+=1,Yv=Uv=null,t.updateQueue=null,Hv.current=jb,e=n(r,o)}while(Xv)}if(Hv.current=qb,t=null!==Uv&&null!==Uv.next,Gv=0,Yv=Uv=Vv=null,Kv=!1,t)throw Error(Gc(300));return e}function nb(){var e=0!==Qv;return Qv=0,e}function rb(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yv?Vv.memoizedState=Yv=e:Yv=Yv.next=e,Yv}function ob(){if(null===Uv){var e=Vv.alternate;e=null!==e?e.memoizedState:null}else e=Uv.next;var t=null===Yv?Vv.memoizedState:Yv.next;if(null!==t)Yv=t,Uv=e;else{if(null===e)throw Error(Gc(310));e={memoizedState:(Uv=e).memoizedState,baseState:Uv.baseState,baseQueue:Uv.baseQueue,queue:Uv.queue,next:null},null===Yv?Vv.memoizedState=Yv=e:Yv=Yv.next=e}return Yv}function ib(e,t){return"function"==typeof t?t(e):t}function ab(e){var t=ob(),n=t.queue;if(null===n)throw Error(Gc(311));n.lastRenderedReducer=e;var r=Uv,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((Gv&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,Vv.lanes|=c,Sx|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Um(r,t.memoizedState)||(oy=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Vv.lanes|=i,Sx|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function lb(e){var t=ob(),n=t.queue;if(null===n)throw Error(Gc(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);Um(i,t.memoizedState)||(oy=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function sb(){}function ub(e,t){var n=Vv,r=ob(),o=t(),i=!Um(r.memoizedState,o);if(i&&(r.memoizedState=o,oy=!0),r=r.queue,Sb(pb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Yv&&1&Yv.memoizedState.tag){if(n.flags|=2048,gb(9,db.bind(null,n,r,o,t),void 0,null),null===mx)throw Error(Gc(349));30&Gv||cb(n,t,o)}return o}function cb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Vv.updateQueue)?(t={lastEffect:null,stores:null},Vv.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function db(e,t,n,r){t.value=n,t.getSnapshot=r,fb(t)&&mb(e)}function pb(e,t,n){return n((function(){fb(t)&&mb(e)}))}function fb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Um(e,n)}catch(e){return!0}}function mb(e){var t=xv(e,1);null!==t&&$x(t,e,1,-1)}function hb(e){var t=rb();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ib,lastRenderedState:e},t.queue=e,e=e.dispatch=Db.bind(null,Vv,e),[t.memoizedState,e]}function gb(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Vv.updateQueue)?(t={lastEffect:null,stores:null},Vv.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 vb(){return ob().memoizedState}function bb(e,t,n,r){var o=rb();Vv.flags|=e,o.memoizedState=gb(1|t,n,void 0,void 0===r?null:r)}function yb(e,t,n,r){var o=ob();r=void 0===r?null:r;var i=void 0;if(null!==Uv){var a=Uv.memoizedState;if(i=a.destroy,null!==r&&eb(r,a.deps))return void(o.memoizedState=gb(t,n,i,r))}Vv.flags|=e,o.memoizedState=gb(1|t,n,i,r)}function xb(e,t){return bb(8390656,8,e,t)}function Sb(e,t){return yb(2048,8,e,t)}function Eb(e,t){return yb(4,2,e,t)}function Cb(e,t){return yb(4,4,e,t)}function wb(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 Rb(e,t,n){return n=null!=n?n.concat([e]):null,yb(4,4,wb.bind(null,t,e),n)}function Lb(){}function kb(e,t){var n=ob();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ib(e,t){var n=ob();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eb(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mb(e,t,n){return 21&Gv?(Um(n,t)||(n=tf(),Vv.lanes|=n,Sx|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,oy=!0),e.memoizedState=n)}function _b(e,t){var n=af;af=0!==n&&4>n?n:4,e(!0);var r=Wv.transition;Wv.transition={};try{e(!1),t()}finally{af=n,Wv.transition=r}}function Pb(){return ob().memoizedState}function Ab(e,t,n){var r=jx(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tb(e))Ob(t,n);else if(null!==(n=yv(e,t,n,r))){$x(n,e,r,zx()),Nb(n,t,r)}}function Db(e,t,n){var r=jx(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tb(e))Ob(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,Um(l,a)){var s=t.interleaved;return null===s?(o.next=o,bv(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=yv(e,t,o,r))&&($x(n,e,r,o=zx()),Nb(n,t,r))}}function Tb(e){var t=e.alternate;return e===Vv||null!==t&&t===Vv}function Ob(e,t){Xv=Kv=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nb(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,of(e,n)}}var qb={readContext:gv,useCallback:Zv,useContext:Zv,useEffect:Zv,useImperativeHandle:Zv,useInsertionEffect:Zv,useLayoutEffect:Zv,useMemo:Zv,useReducer:Zv,useRef:Zv,useState:Zv,useDebugValue:Zv,useDeferredValue:Zv,useTransition:Zv,useMutableSource:Zv,useSyncExternalStore:Zv,useId:Zv,unstable_isNewReconciler:!1},Fb={readContext:gv,useCallback:function(e,t){return rb().memoizedState=[e,void 0===t?null:t],e},useContext:gv,useEffect:xb,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,bb(4194308,4,wb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return bb(4,2,e,t)},useMemo:function(e,t){var n=rb();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rb();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=Ab.bind(null,Vv,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rb().memoizedState=e},useState:hb,useDebugValue:Lb,useDeferredValue:function(e){return rb().memoizedState=e},useTransition:function(){var e=hb(!1),t=e[0];return e=_b.bind(null,e[1]),rb().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vv,o=rb();if(Wg){if(void 0===n)throw Error(Gc(407));n=n()}else{if(n=t(),null===mx)throw Error(Gc(349));30&Gv||cb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,xb(pb.bind(null,r,i,e),[e]),r.flags|=2048,gb(9,db.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=rb(),t=mx.identifierPrefix;if(Wg){var n=qg;t=":"+t+"R"+(n=(Ng&~(1<<32-Vp(Ng)-1)).toString(32)+n),0<(n=Qv++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Jv++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zb={readContext:gv,useCallback:kb,useContext:gv,useEffect:Sb,useImperativeHandle:Rb,useInsertionEffect:Eb,useLayoutEffect:Cb,useMemo:Ib,useReducer:ab,useRef:vb,useState:function(){return ab(ib)},useDebugValue:Lb,useDeferredValue:function(e){return Mb(ob(),Uv.memoizedState,e)},useTransition:function(){return[ab(ib)[0],ob().memoizedState]},useMutableSource:sb,useSyncExternalStore:ub,useId:Pb,unstable_isNewReconciler:!1},jb={readContext:gv,useCallback:kb,useContext:gv,useEffect:Sb,useImperativeHandle:Rb,useInsertionEffect:Eb,useLayoutEffect:Cb,useMemo:Ib,useReducer:lb,useRef:vb,useState:function(){return lb(ib)},useDebugValue:Lb,useDeferredValue:function(e){var t=ob();return null===Uv?t.memoizedState=e:Mb(t,Uv.memoizedState,e)},useTransition:function(){return[lb(ib)[0],ob().memoizedState]},useMutableSource:sb,useSyncExternalStore:ub,useId:Pb,unstable_isNewReconciler:!1};function $b(e,t){if(e&&e.defaultProps){for(var n in t=Cd({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Bb(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Cd({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Hb={isMounted:function(e){return!!(e=e._reactInternals)&&Ip(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=zx(),o=jx(e),i=wv(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Rv(e,i,o))&&($x(t,e,o,r),Lv(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=zx(),o=jx(e),i=wv(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Rv(e,i,o))&&($x(t,e,o,r),Lv(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zx(),r=jx(e),o=wv(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Rv(e,o,r))&&($x(t,e,r,n),Lv(t,e,r))}};function Wb(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ym(n,r)||!Ym(o,i))}function Gb(e,t,n){var r=!1,o=fg,i=t.contextType;return"object"==typeof i&&null!==i?i=gv(i):(o=bg(t)?gg:mg.current,i=(r=null!=(r=t.contextTypes))?vg(e,o):fg),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hb,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vb(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&&Hb.enqueueReplaceState(t,t.state,null)}function Ub(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ev(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=gv(i):(i=bg(t)?gg:mg.current,o.context=vg(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bb(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&&Hb.enqueueReplaceState(o,o.state,null),Iv(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Yb(e,t){try{var n="",r=t;do{n+=kd(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 Kb(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Xb(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Qb="function"==typeof WeakMap?WeakMap:Map;function Jb(e,t,n){(n=wv(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mx||(Mx=!0,_x=r),Xb(0,t)},n}function Zb(e,t,n){(n=wv(-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(){Xb(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Xb(0,t),"function"!=typeof r&&(null===Px?Px=new Set([this]):Px.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ey(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Qb;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=cS.bind(null,e,t,n),t.then(e,e))}function ty(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 ny(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=wv(-1,1)).tag=2,Rv(n,t,1))),n.lanes|=1),e)}var ry=ad.ReactCurrentOwner,oy=!1;function iy(e,t,n,r){t.child=null===e?lv(t,null,n,r):av(t,e.child,n,r)}function ay(e,t,n,r,o){n=n.render;var i=t.ref;return hv(t,o),r=tb(e,t,n,r,i,o),n=nb(),null===e||oy?(Wg&&n&&jg(t),t.flags|=1,iy(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,My(e,t,o))}function ly(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||vS(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=yS(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,sy(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Ym)(a,r)&&e.ref===t.ref)return My(e,t,o)}return t.flags|=1,(e=bS(i,r)).ref=t.ref,e.return=t,t.child=e}function sy(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Ym(i,r)&&e.ref===t.ref){if(oy=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,My(e,t,o);131072&e.flags&&(oy=!0)}}return dy(e,t,n,r,o)}function uy(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,pg(bx,vx),vx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,pg(bx,vx),vx|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pg(bx,vx),vx|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,pg(bx,vx),vx|=r;return iy(e,t,o,n),t.child}function cy(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dy(e,t,n,r,o){var i=bg(n)?gg:mg.current;return i=vg(t,i),hv(t,o),n=tb(e,t,n,r,i,o),r=nb(),null===e||oy?(Wg&&r&&jg(t),t.flags|=1,iy(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,My(e,t,o))}function py(e,t,n,r,o){if(bg(n)){var i=!0;Eg(t)}else i=!1;if(hv(t,o),null===t.stateNode)Iy(e,t),Gb(t,n,r),Ub(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=gv(u):u=vg(t,u=bg(n)?gg:mg.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)&&Vb(t,a,r,u),Sv=!1;var p=t.memoizedState;a.state=p,Iv(t,r,a,o),s=t.memoizedState,l!==r||p!==s||hg.current||Sv?("function"==typeof c&&(Bb(t,n,c,r),s=t.memoizedState),(l=Sv||Wb(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,Cv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$b(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=gv(s):s=vg(t,s=bg(n)?gg:mg.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)&&Vb(t,a,r,s),Sv=!1,p=t.memoizedState,a.state=p,Iv(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||hg.current||Sv?("function"==typeof f&&(Bb(t,n,f,r),m=t.memoizedState),(u=Sv||Wb(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 fy(e,t,n,r,i,o)}function fy(e,t,n,r,o,i){cy(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Cg(t,n,!1),My(e,t,i);r=t.stateNode,ry.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=av(t,e.child,null,i),t.child=av(t,null,l,i)):iy(e,t,l,i),t.memoizedState=r.state,o&&Cg(t,n,!0),t.child}function my(e){var t=e.stateNode;t.pendingContext?xg(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xg(0,t.context,!1),Ov(e,t.containerInfo)}function hy(e,t,n,r,o){return Zg(),ev(o),t.flags|=256,iy(e,t,n,r),t.child}var gy,vy,by,yy,xy={dehydrated:null,treeContext:null,retryLane:0};function Sy(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ey(e,t,n){var r,o=t.pendingProps,i=zv.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),pg(zv,1&i),null===e)return Kg(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=SS(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=xS(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Sy(n),t.memoizedState=xy,e):Cy(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,wy(e,t,a,r=Kb(Error(Gc(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=SS({mode:"visible",children:r.children},o,0,null),(i=xS(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&av(t,e.child,null,a),t.child.memoizedState=Sy(a),t.memoizedState=xy,i);if(!(1&t.mode))return wy(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,wy(e,t,a,r=Kb(i=Error(Gc(419)),r,void 0))}if(l=!!(a&e.childLanes),oy||l){if(null!==(r=mx)){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,xv(e,o),$x(r,e,o,-1))}return eS(),wy(e,t,a,r=Kb(Error(Gc(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=pS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Hg=Kh(o.nextSibling),Bg=t,Wg=!0,Gg=null,null!==e&&(Dg[Tg++]=Ng,Dg[Tg++]=qg,Dg[Tg++]=Og,Ng=e.id,qg=e.overflow,Og=t),t=Cy(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=bS(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=bS(r,a):(a=xS(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)?Sy(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=xy,o}return e=(a=e.child).sibling,o=bS(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 Cy(e,t){return(t=SS({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function wy(e,t,n,r){return null!==r&&ev(r),av(t,e.child,null,n),(e=Cy(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ry(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),mv(e.return,t,n)}function Ly(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 ky(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(iy(e,t,r.children,n),2&(r=zv.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&&Ry(e,n,t);else if(19===e.tag)Ry(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(pg(zv,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===jv(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ly(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===jv(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ly(t,!0,n,null,i);break;case"together":Ly(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Iy(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function My(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Sx|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Gc(153));if(null!==t.child){for(n=bS(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=bS(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function _y(e,t){if(!Wg)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 Py(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 Ay(e,t,n){var r=t.pendingProps;switch($g(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Py(t),null;case 1:case 17:return bg(t.type)&&yg(),Py(t),null;case 3:return r=t.stateNode,Nv(),dg(hg),dg(mg),Bv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Qg(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Gg&&(Gx(Gg),Gg=null))),vy(e,t),Py(t),null;case 5:Fv(t);var o=Tv(Dv.current);if(n=t.type,null!==e&&null!=t.stateNode)by(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Gc(166));return Py(t),null}if(e=Tv(Pv.current),Qg(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Jh]=t,r[Zh]=i,e=!!(1&t.mode),n){case"dialog":Rh("cancel",r),Rh("close",r);break;case"iframe":case"object":case"embed":Rh("load",r);break;case"video":case"audio":for(o=0;o<Sh.length;o++)Rh(Sh[o],r);break;case"source":Rh("error",r);break;case"img":case"image":case"link":Rh("error",r),Rh("load",r);break;case"details":Rh("toggle",r);break;case"input":Nd(r,i),Rh("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Rh("invalid",r);break;case"textarea":Wd(r,i),Rh("invalid",r)}for(var a in op(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Fh(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Fh(r.textContent,l,e),o=["children",""+l]):Uc.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Rh("scroll",r)}switch(n){case"input":Ad(r),zd(r,i,!0);break;case"textarea":Ad(r),Vd(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=zh)}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=Ud(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[Jh]=t,e[Zh]=r,gy(e,t,!1,!1),t.stateNode=e;e:{switch(a=ip(n,r),n){case"dialog":Rh("cancel",e),Rh("close",e),o=r;break;case"iframe":case"object":case"embed":Rh("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sh.length;o++)Rh(Sh[o],e);o=r;break;case"source":Rh("error",e),o=r;break;case"img":case"image":case"link":Rh("error",e),Rh("load",e),o=r;break;case"details":Rh("toggle",e),o=r;break;case"input":Nd(e,r),o=Od(e,r),Rh("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Cd({},r,{value:void 0}),Rh("invalid",e);break;case"textarea":Wd(e,r),o=Hd(e,r),Rh("invalid",e)}for(i in op(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?np(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Qd(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Jd(e,s):"number"==typeof s&&Jd(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Uc.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Rh("scroll",e):null!=s&&id(e,i,s,a))}switch(n){case"input":Ad(e),zd(e,r,!1);break;case"textarea":Ad(e),Vd(e);break;case"option":null!=r.value&&e.setAttribute("value",""+_d(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Bd(e,!!r.multiple,i,!1):null!=r.defaultValue&&Bd(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=zh)}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 Py(t),null;case 6:if(e&&null!=t.stateNode)yy(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Gc(166));if(n=Tv(Dv.current),Tv(Pv.current),Qg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jh]=t,(i=r.nodeValue!==n)&&null!==(e=Bg))switch(e.tag){case 3:Fh(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Fh(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jh]=t,t.stateNode=r}return Py(t),null;case 13:if(dg(zv),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Wg&&null!==Hg&&1&t.mode&&!(128&t.flags))Jg(),Zg(),t.flags|=98560,i=!1;else if(i=Qg(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Gc(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Gc(317));i[Jh]=t}else Zg(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Py(t),i=!1}else null!==Gg&&(Gx(Gg),Gg=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&zv.current?0===yx&&(yx=3):eS())),null!==t.updateQueue&&(t.flags|=4),Py(t),null);case 4:return Nv(),vy(e,t),null===e&&Ih(t.stateNode.containerInfo),Py(t),null;case 10:return fv(t.type._context),Py(t),null;case 19:if(dg(zv),null===(i=t.memoizedState))return Py(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)_y(i,!1);else{if(0!==yx||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=jv(e))){for(t.flags|=128,_y(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 pg(zv,1&zv.current|2),t.child}e=e.sibling}null!==i.tail&&qp()>kx&&(t.flags|=128,r=!0,_y(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=jv(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),_y(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Wg)return Py(t),null}else 2*qp()-i.renderingStartTime>kx&&1073741824!==n&&(t.flags|=128,r=!0,_y(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=qp(),t.sibling=null,n=zv.current,pg(zv,r?1&n|2:1&n),t):(Py(t),null);case 22:case 23:return Xx(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&vx)&&(Py(t),6&t.subtreeFlags&&(t.flags|=8192)):Py(t),null;case 24:case 25:return null}throw Error(Gc(156,t.tag))}function Dy(e,t){switch($g(t),t.tag){case 1:return bg(t.type)&&yg(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Nv(),dg(hg),dg(mg),Bv(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Fv(t),null;case 13:if(dg(zv),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Gc(340));Zg()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return dg(zv),null;case 4:return Nv(),null;case 10:return fv(t.type._context),null;case 22:case 23:return Xx(),null;default:return null}}gy=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}},vy=function(){},by=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Tv(Pv.current);var i,a=null;switch(n){case"input":o=Od(e,o),r=Od(e,r),a=[];break;case"select":o=Cd({},o,{value:void 0}),r=Cd({},r,{value:void 0}),a=[];break;case"textarea":o=Hd(e,o),r=Hd(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=zh)}for(u in op(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&&(Uc.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&&(Uc.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Rh("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)}},yy=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ty=!1,Oy=!1,Ny="function"==typeof WeakSet?WeakSet:Set,qy=null;function Fy(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){uS(e,t,n)}else n.current=null}function zy(e,t,n){try{n()}catch(n){uS(e,t,n)}}var jy=!1;function $y(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&&zy(t,n,i)}o=o.next}while(o!==r)}}function By(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 Hy(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 Wy(e){var t=e.alternate;null!==t&&(e.alternate=null,Wy(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Jh],delete t[Zh],delete t[tg],delete t[ng],delete t[rg])),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 Gy(e){return 5===e.tag||3===e.tag||4===e.tag}function Vy(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Gy(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 Uy(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=zh));else if(4!==r&&null!==(e=e.child))for(Uy(e,t,n),e=e.sibling;null!==e;)Uy(e,t,n),e=e.sibling}function Yy(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(Yy(e,t,n),e=e.sibling;null!==e;)Yy(e,t,n),e=e.sibling}var Ky=null,Xy=!1;function Qy(e,t,n){for(n=n.child;null!==n;)Jy(e,t,n),n=n.sibling}function Jy(e,t,n){if(Gp&&"function"==typeof Gp.onCommitFiberUnmount)try{Gp.onCommitFiberUnmount(Wp,n)}catch(e){}switch(n.tag){case 5:Oy||Fy(n,t);case 6:var r=Ky,o=Xy;Ky=null,Qy(e,t,n),Xy=o,null!==(Ky=r)&&(Xy?(e=Ky,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Ky.removeChild(n.stateNode));break;case 18:null!==Ky&&(Xy?(e=Ky,n=n.stateNode,8===e.nodeType?Yh(e.parentNode,n):1===e.nodeType&&Yh(e,n),Mf(e)):Yh(Ky,n.stateNode));break;case 4:r=Ky,o=Xy,Ky=n.stateNode.containerInfo,Xy=!0,Qy(e,t,n),Ky=r,Xy=o;break;case 0:case 11:case 14:case 15:if(!Oy&&(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)&&zy(n,t,a),o=o.next}while(o!==r)}Qy(e,t,n);break;case 1:if(!Oy&&(Fy(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){uS(n,t,e)}Qy(e,t,n);break;case 21:Qy(e,t,n);break;case 22:1&n.mode?(Oy=(r=Oy)||null!==n.memoizedState,Qy(e,t,n),Oy=r):Qy(e,t,n);break;default:Qy(e,t,n)}}function Zy(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ny),t.forEach((function(t){var r=fS.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ex(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:Ky=l.stateNode,Xy=!1;break e;case 3:case 4:Ky=l.stateNode.containerInfo,Xy=!0;break e}l=l.return}if(null===Ky)throw Error(Gc(160));Jy(i,a,o),Ky=null,Xy=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){uS(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)tx(t,e),t=t.sibling}function tx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ex(t,e),nx(e),4&r){try{$y(3,e,e.return),By(3,e)}catch(t){uS(e,e.return,t)}try{$y(5,e,e.return)}catch(t){uS(e,e.return,t)}}break;case 1:ex(t,e),nx(e),512&r&&null!==n&&Fy(n,n.return);break;case 5:if(ex(t,e),nx(e),512&r&&null!==n&&Fy(n,n.return),32&e.flags){var o=e.stateNode;try{Jd(o,"")}catch(t){uS(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&&qd(o,i),ip(l,a);var u=ip(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?np(o,d):"dangerouslySetInnerHTML"===c?Qd(o,d):"children"===c?Jd(o,d):id(o,c,d,u)}switch(l){case"input":Fd(o,i);break;case"textarea":Gd(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Bd(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Bd(o,!!i.multiple,i.defaultValue,!0):Bd(o,!!i.multiple,i.multiple?[]:"",!1))}o[Zh]=i}catch(t){uS(e,e.return,t)}}break;case 6:if(ex(t,e),nx(e),4&r){if(null===e.stateNode)throw Error(Gc(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){uS(e,e.return,t)}}break;case 3:if(ex(t,e),nx(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Mf(t.containerInfo)}catch(t){uS(e,e.return,t)}break;case 4:default:ex(t,e),nx(e);break;case 13:ex(t,e),nx(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Lx=qp())),4&r&&Zy(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Oy=(u=Oy)||c,ex(t,e),Oy=u):ex(t,e),nx(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(qy=e,c=e.child;null!==c;){for(d=qy=c;null!==qy;){switch(f=(p=qy).child,p.tag){case 0:case 11:case 14:case 15:$y(4,p,p.return);break;case 1:Fy(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){uS(r,n,e)}}break;case 5:Fy(p,p.return);break;case 22:if(null!==p.memoizedState){ax(d);continue}}null!==f?(f.return=p,qy=f):ax(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=tp("display",a))}catch(t){uS(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){uS(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:ex(t,e),nx(e),4&r&&Zy(e);case 21:}}function nx(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Gy(n)){var r=n;break e}n=n.return}throw Error(Gc(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Jd(o,""),r.flags&=-33),Yy(e,Vy(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Uy(e,Vy(e),i);break;default:throw Error(Gc(161))}}catch(t){uS(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function rx(e,t,n){qy=e,ox(e)}function ox(e,t,n){for(var r=!!(1&e.mode);null!==qy;){var o=qy,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ty;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Oy;l=Ty;var u=Oy;if(Ty=a,(Oy=s)&&!u)for(qy=o;null!==qy;)s=(a=qy).child,22===a.tag&&null!==a.memoizedState?lx(o):null!==s?(s.return=a,qy=s):lx(o);for(;null!==i;)qy=i,ox(i),i=i.sibling;qy=o,Ty=l,Oy=u}ix(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,qy=i):ix(e)}}function ix(e){for(;null!==qy;){var t=qy;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Oy||By(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Oy)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:$b(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Mv(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}Mv(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&&Mf(d)}}}break;default:throw Error(Gc(163))}Oy||512&t.flags&&Hy(t)}catch(e){uS(t,t.return,e)}}if(t===e){qy=null;break}if(null!==(n=t.sibling)){n.return=t.return,qy=n;break}qy=t.return}}function ax(e){for(;null!==qy;){var t=qy;if(t===e){qy=null;break}var n=t.sibling;if(null!==n){n.return=t.return,qy=n;break}qy=t.return}}function lx(e){for(;null!==qy;){var t=qy;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{By(4,t)}catch(e){uS(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){uS(t,o,e)}}var i=t.return;try{Hy(t)}catch(e){uS(t,i,e)}break;case 5:var a=t.return;try{Hy(t)}catch(e){uS(t,a,e)}}}catch(e){uS(t,t.return,e)}if(t===e){qy=null;break}var l=t.sibling;if(null!==l){l.return=t.return,qy=l;break}qy=t.return}}var sx,ux=Math.ceil,cx=ad.ReactCurrentDispatcher,dx=ad.ReactCurrentOwner,px=ad.ReactCurrentBatchConfig,fx=0,mx=null,hx=null,gx=0,vx=0,bx=cg(0),yx=0,xx=null,Sx=0,Ex=0,Cx=0,wx=null,Rx=null,Lx=0,kx=1/0,Ix=null,Mx=!1,_x=null,Px=null,Ax=!1,Dx=null,Tx=0,Ox=0,Nx=null,qx=-1,Fx=0;function zx(){return 6&fx?qp():-1!==qx?qx:qx=qp()}function jx(e){return 1&e.mode?2&fx&&0!==gx?gx&-gx:null!==tv.transition?(0===Fx&&(Fx=tf()),Fx):0!==(e=af)?e:e=void 0===(e=window.event)?16:qf(e.type):1}function $x(e,t,n,r){if(50<Ox)throw Ox=0,Nx=null,Error(Gc(185));rf(e,n,r),2&fx&&e===mx||(e===mx&&(!(2&fx)&&(Ex|=n),4===yx&&Vx(e,gx)),Bx(e,r),1===n&&0===fx&&!(1&t.mode)&&(kx=qp()+500,Rg&&Ig()))}function Bx(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-Vp(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=Zp(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Jp(e,e===mx?gx:0);if(0===r)null!==n&&Tp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Tp(n),1===t)0===e.tag?function(e){Rg=!0,kg(e)}(Ux.bind(null,e)):kg(Ux.bind(null,e)),Vh((function(){!(6&fx)&&Ig()})),n=null;else{switch(lf(r)){case 1:n=zp;break;case 4:n=jp;break;case 16:default:n=$p;break;case 536870912:n=Hp}n=mS(n,Hx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Hx(e,t){if(qx=-1,Fx=0,6&fx)throw Error(Gc(327));var n=e.callbackNode;if(lS()&&e.callbackNode!==n)return null;var r=Jp(e,e===mx?gx:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=tS(e,r);else{t=r;var o=fx;fx|=2;var i=Zx();for(mx===e&&gx===t||(Ix=null,kx=qp()+500,Qx(e,t));;)try{rS();break}catch(t){Jx(e,t)}pv(),cx.current=i,fx=o,null!==hx?t=0:(mx=null,gx=0,t=yx)}if(0!==t){if(2===t&&(0!==(o=ef(e))&&(r=o,t=Wx(e,o))),1===t)throw n=xx,Qx(e,0),Vx(e,r),Bx(e,qp()),n;if(6===t)Vx(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(!Um(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=tS(e,r),2===t&&(i=ef(e),0!==i&&(r=i,t=Wx(e,i))),1!==t)))throw n=xx,Qx(e,0),Vx(e,r),Bx(e,qp()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Gc(345));case 2:case 5:aS(e,Rx,Ix);break;case 3:if(Vx(e,r),(130023424&r)===r&&10<(t=Lx+500-qp())){if(0!==Jp(e,0))break;if(((o=e.suspendedLanes)&r)!==r){zx(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hh(aS.bind(null,e,Rx,Ix),t);break}aS(e,Rx,Ix);break;case 4:if(Vx(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Vp(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=qp()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ux(r/1960))-r)){e.timeoutHandle=Hh(aS.bind(null,e,Rx,Ix),r);break}aS(e,Rx,Ix);break;default:throw Error(Gc(329))}}}return Bx(e,qp()),e.callbackNode===n?Hx.bind(null,e):null}function Wx(e,t){var n=wx;return e.current.memoizedState.isDehydrated&&(Qx(e,t).flags|=256),2!==(e=tS(e,t))&&(t=Rx,Rx=n,null!==t&&Gx(t)),e}function Gx(e){null===Rx?Rx=e:Rx.push.apply(Rx,e)}function Vx(e,t){for(t&=~Cx,t&=~Ex,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vp(t),r=1<<n;e[n]=-1,t&=~r}}function Ux(e){if(6&fx)throw Error(Gc(327));lS();var t=Jp(e,0);if(!(1&t))return Bx(e,qp()),null;var n=tS(e,t);if(0!==e.tag&&2===n){var r=ef(e);0!==r&&(t=r,n=Wx(e,r))}if(1===n)throw n=xx,Qx(e,0),Vx(e,t),Bx(e,qp()),n;if(6===n)throw Error(Gc(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,aS(e,Rx,Ix),Bx(e,qp()),null}function Yx(e,t){var n=fx;fx|=1;try{return e(t)}finally{0===(fx=n)&&(kx=qp()+500,Rg&&Ig())}}function Kx(e){null!==Dx&&0===Dx.tag&&!(6&fx)&&lS();var t=fx;fx|=1;var n=px.transition,r=af;try{if(px.transition=null,af=1,e)return e()}finally{af=r,px.transition=n,!(6&(fx=t))&&Ig()}}function Xx(){vx=bx.current,dg(bx)}function Qx(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wh(n)),null!==hx)for(n=hx.return;null!==n;){var r=n;switch($g(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&yg();break;case 3:Nv(),dg(hg),dg(mg),Bv();break;case 5:Fv(r);break;case 4:Nv();break;case 13:case 19:dg(zv);break;case 10:fv(r.type._context);break;case 22:case 23:Xx()}n=n.return}if(mx=e,hx=e=bS(e.current,null),gx=vx=t,yx=0,xx=null,Cx=Ex=Sx=0,Rx=wx=null,null!==vv){for(t=0;t<vv.length;t++)if(null!==(r=(n=vv[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}vv=null}return e}function Jx(e,t){for(;;){var n=hx;try{if(pv(),Hv.current=qb,Kv){for(var r=Vv.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Kv=!1}if(Gv=0,Yv=Uv=Vv=null,Xv=!1,Qv=0,dx.current=null,null===n||null===n.return){yx=1,xx=t,hx=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=gx,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=ty(a);if(null!==f){f.flags&=-257,ny(f,a,l,0,t),1&f.mode&&ey(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)){ey(i,u,t),eS();break e}s=Error(Gc(426))}else if(Wg&&1&l.mode){var g=ty(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ny(g,a,l,0,t),ev(Yb(s,l));break e}}i=s=Yb(s,l),4!==yx&&(yx=2),null===wx?wx=[i]:wx.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,kv(i,Jb(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!==Px&&Px.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,kv(i,Zb(i,l,t));break e}}i=i.return}while(null!==i)}iS(n)}catch(e){t=e,hx===n&&null!==n&&(hx=n=n.return);continue}break}}function Zx(){var e=cx.current;return cx.current=qb,null===e?qb:e}function eS(){0!==yx&&3!==yx&&2!==yx||(yx=4),null===mx||!(268435455&Sx)&&!(268435455&Ex)||Vx(mx,gx)}function tS(e,t){var n=fx;fx|=2;var r=Zx();for(mx===e&&gx===t||(Ix=null,Qx(e,t));;)try{nS();break}catch(t){Jx(e,t)}if(pv(),fx=n,cx.current=r,null!==hx)throw Error(Gc(261));return mx=null,gx=0,yx}function nS(){for(;null!==hx;)oS(hx)}function rS(){for(;null!==hx&&!Op();)oS(hx)}function oS(e){var t=sx(e.alternate,e,vx);e.memoizedProps=e.pendingProps,null===t?iS(e):hx=t,dx.current=null}function iS(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Dy(n,t)))return n.flags&=32767,void(hx=n);if(null===e)return yx=6,void(hx=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ay(n,t,vx)))return void(hx=n);if(null!==(t=t.sibling))return void(hx=t);hx=t=e}while(null!==t);0===yx&&(yx=5)}function aS(e,t,n){var r=af,o=px.transition;try{px.transition=null,af=1,function(e,t,n,r){do{lS()}while(null!==Dx);if(6&fx)throw Error(Gc(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(Gc(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-Vp(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===mx&&(hx=mx=null,gx=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ax||(Ax=!0,mS($p,(function(){return lS(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=px.transition,px.transition=null;var a=af;af=1;var l=fx;fx|=4,dx.current=null,function(e,t){if(jh=Pf,Zm(e=Jm())){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($h={focusedElem:e,selectionRange:n},Pf=!1,qy=t;null!==qy;)if(e=(t=qy).child,1028&t.subtreeFlags&&null!==e)e.return=t,qy=e;else for(;null!==qy;){t=qy;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:$b(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(Gc(163))}}catch(e){uS(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,qy=e;break}qy=t.return}m=jy,jy=!1}(e,n),tx(n,e),eh($h),Pf=!!jh,$h=jh=null,e.current=n,rx(n),Np(),fx=l,af=a,px.transition=i}else e.current=n;if(Ax&&(Ax=!1,Dx=e,Tx=o),i=e.pendingLanes,0===i&&(Px=null),function(e){if(Gp&&"function"==typeof Gp.onCommitFiberRoot)try{Gp.onCommitFiberRoot(Wp,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Bx(e,qp()),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(Mx)throw Mx=!1,e=_x,_x=null,e;!!(1&Tx)&&0!==e.tag&&lS(),i=e.pendingLanes,1&i?e===Nx?Ox++:(Ox=0,Nx=e):Ox=0,Ig()}(e,t,n,r)}finally{px.transition=o,af=r}return null}function lS(){if(null!==Dx){var e=lf(Tx),t=px.transition,n=af;try{if(px.transition=null,af=16>e?16:e,null===Dx)var r=!1;else{if(e=Dx,Dx=null,Tx=0,6&fx)throw Error(Gc(331));var o=fx;for(fx|=4,qy=e.current;null!==qy;){var i=qy,a=i.child;if(16&qy.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(qy=u;null!==qy;){var c=qy;switch(c.tag){case 0:case 11:case 15:$y(8,c,i)}var d=c.child;if(null!==d)d.return=c,qy=d;else for(;null!==qy;){var p=(c=qy).sibling,f=c.return;if(Wy(c),c===u){qy=null;break}if(null!==p){p.return=f,qy=p;break}qy=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)}}qy=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,qy=a;else e:for(;null!==qy;){if(2048&(i=qy).flags)switch(i.tag){case 0:case 11:case 15:$y(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,qy=v;break e}qy=i.return}}var b=e.current;for(qy=b;null!==qy;){var y=(a=qy).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,qy=y;else e:for(a=b;null!==qy;){if(2048&(l=qy).flags)try{switch(l.tag){case 0:case 11:case 15:By(9,l)}}catch(e){uS(l,l.return,e)}if(l===a){qy=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,qy=x;break e}qy=l.return}}if(fx=o,Ig(),Gp&&"function"==typeof Gp.onPostCommitFiberRoot)try{Gp.onPostCommitFiberRoot(Wp,e)}catch(e){}r=!0}return r}finally{af=n,px.transition=t}}return!1}function sS(e,t,n){e=Rv(e,t=Jb(0,t=Yb(n,t),1),1),t=zx(),null!==e&&(rf(e,1,t),Bx(e,t))}function uS(e,t,n){if(3===e.tag)sS(e,e,n);else for(;null!==t;){if(3===t.tag){sS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Px||!Px.has(r))){t=Rv(t,e=Zb(t,e=Yb(n,e),1),1),e=zx(),null!==t&&(rf(t,1,e),Bx(t,e));break}}t=t.return}}function cS(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=zx(),e.pingedLanes|=e.suspendedLanes&n,mx===e&&(gx&n)===n&&(4===yx||3===yx&&(130023424&gx)===gx&&500>qp()-Lx?Qx(e,0):Cx|=n),Bx(e,t)}function dS(e,t){0===t&&(1&e.mode?(t=Xp,!(130023424&(Xp<<=1))&&(Xp=4194304)):t=1);var n=zx();null!==(e=xv(e,t))&&(rf(e,t,n),Bx(e,n))}function pS(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),dS(e,n)}function fS(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(Gc(314))}null!==r&&r.delete(t),dS(e,n)}function mS(e,t){return Dp(e,t)}function hS(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 gS(e,t,n,r){return new hS(e,t,n,r)}function vS(e){return!(!(e=e.prototype)||!e.isReactComponent)}function bS(e,t){var n=e.alternate;return null===n?((n=gS(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 yS(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)vS(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case ud:return xS(n.children,o,i,t);case cd:a=8,o|=8;break;case dd:return(e=gS(12,n,t,2|o)).elementType=dd,e.lanes=i,e;case hd:return(e=gS(13,n,t,o)).elementType=hd,e.lanes=i,e;case gd:return(e=gS(19,n,t,o)).elementType=gd,e.lanes=i,e;case yd:return SS(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case pd:a=10;break e;case fd:a=9;break e;case md:a=11;break e;case vd:a=14;break e;case bd:a=16,r=null;break e}throw Error(Gc(130,null==e?e:typeof e,""))}return(t=gS(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function xS(e,t,n,r){return(e=gS(7,e,r,t)).lanes=n,e}function SS(e,t,n,r){return(e=gS(22,e,r,t)).elementType=yd,e.lanes=n,e.stateNode={isHidden:!1},e}function ES(e,t,n){return(e=gS(6,e,null,t)).lanes=n,e}function CS(e,t,n){return(t=gS(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wS(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=nf(0),this.expirationTimes=nf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function RS(e,t,n,r,o,i,a,l,s){return e=new wS(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=gS(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ev(i),e}function LS(e){if(!e)return fg;e:{if(Ip(e=e._reactInternals)!==e||1!==e.tag)throw Error(Gc(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bg(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Gc(171))}if(1===e.tag){var n=e.type;if(bg(n))return Sg(e,n,t)}return t}function kS(e,t,n,r,o,i,a,l,s){return(e=RS(n,r,!0,e,0,i,0,l,s)).context=LS(null),n=e.current,(i=wv(r=zx(),o=jx(n))).callback=null!=t?t:null,Rv(n,i,o),e.current.lanes=o,rf(e,o,r),Bx(e,r),e}function IS(e,t,n,r){var o=t.current,i=zx(),a=jx(o);return n=LS(n),null===t.context?t.context=n:t.pendingContext=n,(t=wv(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Rv(o,t,a))&&($x(e,o,a,i),Lv(e,o,a)),a}function MS(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function _S(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function PS(e,t){_S(e,t),(e=e.alternate)&&_S(e,t)}sx=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||hg.current)oy=!0;else{if(!(e.lanes&n||128&t.flags))return oy=!1,function(e,t,n){switch(t.tag){case 3:my(t),Zg();break;case 5:qv(t);break;case 1:bg(t.type)&&Eg(t);break;case 4:Ov(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;pg(sv,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(pg(zv,1&zv.current),t.flags|=128,null):n&t.child.childLanes?Ey(e,t,n):(pg(zv,1&zv.current),null!==(e=My(e,t,n))?e.sibling:null);pg(zv,1&zv.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return ky(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),pg(zv,zv.current),r)break;return null;case 22:case 23:return t.lanes=0,uy(e,t,n)}return My(e,t,n)}(e,t,n);oy=!!(131072&e.flags)}else oy=!1,Wg&&1048576&t.flags&&zg(t,Ag,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Iy(e,t),e=t.pendingProps;var o=vg(t,mg.current);hv(t,n),o=tb(null,t,r,e,o,n);var i=nb();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,bg(r)?(i=!0,Eg(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ev(t),o.updater=Hb,t.stateNode=o,o._reactInternals=t,Ub(t,r,e,n),t=fy(null,t,r,!0,i,n)):(t.tag=0,Wg&&i&&jg(t),iy(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Iy(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return vS(e)?1:0;if(null!=e){if((e=e.$$typeof)===md)return 11;if(e===vd)return 14}return 2}(r),e=$b(r,e),o){case 0:t=dy(null,t,r,e,n);break e;case 1:t=py(null,t,r,e,n);break e;case 11:t=ay(null,t,r,e,n);break e;case 14:t=ly(null,t,r,$b(r.type,e),n);break e}throw Error(Gc(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,dy(e,t,r,o=t.elementType===r?o:$b(r,o),n);case 1:return r=t.type,o=t.pendingProps,py(e,t,r,o=t.elementType===r?o:$b(r,o),n);case 3:e:{if(my(t),null===e)throw Error(Gc(387));r=t.pendingProps,o=(i=t.memoizedState).element,Cv(e,t),Iv(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=hy(e,t,r,n,o=Yb(Error(Gc(423)),t));break e}if(r!==o){t=hy(e,t,r,n,o=Yb(Error(Gc(424)),t));break e}for(Hg=Kh(t.stateNode.containerInfo.firstChild),Bg=t,Wg=!0,Gg=null,n=lv(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Zg(),r===o){t=My(e,t,n);break e}iy(e,t,r,n)}t=t.child}return t;case 5:return qv(t),null===e&&Kg(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Bh(r,o)?a=null:null!==i&&Bh(r,i)&&(t.flags|=32),cy(e,t),iy(e,t,a,n),t.child;case 6:return null===e&&Kg(t),null;case 13:return Ey(e,t,n);case 4:return Ov(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=av(t,null,r,n):iy(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ay(e,t,r,o=t.elementType===r?o:$b(r,o),n);case 7:return iy(e,t,t.pendingProps,n),t.child;case 8:case 12:return iy(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,pg(sv,r._currentValue),r._currentValue=a,null!==i)if(Um(i.value,a)){if(i.children===o.children&&!hg.current){t=My(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=wv(-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),mv(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(Gc(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),mv(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}iy(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hv(t,n),r=r(o=gv(o)),t.flags|=1,iy(e,t,r,n),t.child;case 14:return o=$b(r=t.type,t.pendingProps),ly(e,t,r,o=$b(r.type,o),n);case 15:return sy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$b(r,o),Iy(e,t),t.tag=1,bg(r)?(e=!0,Eg(t)):e=!1,hv(t,n),Gb(t,r,o),Ub(t,r,o,n),fy(null,t,r,!0,e,n);case 19:return ky(e,t,n);case 22:return uy(e,t,n)}throw Error(Gc(156,t.tag))};var AS="function"==typeof reportError?reportError:function(e){console.error(e)};function DS(e){this._internalRoot=e}function TS(e){this._internalRoot=e}function OS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function NS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qS(){}function FS(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=MS(a);l.call(e)}}IS(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=MS(a);i.call(e)}}var a=kS(t,r,e,0,null,!1,0,"",qS);return e._reactRootContainer=a,e[eg]=a.current,Ih(8===e.nodeType?e.parentNode:e),Kx(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=MS(s);l.call(e)}}var s=RS(e,0,!1,null,0,!1,0,"",qS);return e._reactRootContainer=s,e[eg]=s.current,Ih(8===e.nodeType?e.parentNode:e),Kx((function(){IS(t,s,n,r)})),s}(n,t,e,o,r);return MS(a)}TS.prototype.render=DS.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Gc(409));IS(e,t,null,null)},TS.prototype.unmount=DS.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Kx((function(){IS(null,e,null,null)})),t[eg]=null}},TS.prototype.unstable_scheduleHydration=function(e){if(e){var t=df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xf.length&&0!==t&&t<xf[n].priority;n++);xf.splice(n,0,e),0===n&&wf(e)}},sf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qp(t.pendingLanes);0!==n&&(of(t,1|n),Bx(t,qp()),!(6&fx)&&(kx=qp()+500,Ig()))}break;case 13:Kx((function(){var t=xv(e,1);if(null!==t){var n=zx();$x(t,e,1,n)}})),PS(e,1)}},uf=function(e){if(13===e.tag){var t=xv(e,134217728);if(null!==t)$x(t,e,134217728,zx());PS(e,134217728)}},cf=function(e){if(13===e.tag){var t=jx(e),n=xv(e,t);if(null!==n)$x(n,e,t,zx());PS(e,t)}},df=function(){return af},pf=function(e,t){var n=af;try{return af=e,t()}finally{af=n}},sp=function(e,t,n){switch(t){case"input":if(Fd(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=lg(r);if(!o)throw Error(Gc(90));Dd(r),Fd(r,o)}}}break;case"textarea":Gd(e,n);break;case"select":null!=(t=n.value)&&Bd(e,!!n.multiple,t,!1)}},mp=Yx,hp=Kx;var zS={usingClientEntryPoint:!1,Events:[ig,ag,lg,pp,fp,Yx]},jS={findFiberByHostInstance:og,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$S={bundleType:jS.bundleType,version:jS.version,rendererPackageName:jS.rendererPackageName,rendererConfig:jS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ad.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Pp(e))?null:e.stateNode},findFiberByHostInstance:jS.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 BS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!BS.isDisabled&&BS.supportsFiber)try{Wp=BS.inject($S),Gp=BS}catch(Xd){}}zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zS,zc.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!OS(t))throw Error(Gc(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:sd,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},zc.createRoot=function(e,t){if(!OS(e))throw Error(Gc(299));var n=!1,r="",o=AS;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=RS(e,1,!1,null,0,n,0,r,o),e[eg]=t.current,Ih(8===e.nodeType?e.parentNode:e),new DS(t)},zc.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(Gc(188));throw e=Object.keys(e).join(","),Error(Gc(268,e))}return e=null===(e=Pp(t))?null:e.stateNode},zc.flushSync=function(e){return Kx(e)},zc.hydrate=function(e,t,n){if(!NS(t))throw Error(Gc(200));return FS(null,e,t,!0,n)},zc.hydrateRoot=function(e,t,n){if(!OS(e))throw Error(Gc(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=AS;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=kS(t,null,e,1,null!=n?n:null,o,0,i,a),e[eg]=t.current,Ih(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 TS(t)},zc.render=function(e,t,n){if(!NS(t))throw Error(Gc(200));return FS(null,e,t,!1,n)},zc.unmountComponentAtNode=function(e){if(!NS(e))throw Error(Gc(40));return!!e._reactRootContainer&&(Kx((function(){FS(null,null,e,!1,(function(){e._reactRootContainer=null,e[eg]=null}))})),!0)},zc.unstable_batchedUpdates=Yx,zc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!NS(n))throw Error(Gc(200));if(null==e||void 0===e._reactInternals)throw Error(Gc(38));return FS(e,t,n,!1,r)},zc.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)}}(),Fc.exports=zc;var HS=Fc.exports,WS=n(HS),GS=!1,VS=Wn.createContext(null),US="unmounted",YS="exited",KS="entering",XS="entered",QS="exiting",JS=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=YS,r.appearStatus=KS):o=XS:o=t.unmountOnExit||t.mountOnEnter?US:YS,r.state={status:o},r.nextCallback=null,r}an(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===US?{status:YS}: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!==KS&&n!==XS&&(t=KS):n!==KS&&n!==XS||(t=QS)}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===KS){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:WS.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===YS&&this.setState({status:US})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[WS.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||GS?this.safeSetState({status:XS},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:KS},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:XS},(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:WS.findDOMNode(this);t&&!GS?(this.props.onExit(r),this.safeSetState({status:QS},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:YS},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:YS},(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:WS.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===US)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=rn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Wn.createElement(VS.Provider,{value:null},"function"==typeof n?n(e,r):Wn.cloneElement(Wn.Children.only(n),r))},t}(Wn.Component);function ZS(){}JS.contextType=VS,JS.propTypes={},JS.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ZS,onEntering:ZS,onEntered:ZS,onExit:ZS,onExiting:ZS,onExited:ZS},JS.UNMOUNTED=US,JS.EXITED=YS,JS.ENTERING=KS,JS.ENTERED=XS,JS.EXITING=QS;var eE=JS;function tE(e,t){var n=Object.create(null);return e&&Hn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Hn.isValidElement(e)?t(e):e}(e)})),n}function nE(e,t,n){return null!=n[t]?n[t]:e.props[t]}function rE(e,t,n){var r=tE(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(Hn.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=Hn.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&Hn.isValidElement(u)&&(o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:nE(a,"exit",e),enter:nE(a,"enter",e)})):o[i]=Hn.cloneElement(a,{in:!1}):o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:nE(a,"exit",e),enter:nE(a,"enter",e)})}})),o}var oE=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},iE=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}an(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,tE(n.children,(function(e){return Hn.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:nE(e,"appear",n),enter:nE(e,"enter",n),exit:nE(e,"exit",n)})}))):rE(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=tE(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Xt({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rn(e,["component","childFactory"]),o=this.state.contextValue,i=oE(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Wn.createElement(VS.Provider,{value:o},i):Wn.createElement(VS.Provider,{value:o},Wn.createElement(t,r,i))},t}(Wn.Component);iE.propTypes={},iE.defaultProps={component:"div",childFactory:function(e){return e}};var aE=iE;const lE=e=>e.scrollTop;function sE(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 uE(e){return Fu("MuiPaper",e)}zu("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 cE=["className","component","elevation","square","variant"],dE=pc("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 Lr({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&&Lr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${cu("#fff",fc(t.elevation))}, ${cu("#fff",fc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var pE=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=kr(n,cE),u=Lr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},uE,o)})(u);return Bs.jsx(dE,Lr({as:o,ownerState:u,className:hc(c.root,r),ref:t},s))}));function fE(e){return"string"==typeof e}function mE(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 hE(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 gE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vE(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,gE),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=Ys(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},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=mE(Xt({},o,r)),l=hE(r),s=hE(o),u=t(a),c=Ys(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=Xt({},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=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||fE(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:ol(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var bE=zu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const yE=["center","classes","className"];let xE,SE,EE,CE,wE=e=>e;const RE=ma(xE||(xE=wE`
45
+ */function Qc(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 Jc=new Set,Zc={};function ed(e,t){td(e,t),td(e+"Capture",t)}function td(e,t){for(Zc[e]=t,e=0;e<t.length;e++)Jc.add(t[e])}var nd=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rd=Object.prototype.hasOwnProperty,od=/^[: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]*$/,id={},ad={};function ld(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 sd={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sd[e]=new ld(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sd[t]=new ld(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sd[e]=new ld(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sd[e]=new ld(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){sd[e]=new ld(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sd[e]=new ld(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sd[e]=new ld(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sd[e]=new ld(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sd[e]=new ld(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ud=/[\-:]([a-z])/g;function cd(e){return e[1].toUpperCase()}function dd(e,t,n,r){var o=sd.hasOwnProperty(t)?sd[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!!rd.call(ad,e)||!rd.call(id,e)&&(od.test(e)?ad[e]=!0:(id[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(ud,cd);sd[t]=new ld(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(ud,cd);sd[t]=new ld(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(ud,cd);sd[t]=new ld(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sd[e]=new ld(e,1,!1,e.toLowerCase(),null,!1,!1)})),sd.xlinkHref=new ld("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sd[e]=new ld(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pd=Kc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fd=Symbol.for("react.element"),md=Symbol.for("react.portal"),hd=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),vd=Symbol.for("react.profiler"),bd=Symbol.for("react.provider"),yd=Symbol.for("react.context"),xd=Symbol.for("react.forward_ref"),Sd=Symbol.for("react.suspense"),Ed=Symbol.for("react.suspense_list"),Cd=Symbol.for("react.memo"),wd=Symbol.for("react.lazy"),Rd=Symbol.for("react.offscreen"),Ld=Symbol.iterator;function kd(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ld&&e[Ld]||e["@@iterator"])?e:null}var Md,Id=Object.assign;function _d(e){if(void 0===Md)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Md=t&&t[1]||""}return"\n"+Md+e}var Pd=!1;function Ad(e,t){if(!e||Pd)return"";Pd=!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{Pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_d(e):""}function Dd(e){switch(e.tag){case 5:return _d(e.type);case 16:return _d("Lazy");case 13:return _d("Suspense");case 19:return _d("SuspenseList");case 0:case 2:case 15:return e=Ad(e.type,!1);case 11:return e=Ad(e.type.render,!1);case 1:return e=Ad(e.type,!0);default:return""}}function Td(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 hd:return"Fragment";case md:return"Portal";case vd:return"Profiler";case gd:return"StrictMode";case Sd:return"Suspense";case Ed:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case yd:return(e.displayName||"Context")+".Consumer";case bd:return(e._context.displayName||"Context")+".Provider";case xd:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Cd:return null!==(t=e.displayName||null)?t:Td(e.type)||"Memo";case wd:t=e._payload,e=e._init;try{return Td(e(t))}catch(e){}}return null}function Od(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 Td(t);case 8:return t===gd?"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 Nd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function qd(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Fd(e){e._valueTracker||(e._valueTracker=function(e){var t=qd(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 zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qd(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function jd(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 $d(e,t){var n=t.checked;return Id({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Bd(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Nd(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 Hd(e,t){null!=(t=t.checked)&&dd(e,"checked",t,!1)}function Wd(e,t){Hd(e,t);var n=Nd(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")?Vd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vd(e,t.type,Nd(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Gd(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 Vd(e,t,n){"number"===t&&jd(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ud=Array.isArray;function Yd(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=""+Nd(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 Kd(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Qc(91));return Id({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xd(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Qc(92));if(Ud(n)){if(1<n.length)throw Error(Qc(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Nd(n)}}function Qd(e,t){var n=Nd(t.value),r=Nd(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 Jd(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Zd(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 ep(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zd(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tp,np,rp=(np=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tp=tp||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return np(e,t)}))}:np);function op(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 ip={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},ap=["Webkit","ms","Moz","O"];function lp(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ip.hasOwnProperty(e)&&ip[e]?(""+t).trim():t+"px"}function sp(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lp(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ip).forEach((function(e){ap.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ip[t]=ip[e]}))}));var up=Id({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 cp(e,t){if(t){if(up[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Qc(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Qc(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qc(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Qc(62))}}function dp(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 pp=null;function fp(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var mp=null,hp=null,gp=null;function vp(e){if(e=dg(e)){if("function"!=typeof mp)throw Error(Qc(280));var t=e.stateNode;t&&(t=fg(t),mp(e.stateNode,e.type,t))}}function bp(e){hp?gp?gp.push(e):gp=[e]:hp=e}function yp(){if(hp){var e=hp,t=gp;if(gp=hp=null,vp(e),t)for(e=0;e<t.length;e++)vp(t[e])}}function xp(e,t){return e(t)}function Sp(){}var Ep=!1;function Cp(e,t,n){if(Ep)return e(t,n);Ep=!0;try{return xp(e,t,n)}finally{Ep=!1,(null!==hp||null!==gp)&&(Sp(),yp())}}function wp(e,t){var n=e.stateNode;if(null===n)return null;var r=fg(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(Qc(231,t,typeof n));return n}var Rp=!1;if(nd)try{var Lp={};Object.defineProperty(Lp,"passive",{get:function(){Rp=!0}}),window.addEventListener("test",Lp,Lp),window.removeEventListener("test",Lp,Lp)}catch(np){Rp=!1}function kp(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 Mp=!1,Ip=null,_p=!1,Pp=null,Ap={onError:function(e){Mp=!0,Ip=e}};function Dp(e,t,n,r,o,i,a,l,s){Mp=!1,Ip=null,kp.apply(Ap,arguments)}function Tp(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 Op(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 Np(e){if(Tp(e)!==e)throw Error(Qc(188))}function qp(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Tp(e)))throw Error(Qc(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 Np(o),e;if(i===r)return Np(o),t;i=i.sibling}throw Error(Qc(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(Qc(189))}}if(n.alternate!==r)throw Error(Qc(190))}if(3!==n.tag)throw Error(Qc(188));return n.stateNode.current===n?e:t}(e),null!==e?Fp(e):null}function Fp(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Fp(e);if(null!==t)return t;e=e.sibling}return null}var zp=Xc.unstable_scheduleCallback,jp=Xc.unstable_cancelCallback,$p=Xc.unstable_shouldYield,Bp=Xc.unstable_requestPaint,Hp=Xc.unstable_now,Wp=Xc.unstable_getCurrentPriorityLevel,Gp=Xc.unstable_ImmediatePriority,Vp=Xc.unstable_UserBlockingPriority,Up=Xc.unstable_NormalPriority,Yp=Xc.unstable_LowPriority,Kp=Xc.unstable_IdlePriority,Xp=null,Qp=null;var Jp=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zp(e)/ef|0)|0},Zp=Math.log,ef=Math.LN2;var tf=64,nf=4194304;function rf(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 of(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=rf(l):0!==(i&=a)&&(r=rf(i))}else 0!==(a=n&~o)?r=rf(a):0!==i&&(r=rf(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-Jp(t)),r|=e[n],t&=~o;return r}function af(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 lf(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sf(){var e=tf;return!(4194240&(tf<<=1))&&(tf=64),e}function uf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cf(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Jp(t)]=n}function df(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jp(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pf=0;function ff(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var mf,hf,gf,vf,bf,yf=!1,xf=[],Sf=null,Ef=null,Cf=null,wf=new Map,Rf=new Map,Lf=[],kf="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 Mf(e,t){switch(e){case"focusin":case"focusout":Sf=null;break;case"dragenter":case"dragleave":Ef=null;break;case"mouseover":case"mouseout":Cf=null;break;case"pointerover":case"pointerout":wf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rf.delete(t.pointerId)}}function If(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=dg(t))&&hf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function _f(e){var t=cg(e.target);if(null!==t){var n=Tp(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Op(n)))return e.blockedOn=t,void bf(e.priority,(function(){gf(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 Pf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=dg(n))&&hf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);pp=r,n.target.dispatchEvent(r),pp=null,t.shift()}return!0}function Af(e,t,n){Pf(e)&&n.delete(t)}function Df(){yf=!1,null!==Sf&&Pf(Sf)&&(Sf=null),null!==Ef&&Pf(Ef)&&(Ef=null),null!==Cf&&Pf(Cf)&&(Cf=null),wf.forEach(Af),Rf.forEach(Af)}function Tf(e,t){e.blockedOn===t&&(e.blockedOn=null,yf||(yf=!0,Xc.unstable_scheduleCallback(Xc.unstable_NormalPriority,Df)))}function Of(e){function t(t){return Tf(t,e)}if(0<xf.length){Tf(xf[0],e);for(var n=1;n<xf.length;n++){var r=xf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Sf&&Tf(Sf,e),null!==Ef&&Tf(Ef,e),null!==Cf&&Tf(Cf,e),wf.forEach(t),Rf.forEach(t),n=0;n<Lf.length;n++)(r=Lf[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lf.length&&null===(n=Lf[0]).blockedOn;)_f(n),null===n.blockedOn&&Lf.shift()}var Nf=pd.ReactCurrentBatchConfig,qf=!0;function Ff(e,t,n,r){var o=pf,i=Nf.transition;Nf.transition=null;try{pf=1,jf(e,t,n,r)}finally{pf=o,Nf.transition=i}}function zf(e,t,n,r){var o=pf,i=Nf.transition;Nf.transition=null;try{pf=4,jf(e,t,n,r)}finally{pf=o,Nf.transition=i}}function jf(e,t,n,r){if(qf){var o=Bf(e,t,n,r);if(null===o)Nh(e,t,r,$f,n),Mf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Sf=If(Sf,e,t,n,r,o),!0;case"dragenter":return Ef=If(Ef,e,t,n,r,o),!0;case"mouseover":return Cf=If(Cf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return wf.set(i,If(wf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rf.set(i,If(Rf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mf(e,r),4&t&&-1<kf.indexOf(e)){for(;null!==o;){var i=dg(o);if(null!==i&&mf(i),null===(i=Bf(e,t,n,r))&&Nh(e,t,r,$f,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Nh(e,t,r,null,n)}}var $f=null;function Bf(e,t,n,r){if($f=null,null!==(e=cg(e=fp(r))))if(null===(t=Tp(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Op(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 $f=e,null}function Hf(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(Wp()){case Gp:return 1;case Vp:return 4;case Up:case Yp:return 16;case Kp:return 536870912;default:return 16}default:return 16}}var Wf=null,Gf=null,Vf=null;function Uf(){if(Vf)return Vf;var e,t,n=Gf,r=n.length,o="value"in Wf?Wf.value:Wf.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 Vf=o.slice(e,1<t?1-t:void 0)}function Yf(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 Kf(){return!0}function Xf(){return!1}function Qf(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)?Kf:Xf,this.isPropagationStopped=Xf,this}return Id(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=Kf)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kf)},persist:function(){},isPersistent:Kf}),t}var Jf,Zf,em,tm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nm=Qf(tm),rm=Id({},tm,{view:0,detail:0}),om=Qf(rm),im=Id({},rm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vm,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!==em&&(em&&"mousemove"===e.type?(Jf=e.screenX-em.screenX,Zf=e.screenY-em.screenY):Zf=Jf=0,em=e),Jf)},movementY:function(e){return"movementY"in e?e.movementY:Zf}}),am=Qf(im),lm=Qf(Id({},im,{dataTransfer:0})),sm=Qf(Id({},rm,{relatedTarget:0})),um=Qf(Id({},tm,{animationName:0,elapsedTime:0,pseudoElement:0})),cm=Id({},tm,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dm=Qf(cm),pm=Qf(Id({},tm,{data:0})),fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mm={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"},hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hm[e])&&!!t[e]}function vm(){return gm}var bm=Id({},rm,{key:function(e){if(e.key){var t=fm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yf(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vm,charCode:function(e){return"keypress"===e.type?Yf(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yf(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ym=Qf(bm),xm=Qf(Id({},im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sm=Qf(Id({},rm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vm})),Em=Qf(Id({},tm,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cm=Id({},im,{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}),wm=Qf(Cm),Rm=[9,13,27,32],Lm=nd&&"CompositionEvent"in window,km=null;nd&&"documentMode"in document&&(km=document.documentMode);var Mm=nd&&"TextEvent"in window&&!km,Im=nd&&(!Lm||km&&8<km&&11>=km),_m=String.fromCharCode(32),Pm=!1;function Am(e,t){switch(e){case"keyup":return-1!==Rm.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dm(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Tm=!1;var Om={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 Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Om[e.type]:"textarea"===t}function qm(e,t,n,r){bp(r),0<(t=Fh(t,"onChange")).length&&(n=new nm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fm=null,zm=null;function jm(e){_h(e,0)}function $m(e){if(zd(pg(e)))return e}function Bm(e,t){if("change"===e)return t}var Hm=!1;if(nd){var Wm;if(nd){var Gm="oninput"in document;if(!Gm){var Vm=document.createElement("div");Vm.setAttribute("oninput","return;"),Gm="function"==typeof Vm.oninput}Wm=Gm}else Wm=!1;Hm=Wm&&(!document.documentMode||9<document.documentMode)}function Um(){Fm&&(Fm.detachEvent("onpropertychange",Ym),zm=Fm=null)}function Ym(e){if("value"===e.propertyName&&$m(zm)){var t=[];qm(t,zm,e,fp(e)),Cp(jm,t)}}function Km(e,t,n){"focusin"===e?(Um(),zm=n,(Fm=t).attachEvent("onpropertychange",Ym)):"focusout"===e&&Um()}function Xm(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $m(zm)}function Qm(e,t){if("click"===e)return $m(t)}function Jm(e,t){if("input"===e||"change"===e)return $m(t)}var Zm="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eh(e,t){if(Zm(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(!rd.call(t,o)||!Zm(e[o],t[o]))return!1}return!0}function th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nh(e,t){var n,r=th(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=th(r)}}function rh(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?rh(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oh(){for(var e=window,t=jd();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=jd((e=t.contentWindow).document)}return t}function ih(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 ah(e){var t=oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rh(n.ownerDocument.documentElement,n)){if(null!==r&&ih(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=nh(n,i);var a=nh(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 lh=nd&&"documentMode"in document&&11>=document.documentMode,sh=null,uh=null,ch=null,dh=!1;function ph(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dh||null==sh||sh!==jd(r)||("selectionStart"in(r=sh)&&ih(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},ch&&eh(ch,r)||(ch=r,0<(r=Fh(uh,"onSelect")).length&&(t=new nm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sh)))}function fh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mh={animationend:fh("Animation","AnimationEnd"),animationiteration:fh("Animation","AnimationIteration"),animationstart:fh("Animation","AnimationStart"),transitionend:fh("Transition","TransitionEnd")},hh={},gh={};function vh(e){if(hh[e])return hh[e];if(!mh[e])return e;var t,n=mh[e];for(t in n)if(n.hasOwnProperty(t)&&t in gh)return hh[e]=n[t];return e}nd&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete mh.animationend.animation,delete mh.animationiteration.animation,delete mh.animationstart.animation),"TransitionEvent"in window||delete mh.transitionend.transition);var bh=vh("animationend"),yh=vh("animationiteration"),xh=vh("animationstart"),Sh=vh("transitionend"),Eh=new Map,Ch="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 wh(e,t){Eh.set(e,t),ed(t,[e])}for(var Rh=0;Rh<Ch.length;Rh++){var Lh=Ch[Rh];wh(Lh.toLowerCase(),"on"+(Lh[0].toUpperCase()+Lh.slice(1)))}wh(bh,"onAnimationEnd"),wh(yh,"onAnimationIteration"),wh(xh,"onAnimationStart"),wh("dblclick","onDoubleClick"),wh("focusin","onFocus"),wh("focusout","onBlur"),wh(Sh,"onTransitionEnd"),td("onMouseEnter",["mouseout","mouseover"]),td("onMouseLeave",["mouseout","mouseover"]),td("onPointerEnter",["pointerout","pointerover"]),td("onPointerLeave",["pointerout","pointerover"]),ed("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ed("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ed("onBeforeInput",["compositionend","keypress","textInput","paste"]),ed("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ed("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ed("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kh="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(" "),Mh=new Set("cancel close invalid load scroll toggle".split(" ").concat(kh));function Ih(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Dp.apply(this,arguments),Mp){if(!Mp)throw Error(Qc(198));var u=Ip;Mp=!1,Ip=null,_p||(_p=!0,Pp=u)}}(r,t,void 0,e),e.currentTarget=null}function _h(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;Ih(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;Ih(o,l,u),i=s}}}if(_p)throw e=Pp,_p=!1,Pp=null,e}function Ph(e,t){var n=t[lg];void 0===n&&(n=t[lg]=new Set);var r=e+"__bubble";n.has(r)||(Oh(t,e,2,!1),n.add(r))}function Ah(e,t,n){var r=0;t&&(r|=4),Oh(n,e,r,t)}var Dh="_reactListening"+Math.random().toString(36).slice(2);function Th(e){if(!e[Dh]){e[Dh]=!0,Jc.forEach((function(t){"selectionchange"!==t&&(Mh.has(t)||Ah(t,!1,e),Ah(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Dh]||(t[Dh]=!0,Ah("selectionchange",!1,t))}}function Oh(e,t,n,r){switch(Hf(t)){case 1:var o=Ff;break;case 4:o=zf;break;default:o=jf}n=o.bind(null,t,n,e),o=void 0,!Rp||"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 Nh(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=cg(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Cp((function(){var r=i,o=fp(n),a=[];e:{var l=Eh.get(e);if(void 0!==l){var s=nm,u=e;switch(e){case"keypress":if(0===Yf(n))break e;case"keydown":case"keyup":s=ym;break;case"focusin":u="focus",s=sm;break;case"focusout":u="blur",s=sm;break;case"beforeblur":case"afterblur":s=sm;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=am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Sm;break;case bh:case yh:case xh:s=um;break;case Sh:s=Em;break;case"scroll":s=om;break;case"wheel":s=wm;break;case"copy":case"cut":case"paste":s=dm;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,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=wp(m,p))&&c.push(qh(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===pp||!(u=n.relatedTarget||n.fromElement)||!cg(u)&&!u[ag])&&(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)?cg(u):null)&&(u!==(d=Tp(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=am,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=xm,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:pg(s),f=null==u?l:pg(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,cg(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=zh(f))m++;for(f=0,h=p;h;h=zh(h))f++;for(;0<m-f;)c=zh(c),m--;for(;0<f-m;)p=zh(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=zh(c),p=zh(p)}c=null}else c=null;null!==s&&jh(a,l,s,c,!1),null!==u&&null!==d&&jh(a,d,u,c,!0)}if("select"===(s=(l=r?pg(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Bm;else if(Nm(l))if(Hm)g=Jm;else{g=Xm;var v=Km}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Qm);switch(g&&(g=g(e,r))?qm(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Vd(l,"number",l.value)),v=r?pg(r):window,e){case"focusin":(Nm(v)||"true"===v.contentEditable)&&(sh=v,uh=r,ch=null);break;case"focusout":ch=uh=sh=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,ph(a,n,o);break;case"selectionchange":if(lh)break;case"keydown":case"keyup":ph(a,n,o)}var b;if(Lm)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 Tm?Am(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Im&&"ko"!==n.locale&&(Tm||"onCompositionStart"!==y?"onCompositionEnd"===y&&Tm&&(b=Uf()):(Gf="value"in(Wf=o)?Wf.value:Wf.textContent,Tm=!0)),0<(v=Fh(r,y)).length&&(y=new pm(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Dm(n))&&(y.data=b))),(b=Mm?function(e,t){switch(e){case"compositionend":return Dm(t);case"keypress":return 32!==t.which?null:(Pm=!0,_m);case"textInput":return(e=t.data)===_m&&Pm?null:e;default:return null}}(e,n):function(e,t){if(Tm)return"compositionend"===e||!Lm&&Am(e,t)?(e=Uf(),Vf=Gf=Wf=null,Tm=!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 Im&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Fh(r,"onBeforeInput")).length&&(o=new pm("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}_h(a,t)}))}function qh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fh(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=wp(e,n))&&r.unshift(qh(e,i,o)),null!=(i=wp(e,t))&&r.push(qh(e,i,o))),e=e.return}return r}function zh(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jh(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=wp(n,i))&&a.unshift(qh(n,s,l)):o||null!=(s=wp(n,i))&&a.push(qh(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var $h=/\r\n?/g,Bh=/\u0000|\uFFFD/g;function Hh(e){return("string"==typeof e?e:""+e).replace($h,"\n").replace(Bh,"")}function Wh(e,t,n){if(t=Hh(t),Hh(e)!==t&&n)throw Error(Qc(425))}function Gh(){}var Vh=null,Uh=null;function Yh(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 Kh="function"==typeof setTimeout?setTimeout:void 0,Xh="function"==typeof clearTimeout?clearTimeout:void 0,Qh="function"==typeof Promise?Promise:void 0,Jh="function"==typeof queueMicrotask?queueMicrotask:void 0!==Qh?function(e){return Qh.resolve(null).then(e).catch(Zh)}:Kh;function Zh(e){setTimeout((function(){throw e}))}function eg(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 Of(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Of(t)}function tg(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 ng(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 rg=Math.random().toString(36).slice(2),og="__reactFiber$"+rg,ig="__reactProps$"+rg,ag="__reactContainer$"+rg,lg="__reactEvents$"+rg,sg="__reactListeners$"+rg,ug="__reactHandles$"+rg;function cg(e){var t=e[og];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ag]||n[og]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ng(e);null!==e;){if(n=e[og])return n;e=ng(e)}return t}n=(e=n).parentNode}return null}function dg(e){return!(e=e[og]||e[ag])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pg(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Qc(33))}function fg(e){return e[ig]||null}var mg=[],hg=-1;function gg(e){return{current:e}}function vg(e){0>hg||(e.current=mg[hg],mg[hg]=null,hg--)}function bg(e,t){hg++,mg[hg]=e.current,e.current=t}var yg={},xg=gg(yg),Sg=gg(!1),Eg=yg;function Cg(e,t){var n=e.type.contextTypes;if(!n)return yg;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 wg(e){return null!=(e=e.childContextTypes)}function Rg(){vg(Sg),vg(xg)}function Lg(e,t,n){if(xg.current!==yg)throw Error(Qc(168));bg(xg,t),bg(Sg,n)}function kg(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(Qc(108,Od(e)||"Unknown",o));return Id({},n,r)}function Mg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yg,Eg=xg.current,bg(xg,e),bg(Sg,Sg.current),!0}function Ig(e,t,n){var r=e.stateNode;if(!r)throw Error(Qc(169));n?(e=kg(e,t,Eg),r.__reactInternalMemoizedMergedChildContext=e,vg(Sg),vg(xg),bg(xg,e)):vg(Sg),bg(Sg,n)}var _g=null,Pg=!1,Ag=!1;function Dg(e){null===_g?_g=[e]:_g.push(e)}function Tg(){if(!Ag&&null!==_g){Ag=!0;var e=0,t=pf;try{var n=_g;for(pf=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}_g=null,Pg=!1}catch(t){throw null!==_g&&(_g=_g.slice(e+1)),zp(Gp,Tg),t}finally{pf=t,Ag=!1}}return null}var Og=[],Ng=0,qg=null,Fg=0,zg=[],jg=0,$g=null,Bg=1,Hg="";function Wg(e,t){Og[Ng++]=Fg,Og[Ng++]=qg,qg=e,Fg=t}function Gg(e,t,n){zg[jg++]=Bg,zg[jg++]=Hg,zg[jg++]=$g,$g=e;var r=Bg;e=Hg;var o=32-Jp(r)-1;r&=~(1<<o),n+=1;var i=32-Jp(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Bg=1<<32-Jp(t)+o|n<<o|r,Hg=i+e}else Bg=1<<i|n<<o|r,Hg=e}function Vg(e){null!==e.return&&(Wg(e,1),Gg(e,1,0))}function Ug(e){for(;e===qg;)qg=Og[--Ng],Og[Ng]=null,Fg=Og[--Ng],Og[Ng]=null;for(;e===$g;)$g=zg[--jg],zg[jg]=null,Hg=zg[--jg],zg[jg]=null,Bg=zg[--jg],zg[jg]=null}var Yg=null,Kg=null,Xg=!1,Qg=null;function Jg(e,t){var n=ES(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 Zg(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,Yg=e,Kg=tg(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Yg=e,Kg=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$g?{id:Bg,overflow:Hg}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ES(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Yg=e,Kg=null,!0);default:return!1}}function ev(e){return!(!(1&e.mode)||128&e.flags)}function tv(e){if(Xg){var t=Kg;if(t){var n=t;if(!Zg(e,t)){if(ev(e))throw Error(Qc(418));t=tg(n.nextSibling);var r=Yg;t&&Zg(e,t)?Jg(r,n):(e.flags=-4097&e.flags|2,Xg=!1,Yg=e)}}else{if(ev(e))throw Error(Qc(418));e.flags=-4097&e.flags|2,Xg=!1,Yg=e}}}function nv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Yg=e}function rv(e){if(e!==Yg)return!1;if(!Xg)return nv(e),Xg=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Yh(e.type,e.memoizedProps)),t&&(t=Kg)){if(ev(e))throw ov(),Error(Qc(418));for(;t;)Jg(e,t),t=tg(t.nextSibling)}if(nv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Qc(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Kg=tg(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Kg=null}}else Kg=Yg?tg(e.stateNode.nextSibling):null;return!0}function ov(){for(var e=Kg;e;)e=tg(e.nextSibling)}function iv(){Kg=Yg=null,Xg=!1}function av(e){null===Qg?Qg=[e]:Qg.push(e)}var lv=pd.ReactCurrentBatchConfig;function sv(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(Qc(309));var r=n.stateNode}if(!r)throw Error(Qc(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(Qc(284));if(!n._owner)throw Error(Qc(290,e))}return e}function uv(e,t){throw e=Object.prototype.toString.call(t),Error(Qc(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cv(e){return(0,e._init)(e._payload)}function dv(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=wS(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=MS(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===hd?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===wd&&cv(i)===t.type)?((r=o(t,n.props)).ref=sv(e,t,n),r.return=e,r):((r=RS(n.type,n.key,n.props,null,e.mode,r)).ref=sv(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=IS(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=LS(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=MS(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fd:return(n=RS(t.type,t.key,t.props,null,e.mode,n)).ref=sv(e,null,t),n.return=e,n;case md:return(t=IS(t,e.mode,n)).return=e,t;case wd:return d(e,(0,t._init)(t._payload),n)}if(Ud(t)||kd(t))return(t=LS(t,e.mode,n,null)).return=e,t;uv(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 fd:return n.key===o?s(e,t,n,r):null;case md:return n.key===o?u(e,t,n,r):null;case wd:return p(e,t,(o=n._init)(n._payload),r)}if(Ud(n)||kd(n))return null!==o?null:c(e,t,n,r,null);uv(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 fd:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case md:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case wd:return f(e,t,n,(0,r._init)(r._payload),o)}if(Ud(r)||kd(r))return c(t,e=e.get(n)||null,r,o,null);uv(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),Xg&&Wg(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 Xg&&Wg(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)})),Xg&&Wg(o,h),u}function h(o,a,l,s){var u=kd(l);if("function"!=typeof u)throw Error(Qc(150));if(null==(l=u.call(l)))throw Error(Qc(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),Xg&&Wg(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 Xg&&Wg(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)})),Xg&&Wg(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===hd&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case fd:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===hd){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===wd&&cv(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=sv(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===hd?((i=LS(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=RS(l.type,l.key,l.props,null,r.mode,s)).ref=sv(r,i,l),s.return=r,r=s)}return a(r);case md: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=IS(l,r.mode,s)).return=r,r=i}return a(r);case wd:return e(r,i,(c=l._init)(l._payload),s)}if(Ud(l))return m(r,i,l,s);if(kd(l))return h(r,i,l,s);uv(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=MS(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var pv=dv(!0),fv=dv(!1),mv=gg(null),hv=null,gv=null,vv=null;function bv(){vv=gv=hv=null}function yv(e){var t=mv.current;vg(mv),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 Sv(e,t){hv=e,vv=gv=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(cy=!0),e.firstContext=null)}function Ev(e){var t=e._currentValue;if(vv!==e)if(e={context:e,memoizedValue:t,next:null},null===gv){if(null===hv)throw Error(Qc(308));gv=e,hv.dependencies={lanes:0,firstContext:e}}else gv=gv.next=e;return t}var Cv=null;function wv(e){null===Cv?Cv=[e]:Cv.push(e)}function Rv(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,wv(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lv(e,r)}function Lv(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 kv=!1;function Mv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iv(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 _v(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pv(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&yx){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lv(e,n)}return null===(o=r.interleaved)?(t.next=t,wv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lv(e,n)}function Av(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,df(e,n)}}function Dv(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 Tv(e,t,n,r){var o=e.updateQueue;kv=!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=Id({},d,p);break e;case 2:kv=!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);kx|=a,e.lanes=a,e.memoizedState=d}}function Ov(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(Qc(191,o));o.call(r)}}}var Nv={},qv=gg(Nv),Fv=gg(Nv),zv=gg(Nv);function jv(e){if(e===Nv)throw Error(Qc(174));return e}function $v(e,t){switch(bg(zv,t),bg(Fv,e),bg(qv,Nv),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ep(null,"");break;default:t=ep(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}vg(qv),bg(qv,t)}function Bv(){vg(qv),vg(Fv),vg(zv)}function Hv(e){jv(zv.current);var t=jv(qv.current),n=ep(t,e.type);t!==n&&(bg(Fv,e),bg(qv,n))}function Wv(e){Fv.current===e&&(vg(qv),vg(Fv))}var Gv=gg(0);function Vv(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 Uv=[];function Yv(){for(var e=0;e<Uv.length;e++)Uv[e]._workInProgressVersionPrimary=null;Uv.length=0}var Kv=pd.ReactCurrentDispatcher,Xv=pd.ReactCurrentBatchConfig,Qv=0,Jv=null,Zv=null,eb=null,tb=!1,nb=!1,rb=0,ob=0;function ib(){throw Error(Qc(321))}function ab(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zm(e[n],t[n]))return!1;return!0}function lb(e,t,n,r,o,i){if(Qv=i,Jv=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kv.current=null===e||null===e.memoizedState?Wb:Gb,e=n(r,o),nb){i=0;do{if(nb=!1,rb=0,25<=i)throw Error(Qc(301));i+=1,eb=Zv=null,t.updateQueue=null,Kv.current=Vb,e=n(r,o)}while(nb)}if(Kv.current=Hb,t=null!==Zv&&null!==Zv.next,Qv=0,eb=Zv=Jv=null,tb=!1,t)throw Error(Qc(300));return e}function sb(){var e=0!==rb;return rb=0,e}function ub(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===eb?Jv.memoizedState=eb=e:eb=eb.next=e,eb}function cb(){if(null===Zv){var e=Jv.alternate;e=null!==e?e.memoizedState:null}else e=Zv.next;var t=null===eb?Jv.memoizedState:eb.next;if(null!==t)eb=t,Zv=e;else{if(null===e)throw Error(Qc(310));e={memoizedState:(Zv=e).memoizedState,baseState:Zv.baseState,baseQueue:Zv.baseQueue,queue:Zv.queue,next:null},null===eb?Jv.memoizedState=eb=e:eb=eb.next=e}return eb}function db(e,t){return"function"==typeof t?t(e):t}function pb(e){var t=cb(),n=t.queue;if(null===n)throw Error(Qc(311));n.lastRenderedReducer=e;var r=Zv,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((Qv&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,Jv.lanes|=c,kx|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Zm(r,t.memoizedState)||(cy=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Jv.lanes|=i,kx|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fb(e){var t=cb(),n=t.queue;if(null===n)throw Error(Qc(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);Zm(i,t.memoizedState)||(cy=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function mb(){}function hb(e,t){var n=Jv,r=cb(),o=t(),i=!Zm(r.memoizedState,o);if(i&&(r.memoizedState=o,cy=!0),r=r.queue,kb(bb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==eb&&1&eb.memoizedState.tag){if(n.flags|=2048,Eb(9,vb.bind(null,n,r,o,t),void 0,null),null===xx)throw Error(Qc(349));30&Qv||gb(n,t,o)}return o}function gb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Jv.updateQueue)?(t={lastEffect:null,stores:null},Jv.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function vb(e,t,n,r){t.value=n,t.getSnapshot=r,yb(t)&&xb(e)}function bb(e,t,n){return n((function(){yb(t)&&xb(e)}))}function yb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zm(e,n)}catch(e){return!0}}function xb(e){var t=Lv(e,1);null!==t&&Ux(t,e,1,-1)}function Sb(e){var t=ub();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:db,lastRenderedState:e},t.queue=e,e=e.dispatch=zb.bind(null,Jv,e),[t.memoizedState,e]}function Eb(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Jv.updateQueue)?(t={lastEffect:null,stores:null},Jv.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 Cb(){return cb().memoizedState}function wb(e,t,n,r){var o=ub();Jv.flags|=e,o.memoizedState=Eb(1|t,n,void 0,void 0===r?null:r)}function Rb(e,t,n,r){var o=cb();r=void 0===r?null:r;var i=void 0;if(null!==Zv){var a=Zv.memoizedState;if(i=a.destroy,null!==r&&ab(r,a.deps))return void(o.memoizedState=Eb(t,n,i,r))}Jv.flags|=e,o.memoizedState=Eb(1|t,n,i,r)}function Lb(e,t){return wb(8390656,8,e,t)}function kb(e,t){return Rb(2048,8,e,t)}function Mb(e,t){return Rb(4,2,e,t)}function Ib(e,t){return Rb(4,4,e,t)}function _b(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 Pb(e,t,n){return n=null!=n?n.concat([e]):null,Rb(4,4,_b.bind(null,t,e),n)}function Ab(){}function Db(e,t){var n=cb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ab(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tb(e,t){var n=cb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ab(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ob(e,t,n){return 21&Qv?(Zm(n,t)||(n=sf(),Jv.lanes|=n,kx|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,cy=!0),e.memoizedState=n)}function Nb(e,t){var n=pf;pf=0!==n&&4>n?n:4,e(!0);var r=Xv.transition;Xv.transition={};try{e(!1),t()}finally{pf=n,Xv.transition=r}}function qb(){return cb().memoizedState}function Fb(e,t,n){var r=Vx(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jb(e))$b(t,n);else if(null!==(n=Rv(e,t,n,r))){Ux(n,e,r,Gx()),Bb(n,t,r)}}function zb(e,t,n){var r=Vx(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jb(e))$b(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,Zm(l,a)){var s=t.interleaved;return null===s?(o.next=o,wv(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Rv(e,t,o,r))&&(Ux(n,e,r,o=Gx()),Bb(n,t,r))}}function jb(e){var t=e.alternate;return e===Jv||null!==t&&t===Jv}function $b(e,t){nb=tb=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bb(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,df(e,n)}}var Hb={readContext:Ev,useCallback:ib,useContext:ib,useEffect:ib,useImperativeHandle:ib,useInsertionEffect:ib,useLayoutEffect:ib,useMemo:ib,useReducer:ib,useRef:ib,useState:ib,useDebugValue:ib,useDeferredValue:ib,useTransition:ib,useMutableSource:ib,useSyncExternalStore:ib,useId:ib,unstable_isNewReconciler:!1},Wb={readContext:Ev,useCallback:function(e,t){return ub().memoizedState=[e,void 0===t?null:t],e},useContext:Ev,useEffect:Lb,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wb(4194308,4,_b.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wb(4194308,4,e,t)},useInsertionEffect:function(e,t){return wb(4,2,e,t)},useMemo:function(e,t){var n=ub();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ub();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=Fb.bind(null,Jv,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ub().memoizedState=e},useState:Sb,useDebugValue:Ab,useDeferredValue:function(e){return ub().memoizedState=e},useTransition:function(){var e=Sb(!1),t=e[0];return e=Nb.bind(null,e[1]),ub().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Jv,o=ub();if(Xg){if(void 0===n)throw Error(Qc(407));n=n()}else{if(n=t(),null===xx)throw Error(Qc(349));30&Qv||gb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lb(bb.bind(null,r,i,e),[e]),r.flags|=2048,Eb(9,vb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ub(),t=xx.identifierPrefix;if(Xg){var n=Hg;t=":"+t+"R"+(n=(Bg&~(1<<32-Jp(Bg)-1)).toString(32)+n),0<(n=rb++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ob++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gb={readContext:Ev,useCallback:Db,useContext:Ev,useEffect:kb,useImperativeHandle:Pb,useInsertionEffect:Mb,useLayoutEffect:Ib,useMemo:Tb,useReducer:pb,useRef:Cb,useState:function(){return pb(db)},useDebugValue:Ab,useDeferredValue:function(e){return Ob(cb(),Zv.memoizedState,e)},useTransition:function(){return[pb(db)[0],cb().memoizedState]},useMutableSource:mb,useSyncExternalStore:hb,useId:qb,unstable_isNewReconciler:!1},Vb={readContext:Ev,useCallback:Db,useContext:Ev,useEffect:kb,useImperativeHandle:Pb,useInsertionEffect:Mb,useLayoutEffect:Ib,useMemo:Tb,useReducer:fb,useRef:Cb,useState:function(){return fb(db)},useDebugValue:Ab,useDeferredValue:function(e){var t=cb();return null===Zv?t.memoizedState=e:Ob(t,Zv.memoizedState,e)},useTransition:function(){return[fb(db)[0],cb().memoizedState]},useMutableSource:mb,useSyncExternalStore:hb,useId:qb,unstable_isNewReconciler:!1};function Ub(e,t){if(e&&e.defaultProps){for(var n in t=Id({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Yb(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Id({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Kb={isMounted:function(e){return!!(e=e._reactInternals)&&Tp(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gx(),o=Vx(e),i=_v(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Pv(e,i,o))&&(Ux(t,e,o,r),Av(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gx(),o=Vx(e),i=_v(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Pv(e,i,o))&&(Ux(t,e,o,r),Av(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gx(),r=Vx(e),o=_v(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Pv(e,o,r))&&(Ux(t,e,r,n),Av(t,e,r))}};function Xb(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!eh(n,r)||!eh(o,i))}function Qb(e,t,n){var r=!1,o=yg,i=t.contextType;return"object"==typeof i&&null!==i?i=Ev(i):(o=wg(t)?Eg:xg.current,i=(r=null!=(r=t.contextTypes))?Cg(e,o):yg),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Kb,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jb(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&&Kb.enqueueReplaceState(t,t.state,null)}function Zb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Mv(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ev(i):(i=wg(t)?Eg:xg.current,o.context=Cg(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Yb(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&&Kb.enqueueReplaceState(o,o.state,null),Tv(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ey(e,t){try{var n="",r=t;do{n+=Dd(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 ty(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ny(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ry="function"==typeof WeakMap?WeakMap:Map;function oy(e,t,n){(n=_v(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ox||(Ox=!0,Nx=r),ny(0,t)},n}function iy(e,t,n){(n=_v(-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(){ny(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ny(0,t),"function"!=typeof r&&(null===qx?qx=new Set([this]):qx.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ay(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ry;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=gS.bind(null,e,t,n),t.then(e,e))}function ly(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 sy(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=_v(-1,1)).tag=2,Pv(n,t,1))),n.lanes|=1),e)}var uy=pd.ReactCurrentOwner,cy=!1;function dy(e,t,n,r){t.child=null===e?fv(t,null,n,r):pv(t,e.child,n,r)}function py(e,t,n,r,o){n=n.render;var i=t.ref;return Sv(t,o),r=lb(e,t,n,r,i,o),n=sb(),null===e||cy?(Xg&&n&&Vg(t),t.flags|=1,dy(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Oy(e,t,o))}function fy(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||CS(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=RS(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,my(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:eh)(a,r)&&e.ref===t.ref)return Oy(e,t,o)}return t.flags|=1,(e=wS(i,r)).ref=t.ref,e.return=t,t.child=e}function my(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(eh(i,r)&&e.ref===t.ref){if(cy=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Oy(e,t,o);131072&e.flags&&(cy=!0)}}return vy(e,t,n,r,o)}function hy(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,bg(wx,Cx),Cx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,bg(wx,Cx),Cx|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bg(wx,Cx),Cx|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bg(wx,Cx),Cx|=r;return dy(e,t,o,n),t.child}function gy(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vy(e,t,n,r,o){var i=wg(n)?Eg:xg.current;return i=Cg(t,i),Sv(t,o),n=lb(e,t,n,r,i,o),r=sb(),null===e||cy?(Xg&&r&&Vg(t),t.flags|=1,dy(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Oy(e,t,o))}function by(e,t,n,r,o){if(wg(n)){var i=!0;Mg(t)}else i=!1;if(Sv(t,o),null===t.stateNode)Ty(e,t),Qb(t,n,r),Zb(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=Ev(u):u=Cg(t,u=wg(n)?Eg:xg.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)&&Jb(t,a,r,u),kv=!1;var p=t.memoizedState;a.state=p,Tv(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Sg.current||kv?("function"==typeof c&&(Yb(t,n,c,r),s=t.memoizedState),(l=kv||Xb(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,Iv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ub(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ev(s):s=Cg(t,s=wg(n)?Eg:xg.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)&&Jb(t,a,r,s),kv=!1,p=t.memoizedState,a.state=p,Tv(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Sg.current||kv?("function"==typeof f&&(Yb(t,n,f,r),m=t.memoizedState),(u=kv||Xb(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 yy(e,t,n,r,i,o)}function yy(e,t,n,r,o,i){gy(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Ig(t,n,!1),Oy(e,t,i);r=t.stateNode,uy.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=pv(t,e.child,null,i),t.child=pv(t,null,l,i)):dy(e,t,l,i),t.memoizedState=r.state,o&&Ig(t,n,!0),t.child}function xy(e){var t=e.stateNode;t.pendingContext?Lg(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lg(0,t.context,!1),$v(e,t.containerInfo)}function Sy(e,t,n,r,o){return iv(),av(o),t.flags|=256,dy(e,t,n,r),t.child}var Ey,Cy,wy,Ry,Ly={dehydrated:null,treeContext:null,retryLane:0};function ky(e){return{baseLanes:e,cachePool:null,transitions:null}}function My(e,t,n){var r,o=t.pendingProps,i=Gv.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),bg(Gv,1&i),null===e)return tv(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=kS(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=LS(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ky(n),t.memoizedState=Ly,e):Iy(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,_y(e,t,a,r=ty(Error(Qc(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kS({mode:"visible",children:r.children},o,0,null),(i=LS(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&pv(t,e.child,null,a),t.child.memoizedState=ky(a),t.memoizedState=Ly,i);if(!(1&t.mode))return _y(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,_y(e,t,a,r=ty(i=Error(Qc(419)),r,void 0))}if(l=!!(a&e.childLanes),cy||l){if(null!==(r=xx)){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,Lv(e,o),Ux(r,e,o,-1))}return aS(),_y(e,t,a,r=ty(Error(Qc(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=bS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Kg=tg(o.nextSibling),Yg=t,Xg=!0,Qg=null,null!==e&&(zg[jg++]=Bg,zg[jg++]=Hg,zg[jg++]=$g,Bg=e.id,Hg=e.overflow,$g=t),t=Iy(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=wS(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=wS(r,a):(a=LS(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)?ky(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ly,o}return e=(a=e.child).sibling,o=wS(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 Iy(e,t){return(t=kS({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _y(e,t,n,r){return null!==r&&av(r),pv(t,e.child,null,n),(e=Iy(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Py(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xv(e.return,t,n)}function Ay(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 Dy(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(dy(e,t,r.children,n),2&(r=Gv.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&&Py(e,n,t);else if(19===e.tag)Py(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(bg(Gv,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Vv(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ay(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===Vv(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ay(t,!0,n,null,i);break;case"together":Ay(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ty(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oy(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),kx|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Qc(153));if(null!==t.child){for(n=wS(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wS(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ny(e,t){if(!Xg)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 qy(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 Fy(e,t,n){var r=t.pendingProps;switch(Ug(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qy(t),null;case 1:case 17:return wg(t.type)&&Rg(),qy(t),null;case 3:return r=t.stateNode,Bv(),vg(Sg),vg(xg),Yv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(rv(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Qg&&(Qx(Qg),Qg=null))),Cy(e,t),qy(t),null;case 5:Wv(t);var o=jv(zv.current);if(n=t.type,null!==e&&null!=t.stateNode)wy(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Qc(166));return qy(t),null}if(e=jv(qv.current),rv(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[og]=t,r[ig]=i,e=!!(1&t.mode),n){case"dialog":Ph("cancel",r),Ph("close",r);break;case"iframe":case"object":case"embed":Ph("load",r);break;case"video":case"audio":for(o=0;o<kh.length;o++)Ph(kh[o],r);break;case"source":Ph("error",r);break;case"img":case"image":case"link":Ph("error",r),Ph("load",r);break;case"details":Ph("toggle",r);break;case"input":Bd(r,i),Ph("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ph("invalid",r);break;case"textarea":Xd(r,i),Ph("invalid",r)}for(var a in cp(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Wh(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Wh(r.textContent,l,e),o=["children",""+l]):Zc.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Ph("scroll",r)}switch(n){case"input":Fd(r),Gd(r,i,!0);break;case"textarea":Fd(r),Jd(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Gh)}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=Zd(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[og]=t,e[ig]=r,Ey(e,t,!1,!1),t.stateNode=e;e:{switch(a=dp(n,r),n){case"dialog":Ph("cancel",e),Ph("close",e),o=r;break;case"iframe":case"object":case"embed":Ph("load",e),o=r;break;case"video":case"audio":for(o=0;o<kh.length;o++)Ph(kh[o],e);o=r;break;case"source":Ph("error",e),o=r;break;case"img":case"image":case"link":Ph("error",e),Ph("load",e),o=r;break;case"details":Ph("toggle",e),o=r;break;case"input":Bd(e,r),o=$d(e,r),Ph("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Id({},r,{value:void 0}),Ph("invalid",e);break;case"textarea":Xd(e,r),o=Kd(e,r),Ph("invalid",e)}for(i in cp(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?sp(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&rp(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&op(e,s):"number"==typeof s&&op(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Zc.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Ph("scroll",e):null!=s&&dd(e,i,s,a))}switch(n){case"input":Fd(e),Gd(e,r,!1);break;case"textarea":Fd(e),Jd(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Nd(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Yd(e,!!r.multiple,i,!1):null!=r.defaultValue&&Yd(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Gh)}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 qy(t),null;case 6:if(e&&null!=t.stateNode)Ry(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Qc(166));if(n=jv(zv.current),jv(qv.current),rv(t)){if(r=t.stateNode,n=t.memoizedProps,r[og]=t,(i=r.nodeValue!==n)&&null!==(e=Yg))switch(e.tag){case 3:Wh(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Wh(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[og]=t,t.stateNode=r}return qy(t),null;case 13:if(vg(Gv),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Xg&&null!==Kg&&1&t.mode&&!(128&t.flags))ov(),iv(),t.flags|=98560,i=!1;else if(i=rv(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Qc(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Qc(317));i[og]=t}else iv(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qy(t),i=!1}else null!==Qg&&(Qx(Qg),Qg=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&Gv.current?0===Rx&&(Rx=3):aS())),null!==t.updateQueue&&(t.flags|=4),qy(t),null);case 4:return Bv(),Cy(e,t),null===e&&Th(t.stateNode.containerInfo),qy(t),null;case 10:return yv(t.type._context),qy(t),null;case 19:if(vg(Gv),null===(i=t.memoizedState))return qy(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Ny(i,!1);else{if(0!==Rx||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Vv(e))){for(t.flags|=128,Ny(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 bg(Gv,1&Gv.current|2),t.child}e=e.sibling}null!==i.tail&&Hp()>Dx&&(t.flags|=128,r=!0,Ny(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Vv(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ny(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Xg)return qy(t),null}else 2*Hp()-i.renderingStartTime>Dx&&1073741824!==n&&(t.flags|=128,r=!0,Ny(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=Hp(),t.sibling=null,n=Gv.current,bg(Gv,r?1&n|2:1&n),t):(qy(t),null);case 22:case 23:return nS(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Cx)&&(qy(t),6&t.subtreeFlags&&(t.flags|=8192)):qy(t),null;case 24:case 25:return null}throw Error(Qc(156,t.tag))}function zy(e,t){switch(Ug(t),t.tag){case 1:return wg(t.type)&&Rg(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Bv(),vg(Sg),vg(xg),Yv(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Wv(t),null;case 13:if(vg(Gv),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Qc(340));iv()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return vg(Gv),null;case 4:return Bv(),null;case 10:return yv(t.type._context),null;case 22:case 23:return nS(),null;default:return null}}Ey=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}},Cy=function(){},wy=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jv(qv.current);var i,a=null;switch(n){case"input":o=$d(e,o),r=$d(e,r),a=[];break;case"select":o=Id({},o,{value:void 0}),r=Id({},r,{value:void 0}),a=[];break;case"textarea":o=Kd(e,o),r=Kd(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Gh)}for(u in cp(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&&(Zc.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&&(Zc.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Ph("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)}},Ry=function(e,t,n,r){n!==r&&(t.flags|=4)};var jy=!1,$y=!1,By="function"==typeof WeakSet?WeakSet:Set,Hy=null;function Wy(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hS(e,t,n)}else n.current=null}function Gy(e,t,n){try{n()}catch(n){hS(e,t,n)}}var Vy=!1;function Uy(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&&Gy(t,n,i)}o=o.next}while(o!==r)}}function Yy(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 Ky(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 Xy(e){var t=e.alternate;null!==t&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[og],delete t[ig],delete t[lg],delete t[sg],delete t[ug])),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 Qy(e){return 5===e.tag||3===e.tag||4===e.tag}function Jy(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Qy(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 Zy(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=Gh));else if(4!==r&&null!==(e=e.child))for(Zy(e,t,n),e=e.sibling;null!==e;)Zy(e,t,n),e=e.sibling}function ex(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(ex(e,t,n),e=e.sibling;null!==e;)ex(e,t,n),e=e.sibling}var tx=null,nx=!1;function rx(e,t,n){for(n=n.child;null!==n;)ox(e,t,n),n=n.sibling}function ox(e,t,n){if(Qp&&"function"==typeof Qp.onCommitFiberUnmount)try{Qp.onCommitFiberUnmount(Xp,n)}catch(e){}switch(n.tag){case 5:$y||Wy(n,t);case 6:var r=tx,o=nx;tx=null,rx(e,t,n),nx=o,null!==(tx=r)&&(nx?(e=tx,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):tx.removeChild(n.stateNode));break;case 18:null!==tx&&(nx?(e=tx,n=n.stateNode,8===e.nodeType?eg(e.parentNode,n):1===e.nodeType&&eg(e,n),Of(e)):eg(tx,n.stateNode));break;case 4:r=tx,o=nx,tx=n.stateNode.containerInfo,nx=!0,rx(e,t,n),tx=r,nx=o;break;case 0:case 11:case 14:case 15:if(!$y&&(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)&&Gy(n,t,a),o=o.next}while(o!==r)}rx(e,t,n);break;case 1:if(!$y&&(Wy(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hS(n,t,e)}rx(e,t,n);break;case 21:rx(e,t,n);break;case 22:1&n.mode?($y=(r=$y)||null!==n.memoizedState,rx(e,t,n),$y=r):rx(e,t,n);break;default:rx(e,t,n)}}function ix(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new By),t.forEach((function(t){var r=yS.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ax(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:tx=l.stateNode,nx=!1;break e;case 3:case 4:tx=l.stateNode.containerInfo,nx=!0;break e}l=l.return}if(null===tx)throw Error(Qc(160));ox(i,a,o),tx=null,nx=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){hS(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)lx(t,e),t=t.sibling}function lx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ax(t,e),sx(e),4&r){try{Uy(3,e,e.return),Yy(3,e)}catch(t){hS(e,e.return,t)}try{Uy(5,e,e.return)}catch(t){hS(e,e.return,t)}}break;case 1:ax(t,e),sx(e),512&r&&null!==n&&Wy(n,n.return);break;case 5:if(ax(t,e),sx(e),512&r&&null!==n&&Wy(n,n.return),32&e.flags){var o=e.stateNode;try{op(o,"")}catch(t){hS(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&&Hd(o,i),dp(l,a);var u=dp(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?sp(o,d):"dangerouslySetInnerHTML"===c?rp(o,d):"children"===c?op(o,d):dd(o,c,d,u)}switch(l){case"input":Wd(o,i);break;case"textarea":Qd(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Yd(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Yd(o,!!i.multiple,i.defaultValue,!0):Yd(o,!!i.multiple,i.multiple?[]:"",!1))}o[ig]=i}catch(t){hS(e,e.return,t)}}break;case 6:if(ax(t,e),sx(e),4&r){if(null===e.stateNode)throw Error(Qc(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){hS(e,e.return,t)}}break;case 3:if(ax(t,e),sx(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Of(t.containerInfo)}catch(t){hS(e,e.return,t)}break;case 4:default:ax(t,e),sx(e);break;case 13:ax(t,e),sx(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ax=Hp())),4&r&&ix(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?($y=(u=$y)||c,ax(t,e),$y=u):ax(t,e),sx(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Hy=e,c=e.child;null!==c;){for(d=Hy=c;null!==Hy;){switch(f=(p=Hy).child,p.tag){case 0:case 11:case 14:case 15:Uy(4,p,p.return);break;case 1:Wy(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){hS(r,n,e)}}break;case 5:Wy(p,p.return);break;case 22:if(null!==p.memoizedState){px(d);continue}}null!==f?(f.return=p,Hy=f):px(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=lp("display",a))}catch(t){hS(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){hS(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:ax(t,e),sx(e),4&r&&ix(e);case 21:}}function sx(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Qy(n)){var r=n;break e}n=n.return}throw Error(Qc(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(op(o,""),r.flags&=-33),ex(e,Jy(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Zy(e,Jy(e),i);break;default:throw Error(Qc(161))}}catch(t){hS(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ux(e,t,n){Hy=e,cx(e)}function cx(e,t,n){for(var r=!!(1&e.mode);null!==Hy;){var o=Hy,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||jy;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||$y;l=jy;var u=$y;if(jy=a,($y=s)&&!u)for(Hy=o;null!==Hy;)s=(a=Hy).child,22===a.tag&&null!==a.memoizedState?fx(o):null!==s?(s.return=a,Hy=s):fx(o);for(;null!==i;)Hy=i,cx(i),i=i.sibling;Hy=o,jy=l,$y=u}dx(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Hy=i):dx(e)}}function dx(e){for(;null!==Hy;){var t=Hy;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$y||Yy(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$y)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ub(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ov(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}Ov(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&&Of(d)}}}break;default:throw Error(Qc(163))}$y||512&t.flags&&Ky(t)}catch(e){hS(t,t.return,e)}}if(t===e){Hy=null;break}if(null!==(n=t.sibling)){n.return=t.return,Hy=n;break}Hy=t.return}}function px(e){for(;null!==Hy;){var t=Hy;if(t===e){Hy=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Hy=n;break}Hy=t.return}}function fx(e){for(;null!==Hy;){var t=Hy;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yy(4,t)}catch(e){hS(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){hS(t,o,e)}}var i=t.return;try{Ky(t)}catch(e){hS(t,i,e)}break;case 5:var a=t.return;try{Ky(t)}catch(e){hS(t,a,e)}}}catch(e){hS(t,t.return,e)}if(t===e){Hy=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Hy=l;break}Hy=t.return}}var mx,hx=Math.ceil,gx=pd.ReactCurrentDispatcher,vx=pd.ReactCurrentOwner,bx=pd.ReactCurrentBatchConfig,yx=0,xx=null,Sx=null,Ex=0,Cx=0,wx=gg(0),Rx=0,Lx=null,kx=0,Mx=0,Ix=0,_x=null,Px=null,Ax=0,Dx=1/0,Tx=null,Ox=!1,Nx=null,qx=null,Fx=!1,zx=null,jx=0,$x=0,Bx=null,Hx=-1,Wx=0;function Gx(){return 6&yx?Hp():-1!==Hx?Hx:Hx=Hp()}function Vx(e){return 1&e.mode?2&yx&&0!==Ex?Ex&-Ex:null!==lv.transition?(0===Wx&&(Wx=sf()),Wx):0!==(e=pf)?e:e=void 0===(e=window.event)?16:Hf(e.type):1}function Ux(e,t,n,r){if(50<$x)throw $x=0,Bx=null,Error(Qc(185));cf(e,n,r),2&yx&&e===xx||(e===xx&&(!(2&yx)&&(Mx|=n),4===Rx&&Jx(e,Ex)),Yx(e,r),1===n&&0===yx&&!(1&t.mode)&&(Dx=Hp()+500,Pg&&Tg()))}function Yx(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-Jp(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=af(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=of(e,e===xx?Ex:0);if(0===r)null!==n&&jp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&jp(n),1===t)0===e.tag?function(e){Pg=!0,Dg(e)}(Zx.bind(null,e)):Dg(Zx.bind(null,e)),Jh((function(){!(6&yx)&&Tg()})),n=null;else{switch(ff(r)){case 1:n=Gp;break;case 4:n=Vp;break;case 16:default:n=Up;break;case 536870912:n=Kp}n=xS(n,Kx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kx(e,t){if(Hx=-1,Wx=0,6&yx)throw Error(Qc(327));var n=e.callbackNode;if(fS()&&e.callbackNode!==n)return null;var r=of(e,e===xx?Ex:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=lS(e,r);else{t=r;var o=yx;yx|=2;var i=iS();for(xx===e&&Ex===t||(Tx=null,Dx=Hp()+500,rS(e,t));;)try{uS();break}catch(t){oS(e,t)}bv(),gx.current=i,yx=o,null!==Sx?t=0:(xx=null,Ex=0,t=Rx)}if(0!==t){if(2===t&&(0!==(o=lf(e))&&(r=o,t=Xx(e,o))),1===t)throw n=Lx,rS(e,0),Jx(e,r),Yx(e,Hp()),n;if(6===t)Jx(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(!Zm(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=lS(e,r),2===t&&(i=lf(e),0!==i&&(r=i,t=Xx(e,i))),1!==t)))throw n=Lx,rS(e,0),Jx(e,r),Yx(e,Hp()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Qc(345));case 2:case 5:pS(e,Px,Tx);break;case 3:if(Jx(e,r),(130023424&r)===r&&10<(t=Ax+500-Hp())){if(0!==of(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Gx(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kh(pS.bind(null,e,Px,Tx),t);break}pS(e,Px,Tx);break;case 4:if(Jx(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Jp(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Hp()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hx(r/1960))-r)){e.timeoutHandle=Kh(pS.bind(null,e,Px,Tx),r);break}pS(e,Px,Tx);break;default:throw Error(Qc(329))}}}return Yx(e,Hp()),e.callbackNode===n?Kx.bind(null,e):null}function Xx(e,t){var n=_x;return e.current.memoizedState.isDehydrated&&(rS(e,t).flags|=256),2!==(e=lS(e,t))&&(t=Px,Px=n,null!==t&&Qx(t)),e}function Qx(e){null===Px?Px=e:Px.push.apply(Px,e)}function Jx(e,t){for(t&=~Ix,t&=~Mx,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jp(t),r=1<<n;e[n]=-1,t&=~r}}function Zx(e){if(6&yx)throw Error(Qc(327));fS();var t=of(e,0);if(!(1&t))return Yx(e,Hp()),null;var n=lS(e,t);if(0!==e.tag&&2===n){var r=lf(e);0!==r&&(t=r,n=Xx(e,r))}if(1===n)throw n=Lx,rS(e,0),Jx(e,t),Yx(e,Hp()),n;if(6===n)throw Error(Qc(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pS(e,Px,Tx),Yx(e,Hp()),null}function eS(e,t){var n=yx;yx|=1;try{return e(t)}finally{0===(yx=n)&&(Dx=Hp()+500,Pg&&Tg())}}function tS(e){null!==zx&&0===zx.tag&&!(6&yx)&&fS();var t=yx;yx|=1;var n=bx.transition,r=pf;try{if(bx.transition=null,pf=1,e)return e()}finally{pf=r,bx.transition=n,!(6&(yx=t))&&Tg()}}function nS(){Cx=wx.current,vg(wx)}function rS(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xh(n)),null!==Sx)for(n=Sx.return;null!==n;){var r=n;switch(Ug(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Rg();break;case 3:Bv(),vg(Sg),vg(xg),Yv();break;case 5:Wv(r);break;case 4:Bv();break;case 13:case 19:vg(Gv);break;case 10:yv(r.type._context);break;case 22:case 23:nS()}n=n.return}if(xx=e,Sx=e=wS(e.current,null),Ex=Cx=t,Rx=0,Lx=null,Ix=Mx=kx=0,Px=_x=null,null!==Cv){for(t=0;t<Cv.length;t++)if(null!==(r=(n=Cv[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}Cv=null}return e}function oS(e,t){for(;;){var n=Sx;try{if(bv(),Kv.current=Hb,tb){for(var r=Jv.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}tb=!1}if(Qv=0,eb=Zv=Jv=null,nb=!1,rb=0,vx.current=null,null===n||null===n.return){Rx=1,Lx=t,Sx=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ex,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=ly(a);if(null!==f){f.flags&=-257,sy(f,a,l,0,t),1&f.mode&&ay(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)){ay(i,u,t),aS();break e}s=Error(Qc(426))}else if(Xg&&1&l.mode){var g=ly(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),sy(g,a,l,0,t),av(ey(s,l));break e}}i=s=ey(s,l),4!==Rx&&(Rx=2),null===_x?_x=[i]:_x.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Dv(i,oy(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!==qx&&qx.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Dv(i,iy(i,l,t));break e}}i=i.return}while(null!==i)}dS(n)}catch(e){t=e,Sx===n&&null!==n&&(Sx=n=n.return);continue}break}}function iS(){var e=gx.current;return gx.current=Hb,null===e?Hb:e}function aS(){0!==Rx&&3!==Rx&&2!==Rx||(Rx=4),null===xx||!(268435455&kx)&&!(268435455&Mx)||Jx(xx,Ex)}function lS(e,t){var n=yx;yx|=2;var r=iS();for(xx===e&&Ex===t||(Tx=null,rS(e,t));;)try{sS();break}catch(t){oS(e,t)}if(bv(),yx=n,gx.current=r,null!==Sx)throw Error(Qc(261));return xx=null,Ex=0,Rx}function sS(){for(;null!==Sx;)cS(Sx)}function uS(){for(;null!==Sx&&!$p();)cS(Sx)}function cS(e){var t=mx(e.alternate,e,Cx);e.memoizedProps=e.pendingProps,null===t?dS(e):Sx=t,vx.current=null}function dS(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=zy(n,t)))return n.flags&=32767,void(Sx=n);if(null===e)return Rx=6,void(Sx=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Fy(n,t,Cx)))return void(Sx=n);if(null!==(t=t.sibling))return void(Sx=t);Sx=t=e}while(null!==t);0===Rx&&(Rx=5)}function pS(e,t,n){var r=pf,o=bx.transition;try{bx.transition=null,pf=1,function(e,t,n,r){do{fS()}while(null!==zx);if(6&yx)throw Error(Qc(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(Qc(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-Jp(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===xx&&(Sx=xx=null,Ex=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Fx||(Fx=!0,xS(Up,(function(){return fS(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=bx.transition,bx.transition=null;var a=pf;pf=1;var l=yx;yx|=4,vx.current=null,function(e,t){if(Vh=qf,ih(e=oh())){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(Uh={focusedElem:e,selectionRange:n},qf=!1,Hy=t;null!==Hy;)if(e=(t=Hy).child,1028&t.subtreeFlags&&null!==e)e.return=t,Hy=e;else for(;null!==Hy;){t=Hy;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:Ub(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(Qc(163))}}catch(e){hS(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Hy=e;break}Hy=t.return}m=Vy,Vy=!1}(e,n),lx(n,e),ah(Uh),qf=!!Vh,Uh=Vh=null,e.current=n,ux(n),Bp(),yx=l,pf=a,bx.transition=i}else e.current=n;if(Fx&&(Fx=!1,zx=e,jx=o),i=e.pendingLanes,0===i&&(qx=null),function(e){if(Qp&&"function"==typeof Qp.onCommitFiberRoot)try{Qp.onCommitFiberRoot(Xp,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Yx(e,Hp()),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(Ox)throw Ox=!1,e=Nx,Nx=null,e;!!(1&jx)&&0!==e.tag&&fS(),i=e.pendingLanes,1&i?e===Bx?$x++:($x=0,Bx=e):$x=0,Tg()}(e,t,n,r)}finally{bx.transition=o,pf=r}return null}function fS(){if(null!==zx){var e=ff(jx),t=bx.transition,n=pf;try{if(bx.transition=null,pf=16>e?16:e,null===zx)var r=!1;else{if(e=zx,zx=null,jx=0,6&yx)throw Error(Qc(331));var o=yx;for(yx|=4,Hy=e.current;null!==Hy;){var i=Hy,a=i.child;if(16&Hy.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Hy=u;null!==Hy;){var c=Hy;switch(c.tag){case 0:case 11:case 15:Uy(8,c,i)}var d=c.child;if(null!==d)d.return=c,Hy=d;else for(;null!==Hy;){var p=(c=Hy).sibling,f=c.return;if(Xy(c),c===u){Hy=null;break}if(null!==p){p.return=f,Hy=p;break}Hy=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)}}Hy=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Hy=a;else e:for(;null!==Hy;){if(2048&(i=Hy).flags)switch(i.tag){case 0:case 11:case 15:Uy(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Hy=v;break e}Hy=i.return}}var b=e.current;for(Hy=b;null!==Hy;){var y=(a=Hy).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Hy=y;else e:for(a=b;null!==Hy;){if(2048&(l=Hy).flags)try{switch(l.tag){case 0:case 11:case 15:Yy(9,l)}}catch(e){hS(l,l.return,e)}if(l===a){Hy=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Hy=x;break e}Hy=l.return}}if(yx=o,Tg(),Qp&&"function"==typeof Qp.onPostCommitFiberRoot)try{Qp.onPostCommitFiberRoot(Xp,e)}catch(e){}r=!0}return r}finally{pf=n,bx.transition=t}}return!1}function mS(e,t,n){e=Pv(e,t=oy(0,t=ey(n,t),1),1),t=Gx(),null!==e&&(cf(e,1,t),Yx(e,t))}function hS(e,t,n){if(3===e.tag)mS(e,e,n);else for(;null!==t;){if(3===t.tag){mS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qx||!qx.has(r))){t=Pv(t,e=iy(t,e=ey(n,e),1),1),e=Gx(),null!==t&&(cf(t,1,e),Yx(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Gx(),e.pingedLanes|=e.suspendedLanes&n,xx===e&&(Ex&n)===n&&(4===Rx||3===Rx&&(130023424&Ex)===Ex&&500>Hp()-Ax?rS(e,0):Ix|=n),Yx(e,t)}function vS(e,t){0===t&&(1&e.mode?(t=nf,!(130023424&(nf<<=1))&&(nf=4194304)):t=1);var n=Gx();null!==(e=Lv(e,t))&&(cf(e,t,n),Yx(e,n))}function bS(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),vS(e,n)}function yS(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(Qc(314))}null!==r&&r.delete(t),vS(e,n)}function xS(e,t){return zp(e,t)}function SS(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 ES(e,t,n,r){return new SS(e,t,n,r)}function CS(e){return!(!(e=e.prototype)||!e.isReactComponent)}function wS(e,t){var n=e.alternate;return null===n?((n=ES(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 RS(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)CS(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case hd:return LS(n.children,o,i,t);case gd:a=8,o|=8;break;case vd:return(e=ES(12,n,t,2|o)).elementType=vd,e.lanes=i,e;case Sd:return(e=ES(13,n,t,o)).elementType=Sd,e.lanes=i,e;case Ed:return(e=ES(19,n,t,o)).elementType=Ed,e.lanes=i,e;case Rd:return kS(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case bd:a=10;break e;case yd:a=9;break e;case xd:a=11;break e;case Cd:a=14;break e;case wd:a=16,r=null;break e}throw Error(Qc(130,null==e?e:typeof e,""))}return(t=ES(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function LS(e,t,n,r){return(e=ES(7,e,r,t)).lanes=n,e}function kS(e,t,n,r){return(e=ES(22,e,r,t)).elementType=Rd,e.lanes=n,e.stateNode={isHidden:!1},e}function MS(e,t,n){return(e=ES(6,e,null,t)).lanes=n,e}function IS(e,t,n){return(t=ES(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _S(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=uf(0),this.expirationTimes=uf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function PS(e,t,n,r,o,i,a,l,s){return e=new _S(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=ES(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mv(i),e}function AS(e){if(!e)return yg;e:{if(Tp(e=e._reactInternals)!==e||1!==e.tag)throw Error(Qc(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wg(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Qc(171))}if(1===e.tag){var n=e.type;if(wg(n))return kg(e,n,t)}return t}function DS(e,t,n,r,o,i,a,l,s){return(e=PS(n,r,!0,e,0,i,0,l,s)).context=AS(null),n=e.current,(i=_v(r=Gx(),o=Vx(n))).callback=null!=t?t:null,Pv(n,i,o),e.current.lanes=o,cf(e,o,r),Yx(e,r),e}function TS(e,t,n,r){var o=t.current,i=Gx(),a=Vx(o);return n=AS(n),null===t.context?t.context=n:t.pendingContext=n,(t=_v(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Pv(o,t,a))&&(Ux(e,o,a,i),Av(e,o,a)),a}function OS(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function NS(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qS(e,t){NS(e,t),(e=e.alternate)&&NS(e,t)}mx=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Sg.current)cy=!0;else{if(!(e.lanes&n||128&t.flags))return cy=!1,function(e,t,n){switch(t.tag){case 3:xy(t),iv();break;case 5:Hv(t);break;case 1:wg(t.type)&&Mg(t);break;case 4:$v(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;bg(mv,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(bg(Gv,1&Gv.current),t.flags|=128,null):n&t.child.childLanes?My(e,t,n):(bg(Gv,1&Gv.current),null!==(e=Oy(e,t,n))?e.sibling:null);bg(Gv,1&Gv.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Dy(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),bg(Gv,Gv.current),r)break;return null;case 22:case 23:return t.lanes=0,hy(e,t,n)}return Oy(e,t,n)}(e,t,n);cy=!!(131072&e.flags)}else cy=!1,Xg&&1048576&t.flags&&Gg(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ty(e,t),e=t.pendingProps;var o=Cg(t,xg.current);Sv(t,n),o=lb(null,t,r,e,o,n);var i=sb();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,wg(r)?(i=!0,Mg(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Mv(t),o.updater=Kb,t.stateNode=o,o._reactInternals=t,Zb(t,r,e,n),t=yy(null,t,r,!0,i,n)):(t.tag=0,Xg&&i&&Vg(t),dy(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ty(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return CS(e)?1:0;if(null!=e){if((e=e.$$typeof)===xd)return 11;if(e===Cd)return 14}return 2}(r),e=Ub(r,e),o){case 0:t=vy(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=py(null,t,r,e,n);break e;case 14:t=fy(null,t,r,Ub(r.type,e),n);break e}throw Error(Qc(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,vy(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 1:return r=t.type,o=t.pendingProps,by(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 3:e:{if(xy(t),null===e)throw Error(Qc(387));r=t.pendingProps,o=(i=t.memoizedState).element,Iv(e,t),Tv(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=Sy(e,t,r,n,o=ey(Error(Qc(423)),t));break e}if(r!==o){t=Sy(e,t,r,n,o=ey(Error(Qc(424)),t));break e}for(Kg=tg(t.stateNode.containerInfo.firstChild),Yg=t,Xg=!0,Qg=null,n=fv(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(iv(),r===o){t=Oy(e,t,n);break e}dy(e,t,r,n)}t=t.child}return t;case 5:return Hv(t),null===e&&tv(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Yh(r,o)?a=null:null!==i&&Yh(r,i)&&(t.flags|=32),gy(e,t),dy(e,t,a,n),t.child;case 6:return null===e&&tv(t),null;case 13:return My(e,t,n);case 4:return $v(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=pv(t,null,r,n):dy(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,py(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 7:return dy(e,t,t.pendingProps,n),t.child;case 8:case 12:return dy(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,bg(mv,r._currentValue),r._currentValue=a,null!==i)if(Zm(i.value,a)){if(i.children===o.children&&!Sg.current){t=Oy(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=_v(-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(Qc(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}dy(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sv(t,n),r=r(o=Ev(o)),t.flags|=1,dy(e,t,r,n),t.child;case 14:return o=Ub(r=t.type,t.pendingProps),fy(e,t,r,o=Ub(r.type,o),n);case 15:return my(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ub(r,o),Ty(e,t),t.tag=1,wg(r)?(e=!0,Mg(t)):e=!1,Sv(t,n),Qb(t,r,o),Zb(t,r,o,n),yy(null,t,r,!0,e,n);case 19:return Dy(e,t,n);case 22:return hy(e,t,n)}throw Error(Qc(156,t.tag))};var FS="function"==typeof reportError?reportError:function(e){console.error(e)};function zS(e){this._internalRoot=e}function jS(e){this._internalRoot=e}function $S(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function BS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function HS(){}function WS(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=OS(a);l.call(e)}}TS(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=OS(a);i.call(e)}}var a=DS(t,r,e,0,null,!1,0,"",HS);return e._reactRootContainer=a,e[ag]=a.current,Th(8===e.nodeType?e.parentNode:e),tS(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=OS(s);l.call(e)}}var s=PS(e,0,!1,null,0,!1,0,"",HS);return e._reactRootContainer=s,e[ag]=s.current,Th(8===e.nodeType?e.parentNode:e),tS((function(){TS(t,s,n,r)})),s}(n,t,e,o,r);return OS(a)}jS.prototype.render=zS.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Qc(409));TS(e,t,null,null)},jS.prototype.unmount=zS.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;tS((function(){TS(null,e,null,null)})),t[ag]=null}},jS.prototype.unstable_scheduleHydration=function(e){if(e){var t=vf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lf.length&&0!==t&&t<Lf[n].priority;n++);Lf.splice(n,0,e),0===n&&_f(e)}},mf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rf(t.pendingLanes);0!==n&&(df(t,1|n),Yx(t,Hp()),!(6&yx)&&(Dx=Hp()+500,Tg()))}break;case 13:tS((function(){var t=Lv(e,1);if(null!==t){var n=Gx();Ux(t,e,1,n)}})),qS(e,1)}},hf=function(e){if(13===e.tag){var t=Lv(e,134217728);if(null!==t)Ux(t,e,134217728,Gx());qS(e,134217728)}},gf=function(e){if(13===e.tag){var t=Vx(e),n=Lv(e,t);if(null!==n)Ux(n,e,t,Gx());qS(e,t)}},vf=function(){return pf},bf=function(e,t){var n=pf;try{return pf=e,t()}finally{pf=n}},mp=function(e,t,n){switch(t){case"input":if(Wd(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=fg(r);if(!o)throw Error(Qc(90));zd(r),Wd(r,o)}}}break;case"textarea":Qd(e,n);break;case"select":null!=(t=n.value)&&Yd(e,!!n.multiple,t,!1)}},xp=eS,Sp=tS;var GS={usingClientEntryPoint:!1,Events:[dg,pg,fg,bp,yp,eS]},VS={findFiberByHostInstance:cg,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},US={bundleType:VS.bundleType,version:VS.version,rendererPackageName:VS.rendererPackageName,rendererConfig:VS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pd.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qp(e))?null:e.stateNode},findFiberByHostInstance:VS.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 YS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!YS.isDisabled&&YS.supportsFiber)try{Xp=YS.inject(US),Qp=YS}catch(np){}}Gc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GS,Gc.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$S(t))throw Error(Qc(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:md,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Gc.createRoot=function(e,t){if(!$S(e))throw Error(Qc(299));var n=!1,r="",o=FS;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=PS(e,1,!1,null,0,n,0,r,o),e[ag]=t.current,Th(8===e.nodeType?e.parentNode:e),new zS(t)},Gc.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(Qc(188));throw e=Object.keys(e).join(","),Error(Qc(268,e))}return e=null===(e=qp(t))?null:e.stateNode},Gc.flushSync=function(e){return tS(e)},Gc.hydrate=function(e,t,n){if(!BS(t))throw Error(Qc(200));return WS(null,e,t,!0,n)},Gc.hydrateRoot=function(e,t,n){if(!$S(e))throw Error(Qc(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=FS;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=DS(t,null,e,1,null!=n?n:null,o,0,i,a),e[ag]=t.current,Th(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 jS(t)},Gc.render=function(e,t,n){if(!BS(t))throw Error(Qc(200));return WS(null,e,t,!1,n)},Gc.unmountComponentAtNode=function(e){if(!BS(e))throw Error(Qc(40));return!!e._reactRootContainer&&(tS((function(){WS(null,null,e,!1,(function(){e._reactRootContainer=null,e[ag]=null}))})),!0)},Gc.unstable_batchedUpdates=eS,Gc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!BS(n))throw Error(Qc(200));if(null==e||void 0===e._reactInternals)throw Error(Qc(38));return WS(e,t,n,!1,r)},Gc.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)}}(),Wc.exports=Gc;var KS=Wc.exports,XS=n(KS),QS=!1,JS=Wn.createContext(null),ZS="unmounted",eE="exited",tE="entering",nE="entered",rE="exiting",oE=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=eE,r.appearStatus=tE):o=nE:o=t.unmountOnExit||t.mountOnEnter?ZS:eE,r.state={status:o},r.nextCallback=null,r}an(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ZS?{status:eE}: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!==tE&&n!==nE&&(t=tE):n!==tE&&n!==nE||(t=rE)}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===tE){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:XS.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eE&&this.setState({status:ZS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[XS.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||QS?this.safeSetState({status:nE},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:tE},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:nE},(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:XS.findDOMNode(this);t&&!QS?(this.props.onExit(r),this.safeSetState({status:rE},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:eE},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:eE},(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:XS.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===ZS)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=rn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Wn.createElement(JS.Provider,{value:null},"function"==typeof n?n(e,r):Wn.cloneElement(Wn.Children.only(n),r))},t}(Wn.Component);function iE(){}oE.contextType=JS,oE.propTypes={},oE.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iE,onEntering:iE,onEntered:iE,onExit:iE,onExiting:iE,onExited:iE},oE.UNMOUNTED=ZS,oE.EXITED=eE,oE.ENTERING=tE,oE.ENTERED=nE,oE.EXITING=rE;var aE=oE;function lE(e,t){var n=Object.create(null);return e&&Hn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Hn.isValidElement(e)?t(e):e}(e)})),n}function sE(e,t,n){return null!=n[t]?n[t]:e.props[t]}function uE(e,t,n){var r=lE(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(Hn.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=Hn.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&Hn.isValidElement(u)&&(o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:sE(a,"exit",e),enter:sE(a,"enter",e)})):o[i]=Hn.cloneElement(a,{in:!1}):o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:sE(a,"exit",e),enter:sE(a,"enter",e)})}})),o}var cE=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},dE=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}an(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,lE(n.children,(function(e){return Hn.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:sE(e,"appear",n),enter:sE(e,"enter",n),exit:sE(e,"exit",n)})}))):uE(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=lE(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Xt({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rn(e,["component","childFactory"]),o=this.state.contextValue,i=cE(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Wn.createElement(JS.Provider,{value:o},i):Wn.createElement(JS.Provider,{value:o},Wn.createElement(t,r,i))},t}(Wn.Component);dE.propTypes={},dE.defaultProps={component:"div",childFactory:function(e){return e}};var pE=dE;const fE=e=>e.scrollTop;function mE(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 hE(e){return Wu("MuiPaper",e)}Gu("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 gE=["className","component","elevation","square","variant"],vE=bc("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 Lr({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&&Lr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${gu("#fff",yc(t.elevation))}, ${gu("#fff",yc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var bE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=kr(n,gE),u=Lr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hE,o)})(u);return Xs.jsx(vE,Lr({as:o,ownerState:u,className:Sc(c.root,r),ref:t},s))}));function yE(e){return"string"==typeof e}function xE(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 SE(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 EE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function CE(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,EE),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=Pl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},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=xE(Xt({},o,r)),l=SE(r),s=SE(o),u=t(a),c=Pl(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=Xt({},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=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||yE(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:il(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var wE=Gu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const RE=["center","classes","className"];let LE,kE,ME,IE,_E=e=>e;const PE=ha(LE||(LE=_E`
46
46
  0% {
47
47
  transform: scale(0);
48
48
  opacity: 0.1;
@@ -52,7 +52,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
52
52
  transform: scale(1);
53
53
  opacity: 0.3;
54
54
  }
55
- `)),LE=ma(SE||(SE=wE`
55
+ `)),AE=ha(kE||(kE=_E`
56
56
  0% {
57
57
  opacity: 1;
58
58
  }
@@ -60,7 +60,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
60
60
  100% {
61
61
  opacity: 0;
62
62
  }
63
- `)),kE=ma(EE||(EE=wE`
63
+ `)),DE=ha(ME||(ME=_E`
64
64
  0% {
65
65
  transform: scale(1);
66
66
  }
@@ -72,7 +72,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
72
72
  100% {
73
73
  transform: scale(1);
74
74
  }
75
- `)),IE=pc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ME=pc((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]=Hn.useState(!1),p=hc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=hc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Hn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Bs.jsx("span",{className:p,style:f,children:Bs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(CE||(CE=wE`
75
+ `)),TE=bc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OE=bc((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]=Hn.useState(!1),p=Sc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Sc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Hn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Xs.jsx("span",{className:p,style:f,children:Xs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(IE||(IE=_E`
76
76
  opacity: 0;
77
77
  position: absolute;
78
78
 
@@ -115,9 +115,9 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
115
115
  animation-iteration-count: infinite;
116
116
  animation-delay: 200ms;
117
117
  }
118
- `),bE.rippleVisible,RE,550,(({theme:e})=>e.transitions.easing.easeInOut),bE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),bE.child,bE.childLeaving,LE,550,(({theme:e})=>e.transitions.easing.easeInOut),bE.childPulsate,kE,(({theme:e})=>e.transitions.easing.easeInOut)),_E=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,yE),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=Hn.useRef(0),f=Hn.useRef(null),m=Hn.useRef(null);Hn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Bs.jsx(ME,{classes:{ripple:hc(o.ripple,bE.ripple),rippleVisible:hc(o.rippleVisible,bE.rippleVisible),ripplePulsate:hc(o.ripplePulsate,bE.ripplePulsate),child:hc(o.child,bE.child),childLeaving:hc(o.childLeaving,bE.childLeaving),childPulsate:hc(o.childPulsate,bE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Bs.jsx(IE,Lr({className:hc(bE.root,o.root,i),ref:m},a,{children:Bs.jsx(aE,{component:null,exit:!0,children:l})}))}));var PE=_E;function AE(e){return Fu("MuiButtonBase",e)}var DE=zu("MuiButtonBase",["root","disabled","focusVisible"]);const TE=["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"],OE=pc("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"},[`&.${DE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),NE=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=kr(n,TE),A=Hn.useRef(null),D=Hn.useRef(null),T=Cu(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Du(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Eu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Eu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=Eu((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=Eu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Cu(t,F,A),se=Lr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xl({root:["root",t&&"disabled",n&&"focusVisible"]},AE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Bs.jsxs(OE,Lr({as:ie,className:hc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Bs.jsx(PE,Lr({ref:T,center:o},I)):null]}))}));var qE=NE;function FE(e){return Fu("MuiTypography",e)}zu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jE=pc("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${mu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),$E={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},BE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HE=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiTypography"}),r=(e=>BE[e]||e)(n.color),o=Vs(Lr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=$E}=o,f=kr(o,zE),m=Lr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||$E[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xl({root:["root",i,"inherit"!==e.align&&`align${mu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},FE,a)})(m);return Bs.jsx(jE,Lr({as:h,ref:t,ownerState:m,className:hc(g.root,a)},f))}));var WE=HE;const GE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VE(e){const t=[],n=[];return Array.from(e.querySelectorAll(GE)).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 UE(){return!0}function YE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=VE,isEnabled:a=UE,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=ol(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Za(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Za(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 Bs.jsxs(Hn.Fragment,{children:[Bs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Bs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const KE=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=ol(Hn.isValidElement(n)?n.ref:null,t);if(nl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),nl((()=>{if(i&&!o)return tl(t,i),()=>{tl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Bs.jsx(Hn.Fragment,{children:n})}return Bs.jsx(Hn.Fragment,{children:i?HS.createPortal(n,i):i})}));function XE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QE(e){return parseInt(el(e).getComputedStyle(e).paddingRight,10)||0}function JE(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&&XE(e,o)}))}function ZE(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function eC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Za(e);return t.body===e?el(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=bl(Za(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${QE(r)+e}px`;const t=Za(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${QE(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Za(r).body;else{const t=r.parentElement,n=el(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 tC=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&&XE(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);JE(t,e.mount,e.modalRef,r,!0);const o=ZE(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=ZE(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=eC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ZE(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&&XE(e.modalRef,t),JE(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&&XE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function nC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=ol(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=rl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Za(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=rl((e=>{f.current=e,e&&(c&&C()?S():m.current&&XE(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=mE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Qa((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Qa((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const rC=["onChange","maxRows","minRows","style","value"];function oC(e){return parseInt(e,10)||0}const iC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function aC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const lC=Hn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rn(e,rC),{current:s}=Hn.useRef(null!=a),u=Hn.useRef(null),c=ol(t,u),d=Hn.useRef(null),p=Hn.useRef(0),[f,m]=Hn.useState({outerHeightStyle:0}),h=Hn.useCallback((()=>{const t=u.current,n=el(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=oC(n.paddingBottom)+oC(n.paddingTop),s=oC(n.borderBottomWidth)+oC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Hn.useCallback((()=>{const e=h();aC(e)||m((t=>g(t,e)))}),[h]);nl((()=>{const e=()=>{p.current=0,(()=>{const e=h();aC(e)||HS.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Ja(e),n=u.current,r=el(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]),nl((()=>{v()})),Hn.useEffect((()=>{p.current=0}),[a]);return Bs.jsxs(Hn.Fragment,{children:[Bs.jsx("textarea",Xt({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Xt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Bs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xt({},iC,i,{paddingTop:0,paddingBottom:0})})]})}));function sC({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 uC=Hn.createContext(void 0);function cC(){return Hn.useContext(uC)}function dC(e){return Bs.jsx(Hs,Lr({},e,{defaultTheme:ac,themeId:Rr}))}function pC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function fC(e,t=!1){return e&&(pC(e.value)&&""!==e.value||t&&pC(e.defaultValue)&&""!==e.defaultValue)}function mC(e){return Fu("MuiInputBase",e)}var hC=zu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const gC=["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"],vC=(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${mu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bC=(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]},yC=pc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:vC})((({theme:e,ownerState:t})=>Lr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xC=pc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hC.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},[`&.${hC.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"})})),SC=Bs.jsx(dC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),EC=Hn.forwardRef((function(e,t){var n;const r=sc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=kr(r,gC),z=null!=v.value?v.value:q,{current:j}=Hn.useRef(null!=z),$=Hn.useRef(),B=Hn.useCallback((e=>{}),[]),H=Cu($,b,v.ref,B),[W,G]=Hn.useState(!1),V=cC(),U=sC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,Hn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Hn.useCallback((e=>{fC(e)?Y&&Y():K&&K()}),[Y,K]);vu((()=>{j&&X({value:z})}),[z,X,j]);Hn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Lr(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=lC);Hn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Lr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return xl({root:["root",`color${mu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${mu(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"]},mC,t)})(Z),te=T.root||s.Root||yC,ne=D.root||u.root||{},re=T.input||s.Input||xC;return J=Lr({},J,null!=(n=D.input)?n:u.input),Bs.jsxs(Hn.Fragment,{children:[!p&&SC,Bs.jsxs(te,Lr({},ne,!fE(te)&&{ownerState:Lr({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:hc(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,Bs.jsx(uC.Provider,{value:null,children:Bs.jsx(re,Lr({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!fE(re)&&{as:Q,ownerState:Lr({},Z,J.ownerState)},{ref:H,className:hc(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(wr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Lr({},U,{startAdornment:O})):null]}))]})}));var CC=EC;function wC(e){return Fu("MuiInput",e)}var RC=Lr({},hC,zu("MuiInput",["root","underline","input"]));function LC(e){return Fu("MuiOutlinedInput",e)}var kC=Lr({},hC,zu("MuiOutlinedInput",["root","notchedOutline","input"]));function IC(e){return Fu("MuiFilledInput",e)}var MC=Lr({},hC,zu("MuiFilledInput",["root","underline","input"])),_C=function(e,t){function n(n,r){return Bs.jsx(xc,Lr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=xc.muiName,Hn.memo(Hn.forwardRef(n))}(Bs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const PC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],AC={entering:{opacity:1},entered:{opacity:1}},DC=Hn.forwardRef((function(e,t){const n=lc(),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=eE}=e,b=kr(e,PC),y=Hn.useRef(null),x=Cu(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)=>{lE(e);const r=sE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=sE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Bs.jsx(v,Lr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Lr({style:Lr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},AC[e],h,a.props.style),ref:x},t))}))}));var TC=DC;function OC(e){return Fu("MuiBackdrop",e)}zu("MuiBackdrop",["root","invisible"]);const NC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qC=pc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),FC=Hn.forwardRef((function(e,t){var n,r,o;const i=sc({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=TC,transitionDuration:g}=i,v=kr(i,NC),b=Lr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xl({root:["root",n&&"invisible"]},OC,t)})(b),x=null!=(n=f.root)?n:c.root;return Bs.jsx(h,Lr({in:p,timeout:g},v,{children:Bs.jsx(qC,Lr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:hc(y.root,l,null==x?void 0:x.className),ownerState:Lr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var zC=FC;var jC=zu("MuiBox",["root"]);const $C=ic(),BC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ba("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ls);return Hn.forwardRef((function(e,a){const l=As(n),s=Vs(e),{className:u,component:c="div"}=s,d=rn(s,Ks);return Bs.jsx(i,Xt({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Rr,defaultTheme:$C,defaultClassName:jC.root,generateClassName:Nu.generate});var HC=BC;function WC(e){return Fu("MuiButton",e)}var GC=zu("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 VC=Hn.createContext({});var UC=Hn.createContext(void 0);const YC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],KC=e=>Lr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),XC=pc(qE,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${mu(n.color)}`],t[`size${mu(n.size)}`],t[`${n.variant}Size${mu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Lr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cu(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})`:cu(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})`:cu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${GC.focusVisible}`]:Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${GC.disabled}`]:Lr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${cu(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"},[`&.${GC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${GC.disabled}`]:{boxShadow:"none"}})),QC=pc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${mu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},KC(e)))),JC=pc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${mu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},KC(e)))),ZC=Hn.forwardRef((function(e,t){const n=Hn.useContext(VC),r=Hn.useContext(UC),o=sc({props:Tu(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=kr(o,YC),x=Lr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Lr({},a,xl({root:["root",i,`${i}${mu(t)}`,`size${mu(o)}`,`${i}Size${mu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${mu(o)}`],endIcon:["endIcon",`iconSize${mu(o)}`]},WC,a))})(x),E=g&&Bs.jsx(QC,{className:S.startIcon,ownerState:x,children:g}),C=p&&Bs.jsx(JC,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Bs.jsxs(XC,Lr({ownerState:x,className:hc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:hc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var ew=ZC;function tw(e){return Fu("MuiModal",e)}zu("MuiModal",["root","hidden","backdrop"]);const nw=["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"],rw=pc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),ow=pc(zC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iw=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=sc({name:"MuiModal",props:e}),{BackdropComponent:u=ow,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=kr(s,nw),P=Lr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=nC(Lr({},P,{rootRef:t})),z=Lr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return xl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},tw,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:rw,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:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=vE({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:hc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=vE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Lr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Bs.jsx(KE,{ref:O,container:m,disablePortal:S,children:Bs.jsxs(B,Lr({},V,{children:[!w&&u?Bs.jsx(H,Lr({},U)):null,Bs.jsx(YE,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var aw=iw;function lw(e){return Fu("MuiDivider",e)}var sw=zu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const uw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],cw=pc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:cu(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Lr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),dw=pc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),pw=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kr(n,uw),m=Lr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xl({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"]},lw,r)})(m);return Bs.jsx(cw,Lr({as:a,className:hc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Bs.jsx(dw,{className:h.wrapper,ownerState:m,children:o}):null}))}));pw.muiSkipListHighlight=!0;var fw=pw;const mw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],hw=pc(yC,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Lr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${MC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${MC.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"},[`&.${MC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${MC.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(.${MC.disabled}, .${MC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${MC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Lr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),gw=pc(xC,{name:"MuiFilledInput",slot:"Input",overridesResolver:bC})((({theme:e,ownerState:t})=>Lr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),vw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=sc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=kr(a,mw),g=Lr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,xl({root:["root",!n&&"underline"],input:["input"]},IC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?fu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:hw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:gw;return Bs.jsx(CC,Lr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));vw.muiName="Input";var bw=vw;const yw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xw(e){return`scale(${e}, ${e**2})`}const Sw={entering:{opacity:1,transform:xw(1)},entered:{opacity:1,transform:"none"}},Ew="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cw=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=eE}=e,g=kr(e,yw),v=Hn.useRef(),b=Hn.useRef(),y=lc(),x=Hn.useRef(null),S=Cu(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)=>{lE(e);const{duration:n,delay:r,easing:o}=sE({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:Ew?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=sE({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:Ew?o:.666*o,delay:Ew?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=xw(.75),c&&c(e)})),I=E(d);return Hn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Bs.jsx(h,Lr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Lr({style:Lr({opacity:0,transform:xw(.75),visibility:"exited"!==e||a?void 0:"hidden"},Sw[e],f,o.props.style),ref:S},t))}))}));Cw.muiSupportAuto=!0;var ww=Cw;const Rw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Lw=pc(yC,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...vC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Lr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${RC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${RC.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(.${RC.disabled}, .${RC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${RC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),kw=pc(xC,{name:"MuiInput",slot:"Input",overridesResolver:bC})({}),Iw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=sc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=kr(a,Rw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,xl({root:["root",!n&&"underline"],input:["input"]},wC,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?fu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Lw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:kw;return Bs.jsx(CC,Lr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Iw.muiName="Input";var Mw=Iw;function _w(e){return Fu("MuiLink",e)}var Pw=zu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Aw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Dw=({theme:e,ownerState:t})=>{const n=(e=>Aw[e]||e)(t.color),r=Ol(e,`palette.${n}`,!1)||t.color,o=Ol(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:cu(r,.4)};const Tw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ow=pc(WE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${mu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Lr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Lr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Dw({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"},[`&.${Pw.focusVisible}`]:{outline:"auto"}}))),Nw=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=kr(n,Tw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Du(),[v,b]=Hn.useState(!1),y=Cu(t,g),x=Lr({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return xl({root:["root",`underline${mu(o)}`,"button"===n&&"button",r&&"focusVisible"]},_w,t)})(x);return Bs.jsx(Ow,Lr({color:o,className:hc(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(Aw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var qw=Nw;var Fw=Hn.createContext({});function zw(e){return Fu("MuiList",e)}zu("MuiList",["root","padding","dense","subheader"]);const jw=["children","className","component","dense","disablePadding","subheader"],$w=pc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Bw=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,jw),c=Hn.useMemo((()=>({dense:a})),[a]),d=Lr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},zw,t)})(d);return Bs.jsx(Fw.Provider,{value:c,children:Bs.jsxs($w,Lr({as:i,className:hc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Hw(e){return Fu("MuiListItemIcon",e)}var Ww=zu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Gw=["className"],Vw=pc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Uw=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Gw),i=Lr({},n,{alignItems:Hn.useContext(Fw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Hw,n)})(i);return Bs.jsx(Vw,Lr({className:hc(a.root,r),ownerState:i,ref:t},o))}));var Yw=zu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Kw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Qw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Jw(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 Zw(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")&&Jw(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var eR=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=kr(e,Kw),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vu((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(hu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Cu(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Bs.jsx(Bw,Lr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=hu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Zw(t,r,s,l,Xw);else if("ArrowUp"===n)e.preventDefault(),Zw(t,r,s,l,Qw);else if("Home"===n)e.preventDefault(),Zw(t,null,s,l,Xw);else if("End"===n)e.preventDefault(),Zw(t,null,s,l,Qw);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&&Jw(r,o);o.previousKeyMatched&&(s||Zw(t,r,!1,l,Xw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function tR(e){return Fu("MuiPopover",e)}zu("MuiPopover",["root","paper"]);const nR=["onEntering"],rR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],oR=["slotProps"];function iR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function aR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function lR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function sR(e){return"function"==typeof e?e():e}const uR=pc(aw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cR=pc(pE,{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 dR=Hn.forwardRef((function(e,t){var n,r,o;const i=sc({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=ww,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=kr(i.TransitionProps,nR),L=kr(i,rR),k=null!=(n=null==y?void 0:y.paper)?n:v,I=Hn.useRef(),M=Cu(I,k.ref),_=Lr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"]},tR,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=sR(l),t=(e&&1===e.nodeType?e:hu(I.current).body).getBoundingClientRect();return{top:t.top+iR(t,s.vertical),left:t.left+aR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:iR(e,x.vertical),horizontal:aR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:lR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=gu(sR(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:lR(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=gu(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?hu(sR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:uR,$=null!=(o=null==b?void 0:b.paper)?o:cR,B=vE({elementType:$,externalSlotProps:Lr({},k,{style:O?k.style:Lr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:hc(P.paper,null==k?void 0:k.className)}),H=vE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:hc(P.root,p)}),{slotProps:W}=H,G=kr(H,oR);return Bs.jsx(j,Lr({},G,!fE(j)&&{slotProps:W,disableScrollLock:w},{children:Bs.jsx(S,Lr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Bs.jsx($,Lr({},B,{children:d}))}))}))}));function pR(e){return Fu("MuiMenu",e)}zu("MuiMenu",["root","paper","list"]);const fR=["onEntering"],mR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],hR={vertical:"top",horizontal:"right"},gR={vertical:"top",horizontal:"left"},vR=pc(dR,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bR=pc(cR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yR=pc(eR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var xR=Hn.forwardRef((function(e,t){var n,r;const o=sc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=kr(o.TransitionProps,fR),x=kr(o,mR),S=lc(),E="rtl"===S.direction,C=Lr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"],list:["list"]},pR,t)})(C),R=i&&!s&&d,L=Hn.useRef(null);let k=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:bR,M=null!=(r=b.paper)?r:p,_=vE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=vE({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return Bs.jsx(vR,Lr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?hR:gR,slots:{paper:I,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Lr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:Bs.jsx(yR,Lr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:hc(w.list,u.className),children:a}))}))}));function SR(e){return Fu("MuiMenuItem",e)}var ER=zu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const CR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wR=pc(qE,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ER.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ER.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ER.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cu(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})`:cu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ER.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ER.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sw.inset}`]:{marginLeft:52},[`& .${Yw.root}`]:{marginTop:0,marginBottom:0},[`& .${Yw.inset}`]:{paddingLeft:36},[`& .${Ww.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ww.root} svg`]:{fontSize:"1.25rem"}}))));var RR=Hn.forwardRef((function(e,t){const n=sc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,CR),f=Hn.useContext(Fw),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);vu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Lr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Lr({},a,xl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},SR,a))})(n),b=Cu(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Bs.jsx(Fw.Provider,{value:m,children:Bs.jsx(wR,Lr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:hc(v.focusVisible,s),className:hc(v.root,d)},p,{ownerState:g,classes:v}))})}));function LR(e){return Fu("MuiNativeSelect",e)}var kR=zu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const IR=["className","disabled","error","IconComponent","inputRef","variant"],MR=({ownerState:e,theme:t})=>Lr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Lr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${kR.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}}),_R=pc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:uc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${kR.multiple}`]:t.multiple}]}})(MR),PR=({ownerState:e,theme:t})=>Lr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${kR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),AR=pc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${mu(n.variant)}`],n.open&&t.iconOpen]}})(PR),DR=Hn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,IR),u=Lr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${mu(n)}`,i&&"iconOpen",r&&"disabled"]},LR,t)})(u);return Bs.jsxs(Hn.Fragment,{children:[Bs.jsx(_R,Lr({ownerState:u,className:hc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Bs.jsx(AR,{as:i,ownerState:u,className:c.icon})]})}));var TR,OR=DR;const NR=["children","classes","className","label","notched"],qR=pc("fieldset",{shouldForwardProp:uc})({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%"}),FR=pc("legend",{shouldForwardProp:uc})((({ownerState:e,theme:t})=>Lr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Lr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const zR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jR=pc(yC,{shouldForwardProp:e=>uc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:vC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${kC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${kC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${kC.focused} .${kC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${kC.error} .${kC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${kC.disabled} .${kC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),$R=pc((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,NR),i=null!=n&&""!==n,a=Lr({},e,{notched:r,withLabel:i});return Bs.jsx(qR,Lr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Bs.jsx(FR,{ownerState:a,children:i?Bs.jsx("span",{children:n}):TR||(TR=Bs.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}})),BR=pc(xC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bC})((({theme:e,ownerState:t})=>Lr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),HR=Hn.forwardRef((function(e,t){var n,r,o,i,a;const l=sc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=kr(l,zR),v=(e=>{const{classes:t}=e;return Lr({},t,xl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LC,t))})(l),b=cC(),y=sC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:jR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:BR;return Bs.jsx(CC,Lr({slots:{root:S,input:E},renderSuffix:e=>Bs.jsx($R,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Bs.jsxs(Hn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Lr({},v,{notchedOutline:null})}))}));HR.muiName="Input";var WR=HR;function GR(e){return Fu("MuiSelect",e)}var VR,UR=zu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const YR=["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"],KR=pc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${UR.select}`]:t.select},{[`&.${UR.select}`]:t[n.variant]},{[`&.${UR.error}`]:t.error},{[`&.${UR.multiple}`]:t.multiple}]}})(MR,{[`&.${UR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XR=pc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${mu(n.variant)}`],n.open&&t.iconOpen]}})(PR),QR=pc("input",{shouldForwardProp:e=>cc(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 JR(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function ZR(e){return null==e||"string"==typeof e&&!e.trim()}const eL=Hn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:_,variant:P="standard"}=e,A=kr(e,YR),[D,T]=Su({controlled:_,default:c,name:"Select"}),[O,N]=Su({controlled:R,default:u,name:"Select"}),q=Hn.useRef(null),F=Hn.useRef(null),[z,j]=Hn.useState(null),{current:$}=Hn.useRef(null!=R),[B,H]=Hn.useState(),W=Cu(t,h),G=Hn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Hn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Hn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Hn.useEffect((()=>{i&&F.current.focus()}),[i]),Hn.useEffect((()=>{if(!g)return;const e=hu(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Hn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(fC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!Hn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(wr(2));t=D.some((t=>JR(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=JR(D,e.props.value),t&&ee&&(J=e.props.children);return Hn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Lr({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${mu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},GR,t)})(ie),le=Lr({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=xu();return Bs.jsxs(Hn.Fragment,{children:[Bs.jsx(KR,Lr({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:hc(I.className,ae.select,s),id:oe,children:ZR(Q)?VR||(VR=Bs.jsx("span",{className:"notranslate",children:"​"})):Q})),Bs.jsx(QR,Lr({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),Bs.jsx(XR,{as:m,className:ae.icon,ownerState:ie}),Bs.jsx(xR,Lr({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Lr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Lr({},v.slotProps,{paper:Lr({},le,{style:Lr({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var tL=eL;const nL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rL=["root"],oL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>uc(e)&&"variant"!==e,slot:"Root"},iL=pc(Mw,oL)(""),aL=pc(WR,oL)(""),lL=pc(bw,oL)(""),sL=Hn.forwardRef((function(e,t){const n=sc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=_C,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=kr(n,nL),R=v?OR:tL,L=sC({props:n,muiFormControl:cC(),states:["variant","error"]}),k=L.variant||C,I=Lr({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=kr(M,rL),P=d||{standard:Bs.jsx(iL,{ownerState:I}),outlined:Bs.jsx(aL,{label:f,ownerState:I}),filled:Bs.jsx(lL,{ownerState:I})}[k],A=Cu(t,P.ref);return Bs.jsx(Hn.Fragment,{children:Hn.cloneElement(P,Lr({inputComponent:R,inputProps:Lr({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Lr({id:c},E)},p,{classes:p?fu(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:hc(P.props.className,a,M.root)},!d&&{variant:k},w))})}));sL.muiName="Select";var uL=sL,cL=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:Un.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const dL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Un.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Un.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,borderRadius:Jn,backgroundColor:Un.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Un.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Un.WHITE,color:Un.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Jn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${cu(Un.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${cu(Un.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Jn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Un.PURPLE,"&.Mui-focusVisible":{borderColor:Un.PURPLE,boxShadow:`0 0 0 3px ${cu(Un.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Un.GREEN,"&.Mui-focusVisible":{borderColor:Un.GREEN,boxShadow:`0 0 0 3px ${cu(Un.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Un.BLUE,"&.Mui-focusVisible":{borderColor:Un.BLUE,boxShadow:`0 0 0 3px ${cu(Un.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Un.ORANGE,"&.Mui-focusVisible":{borderColor:Un.ORANGE,boxShadow:`0 0 0 3px ${cu(Un.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Un.RED,"&.Mui-focusVisible":{borderColor:Un.RED,boxShadow:`0 0 0 3px ${cu(Un.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Un.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Un.PURPLE_PALE},"&:active":{backgroundColor:Un.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Un.PURPLE_PALE,boxShadow:`0 0 0 3px ${cu(Un.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${cu(Un.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${cu(Un.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Un.ORANGE_PALE},"&:active":{backgroundColor:Un.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Un.ORANGE_PALE,boxShadow:`0 0 0 3px ${cu(Un.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Un.RED_PALE},"&:active":{backgroundColor:Un.RED_DARK},"&.Mui-focusVisible":{borderColor:Un.RED_PALE,boxShadow:`0 0 0 3px ${cu(Un.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Un.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Un.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Jn,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yn,borderRadius:Jn,color:Un.TEXT_PRIMARY,backgroundColor:Un.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Un.GREYSCALE_0_05,color:Un.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Un.GREEN,borderColor:Un.GREEN},"&.MuiChip-outlinedInfo":{color:Un.BLUE,borderColor:Un.BLUE},"&.MuiChip-outlinedWarning":{color:Un.ORANGE,borderColor:Un.ORANGE},"&.MuiChip-outlinedError":{color:Un.RED,borderColor:Un.RED}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Jn,boxShadow:"none",backgroundColor:Un.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Un.GREEN,borderColor:Un.GREEN},outlinedSecondary:{color:Un.BLUE,borderColor:Un.BLUE},label:{fontFamily:rr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Jn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Jn,fontSize:Kn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Un.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Un.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Un.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Un.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Jn,border:`solid 1px ${Un.GREYSCALE_0_15}`,color:Un.GREYSCALE_0_60,marginRight:0,width:Qn,height:Qn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Un.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Jn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Un.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Un.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Un.GREYSCALE_25,fontSize:Yn,fontFamily:rr.FONT_FAMILY,fontWeight:tr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Un.TEXT_PRIMARY},"&.Mui-error":{color:Un.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Un.TEXT_SECONDARY,content:"'(optional)'",fontWeight:er,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Un.TEXT_SECONDARY,content:"'(required)'",fontWeight:er,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kn,lineHeight:"16px",backgroundColor:Un.WHITE,borderRadius:Jn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_05}`,borderColor:Un.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.RED}`,boxShadow:`0px 0px 0px 1px ${Un.RED}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_10}`,borderColor:Un.GREYSCALE_0_10,backgroundColor:Un.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Un.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Un.GREYSCALE_0_15,borderRadius:Jn,boxShadow:`inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(lr,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Un.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Un.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&:focus":{backgroundColor:Un.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Un.GREYSCALE_0_30,"&:hover":{backgroundColor:Un.GREYSCALE_0_0,borderColor:Un.GREYSCALE_0_15},"& ~svg":{color:Un.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Jn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Un.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Kn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yn,fontWeight:tr,color:Un.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(fr,null),checkedIcon:Wn.createElement(mr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Un.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${cu(Un.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${cu(Un.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Un.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Un.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(cL,null),checkedIcon:Wn.createElement(dr,null),indeterminateIcon:Wn.createElement(pr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Jn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Un.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Un.GREYSCALE_0_55,color:Un.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Un.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Un.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Un.GREYSCALE_0_55,"&:hover":{color:Un.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Un.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Un.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kn,color:Un.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tr},secondary:{fontSize:Yn,color:Un.GREYSCALE_45,fontWeight:er,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Un.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yn,borderBottom:`solid 1px ${Un.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kn,color:Un.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Un.RED}}},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Un.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Un.GREEN,height:"24px","&.Mui-disabled":{color:Un.GREYSCALE_0_15}},rail:{backgroundColor:Un.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn,boxShadow:`inset 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.WHITE,boxShadow:`0px 1px 2px 0px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`,"&:hover":{borderRadius:Jn,boxShadow:`0 2px 4px 0 ${Un.GREYSCALE_0_30}, 0 0 0 1px ${Un.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Un.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Un.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Un.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Un.GREYSCALE_0_15},markLabel:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Un.WHITE,color:Un.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Un.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${cu(Un.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${cu(Un.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Un.GREYSCALE_0_15,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Kn,fontWeight:tr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Un.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,backgroundColor:Un.GREYSCALE_0_03,borderRadius:Jn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Un.GREYSCALE_25,"&.Mui-selected":{color:Un.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Un.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Un.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderRight:`1px solid ${Un.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tr,backgroundColor:Un.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Un.GREYSCALE_98,borderBottom:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderTop:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Un.GREYSCALE_0_05,"&:hover":{backgroundColor:Un.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Un.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(hr,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Un.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kn,borderRadius:Jn,padding:"7px 16px",border:`1px solid ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_60,color:Un.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Un.GREYSCALE_0_03,border:`1px solid ${Un.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Un.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`,border:`1px solid ${Un.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Un.GREYSCALE_25,backgroundColor:Un.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yn,height:24,width:24,padding:7},sizeLarge:{fontSize:Xn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kn,borderRadius:Jn}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Un.GREYSCALE_20},tooltip:{backgroundColor:Un.GREYSCALE_20,fontSize:Yn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const pL={mode:"light",primary:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},secondary:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},error:{light:Un.RED_PALE,main:Un.RED,dark:Un.RED_DARK,contrastText:Un.WHITE},warning:{light:Un.ORANGE_PALE,main:Un.ORANGE,dark:Un.ORANGE_DARK,contrastText:Un.WHITE},success:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},info:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},text:{primary:Un.TEXT_PRIMARY,secondary:Un.TEXT_SECONDARY,disabled:Un.GREYSCALE_0_30},action:{hover:Un.GREYSCALE_0_03,hoverOpacity:.05,selected:Un.GREYSCALE_0_05,focus:Un.MISC_FOCUS_BORDER},amethyst:{main:Un.PURPLE,light:Un.PURPLE_PALE,dark:Un.PURPLE_DARK,contrastText:Un.WHITE},background:{paper:Un.WHITE,default:Un.GREYSCALE_95},divider:Un.GREYSCALE_0_15},fL=e=>({components:dL,palette:pL,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Kn,fontWeightLight:Zn,fontWeightRegular:er,fontWeightMedium:tr,fontWeightBold:nr,htmlFontSize:Kn,fontFamily:rr.FONT_FAMILY,button:{fontWeight:tr,fontSize:Kn,textTransform:"none"},body1:{fontSize:Xn,lineHeight:"24px"},body2:{fontSize:Kn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xn,fontWeight:tr,lineHeight:"16px"},h6:{fontSize:Kn,fontWeight:tr,lineHeight:"16px"},caption:{color:Un.TEXT_SECONDARY},subtitle1:{fontSize:Kn,color:Un.TEXT_SECONDARY},subtitle2:{fontSize:Yn,color:Un.TEXT_SECONDARY}},shape:{borderRadius:Jn}}),mL={...Vn,MISC_FOCUS_BORDER:Un.MISC_FOCUS_BORDER},hL=fL().palette,gL={TEXT:hL.text.primary,DISABLED:hL.text.disabled,HOVER:hL.action.hover,WHITE:mL.GREYSCALE_100,BORDER_LIGHT:mL.GREYSCALE_90,BORDER_MEDIUM:mL.GREYSCALE_85,BORDER_HEAVY:mL.GREYSCALE_50,DARK_MODE_TEXT:mL.GREYSCALE_95,DARK_MODE_BORDER:mL.GREYSCALE_95,DARK_MODE_DISABLED:mL.GREYSCALE_70,DARK_MODE_BACKGROUND:mL.GREYSCALE_20};function vL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yL(){}var xL=.7,SL=1/xL,EL="\\s*([+-]?\\d+)\\s*",CL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RL=/^#([0-9a-f]{3,8})$/,LL=new RegExp(`^rgb\\(${EL},${EL},${EL}\\)$`),kL=new RegExp(`^rgb\\(${wL},${wL},${wL}\\)$`),IL=new RegExp(`^rgba\\(${EL},${EL},${EL},${CL}\\)$`),ML=new RegExp(`^rgba\\(${wL},${wL},${wL},${CL}\\)$`),_L=new RegExp(`^hsl\\(${CL},${wL},${wL}\\)$`),PL=new RegExp(`^hsla\\(${CL},${wL},${wL},${CL}\\)$`),AL={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 DL(){return this.rgb().formatHex()}function TL(){return this.rgb().formatRgb()}function OL(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?NL(t):3===n?new jL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qL(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=LL.exec(e))?new jL(t[1],t[2],t[3],1):(t=kL.exec(e))?new jL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=IL.exec(e))?qL(t[1],t[2],t[3],t[4]):(t=ML.exec(e))?qL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=_L.exec(e))?VL(t[1],t[2]/100,t[3]/100,1):(t=PL.exec(e))?VL(t[1],t[2]/100,t[3]/100,t[4]):AL.hasOwnProperty(e)?NL(AL[e]):"transparent"===e?new jL(NaN,NaN,NaN,0):null}function NL(e){return new jL(e>>16&255,e>>8&255,255&e,1)}function qL(e,t,n,r){return r<=0&&(e=t=n=NaN),new jL(e,t,n,r)}function FL(e){return e instanceof yL||(e=OL(e)),e?new jL((e=e.rgb()).r,e.g,e.b,e.opacity):new jL}function zL(e,t,n,r){return 1===arguments.length?FL(e):new jL(e,t,n,null==r?1:r)}function jL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $L(){return`#${GL(this.r)}${GL(this.g)}${GL(this.b)}`}function BL(){const e=HL(this.opacity);return`${1===e?"rgb(":"rgba("}${WL(this.r)}, ${WL(this.g)}, ${WL(this.b)}${1===e?")":`, ${e})`}`}function HL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function WL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function GL(e){return((e=WL(e))<16?"0":"")+e.toString(16)}function VL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new YL(e,t,n,r)}function UL(e){if(e instanceof YL)return new YL(e.h,e.s,e.l,e.opacity);if(e instanceof yL||(e=OL(e)),!e)return new YL;if(e instanceof YL)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 YL(a,l,s,e.opacity)}function YL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function KL(e){return(e=(e||0)%360)<0?e+360:e}function XL(e){return Math.max(0,Math.min(1,e||0))}function QL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vL(yL,OL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:DL,formatHex:DL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return UL(this).formatHsl()},formatRgb:TL,toString:TL}),vL(jL,zL,bL(yL,{brighter(e){return e=null==e?SL:Math.pow(SL,e),new jL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xL:Math.pow(xL,e),new jL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jL(WL(this.r),WL(this.g),WL(this.b),HL(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:$L,formatHex:$L,formatHex8:function(){return`#${GL(this.r)}${GL(this.g)}${GL(this.b)}${GL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:BL,toString:BL})),vL(YL,(function(e,t,n,r){return 1===arguments.length?UL(e):new YL(e,t,n,null==r?1:r)}),bL(yL,{brighter(e){return e=null==e?SL:Math.pow(SL,e),new YL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xL:Math.pow(xL,e),new YL(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 jL(QL(e>=240?e-240:e+120,o,r),QL(e,o,r),QL(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new YL(KL(this.h),XL(this.s),XL(this.l),HL(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=HL(this.opacity);return`${1===e?"hsl(":"hsla("}${KL(this.h)}, ${100*XL(this.s)}%, ${100*XL(this.l)}%${1===e?")":`, ${e})`}`}}));const JL=Math.PI/180,ZL=180/Math.PI,ek=.96422,tk=1,nk=.82521,rk=4/29,ok=6/29,ik=3*ok*ok,ak=ok*ok*ok;function lk(e){if(e instanceof sk)return new sk(e.l,e.a,e.b,e.opacity);if(e instanceof mk)return hk(e);e instanceof jL||(e=FL(e));var t,n,r=pk(e.r),o=pk(e.g),i=pk(e.b),a=uk((.2225045*r+.7168786*o+.0606169*i)/tk);return r===o&&o===i?t=n=a:(t=uk((.4360747*r+.3850649*o+.1430804*i)/ek),n=uk((.0139322*r+.0971045*o+.7141733*i)/nk)),new sk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function sk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function uk(e){return e>ak?Math.pow(e,1/3):e/ik+rk}function ck(e){return e>ok?e*e*e:ik*(e-rk)}function dk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof mk)return new mk(e.h,e.c,e.l,e.opacity);if(e instanceof sk||(e=lk(e)),0===e.a&&0===e.b)return new mk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ZL;return new mk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new mk(e,t,n,null==r?1:r)}function mk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function hk(e){if(isNaN(e.h))return new sk(e.l,0,0,e.opacity);var t=e.h*JL;return new sk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vL(sk,(function(e,t,n,r){return 1===arguments.length?lk(e):new sk(e,t,n,null==r?1:r)}),bL(yL,{brighter(e){return new sk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new sk(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 jL(dk(3.1338561*(t=ek*ck(t))-1.6168667*(e=tk*ck(e))-.4906146*(n=nk*ck(n))),dk(-.9787684*t+1.9161415*e+.033454*n),dk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vL(mk,fk,bL(yL,{brighter(e){return new mk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new mk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hk(this).rgb()}}));const gk=(e,t)=>{const n=fk(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()},vk=e=>{if(e){const t=zL(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},bk=e=>!!e&&0===zL(e).opacity,yk=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,xk=e=>{const t=yk.exec(e);if(t){const[,e,n,r,o]=t;return zL(+n,+r,+o,+e/255)}return zL(e)},Sk=e=>{const t=xk(e);return Number.isNaN(t.r)?null:t.toString()},Ek=e=>{e.stopPropagation(),e.preventDefault()},Ck="#grid",wk=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Rk=(e,t,n,r,o)=>{const i=wk(".qv-object .qv-inner-object",n),a=wk(".qv-panel-sheet",n),l=wk(Ck,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 Sk(s);if("none"===u)return"transparent";if(void 0===u)return;const c=xk(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=bk(p),m=vk(f?s:p),h=((e,t,n)=>e&&!bk(e)?e:bk(t)?n&&!bk(n)?n:gL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},Lk=(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(Ck),{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:Rk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function kk(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Ik=Object.prototype.hasOwnProperty,Mk=Object.prototype.toString,_k=Object.defineProperty,Pk=Object.getOwnPropertyDescriptor,Ak=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Mk.call(e)},Dk=function(e){if(!e||"[object Object]"!==Mk.call(e))return!1;var t,n=Ik.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ik.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ik.call(e,t)},Tk=function(e,t){_k&&"__proto__"===t.name?_k(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ok=function(e,t){if("__proto__"===t){if(!Ik.call(e,t))return;if(Pk)return Pk(e,t).value}return e[t]};function Nk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function qk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Fk(){}!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=Ok(l,n),l!==(o=Ok(t,n))&&(c&&o&&(Dk(o)||(i=Ak(o)))?(i?(i=!1,a=r&&Ak(r)?r:[]):a=r&&Dk(r)?r:{},Tk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Tk(l,{name:n,newValue:o}));return l}));var zk=1/.7,jk="\\s*([+-]?\\d+)\\s*",$k="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hk=/^#([0-9a-f]{3,8})$/,Wk=new RegExp(`^rgb\\(${jk},${jk},${jk}\\)$`),Gk=new RegExp(`^rgb\\(${Bk},${Bk},${Bk}\\)$`),Vk=new RegExp(`^rgba\\(${jk},${jk},${jk},${$k}\\)$`),Uk=new RegExp(`^rgba\\(${Bk},${Bk},${Bk},${$k}\\)$`),Yk=new RegExp(`^hsl\\(${$k},${Bk},${Bk}\\)$`),Kk=new RegExp(`^hsla\\(${$k},${Bk},${Bk},${$k}\\)$`),Xk={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 Qk(){return this.rgb().formatHex()}function Jk(){return this.rgb().formatRgb()}function Zk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Hk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?eI(t):3===n?new oI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?tI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?tI(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=Wk.exec(e))?new oI(t[1],t[2],t[3],1):(t=Gk.exec(e))?new oI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Vk.exec(e))?tI(t[1],t[2],t[3],t[4]):(t=Uk.exec(e))?tI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Yk.exec(e))?cI(t[1],t[2]/100,t[3]/100,1):(t=Kk.exec(e))?cI(t[1],t[2]/100,t[3]/100,t[4]):Xk.hasOwnProperty(e)?eI(Xk[e]):"transparent"===e?new oI(NaN,NaN,NaN,0):null}function eI(e){return new oI(e>>16&255,e>>8&255,255&e,1)}function tI(e,t,n,r){return r<=0&&(e=t=n=NaN),new oI(e,t,n,r)}function nI(e){return e instanceof Fk||(e=Zk(e)),e?new oI((e=e.rgb()).r,e.g,e.b,e.opacity):new oI}function rI(e,t,n,r){return 1===arguments.length?nI(e):new oI(e,t,n,null==r?1:r)}function oI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function iI(){return`#${uI(this.r)}${uI(this.g)}${uI(this.b)}`}function aI(){const e=lI(this.opacity);return`${1===e?"rgb(":"rgba("}${sI(this.r)}, ${sI(this.g)}, ${sI(this.b)}${1===e?")":`, ${e})`}`}function lI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uI(e){return((e=sI(e))<16?"0":"")+e.toString(16)}function cI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pI(e,t,n,r)}function dI(e){if(e instanceof pI)return new pI(e.h,e.s,e.l,e.opacity);if(e instanceof Fk||(e=Zk(e)),!e)return new pI;if(e instanceof pI)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 pI(a,l,s,e.opacity)}function pI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function fI(e){return(e=(e||0)%360)<0?e+360:e}function mI(e){return Math.max(0,Math.min(1,e||0))}function hI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Nk(Fk,Zk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qk,formatHex:Qk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dI(this).formatHsl()},formatRgb:Jk,toString:Jk}),Nk(oI,rI,qk(Fk,{brighter(e){return e=null==e?zk:Math.pow(zk,e),new oI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new oI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oI(sI(this.r),sI(this.g),sI(this.b),lI(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:iI,formatHex:iI,formatHex8:function(){return`#${uI(this.r)}${uI(this.g)}${uI(this.b)}${uI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:aI,toString:aI})),Nk(pI,(function(e,t,n,r){return 1===arguments.length?dI(e):new pI(e,t,n,null==r?1:r)}),qk(Fk,{brighter(e){return e=null==e?zk:Math.pow(zk,e),new pI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pI(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 oI(hI(e>=240?e-240:e+120,o,r),hI(e,o,r),hI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new pI(fI(this.h),mI(this.s),mI(this.l),lI(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=lI(this.opacity);return`${1===e?"hsl(":"hsla("}${fI(this.h)}, ${100*mI(this.s)}%, ${100*mI(this.l)}%${1===e?")":`, ${e})`}`}}));const gI=Math.PI/180,vI=180/Math.PI,bI=4/29,yI=6/29,xI=3*yI*yI;function SI(e){if(e instanceof EI)return new EI(e.l,e.a,e.b,e.opacity);if(e instanceof kI)return II(e);e instanceof oI||(e=nI(e));var t,n,r=LI(e.r),o=LI(e.g),i=LI(e.b),a=CI((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=CI((.4360747*r+.3850649*o+.1430804*i)/.96422),n=CI((.0139322*r+.0971045*o+.7141733*i)/.82521)),new EI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function EI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function CI(e){return e>.008856451679035631?Math.pow(e,1/3):e/xI+bI}function wI(e){return e>yI?e*e*e:xI*(e-bI)}function RI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function LI(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function II(e){if(isNaN(e.h))return new EI(e.l,0,0,e.opacity);var t=e.h*gI;return new EI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Nk(EI,(function(e,t,n,r){return 1===arguments.length?SI(e):new EI(e,t,n,null==r?1:r)}),qk(Fk,{brighter(e){return new EI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new EI(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 oI(RI(3.1338561*(t=.96422*wI(t))-1.6168667*(e=1*wI(e))-.4906146*(n=.82521*wI(n))),RI(-.9787684*t+1.9161415*e+.033454*n),RI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Nk(kI,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kI)return new kI(e.h,e.c,e.l,e.opacity);if(e instanceof EI||(e=SI(e)),0===e.a&&0===e.b)return new kI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vI;return new kI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kI(e,t,n,null==r?1:r)}),qk(Fk,{brighter(e){return new kI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return II(this).rgb()}}));var MI,_I=e=>()=>e;function PI(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_I(isNaN(e)?t:e)}function AI(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 DI(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 TI(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=NI)):void 0===t&&(t=OI);for(var n,r,o,i,a,l=new zI(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 zI(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(FI)}function OI(e){return e.children}function NI(e){return Array.isArray(e)?e[1]:null}function qI(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function FI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function zI(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?PI: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):_I(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=rI(e)).r,(t=rI(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=PI(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),zI.prototype=TI.prototype={constructor:zI,count:function(){return this.eachAfter(DI)},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 TI(this).eachBefore(qI)},[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)}},MI=function(e){
118
+ `),wE.rippleVisible,PE,550,(({theme:e})=>e.transitions.easing.easeInOut),wE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wE.child,wE.childLeaving,AE,550,(({theme:e})=>e.transitions.easing.easeInOut),wE.childPulsate,DE,(({theme:e})=>e.transitions.easing.easeInOut)),NE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,RE),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=Hn.useRef(0),f=Hn.useRef(null),m=Hn.useRef(null);Hn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xs.jsx(OE,{classes:{ripple:Sc(o.ripple,wE.ripple),rippleVisible:Sc(o.rippleVisible,wE.rippleVisible),ripplePulsate:Sc(o.ripplePulsate,wE.ripplePulsate),child:Sc(o.child,wE.child),childLeaving:Sc(o.childLeaving,wE.childLeaving),childPulsate:Sc(o.childPulsate,wE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Xs.jsx(TE,Lr({className:Sc(wE.root,o.root,i),ref:m},a,{children:Xs.jsx(pE,{component:null,exit:!0,children:l})}))}));var qE=NE;function FE(e){return Wu("MuiButtonBase",e)}var zE=Gu("MuiButtonBase",["root","disabled","focusVisible"]);const jE=["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"],$E=bc("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"},[`&.${zE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:_}=n,P=kr(n,jE),A=Hn.useRef(null),D=Hn.useRef(null),T=Iu(D,I),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=zu(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Mu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Mu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=Mu((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=Mu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Iu(t,F,A),se=Lr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sl({root:["root",t&&"disabled",n&&"focusVisible"]},FE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xs.jsxs($E,Lr({as:ie,className:Sc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Xs.jsx(qE,Lr({ref:T,center:o},M)):null]}))}));var HE=BE;function WE(e){return Wu("MuiTypography",e)}Gu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const GE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VE=bc("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${xu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),UE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},KE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiTypography"}),r=(e=>YE[e]||e)(n.color),o=eu(Lr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=UE}=o,f=kr(o,GE),m=Lr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||UE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sl({root:["root",i,"inherit"!==e.align&&`align${xu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},WE,a)})(m);return Xs.jsx(VE,Lr({as:h,ref:t,ownerState:m,className:Sc(g.root,a)},f))}));var XE=KE;const QE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function JE(e){const t=[],n=[];return Array.from(e.querySelectorAll(QE)).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 ZE(){return!0}function eC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=JE,isEnabled:a=ZE,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=il(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(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 Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const tC=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=il(Hn.isValidElement(n)?n.ref:null,t);if(rl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rl((()=>{if(i&&!o)return nl(t,i),()=>{nl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Xs.jsx(Hn.Fragment,{children:n})}return Xs.jsx(Hn.Fragment,{children:i?KS.createPortal(n,i):i})}));function nC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rC(e){return parseInt(tl(e).getComputedStyle(e).paddingRight,10)||0}function oC(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&&nC(e,o)}))}function iC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function aC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=el(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yl(el(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rC(r)+e}px`;const t=el(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${rC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=el(r).body;else{const t=r.parentElement,n=tl(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 lC=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&&nC(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);oC(t,e.mount,e.modalRef,r,!0);const o=iC(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=iC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=aC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=iC(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&&nC(e.modalRef,t),oC(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&&nC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function sC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=lC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=il(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=ol((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||el(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=ol((e=>{f.current=e,e&&(c&&C()?S():m.current&&nC(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=xE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ja((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ja((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const uC=["onChange","maxRows","minRows","style","value"];function cC(e){return parseInt(e,10)||0}const dC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function pC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const fC=Hn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rn(e,uC),{current:s}=Hn.useRef(null!=a),u=Hn.useRef(null),c=il(t,u),d=Hn.useRef(null),p=Hn.useRef(0),[f,m]=Hn.useState({outerHeightStyle:0}),h=Hn.useCallback((()=>{const t=u.current,n=tl(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=cC(n.paddingBottom)+cC(n.paddingTop),s=cC(n.borderBottomWidth)+cC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Hn.useCallback((()=>{const e=h();pC(e)||m((t=>g(t,e)))}),[h]);rl((()=>{const e=()=>{p.current=0,(()=>{const e=h();pC(e)||KS.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Za(e),n=u.current,r=tl(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]),rl((()=>{v()})),Hn.useEffect((()=>{p.current=0}),[a]);return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("textarea",Xt({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Xt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Xs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xt({},dC,i,{paddingTop:0,paddingBottom:0})})]})}));function mC({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 hC=Hn.createContext(void 0);function gC(){return Hn.useContext(hC)}function vC(e){return Xs.jsx(Qs,Lr({},e,{defaultTheme:pc,themeId:Rr}))}function bC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yC(e,t=!1){return e&&(bC(e.value)&&""!==e.value||t&&bC(e.defaultValue)&&""!==e.defaultValue)}function xC(e){return Wu("MuiInputBase",e)}var SC=Gu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const EC=["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"],CC=(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${xu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wC=(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]},RC=bc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:CC})((({theme:e,ownerState:t})=>Lr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${SC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),LC=bc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${SC.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},[`&.${SC.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"})})),kC=Xs.jsx(vC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),MC=Hn.forwardRef((function(e,t){var n;const r=mc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:M,placeholder:I,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=kr(r,EC),z=null!=v.value?v.value:q,{current:j}=Hn.useRef(null!=z),$=Hn.useRef(),B=Hn.useCallback((e=>{}),[]),H=Iu($,b,v.ref,B),[W,G]=Hn.useState(!1),V=gC(),U=mC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,Hn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Hn.useCallback((e=>{yC(e)?Y&&Y():K&&K()}),[Y,K]);Cu((()=>{j&&X({value:z})}),[z,X,j]);Hn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Lr(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=fC);Hn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Lr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Sl({root:["root",`color${xu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${xu(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"]},xC,t)})(Z),te=T.root||s.Root||RC,ne=D.root||u.root||{},re=T.input||s.Input||LC;return J=Lr({},J,null!=(n=D.input)?n:u.input),Xs.jsxs(Hn.Fragment,{children:[!p&&kC,Xs.jsxs(te,Lr({},ne,!yE(te)&&{ownerState:Lr({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Sc(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,Xs.jsx(hC.Provider,{value:null,children:Xs.jsx(re,Lr({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:I,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:M,type:N},J,!yE(re)&&{as:Q,ownerState:Lr({},Z,J.ownerState)},{ref:H,className:Sc(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(wr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Lr({},U,{startAdornment:O})):null]}))]})}));var IC=MC;function _C(e){return Wu("MuiInput",e)}var PC=Lr({},SC,Gu("MuiInput",["root","underline","input"]));function AC(e){return Wu("MuiOutlinedInput",e)}var DC=Lr({},SC,Gu("MuiOutlinedInput",["root","notchedOutline","input"]));function TC(e){return Wu("MuiFilledInput",e)}var OC=Lr({},SC,Gu("MuiFilledInput",["root","underline","input"])),NC=function(e,t){function n(n,r){return Xs.jsx(Lc,Lr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Lc.muiName,Hn.memo(Hn.forwardRef(n))}(Xs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const qC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],FC={entering:{opacity:1},entered:{opacity:1}},zC=Hn.forwardRef((function(e,t){const n=fc(),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=aE}=e,b=kr(e,qC),y=Hn.useRef(null),x=Iu(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)=>{fE(e);const r=mE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=mE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Xs.jsx(v,Lr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Lr({style:Lr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},FC[e],h,a.props.style),ref:x},t))}))}));var jC=zC;function $C(e){return Wu("MuiBackdrop",e)}Gu("MuiBackdrop",["root","invisible"]);const BC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HC=bc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),WC=Hn.forwardRef((function(e,t){var n,r,o;const i=mc({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=jC,transitionDuration:g}=i,v=kr(i,BC),b=Lr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sl({root:["root",n&&"invisible"]},$C,t)})(b),x=null!=(n=f.root)?n:c.root;return Xs.jsx(h,Lr({in:p,timeout:g},v,{children:Xs.jsx(HC,Lr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Sc(y.root,l,null==x?void 0:x.className),ownerState:Lr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var GC=WC;var VC=Gu("MuiBox",["root"]);const UC=dc(),YC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ts);return Hn.forwardRef((function(e,a){const l=js(n),s=eu(e),{className:u,component:c="div"}=s,d=rn(s,tu);return Xs.jsx(i,Xt({as:c,ref:a,className:Pl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Rr,defaultTheme:UC,defaultClassName:VC.root,generateClassName:Bu.generate});var KC=YC;function XC(e){return Wu("MuiButton",e)}var QC=Gu("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 JC=Hn.createContext({});var ZC=Hn.createContext(void 0);const ew=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tw=e=>Lr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),nw=bc(HE,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xu(n.color)}`],t[`size${xu(n.size)}`],t[`${n.variant}Size${xu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Lr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gu(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})`:gu(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})`:gu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${QC.focusVisible}`]:Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${QC.disabled}`]:Lr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gu(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"},[`&.${QC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${QC.disabled}`]:{boxShadow:"none"}})),rw=bc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${xu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tw(e)))),ow=bc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${xu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tw(e)))),iw=Hn.forwardRef((function(e,t){const n=Hn.useContext(JC),r=Hn.useContext(ZC),o=mc({props:ju(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=kr(o,ew),x=Lr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Lr({},a,Sl({root:["root",i,`${i}${xu(t)}`,`size${xu(o)}`,`${i}Size${xu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xu(o)}`],endIcon:["endIcon",`iconSize${xu(o)}`]},XC,a))})(x),E=g&&Xs.jsx(rw,{className:S.startIcon,ownerState:x,children:g}),C=p&&Xs.jsx(ow,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Xs.jsxs(nw,Lr({ownerState:x,className:Sc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Sc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var aw=iw;function lw(e){return Wu("MuiModal",e)}Gu("MuiModal",["root","hidden","backdrop"]);const sw=["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"],uw=bc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cw=bc(GC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dw=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=mc({name:"MuiModal",props:e}),{BackdropComponent:u=cw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:M,slots:I}=s,_=kr(s,sw),P=Lr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=sC(Lr({},P,{rootRef:t})),z=Lr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Sl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lw,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==I?void 0:I.root)?r:g.Root)?n:uw,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,V=CE({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Sc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=CE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Lr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Sc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Xs.jsx(tC,{ref:O,container:m,disablePortal:S,children:Xs.jsxs(B,Lr({},V,{children:[!w&&u?Xs.jsx(H,Lr({},U)):null,Xs.jsx(eC,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var pw=dw;function fw(e){return Wu("MuiDivider",e)}var mw=Gu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const hw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],gw=bc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gu(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Lr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),vw=bc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),bw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kr(n,hw),m=Lr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Sl({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"]},fw,r)})(m);return Xs.jsx(gw,Lr({as:a,className:Sc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Xs.jsx(vw,{className:h.wrapper,ownerState:m,children:o}):null}))}));bw.muiSkipListHighlight=!0;var yw=bw;const xw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Sw=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...CC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Lr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${OC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${OC.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"},[`&.${OC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${OC.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(.${OC.disabled}, .${OC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${OC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Lr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Ew=bc(LC,{name:"MuiFilledInput",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>Lr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Cw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=mc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=kr(a,xw),g=Lr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,Sl({root:["root",!n&&"underline"],input:["input"]},TC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?yu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Sw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Ew;return Xs.jsx(IC,Lr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));Cw.muiName="Input";var ww=Cw;const Rw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Lw(e){return`scale(${e}, ${e**2})`}const kw={entering:{opacity:1,transform:Lw(1)},entered:{opacity:1,transform:"none"}},Mw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Iw=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=aE}=e,g=kr(e,Rw),v=Hn.useRef(),b=Hn.useRef(),y=fc(),x=Hn.useRef(null),S=Iu(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)=>{fE(e);const{duration:n,delay:r,easing:o}=mE({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:Mw?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=mE({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:Mw?o:.666*o,delay:Mw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Lw(.75),c&&c(e)})),M=E(d);return Hn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Xs.jsx(h,Lr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Lr({style:Lr({opacity:0,transform:Lw(.75),visibility:"exited"!==e||a?void 0:"hidden"},kw[e],f,o.props.style),ref:S},t))}))}));Iw.muiSupportAuto=!0;var _w=Iw;const Pw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Aw=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...CC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Lr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${PC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PC.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(.${PC.disabled}, .${PC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${PC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dw=bc(LC,{name:"MuiInput",slot:"Input",overridesResolver:wC})({}),Tw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=mc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=kr(a,Pw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,Sl({root:["root",!n&&"underline"],input:["input"]},_C,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?yu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Aw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dw;return Xs.jsx(IC,Lr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Tw.muiName="Input";var Ow=Tw;function Nw(e){return Wu("MuiLink",e)}var qw=Gu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Fw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var zw=({theme:e,ownerState:t})=>{const n=(e=>Fw[e]||e)(t.color),r=Hl(e,`palette.${n}`,!1)||t.color,o=Hl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:gu(r,.4)};const jw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$w=bc(XE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${xu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Lr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Lr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:zw({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"},[`&.${qw.focusVisible}`]:{outline:"auto"}}))),Bw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=kr(n,jw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=zu(),[v,b]=Hn.useState(!1),y=Iu(t,g),x=Lr({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Sl({root:["root",`underline${xu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Nw,t)})(x);return Xs.jsx($w,Lr({color:o,className:Sc(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(Fw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Hw=Bw;var Ww=Hn.createContext({});function Gw(e){return Wu("MuiList",e)}Gu("MuiList",["root","padding","dense","subheader"]);const Vw=["children","className","component","dense","disablePadding","subheader"],Uw=bc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Yw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,Vw),c=Hn.useMemo((()=>({dense:a})),[a]),d=Lr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Gw,t)})(d);return Xs.jsx(Ww.Provider,{value:c,children:Xs.jsxs(Uw,Lr({as:i,className:Sc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Kw(e){return Wu("MuiListItemIcon",e)}var Xw=Gu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Qw=["className"],Jw=bc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Zw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Qw),i=Lr({},n,{alignItems:Hn.useContext(Ww).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Kw,n)})(i);return Xs.jsx(Jw,Lr({className:Sc(a.root,r),ownerState:i,ref:t},o))}));var eR=Gu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const tR=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function oR(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 iR(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")&&oR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var aR=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=kr(e,tR),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cu((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Su(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Iu(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Xs.jsx(Yw,Lr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Su(t).activeElement;if("ArrowDown"===n)e.preventDefault(),iR(t,r,s,l,nR);else if("ArrowUp"===n)e.preventDefault(),iR(t,r,s,l,rR);else if("Home"===n)e.preventDefault(),iR(t,null,s,l,nR);else if("End"===n)e.preventDefault(),iR(t,null,s,l,rR);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&&oR(r,o);o.previousKeyMatched&&(s||iR(t,r,!1,l,nR,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function lR(e){return Wu("MuiPopover",e)}Gu("MuiPopover",["root","paper"]);const sR=["onEntering"],uR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],cR=["slotProps"];function dR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function fR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function mR(e){return"function"==typeof e?e():e}const hR=bc(pw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gR=bc(bE,{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 vR=Hn.forwardRef((function(e,t){var n,r,o;const i=mc({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=_w,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=kr(i.TransitionProps,sR),L=kr(i,uR),k=null!=(n=null==y?void 0:y.paper)?n:v,M=Hn.useRef(),I=Iu(M,k.ref),_=Lr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},lR,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=mR(l),t=(e&&1===e.nodeType?e:Su(M.current).body).getBoundingClientRect();return{top:t.top+dR(t,s.vertical),left:t.left+pR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:dR(e,x.vertical),horizontal:pR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:fR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Eu(mR(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:fR(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Eu(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?Su(mR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:hR,$=null!=(o=null==b?void 0:b.paper)?o:gR,B=CE({elementType:$,externalSlotProps:Lr({},k,{style:O?k.style:Lr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:_,className:Sc(P.paper,null==k?void 0:k.className)}),H=CE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Sc(P.root,p)}),{slotProps:W}=H,G=kr(H,cR);return Xs.jsx(j,Lr({},G,!yE(j)&&{slotProps:W,disableScrollLock:w},{children:Xs.jsx(S,Lr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Xs.jsx($,Lr({},B,{children:d}))}))}))}));function bR(e){return Wu("MuiMenu",e)}Gu("MuiMenu",["root","paper","list"]);const yR=["onEntering"],xR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],SR={vertical:"top",horizontal:"right"},ER={vertical:"top",horizontal:"left"},CR=bc(vR,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wR=bc(gR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),RR=bc(aR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var LR=Hn.forwardRef((function(e,t){var n,r;const o=mc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=kr(o.TransitionProps,yR),x=kr(o,xR),S=fc(),E="rtl"===S.direction,C=Lr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},bR,t)})(C),R=i&&!s&&d,L=Hn.useRef(null);let k=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const M=null!=(n=v.paper)?n:wR,I=null!=(r=b.paper)?r:p,_=CE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=CE({elementType:M,externalSlotProps:I,ownerState:C,className:w.paper});return Xs.jsx(CR,Lr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?SR:ER,slots:{paper:M,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Lr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:Xs.jsx(RR,Lr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:Sc(w.list,u.className),children:a}))}))}));function kR(e){return Wu("MuiMenuItem",e)}var MR=Gu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const IR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_R=bc(HE,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${MR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${MR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${MR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gu(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})`:gu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${MR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${MR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mw.inset}`]:{marginLeft:52},[`& .${eR.root}`]:{marginTop:0,marginBottom:0},[`& .${eR.inset}`]:{paddingLeft:36},[`& .${Xw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Xw.root} svg`]:{fontSize:"1.25rem"}}))));var PR=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,IR),f=Hn.useContext(Ww),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);Cu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Lr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Lr({},a,Sl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kR,a))})(n),b=Iu(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xs.jsx(Ww.Provider,{value:m,children:Xs.jsx(_R,Lr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Sc(v.focusVisible,s),className:Sc(v.root,d)},p,{ownerState:g,classes:v}))})}));function AR(e){return Wu("MuiNativeSelect",e)}var DR=Gu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const TR=["className","disabled","error","IconComponent","inputRef","variant"],OR=({ownerState:e,theme:t})=>Lr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Lr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${DR.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}}),NR=bc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${DR.multiple}`]:t.multiple}]}})(OR),qR=({ownerState:e,theme:t})=>Lr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${DR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),FR=bc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xu(n.variant)}`],n.open&&t.iconOpen]}})(qR),zR=Hn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,TR),u=Lr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xu(n)}`,i&&"iconOpen",r&&"disabled"]},AR,t)})(u);return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx(NR,Lr({ownerState:u,className:Sc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Xs.jsx(FR,{as:i,ownerState:u,className:c.icon})]})}));var jR,$R=zR;const BR=["children","classes","className","label","notched"],HR=bc("fieldset",{shouldForwardProp:hc})({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%"}),WR=bc("legend",{shouldForwardProp:hc})((({ownerState:e,theme:t})=>Lr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Lr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const GR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],VR=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:CC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${DC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${DC.focused} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${DC.error} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${DC.disabled} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),UR=bc((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,BR),i=null!=n&&""!==n,a=Lr({},e,{notched:r,withLabel:i});return Xs.jsx(HR,Lr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Xs.jsx(WR,{ownerState:a,children:i?Xs.jsx("span",{children:n}):jR||(jR=Xs.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}})),YR=bc(LC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>Lr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),KR=Hn.forwardRef((function(e,t){var n,r,o,i,a;const l=mc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=kr(l,GR),v=(e=>{const{classes:t}=e;return Lr({},t,Sl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AC,t))})(l),b=gC(),y=mC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:VR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:YR;return Xs.jsx(IC,Lr({slots:{root:S,input:E},renderSuffix:e=>Xs.jsx(UR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Xs.jsxs(Hn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Lr({},v,{notchedOutline:null})}))}));KR.muiName="Input";var XR=KR;function QR(e){return Wu("MuiSelect",e)}var JR,ZR=Gu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const eL=["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"],tL=bc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ZR.select}`]:t.select},{[`&.${ZR.select}`]:t[n.variant]},{[`&.${ZR.error}`]:t.error},{[`&.${ZR.multiple}`]:t.multiple}]}})(OR,{[`&.${ZR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nL=bc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xu(n.variant)}`],n.open&&t.iconOpen]}})(qR),rL=bc("input",{shouldForwardProp:e=>gc(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 oL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function iL(e){return null==e||"string"==typeof e&&!e.trim()}const aL=Hn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:M={},tabIndex:I,value:_,variant:P="standard"}=e,A=kr(e,eL),[D,T]=ku({controlled:_,default:c,name:"Select"}),[O,N]=ku({controlled:R,default:u,name:"Select"}),q=Hn.useRef(null),F=Hn.useRef(null),[z,j]=Hn.useState(null),{current:$}=Hn.useRef(null!=R),[B,H]=Hn.useState(),W=Iu(t,h),G=Hn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Hn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Hn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Hn.useEffect((()=>{i&&F.current.focus()}),[i]),Hn.useEffect((()=>{if(!g)return;const e=Su(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Hn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(yC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!Hn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(wr(2));t=D.some((t=>oL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=oL(D,e.props.value),t&&ee&&(J=e.props.children);return Hn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==I?I:d?null:0;const oe=M.id||(y?`mui-component-select-${y}`:void 0),ie=Lr({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},QR,t)})(ie),le=Lr({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Lu();return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx(tL,Lr({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},M,{ownerState:ie,className:Sc(M.className,ae.select,s),id:oe,children:iL(Q)?JR||(JR=Xs.jsx("span",{className:"notranslate",children:"​"})):Q})),Xs.jsx(rL,Lr({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),Xs.jsx(nL,{as:m,className:ae.icon,ownerState:ie}),Xs.jsx(LR,Lr({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Lr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Lr({},v.slotProps,{paper:Lr({},le,{style:Lr({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var lL=aL;const sL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uL=["root"],cL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hc(e)&&"variant"!==e,slot:"Root"},dL=bc(Ow,cL)(""),pL=bc(XR,cL)(""),fL=bc(ww,cL)(""),mL=Hn.forwardRef((function(e,t){const n=mc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=NC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=kr(n,sL),R=v?$R:lL,L=mC({props:n,muiFormControl:gC(),states:["variant","error"]}),k=L.variant||C,M=Lr({},n,{variant:k,classes:i}),I=(e=>{const{classes:t}=e;return t})(M),_=kr(I,uL),P=d||{standard:Xs.jsx(dL,{ownerState:M}),outlined:Xs.jsx(pL,{label:f,ownerState:M}),filled:Xs.jsx(fL,{ownerState:M})}[k],A=Iu(t,P.ref);return Xs.jsx(Hn.Fragment,{children:Hn.cloneElement(P,Lr({inputComponent:R,inputProps:Lr({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Lr({id:c},E)},p,{classes:p?yu(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:Sc(P.props.className,a,I.root)},!d&&{variant:k},w))})}));mL.muiName="Select";var hL=mL,gL=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:Un.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const vL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Un.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Un.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,borderRadius:Jn,backgroundColor:Un.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Un.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Un.WHITE,color:Un.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Jn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Jn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Un.PURPLE,"&.Mui-focusVisible":{borderColor:Un.PURPLE,boxShadow:`0 0 0 3px ${gu(Un.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Un.GREEN,"&.Mui-focusVisible":{borderColor:Un.GREEN,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Un.BLUE,"&.Mui-focusVisible":{borderColor:Un.BLUE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Un.ORANGE,"&.Mui-focusVisible":{borderColor:Un.ORANGE,boxShadow:`0 0 0 3px ${gu(Un.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Un.RED,"&.Mui-focusVisible":{borderColor:Un.RED,boxShadow:`0 0 0 3px ${gu(Un.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Un.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Un.PURPLE_PALE},"&:active":{backgroundColor:Un.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Un.PURPLE_PALE,boxShadow:`0 0 0 3px ${gu(Un.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Un.ORANGE_PALE},"&:active":{backgroundColor:Un.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Un.ORANGE_PALE,boxShadow:`0 0 0 3px ${gu(Un.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Un.RED_PALE},"&:active":{backgroundColor:Un.RED_DARK},"&.Mui-focusVisible":{borderColor:Un.RED_PALE,boxShadow:`0 0 0 3px ${gu(Un.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Un.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Un.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Jn,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yn,borderRadius:Jn,color:Un.TEXT_PRIMARY,backgroundColor:Un.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Un.GREYSCALE_0_05,color:Un.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Un.GREEN,borderColor:Un.GREEN},"&.MuiChip-outlinedInfo":{color:Un.BLUE,borderColor:Un.BLUE},"&.MuiChip-outlinedWarning":{color:Un.ORANGE,borderColor:Un.ORANGE},"&.MuiChip-outlinedError":{color:Un.RED,borderColor:Un.RED}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Jn,boxShadow:"none",backgroundColor:Un.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Un.GREEN,borderColor:Un.GREEN},outlinedSecondary:{color:Un.BLUE,borderColor:Un.BLUE},label:{fontFamily:rr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Jn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Jn,fontSize:Kn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Un.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Un.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Un.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Un.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Jn,border:`solid 1px ${Un.GREYSCALE_0_15}`,color:Un.GREYSCALE_0_60,marginRight:0,width:Qn,height:Qn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Un.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Jn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Un.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Un.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Un.GREYSCALE_25,fontSize:Yn,fontFamily:rr.FONT_FAMILY,fontWeight:tr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Un.TEXT_PRIMARY},"&.Mui-error":{color:Un.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Un.TEXT_SECONDARY,content:"'(optional)'",fontWeight:er,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Un.TEXT_SECONDARY,content:"'(required)'",fontWeight:er,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kn,lineHeight:"16px",backgroundColor:Un.WHITE,borderRadius:Jn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_05}`,borderColor:Un.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.RED}`,boxShadow:`0px 0px 0px 1px ${Un.RED}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_10}`,borderColor:Un.GREYSCALE_0_10,backgroundColor:Un.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Un.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Un.GREYSCALE_0_15,borderRadius:Jn,boxShadow:`inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(lr,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Un.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Un.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&:focus":{backgroundColor:Un.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Un.GREYSCALE_0_30,"&:hover":{backgroundColor:Un.GREYSCALE_0_0,borderColor:Un.GREYSCALE_0_15},"& ~svg":{color:Un.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Jn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Un.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Kn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yn,fontWeight:tr,color:Un.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(fr,null),checkedIcon:Wn.createElement(mr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Un.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Un.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Un.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(gL,null),checkedIcon:Wn.createElement(dr,null),indeterminateIcon:Wn.createElement(pr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Jn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Un.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Un.GREYSCALE_0_55,color:Un.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Un.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Un.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Un.GREYSCALE_0_55,"&:hover":{color:Un.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Un.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Un.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kn,color:Un.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tr},secondary:{fontSize:Yn,color:Un.GREYSCALE_45,fontWeight:er,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Un.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yn,borderBottom:`solid 1px ${Un.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kn,color:Un.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Un.RED}}},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Un.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Un.GREEN,height:"24px","&.Mui-disabled":{color:Un.GREYSCALE_0_15}},rail:{backgroundColor:Un.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn,boxShadow:`inset 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.WHITE,boxShadow:`0px 1px 2px 0px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`,"&:hover":{borderRadius:Jn,boxShadow:`0 2px 4px 0 ${Un.GREYSCALE_0_30}, 0 0 0 1px ${Un.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Un.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Un.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Un.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Un.GREYSCALE_0_15},markLabel:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Un.WHITE,color:Un.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Un.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Un.GREYSCALE_0_15,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Kn,fontWeight:tr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Un.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,backgroundColor:Un.GREYSCALE_0_03,borderRadius:Jn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Un.GREYSCALE_25,"&.Mui-selected":{color:Un.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Un.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Un.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderRight:`1px solid ${Un.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tr,backgroundColor:Un.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Un.GREYSCALE_98,borderBottom:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderTop:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Un.GREYSCALE_0_05,"&:hover":{backgroundColor:Un.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Un.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(hr,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Un.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kn,borderRadius:Jn,padding:"7px 16px",border:`1px solid ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_60,color:Un.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Un.GREYSCALE_0_03,border:`1px solid ${Un.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Un.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`,border:`1px solid ${Un.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Un.GREYSCALE_25,backgroundColor:Un.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yn,height:24,width:24,padding:7},sizeLarge:{fontSize:Xn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kn,borderRadius:Jn}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Un.GREYSCALE_20},tooltip:{backgroundColor:Un.GREYSCALE_20,fontSize:Yn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const bL={mode:"light",primary:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},secondary:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},error:{light:Un.RED_PALE,main:Un.RED,dark:Un.RED_DARK,contrastText:Un.WHITE},warning:{light:Un.ORANGE_PALE,main:Un.ORANGE,dark:Un.ORANGE_DARK,contrastText:Un.WHITE},success:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},info:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},text:{primary:Un.TEXT_PRIMARY,secondary:Un.TEXT_SECONDARY,disabled:Un.GREYSCALE_0_30},action:{hover:Un.GREYSCALE_0_03,hoverOpacity:.05,selected:Un.GREYSCALE_0_05,focus:Un.MISC_FOCUS_BORDER},amethyst:{main:Un.PURPLE,light:Un.PURPLE_PALE,dark:Un.PURPLE_DARK,contrastText:Un.WHITE},background:{paper:Un.WHITE,default:Un.GREYSCALE_95},divider:Un.GREYSCALE_0_15},yL=e=>({components:vL,palette:bL,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Kn,fontWeightLight:Zn,fontWeightRegular:er,fontWeightMedium:tr,fontWeightBold:nr,htmlFontSize:Kn,fontFamily:rr.FONT_FAMILY,button:{fontWeight:tr,fontSize:Kn,textTransform:"none"},body1:{fontSize:Xn,lineHeight:"24px"},body2:{fontSize:Kn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xn,fontWeight:tr,lineHeight:"16px"},h6:{fontSize:Kn,fontWeight:tr,lineHeight:"16px"},caption:{color:Un.TEXT_SECONDARY},subtitle1:{fontSize:Kn,color:Un.TEXT_SECONDARY},subtitle2:{fontSize:Yn,color:Un.TEXT_SECONDARY}},shape:{borderRadius:Jn}}),xL={...Vn,MISC_FOCUS_BORDER:Un.MISC_FOCUS_BORDER},SL=yL().palette,EL={TEXT:SL.text.primary,DISABLED:SL.text.disabled,HOVER:SL.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};function CL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function RL(){}var LL=.7,kL=1/LL,ML="\\s*([+-]?\\d+)\\s*",IL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PL=/^#([0-9a-f]{3,8})$/,AL=new RegExp(`^rgb\\(${ML},${ML},${ML}\\)$`),DL=new RegExp(`^rgb\\(${_L},${_L},${_L}\\)$`),TL=new RegExp(`^rgba\\(${ML},${ML},${ML},${IL}\\)$`),OL=new RegExp(`^rgba\\(${_L},${_L},${_L},${IL}\\)$`),NL=new RegExp(`^hsl\\(${IL},${_L},${_L}\\)$`),qL=new RegExp(`^hsla\\(${IL},${_L},${_L},${IL}\\)$`),FL={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 zL(){return this.rgb().formatHex()}function jL(){return this.rgb().formatRgb()}function $L(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=PL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?BL(t):3===n?new VL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?HL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?HL(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=AL.exec(e))?new VL(t[1],t[2],t[3],1):(t=DL.exec(e))?new VL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TL.exec(e))?HL(t[1],t[2],t[3],t[4]):(t=OL.exec(e))?HL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NL.exec(e))?JL(t[1],t[2]/100,t[3]/100,1):(t=qL.exec(e))?JL(t[1],t[2]/100,t[3]/100,t[4]):FL.hasOwnProperty(e)?BL(FL[e]):"transparent"===e?new VL(NaN,NaN,NaN,0):null}function BL(e){return new VL(e>>16&255,e>>8&255,255&e,1)}function HL(e,t,n,r){return r<=0&&(e=t=n=NaN),new VL(e,t,n,r)}function WL(e){return e instanceof RL||(e=$L(e)),e?new VL((e=e.rgb()).r,e.g,e.b,e.opacity):new VL}function GL(e,t,n,r){return 1===arguments.length?WL(e):new VL(e,t,n,null==r?1:r)}function VL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function UL(){return`#${QL(this.r)}${QL(this.g)}${QL(this.b)}`}function YL(){const e=KL(this.opacity);return`${1===e?"rgb(":"rgba("}${XL(this.r)}, ${XL(this.g)}, ${XL(this.b)}${1===e?")":`, ${e})`}`}function KL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function XL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function QL(e){return((e=XL(e))<16?"0":"")+e.toString(16)}function JL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ek(e,t,n,r)}function ZL(e){if(e instanceof ek)return new ek(e.h,e.s,e.l,e.opacity);if(e instanceof RL||(e=$L(e)),!e)return new ek;if(e instanceof ek)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 ek(a,l,s,e.opacity)}function ek(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tk(e){return(e=(e||0)%360)<0?e+360:e}function nk(e){return Math.max(0,Math.min(1,e||0))}function rk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}CL(RL,$L,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zL,formatHex:zL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ZL(this).formatHsl()},formatRgb:jL,toString:jL}),CL(VL,GL,wL(RL,{brighter(e){return e=null==e?kL:Math.pow(kL,e),new VL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?LL:Math.pow(LL,e),new VL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new VL(XL(this.r),XL(this.g),XL(this.b),KL(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:UL,formatHex:UL,formatHex8:function(){return`#${QL(this.r)}${QL(this.g)}${QL(this.b)}${QL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:YL,toString:YL})),CL(ek,(function(e,t,n,r){return 1===arguments.length?ZL(e):new ek(e,t,n,null==r?1:r)}),wL(RL,{brighter(e){return e=null==e?kL:Math.pow(kL,e),new ek(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?LL:Math.pow(LL,e),new ek(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 VL(rk(e>=240?e-240:e+120,o,r),rk(e,o,r),rk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ek(tk(this.h),nk(this.s),nk(this.l),KL(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=KL(this.opacity);return`${1===e?"hsl(":"hsla("}${tk(this.h)}, ${100*nk(this.s)}%, ${100*nk(this.l)}%${1===e?")":`, ${e})`}`}}));const ok=Math.PI/180,ik=180/Math.PI,ak=.96422,lk=1,sk=.82521,uk=4/29,ck=6/29,dk=3*ck*ck,pk=ck*ck*ck;function fk(e){if(e instanceof mk)return new mk(e.l,e.a,e.b,e.opacity);if(e instanceof xk)return Sk(e);e instanceof VL||(e=WL(e));var t,n,r=bk(e.r),o=bk(e.g),i=bk(e.b),a=hk((.2225045*r+.7168786*o+.0606169*i)/lk);return r===o&&o===i?t=n=a:(t=hk((.4360747*r+.3850649*o+.1430804*i)/ak),n=hk((.0139322*r+.0971045*o+.7141733*i)/sk)),new mk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function mk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hk(e){return e>pk?Math.pow(e,1/3):e/dk+uk}function gk(e){return e>ck?e*e*e:dk*(e-uk)}function vk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xk)return new xk(e.h,e.c,e.l,e.opacity);if(e instanceof mk||(e=fk(e)),0===e.a&&0===e.b)return new xk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ik;return new xk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xk(e,t,n,null==r?1:r)}function xk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sk(e){if(isNaN(e.h))return new mk(e.l,0,0,e.opacity);var t=e.h*ok;return new mk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}CL(mk,(function(e,t,n,r){return 1===arguments.length?fk(e):new mk(e,t,n,null==r?1:r)}),wL(RL,{brighter(e){return new mk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mk(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 VL(vk(3.1338561*(t=ak*gk(t))-1.6168667*(e=lk*gk(e))-.4906146*(n=sk*gk(n))),vk(-.9787684*t+1.9161415*e+.033454*n),vk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),CL(xk,yk,wL(RL,{brighter(e){return new xk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sk(this).rgb()}}));const Ek=(e,t)=>{const n=yk(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()},Ck=e=>{if(e){const t=GL(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},wk=e=>!!e&&0===GL(e).opacity,Rk=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Lk=e=>{const t=Rk.exec(e);if(t){const[,e,n,r,o]=t;return GL(+n,+r,+o,+e/255)}return GL(e)},kk=e=>{const t=Lk(e);return Number.isNaN(t.r)?null:t.toString()},Mk=e=>{e.stopPropagation(),e.preventDefault()},Ik="#grid",_k=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Pk=(e,t,n,r,o)=>{const i=_k(".qv-object .qv-inner-object",n),a=_k(".qv-panel-sheet",n),l=_k(Ik,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 kk(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Lk(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=wk(p),m=Ck(f?s:p),h=((e,t,n)=>e&&!wk(e)?e:wk(t)?n&&!wk(n)?n:EL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},Ak=(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(Ik),{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:Pk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function Dk(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Tk=Object.prototype.hasOwnProperty,Ok=Object.prototype.toString,Nk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,Fk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ok.call(e)},zk=function(e){if(!e||"[object Object]"!==Ok.call(e))return!1;var t,n=Tk.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Tk.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Tk.call(e,t)},jk=function(e,t){Nk&&"__proto__"===t.name?Nk(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$k=function(e,t){if("__proto__"===t){if(!Tk.call(e,t))return;if(qk)return qk(e,t).value}return e[t]};function Bk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Hk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wk(){}!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=$k(l,n),l!==(o=$k(t,n))&&(c&&o&&(zk(o)||(i=Fk(o)))?(i?(i=!1,a=r&&Fk(r)?r:[]):a=r&&zk(r)?r:{},jk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&jk(l,{name:n,newValue:o}));return l}));var Gk=1/.7,Vk="\\s*([+-]?\\d+)\\s*",Uk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kk=/^#([0-9a-f]{3,8})$/,Xk=new RegExp(`^rgb\\(${Vk},${Vk},${Vk}\\)$`),Qk=new RegExp(`^rgb\\(${Yk},${Yk},${Yk}\\)$`),Jk=new RegExp(`^rgba\\(${Vk},${Vk},${Vk},${Uk}\\)$`),Zk=new RegExp(`^rgba\\(${Yk},${Yk},${Yk},${Uk}\\)$`),eM=new RegExp(`^hsl\\(${Uk},${Yk},${Yk}\\)$`),tM=new RegExp(`^hsla\\(${Uk},${Yk},${Yk},${Uk}\\)$`),nM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rM(){return this.rgb().formatHex()}function oM(){return this.rgb().formatRgb()}function iM(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Kk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?aM(t):3===n?new cM(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?lM(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?lM(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=Xk.exec(e))?new cM(t[1],t[2],t[3],1):(t=Qk.exec(e))?new cM(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Jk.exec(e))?lM(t[1],t[2],t[3],t[4]):(t=Zk.exec(e))?lM(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eM.exec(e))?gM(t[1],t[2]/100,t[3]/100,1):(t=tM.exec(e))?gM(t[1],t[2]/100,t[3]/100,t[4]):nM.hasOwnProperty(e)?aM(nM[e]):"transparent"===e?new cM(NaN,NaN,NaN,0):null}function aM(e){return new cM(e>>16&255,e>>8&255,255&e,1)}function lM(e,t,n,r){return r<=0&&(e=t=n=NaN),new cM(e,t,n,r)}function sM(e){return e instanceof Wk||(e=iM(e)),e?new cM((e=e.rgb()).r,e.g,e.b,e.opacity):new cM}function uM(e,t,n,r){return 1===arguments.length?sM(e):new cM(e,t,n,null==r?1:r)}function cM(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function dM(){return`#${hM(this.r)}${hM(this.g)}${hM(this.b)}`}function pM(){const e=fM(this.opacity);return`${1===e?"rgb(":"rgba("}${mM(this.r)}, ${mM(this.g)}, ${mM(this.b)}${1===e?")":`, ${e})`}`}function fM(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mM(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hM(e){return((e=mM(e))<16?"0":"")+e.toString(16)}function gM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bM(e,t,n,r)}function vM(e){if(e instanceof bM)return new bM(e.h,e.s,e.l,e.opacity);if(e instanceof Wk||(e=iM(e)),!e)return new bM;if(e instanceof bM)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 bM(a,l,s,e.opacity)}function bM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function yM(e){return(e=(e||0)%360)<0?e+360:e}function xM(e){return Math.max(0,Math.min(1,e||0))}function SM(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bk(Wk,iM,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rM,formatHex:rM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vM(this).formatHsl()},formatRgb:oM,toString:oM}),Bk(cM,uM,Hk(Wk,{brighter(e){return e=null==e?Gk:Math.pow(Gk,e),new cM(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cM(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cM(mM(this.r),mM(this.g),mM(this.b),fM(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:dM,formatHex:dM,formatHex8:function(){return`#${hM(this.r)}${hM(this.g)}${hM(this.b)}${hM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pM,toString:pM})),Bk(bM,(function(e,t,n,r){return 1===arguments.length?vM(e):new bM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return e=null==e?Gk:Math.pow(Gk,e),new bM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bM(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 cM(SM(e>=240?e-240:e+120,o,r),SM(e,o,r),SM(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new bM(yM(this.h),xM(this.s),xM(this.l),fM(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=fM(this.opacity);return`${1===e?"hsl(":"hsla("}${yM(this.h)}, ${100*xM(this.s)}%, ${100*xM(this.l)}%${1===e?")":`, ${e})`}`}}));const EM=Math.PI/180,CM=180/Math.PI,wM=4/29,RM=6/29,LM=3*RM*RM;function kM(e){if(e instanceof MM)return new MM(e.l,e.a,e.b,e.opacity);if(e instanceof DM)return TM(e);e instanceof cM||(e=sM(e));var t,n,r=AM(e.r),o=AM(e.g),i=AM(e.b),a=IM((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=IM((.4360747*r+.3850649*o+.1430804*i)/.96422),n=IM((.0139322*r+.0971045*o+.7141733*i)/.82521)),new MM(116*a-16,500*(t-a),200*(a-n),e.opacity)}function MM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function IM(e){return e>.008856451679035631?Math.pow(e,1/3):e/LM+wM}function _M(e){return e>RM?e*e*e:LM*(e-wM)}function PM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function AM(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function DM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function TM(e){if(isNaN(e.h))return new MM(e.l,0,0,e.opacity);var t=e.h*EM;return new MM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bk(MM,(function(e,t,n,r){return 1===arguments.length?kM(e):new MM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return new MM(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new MM(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 cM(PM(3.1338561*(t=.96422*_M(t))-1.6168667*(e=1*_M(e))-.4906146*(n=.82521*_M(n))),PM(-.9787684*t+1.9161415*e+.033454*n),PM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bk(DM,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof DM)return new DM(e.h,e.c,e.l,e.opacity);if(e instanceof MM||(e=kM(e)),0===e.a&&0===e.b)return new DM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*CM;return new DM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new DM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return new DM(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new DM(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return TM(this).rgb()}}));var OM,NM=e=>()=>e;function qM(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):NM(isNaN(e)?t:e)}function FM(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 zM(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 jM(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=BM)):void 0===t&&(t=$M);for(var n,r,o,i,a,l=new GM(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 GM(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(WM)}function $M(e){return e.children}function BM(e){return Array.isArray(e)?e[1]:null}function HM(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function WM(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function GM(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?qM: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):NM(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=uM(e)).r,(t=uM(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=qM(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),GM.prototype=jM.prototype={constructor:GM,count:function(){return this.eachAfter(zM)},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 jM(this).eachBefore(HM)},[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)}},OM=function(e){
119
119
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
120
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},MI({exports:{}});const jI=3,$I="N";function BI(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 HI({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=jI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Hn.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=AI(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=AI((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=BI(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($I).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var WI,GI=HS;WI=GI.createRoot,GI.hydrateRoot;function VI(e,t){const[n,r]=Hn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var UI={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 YI=({translator:e})=>(Hn.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(UI).forEach((t=>{e.add(UI[t])}))}}(e)),[e]),e),KI=document.createElement("textarea");function XI(e){KI.value=e,document.body.appendChild(KI),KI.select(),KI.setSelectionRange(0,KI.value.length),document.execCommand("copy"),document.body.removeChild(KI)}KI.style.position="absolute",KI.style.left="-9999px",KI.setAttribute("readonly","");function QI(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Qe}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>XI(n))):XI(n))})(r)}})}))}var JI="$$material";const ZI=["values","unit","step"],eM=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)=>Xt({},e,{[t.key]:t.val})),{})};function tM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,ZI),i=eM(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 Xt({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 nM={borderRadius:4};function rM(e,t){return t?Ca(e,t,{clone:!1}):e}const oM={xs:0,sm:600,md:900,lg:1200,xl:1536},iM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oM[e]}px)`};function aM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||iM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||iM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||oM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function lM(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 sM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:lM(e,n)||r,t&&(o=t(o,r,e)),o}function uM(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=lM(e.theme,r)||{};return aM(e,i,(e=>{let r=sM(a,o,e);return e===r&&"string"==typeof e&&(r=sM(a,o,`${t}${"default"===e?"":Ka(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const cM={m:"margin",p:"padding"},dM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!pM[e])return[e];e=pM[e]}const[t,n]=e.split(""),r=cM[t],o=dM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),mM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function gM(e,t,n,r){var o;const i=null!=(o=lM(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 vM(e){return gM(e,"spacing",8)}function bM(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 yM(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=bM(t,n),e)),{})}(fM(n),r);return aM(e,e[n],o)}function xM(e,t){const n=vM(e.theme);return Object.keys(e).map((r=>yM(e,t,r,n))).reduce(rM,{})}function SM(e){return xM(e,mM)}function EM(e){return xM(e,hM)}function CM(...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]?rM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function wM(e){return"number"!=typeof e?e:`${e}px solid`}function RM(e,t){return uM({prop:e,themeKey:"borders",transform:t})}SM.propTypes={},SM.filterProps=mM,EM.propTypes={},EM.filterProps=hM;const LM=RM("border",wM),kM=RM("borderTop",wM),IM=RM("borderRight",wM),MM=RM("borderBottom",wM),_M=RM("borderLeft",wM),PM=RM("borderColor"),AM=RM("borderTopColor"),DM=RM("borderRightColor"),TM=RM("borderBottomColor"),OM=RM("borderLeftColor"),NM=RM("outline",wM),qM=RM("outlineColor"),FM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:bM(t,e)});return aM(e,e.borderRadius,n)}return null};FM.propTypes={},FM.filterProps=["borderRadius"],CM(LM,kM,IM,MM,_M,PM,AM,DM,TM,OM,FM,NM,qM);const zM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gM(e.theme,"spacing",8),n=e=>({gap:bM(t,e)});return aM(e,e.gap,n)}return null};zM.propTypes={},zM.filterProps=["gap"];const jM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gM(e.theme,"spacing",8),n=e=>({columnGap:bM(t,e)});return aM(e,e.columnGap,n)}return null};jM.propTypes={},jM.filterProps=["columnGap"];const $M=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gM(e.theme,"spacing",8),n=e=>({rowGap:bM(t,e)});return aM(e,e.rowGap,n)}return null};$M.propTypes={},$M.filterProps=["rowGap"];function BM(e,t){return"grey"===t?t:e}CM(zM,jM,$M,uM({prop:"gridColumn"}),uM({prop:"gridRow"}),uM({prop:"gridAutoFlow"}),uM({prop:"gridAutoColumns"}),uM({prop:"gridAutoRows"}),uM({prop:"gridTemplateColumns"}),uM({prop:"gridTemplateRows"}),uM({prop:"gridTemplateAreas"}),uM({prop:"gridArea"}));function HM(e){return e<=1&&0!==e?100*e+"%":e}CM(uM({prop:"color",themeKey:"palette",transform:BM}),uM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:BM}),uM({prop:"backgroundColor",themeKey:"palette",transform:BM}));const WM=uM({prop:"width",transform:HM}),GM=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])||oM[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:HM(t)}};return aM(e,e.maxWidth,t)}return null};GM.filterProps=["maxWidth"];const VM=uM({prop:"minWidth",transform:HM}),UM=uM({prop:"height",transform:HM}),YM=uM({prop:"maxHeight",transform:HM}),KM=uM({prop:"minHeight",transform:HM});uM({prop:"size",cssProperty:"width",transform:HM}),uM({prop:"size",cssProperty:"height",transform:HM});CM(WM,GM,VM,UM,YM,KM,uM({prop:"boxSizing"}));var XM={border:{themeKey:"borders",transform:wM},borderTop:{themeKey:"borders",transform:wM},borderRight:{themeKey:"borders",transform:wM},borderBottom:{themeKey:"borders",transform:wM},borderLeft:{themeKey:"borders",transform:wM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:FM},color:{themeKey:"palette",transform:BM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:BM},backgroundColor:{themeKey:"palette",transform:BM},p:{style:EM},pt:{style:EM},pr:{style:EM},pb:{style:EM},pl:{style:EM},px:{style:EM},py:{style:EM},padding:{style:EM},paddingTop:{style:EM},paddingRight:{style:EM},paddingBottom:{style:EM},paddingLeft:{style:EM},paddingX:{style:EM},paddingY:{style:EM},paddingInline:{style:EM},paddingInlineStart:{style:EM},paddingInlineEnd:{style:EM},paddingBlock:{style:EM},paddingBlockStart:{style:EM},paddingBlockEnd:{style:EM},m:{style:SM},mt:{style:SM},mr:{style:SM},mb:{style:SM},ml:{style:SM},mx:{style:SM},my:{style:SM},margin:{style:SM},marginTop:{style:SM},marginRight:{style:SM},marginBottom:{style:SM},marginLeft:{style:SM},marginX:{style:SM},marginY:{style:SM},marginInline:{style:SM},marginInlineStart:{style:SM},marginInlineEnd:{style:SM},marginBlock:{style:SM},marginBlockStart:{style:SM},marginBlockEnd:{style:SM},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:zM},rowGap:{style:$M},columnGap:{style:jM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:HM},maxWidth:{style:GM},minWidth:{transform:HM},height:{transform:HM},maxHeight:{transform:HM},minHeight:{transform:HM},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function QM(){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=lM(n,l)||{};if(u)return u(o);return aM(o,t,(t=>{let n=sM(c,s,t);return t===n&&"string"==typeof t&&(n=sM(c,s,`${e}${"default"===t?"":Ka(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:XM;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=rM(s,e(n,o,i,a));else{const e=aM({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=rM(s,e):s[n]=t({sx:o,theme:i})}else s=rM(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 JM=QM();JM.filterProps=["sx"];var ZM=JM;function e_(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 t_=["breakpoints","palette","spacing","shape"];function n_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,t_),l=tM(n),s=function(e=8){if(e.mui)return e;const t=vM({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=Ca({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},nM,i)},a);return u.applyStyles=e_,u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Xt({},XM,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ZM({sx:e,theme:this})},u}var r_=Object.freeze({__proto__:null,default:n_,private_createBreakpoints:tM,unstable_applyStyles:e_});function o_(e=null){const t=Hn.useContext(oa);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const i_=n_();function a_(e=i_){return o_(e)}const l_=["sx"],s_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:XM;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function u_(e){const{sx:t}=e,n=rn(e,l_),{systemProps:r,otherProps:o}=s_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Sa(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}var c_=Object.freeze({__proto__:null,default:ZM,extendSxProp:u_,unstable_createStyleFunctionSx:QM,unstable_defaultSxConfig:XM});const d_=["className","component"];function p_({props:e,name:t,defaultTheme:n,themeId:r}){let o=a_(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?yl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}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(Ir(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(Ir(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function m_(e,t){return e=f_(e),t=function(e,t=0,n=1){return Ll(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 h_=Hn.createContext(null);function g_(){return Hn.useContext(h_)}var v_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function b_(e){const{children:t,theme:n}=e,r=g_(),o=Hn.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Xt({},e,t)}(r,n);return null!=e&&(e[v_]=null!==r),e}),[n,r]);return Bs.jsx(h_.Provider,{value:o,children:t})}const y_=["value"],x_=Hn.createContext();function S_(e){let{value:t}=e,n=rn(e,y_);return Bs.jsx(x_.Provider,Xt({value:null==t||t},n))}const E_={};function C_(e,t,n,r=!1){return Hn.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Xt({},t,{[e]:i}):i;return r?()=>a:a}return Xt({},t,e?{[e]:n}:n)}),[e,t,n,r])}function w_(e){const{children:t,theme:n,themeId:r}=e,o=o_(E_),i=g_()||E_,a=C_(r,o,n),l=C_(r,i,n,!0),s="rtl"===a.direction;return Bs.jsx(b_,{theme:l,children:Bs.jsx(oa.Provider,{value:a,children:Bs.jsx(S_,{value:s,children:t})})})}var R_={},L_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(L_);var k_=L_.exports,I_=r(Mr),M_=r(kl),__=k_;Object.defineProperty(R_,"__esModule",{value:!0});var P_=R_.alpha=W_;R_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=z_(e),a=z_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return $_({type:"rgb",values:l})},R_.colorChannel=void 0;var A_=R_.darken=G_;R_.decomposeColor=z_,R_.emphasize=U_;var D_=R_.getContrastRatio=function(e,t){const n=H_(e),r=H_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};R_.getLuminance=H_,R_.hexToRgb=F_,R_.hslToRgb=B_;var T_=R_.lighten=V_;R_.private_safeAlpha=function(e,t,n){try{return W_(e,t)}catch(t){return e}},R_.private_safeColorChannel=void 0,R_.private_safeDarken=function(e,t,n){try{return G_(e,t)}catch(t){return e}},R_.private_safeEmphasize=function(e,t,n){try{return U_(e,t)}catch(t){return e}},R_.private_safeLighten=function(e,t,n){try{return V_(e,t)}catch(t){return e}},R_.recomposeColor=$_,R_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=z_(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 O_=__(I_),N_=__(M_);function q_(e,t=0,n=1){return(0,N_.default)(e,t,n)}function F_(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 z_(e){if(e.type)return e;if("#"===e.charAt(0))return z_(F_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,O_.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,O_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const j_=e=>{const t=z_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};R_.colorChannel=j_;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})`}function B_(e){e=z_(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])),$_({type:l,values:s})}function H_(e){let t="hsl"===(e=z_(e)).type||"hsla"===e.type?z_(B_(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 W_(e,t){return e=z_(e),t=q_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,$_(e)}function G_(e,t){if(e=z_(e),t=q_(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 $_(e)}function V_(e,t){if(e=z_(e),t=q_(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 $_(e)}function U_(e,t=.15){return H_(e)>.5?G_(e,t):V_(e,t)}R_.private_safeColorChannel=(e,t)=>{try{return j_(e)}catch(t){return e}};var Y_={black:"#000",white:"#fff"};var K_={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 X_={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 Q_={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 J_={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 Z_={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var eP={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var tP={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 nP=["mode","contrastThreshold","tonalOffset"],rP={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:Y_.white,default:Y_.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}},oP={text:{primary:Y_.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:Y_.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 iP(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=T_(e.main,o):"dark"===t&&(e.dark=A_(e.main,i)))}function aP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=rn(e,nP),i=e.primary||function(e="light"){return"dark"===e?{main:Z_[200],light:Z_[50],dark:Z_[400]}:{main:Z_[700],light:Z_[400],dark:Z_[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:X_[200],light:X_[50],dark:X_[400]}:{main:X_[500],light:X_[300],dark:X_[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Q_[500],light:Q_[300],dark:Q_[700]}:{main:Q_[700],light:Q_[400],dark:Q_[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:eP[400],light:eP[300],dark:eP[700]}:{main:eP[700],light:eP[500],dark:eP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tP[400],light:tP[300],dark:tP[700]}:{main:tP[800],light:tP[500],dark:tP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:J_[400],light:J_[300],dark:J_[700]}:{main:"#ed6c02",light:J_[500],dark:J_[900]}}(t);function d(e){return D_(e,oP.text.primary)>=n?oP.text.primary:rP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Xt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ir(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ir(12,t?` (${t})`:"",JSON.stringify(e.main)));return iP(e,"light",o,r),iP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:oP,light:rP};return Ca(Xt({common:Xt({},Y_),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:K_,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const lP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const sP={textTransform:"uppercase"},uP='"Roboto", "Helvetica", "Arial", sans-serif';function cP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=uP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=rn(n,lP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Xt({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===uP?{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,sP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,sP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ca(Xt({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function dP(...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 pP=["none",dP(0,2,1,-1,0,1,1,0,0,1,3,0),dP(0,3,1,-2,0,2,2,0,0,1,5,0),dP(0,3,3,-2,0,3,4,0,0,1,8,0),dP(0,2,4,-1,0,4,5,0,0,1,10,0),dP(0,3,5,-1,0,5,8,0,0,1,14,0),dP(0,3,5,-1,0,6,10,0,0,1,18,0),dP(0,4,5,-2,0,7,10,1,0,2,16,1),dP(0,5,5,-3,0,8,10,1,0,3,14,2),dP(0,5,6,-3,0,9,12,1,0,3,16,2),dP(0,6,6,-3,0,10,14,1,0,4,18,3),dP(0,6,7,-4,0,11,15,1,0,4,20,3),dP(0,7,8,-4,0,12,17,2,0,5,22,4),dP(0,7,8,-4,0,13,19,2,0,5,24,4),dP(0,7,9,-4,0,14,21,2,0,5,26,4),dP(0,8,9,-5,0,15,22,2,0,6,28,5),dP(0,8,10,-5,0,16,24,2,0,6,30,5),dP(0,8,11,-5,0,17,26,2,0,6,32,5),dP(0,9,11,-5,0,18,28,2,0,7,34,6),dP(0,9,12,-6,0,19,29,2,0,7,36,6),dP(0,10,13,-6,0,20,31,3,0,8,38,7),dP(0,10,13,-6,0,21,33,3,0,8,40,7),dP(0,10,14,-6,0,22,35,3,0,8,42,7),dP(0,11,14,-7,0,23,36,3,0,9,44,8),dP(0,11,15,-7,0,24,38,3,0,9,46,8)];const fP=["duration","easing","delay"],mP={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)"},hP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gP(e){return`${Math.round(e)}ms`}function vP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bP(e){const t=Xt({},mP,e.easing),n=Xt({},hP,e.duration);return Xt({getAutoHeightDuration:vP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return rn(r,fP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:gP(o)} ${i} ${"string"==typeof a?a:gP(a)}`)).join(",")}},e,{easing:t,duration:n})}var yP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const xP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=rn(e,xP);if(e.vars)throw new Error(Ir(18));const l=aP(r),s=n_(e);let u=Ca(s,{mixins:(c=s.breakpoints,d=n,Xt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:pP.slice(),typography:cP(l,i),transitions:bP(o),zIndex:Xt({},yP)});var c,d;return u=Ca(u,a),u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Xt({},XM,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ZM({sx:e,theme:this})},u}var EP=SP();function CP(){const e=a_(EP);return e[JI]||e}function wP({props:e,name:t}){return p_({props:e,name:t,defaultTheme:EP,themeId:JI})}var RP,LP={},kP={exports:{}};var IP,MP={exports:{}};var _P=r(xa),PP=r(Ra),AP=r(Xa),DP=r(Ya),TP=r(r_),OP=r(c_),NP=k_;Object.defineProperty(LP,"__esModule",{value:!0});var qP=LP.default=function(e={}){const{themeId:t,defaultTheme:n=KP,rootShouldForwardProp:r=YP,slotShouldForwardProp:o=YP}=e,i=e=>(0,HP.default)((0,FP.default)({},e,{theme:QP((0,FP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,jP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=JP(XP(s))}=a,p=(0,zP.default)(a,VP),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=YP;"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,jP.default)(e,(0,FP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,$P.isPlainObject)(e)?r=>ZP(e,(0,FP.default)({},r,{theme:QP({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=QP((0,FP.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]=ZP(n,(0,FP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=QP((0,FP.default)({},e,{defaultTheme:n,themeId:t}));return ZP({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,FP.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}};LP.shouldForwardProp=YP,LP.systemDefaultTheme=void 0;var FP=NP((RP||(RP=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}(kP)),kP.exports)),zP=NP((IP||(IP=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.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(MP)),MP.exports)),jP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=UP(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}(_P),$P=PP;NP(AP),NP(DP);var BP=NP(TP),HP=NP(OP);const WP=["ownerState"],GP=["variants"],VP=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function UP(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(UP=function(e){return e?n:t})(e)}function YP(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const KP=LP.systemDefaultTheme=(0,BP.default)(),XP=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function QP({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function JP(e){return e?(t,n)=>n[e]:null}function ZP(e,t){let{ownerState:n}=t,r=(0,zP.default)(t,WP);const o="function"==typeof e?e((0,FP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>ZP(e,(0,FP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,zP.default)(o,GP);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,FP.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,FP.default)({ownerState:n},r,n)):e.style))})),t}return o}var eA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var tA=qP({themeId:JI,defaultTheme:EP,rootShouldForwardProp:eA});const nA=["theme"];function rA(e){let{theme:t}=e,n=rn(e,nA);const r=t[JI];return Bs.jsx(w_,Xt({},n,{themeId:r?JI:void 0,theme:r||t}))}var oA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const iA=pc(HC,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${et}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${et}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),aA=pc(HC)({position:"absolute",height:"100%",width:"3px"}),lA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=Hn.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};VI((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,tt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:nt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{Ek(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{Ek(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Je.LEFT||e.key===Je.RIGHT){Ek(e);const t=5,n=e.key===Je.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Je.SPACE||e.key===Je.ENTER?(Ek(e),l(e),g()):e.key===Je.ESC&&(Ek(e),l(e),h(c.current.initWidth))}:void 0;return Wn.createElement(iA,{className:Ze,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:nt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":Ze},Wn.createElement(aA,{className:et}))};function sA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),cA=Hn.forwardRef(uA);function dA(){return dA=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},dA.apply(null,arguments)}const pA=pc(HC,{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"}))),fA=pc(cA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),mA=pc(xR)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),hA=pc(fw)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),gA=pc(RR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),vA=pc(RR,{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")}))),bA=pc("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"}))),yA=pc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),xA=pc(WE)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),SA=pc(Uw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function EA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),wA=Hn.forwardRef(CA);let RA={};const LA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Hn.useState(!1),p=Hn.useRef(null),f=Hn.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wn.createElement(Wn.Fragment,null,Wn.createElement(vA,{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),RA={}),null!=a&&a.length&&(d(!0),RA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wn.createElement(bA,null),Wn.createElement(yA,null,Wn.createElement(SA,null,Wn.createElement(o,null)),Wn.createElement(xA,{variant:"body2"},r)),null!=a&&a.length?Wn.createElement(wA,null):null),(null==a?void 0:a.length)&&Wn.createElement(MA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=RA,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},kA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wn.createElement(gA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wn.createElement(LA,dA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),IA={appear:200,enter:200,exit:100},MA=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Wn.createElement(mA,dA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:IA,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)=>[kA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wn.createElement(hA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,_A={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},PA=(e,t)=>e.some((e=>t[e]>0));function AA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),TA=Hn.forwardRef(DA);function OA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),qA=Hn.forwardRef(NA);function FA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3.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"})),jA=Hn.forwardRef(zA);function $A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),HA=Hn.forwardRef(BA);function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),VA=Hn.forwardRef(GA);function UA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 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"})),KA=Hn.forwardRef(YA);function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),JA=Hn.forwardRef(QA);function ZA(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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),tD=Hn.forwardRef(eD);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 rD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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"})),oD=Hn.forwardRef(rD);function iD(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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),lD=Hn.forwardRef(aD);let sD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const uD=({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[sD.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)),r(!1)},icon:TA,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)),r(!1)},icon:HA,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[sD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:VA,enabled:!0}]}]),n[sD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lD,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:KA,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:oD,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:JA,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:tD,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:qA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[sD.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:jA,enabled:!0}]}]),d},cD=({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=YI({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Hn.useState(null),[o,i]=Hn.useState(_A);return Hn.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Hn.useCallback((()=>i(_A)),[]),updateSelectionActionsEnabledStatus:Hn.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:PA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:PA(["qSelected"],n.qStateCounts),canSelectPossible:PA(["qOption"],n.qStateCounts),canSelectAlternative:PA(["qAlternative"],n.qStateCounts),canSelectExcluded:PA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Hn.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"}})}}),[c,v,g]);Hn.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=Hn.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wn.createElement(pA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&Wn.createElement(fA,{height:Ke,className:Xe,"data-testid":Xe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wn.createElement(cA,null)),Wn.createElement(MA,{open:e,anchorEl:n.current,onClose:C,menuGroups:uD({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},dD=e=>e.isDark?{background:e.color,borderColor:gL.DARK_MODE_BORDER,color:gL.DARK_MODE_TEXT,disabledColor:gL.DARK_MODE_DISABLED,iconColor:gL.DARK_MODE_TEXT}:{background:e.color,borderColor:gL.BORDER_MEDIUM,color:gL.TEXT,disabledColor:gL.DISABLED},pD=pc(HC,{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}`}))),fD=pc(uL,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),mD=pc(ew,{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=pc(WE)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),gD=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Hn.useMemo((()=>dD(r.background)),[r]);if(!n.active)return null;const a=o?Wn.createElement(pD,{footerStyle:i},e):null;return t?WS.createPortal(e,t):a},vD={},bD=Hn.createContext(vD),yD=()=>Hn.useContext(bD),xD=({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=Hn.useMemo((()=>dD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=YI({translator:d}),x=Hn.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 Wn.createElement(bD.Provider,{value:x},e)};let SD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ED=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 CD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),RD=Hn.forwardRef(wD);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 kD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),ID=Hn.forwardRef(kD);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 _D=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),PD=Hn.forwardRef(_D),AD={FirstPage:ID,PreviousPage:RD,NextPage:wA,LastPage:PD,FirstPageRTL:PD,PreviousPageRTL:wA,NextPageRTL:RD,LastPageRTL:ID},DD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=yD(),u=AD[`${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}},TD=()=>{const{pageInfo:e,width:t}=yD(),n=0===e.page,{IconComponent:r,styledProps:o}=DD({type:SD.FirstPage,disabledCondition:n,pageNumber:0});return t<=ED.FirstPage?null:Wn.createElement(mD,o,Wn.createElement(r,{height:Ke}))},OD=(e,t,n=!1)=>{n&&e.key===Je.TAB&&!e.shiftKey&&(Ek(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))},ND=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=DD({type:SD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>OD(e,t,r):null;return o<=ED.LastPage?null:Wn.createElement(mD,dA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},qD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=DD({type:SD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ED.FirstPage&&o>ED.LastPage)&&t.enabled?e=>OD(e,t,r):null;return Wn.createElement(mD,dA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},FD=()=>{const{pageInfo:e}=yD(),t=0===e.page,{IconComponent:n,styledProps:r}=DD({type:SD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wn.createElement(mD,r,Wn.createElement(n,{height:Ke}))},zD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=yD(),{page:o,rowsPerPage:i}=n;if(t<=ED.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wn.createElement(hD,{variant:"caption"},a)},jD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=yD(),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 Wn.createElement(Wn.Fragment,null,Wn.createElement(hD,{variant:"caption",id:d},u,":"),Wn.createElement(fD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},$D=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=yD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ED.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wn.createElement(Wn.Fragment,null,t.rowsPerPageOptions.map((e=>Wn.createElement("option",{key:e,value:e},e))));return Wn.createElement(jD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},BD=1e3,HD="…",WD=({totalPages:e,page:t})=>{const n=Math.min(e,BD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-BD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Wn.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wn.createElement("option",{key:"startMoreOptions",value:HD,disabled:!0},HD)),o<e-1&&a.push(Wn.createElement("option",{key:"endMoreOptions",value:HD,disabled:!0},HD)),Wn.createElement(Wn.Fragment,null,a)},GD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=yD(),{page:o}=e;if(t<=ED.SelectPage)return null;const i=Wn.createElement(WD,{totalPages:n,page:o});return Wn.createElement(jD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},VD=e=>Wn.createElement(xD,e,Wn.createElement($D,null),Wn.createElement(GD,null),Wn.createElement(zD,null),Wn.createElement(TD,null),Wn.createElement(FD,null),Wn.createElement(qD,null),Wn.createElement(ND,null));var UD=Hn.memo(VD);const YD=e=>Wn.createElement(gD,e,Wn.createElement(UD,e)),KD={},XD=Hn.createContext(KD),QD=()=>Hn.useContext(XD),JD=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=Hn.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return Bs.jsx(XD.Provider,{value:u,children:e})},ZD=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=QD(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:vt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:Bs.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Bs.jsx("span",{style:{...kt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},eT={},tT=Hn.createContext(eT),nT=()=>Hn.useContext(tT),rT=({children:e,styleService:t})=>Bs.jsx(tT.Provider,{value:t,children:e}),oT=21,iT=20,aT=iT,lT=16+St+1,sT=.75;let uT=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),cT=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const dT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===uT.Image},pT="/qHyperCubeDef",fT=-1,mT="PSEUDO-DIM",hT=e=>void 0===e?bt:e,gT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,vT=e=>gT(e,tt.PixelsDefault),bT=(e,t)=>gT(e,tt.PercentageDefault)*t/100,yT=(e,t,n)=>{switch(null==t?void 0:t.type){case nt.Pixels:return vT(t.pixels);case nt.Percentage:return bT(t.percentage,e);case nt.FitToContent:case nt.Auto:default:return n}},xT=({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===mT)return e+0;const m=n(p),h=!u&&f&&d<s-1?oT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+lT+h+m+g)}),0),ST=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*lT;return Math.max(e,o+t(r.qFallbackTitle))}),0),ET=(e,t,n,r)=>{const o=100*e/t,i=r*sT*(o/100),a=n*(o/100);return Math.min(a,i)},CT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),wT=(e,t)=>e.some((e=>e>=t*sT)),RT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l})=>{let s=[];const u=r*sT,c=t.data[t.data.length-1][0],d=Math.min(u,n.at(-1)),p=Math.min(u,xT({headers:c,layoutService:e,estimateWidthForDimensionValue:a})),f=Math.min(u,ST(e.visibleMeasureInfo,i));let m=0;const h=c.findIndex((e=>e.id===mT));if(e.hasPseudoDimOnLeft)if(0===h){const e=Math.max(d,p,f);s=[Math.max(24,e-d),d]}else{const t=Math.min(u,ST(e.visibleMeasureInfo,l,!0));m=Math.min(u,xT({headers:c.slice(0,h),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(d,p,m);s=[Math.max(24,n-d),d]}else s=[Math.max(24,p-d),d];const g=Math.min(u,s.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:v}=e;o&&o<=u&&(v.type=nt.Pixels,v.pixels=o);return[nt.Pixels,nt.Percentage].includes(v.type)||wT(s,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=wT(e,n);s===nt.Auto&&d&&(o>i?o-=i:i-=o),s===nt.Pixels&&u&&(o=ET(e[0],l,u,n),i=ET(e[1],l,u,n)),s===nt.Percentage&&c&&(o=CT(e[0],l,c,n),i=CT(e[1],l,c,n));const 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}})(s,v,r,d):{leftGridWidth:g,leftGridColumnWidths:s,leftGridFullWidth:g}};function LT({layoutService:e,tableWidth:t,headersData:n}){const r=t*sT,o=nT(),{measureText:i}=HI(o.header),{estimateWidth:a,measureText:l}=HI({...o.dimensionValues,fontWeight:hT(o.dimensionValues.fontWeight)}),{measureText:s}=HI({...o.dimensionValues,...o.measureLabels}),u=Hn.useCallback(((o,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:c,topHeadersColumnWidth:d}},visibleMeasureInfo:p,isFullyExpanded:f,isIndentModeEnabled:m}=e,h=(e=0)=>p.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=s(r)+lT,a=Math.max(i,e);return Math.max(n,m?a:yT(t,o,a))}),0),g=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===mT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?aT:0;return lT+i(t)+iT+r})(r);return Math.max(o,t)}),0);let v=0,b=n.data.at(-1);m&&n.size.x>1&&b&&b[0]&&(b=b[0]);const y=b.map(((i,l)=>{let s=lT;if((!m||m&&1===n.size.x)&&o&&void 0!==u&&u===i.colIdx)s=m?Math.min(r,o):o;else{let r;i.columnWidthLocation===Ge.Pivot?r=d:i.columnWidthLocation===Ge.Dimension&&({columnWidth:r}=i);let o=0;i.isLeftDimension?o=i.id===mT?h():Math.max(g(l),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,l=e.getDimensionInfo(i);if(dT(l))return tt.PixelsDefault;const s=!f&&o&&n<c-1?oT:0;return lT+a(r)+s})(i,l)):i.isLeftDimension||(o=g(l),i.columnWidthLocation===Ge.Measures&&(o=h(o))),m&&1===n.size.x&&(r=e.indentModeColumnWidth),s=yT(t,r,o)}return v+=s,s}));return m&&n.size.x>1?RT({layoutService:e,headersData:n,columnWidths:y,tableWidth:t,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l}):{leftGridWidth:Math.min(r,v),leftGridColumnWidths:y,leftGridFullWidth:v}}),[t,n,e,r,i,s,a,l]),[c,d]=Hn.useState(u);VI((()=>{d(u())}),[u]);const p=Hn.useCallback(((e,t)=>{d(u(e,t))}),[u]);return{...c,overrideLeftGridWidth:p}}function kT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=nT(),{estimateWidth:c,measureText:d}=HI(u.measureValues),{estimateWidth:p}=HI({...u.dimensionValues,fontWeight:hT(u.dimensionValues.fontWeight)}),f=t-o-St,m=n.at(-1),h=m===fT,g=a.length-i>n.length?oT:0,v=Hn.useMemo((()=>{const e=h?s:[m],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,vT(o));break;case nt.Percentage:i(t,bT(a,f));break;case nt.FitToContent:i(t,((e,t,n)=>n?tt.PixelsDefault:lT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,dT(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}),[h,s,m,l.x,f,c,d,p,g]),b=Hn.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Hn.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let IT;const MT=new Uint8Array(16);function _T(){if(!IT&&(IT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!IT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return IT(MT)}const PT=[];for(let e=0;e<256;++e)PT.push((e+256).toString(16).slice(1));var AT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DT(e,t,n){if(AT.randomUUID&&!t&&!e)return AT.randomUUID();const r=(e=e||{}).random||(e.rng||_T)();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 PT[e[t+0]]+PT[e[t+1]]+PT[e[t+2]]+PT[e[t+3]]+"-"+PT[e[t+4]]+PT[e[t+5]]+"-"+PT[e[t+6]]+PT[e[t+7]]+"-"+PT[e[t+8]]+PT[e[t+9]]+"-"+PT[e[t+10]]+PT[e[t+11]]+PT[e[t+12]]+PT[e[t+13]]+PT[e[t+14]]+PT[e[t+15]]}(r)}const TT=()=>{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:DT()},OT=e=>e===fT?mT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:TT()})(e),NT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===fT?n.columnWidthLocation=Ge.Measures:n.isLeftDimension?n.columnWidthLocation=Ge.Dimension:t.at(-1)===fT?n.columnWidthLocation=Ge.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ge.Pivot))},qT=(e,t,n)=>{var r;const o=OT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===fT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.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:Ge.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},FT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===fT?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]=qT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=qT(e,t,o)})),l},zT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(fT)?FT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(FT({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++)NT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else NT({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 jT(e){return jT="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},jT(e)}function $T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BT(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 HT(e,t,n){return t&&BT(e.prototype,t),n&&BT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WT(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&&VT(e,t)}function GT(e){return GT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GT(e)}function VT(e,t){return VT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VT(e,t)}function UT(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 YT(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=GT(e);if(t){var o=GT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return UT(this,n)}}function KT(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 XT(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 XT(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 XT(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 QT={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:JT(e),value:JT(t),useEqualSign:n}}(n,o,i))}})),t}};function JT(e){try{return decodeURIComponent(e)}catch(t){return e}}function ZT(e){if(!(this instanceof ZT))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 QT.fromSearchString(t.search)}}})}function eO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ZT.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ZT.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=eO((t=e[r]).key),t.value?n+="=".concat(eO(t.value)):n+=t.useEqualSign?"=":"";return n};var tO,nO=function(){function e(t){$T(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return HT(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}(),rO=function(){function e(){$T(this,e)}return HT(e,[{key:"decode",value:function(e){for(var t,n="",r=new nO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),oO=function(e){return e>=0&&e<=1114111},iO=function(e){return e.match(/[\s]/)},aO=function(e){WT(n,e);var t=YT(n);function n(){return $T(this,n),t.apply(this,arguments)}return HT(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())&&!iO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return oO(a)?String.fromCharCode(a):"�"}}]),n}(rO),lO=function(){function e(t,n){$T(this,e),this._key=t,this._value=n}return HT(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}(),sO=function(){function e(){$T(this,e)}return HT(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 lO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return lO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||lO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),uO=function(){function e(){$T(this,e),this.clear()}return HT(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 sO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),cO=function(){var e,t,n,r=[],o=[],i=new uO;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}(),dO=function(e){WT(n,e);var t=YT(n);function n(){return $T(this,n),t.apply(this,arguments)}return HT(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,cO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=cO.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)&&oO(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)&&oO(r)?String.fromCharCode(r):null}}]),n}(rO),pO=function(e){WT(n,e);var t=YT(n);function n(){return $T(this,n),t.apply(this,arguments)}return HT(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),oO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(rO),fO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(tO=document.createElement("div"));var mO=Array.prototype.indexOf,hO=[",",".","_"," "],gO={default:[",",".","-","_"," "]},vO={width:["%"],height:["%"]},bO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},yO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":bO.image,"background-color":bO.color,"border-color":bO.color,"border-image":bO.image,color:bO.color,icon:bO.image,"list-style-image":bO.image,"outline-color":bO.color},xO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function SO(e,t,n){var r;if(t){if(mO)return mO.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 EO(e){if(null==e)return"";var t,n=document.createTextNode(e);return tO.appendChild(n),t=tO.innerHTML,tO.removeChild(n),t}function CO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=RO(e).toLowerCase(),t=RO(t),SO(e,xO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<xO.attr_val;i++)if(t.toLowerCase().match(xO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=vO[e])||(r=gO.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]/)&&SO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function wO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=RO(e).toLowerCase(),t=RO(t),SO(e,xO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<xO.css_val.length;r++)if(t.toLowerCase().indexOf(xO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=yO[e])||(o=bO.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]/)&&SO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function RO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new dO,new pO,new aO];!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 LO=[],kO=0;kO<255;kO++)LO[kO]=kO>=48&&kO<=57||kO>=65&&kO<=90||kO>=97&&kO<=122?null:kO.toString(16);var IO=function(e){return EO(e.unsafe)},MO=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]=wO(t,n[t],!0),i+=wO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},_O=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]=CO(i,t[i],!0),o+=CO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function PO(e,t){throw new Error(t)}var AO={canonicalize:RO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===jT(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?IO(e):"css"===e.context?(null!=e.map&&"object"!==jT(e.map)&&PO(this,"Invalid parameter type"),MO(e)):"attr"===e.context?(null!=e.map&&"object"!==jT(e.map)&&PO(this,"Invalid parameter type"),_O(e)):void PO(this,"Invalid parameter type")},encodeForAttr:CO,encodeForAttr2:function(e){return CO("nonsens",e,!0)},encodeForCSS:wO,encodeForHref:function(e){RO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ZT(e),n=ZT.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+ZT.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=hO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),SO(o,t)>=0||null==LO[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:EO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=RO(t).toLowerCase():PO(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=KT(null!==(t=fO.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 DO=(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]},TO=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"}}},OO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&AO.isSafeDataURL(t)?{type:uT.Image,url:t,text:e,imageSize:n,resolvedImagePosition:TO(r)}:{type:uT.Text,url:void 0,text:e},NO=(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)===cT.Attribute||null==n?void 0:n.urlLabel},qO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:uT.Link,url:AO.encodeForHref(t),text:e}}catch(t){return{type:uT.Text,url:void 0,text:e}}},FO=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return uT.Link;case"image":return uT.Image;default:return uT.Text}})(t);return a!==uT.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===uT.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===cT.Attribute){var o;const r=NO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return qO({text:i,url:r})}if(r===cT.Dimension){var i;const r=NO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return qO({text:r,url:e.qText})}return{type:uT.Text,url:void 0,text:e.qText}})(e,t,n):{type:uT.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=DO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return OO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return OO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=DO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return OO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:uT.Text,url:void 0,text:e.qText}})(e,t,n)},zO=(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?Sk(s):null,c=l?Sk(l):null,d=((e,t)=>e||!t?null:vk(t)?gL.WHITE:gL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},jO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:jO(e,t)),e),$O=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:yt-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,jO(l,e))},BO=({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&&e.qType===it.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:TT(),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:$O(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===it.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===it.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===it.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:zO(s,e),selectionCellType:u?ot.NX_CELL_LEFT:ot.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:FO({...e,qText:h},l===fT?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},HO=(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(fT);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===it.NX_DIM_CELL_NORMAL||p.qType===it.NX_DIM_CELL_NULL||p.qType===it.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===it.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 L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?BO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},WO=(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)}))}))},GO=(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},VO=({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=HO(e.grid,l,s,n,r,o,i,a);WO(u,n.rowsOnCurrentPage);const c=GO(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},UO=({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===it.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:TT(),ref:t,isNull:u}}))})),o},YO=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?UO({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},KO=(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:BO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,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},XO=({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=KO(e.grid,s,u,n,r,o,i,a,l);WO(c,n.size.x);const d=GO(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},QO=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),JO=(e,t,n,r,o)=>{const{env:i}=QD(),[a,l]=Hn.useState(null),s=((e,t,n)=>Hn.useMemo((()=>({left:e.map(QO),top:t.map(QO),measures:n.map(QO)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=Hn.useMemo((()=>zT(t,o,r)),[t,o,r]),c=Hn.useCallback((()=>e.slice(1).reduce(((e,t)=>YO({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return UO({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=Hn.useCallback((()=>e.slice(1).reduce(((e,r)=>XO({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=KO([],s,l,t,n,r,o,i,a);WO(u,t.size.x);const c=GO(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=Hn.useCallback((()=>e.slice(1).reduce(((e,o)=>VO({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=HO([],l,a,n,t,r,o,i);WO(s,n.rowsOnCurrentPage);const u=GO(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,m]=Hn.useState((()=>c())),[h,g]=Hn.useState((()=>d())),[v,b]=Hn.useState((()=>p()));VI((()=>{m(c())}),[c]),VI((()=>{g(d())}),[d]),VI((()=>{b(p())}),[p]),VI((()=>{a&&a.forEach((e=>{m((t=>YO({prevData:t,dataPage:e,pageInfo:n}))),g((r=>XO({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>VO({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=Hn.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},ZO=Math.sqrt(1e4),eN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tt.PixelsMin)}),tN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/ZO),r=Math.ceil(e.qHeight/ZO);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*ZO,qTop:e.qTop+n*ZO,qWidth:Math.min(ZO,e.qWidth-o*ZO),qHeight:Math.min(ZO,e.qHeight-n*ZO)});return t};function nN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Hn.useRef(e);return t.current=e,t})(n.page),i=e,a=Hn.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,pT,e,t,!1))}),[i]),l=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(pT,e,t,!1))}),[i]),s=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(pT,e,t,!1))}),[i]),u=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(pT,e,t,!1))}),[i]),c=Hn.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(pT,e.reduce(((e,t)=>[...e,...tN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Hn.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 Ge.Dimension:c=[{qPath:`${pT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ge.Measures:if(o)c=l.map(((e,t)=>({qPath:`${pT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${pT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ge.Pivot:c=[{qPath:`${pT}/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=Hn.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${pT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return Hn.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const rN=(e,t)=>e>t?Ye.Forward:e<t?Ye.Backward:Ye.None,oN=(e,t,n)=>(r,o)=>{if(r===it.NX_DIM_CELL_PSEUDO)return fT;const i=t[n+o];return e[i]},iN=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},aN=({width:e,height:t,children:n,isLeftGrid:r})=>Bs.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+St},children:n}),lN=e=>`scrollable-container--${e}`,sN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=QD();return Bs.jsx("div",{ref:t,"data-key":lN(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 uN=Wn.forwardRef(sN);const cN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Bs.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function dN(){return dN=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},dN.apply(this,arguments)}function pN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fN(e,t){return fN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fN(e,t)}function mN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fN(e,t)}var hN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gN(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||hN(r)&&hN(o)))return!1;var r,o;return!0}function vN(e,t){var n;void 0===t&&(t=gN);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 bN(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 yN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function xN(e){cancelAnimationFrame(e.id)}function SN(e,t){var n=yN();var r={id:requestAnimationFrame((function o(){yN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var EN=-1;function CN(e){if(void 0===e&&(e=!1),-1===EN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),EN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return EN}var wN=null;function RN(e){if(void 0===e&&(e=!1),null===wN||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?wN="positive-descending":(t.scrollLeft=1,wN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),wN}return wN}var LN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function kN(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,pN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:pN(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=vN((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=vN((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=vN((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(RN()){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&&xN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=SN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}mN(t,e),t.getDerivedStateFromProps=function(e,t){return IN(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=CN();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(RN()){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&&xN(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?LN: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],L=w[1],k=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var M=E;M<=C;M++)k.push(Hn.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),P=l(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:dN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Hn.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},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}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var IN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},MN=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},PN=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]},AN=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?DN(e,t,n,i,0,r):TN(e,t,n,Math.max(0,i),r)},DN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=PN(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},TN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&PN(e,t,r,n).offset<o;)r+=a,a*=2;return DN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},ON=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=PN(e,t,n,i),u="column"===e?_N(t,i):MN(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}},NN=kN({getColumnOffset:function(e,t,n){return PN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return AN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=PN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=PN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:MN,getEstimatedTotalWidth:_N,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return ON("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return ON("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return PN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return AN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=PN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=PN("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}}),qN=function(e,t){return e};function FN(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,pN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:pN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=vN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=vN((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=vN((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(RN()){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&&xN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=SN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}mN(t,e),t.getDerivedStateFromProps=function(e,t){return zN(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?CN():0:s.scrollHeight>s.clientHeight?CN():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(RN()){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&&xN(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?qN: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 L=C;L<=w;L++)R.push(Hn.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:dN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Hn.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var zN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},jN=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]},$N=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=jN(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},BN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&jN(e,n,t).offset<r;)n+=i,i*=2;return $N(e,t,Math.min(n,o-1),Math.floor(n/2),r)},HN=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},WN=FN({getItemOffset:function(e,t,n){return jN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:HN,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=jN(e,t,o),p=HN(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?$N(e,t,o,0,n):BN(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=jN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=jN(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 GN(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 VN=["style"],UN=["style"];function YN(e,t){var n=e.style,r=bN(e,VN),o=t.style,i=bN(t,UN);return!GN(n,o)&&!GN(r,i)}const KN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),XN=10,QN=(e,t)=>e.current===Ye.Backward?t:0,JN=(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},ZN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,eq=({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(JN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&ZN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},tq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ye.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return eq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},nq=({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=QN(n,XN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+XN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=eq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...tq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},rq=(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},oq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,iq=({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(rq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&oq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},aq=({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=QN(n,XN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+XN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=iq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ye.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=iq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},lq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ye.None&&(p=aq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ye.None&&(f=nq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ye.None&&a.current===Ye.None&&(p=iq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},sq=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))}}(lq,100),uq=Ce(lq,75),cq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=nT();return Bs.jsx("div",{style:{...e,...Lt,..._t(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},dq=({children:e,verticalAlign:t,width:n,right:r})=>Bs.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}),pq=e=>{const{type:t,imageSize:n}=e;return t!==uT.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},fq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function mq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8 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"})),gq=Hn.forwardRef(hq);function vq(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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8 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"})),yq=Hn.forwardRef(bq),xq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ze)};function Sq(e,t){const n=e.isActive(),[r,o]=Hn.useState(new Map),[i,a]=Hn.useState(null);Hn.useEffect((()=>{const n=()=>{a(null),o(new Map)},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 l=Hn.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===ot.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Hn.useCallback((t=>async n=>{if(xq(n))return;if(e.isActive()||await e.begin([pT]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===ot.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[pT,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=Hn.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Hn.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Eq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Cq=Hn.createContext(Eq),wq=()=>Hn.useContext(Cq),Rq=({children:e,selections:t,updatePageInfo:n})=>{const r=Sq(t,n);return Bs.jsx(Cq.Provider,{value:r,children:e})};var Lq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Lq||(Lq={}));const kq={brighter:.5,darker:.3,opacity:.03},Iq=(e,{cell:t,styleService:n})=>{if(e===Lq.Background||e===Lq.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]},Mq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Iq(Lq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Iq(Lq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${gk(i=o,kq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},_q=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Iq(Lq.Color,{cell:e,styleService:t}),Pq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Iq(Lq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?bt:o},Aq=({cell:e,styleService:t})=>Iq(Lq.FontStyle,{cell:e,styleService:t}),Dq=({cell:e,styleService:t})=>Iq(Lq.TextDecoration,{cell:e,styleService:t}),Tq=e=>e?"pointer":"default",Oq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Nq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===uT.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},qq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=nT(),{interactions:i}=QD(),{isActive:a}=wq();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?yq:gq;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,Bs.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Nq(e,o)},onClick:l?void 0:Oq({cell:e,expandOrCollapse:d})})},Fq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},zq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},jq=({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}}},$q=(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"}},Bq=e=>{if("alwaysFit"===e)return"contain"},Hq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=QD(),t=Hn.useRef(null),{promise:n,resolve:r}=Hn.useMemo((()=>fq()),[]);return Hn.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:Hn.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Bs.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",...jq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Bs.jsx("img",{src:s,alt:u,style:{width:zq(c),height:Fq(c),objectFit:Bq(c),objectPosition:$q(c,d),...f},onLoad:l,ref:a})})},Wq=(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}},Gq={display:"flex",flexDirection:"row",alignItems:"center"},Vq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},Uq=(e,t,n,r)=>t?{...Vq,...e.nullValues}:n?{...Gq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Gq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},Yq=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...kt,...!n&&It(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?bt:s,fontStyle:u,textDecoration:c}},Kq=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==uT.Image?Wq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},Xq=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=Yq(n,o,i,a,e.isNull);return r.type!==uT.Image||e.isNull?Bs.jsx("span",{style:{padding:4,...s},children:l}):Bs.jsx(Hq,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},Qq=(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},Jq="flex-start",Zq=(e,t)=>{return e.isNull?Jq:t.type===uT.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:Jq;var n},eF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=nT(),{env:a}=QD(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return Bs.jsx(cq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?Qq(g,t):Qq(h,e),E=u.visibleMeasureInfo[S],C=FO(b.ref,E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=zO(v[S],b.ref),I={...Uq(i,b.isNull,w,k.background),..._t(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Lt,padding:"0px 4px",display:"flex",justifyContent:Kq(b,E,C,L,a.flags)};return Bs.jsx("div",{className:Qe,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Bs.jsx(dq,{width:pq(C),verticalAlign:Zq(b,C),children:Bs.jsx(Xq,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var tF=Wn.memo(eF,YN);const nF=(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()},rF=({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}`},oF={...Rt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},iF=({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:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=nT(),x={...oF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Hn.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 KN(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Hn.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return KN(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>Hn.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}=QD();return Hn.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===Ye.None?0:XN),h=e.gridHeight+a+(l.current===Ye.None?0:XN);let g=sq;h*m>1500&&(g=uq),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:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return VI((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Hn.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Bs.jsx(NN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:rF,children:tF})};var aF=Hn.memo(iF);function lF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sF=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"}),Wn.createElement("use",{fillRule:"evenodd"})),uF=Hn.forwardRef(sF),cF=e=>{const[t,n]=Hn.useState(!1);return VI((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},dF=({interactions:e,dataModel:t})=>{const[n,r]=Hn.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=cF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!xq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function pF(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===Et.Transparent?gL.WHITE:l,u=null===(o=OL(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=OL(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 fF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=QD(),{isActive:u}=wq(),c=nT(),[,d]=Hn.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=pF(c,e);return Bs.jsx(lA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),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)*sT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},mF=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 gF(e){return wl("MuiPaper",e)}Rl("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 vF=["className","component","elevation","square","variant"],bF=tA("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 Xt({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&&Xt({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${P_("#fff",oA(t.elevation))}, ${P_("#fff",oA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var yF=Hn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=rn(n,vF),u=Xt({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},gF,o)})(u);return Bs.jsx(bF,Xt({as:o,ownerState:u,className:Ys(c.root,r),ref:t},s))}));function xF(e){return"string"==typeof e}function SF(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 EF(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 CF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wF(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,CF),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=Ys(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},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=SF(Xt({},o,r)),l=EF(r),s=EF(o),u=t(a),c=Ys(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=Xt({},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=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||xF(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:ol(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var RF=Rl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const LF=["center","classes","className"];let kF,IF,MF,_F,PF=e=>e;const AF=ma(kF||(kF=PF`
120
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},OM({exports:{}});const VM=3,UM="N";function YM(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 KM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=VM}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Hn.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=FM(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=FM((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=YM(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(UM).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var XM,QM=KS;XM=QM.createRoot,QM.hydrateRoot;function JM(e,t){const[n,r]=Hn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var ZM={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 eI=({translator:e})=>(Hn.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ZM).forEach((t=>{e.add(ZM[t])}))}}(e)),[e]),e),tI=document.createElement("textarea");function nI(e){tI.value=e,document.body.appendChild(tI),tI.select(),tI.setSelectionRange(0,tI.value.length),document.execCommand("copy"),document.body.removeChild(tI)}tI.style.position="absolute",tI.style.left="-9999px",tI.setAttribute("readonly","");function rI(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Qe}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>nI(n))):nI(n))})(r)}})}))}var oI="$$material";const iI=["values","unit","step"],aI=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)=>Xt({},e,{[t.key]:t.val})),{})};function lI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,iI),i=aI(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 Xt({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 sI={borderRadius:4};function uI(e,t){return t?wa(e,t,{clone:!1}):e}const cI={xs:0,sm:600,md:900,lg:1200,xl:1536},dI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cI[e]}px)`};function pI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||dI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||dI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||cI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function fI(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 mI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fI(e,n)||r,t&&(o=t(o,r,e)),o}function hI(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=fI(e.theme,r)||{};return pI(e,i,(e=>{let r=mI(a,o,e);return e===r&&"string"==typeof e&&(r=mI(a,o,`${t}${"default"===e?"":Xa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gI={m:"margin",p:"padding"},vI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!bI[e])return[e];e=bI[e]}const[t,n]=e.split(""),r=gI[t],o=vI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function EI(e,t,n,r){var o;const i=null!=(o=fI(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 CI(e){return EI(e,"spacing",8)}function wI(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 RI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=wI(t,n),e)),{})}(yI(n),r);return pI(e,e[n],o)}function LI(e,t){const n=CI(e.theme);return Object.keys(e).map((r=>RI(e,t,r,n))).reduce(uI,{})}function kI(e){return LI(e,xI)}function MI(e){return LI(e,SI)}function II(...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]?uI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function _I(e){return"number"!=typeof e?e:`${e}px solid`}function PI(e,t){return hI({prop:e,themeKey:"borders",transform:t})}kI.propTypes={},kI.filterProps=xI,MI.propTypes={},MI.filterProps=SI;const AI=PI("border",_I),DI=PI("borderTop",_I),TI=PI("borderRight",_I),OI=PI("borderBottom",_I),NI=PI("borderLeft",_I),qI=PI("borderColor"),FI=PI("borderTopColor"),zI=PI("borderRightColor"),jI=PI("borderBottomColor"),$I=PI("borderLeftColor"),BI=PI("outline",_I),HI=PI("outlineColor"),WI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=EI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:wI(t,e)});return pI(e,e.borderRadius,n)}return null};WI.propTypes={},WI.filterProps=["borderRadius"],II(AI,DI,TI,OI,NI,qI,FI,zI,jI,$I,WI,BI,HI);const GI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=EI(e.theme,"spacing",8),n=e=>({gap:wI(t,e)});return pI(e,e.gap,n)}return null};GI.propTypes={},GI.filterProps=["gap"];const VI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=EI(e.theme,"spacing",8),n=e=>({columnGap:wI(t,e)});return pI(e,e.columnGap,n)}return null};VI.propTypes={},VI.filterProps=["columnGap"];const UI=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=EI(e.theme,"spacing",8),n=e=>({rowGap:wI(t,e)});return pI(e,e.rowGap,n)}return null};UI.propTypes={},UI.filterProps=["rowGap"];function YI(e,t){return"grey"===t?t:e}II(GI,VI,UI,hI({prop:"gridColumn"}),hI({prop:"gridRow"}),hI({prop:"gridAutoFlow"}),hI({prop:"gridAutoColumns"}),hI({prop:"gridAutoRows"}),hI({prop:"gridTemplateColumns"}),hI({prop:"gridTemplateRows"}),hI({prop:"gridTemplateAreas"}),hI({prop:"gridArea"}));function KI(e){return e<=1&&0!==e?100*e+"%":e}II(hI({prop:"color",themeKey:"palette",transform:YI}),hI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:YI}),hI({prop:"backgroundColor",themeKey:"palette",transform:YI}));const XI=hI({prop:"width",transform:KI}),QI=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])||cI[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:KI(t)}};return pI(e,e.maxWidth,t)}return null};QI.filterProps=["maxWidth"];const JI=hI({prop:"minWidth",transform:KI}),ZI=hI({prop:"height",transform:KI}),e_=hI({prop:"maxHeight",transform:KI}),t_=hI({prop:"minHeight",transform:KI});hI({prop:"size",cssProperty:"width",transform:KI}),hI({prop:"size",cssProperty:"height",transform:KI});II(XI,QI,JI,ZI,e_,t_,hI({prop:"boxSizing"}));var n_={border:{themeKey:"borders",transform:_I},borderTop:{themeKey:"borders",transform:_I},borderRight:{themeKey:"borders",transform:_I},borderBottom:{themeKey:"borders",transform:_I},borderLeft:{themeKey:"borders",transform:_I},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_I},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:WI},color:{themeKey:"palette",transform:YI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:YI},backgroundColor:{themeKey:"palette",transform:YI},p:{style:MI},pt:{style:MI},pr:{style:MI},pb:{style:MI},pl:{style:MI},px:{style:MI},py:{style:MI},padding:{style:MI},paddingTop:{style:MI},paddingRight:{style:MI},paddingBottom:{style:MI},paddingLeft:{style:MI},paddingX:{style:MI},paddingY:{style:MI},paddingInline:{style:MI},paddingInlineStart:{style:MI},paddingInlineEnd:{style:MI},paddingBlock:{style:MI},paddingBlockStart:{style:MI},paddingBlockEnd:{style:MI},m:{style:kI},mt:{style:kI},mr:{style:kI},mb:{style:kI},ml:{style:kI},mx:{style:kI},my:{style:kI},margin:{style:kI},marginTop:{style:kI},marginRight:{style:kI},marginBottom:{style:kI},marginLeft:{style:kI},marginX:{style:kI},marginY:{style:kI},marginInline:{style:kI},marginInlineStart:{style:kI},marginInlineEnd:{style:kI},marginBlock:{style:kI},marginBlockStart:{style:kI},marginBlockEnd:{style:kI},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:GI},rowGap:{style:UI},columnGap:{style:VI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:KI},maxWidth:{style:QI},minWidth:{transform:KI},height:{transform:KI},maxHeight:{transform:KI},minHeight:{transform:KI},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=fI(n,l)||{};if(u)return u(o);return pI(o,t,(t=>{let n=mI(c,s,t);return t===n&&"string"==typeof t&&(n=mI(c,s,`${e}${"default"===t?"":Xa(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=uI(s,e(n,o,i,a));else{const e=pI({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=uI(s,e):s[n]=t({sx:o,theme:i})}else s=uI(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=rn(e,l_),l=lI(n),s=function(e=8){if(e.mui)return e;const t=CI({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=wa({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},sI,i)},a);return u.applyStyles=a_,u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},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:lI,unstable_applyStyles:a_});function c_(e=null){const t=Hn.useContext(ia);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"],m_=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};function h_(e){const{sx:t}=e,n=rn(e,f_),{systemProps:r,otherProps:o}=m_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ea(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}var g_=Object.freeze({__proto__:null,default:i_,extendSxProp:h_,unstable_createStyleFunctionSx:r_,unstable_defaultSxConfig:n_});const v_=["className","component"];function b_(e){if(e.type)return e;if("#"===e.charAt(0))return b_(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(Mr(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(Mr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function y_(e,t){return e=b_(e),t=function(e,t=0,n=1){return kl(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 x_=Hn.createContext(null);function S_(){return Hn.useContext(x_)}var E_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function C_(e){const{children:t,theme:n}=e,r=S_(),o=Hn.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Xt({},e,t)}(r,n);return null!=e&&(e[E_]=null!==r),e}),[n,r]);return Xs.jsx(x_.Provider,{value:o,children:t})}const w_=["value"],R_=Hn.createContext();function L_(e){let{value:t}=e,n=rn(e,w_);return Xs.jsx(R_.Provider,Xt({value:null==t||t},n))}const k_=Hn.createContext(void 0);function M_({value:e,children:t}){return Xs.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?xl(o.defaultProps,r):o.styleOverrides||o.variants?r:xl(o,r)}({props:e,name:t,theme:{components:Hn.useContext(k_)}})}const __={};function P_(e,t,n,r=!1){return Hn.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Xt({},t,{[e]:i}):i;return r?()=>a:a}return Xt({},t,e?{[e]:n}:n)}),[e,t,n,r])}function A_(e){const{children:t,theme:n,themeId:r}=e,o=c_(__),i=S_()||__,a=P_(r,o,n),l=P_(r,i,n,!0),s="rtl"===a.direction;return Xs.jsx(C_,{theme:l,children:Xs.jsx(ia.Provider,{value:a,children:Xs.jsx(L_,{value:s,children:Xs.jsx(M_,{value:null==a?void 0:a.components,children:t})})})})}var D_={},T_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(T_);var O_=T_.exports,N_=r(Ir),q_=r(Ml),F_=O_;Object.defineProperty(D_,"__esModule",{value:!0});var z_=D_.alpha=J_;D_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=U_(e),a=U_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return K_({type:"rgb",values:l})},D_.colorChannel=void 0;var j_=D_.darken=Z_;D_.decomposeColor=U_,D_.emphasize=tP;var $_=D_.getContrastRatio=function(e,t){const n=Q_(e),r=Q_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};D_.getLuminance=Q_,D_.hexToRgb=V_,D_.hslToRgb=X_;var B_=D_.lighten=eP;D_.private_safeAlpha=function(e,t,n){try{return J_(e,t)}catch(t){return e}},D_.private_safeColorChannel=void 0,D_.private_safeDarken=function(e,t,n){try{return Z_(e,t)}catch(t){return e}},D_.private_safeEmphasize=function(e,t,n){try{return tP(e,t)}catch(t){return e}},D_.private_safeLighten=function(e,t,n){try{return eP(e,t)}catch(t){return e}},D_.recomposeColor=K_,D_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=U_(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 H_=F_(N_),W_=F_(q_);function G_(e,t=0,n=1){return(0,W_.default)(e,t,n)}function V_(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 U_(e){if(e.type)return e;if("#"===e.charAt(0))return U_(V_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,H_.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,H_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Y_=e=>{const t=U_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};D_.colorChannel=Y_;function K_(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 X_(e){e=U_(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])),K_({type:l,values:s})}function Q_(e){let t="hsl"===(e=U_(e)).type||"hsla"===e.type?U_(X_(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 J_(e,t){return e=U_(e),t=G_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,K_(e)}function Z_(e,t){if(e=U_(e),t=G_(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 K_(e)}function eP(e,t){if(e=U_(e),t=G_(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 K_(e)}function tP(e,t=.15){return Q_(e)>.5?Z_(e,t):eP(e,t)}D_.private_safeColorChannel=(e,t)=>{try{return Y_(e)}catch(t){return e}};var nP={black:"#000",white:"#fff"};var rP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var oP={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var iP={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var aP={50:"#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 lP={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 sP={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 uP={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 cP=["mode","contrastThreshold","tonalOffset"],dP={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:nP.white,default:nP.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}},pP={text:{primary:nP.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:nP.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 fP(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=B_(e.main,o):"dark"===t&&(e.dark=j_(e.main,i)))}function mP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=rn(e,cP),i=e.primary||function(e="light"){return"dark"===e?{main:lP[200],light:lP[50],dark:lP[400]}:{main:lP[700],light:lP[400],dark:lP[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:oP[200],light:oP[50],dark:oP[400]}:{main:oP[500],light:oP[300],dark:oP[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:iP[500],light:iP[300],dark:iP[700]}:{main:iP[700],light:iP[400],dark:iP[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:sP[400],light:sP[300],dark:sP[700]}:{main:sP[700],light:sP[500],dark:sP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:uP[400],light:uP[300],dark:uP[700]}:{main:uP[800],light:uP[500],dark:uP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:aP[400],light:aP[300],dark:aP[700]}:{main:"#ed6c02",light:aP[500],dark:aP[900]}}(t);function d(e){return $_(e,pP.text.primary)>=n?pP.text.primary:dP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Xt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Mr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Mr(12,t?` (${t})`:"",JSON.stringify(e.main)));return fP(e,"light",o,r),fP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pP,light:dP};return wa(Xt({common:Xt({},nP),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:rP,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const hP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gP={textTransform:"uppercase"},vP='"Roboto", "Helvetica", "Arial", sans-serif';function bP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=vP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=rn(n,hP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Xt({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===vP?{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,gP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,gP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wa(Xt({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function yP(...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 xP=["none",yP(0,2,1,-1,0,1,1,0,0,1,3,0),yP(0,3,1,-2,0,2,2,0,0,1,5,0),yP(0,3,3,-2,0,3,4,0,0,1,8,0),yP(0,2,4,-1,0,4,5,0,0,1,10,0),yP(0,3,5,-1,0,5,8,0,0,1,14,0),yP(0,3,5,-1,0,6,10,0,0,1,18,0),yP(0,4,5,-2,0,7,10,1,0,2,16,1),yP(0,5,5,-3,0,8,10,1,0,3,14,2),yP(0,5,6,-3,0,9,12,1,0,3,16,2),yP(0,6,6,-3,0,10,14,1,0,4,18,3),yP(0,6,7,-4,0,11,15,1,0,4,20,3),yP(0,7,8,-4,0,12,17,2,0,5,22,4),yP(0,7,8,-4,0,13,19,2,0,5,24,4),yP(0,7,9,-4,0,14,21,2,0,5,26,4),yP(0,8,9,-5,0,15,22,2,0,6,28,5),yP(0,8,10,-5,0,16,24,2,0,6,30,5),yP(0,8,11,-5,0,17,26,2,0,6,32,5),yP(0,9,11,-5,0,18,28,2,0,7,34,6),yP(0,9,12,-6,0,19,29,2,0,7,36,6),yP(0,10,13,-6,0,20,31,3,0,8,38,7),yP(0,10,13,-6,0,21,33,3,0,8,40,7),yP(0,10,14,-6,0,22,35,3,0,8,42,7),yP(0,11,14,-7,0,23,36,3,0,9,44,8),yP(0,11,15,-7,0,24,38,3,0,9,46,8)];const SP=["duration","easing","delay"],EP={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)"},CP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wP(e){return`${Math.round(e)}ms`}function RP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function LP(e){const t=Xt({},EP,e.easing),n=Xt({},CP,e.duration);return Xt({getAutoHeightDuration:RP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return rn(r,SP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wP(o)} ${i} ${"string"==typeof a?a:wP(a)}`)).join(",")}},e,{easing:t,duration:n})}var kP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const MP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function IP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=rn(e,MP);if(e.vars)throw new Error(Mr(18));const l=mP(r),s=s_(e);let u=wa(s,{mixins:(c=s.breakpoints,d=n,Xt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:xP.slice(),typography:bP(l,i),transitions:LP(o),zIndex:Xt({},kP)});var c,d;return u=wa(u,a),u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var _P=IP();function PP(){const e=p_(_P);return e[oI]||e}var AP,DP={},TP={exports:{}};var OP,NP={exports:{}};var qP=r(Sa),FP=r(La),zP=r(Qa),jP=r(Ka),$P=r(u_),BP=r(g_),HP=O_;Object.defineProperty(DP,"__esModule",{value:!0});var WP=DP.default=function(e={}){const{themeId:t,defaultTheme:n=nA,rootShouldForwardProp:r=tA,slotShouldForwardProp:o=tA}=e,i=e=>(0,XP.default)((0,GP.default)({},e,{theme:oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,UP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=iA(rA(s))}=a,p=(0,VP.default)(a,ZP),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=tA;"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,UP.default)(e,(0,GP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,YP.isPlainObject)(e)?r=>aA(e,(0,GP.default)({},r,{theme:oA({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=oA((0,GP.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]=aA(n,(0,GP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}));return aA({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,GP.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}};DP.shouldForwardProp=tA,DP.systemDefaultTheme=void 0;var GP=HP((AP||(AP=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}(TP)),TP.exports)),VP=HP((OP||(OP=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)),UP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=eA(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}(qP),YP=FP;HP(zP),HP(jP);var KP=HP($P),XP=HP(BP);const QP=["ownerState"],JP=["variants"],ZP=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(eA=function(e){return e?n:t})(e)}function tA(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nA=DP.systemDefaultTheme=(0,KP.default)(),rA=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function oA({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function iA(e){return e?(t,n)=>n[e]:null}function aA(e,t){let{ownerState:n}=t,r=(0,VP.default)(t,QP);const o="function"==typeof e?e((0,GP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>aA(e,(0,GP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,VP.default)(o,JP);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,GP.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,GP.default)({ownerState:n},r,n)):e.style))})),t}return o}var lA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var sA=WP({themeId:oI,defaultTheme:_P,rootShouldForwardProp:lA});const uA=["theme"];function cA(e){let{theme:t}=e,n=rn(e,uA);const r=t[oI];return Xs.jsx(A_,Xt({},n,{themeId:r?oI:void 0,theme:r||t}))}var dA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const pA=bc(KC,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${et}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${et}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),fA=bc(KC)({position:"absolute",height:"100%",width:"3px"}),mA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=Hn.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};JM((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,tt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:nt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{Mk(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{Mk(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Je.LEFT||e.key===Je.RIGHT){Mk(e);const t=5,n=e.key===Je.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Je.SPACE||e.key===Je.ENTER?(Mk(e),l(e),g()):e.key===Je.ESC&&(Mk(e),l(e),h(c.current.initWidth))}:void 0;return Wn.createElement(pA,{className:Ze,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:nt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":Ze},Wn.createElement(fA,{className:et}))};function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),vA=Hn.forwardRef(gA);function bA(){return bA=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},bA.apply(null,arguments)}const yA=bc(KC,{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"}))),xA=bc(vA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),SA=bc(LR)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),EA=bc(yw)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CA=bc(PR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wA=bc(PR,{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")}))),RA=bc("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"}))),LA=bc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),kA=bc(XE)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),MA=bc(Zw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function IA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _A=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),PA=Hn.forwardRef(_A);let AA={};const DA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Hn.useState(!1),p=Hn.useRef(null),f=Hn.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wn.createElement(Wn.Fragment,null,Wn.createElement(wA,{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),AA={}),null!=a&&a.length&&(d(!0),AA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wn.createElement(RA,null),Wn.createElement(LA,null,Wn.createElement(MA,null,Wn.createElement(o,null)),Wn.createElement(kA,{variant:"body2"},r)),null!=a&&a.length?Wn.createElement(PA,null):null),(null==a?void 0:a.length)&&Wn.createElement(NA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=AA,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},TA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wn.createElement(CA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wn.createElement(DA,bA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),OA={appear:200,enter:200,exit:100},NA=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Wn.createElement(SA,bA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:OA,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)=>[TA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wn.createElement(EA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},FA=(e,t)=>e.some((e=>t[e]>0));function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),$A=Hn.forwardRef(jA);function BA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),WA=Hn.forwardRef(HA);function GA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3.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"})),UA=Hn.forwardRef(VA);function YA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),XA=Hn.forwardRef(KA);function QA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"})),ZA=Hn.forwardRef(JA);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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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=Hn.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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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=Hn.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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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=Hn.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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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=Hn.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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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=Hn.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:$A,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:XA,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:ZA,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:WA,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:UA,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=eI({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Hn.useState(null),[o,i]=Hn.useState(qA);return Hn.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Hn.useCallback((()=>i(qA)),[]),updateSelectionActionsEnabledStatus:Hn.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:FA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:FA(["qSelected"],n.qStateCounts),canSelectPossible:FA(["qOption"],n.qStateCounts),canSelectAlternative:FA(["qAlternative"],n.qStateCounts),canSelectExcluded:FA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Hn.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"}})}}),[c,v,g]);Hn.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=Hn.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wn.createElement(yA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&Wn.createElement(xA,{height:Ke,className:Xe,"data-testid":Xe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wn.createElement(vA,null)),Wn.createElement(NA,{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:EL.DARK_MODE_BORDER,color:EL.DARK_MODE_TEXT,disabledColor:EL.DARK_MODE_DISABLED,iconColor:EL.DARK_MODE_TEXT}:{background:e.color,borderColor:EL.BORDER_MEDIUM,color:EL.TEXT,disabledColor:EL.DISABLED},yD=bc(KC,{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=bc(hL,{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=bc(aw,{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=bc(XE)((({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=Hn.useMemo((()=>bD(r.background)),[r]);if(!n.active)return null;const a=o?Wn.createElement(yD,{footerStyle:i},e):null;return t?XS.createPortal(e,t):a},wD={},RD=Hn.createContext(wD),LD=()=>Hn.useContext(RD),kD=({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=Hn.useMemo((()=>bD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=eI({translator:d}),x=Hn.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 Wn.createElement(RD.Provider,{value:x},e)};let MD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ID=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 PD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_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),Wn.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),AD=Hn.forwardRef(PD);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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),OD=Hn.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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),FD=Hn.forwardRef(qD),zD={FirstPage:OD,PreviousPage:AD,NextPage:PA,LastPage:FD,FirstPageRTL:FD,PreviousPageRTL:PA,NextPageRTL:AD,LastPageRTL:OD},jD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=LD(),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}=LD(),n=0===e.page,{IconComponent:r,styledProps:o}=jD({type:MD.FirstPage,disabledCondition:n,pageNumber:0});return t<=ID.FirstPage?null:Wn.createElement(SD,o,Wn.createElement(r,{height:Ke}))},BD=(e,t,n=!1)=>{n&&e.key===Je.TAB&&!e.shiftKey&&(Mk(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))},HD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=LD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:MD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>BD(e,t,r):null;return o<=ID.LastPage?null:Wn.createElement(SD,bA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},WD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=LD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:MD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ID.FirstPage&&o>ID.LastPage)&&t.enabled?e=>BD(e,t,r):null;return Wn.createElement(SD,bA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},GD=()=>{const{pageInfo:e}=LD(),t=0===e.page,{IconComponent:n,styledProps:r}=jD({type:MD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wn.createElement(SD,r,Wn.createElement(n,{height:Ke}))},VD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=LD(),{page:o,rowsPerPage:i}=n;if(t<=ID.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wn.createElement(ED,{variant:"caption"},a)},UD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=LD(),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 Wn.createElement(Wn.Fragment,null,Wn.createElement(ED,{variant:"caption",id:d},u,":"),Wn.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}=LD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ID.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wn.createElement(Wn.Fragment,null,t.rowsPerPageOptions.map((e=>Wn.createElement("option",{key:e,value:e},e))));return Wn.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 Wn.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wn.createElement("option",{key:"startMoreOptions",value:XD,disabled:!0},XD)),o<e-1&&a.push(Wn.createElement("option",{key:"endMoreOptions",value:XD,disabled:!0},XD)),Wn.createElement(Wn.Fragment,null,a)},JD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=LD(),{page:o}=e;if(t<=ID.SelectPage)return null;const i=Wn.createElement(QD,{totalPages:n,page:o});return Wn.createElement(UD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},ZD=e=>Wn.createElement(kD,e,Wn.createElement(YD,null),Wn.createElement(JD,null),Wn.createElement(VD,null),Wn.createElement($D,null),Wn.createElement(GD,null),Wn.createElement(WD,null),Wn.createElement(HD,null));var eT=Hn.memo(ZD);const tT=e=>Wn.createElement(CD,e,Wn.createElement(eT,e)),nT={},rT=Hn.createContext(nT),oT=()=>Hn.useContext(rT),iT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=Hn.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return Xs.jsx(rT.Provider,{value:u,children:e})},aT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=oT(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:vt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:Xs.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Xs.jsx("span",{style:{...kt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},lT={},sT=Hn.createContext(lT),uT=()=>Hn.useContext(sT),cT=({children:e,styleService:t})=>Xs.jsx(sT.Provider,{value:t,children:e}),dT=21,pT=20,fT=pT,mT=16+St+1,hT=.75;let gT=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),vT=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const bT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===gT.Image},yT="/qHyperCubeDef",xT=-1,ST="PSEUDO-DIM",ET=e=>void 0===e?bt:e,CT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,wT=e=>CT(e,tt.PixelsDefault),RT=(e,t)=>CT(e,tt.PercentageDefault)*t/100,LT=(e,t,n)=>{switch(null==t?void 0:t.type){case nt.Pixels:return wT(t.pixels);case nt.Percentage:return RT(t.percentage,e);case nt.FitToContent:case nt.Auto:default:return n}},kT=({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===ST)return e+0;const m=n(p),h=!u&&f&&d<s-1?dT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+mT+h+m+g)}),0),MT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*mT;return Math.max(e,o+t(r.qFallbackTitle))}),0),IT=(e,t,n,r)=>{const o=100*e/t,i=r*hT*(o/100),a=n*(o/100);return Math.min(a,i)},_T=(e,t,n,r)=>r*(n/100)*(100*e/t/100),PT=(e,t)=>e.some((e=>e>=t*hT)),AT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*hT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,kT({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,MT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===ST)),v=(({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+mT+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,MT(e.visibleMeasureInfo,l,!0));h=Math.min(c,kT({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=nt.Pixels,y.pixels=o);return[nt.Pixels,nt.Percentage].includes(y.type)||PT(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=PT(e,n);s===nt.Auto&&d&&(o>i?o-=i:i-=o),s===nt.Pixels&&u&&(o=IT(e[0],l,u,n),i=IT(e[1],l,u,n)),s===nt.Percentage&&c&&(o=_T(e[0],l,c,n),i=_T(e[1],l,c,n));const 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 DT({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*hT,i=uT(),{measureText:a}=KM(i.header),{estimateWidth:l,measureText:s}=KM({...i.dimensionValues,fontWeight:ET(i.dimensionValues.fontWeight)}),{measureText:u}=KM({...i.dimensionValues,...i.measureLabels}),c=Hn.useCallback(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h}=e,g=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+mT,a=Math.max(i,e);return Math.max(n,h?a:LT(t,o,a))}),0),v=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===ST)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?fT:0;return mT+a(t)+pT+r})(r);return Math.max(o,t)}),0);let b=0,y=n.data.at(-1);h&&n.size.x>1&&y&&y[0]&&(y=y[0]);const x=y.map(((r,a)=>{let s=mT;if((!h||h&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=h?Math.min(o,i):i;else{let o;r.columnWidthLocation===Ge.Pivot?o=p:r.columnWidthLocation===Ge.Dimension&&({columnWidth:o}=r);let i=0;r.isLeftDimension?i=r.id===ST?g():Math.max(v(a),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(bT(a))return tt.PixelsDefault;const s=!m&&o&&n<d-1?dT:0;return mT+l(r)+s})(r,a)):r.isLeftDimension||(i=v(a),r.columnWidthLocation===Ge.Measures&&(i=g(i))),h&&1===n.size.x&&(o=e.indentModeColumnWidth),s=LT(t,o,i)}return b+=s,s}));return h&&n.size.x>1?AT({layoutService:e,headersData:n,columnWidths:x,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,b),leftGridColumnWidths:x,leftGridFullWidth:b}}),[t,n,e,o,a,u,l,s,r]),[d,p]=Hn.useState(c);JM((()=>{p(c())}),[c]);const f=Hn.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function TT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=uT(),{estimateWidth:c,measureText:d}=KM(u.measureValues),{estimateWidth:p}=KM({...u.dimensionValues,fontWeight:ET(u.dimensionValues.fontWeight)}),f=t-o-St,m=n.at(-1),h=m===xT,g=a.length-i>n.length?dT:0,v=Hn.useMemo((()=>{const e=h?s:[m],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,wT(o));break;case nt.Percentage:i(t,RT(a,f));break;case nt.FitToContent:i(t,((e,t,n)=>n?tt.PixelsDefault:mT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,bT(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}),[h,s,m,l.x,f,c,d,p,g]),b=Hn.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Hn.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let OT;const NT=new Uint8Array(16);function qT(){if(!OT&&(OT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!OT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return OT(NT)}const FT=[];for(let e=0;e<256;++e)FT.push((e+256).toString(16).slice(1));var zT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jT(e,t,n){if(zT.randomUUID&&!t&&!e)return zT.randomUUID();const r=(e=e||{}).random||(e.rng||qT)();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 FT[e[t+0]]+FT[e[t+1]]+FT[e[t+2]]+FT[e[t+3]]+"-"+FT[e[t+4]]+FT[e[t+5]]+"-"+FT[e[t+6]]+FT[e[t+7]]+"-"+FT[e[t+8]]+FT[e[t+9]]+"-"+FT[e[t+10]]+FT[e[t+11]]+FT[e[t+12]]+FT[e[t+13]]+FT[e[t+14]]+FT[e[t+15]]}(r)}const $T=()=>{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:jT()},BT=e=>e===xT?ST:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:$T()})(e),HT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===xT?n.columnWidthLocation=Ge.Measures:n.isLeftDimension?n.columnWidthLocation=Ge.Dimension:t.at(-1)===xT?n.columnWidthLocation=Ge.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ge.Pivot))},WT=(e,t,n)=>{var r;const o=BT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===xT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.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:Ge.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},GT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===xT?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]=WT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=WT(e,t,o)})),l},VT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(xT)?GT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(GT({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++)HT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else HT({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 UT(e){return UT="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},UT(e)}function YT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(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 XT(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QT(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&&ZT(e,t)}function JT(e){return JT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JT(e)}function ZT(e,t){return ZT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZT(e,t)}function eO(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 tO(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=JT(e);if(t){var o=JT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eO(this,n)}}function nO(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 rO(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 rO(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 rO(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 oO={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:iO(e),value:iO(t),useEqualSign:n}}(n,o,i))}})),t}};function iO(e){try{return decodeURIComponent(e)}catch(t){return e}}function aO(e){if(!(this instanceof aO))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 oO.fromSearchString(t.search)}}})}function lO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}aO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},aO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=lO((t=e[r]).key),t.value?n+="=".concat(lO(t.value)):n+=t.useEqualSign?"=":"";return n};var sO,uO=function(){function e(t){YT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return XT(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}(),cO=function(){function e(){YT(this,e)}return XT(e,[{key:"decode",value:function(e){for(var t,n="",r=new uO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),dO=function(e){return e>=0&&e<=1114111},pO=function(e){return e.match(/[\s]/)},fO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(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())&&!pO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return dO(a)?String.fromCharCode(a):"�"}}]),n}(cO),mO=function(){function e(t,n){YT(this,e),this._key=t,this._value=n}return XT(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}(),hO=function(){function e(){YT(this,e)}return XT(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 mO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return mO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||mO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),gO=function(){function e(){YT(this,e),this.clear()}return XT(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 hO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),vO=function(){var e,t,n,r=[],o=[],i=new gO;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}(),bO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(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,vO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=vO.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)&&dO(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)&&dO(r)?String.fromCharCode(r):null}}]),n}(cO),yO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(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),dO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(cO),xO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(sO=document.createElement("div"));var SO=Array.prototype.indexOf,EO=[",",".","_"," "],CO={default:[",",".","-","_"," "]},wO={width:["%"],height:["%"]},RO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},LO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":RO.image,"background-color":RO.color,"border-color":RO.color,"border-image":RO.image,color:RO.color,icon:RO.image,"list-style-image":RO.image,"outline-color":RO.color},kO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function MO(e,t,n){var r;if(t){if(SO)return SO.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 IO(e){if(null==e)return"";var t,n=document.createTextNode(e);return sO.appendChild(n),t=sO.innerHTML,sO.removeChild(n),t}function _O(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=AO(e).toLowerCase(),t=AO(t),MO(e,kO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<kO.attr_val;i++)if(t.toLowerCase().match(kO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=wO[e])||(r=CO.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]/)&&MO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function PO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=AO(e).toLowerCase(),t=AO(t),MO(e,kO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<kO.css_val.length;r++)if(t.toLowerCase().indexOf(kO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=LO[e])||(o=RO.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]/)&&MO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function AO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new bO,new yO,new fO];!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 DO=[],TO=0;TO<255;TO++)DO[TO]=TO>=48&&TO<=57||TO>=65&&TO<=90||TO>=97&&TO<=122?null:TO.toString(16);var OO=function(e){return IO(e.unsafe)},NO=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]=PO(t,n[t],!0),i+=PO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},qO=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]=_O(i,t[i],!0),o+=_O(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function FO(e,t){throw new Error(t)}var zO={canonicalize:AO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===UT(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?OO(e):"css"===e.context?(null!=e.map&&"object"!==UT(e.map)&&FO(this,"Invalid parameter type"),NO(e)):"attr"===e.context?(null!=e.map&&"object"!==UT(e.map)&&FO(this,"Invalid parameter type"),qO(e)):void FO(this,"Invalid parameter type")},encodeForAttr:_O,encodeForAttr2:function(e){return _O("nonsens",e,!0)},encodeForCSS:PO,encodeForHref:function(e){AO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new aO(e),n=aO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+aO.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=EO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),MO(o,t)>=0||null==DO[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:IO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=AO(t).toLowerCase():FO(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=nO(null!==(t=xO.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 jO=(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]},$O=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"}}},BO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&zO.isSafeDataURL(t)?{type:gT.Image,url:t,text:e,imageSize:n,resolvedImagePosition:$O(r)}:{type:gT.Text,url:void 0,text:e},HO=(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)===vT.Attribute||null==n?void 0:n.urlLabel},WO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:gT.Link,url:zO.encodeForHref(t),text:e}}catch(t){return{type:gT.Text,url:void 0,text:e}}},GO=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return gT.Link;case"image":return gT.Image;default:return gT.Text}})(t);return a!==gT.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===gT.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===vT.Attribute){var o;const r=HO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return WO({text:i,url:r})}if(r===vT.Dimension){var i;const r=HO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return WO({text:r,url:e.qText})}return{type:gT.Text,url:void 0,text:e.qText}})(e,t,n):{type:gT.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=jO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return BO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return BO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=jO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return BO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:gT.Text,url:void 0,text:e.qText}})(e,t,n)},VO=(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?kk(s):null,c=l?kk(l):null,d=((e,t)=>e||!t?null:Ck(t)?EL.WHITE:EL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},UO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:UO(e,t)),e),YO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:yt-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,UO(l,e))},KO=({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&&e.qType===it.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:$T(),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:YO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===it.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===it.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===it.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:VO(s,e),selectionCellType:u?ot.NX_CELL_LEFT:ot.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:GO({...e,qText:h},l===xT?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},XO=(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(xT);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===it.NX_DIM_CELL_NORMAL||p.qType===it.NX_DIM_CELL_NULL||p.qType===it.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===it.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 L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?KO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},QO=(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)}))}))},JO=(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},ZO=({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=XO(e.grid,l,s,n,r,o,i,a);QO(u,n.rowsOnCurrentPage);const c=JO(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},eN=({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===it.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:$T(),ref:t,isNull:u}}))})),o},tN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?eN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},nN=(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:KO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,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},rN=({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=nN(e.grid,s,u,n,r,o,i,a,l);QO(c,n.size.x);const d=JO(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},oN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),iN=(e,t,n,r,o)=>{const{env:i}=oT(),[a,l]=Hn.useState(null),s=((e,t,n)=>Hn.useMemo((()=>({left:e.map(oN),top:t.map(oN),measures:n.map(oN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=Hn.useMemo((()=>VT(t,o,r)),[t,o,r]),c=Hn.useCallback((()=>e.slice(1).reduce(((e,t)=>tN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return eN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=Hn.useCallback((()=>e.slice(1).reduce(((e,r)=>rN({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=nN([],s,l,t,n,r,o,i,a);QO(u,t.size.x);const c=JO(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=Hn.useCallback((()=>e.slice(1).reduce(((e,o)=>ZO({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=XO([],l,a,n,t,r,o,i);QO(s,n.rowsOnCurrentPage);const u=JO(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,m]=Hn.useState((()=>c())),[h,g]=Hn.useState((()=>d())),[v,b]=Hn.useState((()=>p()));JM((()=>{m(c())}),[c]),JM((()=>{g(d())}),[d]),JM((()=>{b(p())}),[p]),JM((()=>{a&&a.forEach((e=>{m((t=>tN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>rN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>ZO({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=Hn.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},aN=Math.sqrt(1e4),lN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tt.PixelsMin)}),sN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/aN),r=Math.ceil(e.qHeight/aN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*aN,qTop:e.qTop+n*aN,qWidth:Math.min(aN,e.qWidth-o*aN),qHeight:Math.min(aN,e.qHeight-n*aN)});return t};function uN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Hn.useRef(e);return t.current=e,t})(n.page),i=e,a=Hn.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,yT,e,t,!1))}),[i]),l=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(yT,e,t,!1))}),[i]),s=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(yT,e,t,!1))}),[i]),u=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(yT,e,t,!1))}),[i]),c=Hn.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(yT,e.reduce(((e,t)=>[...e,...sN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Hn.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 Ge.Dimension:c=[{qPath:`${yT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ge.Measures:if(o)c=l.map(((e,t)=>({qPath:`${yT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${yT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ge.Pivot:c=[{qPath:`${yT}/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=Hn.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${yT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return Hn.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const cN=(e,t)=>e>t?Ye.Forward:e<t?Ye.Backward:Ye.None,dN=(e,t,n)=>(r,o)=>{if(r===it.NX_DIM_CELL_PSEUDO)return xT;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},fN=({width:e,height:t,children:n,isLeftGrid:r})=>Xs.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+St},children:n}),mN=e=>`scrollable-container--${e}`,hN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=oT();return Xs.jsx("div",{ref:t,"data-key":mN(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 gN=Wn.forwardRef(hN);const vN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Xs.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function bN(){return bN=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},bN.apply(this,arguments)}function yN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xN(e,t){return xN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xN(e,t)}function SN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xN(e,t)}var EN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function CN(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||EN(r)&&EN(o)))return!1;var r,o;return!0}function wN(e,t){var n;void 0===t&&(t=CN);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 RN(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 LN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function kN(e){cancelAnimationFrame(e.id)}function MN(e,t){var n=LN();var r={id:requestAnimationFrame((function o(){LN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var IN=-1;function _N(e){if(void 0===e&&(e=!1),-1===IN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),IN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return IN}var PN=null;function AN(e){if(void 0===e&&(e=!1),null===PN||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?PN="positive-descending":(t.scrollLeft=1,PN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PN}return PN}var DN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function TN(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,yN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:yN(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(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=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(AN()){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&&kN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=MN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}SN(t,e),t.getDerivedStateFromProps=function(e,t){return ON(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=_N();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(AN()){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&&kN(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?DN: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],L=w[1],k=[];if(r>0&&g)for(var M=R;M<=L;M++)for(var I=E;I<=C;I++)k.push(Hn.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,I)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:bN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Hn.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},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}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ON=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},NN=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},qN=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},FN=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]},zN=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?jN(e,t,n,i,0,r):$N(e,t,n,Math.max(0,i),r)},jN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=FN(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},$N=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&FN(e,t,r,n).offset<o;)r+=a,a*=2;return jN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},BN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=FN(e,t,n,i),u="column"===e?qN(t,i):NN(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}},HN=TN({getColumnOffset:function(e,t,n){return FN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return zN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=FN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=FN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:NN,getEstimatedTotalWidth:qN,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return BN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return BN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return FN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return zN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=FN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=FN("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}}),WN=function(e,t){return e};function GN(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,yN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:yN(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,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=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(AN()){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&&kN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=MN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}SN(t,e),t.getDerivedStateFromProps=function(e,t){return VN(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?_N():0:s.scrollHeight>s.clientHeight?_N():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(AN()){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&&kN(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?WN: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 L=C;L<=w;L++)R.push(Hn.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:bN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Hn.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var VN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},UN=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]},YN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=UN(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},KN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&UN(e,n,t).offset<r;)n+=i,i*=2;return YN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},XN=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},QN=GN({getItemOffset:function(e,t,n){return UN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:XN,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=UN(e,t,o),p=XN(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?YN(e,t,o,0,n):KN(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=UN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=UN(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 JN(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 ZN=["style"],eq=["style"];function tq(e,t){var n=e.style,r=RN(e,ZN),o=t.style,i=RN(t,eq);return!JN(n,o)&&!JN(r,i)}const nq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),rq=10,oq=(e,t)=>e.current===Ye.Backward?t:0,iq=(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},aq=(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(iq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&aq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},sq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ye.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})},uq=({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=oq(n,rq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+rq,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,...sq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},cq=(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},dq=(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(cq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&dq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},fq=({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=oq(n,rq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+rq,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===Ye.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},mq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ye.None&&(p=fq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ye.None&&(f=uq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ye.None&&a.current===Ye.None&&(p=pq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},hq=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))}}(mq,100),gq=Ce(mq,75),vq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=uT();return Xs.jsx("div",{style:{...e,...Lt,..._t(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},bq=({children:e,verticalAlign:t,width:n,right:r})=>Xs.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}),yq=e=>{const{type:t,imageSize:n}=e;return t!==gT.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},xq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Sq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8 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"})),Cq=Hn.forwardRef(Eq);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 Rq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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),Wn.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"})),Lq=Hn.forwardRef(Rq),kq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ze)};function Mq(e,t){const n=e.isActive(),[r,o]=Hn.useState(new Map),[i,a]=Hn.useState(null);Hn.useEffect((()=>{const n=()=>{a(null),o(new Map)},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 l=Hn.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===ot.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Hn.useCallback((t=>async n=>{if(kq(n))return;if(e.isActive()||await e.begin([yT]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===ot.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[yT,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=Hn.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Hn.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Iq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},_q=Hn.createContext(Iq),Pq=()=>Hn.useContext(_q),Aq=({children:e,selections:t,updatePageInfo:n})=>{const r=Mq(t,n);return Xs.jsx(_q.Provider,{value:r,children:e})};var Dq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Dq||(Dq={}));const Tq={brighter:.5,darker:.3,opacity:.03},Oq=(e,{cell:t,styleService:n})=>{if(e===Dq.Background||e===Dq.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]},Nq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Oq(Dq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Oq(Dq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Ek(i=o,Tq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},qq=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Oq(Dq.Color,{cell:e,styleService:t}),Fq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Oq(Dq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?bt:o},zq=({cell:e,styleService:t})=>Oq(Dq.FontStyle,{cell:e,styleService:t}),jq=({cell:e,styleService:t})=>Oq(Dq.TextDecoration,{cell:e,styleService:t}),$q=e=>e?"pointer":"default",Bq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Hq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===gT.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Wq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=uT(),{interactions:i}=oT(),{isActive:a}=Pq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=qq({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?Lq:Cq;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,Xs.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Hq(e,o)},onClick:l?void 0:Bq({cell:e,expandOrCollapse:d})})},Gq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Vq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Uq=({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}}},Yq=(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"}},Kq=e=>{if("alwaysFit"===e)return"contain"},Xq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=oT(),t=Hn.useRef(null),{promise:n,resolve:r}=Hn.useMemo((()=>xq()),[]);return Hn.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:Hn.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Xs.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",...Uq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Xs.jsx("img",{src:s,alt:u,style:{width:Vq(c),height:Gq(c),objectFit:Kq(c),objectPosition:Yq(c,d),...f},onLoad:l,ref:a})})},Qq=(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}},Jq={display:"flex",flexDirection:"row",alignItems:"center"},Zq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},eF=(e,t,n,r)=>t?{...Zq,...e.nullValues}:n?{...Jq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Jq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},tF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...kt,...!n&&Mt(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?bt:s,fontStyle:u,textDecoration:c}},nF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==gT.Image?Qq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},rF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=tF(n,o,i,a,e.isNull);return r.type!==gT.Image||e.isNull?Xs.jsx("span",{style:{padding:4,...s},children:l}):Xs.jsx(Xq,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},oF=(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},iF="flex-start",aF=(e,t)=>{return e.isNull?iF:t.type===gT.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:iF;var n},lF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=uT(),{env:a}=oT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return Xs.jsx(vq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?oF(g,t):oF(h,e),E=u.visibleMeasureInfo[S],C=GO(b.ref,E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=VO(v[S],b.ref),M={...eF(i,b.isNull,w,k.background),..._t(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Lt,padding:"0px 4px",display:"flex",justifyContent:nF(b,E,C,L,a.flags)};return Xs.jsx("div",{className:Qe,title:R,style:{...M,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Xs.jsx(bq,{width:yq(C),verticalAlign:aF(b,C),children:Xs.jsx(rF,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var sF=Wn.memo(lF,tq);const uF=(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()},cF=({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}`},dF={...Rt,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:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=uT(),x={...dF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Hn.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 nq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Hn.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return nq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>Hn.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}=oT();return Hn.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===Ye.None?0:rq),h=e.gridHeight+a+(l.current===Ye.None?0:rq);let g=hq;h*m>1500&&(g=gq),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:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return JM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Hn.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Xs.jsx(HN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:cF,children:sF})};var fF=Hn.memo(pF);function mF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hF=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"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"}),Wn.createElement("use",{fillRule:"evenodd"})),gF=Hn.forwardRef(hF),vF=e=>{const[t,n]=Hn.useState(!1);return JM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},bF=({interactions:e,dataModel:t})=>{const[n,r]=Hn.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=vF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!kq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function yF(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===Et.Transparent?EL.WHITE:l,u=null===(o=$L(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=$L(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 xF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=oT(),{isActive:u}=Pq(),c=uT(),[,d]=Hn.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=yF(c,e);return Xs.jsx(mA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),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)*hT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function SF(e){return I_(e)}const EF=e=>e.scrollTop;function CF(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 Rl("MuiPaper",e)}Ll("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 RF=["className","component","elevation","square","variant"],LF=sA("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 Xt({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&&Xt({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${z_("#fff",dA(t.elevation))}, ${z_("#fff",dA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var kF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=rn(n,RF),u=Xt({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},wF,o)})(u);return Xs.jsx(LF,Xt({as:o,ownerState:u,className:Pl(c.root,r),ref:t},s))}));var MF=Ll("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const IF=["center","classes","className"];let _F,PF,AF,DF,TF=e=>e;const OF=ha(_F||(_F=TF`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,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
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),DF=ma(IF||(IF=PF`
130
+ `)),NF=ha(PF||(PF=TF`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,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
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),TF=ma(MF||(MF=PF`
138
+ `)),qF=ha(AF||(AF=TF`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,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
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),OF=tA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),NF=tA((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]=Hn.useState(!1),p=Ys(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ys(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Hn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Bs.jsx("span",{className:p,style:f,children:Bs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(_F||(_F=PF`
150
+ `)),FF=sA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zF=sA((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]=Hn.useState(!1),p=Pl(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Pl(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Hn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Xs.jsx("span",{className:p,style:f,children:Xs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(DF||(DF=TF`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ 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
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),RF.rippleVisible,AF,550,(({theme:e})=>e.transitions.easing.easeInOut),RF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),RF.child,RF.childLeaving,DF,550,(({theme:e})=>e.transitions.easing.easeInOut),RF.childPulsate,TF,(({theme:e})=>e.transitions.easing.easeInOut)),qF=Hn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rn(n,LF),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=sl(),f=Hn.useRef(null),m=Hn.useRef(null),h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Bs.jsx(NF,{classes:{ripple:Ys(o.ripple,RF.ripple),rippleVisible:Ys(o.rippleVisible,RF.rippleVisible),ripplePulsate:Ys(o.ripplePulsate,RF.ripplePulsate),child:Ys(o.child,RF.child),childLeaving:Ys(o.childLeaving,RF.childLeaving),childPulsate:Ys(o.childPulsate,RF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Bs.jsx(OF,Xt({className:Ys(RF.root,o.root,i),ref:m},a,{children:Bs.jsx(aE,{component:null,exit:!0,children:l})}))}));var FF=qF;function zF(e){return wl("MuiButtonBase",e)}var jF=Rl("MuiButtonBase",["root","disabled","focusVisible"]);const $F=["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"],BF=tA("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"},[`&.${jF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),HF=Hn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=rn(n,$F),A=Hn.useRef(null),D=Hn.useRef(null),T=ol(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=vl(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return rl((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=rl((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=rl((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=rl((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=ol(t,F,A),se=Xt({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xl({root:["root",t&&"disabled",n&&"focusVisible"]},zF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Bs.jsxs(BF,Xt({as:ie,className:Ys(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Bs.jsx(FF,Xt({ref:T,center:o},I)):null]}))}));var WF=HF;const GF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VF(e){const t=[],n=[];return Array.from(e.querySelectorAll(GF)).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 UF(){return!0}function YF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=VF,isEnabled:a=UF,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=ol(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Za(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Za(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 Bs.jsxs(Hn.Fragment,{children:[Bs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Bs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const KF=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=ol(Hn.isValidElement(n)?n.ref:null,t);if(nl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),nl((()=>{if(i&&!o)return tl(t,i),()=>{tl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Bs.jsx(Hn.Fragment,{children:n})}return Bs.jsx(Hn.Fragment,{children:i?HS.createPortal(n,i):i})}));function XF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QF(e){return parseInt(el(e).getComputedStyle(e).paddingRight,10)||0}function JF(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&&XF(e,o)}))}function ZF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ez(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Za(e);return t.body===e?el(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=bl(Za(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${QF(r)+e}px`;const t=Za(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${QF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Za(r).body;else{const t=r.parentElement,n=el(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 tz=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&&XF(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);JF(t,e.mount,e.modalRef,r,!0);const o=ZF(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=ZF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ez(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ZF(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&&XF(e.modalRef,t),JF(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&&XF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function nz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=ol(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=rl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Za(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=rl((e=>{f.current=e,e&&(c&&C()?S():m.current&&XF(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=SF(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Qa((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Qa((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const rz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oz={entering:{opacity:1},entered:{opacity:1}},iz=Hn.forwardRef((function(e,t){const n=CP(),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=eE}=e,b=rn(e,rz),y=Hn.useRef(null),x=ol(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)=>{mF(e);const r=hF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=hF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Bs.jsx(v,Xt({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},oz[e],h,a.props.style),ref:x},t))}))}));var az=iz;function lz(e){return wl("MuiBackdrop",e)}Rl("MuiBackdrop",["root","invisible"]);const sz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uz=tA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Xt({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),cz=Hn.forwardRef((function(e,t){var n,r,o;const i=wP({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=az,transitionDuration:g}=i,v=rn(i,sz),b=Xt({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xl({root:["root",n&&"invisible"]},lz,t)})(b),x=null!=(n=f.root)?n:c.root;return Bs.jsx(h,Xt({in:p,timeout:g},v,{children:Bs.jsx(uz,Xt({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Ys(y.root,l,null==x?void 0:x.className),ownerState:Xt({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var dz=cz;var pz=Rl("MuiBox",["root"]);const fz=SP(),mz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ba("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ZM);return Hn.forwardRef((function(e,a){const l=a_(n),s=u_(e),{className:u,component:c="div"}=s,d=rn(s,d_);return Bs.jsx(i,Xt({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:JI,defaultTheme:fz,defaultClassName:pz.root,generateClassName:El.generate});var hz=mz;function gz(e){return wl("MuiModal",e)}Rl("MuiModal",["root","hidden","backdrop"]);const vz=["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"],bz=tA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xt({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),yz=tA(dz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xz=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=wP({name:"MuiModal",props:e}),{BackdropComponent:u=yz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=rn(s,vz),P=Xt({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=nz(Xt({},P,{rootRef:t})),z=Xt({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return xl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gz,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:bz,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:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=wF({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Ys(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=wF({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Xt({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ys(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Bs.jsx(KF,{ref:O,container:m,disablePortal:S,children:Bs.jsxs(B,Xt({},V,{children:[!w&&u?Bs.jsx(H,Xt({},U)):null,Bs.jsx(YF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var Sz=xz;var Ez=Rl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Cz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function wz(e){return`scale(${e}, ${e**2})`}const Rz={entering:{opacity:1,transform:wz(1)},entered:{opacity:1,transform:"none"}},Lz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kz=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=eE}=e,g=rn(e,Cz),v=sl(),b=Hn.useRef(),y=CP(),x=Hn.useRef(null),S=ol(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)=>{mF(e);const{duration:n,delay:r,easing:o}=hF({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:Lz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=hF({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:Lz?o:.666*o,delay:Lz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=wz(.75),c&&c(e)})),I=E(d);return Bs.jsx(h,Xt({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Xt({style:Xt({opacity:0,transform:wz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Rz[e],f,o.props.style),ref:S},t))}))}));kz.muiSupportAuto=!0;var Iz=kz;var Mz=Hn.createContext({});function _z(e){return wl("MuiList",e)}Rl("MuiList",["root","padding","dense","subheader"]);const Pz=["children","className","component","dense","disablePadding","subheader"],Az=tA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Xt({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Dz=Hn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=rn(n,Pz),c=Hn.useMemo((()=>({dense:a})),[a]),d=Xt({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},_z,t)})(d);return Bs.jsx(Mz.Provider,{value:c,children:Bs.jsxs(Az,Xt({as:i,className:Ys(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var Tz=Rl("MuiListItemIcon",["root","alignItemsFlexStart"]);var Oz=Rl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Nz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zz(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 jz(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")&&zz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var $z=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=rn(e,Nz),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nl((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${bl(Za(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ol(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Bs.jsx(Dz,Xt({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Za(t).activeElement;if("ArrowDown"===n)e.preventDefault(),jz(t,r,s,l,qz);else if("ArrowUp"===n)e.preventDefault(),jz(t,r,s,l,Fz);else if("Home"===n)e.preventDefault(),jz(t,null,s,l,qz);else if("End"===n)e.preventDefault(),jz(t,null,s,l,Fz);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&&zz(r,o);o.previousKeyMatched&&(s||jz(t,r,!1,l,qz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Bz(e){return wl("MuiPopover",e)}Rl("MuiPopover",["root","paper"]);const Hz=["onEntering"],Wz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Gz=["slotProps"];function Vz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Uz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Kz(e){return"function"==typeof e?e():e}const Xz=tA(Sz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qz=tA(yF,{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 Jz=Hn.forwardRef((function(e,t){var n,r,o;const i=wP({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=Iz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=rn(i.TransitionProps,Hz),L=rn(i,Wz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=Hn.useRef(),M=ol(I,k.ref),_=Xt({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"]},Bz,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Kz(l),t=(e&&1===e.nodeType?e:Za(I.current).body).getBoundingClientRect();return{top:t.top+Vz(t,s.vertical),left:t.left+Uz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:Vz(e,x.vertical),horizontal:Uz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Yz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=el(Kz(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:Yz(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=Ja((()=>{q()})),t=el(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?Za(Kz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Xz,$=null!=(o=null==b?void 0:b.paper)?o:Qz,B=wF({elementType:$,externalSlotProps:Xt({},k,{style:O?k.style:Xt({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Ys(P.paper,null==k?void 0:k.className)}),H=wF({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Ys(P.root,p)}),{slotProps:W}=H,G=rn(H,Gz);return Bs.jsx(j,Xt({},G,!xF(j)&&{slotProps:W,disableScrollLock:w},{children:Bs.jsx(S,Xt({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Bs.jsx($,Xt({},B,{children:d}))}))}))}));function Zz(e){return wl("MuiMenu",e)}Rl("MuiMenu",["root","paper","list"]);const ej=["onEntering"],tj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nj={vertical:"top",horizontal:"right"},rj={vertical:"top",horizontal:"left"},oj=tA(Jz,{shouldForwardProp:e=>eA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ij=tA(Qz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aj=tA($z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var lj=Hn.forwardRef((function(e,t){var n,r;const o=wP({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=rn(o.TransitionProps,ej),x=rn(o,tj),S=(()=>{const e=Hn.useContext(x_);return null!=e&&e})(),E=Xt({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"],list:["list"]},Zz,t)})(E),w=i&&!s&&d,R=Hn.useRef(null);let L=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:ij,I=null!=(r=b.paper)?r:p,M=wF({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=wF({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return Bs.jsx(oj,Xt({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?nj:rj,slots:{paper:k,root:v.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:Xt({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:Bs.jsx(aj,Xt({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Ys(C.list,u.className),children:a}))}))}));function sj(e){return wl("MuiMenuItem",e)}var uj=Rl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const cj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dj=tA(WF,{shouldForwardProp:e=>eA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xt({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:P_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:P_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:P_(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})`:P_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ez.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ez.inset}`]:{marginLeft:52},[`& .${Oz.root}`]:{marginTop:0,marginBottom:0},[`& .${Oz.inset}`]:{paddingLeft:36},[`& .${Tz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Tz.root} svg`]:{fontSize:"1.25rem"}}))));var pj=Hn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=rn(n,cj),f=Hn.useContext(Mz),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);nl((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Xt({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Xt({},a,xl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},sj,a))})(n),b=ol(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Bs.jsx(Mz.Provider,{value:m,children:Bs.jsx(dj,Xt({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Ys(v.focusVisible,s),className:Ys(v.root,d)},p,{ownerState:g,classes:v}))})}));const fj=tA(hz,{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}}))),mj=tA("div")({position:"absolute",left:0,bottom:0}),hj=tA("div")({...wt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),gj=tA("div")((()=>({...wt}))),vj=tA("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}))),bj=tA(lj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),yj=tA(pj,{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}}}))),xj=tA("span")({textOverflow:"ellipsis",overflow:"hidden"}),Sj=tA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:iT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Ej={[sD.SORTING]:!0,[sD.SELECTIONS]:!0,[sD.SEARCHING]:!0},Cj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=Hn.useRef(null),g=nT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=QD(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:I,hoverBackground:M,activeBackground:_}=g.header,P=Hn.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=dF({interactions:y,dataModel:e}),F={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},z={embed:x,listboxRef:h},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=Wq($,"flex-start",S);return Bs.jsxs(fj,{className:Qe,title:t.label,interactions:y,background:T?_:I,hoverBackground:M,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[Bs.jsxs(hj,{children:[A&&Bs.jsx(gj,{children:Bs.jsx(uF,{height:12})}),Bs.jsx(vj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:Bs.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&Bs.jsxs(Bs.Fragment,{children:[Bs.jsx(cD,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Ej,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),Bs.jsx(mj,{ref:h}),Bs.jsx(mj,{ref:P})]}),Bs.jsx(fF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},wj=({rowSpan:e,columnSpan:t})=>{const n=nT();return e>0&&t>0?Bs.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),kj=Hn.forwardRef(Lj);function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ij(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wn.createElement("use",{fillRule:"evenodd"})),_j=Hn.forwardRef(Mj),Pj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=nT(),{interactions:i}=QD(),{isActive:a}=wq(),{setIsAdjustingWidth:l}=cF([e]);if(!(!!i.active&&!a))return null;const s=pF(o,{isLeftColumn:!0});return Bs.jsx(lA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*sT))},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*sT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Aj(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)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Aj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),Tj=Hn.forwardRef(Dj),Oj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=Hn.useRef(null),i=Hn.useRef(null),{app:a,model:l,interactions:s,embed:u}=QD(),{open:c,setOpen:d,handleOpenMenu:p}=dF({interactions:s,dataModel:n});return Bs.jsxs(yj,{component:"div",onClick:p,isActive:c,children:[Bs.jsx(xj,{children:e.label}),Bs.jsxs(Sj,{className:"indent-mode-dropdown-more",visible:c,children:[Bs.jsx(Tj,{}),e.isDim&&Bs.jsxs(Bs.Fragment,{children:[Bs.jsx(cD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Ej,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Bs.jsx(mj,{ref:i}),Bs.jsx(mj,{ref:o})]})]})]})},Nj=({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)===mT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===mT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==mT&&e<n.length-1)},qj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=nT(),{interactions:u}=QD(),[c,d]=Hn.useState(!1),p=Hn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=cF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Bs.jsxs(fj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!xq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[Bs.jsxs(hj,{children:[Bs.jsx(vj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Bs.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Bs.jsx(_j,{}):Bs.jsx(kj,{}),Bs.jsx(mj,{ref:p})]}),Bs.jsx(bj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==mT&&Bs.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Bs.jsx(Oj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),Nj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Bs.jsx(hA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Bs.jsx(Pj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},Fj={display:"grid",width:"fit-content"},zj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Bs.jsxs("div",{style:{...Fj,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Bs.jsx(wj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(Bs.jsx(qj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(Bs.jsx(Cj,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var jj=Hn.memo(zj);const $j=(e,t,n,r,o)=>{Hn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Bj=(e,t)=>{VI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Hj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===uT.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 Wq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Wq(u,i,r)},Wj=()=>{},Gj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=nT(),{interactions:f,env:{flags:m}}=QD(),{select:h,isLocked:g}=wq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return Bs.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,..._t(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:Tq(x),background:Mq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Hj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Wj,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})},Vj=e=>e.stopPropagation(),Uj=({href:e,text:t,interactions:n,color:r})=>Wn.createElement(qw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Vj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Yj=({children:e,textStyle:t})=>Bs.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Kj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=wq(),{interactions:i}=QD();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...It(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:_q({cell:e,styleService:t,isCellSelected:n}),fontWeight:Pq({cell:e,styleService:t}),fontStyle:Aq({cell:e,styleService:t}),textDecoration:Dq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==uT.Image||e.isTotal?(e.representation.type!==uT.Link||o||e.isTotal||(a=Bs.jsx(Uj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Bs.jsx(Yj,{textStyle:l,children:a})):Bs.jsx(Hq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Xj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==uT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},Qj=({index:e,style:t,data:n})=>{const r=nT(),{isSelected:o}=wq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=cF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=KN(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return Bs.jsx(cq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return Bs.jsxs(Gj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[Bs.jsxs(dq,{verticalAlign:Xj(m),width:pq(m.representation),right:m.isLeftColumn?void 0:4,children:[Bs.jsx(qq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),Bs.jsx(Kj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),Bs.jsx(fF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var Jj=Wn.memo(Qj,YN);const Zj=({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()},e$=(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}},t$=(e,t)=>n=>{e.current&&(e.current[t]=n)},n$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},r$={overflow:"hidden",willChange:"auto",flexShrink:0},o$=({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}}=nT();Bj(t,a),$j(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Bs.jsx("div",{style:{...n$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=OT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=e$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return Bs.jsx(WN,{ref:t$(t,p),style:{...r$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:nF,estimatedItemSize:v,children:Jj},h)}))})};var i$=Hn.memo(o$);const a$={overflow:"hidden",willChange:"auto"},l$={...Rt,borderWidth:"0px 0px 0px 1px"},s$=({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}=nT(),p={...l$,borderColor:c,height:o};Bj(t,a),$j(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Bs.jsx("div",{style:{width:r,height:o,...l$}}):Bs.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=e$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?OT(g):`empty ${c}`;return Bs.jsx(WN,{ref:t$(t,c),style:a$,height:n(),width:r,itemCount:p,itemSize:Zj({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:nF,estimatedItemSize:m,children:Jj},v)}))})};var u$=Hn.memo(s$);const c$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=nT(),u=((e,t,n)=>Hn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return Hn.useMemo((()=>{var e,n,a,l;const s=iN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=iN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(oN(i,o,0)),visibleTopDimensionInfo:u.map(oN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=Hn.useCallback((async t=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:r}=t,o=[];o.push({qPath:`/qHyperCubeDef/qDimensions/${r}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(o,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=JO(o,r,i,c,d),y=nN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:M,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=QD(),f=Hn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=Hn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=Hn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Hn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Hn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Hn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Hn.useRef(0),x=Hn.useRef(0),S=Hn.useRef(Ye.None),E=Hn.useRef(Ye.None),[C,w]=Hn.useState(0),[R,L]=Hn.useState(0),k=e=>{E.current=rN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=rN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Hn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Hn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),Hn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=Hn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return Hn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),Hn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=nT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:M}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=nT(),{measureText:l}=HI(a.header),s=LT({layoutService:e,tableWidth:t,headersData:n}),u=kT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+St,d=c<t,p=Hn.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)+lT;return r&&d+aT<=a&&(c=!0,d+=aT),d+iT<=a&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,l,e.isIndentModeEnabled,n.size.x]);return Hn.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:_}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:M}),X=Hn.useCallback((()=>l),[l]),Q=Hn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=QD();Hn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Bs.jsx(uN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:Bs.jsx(aN,{...U.fullSize,children:Bs.jsxs(cN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&Bs.jsx(uN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:Bs.jsx(aN,{isLeftGrid:!0,...Y.containers.fullSize,children:Bs.jsxs(cN,{isLeftGrid:!0,...Y.containers.sticky,children:[Bs.jsx(jj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),Bs.jsx(i$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Bs.jsx(uN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:Bs.jsx(aN,{...K.containers.fullSize,children:Bs.jsxs(cN,{...K.containers.sticky,children:[Bs.jsx(u$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),Bs.jsx(aF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},d$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=QD(),{layout:u,hasData:c}=t;return Bs.jsxs(Bs.Fragment,{children:[c&&Bs.jsx(c$,{...e}),Bs.jsx(ZD,{translator:n,layoutService:t}),Bs.jsx(YD,{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})]})},p$={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)"},f$=12,m$=14,h$=16,g$=24,v$=3,b$=300,y$=400,x$=600,S$=700,E$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(p$.GREYSCALE_0,.05),nn(p$.GREEN_PALE,.5),nn(p$.BLUE_PALE,.5),nn(p$.GREEN_PALE,.5),nn(p$.BLUE_PALE,.5),nn(p$.GREEN_PALE,.5),nn(p$.BLUE_PALE,.5);var C$;function w$(){return w$=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},w$.apply(this,arguments)}nn(p$.GREEN_PALE,.5),nn(p$.BLUE_PALE,.5),nn(p$.GREEN_PALE,.5),nn(p$.BLUE_PALE,.5);var R$,L$=function(e){return Hn.createElement("svg",w$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),C$||(C$=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(this,arguments)}var I$=function(e){return Hn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),R$||(R$=Hn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function M$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var _$=(e={})=>Wn.createElement(M$,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),P$=(e={})=>Wn.createElement(M$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),A$=(e={})=>Wn.createElement(M$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),D$=(e={})=>Wn.createElement(M$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),T$=({className:e})=>Wn.createElement(M$,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),O$=(e={})=>Wn.createElement(M$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:p$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const N$={MuiAccordion:{styleOverrides:{root:{backgroundColor:p$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:p$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(L$,{"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 ${p$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`,borderRadius:v$,backgroundColor:p$.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 ${p$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:p$.WHITE,color:p$.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:v$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:p$.GREYSCALE_0_15,backgroundColor:p$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${p$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:p$.GREEN_PALE},"&:active":{backgroundColor:p$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${m_(p$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:p$.BLUE_PALE},"&:active":{backgroundColor:p$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${m_(p$.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:v$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:p$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:p$.GREYSCALE_0_15,backgroundColor:p$.GREYSCALE_100_60,"&:active":{backgroundColor:p$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${p$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:p$.PURPLE,"&.Mui-focusVisible":{borderColor:p$.PURPLE,boxShadow:`0 0 0 3px ${m_(p$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:p$.GREEN,"&.Mui-focusVisible":{borderColor:p$.GREEN,boxShadow:`0 0 0 3px ${m_(p$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:p$.BLUE,"&.Mui-focusVisible":{borderColor:p$.BLUE,boxShadow:`0 0 0 3px ${m_(p$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:p$.ORANGE,"&.Mui-focusVisible":{borderColor:p$.ORANGE,boxShadow:`0 0 0 3px ${m_(p$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:p$.RED,"&.Mui-focusVisible":{borderColor:p$.RED,boxShadow:`0 0 0 3px ${m_(p$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:p$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:p$.PURPLE_PALE},"&:active":{backgroundColor:p$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:p$.PURPLE_PALE,boxShadow:`0 0 0 3px ${m_(p$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:p$.GREEN_PALE},"&:active":{backgroundColor:p$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${m_(p$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:p$.BLUE_PALE},"&:active":{backgroundColor:p$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${m_(p$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:p$.ORANGE_PALE},"&:active":{backgroundColor:p$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:p$.ORANGE_PALE,boxShadow:`0 0 0 3px ${m_(p$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:p$.RED_PALE},"&:active":{backgroundColor:p$.RED_DARK},"&.Mui-focusVisible":{borderColor:p$.RED_PALE,boxShadow:`0 0 0 3px ${m_(p$.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:p$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:p$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:v$,boxShadow:`inset 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:f$,borderRadius:v$,color:p$.TEXT_PRIMARY,backgroundColor:p$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:p$.GREYSCALE_0_05,color:p$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:p$.GREEN,borderColor:p$.GREEN},"&.MuiChip-outlinedInfo":{color:p$.BLUE,borderColor:p$.BLUE},"&.MuiChip-outlinedWarning":{color:p$.ORANGE,borderColor:p$.ORANGE},"&.MuiChip-outlinedError":{color:p$.RED,borderColor:p$.RED}},outlined:{border:`solid 1px ${p$.GREYSCALE_0_15}`,backgroundColor:p$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:v$,boxShadow:"none",backgroundColor:p$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:p$.GREEN,borderColor:p$.GREEN},outlinedSecondary:{color:p$.BLUE,borderColor:p$.BLUE},label:{fontFamily:E$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(L$,{"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:v$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:v$,fontSize:m$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:p$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${p$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:p$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:p$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:p$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:v$,border:`solid 1px ${p$.GREYSCALE_0_15}`,color:p$.GREYSCALE_0_60,marginRight:0,width:g$,height:g$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${p$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:v$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:p$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:m$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:f$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:p$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:p$.GREYSCALE_25,fontSize:f$,fontFamily:E$.FONT_FAMILY,fontWeight:x$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:p$.TEXT_PRIMARY},"&.Mui-error":{color:p$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:p$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:y$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:p$.TEXT_SECONDARY,content:"'(required)'",fontWeight:y$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:m$,lineHeight:"16px",backgroundColor:p$.WHITE,borderRadius:v$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.GREYSCALE_0_05}`,borderColor:p$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${p$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${p$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.RED}`,boxShadow:`0px 0px 0px 1px ${p$.RED}, inset 0 2px 0 0 ${p$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.GREYSCALE_0_10}`,borderColor:p$.GREYSCALE_0_10,backgroundColor:p$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:p$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:p$.GREYSCALE_0_15,borderRadius:v$,boxShadow:`inset 0 2px 0 0 ${p$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(L$,{...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:p$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:p$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:p$.GREYSCALE_0_03},"&:active":{backgroundColor:p$.GREYSCALE_0_10},"&:focus":{backgroundColor:p$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${p$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:p$.GREYSCALE_0_30,"&:hover":{backgroundColor:p$.GREYSCALE_0_0,borderColor:p$.GREYSCALE_0_15},"& ~svg":{color:p$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${p$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:v$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:p$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:m$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:f$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:f$,fontWeight:x$,color:p$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:x$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${p$.GREYSCALE_0_15}, 0px 0px 0px 1px ${p$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(A$,null),checkedIcon:Wn.createElement(D$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:p$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${m_(p$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${m_(p$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:p$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:p$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(O$,null),checkedIcon:Wn.createElement(_$,null),indeterminateIcon:Wn.createElement(P$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:v$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:p$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:p$.GREYSCALE_0_55,color:p$.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:p$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:p$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:p$.GREYSCALE_0_55,"&:hover":{color:p$.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:p$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:p$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:m$,color:p$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:x$},secondary:{fontSize:f$,color:p$.GREYSCALE_45,fontWeight:y$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:m$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:p$.GREYSCALE_0_03},"&:active":{backgroundColor:p$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:m$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:p$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:f$,borderBottom:`solid 1px ${p$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:m$,color:p$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:p$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:p$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:p$.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:p$.RED}}},"&.Mui-focusVisible":{backgroundColor:p$.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:p$.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:p$.GREEN,height:"24px","&.Mui-disabled":{color:p$.GREYSCALE_0_15}},rail:{backgroundColor:p$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${p$.GREYSCALE_0_05}`,borderRadius:v$,boxShadow:`inset 0px 0px 0px 1px ${p$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${p$.GREYSCALE_0_05}`,borderRadius:v$},thumb:{height:"16px",width:"16px",borderRadius:v$,backgroundColor:p$.WHITE,boxShadow:`0px 1px 2px 0px ${p$.GREYSCALE_0_15}, 0px 0px 0px 1px ${p$.GREYSCALE_0_05}`,"&:hover":{borderRadius:v$,boxShadow:`0 2px 4px 0 ${p$.GREYSCALE_0_30}, 0 0 0 1px ${p$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${p$.GREYSCALE_0_15}, 0 0 0 1px ${p$.GREYSCALE_0_06}, 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${p$.GREYSCALE_0_15}, 0 0 0 1px ${p$.GREYSCALE_0_06}, 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:p$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:p$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:p$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:p$.GREYSCALE_0_15},markLabel:{color:p$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:p$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:p$.WHITE,color:p$.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:p$.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:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${m_(p$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${m_(p$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:p$.GREYSCALE_0_15,borderRadius:v$},thumb:{height:"16px",width:"16px",borderRadius:v$,backgroundColor:p$.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:m$,fontWeight:x$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${p$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`,backgroundColor:p$.GREYSCALE_0_03,borderRadius:v$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:p$.GREYSCALE_25,"&.Mui-selected":{color:p$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:m$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollButtons:{borderRadius:v$,"&:hover":{backgroundColor:`${p$.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${p$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${p$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:v$,marginBlock:"4px","&.Mui-selected":{backgroundColor:p$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${p$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${p$.GREYSCALE_85}`,borderRight:`1px solid ${p$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:x$,backgroundColor:p$.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:p$.GREYSCALE_98,borderBottom:`1px solid ${p$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${p$.GREYSCALE_85}`,borderTop:`1px solid ${p$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:p$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:p$.GREYSCALE_0_05,"&:hover":{backgroundColor:p$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:p$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(T$,{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 ${p$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:m$,borderRadius:v$,padding:"7px 16px",border:`1px solid ${p$.GREYSCALE_0_15}`,backgroundColor:p$.GREYSCALE_100_60,color:p$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:p$.GREYSCALE_0_10,border:`1px solid ${p$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:p$.GREYSCALE_0_03,border:`1px solid ${p$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:p$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${p$.MISC_FOCUS_BORDER}`,border:`1px solid ${p$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:p$.GREYSCALE_25,backgroundColor:p$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:p$.GREYSCALE_0_10,border:`1px solid ${p$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:f$,height:24,width:24,padding:7},sizeLarge:{fontSize:h$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:m$,borderRadius:v$}}},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:p$.GREYSCALE_20},tooltip:{backgroundColor:p$.GREYSCALE_20,fontSize:f$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var q$=e=>N$;const F$={mode:"light",primary:{ultraLight:p$.GREEN_ULTRA_LIGHT,light:p$.GREEN_PALE,main:p$.GREEN,dark:p$.GREEN_DARK,extraDark:p$.GREEN_EXTRA_DARK,contrastText:p$.WHITE},secondary:{ultraLight:p$.BLUE_ULTRA_LIGHT,light:p$.BLUE_PALE,main:p$.BLUE,dark:p$.BLUE_DARK,extraDark:p$.BLUE_EXTRA_DARK,contrastText:p$.WHITE},error:{ultraLight:p$.RED_ULTRA_LIGHT,light:p$.RED_PALE,main:p$.RED,dark:p$.RED_DARK,extraDark:p$.RED_EXTRA_DARK,contrastText:p$.WHITE},warning:{ultraLight:p$.ORANGE_ULTRA_LIGHT,light:p$.ORANGE_PALE,main:p$.ORANGE,dark:p$.ORANGE_DARK,extraDark:p$.ORANGE_EXTRA_DARK,contrastText:p$.WHITE},success:{ultraLight:p$.GREEN_ULTRA_LIGHT,light:p$.GREEN_PALE,main:p$.GREEN,dark:p$.GREEN_DARK,extraDark:p$.GREEN_EXTRA_DARK,contrastText:p$.WHITE},info:{ultraLight:p$.BLUE_ULTRA_LIGHT,light:p$.BLUE_PALE,main:p$.BLUE,dark:p$.BLUE_DARK,extraDark:p$.BLUE_EXTRA_DARK,contrastText:p$.WHITE},text:{primary:p$.TEXT_PRIMARY,secondary:p$.TEXT_SECONDARY,disabled:p$.GREYSCALE_0_30},action:{hover:p$.GREYSCALE_0_03,hoverOpacity:.03,selected:p$.GREYSCALE_0_05,selectedOpacity:.05,focus:p$.MISC_FOCUS_BORDER},amethyst:{ultraLight:p$.WHITE,main:p$.PURPLE,light:p$.PURPLE_PALE,dark:p$.PURPLE_DARK,extraDark:p$.GREYSCALE_0_0,contrastText:p$.WHITE},background:{paper:p$.WHITE,default:p$.GREYSCALE_95},divider:p$.GREYSCALE_0_15},z$=e=>F$,j$=(e="light")=>({components:q$(),palette:z$(),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:m$,fontWeightLight:b$,fontWeightRegular:y$,fontWeightMedium:x$,fontWeightBold:S$,htmlFontSize:m$,fontFamily:E$.FONT_FAMILY,button:{fontWeight:x$,fontSize:m$,textTransform:"none"},body1:{fontSize:h$,lineHeight:"24px"},body2:{fontSize:m$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:g$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:h$,fontWeight:x$,lineHeight:"16px"},h6:{fontSize:m$,fontWeight:x$,lineHeight:"16px"},caption:{color:p$.TEXT_SECONDARY},subtitle1:{fontSize:m$,color:p$.TEXT_SECONDARY},subtitle2:{fontSize:f$,color:p$.TEXT_SECONDARY}},shape:{borderRadius:v$}});const $$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=j$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),SP({...n,direction:e})}("ltr");e.render(Bs.jsx(Wn.StrictMode,{children:Bs.jsx(rA,{theme:p,children:Bs.jsx(JD,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Bs.jsx(Rq,{selections:n,updatePageInfo:t.updatePageInfo,children:Bs.jsx(rT,{styleService:r,children:Bs.jsx(d$,{...t})})})})})}))},B$={darker:.15,brighter:.3,opacity:.03},H$={darker:.3,brighter:.5,opacity:.05};var W$,G$,V$,U$;!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"}(W$||(W$={})),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"}(G$||(G$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(V$||(V$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(U$||(U$={}));const Y$=e=>e?`${parseInt(e,10)}px`:void 0,K$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},X$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),Q$=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",J$=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",Z$=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function eB(t,n){return e.useMemo((()=>t),n)}const tB={},nB=t=>{const n=e.useMemo((()=>({current:tB})),[]);return n.current=n.current===tB?t:n.current,n},rB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,oB=(t,n,r)=>{var o,i,a;const l=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,s=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,u=null!==(a=1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue))&&void 0!==a&&a;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o})=>{var i,a,l;const{qHyperCube:s,nullValueRepresentation:u,snapshotData:c}=e,{qNoOfLeftDims:d,qEffectiveInterColumnSortOrder:p,qMeasureInfo:f,qDimensionInfo:m}=s,h=!!c,g=null!==(i=null==c||null===(a=c.content)||void 0===a?void 0:a.rowsPerPage)&&void 0!==i?i:15e3,v={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,g)},b=p.slice(0,d),y=e=>b.some((t=>t===e)),x=y(fT),S=new Map(p.map((e=>{var t;return[null!==(t=m[e])&&void 0!==t?t:fT,e]}))),E=f.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==u?void 0:u.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(x)return 0;const n=e%E.length;return t?n:f.findIndex((e=>e===E[n]))},getDimensionInfo:e=>e===fT?fT:m[e],getDimensionInfoIndex:e=>{var t;return null!==(t=S.get(e))&&void 0!==t?t:-1},size:v,isSnapshot:h,hasLimitedData:!h&&v.x<e.qHyperCube.qSize.qcx,hasData:v.x>0&&v.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:x,leftDimensionInfoIndexes:b,isLeftDimension:y,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:E,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(l=e.qHyperCube.indentModeColumnWidth)&&void 0!==l?l:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault},isSortedByFirstMeasure:o}})({layout:t,flags:n,qShowTotalsAbove:l,qAlwaysFullyExpanded:s,isSortedByFirstMeasure:u})),[t,l,s,u,n])},iB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=nB(e);return t.current=e,t})(eN(o));return kk((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(pT,tN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},aB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),lB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:aB({rowsPerPage:n,totalRowCount:e,page:t})}),sB=15,uB=({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-sB,0),u=Math.max(l+o-sB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=eN(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=tN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(pT,[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 cB={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(cB).forEach((t=>{e.add(cB[t])}))}}(t)),[t]),{translator:t,language:n}},pB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>WI(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=nB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>fq()),[]),l=eB((e=>{r.current.add(e)}),[r]),s=eB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>kk((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=oB(i,n,p),h=e.useSelections(),g=Lk(i,r),{translator:v,language:b}=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,...lB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...lB(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=aB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:aB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=uB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=iB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,M,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[W$.LineClamp])&&void 0!==i?i:oe(G$.Grid,V$.Grid,U$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[W$.ColumnLineClamp])&&void 0!==l?l:oe(G$.Grid,V$.Grid,U$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=K$(e,null==Q?void 0:Q[W$.Background]))&&void 0!==u?u:oe(G$.Dimension,V$.LabelName,U$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Y$(null==Q?void 0:Q[W$.FontSize]))&&void 0!==d?d:oe(G$.Dimension,V$.LabelName,U$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[W$.FontFamily])&&void 0!==f?f:oe(G$.Dimension,V$.LabelName,U$.FontFamily))&&void 0!==p?p:vt,fontWeight:Q$(null==Q?void 0:Q[W$.FontStyle],bt),fontStyle:J$(null==Q?void 0:Q[W$.FontStyle]),textDecoration:Z$(null==Q?void 0:Q[W$.FontStyle]),color:null!==(m=null!==(h=K$(e,null==Q?void 0:Q[W$.FontColor]))&&void 0!==h?h:oe(G$.Dimension,V$.LabelName,U$.Color))&&void 0!==m?m:gL.TEXT,background:le,hoverBackground:gk(le,B$),activeBackground:gk(le,H$)},dimensionValues:{fontSize:null!==(g=null!==(v=Y$(null==J?void 0:J[W$.FontSize]))&&void 0!==v?v:oe(G$.Dimension,V$.LabelValue,U$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[W$.FontFamily])&&void 0!==y?y:oe(G$.Dimension,V$.LabelValue,U$.FontFamily))&&void 0!==b?b:vt,fontWeight:Q$(null==J?void 0:J[W$.FontStyle],void 0),fontStyle:J$(null==J?void 0:J[W$.FontStyle]),textDecoration:Z$(null==J?void 0:J[W$.FontStyle]),color:null!==(x=null!==(S=K$(e,null==J?void 0:J[W$.FontColor]))&&void 0!==S?S:oe(G$.Dimension,V$.LabelValue,U$.Color))&&void 0!==x?x:gL.TEXT,background:null!==(E=null!==(C=K$(e,null==J?void 0:J[W$.Background]))&&void 0!==C?C:oe(G$.Dimension,V$.LabelValue,U$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Y$(null==Z?void 0:Z[W$.FontSize]))&&void 0!==R?R:oe(G$.Measure,V$.LabelValue,U$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[W$.FontFamily])&&void 0!==k?k:oe(G$.Measure,V$.LabelValue,U$.FontFamily))&&void 0!==L?L:vt,fontWeight:Q$(null==Z?void 0:Z[W$.FontStyle],"normal"),fontStyle:J$(null==Z?void 0:Z[W$.FontStyle]),textDecoration:Z$(null==Z?void 0:Z[W$.FontStyle]),color:null!==(I=null!==(M=K$(e,null==Z?void 0:Z[W$.FontColor]))&&void 0!==M?M:oe(G$.Measure,V$.LabelValue,U$.Color))&&void 0!==I?I:Et.FontSecondary,background:null!==(_=null!==(P=K$(e,null==Z?void 0:Z[W$.Background]))&&void 0!==P?P:oe(G$.Measure,V$.LabelValue,U$.BackgroundColor))&&void 0!==_?_:Et.Transparent},measureLabels:{fontWeight:Q$(null==ee?void 0:ee[W$.FontStyle],"normal"),fontStyle:J$(null==ee?void 0:ee[W$.FontStyle]),textDecoration:Z$(null==ee?void 0:ee[W$.FontStyle]),color:null!==(A=null!==(D=K$(e,null==ee?void 0:ee[W$.FontColor]))&&void 0!==D?D:oe(G$.Measure,V$.LabelName,U$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=K$(e,null==ee?void 0:ee[W$.Background]))&&void 0!==O?O:oe(G$.Measure,V$.LabelName,U$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:Q$(null==te?void 0:te[W$.FontStyle],bt),fontStyle:J$(null==te?void 0:te[W$.FontStyle]),textDecoration:Z$(null==te?void 0:te[W$.FontStyle]),color:null!==(N=null!==(q=K$(e,null==te?void 0:te[W$.FontColor]))&&void 0!==q?q:oe(G$.Total,V$.LabelValue,U$.Color))&&void 0!==N?N:gL.TEXT,background:null!==(F=null!==(z=K$(e,null==te?void 0:te[W$.Background]))&&void 0!==z?z:oe(G$.Total,V$.LabelValue,U$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:Q$(null==ne?void 0:ne[W$.FontStyle],"normal"),fontStyle:J$(null==ne?void 0:ne[W$.FontStyle]),textDecoration:Z$(null==ne?void 0:ne[W$.FontStyle]),color:null!==(j=null!==($=K$(e,null==ne?void 0:ne[W$.FontColor]))&&void 0!==$?$:oe(G$.Null,V$.LabelValue,U$.Color))&&void 0!==j?j:gL.TEXT,background:null!==(B=null!==(H=K$(e,null==ne?void 0:ne[W$.Background]))&&void 0!==H?H:oe(G$.Null,V$.LabelValue,U$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=K$(e,null==re?void 0:re[W$.Border]))&&void 0!==G?G:oe(G$.Grid,V$.Grid,U$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=K$(e,null==re?void 0:re[W$.Divider]))&&void 0!==U?U:oe(G$.Grid,V$.Divider,U$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=K$(e,null==re?void 0:re[W$.Background]))&&void 0!==K?K:oe(G$.Grid,V$.Grid,U$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(X$(se.header.fontSize,ae),X$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(X$(se.measureValues.fontSize,ie),X$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=X$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(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),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&QI(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&$$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},fB={version:"3.8.2",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},mB=e=>({...fB,qHyperCubeDef:{...fB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:mB(e)},data:Pe(e)},ext:Kt(e),component(){pB(e)}}}}));
193
+ `),MF.rippleVisible,OF,550,(({theme:e})=>e.transitions.easing.easeInOut),MF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),MF.child,MF.childLeaving,NF,550,(({theme:e})=>e.transitions.easing.easeInOut),MF.childPulsate,qF,(({theme:e})=>e.transitions.easing.easeInOut)),jF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rn(n,IF),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=ul(),f=Hn.useRef(null),m=Hn.useRef(null),h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xs.jsx(zF,{classes:{ripple:Pl(o.ripple,MF.ripple),rippleVisible:Pl(o.rippleVisible,MF.rippleVisible),ripplePulsate:Pl(o.ripplePulsate,MF.ripplePulsate),child:Pl(o.child,MF.child),childLeaving:Pl(o.childLeaving,MF.childLeaving),childPulsate:Pl(o.childPulsate,MF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Xs.jsx(FF,Xt({className:Pl(MF.root,o.root,i),ref:m},a,{children:Xs.jsx(pE,{component:null,exit:!0,children:l})}))}));var $F=jF;function BF(e){return Rl("MuiButtonBase",e)}var HF=Ll("MuiButtonBase",["root","disabled","focusVisible"]);const WF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],GF=sA("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${HF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),VF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:_}=n,P=rn(n,WF),A=Hn.useRef(null),D=Hn.useRef(null),T=il(D,I),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=bl(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return ol((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=ol((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=ol((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=ol((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=il(t,F,A),se=Xt({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sl({root:["root",t&&"disabled",n&&"focusVisible"]},BF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xs.jsxs(GF,Xt({as:ie,className:Pl(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Xs.jsx($F,Xt({ref:T,center:o},M)):null]}))}));var UF=VF;var YF=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=il(Hn.isValidElement(n)?n.ref:null,t);if(rl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rl((()=>{if(i&&!o)return nl(t,i),()=>{nl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Xs.jsx(Hn.Fragment,{children:n})}return Xs.jsx(Hn.Fragment,{children:i?KS.createPortal(n,i):i})}));const KF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],XF={entering:{opacity:1},entered:{opacity:1}},QF=Hn.forwardRef((function(e,t){const n=PP(),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=aE}=e,b=rn(e,KF),y=Hn.useRef(null),x=il(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)=>{EF(e);const r=CF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=CF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Xs.jsx(v,Xt({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},XF[e],h,a.props.style),ref:x},t))}))}));var JF=QF;function ZF(e){return Rl("MuiBackdrop",e)}Ll("MuiBackdrop",["root","invisible"]);const ez=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tz=sA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Xt({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),nz=Hn.forwardRef((function(e,t){var n,r,o;const i=SF({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=JF,transitionDuration:g}=i,v=rn(i,ez),b=Xt({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sl({root:["root",n&&"invisible"]},ZF,t)})(b),x=null!=(n=f.root)?n:c.root;return Xs.jsx(h,Xt({in:p,timeout:g},v,{children:Xs.jsx(tz,Xt({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Pl(y.root,l,null==x?void 0:x.className),ownerState:Xt({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var rz=nz;var oz=Ll("MuiBox",["root"]);const iz=IP(),az=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(i_);return Hn.forwardRef((function(e,a){const l=p_(n),s=h_(e),{className:u,component:c="div"}=s,d=rn(s,v_);return Xs.jsx(i,Xt({as:c,ref:a,className:Pl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:oI,defaultTheme:iz,defaultClassName:oz.root,generateClassName:Cl.generate});var lz=az;function sz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uz(e){return parseInt(tl(e).getComputedStyle(e).paddingRight,10)||0}function cz(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&&sz(e,o)}))}function dz(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=el(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yl(el(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${uz(r)+e}px`;const t=el(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${uz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=el(r).body;else{const t=r.parentElement,n=tl(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 fz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mz(e){const t=[],n=[];return Array.from(e.querySelectorAll(fz)).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 hz(){return!0}function gz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=mz,isEnabled:a=hz,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=il(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(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 Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const vz=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&&sz(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);cz(t,e.mount,e.modalRef,r,!0);const o=dz(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=dz(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=dz(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&&sz(e.modalRef,t),cz(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&&sz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=vz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=il(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=ol((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||el(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=ol((e=>{f.current=e,e&&(c&&C()?S():m.current&&sz(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Al(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ja((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ja((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function yz(e){return Rl("MuiModal",e)}Ll("MuiModal",["root","hidden","backdrop"]);const xz=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Sz=sA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xt({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ez=sA(rz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cz=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=SF({name:"MuiModal",props:e}),{BackdropComponent:u=Ez,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:M,slots:I}=s,_=rn(s,xz),P=Xt({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=bz(Xt({},P,{rootRef:t})),z=Xt({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Sl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:Sz,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,V=Ol({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Pl(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Ol({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Xt({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Pl(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Xs.jsx(YF,{ref:O,container:m,disablePortal:S,children:Xs.jsxs(B,Xt({},V,{children:[!w&&u?Xs.jsx(H,Xt({},U)):null,Xs.jsx(gz,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var wz=Cz;var Rz=Ll("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Lz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kz(e){return`scale(${e}, ${e**2})`}const Mz={entering:{opacity:1,transform:kz(1)},entered:{opacity:1,transform:"none"}},Iz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_z=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=aE}=e,g=rn(e,Lz),v=ul(),b=Hn.useRef(),y=PP(),x=Hn.useRef(null),S=il(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)=>{EF(e);const{duration:n,delay:r,easing:o}=CF({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:Iz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=CF({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:Iz?o:.666*o,delay:Iz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=kz(.75),c&&c(e)})),M=E(d);return Xs.jsx(h,Xt({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Xt({style:Xt({opacity:0,transform:kz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Mz[e],f,o.props.style),ref:S},t))}))}));_z.muiSupportAuto=!0;var Pz=_z;var Az=Hn.createContext({});function Dz(e){return Rl("MuiList",e)}Ll("MuiList",["root","padding","dense","subheader"]);const Tz=["children","className","component","dense","disablePadding","subheader"],Oz=sA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Xt({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Nz=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=rn(n,Tz),c=Hn.useMemo((()=>({dense:a})),[a]),d=Xt({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dz,t)})(d);return Xs.jsx(Az.Provider,{value:c,children:Xs.jsxs(Oz,Xt({as:i,className:Pl(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var qz=Ll("MuiListItemIcon",["root","alignItemsFlexStart"]);var Fz=Ll("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const zz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $z(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Wz=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=rn(e,zz),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rl((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${yl(el(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=il(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Xs.jsx(Nz,Xt({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=el(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hz(t,r,s,l,jz);else if("ArrowUp"===n)e.preventDefault(),Hz(t,r,s,l,$z);else if("Home"===n)e.preventDefault(),Hz(t,null,s,l,jz);else if("End"===n)e.preventDefault(),Hz(t,null,s,l,$z);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bz(r,o);o.previousKeyMatched&&(s||Hz(t,r,!1,l,jz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gz(e){return Rl("MuiPopover",e)}Ll("MuiPopover",["root","paper"]);const Vz=["onEntering"],Uz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yz=["slotProps"];function Kz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jz(e){return"function"==typeof e?e():e}const Zz=sA(wz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ej=sA(kF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var tj=Hn.forwardRef((function(e,t){var n,r,o;const i=SF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Pz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=rn(i.TransitionProps,Vz),L=rn(i,Uz),k=null!=(n=null==y?void 0:y.paper)?n:v,M=Hn.useRef(),I=il(M,k.ref),_=Xt({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},Gz,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Jz(l),t=(e&&1===e.nodeType?e:el(M.current).body).getBoundingClientRect();return{top:t.top+Kz(t,s.vertical),left:t.left+Xz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:Kz(e,x.vertical),horizontal:Xz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Qz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=tl(Jz(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qz(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=Za((()=>{q()})),t=tl(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?el(Jz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Zz,$=null!=(o=null==b?void 0:b.paper)?o:ej,B=Ol({elementType:$,externalSlotProps:Xt({},k,{style:O?k.style:Xt({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:_,className:Pl(P.paper,null==k?void 0:k.className)}),H=Ol({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Pl(P.root,p)}),{slotProps:W}=H,G=rn(H,Yz);return Xs.jsx(j,Xt({},G,!Il(j)&&{slotProps:W,disableScrollLock:w},{children:Xs.jsx(S,Xt({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Xs.jsx($,Xt({},B,{children:d}))}))}))}));function nj(e){return Rl("MuiMenu",e)}Ll("MuiMenu",["root","paper","list"]);const rj=["onEntering"],oj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ij={vertical:"top",horizontal:"right"},aj={vertical:"top",horizontal:"left"},lj=sA(tj,{shouldForwardProp:e=>lA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sj=sA(ej,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uj=sA(Wz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var cj=Hn.forwardRef((function(e,t){var n,r;const o=SF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=rn(o.TransitionProps,rj),x=rn(o,oj),S=(()=>{const e=Hn.useContext(R_);return null!=e&&e})(),E=Xt({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},nj,t)})(E),w=i&&!s&&d,R=Hn.useRef(null);let L=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:sj,M=null!=(r=b.paper)?r:p,I=Ol({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Ol({elementType:k,externalSlotProps:M,ownerState:E,className:C.paper});return Xs.jsx(lj,Xt({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ij:aj,slots:{paper:k,root:v.root},slotProps:{root:I,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:Xt({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:Xs.jsx(uj,Xt({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Pl(C.list,u.className),children:a}))}))}));function dj(e){return Rl("MuiMenuItem",e)}var pj=Ll("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mj=sA(UF,{shouldForwardProp:e=>lA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xt({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:z_(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}))`:z_(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}))`:z_(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})`:z_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rz.inset}`]:{marginLeft:52},[`& .${Fz.root}`]:{marginTop:0,marginBottom:0},[`& .${Fz.inset}`]:{paddingLeft:36},[`& .${qz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qz.root} svg`]:{fontSize:"1.25rem"}}))));var hj=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=rn(n,fj),f=Hn.useContext(Az),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);rl((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Xt({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Xt({},a,Sl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dj,a))})(n),b=il(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xs.jsx(Az.Provider,{value:m,children:Xs.jsx(mj,Xt({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Pl(v.focusVisible,s),className:Pl(v.root,d)},p,{ownerState:g,classes:v}))})}));const gj=sA(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}}))),vj=sA("div")({position:"absolute",left:0,bottom:0}),bj=sA("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...wt,justifyContent:null!=e?e:wt.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),yj=sA("div")((()=>({...wt}))),xj=sA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Sj=sA(cj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ej=sA(hj,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),Cj=sA("span")({textOverflow:"ellipsis",overflow:"hidden"}),wj=sA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:pT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Rj={[hD.SORTING]:!0,[hD.SELECTIONS]:!0,[hD.SEARCHING]:!0},Lj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=Hn.useRef(null),g=uT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=oT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:M,hoverBackground:I,activeBackground:_}=g.header,P=Hn.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=bF({interactions:y,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},z={embed:x,listboxRef:h},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=Qq($,"flex-start",S);return Xs.jsxs(gj,{className:Qe,title:t.label,interactions:y,background:T?_:M,hoverBackground:I,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[Xs.jsxs(bj,{children:[A&&Xs.jsx(yj,{children:Xs.jsx(gF,{height:12})}),Xs.jsx(xj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:Xs.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&Xs.jsxs(Xs.Fragment,{children:[Xs.jsx(vD,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Rj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),Xs.jsx(vj,{ref:h}),Xs.jsx(vj,{ref:P})]}),Xs.jsx(xF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},kj=({rowSpan:e,columnSpan:t})=>{const n=uT();return e>0&&t>0?Xs.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ij=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),_j=Hn.forwardRef(Ij);function Pj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wn.createElement("use",{fillRule:"evenodd"})),Dj=Hn.forwardRef(Aj),Tj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=uT(),{interactions:i}=oT(),{isActive:a}=Pq(),{setIsAdjustingWidth:l}=vF([e]);if(!(!!i.active&&!a))return null;const s=yF(o,{isLeftColumn:!0});return Xs.jsx(mA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*hT))},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*hT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),qj=Hn.forwardRef(Nj),Fj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=Hn.useRef(null),i=Hn.useRef(null),{app:a,model:l,interactions:s,embed:u}=oT(),{open:c,setOpen:d,handleOpenMenu:p}=bF({interactions:s,dataModel:n});return Xs.jsxs(Ej,{component:"div",onClick:p,isActive:c,children:[Xs.jsx(Cj,{children:e.label}),Xs.jsxs(wj,{className:"indent-mode-dropdown-more",visible:c,children:[Xs.jsx(qj,{}),e.isDim&&Xs.jsxs(Xs.Fragment,{children:[Xs.jsx(vD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Rj,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Xs.jsx(vj,{ref:i}),Xs.jsx(vj,{ref:o})]})]})]})},zj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===ST,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===ST;return!(r&&a&&l)&&((null==t?void 0:t.id)!==ST&&e<n.length-1)},jj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=uT(),{interactions:u}=oT(),[c,d]=Hn.useState(!1),p=Hn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=vF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Xs.jsxs(gj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!kq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[Xs.jsxs(bj,{justifyContent:"flex-start",children:[Xs.jsx(xj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Xs.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Xs.jsx(Dj,{}):Xs.jsx(_j,{}),Xs.jsx(vj,{ref:p})]}),Xs.jsx(Sj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==ST&&Xs.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Xs.jsx(Fj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),zj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Xs.jsx(EA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Xs.jsx(Tj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},$j={display:"grid",width:"fit-content"},Bj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Xs.jsxs("div",{style:{...$j,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Xs.jsx(kj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(Xs.jsx(jj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(Xs.jsx(Lj,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var Hj=Hn.memo(Bj);const Wj=(e,t,n,r,o)=>{Hn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Gj=(e,t)=>{JM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Vj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===gT.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 Qq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Qq(u,i,r)},Uj=()=>{},Yj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=uT(),{interactions:f,env:{flags:m}}=oT(),{select:h,isLocked:g}=Pq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return Xs.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,..._t(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:$q(x),background:Nq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Vj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Uj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},Kj=e=>e.stopPropagation(),Xj=({href:e,text:t,interactions:n,color:r})=>Wn.createElement(Hw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Kj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Qj=({children:e,textStyle:t})=>Xs.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Jj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Pq(),{interactions:i}=oT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...Mt(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:qq({cell:e,styleService:t,isCellSelected:n}),fontWeight:Fq({cell:e,styleService:t}),fontStyle:zq({cell:e,styleService:t}),textDecoration:jq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==gT.Image||e.isTotal?(e.representation.type!==gT.Link||o||e.isTotal||(a=Xs.jsx(Xj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Xs.jsx(Qj,{textStyle:l,children:a})):Xs.jsx(Xq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Zj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==gT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},e$=({index:e,style:t,data:n})=>{const r=uT(),{isSelected:o}=Pq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=vF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=nq(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return Xs.jsx(vq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return Xs.jsxs(Yj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[Xs.jsxs(bq,{verticalAlign:Zj(m),width:yq(m.representation),right:m.isLeftColumn?void 0:4,children:[Xs.jsx(Wq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),Xs.jsx(Jj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),Xs.jsx(xF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var t$=Wn.memo(e$,tq);const n$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},r$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},o$=(e,t)=>n=>{e.current&&(e.current[t]=n)},i$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},a$={overflow:"hidden",willChange:"auto",flexShrink:0},l$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=uT();Gj(t,a),Wj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Xs.jsx("div",{style:{...i$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=BT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=r$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return Xs.jsx(QN,{ref:o$(t,p),style:{...a$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:uF,estimatedItemSize:v,children:t$},h)}))})};var s$=Hn.memo(l$);const u$={overflow:"hidden",willChange:"auto"},c$={...Rt,borderWidth:"0px 0px 0px 1px"},d$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=uT(),p={...c$,borderColor:c,height:o};Gj(t,a),Wj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Xs.jsx("div",{style:{width:r,height:o,...c$}}):Xs.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=r$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?BT(g):`empty ${c}`;return Xs.jsx(QN,{ref:o$(t,c),style:u$,height:n(),width:r,itemCount:p,itemSize:n$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:uF,estimatedItemSize:m,children:t$},v)}))})};var p$=Hn.memo(d$);const f$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=uT(),u=((e,t,n)=>Hn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return Hn.useMemo((()=>{var e,n,a,l;const s=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(dN(i,o,0)),visibleTopDimensionInfo:u.map(dN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=Hn.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:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=iN(o,r,i,c,d),y=uN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:M,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=oT(),f=Hn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=Hn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=Hn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Hn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Hn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Hn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Hn.useRef(0),x=Hn.useRef(0),S=Hn.useRef(Ye.None),E=Hn.useRef(Ye.None),[C,w]=Hn.useState(0),[R,L]=Hn.useState(0),k=e=>{E.current=cN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=cN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Hn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Hn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),Hn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const M=Hn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return Hn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}M()}),[M,e,t,r.width,r.height,d,p]),Hn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:M,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=uT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:I}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=uT(),{measureText:s}=KM(l.header),u=DT({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=TT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+St,p=d<t,f=Hn.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+mT;return r&&d+fT<=a&&(c=!0,d+=fT),d+pT<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return Hn.useEffect((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:M,horizontalScrollbarHeightSetter:_,translator:a}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:M,horizontalScrollbarHeight:I}),X=Hn.useCallback((()=>l),[l]),Q=Hn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=oT();Hn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Xs.jsx(gN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:Xs.jsx(fN,{...U.fullSize,children:Xs.jsxs(vN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&Xs.jsx(gN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:Xs.jsx(fN,{isLeftGrid:!0,...Y.containers.fullSize,children:Xs.jsxs(vN,{isLeftGrid:!0,...Y.containers.sticky,children:[Xs.jsx(Hj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),Xs.jsx(s$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Xs.jsx(gN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:Xs.jsx(fN,{...K.containers.fullSize,children:Xs.jsxs(vN,{...K.containers.sticky,children:[Xs.jsx(p$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),Xs.jsx(fF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},m$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=oT(),{layout:u,hasData:c}=t;return Xs.jsxs(Xs.Fragment,{children:[c&&Xs.jsx(f$,{...e}),Xs.jsx(aT,{translator:n,layoutService:t}),Xs.jsx(tT,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},h$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},g$=12,v$=14,b$=16,y$=24,x$=3,S$=300,E$=400,C$=600,w$=700,R$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(h$.GREYSCALE_0,.05),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var L$;function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(null,arguments)}nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var M$,I$=function(e){return Hn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),L$||(L$=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function _$(){return _$=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},_$.apply(null,arguments)}var P$=function(e){return Hn.createElement("svg",_$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),M$||(M$=Hn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function A$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var D$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),T$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),O$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),N$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),q$=({className:e})=>Wn.createElement(A$,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),F$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:h$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const z$={MuiAccordion:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:h$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${h$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,borderRadius:x$,backgroundColor:h$.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${h$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:h$.WHITE,color:h$.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:x$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:x$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:h$.PURPLE,"&.Mui-focusVisible":{borderColor:h$.PURPLE,boxShadow:`0 0 0 3px ${y_(h$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:h$.GREEN,"&.Mui-focusVisible":{borderColor:h$.GREEN,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:h$.BLUE,"&.Mui-focusVisible":{borderColor:h$.BLUE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:h$.ORANGE,"&.Mui-focusVisible":{borderColor:h$.ORANGE,boxShadow:`0 0 0 3px ${y_(h$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:h$.RED,"&.Mui-focusVisible":{borderColor:h$.RED,boxShadow:`0 0 0 3px ${y_(h$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:h$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:h$.PURPLE_PALE},"&:active":{backgroundColor:h$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:h$.PURPLE_PALE,boxShadow:`0 0 0 3px ${y_(h$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:h$.ORANGE_PALE},"&:active":{backgroundColor:h$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:h$.ORANGE_PALE,boxShadow:`0 0 0 3px ${y_(h$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:h$.RED_PALE},"&:active":{backgroundColor:h$.RED_DARK},"&.Mui-focusVisible":{borderColor:h$.RED_PALE,boxShadow:`0 0 0 3px ${y_(h$.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:h$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:h$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:x$,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:g$,borderRadius:x$,color:h$.TEXT_PRIMARY,backgroundColor:h$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:h$.GREYSCALE_0_05,color:h$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:h$.GREEN,borderColor:h$.GREEN},"&.MuiChip-outlinedInfo":{color:h$.BLUE,borderColor:h$.BLUE},"&.MuiChip-outlinedWarning":{color:h$.ORANGE,borderColor:h$.ORANGE},"&.MuiChip-outlinedError":{color:h$.RED,borderColor:h$.RED}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:x$,boxShadow:"none",backgroundColor:h$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:h$.GREEN,borderColor:h$.GREEN},outlinedSecondary:{color:h$.BLUE,borderColor:h$.BLUE},label:{fontFamily:R$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:x$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:x$,fontSize:v$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:h$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${h$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:h$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:h$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:x$,border:`solid 1px ${h$.GREYSCALE_0_15}`,color:h$.GREYSCALE_0_60,marginRight:0,width:y$,height:y$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${h$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:x$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:h$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:v$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:g$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:h$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:h$.GREYSCALE_25,fontSize:g$,fontFamily:R$.FONT_FAMILY,fontWeight:C$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:h$.TEXT_PRIMARY},"&.Mui-error":{color:h$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:h$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:E$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:h$.TEXT_SECONDARY,content:"'(required)'",fontWeight:E$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:v$,lineHeight:"16px",backgroundColor:h$.WHITE,borderRadius:x$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_05}`,borderColor:h$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.RED}`,boxShadow:`0px 0px 0px 1px ${h$.RED}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_10}`,borderColor:h$.GREYSCALE_0_10,backgroundColor:h$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:h$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:h$.GREYSCALE_0_15,borderRadius:x$,boxShadow:`inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(I$,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:h$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:h$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&:focus":{backgroundColor:h$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:h$.GREYSCALE_0_30,"&:hover":{backgroundColor:h$.GREYSCALE_0_0,borderColor:h$.GREYSCALE_0_15},"& ~svg":{color:h$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:x$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:h$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:v$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:g$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:g$,fontWeight:C$,color:h$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:C$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(O$,null),checkedIcon:Wn.createElement(N$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:h$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:h$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:h$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(F$,null),checkedIcon:Wn.createElement(D$,null),indeterminateIcon:Wn.createElement(T$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:x$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:h$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:h$.GREYSCALE_0_55,color:h$.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:h$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:h$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:h$.GREYSCALE_0_55,"&:hover":{color:h$.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:h$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:h$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:v$,color:h$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:C$},secondary:{fontSize:g$,color:h$.GREYSCALE_45,fontWeight:E$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:v$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:v$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:h$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:g$,borderBottom:`solid 1px ${h$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:v$,color:h$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:h$.RED}}},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:h$.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:h$.GREEN,height:"24px","&.Mui-disabled":{color:h$.GREYSCALE_0_15}},rail:{backgroundColor:h$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$,boxShadow:`inset 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.WHITE,boxShadow:`0px 1px 2px 0px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`,"&:hover":{borderRadius:x$,boxShadow:`0 2px 4px 0 ${h$.GREYSCALE_0_30}, 0 0 0 1px ${h$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:h$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:h$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:h$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:h$.GREYSCALE_0_15},markLabel:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:h$.WHITE,color:h$.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:h$.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:h$.GREYSCALE_0_15,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:v$,fontWeight:C$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${h$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,backgroundColor:h$.GREYSCALE_0_03,borderRadius:x$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:h$.GREYSCALE_25,"&.Mui-selected":{color:h$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:v$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:x$,"&:hover":{backgroundColor:`${h$.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 ${h$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${h$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:x$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderRight:`1px solid ${h$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:C$,backgroundColor:h$.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:h$.GREYSCALE_98,borderBottom:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderTop:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05,"&:hover":{backgroundColor:h$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:h$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(q$,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${h$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:v$,borderRadius:x$,padding:"7px 16px",border:`1px solid ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_60,color:h$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:h$.GREYSCALE_0_03,border:`1px solid ${h$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:h$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`,border:`1px solid ${h$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:h$.GREYSCALE_25,backgroundColor:h$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:g$,height:24,width:24,padding:7},sizeLarge:{fontSize:b$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:v$,borderRadius:x$}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:h$.GREYSCALE_20},tooltip:{backgroundColor:h$.GREYSCALE_20,fontSize:g$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var j$=e=>z$;const $$={mode:"light",primary:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},secondary:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},error:{ultraLight:h$.RED_ULTRA_LIGHT,light:h$.RED_PALE,main:h$.RED,dark:h$.RED_DARK,extraDark:h$.RED_EXTRA_DARK,contrastText:h$.WHITE},warning:{ultraLight:h$.ORANGE_ULTRA_LIGHT,light:h$.ORANGE_PALE,main:h$.ORANGE,dark:h$.ORANGE_DARK,extraDark:h$.ORANGE_EXTRA_DARK,contrastText:h$.WHITE},success:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},info:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},text:{primary:h$.TEXT_PRIMARY,secondary:h$.TEXT_SECONDARY,disabled:h$.GREYSCALE_0_30},action:{hover:h$.GREYSCALE_0_03,hoverOpacity:.03,selected:h$.GREYSCALE_0_05,selectedOpacity:.05,focus:h$.MISC_FOCUS_BORDER},amethyst:{ultraLight:h$.WHITE,main:h$.PURPLE,light:h$.PURPLE_PALE,dark:h$.PURPLE_DARK,extraDark:h$.GREYSCALE_0_0,contrastText:h$.WHITE},background:{paper:h$.WHITE,default:h$.GREYSCALE_95},divider:h$.GREYSCALE_0_15},B$=e=>$$,H$=(e="light")=>({components:j$(),palette:B$(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:v$,fontWeightLight:S$,fontWeightRegular:E$,fontWeightMedium:C$,fontWeightBold:w$,htmlFontSize:v$,fontFamily:R$.FONT_FAMILY,button:{fontWeight:C$,fontSize:v$,textTransform:"none"},body1:{fontSize:b$,lineHeight:"24px"},body2:{fontSize:v$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:y$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:b$,fontWeight:C$,lineHeight:"16px"},h6:{fontSize:v$,fontWeight:C$,lineHeight:"16px"},caption:{color:h$.TEXT_SECONDARY},subtitle1:{fontSize:v$,color:h$.TEXT_SECONDARY},subtitle2:{fontSize:g$,color:h$.TEXT_SECONDARY}},shape:{borderRadius:x$}});const W$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=H$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),IP({...n,direction:e})}("ltr");e.render(Xs.jsx(Wn.StrictMode,{children:Xs.jsx(cA,{theme:p,children:Xs.jsx(iT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Xs.jsx(Aq,{selections:n,updatePageInfo:t.updatePageInfo,children:Xs.jsx(cT,{styleService:r,children:Xs.jsx(m$,{...t})})})})})}))},G$={darker:.15,brighter:.3,opacity:.03},V$={darker:.3,brighter:.5,opacity:.05};var U$,Y$,K$,X$;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(U$||(U$={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(Y$||(Y$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(K$||(K$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(X$||(X$={}));const Q$=e=>e?`${parseInt(e,10)}px`:void 0,J$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},Z$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),eB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",tB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",nB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function rB(t,n){return e.useMemo((()=>t),n)}const oB={},iB=t=>{const n=e.useMemo((()=>({current:oB})),[]);return n.current=n.current===oB?t:n.current,n},aB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,lB=(t,n,r)=>{var o,i,a;const l=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,s=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,u=null!==(a=1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue))&&void 0!==a&&a;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o})=>{var i,a,l;const{qHyperCube:s,nullValueRepresentation:u,snapshotData:c}=e,{qNoOfLeftDims:d,qEffectiveInterColumnSortOrder:p,qMeasureInfo:f,qDimensionInfo:m}=s,h=!!c,g=null!==(i=null==c||null===(a=c.content)||void 0===a?void 0:a.rowsPerPage)&&void 0!==i?i:15e3,v={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,g)},b=p.slice(0,d),y=e=>b.some((t=>t===e)),x=y(xT),S=new Map(p.map((e=>{var t;return[null!==(t=m[e])&&void 0!==t?t:xT,e]}))),E=f.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==u?void 0:u.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(x)return 0;const n=e%E.length;return t?n:f.findIndex((e=>e===E[n]))},getDimensionInfo:e=>e===xT?xT:m[e],getDimensionInfoIndex:e=>{var t;return null!==(t=S.get(e))&&void 0!==t?t:-1},size:v,isSnapshot:h,hasLimitedData:!h&&v.x<e.qHyperCube.qSize.qcx,hasData:v.x>0&&v.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:x,leftDimensionInfoIndexes:b,isLeftDimension:y,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:E,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(l=e.qHyperCube.indentModeColumnWidth)&&void 0!==l?l:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault},isSortedByFirstMeasure:o}})({layout:t,flags:n,qShowTotalsAbove:l,qAlwaysFullyExpanded:s,isSortedByFirstMeasure:u})),[t,l,s,u,n])},sB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=iB(e);return t.current=e,t})(lN(o));return Dk((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(yT,sN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},uB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),cB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:uB({rowsPerPage:n,totalRowCount:e,page:t})}),dB=15,pB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-dB,0),u=Math.max(l+o-dB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=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=sN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(yT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var fB={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const mB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(fB).forEach((t=>{e.add(fB[t])}))}}(t)),[t]),{translator:t,language:n}},hB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>XM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=iB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>xq()),[]),l=rB((e=>{r.current.add(e)}),[r]),s=rB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>Dk((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=lB(i,n,p),h=e.useSelections(),g=Ak(i,r),{translator:v,language:b}=mB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...cB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...cB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=uB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:uB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=pB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=sB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,M,I,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[U$.LineClamp])&&void 0!==i?i:oe(Y$.Grid,K$.Grid,X$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[U$.ColumnLineClamp])&&void 0!==l?l:oe(Y$.Grid,K$.Grid,X$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=J$(e,null==Q?void 0:Q[U$.Background]))&&void 0!==u?u:oe(Y$.Dimension,K$.LabelName,X$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Q$(null==Q?void 0:Q[U$.FontSize]))&&void 0!==d?d:oe(Y$.Dimension,K$.LabelName,X$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[U$.FontFamily])&&void 0!==f?f:oe(Y$.Dimension,K$.LabelName,X$.FontFamily))&&void 0!==p?p:vt,fontWeight:eB(null==Q?void 0:Q[U$.FontStyle],bt),fontStyle:tB(null==Q?void 0:Q[U$.FontStyle]),textDecoration:nB(null==Q?void 0:Q[U$.FontStyle]),color:null!==(m=null!==(h=J$(e,null==Q?void 0:Q[U$.FontColor]))&&void 0!==h?h:oe(Y$.Dimension,K$.LabelName,X$.Color))&&void 0!==m?m:EL.TEXT,background:le,hoverBackground:Ek(le,G$),activeBackground:Ek(le,V$)},dimensionValues:{fontSize:null!==(g=null!==(v=Q$(null==J?void 0:J[U$.FontSize]))&&void 0!==v?v:oe(Y$.Dimension,K$.LabelValue,X$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[U$.FontFamily])&&void 0!==y?y:oe(Y$.Dimension,K$.LabelValue,X$.FontFamily))&&void 0!==b?b:vt,fontWeight:eB(null==J?void 0:J[U$.FontStyle],void 0),fontStyle:tB(null==J?void 0:J[U$.FontStyle]),textDecoration:nB(null==J?void 0:J[U$.FontStyle]),color:null!==(x=null!==(S=J$(e,null==J?void 0:J[U$.FontColor]))&&void 0!==S?S:oe(Y$.Dimension,K$.LabelValue,X$.Color))&&void 0!==x?x:EL.TEXT,background:null!==(E=null!==(C=J$(e,null==J?void 0:J[U$.Background]))&&void 0!==C?C:oe(Y$.Dimension,K$.LabelValue,X$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Q$(null==Z?void 0:Z[U$.FontSize]))&&void 0!==R?R:oe(Y$.Measure,K$.LabelValue,X$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[U$.FontFamily])&&void 0!==k?k:oe(Y$.Measure,K$.LabelValue,X$.FontFamily))&&void 0!==L?L:vt,fontWeight:eB(null==Z?void 0:Z[U$.FontStyle],"normal"),fontStyle:tB(null==Z?void 0:Z[U$.FontStyle]),textDecoration:nB(null==Z?void 0:Z[U$.FontStyle]),color:null!==(M=null!==(I=J$(e,null==Z?void 0:Z[U$.FontColor]))&&void 0!==I?I:oe(Y$.Measure,K$.LabelValue,X$.Color))&&void 0!==M?M:Et.FontSecondary,background:null!==(_=null!==(P=J$(e,null==Z?void 0:Z[U$.Background]))&&void 0!==P?P:oe(Y$.Measure,K$.LabelValue,X$.BackgroundColor))&&void 0!==_?_:Et.Transparent},measureLabels:{fontWeight:eB(null==ee?void 0:ee[U$.FontStyle],"normal"),fontStyle:tB(null==ee?void 0:ee[U$.FontStyle]),textDecoration:nB(null==ee?void 0:ee[U$.FontStyle]),color:null!==(A=null!==(D=J$(e,null==ee?void 0:ee[U$.FontColor]))&&void 0!==D?D:oe(Y$.Measure,K$.LabelName,X$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=J$(e,null==ee?void 0:ee[U$.Background]))&&void 0!==O?O:oe(Y$.Measure,K$.LabelName,X$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:eB(null==te?void 0:te[U$.FontStyle],bt),fontStyle:tB(null==te?void 0:te[U$.FontStyle]),textDecoration:nB(null==te?void 0:te[U$.FontStyle]),color:null!==(N=null!==(q=J$(e,null==te?void 0:te[U$.FontColor]))&&void 0!==q?q:oe(Y$.Total,K$.LabelValue,X$.Color))&&void 0!==N?N:EL.TEXT,background:null!==(F=null!==(z=J$(e,null==te?void 0:te[U$.Background]))&&void 0!==z?z:oe(Y$.Total,K$.LabelValue,X$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:eB(null==ne?void 0:ne[U$.FontStyle],"normal"),fontStyle:tB(null==ne?void 0:ne[U$.FontStyle]),textDecoration:nB(null==ne?void 0:ne[U$.FontStyle]),color:null!==(j=null!==($=J$(e,null==ne?void 0:ne[U$.FontColor]))&&void 0!==$?$:oe(Y$.Null,K$.LabelValue,X$.Color))&&void 0!==j?j:EL.TEXT,background:null!==(B=null!==(H=J$(e,null==ne?void 0:ne[U$.Background]))&&void 0!==H?H:oe(Y$.Null,K$.LabelValue,X$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=J$(e,null==re?void 0:re[U$.Border]))&&void 0!==G?G:oe(Y$.Grid,K$.Grid,X$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=J$(e,null==re?void 0:re[U$.Divider]))&&void 0!==U?U:oe(Y$.Grid,K$.Divider,X$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=J$(e,null==re?void 0:re[U$.Background]))&&void 0!==K?K:oe(Y$.Grid,K$.Grid,X$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(Z$(se.header.fontSize,ae),Z$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(Z$(se.measureValues.fontSize,ie),Z$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=Z$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([aB(t.header),aB(t.dimensionValues),aB({...t.dimensionValues,...t.measureLabels}),aB({...t.dimensionValues,...t.nullValues}),aB({...t.dimensionValues,...t.totalValues}),aB(t.measureValues),aB({...t.measureValues,...t.nullValues}),aB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&rI(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&W$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},gB={version:"3.8.3",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},vB=e=>({...gB,qHyperCubeDef:{...gB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:vB(e)},data:Pe(e)},ext:Kt(e),component(){hB(e)}}}}));