@nebula.js/sn-bar-chart 1.35.16 → 1.35.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-bar-chart.js +3 -3
- package/dist/sn-bar-chart.systemjs.js +3 -3
- package/package.json +1 -1
- package/sn-bar-chart-ext/dist/sn-bar-chart.js +3 -3
- package/sn-bar-chart-ext/sn-bar-chart.qext +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-bar-chart v1.35.
|
|
2
|
+
* @nebula.js/sn-bar-chart v1.35.18
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -39,7 +39,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/function tI(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 nI=new Set,rI={};function iI(e,t){oI(e,t),oI(e+"Capture",t)}function oI(e,t){for(rI[e]=t,e=0;e<t.length;e++)nI.add(t[e])}var aI=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),sI=Object.prototype.hasOwnProperty,lI=/^[: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]*$/,uI={},cI={};function dI(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var fI={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fI[e]=new dI(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fI[t]=new dI(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fI[e]=new dI(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fI[e]=new dI(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){fI[e]=new dI(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fI[e]=new dI(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){fI[e]=new dI(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){fI[e]=new dI(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){fI[e]=new dI(e,5,!1,e.toLowerCase(),null,!1,!1)}));var hI=/[\-:]([a-z])/g;function pI(e){return e[1].toUpperCase()}function mI(e,t,n,r){var i=fI.hasOwnProperty(t)?fI[t]:null;(null!==i?0!==i.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,i,r)&&(n=null),r||null===i?function(e){return!!sI.call(cI,e)||!sI.call(uI,e)&&(lI.test(e)?cI[e]=!0:(uI[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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(hI,pI);fI[t]=new dI(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(hI,pI);fI[t]=new dI(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(hI,pI);fI[t]=new dI(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){fI[e]=new dI(e,1,!1,e.toLowerCase(),null,!1,!1)})),fI.xlinkHref=new dI("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){fI[e]=new dI(e,1,!1,e.toLowerCase(),null,!0,!0)}));var gI=ZL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yI=Symbol.for("react.element"),vI=Symbol.for("react.portal"),bI=Symbol.for("react.fragment"),xI=Symbol.for("react.strict_mode"),wI=Symbol.for("react.profiler"),SI=Symbol.for("react.provider"),MI=Symbol.for("react.context"),kI=Symbol.for("react.forward_ref"),CI=Symbol.for("react.suspense"),qI=Symbol.for("react.suspense_list"),EI=Symbol.for("react.memo"),DI=Symbol.for("react.lazy"),TI=Symbol.for("react.offscreen"),NI=Symbol.iterator;function OI(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=NI&&e[NI]||e["@@iterator"])?e:null}var AI,_I=Object.assign;function LI(e){if(void 0===AI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);AI=t&&t[1]||""}return"\n"+AI+e}var II=!1;function RI(e,t){if(!e||II)return"";II=!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 i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{II=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?LI(e):""}function PI(e){switch(e.tag){case 5:return LI(e.type);case 16:return LI("Lazy");case 13:return LI("Suspense");case 19:return LI("SuspenseList");case 0:case 2:case 15:return e=RI(e.type,!1);case 11:return e=RI(e.type.render,!1);case 1:return e=RI(e.type,!0);default:return""}}function zI(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 bI:return"Fragment";case vI:return"Portal";case wI:return"Profiler";case xI:return"StrictMode";case CI:return"Suspense";case qI:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case MI:return(e.displayName||"Context")+".Consumer";case SI:return(e._context.displayName||"Context")+".Provider";case kI:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case EI:return null!==(t=e.displayName||null)?t:zI(e.type)||"Memo";case DI:t=e._payload,e=e._init;try{return zI(e(t))}catch(e){}}return null}function FI(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 zI(t);case 8:return t===xI?"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 jI(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function BI(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function HI(e){e._valueTracker||(e._valueTracker=function(e){var t=BI(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 VI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=BI(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $I(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 WI(e,t){var n=t.checked;return _I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function UI(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=jI(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 YI(e,t){null!=(t=t.checked)&&mI(e,"checked",t,!1)}function KI(e,t){YI(e,t);var n=jI(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")?XI(e,t.type,n):t.hasOwnProperty("defaultValue")&&XI(e,t.type,jI(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function GI(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 XI(e,t,n){"number"===t&&$I(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var JI=Array.isArray;function QI(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jI(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ZI(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(tI(91));return _I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eR(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(tI(92));if(JI(n)){if(1<n.length)throw Error(tI(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:jI(n)}}function tR(e,t){var n=jI(t.value),r=jI(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 nR(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function rR(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 iR(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?rR(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var oR,aR=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((oR=oR||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function sR(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 lR={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},uR=["Webkit","ms","Moz","O"];function cR(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||lR.hasOwnProperty(e)&&lR[e]?(""+t).trim():t+"px"}function dR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=cR(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(lR).forEach((function(e){uR.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lR[t]=lR[e]}))}));var fR=_I({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 hR(e,t){if(t){if(fR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(tI(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(tI(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(tI(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(tI(62))}}function pR(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 mR=null;function gR(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yR=null,vR=null,bR=null;function xR(e){if(e=hj(e)){if("function"!=typeof yR)throw Error(tI(280));var t=e.stateNode;t&&(t=mj(t),yR(e.stateNode,e.type,t))}}function wR(e){vR?bR?bR.push(e):bR=[e]:vR=e}function SR(){if(vR){var e=vR,t=bR;if(bR=vR=null,xR(e),t)for(e=0;e<t.length;e++)xR(t[e])}}function MR(e,t){return e(t)}function kR(){}var CR=!1;function qR(e,t,n){if(CR)return e(t,n);CR=!0;try{return MR(e,t,n)}finally{CR=!1,(null!==vR||null!==bR)&&(kR(),SR())}}function ER(e,t){var n=e.stateNode;if(null===n)return null;var r=mj(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(tI(231,t,typeof n));return n}var DR=!1;if(aI)try{var TR={};Object.defineProperty(TR,"passive",{get:function(){DR=!0}}),window.addEventListener("test",TR,TR),window.removeEventListener("test",TR,TR)}catch(a5){DR=!1}function NR(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var OR=!1,AR=null,_R=!1,LR=null,IR={onError:function(e){OR=!0,AR=e}};function RR(e,t,n,r,i,o,a,s,l){OR=!1,AR=null,NR.apply(IR,arguments)}function PR(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function zR(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 FR(e){if(PR(e)!==e)throw Error(tI(188))}function jR(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=PR(e)))throw Error(tI(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return FR(i),e;if(o===r)return FR(i),t;o=o.sibling}throw Error(tI(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(tI(189))}}if(n.alternate!==r)throw Error(tI(190))}if(3!==n.tag)throw Error(tI(188));return n.stateNode.current===n?e:t}(e),null!==e?BR(e):null}function BR(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=BR(e);if(null!==t)return t;e=e.sibling}return null}var HR=eI.unstable_scheduleCallback,VR=eI.unstable_cancelCallback,$R=eI.unstable_shouldYield,WR=eI.unstable_requestPaint,UR=eI.unstable_now,YR=eI.unstable_getCurrentPriorityLevel,KR=eI.unstable_ImmediatePriority,GR=eI.unstable_UserBlockingPriority,XR=eI.unstable_NormalPriority,JR=eI.unstable_LowPriority,QR=eI.unstable_IdlePriority,ZR=null,eP=null;var tP=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(nP(e)/rP|0)|0},nP=Math.log,rP=Math.LN2;var iP=64,oP=4194304;function aP(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 sP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=aP(s):0!==(o&=a)&&(r=aP(o))}else 0!==(a=n&~i)?r=aP(a):0!==o&&(r=aP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-tP(t)),r|=e[n],t&=~i;return r}function lP(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 uP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function cP(){var e=iP;return 0==(4194240&(iP<<=1))&&(iP=64),e}function dP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tP(t)]=n}function hP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tP(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pP=0;function mP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var gP,yP,vP,bP,xP,wP=!1,SP=[],MP=null,kP=null,CP=null,qP=new Map,EP=new Map,DP=[],TP="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 NP(e,t){switch(e){case"focusin":case"focusout":MP=null;break;case"dragenter":case"dragleave":kP=null;break;case"mouseover":case"mouseout":CP=null;break;case"pointerover":case"pointerout":qP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":EP.delete(t.pointerId)}}function OP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=hj(t))&&yP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function AP(e){var t=fj(e.target);if(null!==t){var n=PR(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=zR(n)))return e.blockedOn=t,void xP(e.priority,(function(){vP(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 _P(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$P(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=hj(n))&&yP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);mR=r,n.target.dispatchEvent(r),mR=null,t.shift()}return!0}function LP(e,t,n){_P(e)&&n.delete(t)}function IP(){wP=!1,null!==MP&&_P(MP)&&(MP=null),null!==kP&&_P(kP)&&(kP=null),null!==CP&&_P(CP)&&(CP=null),qP.forEach(LP),EP.forEach(LP)}function RP(e,t){e.blockedOn===t&&(e.blockedOn=null,wP||(wP=!0,eI.unstable_scheduleCallback(eI.unstable_NormalPriority,IP)))}function PP(e){function t(t){return RP(t,e)}if(0<SP.length){RP(SP[0],e);for(var n=1;n<SP.length;n++){var r=SP[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==MP&&RP(MP,e),null!==kP&&RP(kP,e),null!==CP&&RP(CP,e),qP.forEach(t),EP.forEach(t),n=0;n<DP.length;n++)(r=DP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<DP.length&&null===(n=DP[0]).blockedOn;)AP(n),null===n.blockedOn&&DP.shift()}var zP=gI.ReactCurrentBatchConfig,FP=!0;function jP(e,t,n,r){var i=pP,o=zP.transition;zP.transition=null;try{pP=1,HP(e,t,n,r)}finally{pP=i,zP.transition=o}}function BP(e,t,n,r){var i=pP,o=zP.transition;zP.transition=null;try{pP=4,HP(e,t,n,r)}finally{pP=i,zP.transition=o}}function HP(e,t,n,r){if(FP){var i=$P(e,t,n,r);if(null===i)zF(e,t,r,VP,n),NP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return MP=OP(MP,e,t,n,r,i),!0;case"dragenter":return kP=OP(kP,e,t,n,r,i),!0;case"mouseover":return CP=OP(CP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return qP.set(o,OP(qP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,EP.set(o,OP(EP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(NP(e,r),4&t&&-1<TP.indexOf(e)){for(;null!==i;){var o=hj(i);if(null!==o&&gP(o),null===(o=$P(e,t,n,r))&&zF(e,t,r,VP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else zF(e,t,r,null,n)}}var VP=null;function $P(e,t,n,r){if(VP=null,null!==(e=fj(e=gR(r))))if(null===(t=PR(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=zR(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 VP=e,null}function WP(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(YR()){case KR:return 1;case GR:return 4;case XR:case JR:return 16;case QR:return 536870912;default:return 16}default:return 16}}var UP=null,YP=null,KP=null;function GP(){if(KP)return KP;var e,t,n=YP,r=n.length,i="value"in UP?UP.value:UP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return KP=i.slice(e,1<t?1-t:void 0)}function XP(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 JP(){return!0}function QP(){return!1}function ZP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?JP:QP,this.isPropagationStopped=QP,this}return _I(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=JP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=JP)},persist:function(){},isPersistent:JP}),t}var ez,tz,nz,rz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iz=ZP(rz),oz=_I({},rz,{view:0,detail:0}),az=ZP(oz),sz=_I({},oz,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bz,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!==nz&&(nz&&"mousemove"===e.type?(ez=e.screenX-nz.screenX,tz=e.screenY-nz.screenY):tz=ez=0,nz=e),ez)},movementY:function(e){return"movementY"in e?e.movementY:tz}}),lz=ZP(sz),uz=ZP(_I({},sz,{dataTransfer:0})),cz=ZP(_I({},oz,{relatedTarget:0})),dz=ZP(_I({},rz,{animationName:0,elapsedTime:0,pseudoElement:0})),fz=_I({},rz,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hz=ZP(fz),pz=ZP(_I({},rz,{data:0})),mz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gz={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"},yz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yz[e])&&!!t[e]}function bz(){return vz}var xz=_I({},oz,{key:function(e){if(e.key){var t=mz[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=XP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bz,charCode:function(e){return"keypress"===e.type?XP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?XP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wz=ZP(xz),Sz=ZP(_I({},sz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mz=ZP(_I({},oz,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bz})),kz=ZP(_I({},rz,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cz=_I({},sz,{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}),qz=ZP(Cz),Ez=[9,13,27,32],Dz=aI&&"CompositionEvent"in window,Tz=null;aI&&"documentMode"in document&&(Tz=document.documentMode);var Nz=aI&&"TextEvent"in window&&!Tz,Oz=aI&&(!Dz||Tz&&8<Tz&&11>=Tz),Az=String.fromCharCode(32),_z=!1;function Lz(e,t){switch(e){case"keyup":return-1!==Ez.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iz(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Rz=!1;var Pz={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 zz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pz[e.type]:"textarea"===t}function Fz(e,t,n,r){wR(r),0<(t=jF(t,"onChange")).length&&(n=new iz("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jz=null,Bz=null;function Hz(e){AF(e,0)}function Vz(e){if(VI(pj(e)))return e}function $z(e,t){if("change"===e)return t}var Wz=!1;if(aI){var Uz;if(aI){var Yz="oninput"in document;if(!Yz){var Kz=document.createElement("div");Kz.setAttribute("oninput","return;"),Yz="function"==typeof Kz.oninput}Uz=Yz}else Uz=!1;Wz=Uz&&(!document.documentMode||9<document.documentMode)}function Gz(){jz&&(jz.detachEvent("onpropertychange",Xz),Bz=jz=null)}function Xz(e){if("value"===e.propertyName&&Vz(Bz)){var t=[];Fz(t,Bz,e,gR(e)),qR(Hz,t)}}function Jz(e,t,n){"focusin"===e?(Gz(),Bz=n,(jz=t).attachEvent("onpropertychange",Xz)):"focusout"===e&&Gz()}function Qz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vz(Bz)}function Zz(e,t){if("click"===e)return Vz(t)}function eF(e,t){if("input"===e||"change"===e)return Vz(t)}var tF="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nF(e,t){if(tF(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 i=n[r];if(!sI.call(t,i)||!tF(e[i],t[i]))return!1}return!0}function rF(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iF(e,t){var n,r=rF(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=rF(r)}}function oF(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?oF(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function aF(){for(var e=window,t=$I();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$I((e=t.contentWindow).document)}return t}function sF(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 lF(e){var t=aF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oF(n.ownerDocument.documentElement,n)){if(null!==r&&sF(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 i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=iF(n,o);var a=iF(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>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 uF=aI&&"documentMode"in document&&11>=document.documentMode,cF=null,dF=null,fF=null,hF=!1;function pF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;hF||null==cF||cF!==$I(r)||("selectionStart"in(r=cF)&&sF(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},fF&&nF(fF,r)||(fF=r,0<(r=jF(dF,"onSelect")).length&&(t=new iz("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=cF)))}function mF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gF={animationend:mF("Animation","AnimationEnd"),animationiteration:mF("Animation","AnimationIteration"),animationstart:mF("Animation","AnimationStart"),transitionend:mF("Transition","TransitionEnd")},yF={},vF={};function bF(e){if(yF[e])return yF[e];if(!gF[e])return e;var t,n=gF[e];for(t in n)if(n.hasOwnProperty(t)&&t in vF)return yF[e]=n[t];return e}aI&&(vF=document.createElement("div").style,"AnimationEvent"in window||(delete gF.animationend.animation,delete gF.animationiteration.animation,delete gF.animationstart.animation),"TransitionEvent"in window||delete gF.transitionend.transition);var xF=bF("animationend"),wF=bF("animationiteration"),SF=bF("animationstart"),MF=bF("transitionend"),kF=new Map,CF="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 qF(e,t){kF.set(e,t),iI(t,[e])}for(var EF=0;EF<CF.length;EF++){var DF=CF[EF];qF(DF.toLowerCase(),"on"+(DF[0].toUpperCase()+DF.slice(1)))}qF(xF,"onAnimationEnd"),qF(wF,"onAnimationIteration"),qF(SF,"onAnimationStart"),qF("dblclick","onDoubleClick"),qF("focusin","onFocus"),qF("focusout","onBlur"),qF(MF,"onTransitionEnd"),oI("onMouseEnter",["mouseout","mouseover"]),oI("onMouseLeave",["mouseout","mouseover"]),oI("onPointerEnter",["pointerout","pointerover"]),oI("onPointerLeave",["pointerout","pointerover"]),iI("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),iI("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),iI("onBeforeInput",["compositionend","keypress","textInput","paste"]),iI("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),iI("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),iI("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var TF="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(" "),NF=new Set("cancel close invalid load scroll toggle".split(" ").concat(TF));function OF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(RR.apply(this,arguments),OR){if(!OR)throw Error(tI(198));var u=AR;OR=!1,AR=null,_R||(_R=!0,LR=u)}}(r,t,void 0,e),e.currentTarget=null}function AF(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;OF(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;OF(i,s,u),o=l}}}if(_R)throw e=LR,_R=!1,LR=null,e}function _F(e,t){var n=t[uj];void 0===n&&(n=t[uj]=new Set);var r=e+"__bubble";n.has(r)||(PF(t,e,2,!1),n.add(r))}function LF(e,t,n){var r=0;t&&(r|=4),PF(n,e,r,t)}var IF="_reactListening"+Math.random().toString(36).slice(2);function RF(e){if(!e[IF]){e[IF]=!0,nI.forEach((function(t){"selectionchange"!==t&&(NF.has(t)||LF(t,!1,e),LF(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[IF]||(t[IF]=!0,LF("selectionchange",!1,t))}}function PF(e,t,n,r){switch(WP(t)){case 1:var i=jP;break;case 4:i=BP;break;default:i=HP}n=i.bind(null,t,n,e),i=void 0,!DR||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zF(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=fj(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}qR((function(){var r=o,i=gR(n),a=[];e:{var s=kF.get(e);if(void 0!==s){var l=iz,u=e;switch(e){case"keypress":if(0===XP(n))break e;case"keydown":case"keyup":l=wz;break;case"focusin":u="focus",l=cz;break;case"focusout":u="blur",l=cz;break;case"beforeblur":case"afterblur":l=cz;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":l=lz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=uz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mz;break;case xF:case wF:case SF:l=dz;break;case MF:l=kz;break;case"scroll":l=az;break;case"wheel":l=qz;break;case"copy":case"cut":case"paste":l=hz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sz}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=ER(p,f))&&c.push(FF(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===mR||!(u=n.relatedTarget||n.fromElement)||!fj(u)&&!u[lj])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?fj(u):null)&&(u!==(d=PR(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=lz,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Sz,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:pj(l),h=null==u?s:pj(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,fj(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=BF(h))p++;for(h=0,m=f;m;m=BF(m))h++;for(;0<p-h;)c=BF(c),p--;for(;0<h-p;)f=BF(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=BF(c),f=BF(f)}c=null}else c=null;null!==l&&HF(a,s,l,c,!1),null!==u&&null!==d&&HF(a,d,u,c,!0)}if("select"===(l=(s=r?pj(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=$z;else if(zz(s))if(Wz)g=eF;else{g=Qz;var y=Jz}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Zz);switch(g&&(g=g(e,r))?Fz(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&XI(s,"number",s.value)),y=r?pj(r):window,e){case"focusin":(zz(y)||"true"===y.contentEditable)&&(cF=y,dF=r,fF=null);break;case"focusout":fF=dF=cF=null;break;case"mousedown":hF=!0;break;case"contextmenu":case"mouseup":case"dragend":hF=!1,pF(a,n,i);break;case"selectionchange":if(uF)break;case"keydown":case"keyup":pF(a,n,i)}var v;if(Dz)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Rz?Lz(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Oz&&"ko"!==n.locale&&(Rz||"onCompositionStart"!==b?"onCompositionEnd"===b&&Rz&&(v=GP()):(YP="value"in(UP=i)?UP.value:UP.textContent,Rz=!0)),0<(y=jF(r,b)).length&&(b=new pz(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Iz(n))&&(b.data=v))),(v=Nz?function(e,t){switch(e){case"compositionend":return Iz(t);case"keypress":return 32!==t.which?null:(_z=!0,Az);case"textInput":return(e=t.data)===Az&&_z?null:e;default:return null}}(e,n):function(e,t){if(Rz)return"compositionend"===e||!Dz&&Lz(e,t)?(e=GP(),KP=YP=UP=null,Rz=!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 Oz&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=jF(r,"onBeforeInput")).length&&(i=new pz("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}AF(a,t)}))}function FF(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jF(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ER(e,n))&&r.unshift(FF(e,o,i)),null!=(o=ER(e,t))&&r.push(FF(e,o,i))),e=e.return}return r}function BF(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function HF(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ER(n,o))&&a.unshift(FF(n,l,s)):i||null!=(l=ER(n,o))&&a.push(FF(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var VF=/\r\n?/g,$F=/\u0000|\uFFFD/g;function WF(e){return("string"==typeof e?e:""+e).replace(VF,"\n").replace($F,"")}function UF(e,t,n){if(t=WF(t),WF(e)!==t&&n)throw Error(tI(425))}function YF(){}var KF=null,GF=null;function XF(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 JF="function"==typeof setTimeout?setTimeout:void 0,QF="function"==typeof clearTimeout?clearTimeout:void 0,ZF="function"==typeof Promise?Promise:void 0,ej="function"==typeof queueMicrotask?queueMicrotask:void 0!==ZF?function(e){return ZF.resolve(null).then(e).catch(tj)}:JF;function tj(e){setTimeout((function(){throw e}))}function nj(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void PP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);PP(t)}function rj(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 ij(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 oj=Math.random().toString(36).slice(2),aj="__reactFiber$"+oj,sj="__reactProps$"+oj,lj="__reactContainer$"+oj,uj="__reactEvents$"+oj,cj="__reactListeners$"+oj,dj="__reactHandles$"+oj;function fj(e){var t=e[aj];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lj]||n[aj]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ij(e);null!==e;){if(n=e[aj])return n;e=ij(e)}return t}n=(e=n).parentNode}return null}function hj(e){return!(e=e[aj]||e[lj])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pj(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(tI(33))}function mj(e){return e[sj]||null}var gj=[],yj=-1;function vj(e){return{current:e}}function bj(e){0>yj||(e.current=gj[yj],gj[yj]=null,yj--)}function xj(e,t){yj++,gj[yj]=e.current,e.current=t}var wj={},Sj=vj(wj),Mj=vj(!1),kj=wj;function Cj(e,t){var n=e.type.contextTypes;if(!n)return wj;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qj(e){return null!=(e=e.childContextTypes)}function Ej(){bj(Mj),bj(Sj)}function Dj(e,t,n){if(Sj.current!==wj)throw Error(tI(168));xj(Sj,t),xj(Mj,n)}function Tj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(tI(108,FI(e)||"Unknown",i));return _I({},n,r)}function Nj(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wj,kj=Sj.current,xj(Sj,e),xj(Mj,Mj.current),!0}function Oj(e,t,n){var r=e.stateNode;if(!r)throw Error(tI(169));n?(e=Tj(e,t,kj),r.__reactInternalMemoizedMergedChildContext=e,bj(Mj),bj(Sj),xj(Sj,e)):bj(Mj),xj(Mj,n)}var Aj=null,_j=!1,Lj=!1;function Ij(e){null===Aj?Aj=[e]:Aj.push(e)}function Rj(){if(!Lj&&null!==Aj){Lj=!0;var e=0,t=pP;try{var n=Aj;for(pP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Aj=null,_j=!1}catch(t){throw null!==Aj&&(Aj=Aj.slice(e+1)),HR(KR,Rj),t}finally{pP=t,Lj=!1}}return null}var Pj=[],zj=0,Fj=null,jj=0,Bj=[],Hj=0,Vj=null,$j=1,Wj="";function Uj(e,t){Pj[zj++]=jj,Pj[zj++]=Fj,Fj=e,jj=t}function Yj(e,t,n){Bj[Hj++]=$j,Bj[Hj++]=Wj,Bj[Hj++]=Vj,Vj=e;var r=$j;e=Wj;var i=32-tP(r)-1;r&=~(1<<i),n+=1;var o=32-tP(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,$j=1<<32-tP(t)+i|n<<i|r,Wj=o+e}else $j=1<<o|n<<i|r,Wj=e}function Kj(e){null!==e.return&&(Uj(e,1),Yj(e,1,0))}function Gj(e){for(;e===Fj;)Fj=Pj[--zj],Pj[zj]=null,jj=Pj[--zj],Pj[zj]=null;for(;e===Vj;)Vj=Bj[--Hj],Bj[Hj]=null,Wj=Bj[--Hj],Bj[Hj]=null,$j=Bj[--Hj],Bj[Hj]=null}var Xj=null,Jj=null,Qj=!1,Zj=null;function eB(e,t){var n=CW(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 tB(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,Xj=e,Jj=rj(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Xj=e,Jj=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Vj?{id:$j,overflow:Wj}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=CW(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Xj=e,Jj=null,!0);default:return!1}}function nB(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function rB(e){if(Qj){var t=Jj;if(t){var n=t;if(!tB(e,t)){if(nB(e))throw Error(tI(418));t=rj(n.nextSibling);var r=Xj;t&&tB(e,t)?eB(r,n):(e.flags=-4097&e.flags|2,Qj=!1,Xj=e)}}else{if(nB(e))throw Error(tI(418));e.flags=-4097&e.flags|2,Qj=!1,Xj=e}}}function iB(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Xj=e}function oB(e){if(e!==Xj)return!1;if(!Qj)return iB(e),Qj=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!XF(e.type,e.memoizedProps)),t&&(t=Jj)){if(nB(e))throw aB(),Error(tI(418));for(;t;)eB(e,t),t=rj(t.nextSibling)}if(iB(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(tI(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Jj=rj(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Jj=null}}else Jj=Xj?rj(e.stateNode.nextSibling):null;return!0}function aB(){for(var e=Jj;e;)e=rj(e.nextSibling)}function sB(){Jj=Xj=null,Qj=!1}function lB(e){null===Zj?Zj=[e]:Zj.push(e)}var uB=gI.ReactCurrentBatchConfig;function cB(e,t){if(e&&e.defaultProps){for(var n in t=_I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var dB=vj(null),fB=null,hB=null,pB=null;function mB(){pB=hB=fB=null}function gB(e){var t=dB.current;bj(dB),e._currentValue=t}function yB(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 vB(e,t){fB=e,pB=hB=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(hV=!0),e.firstContext=null)}function bB(e){var t=e._currentValue;if(pB!==e)if(e={context:e,memoizedValue:t,next:null},null===hB){if(null===fB)throw Error(tI(308));hB=e,fB.dependencies={lanes:0,firstContext:e}}else hB=hB.next=e;return t}var xB=null;function wB(e){null===xB?xB=[e]:xB.push(e)}function SB(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,wB(t)):(n.next=i.next,i.next=n),t.interleaved=n,MB(e,r)}function MB(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 kB=!1;function CB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qB(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 EB(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function DB(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&S$)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,MB(e,n)}return null===(i=r.interleaved)?(t.next=t,wB(r)):(t.next=i.next,i.next=t),r.interleaved=t,MB(e,n)}function TB(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,hP(e,n)}}function NB(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=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===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function OB(e,t,n,r){var i=e.updateQueue;kB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=_I({},d,f);break e;case 2:kB=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);N$|=a,e.lanes=a,e.memoizedState=d}}function AB(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(tI(191,i));i.call(r)}}}var _B=(new ZL.Component).refs;function LB(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:_I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var IB={isMounted:function(e){return!!(e=e._reactInternals)&&PR(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=K$(),i=G$(e),o=EB(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=DB(e,o,i))&&(X$(t,e,i,r),TB(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=K$(),i=G$(e),o=EB(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=DB(e,o,i))&&(X$(t,e,i,r),TB(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=K$(),r=G$(e),i=EB(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=DB(e,i,r))&&(X$(t,e,r,n),TB(t,e,r))}};function RB(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!nF(n,r)||!nF(i,o))}function PB(e,t,n){var r=!1,i=wj,o=t.contextType;return"object"==typeof o&&null!==o?o=bB(o):(i=qj(t)?kj:Sj.current,o=(r=null!=(r=t.contextTypes))?Cj(e,i):wj),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=IB,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function zB(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&&IB.enqueueReplaceState(t,t.state,null)}function FB(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=_B,CB(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=bB(o):(o=qj(t)?kj:Sj.current,i.context=Cj(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(LB(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&IB.enqueueReplaceState(i,i.state,null),OB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function jB(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(tI(309));var r=n.stateNode}if(!r)throw Error(tI(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===_B&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(tI(284));if(!n._owner)throw Error(tI(290,e))}return e}function BB(e,t){throw e=Object.prototype.toString.call(t),Error(tI(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function HB(e){return(0,e._init)(e._payload)}function VB(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 i(e,t){return(e=EW(e,t)).index=0,e.sibling=null,e}function o(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 s(e,t,n,r){return null===t||6!==t.tag?((t=OW(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===bI?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===DI&&HB(o)===t.type)?((r=i(t,n.props)).ref=jB(e,t,n),r.return=e,r):((r=DW(n.type,n.key,n.props,null,e.mode,r)).ref=jB(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=AW(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=TW(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=OW(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case yI:return(n=DW(t.type,t.key,t.props,null,e.mode,n)).ref=jB(e,null,t),n.return=e,n;case vI:return(t=AW(t,e.mode,n)).return=e,t;case DI:return d(e,(0,t._init)(t._payload),n)}if(JI(t)||OI(t))return(t=TW(t,e.mode,n,null)).return=e,t;BB(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case yI:return n.key===i?l(e,t,n,r):null;case vI:return n.key===i?u(e,t,n,r):null;case DI:return f(e,t,(i=n._init)(n._payload),r)}if(JI(n)||OI(n))return null!==i?null:c(e,t,n,r,null);BB(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case yI:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case vI:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case DI:return h(e,t,n,(0,r._init)(r._payload),i)}if(JI(r)||OI(r))return c(t,e=e.get(n)||null,r,i,null);BB(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===s.length)return n(i,p),Qj&&Uj(i,m),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return Qj&&Uj(i,m),u}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),Qj&&Uj(i,m),u}function m(i,a,s,l){var u=OI(s);if("function"!=typeof u)throw Error(tI(150));if(null==(s=u.call(s)))throw Error(tI(151));for(var c=u=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=g}if(y.done)return n(i,p),Qj&&Uj(i,m),u;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return Qj&&Uj(i,m),u}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),Qj&&Uj(i,m),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===bI&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case yI:e:{for(var u=s.key,c=o;null!==c;){if(c.key===u){if((u=s.type)===bI){if(7===c.tag){n(r,c.sibling),(o=i(c,s.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===DI&&HB(u)===c.type){n(r,c.sibling),(o=i(c,s.props)).ref=jB(r,c,s),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===bI?((o=TW(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=DW(s.type,s.key,s.props,null,r.mode,l)).ref=jB(r,o,s),l.return=r,r=l)}return a(r);case vI:e:{for(c=s.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=AW(s,r.mode,l)).return=r,r=o}return a(r);case DI:return e(r,o,(c=s._init)(s._payload),l)}if(JI(s))return p(r,o,s,l);if(OI(s))return m(r,o,s,l);BB(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=OW(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var $B=VB(!0),WB=VB(!1),UB={},YB=vj(UB),KB=vj(UB),GB=vj(UB);function XB(e){if(e===UB)throw Error(tI(174));return e}function JB(e,t){switch(xj(GB,t),xj(KB,e),xj(YB,UB),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:iR(null,"");break;default:t=iR(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}bj(YB),xj(YB,t)}function QB(){bj(YB),bj(KB),bj(GB)}function ZB(e){XB(GB.current);var t=XB(YB.current),n=iR(t,e.type);t!==n&&(xj(KB,e),xj(YB,n))}function eH(e){KB.current===e&&(bj(YB),bj(KB))}var tH=vj(0);function nH(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(0!=(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 rH=[];function iH(){for(var e=0;e<rH.length;e++)rH[e]._workInProgressVersionPrimary=null;rH.length=0}var oH=gI.ReactCurrentDispatcher,aH=gI.ReactCurrentBatchConfig,sH=0,lH=null,uH=null,cH=null,dH=!1,fH=!1,hH=0,pH=0;function mH(){throw Error(tI(321))}function gH(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tF(e[n],t[n]))return!1;return!0}function yH(e,t,n,r,i,o){if(sH=o,lH=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oH.current=null===e||null===e.memoizedState?eV:tV,e=n(r,i),fH){o=0;do{if(fH=!1,hH=0,25<=o)throw Error(tI(301));o+=1,cH=uH=null,t.updateQueue=null,oH.current=nV,e=n(r,i)}while(fH)}if(oH.current=ZH,t=null!==uH&&null!==uH.next,sH=0,cH=uH=lH=null,dH=!1,t)throw Error(tI(300));return e}function vH(){var e=0!==hH;return hH=0,e}function bH(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cH?lH.memoizedState=cH=e:cH=cH.next=e,cH}function xH(){if(null===uH){var e=lH.alternate;e=null!==e?e.memoizedState:null}else e=uH.next;var t=null===cH?lH.memoizedState:cH.next;if(null!==t)cH=t,uH=e;else{if(null===e)throw Error(tI(310));e={memoizedState:(uH=e).memoizedState,baseState:uH.baseState,baseQueue:uH.baseQueue,queue:uH.queue,next:null},null===cH?lH.memoizedState=cH=e:cH=cH.next=e}return cH}function wH(e,t){return"function"==typeof t?t(e):t}function SH(e){var t=xH(),n=t.queue;if(null===n)throw Error(tI(311));n.lastRenderedReducer=e;var r=uH,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((sH&c)===c)null!==l&&(l=l.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===l?(s=l=d,a=r):l=l.next=d,lH.lanes|=c,N$|=c}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=s,tF(r,t.memoizedState)||(hV=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,lH.lanes|=o,N$|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function MH(e){var t=xH(),n=t.queue;if(null===n)throw Error(tI(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);tF(o,t.memoizedState)||(hV=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function kH(){}function CH(e,t){var n=lH,r=xH(),i=t(),o=!tF(r.memoizedState,i);if(o&&(r.memoizedState=i,hV=!0),r=r.queue,PH(DH.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==cH&&1&cH.memoizedState.tag){if(n.flags|=2048,AH(9,EH.bind(null,n,r,i,t),void 0,null),null===M$)throw Error(tI(349));0!=(30&sH)||qH(n,t,i)}return i}function qH(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=lH.updateQueue)?(t={lastEffect:null,stores:null},lH.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function EH(e,t,n,r){t.value=n,t.getSnapshot=r,TH(t)&&NH(e)}function DH(e,t,n){return n((function(){TH(t)&&NH(e)}))}function TH(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tF(e,n)}catch(e){return!0}}function NH(e){var t=MB(e,1);null!==t&&X$(t,e,1,-1)}function OH(e){var t=bH();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wH,lastRenderedState:e},t.queue=e,e=e.dispatch=GH.bind(null,lH,e),[t.memoizedState,e]}function AH(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=lH.updateQueue)?(t={lastEffect:null,stores:null},lH.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 _H(){return xH().memoizedState}function LH(e,t,n,r){var i=bH();lH.flags|=e,i.memoizedState=AH(1|t,n,void 0,void 0===r?null:r)}function IH(e,t,n,r){var i=xH();r=void 0===r?null:r;var o=void 0;if(null!==uH){var a=uH.memoizedState;if(o=a.destroy,null!==r&&gH(r,a.deps))return void(i.memoizedState=AH(t,n,o,r))}lH.flags|=e,i.memoizedState=AH(1|t,n,o,r)}function RH(e,t){return LH(8390656,8,e,t)}function PH(e,t){return IH(2048,8,e,t)}function zH(e,t){return IH(4,2,e,t)}function FH(e,t){return IH(4,4,e,t)}function jH(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 BH(e,t,n){return n=null!=n?n.concat([e]):null,IH(4,4,jH.bind(null,t,e),n)}function HH(){}function VH(e,t){var n=xH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gH(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $H(e,t){var n=xH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gH(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function WH(e,t,n){return 0==(21&sH)?(e.baseState&&(e.baseState=!1,hV=!0),e.memoizedState=n):(tF(n,t)||(n=cP(),lH.lanes|=n,N$|=n,e.baseState=!0),t)}function UH(e,t){var n=pP;pP=0!==n&&4>n?n:4,e(!0);var r=aH.transition;aH.transition={};try{e(!1),t()}finally{pP=n,aH.transition=r}}function YH(){return xH().memoizedState}function KH(e,t,n){var r=G$(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},XH(e))JH(t,n);else if(null!==(n=SB(e,t,n,r))){X$(n,e,r,K$()),QH(n,t,r)}}function GH(e,t,n){var r=G$(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(XH(e))JH(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,tF(s,a)){var l=t.interleaved;return null===l?(i.next=i,wB(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=SB(e,t,i,r))&&(X$(n,e,r,i=K$()),QH(n,t,r))}}function XH(e){var t=e.alternate;return e===lH||null!==t&&t===lH}function JH(e,t){fH=dH=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QH(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,hP(e,n)}}var ZH={readContext:bB,useCallback:mH,useContext:mH,useEffect:mH,useImperativeHandle:mH,useInsertionEffect:mH,useLayoutEffect:mH,useMemo:mH,useReducer:mH,useRef:mH,useState:mH,useDebugValue:mH,useDeferredValue:mH,useTransition:mH,useMutableSource:mH,useSyncExternalStore:mH,useId:mH,unstable_isNewReconciler:!1},eV={readContext:bB,useCallback:function(e,t){return bH().memoizedState=[e,void 0===t?null:t],e},useContext:bB,useEffect:RH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,LH(4194308,4,jH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return LH(4194308,4,e,t)},useInsertionEffect:function(e,t){return LH(4,2,e,t)},useMemo:function(e,t){var n=bH();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bH();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=KH.bind(null,lH,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bH().memoizedState=e},useState:OH,useDebugValue:HH,useDeferredValue:function(e){return bH().memoizedState=e},useTransition:function(){var e=OH(!1),t=e[0];return e=UH.bind(null,e[1]),bH().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lH,i=bH();if(Qj){if(void 0===n)throw Error(tI(407));n=n()}else{if(n=t(),null===M$)throw Error(tI(349));0!=(30&sH)||qH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,RH(DH.bind(null,r,o,e),[e]),r.flags|=2048,AH(9,EH.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=bH(),t=M$.identifierPrefix;if(Qj){var n=Wj;t=":"+t+"R"+(n=($j&~(1<<32-tP($j)-1)).toString(32)+n),0<(n=hH++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pH++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tV={readContext:bB,useCallback:VH,useContext:bB,useEffect:PH,useImperativeHandle:BH,useInsertionEffect:zH,useLayoutEffect:FH,useMemo:$H,useReducer:SH,useRef:_H,useState:function(){return SH(wH)},useDebugValue:HH,useDeferredValue:function(e){return WH(xH(),uH.memoizedState,e)},useTransition:function(){return[SH(wH)[0],xH().memoizedState]},useMutableSource:kH,useSyncExternalStore:CH,useId:YH,unstable_isNewReconciler:!1},nV={readContext:bB,useCallback:VH,useContext:bB,useEffect:PH,useImperativeHandle:BH,useInsertionEffect:zH,useLayoutEffect:FH,useMemo:$H,useReducer:MH,useRef:_H,useState:function(){return MH(wH)},useDebugValue:HH,useDeferredValue:function(e){var t=xH();return null===uH?t.memoizedState=e:WH(t,uH.memoizedState,e)},useTransition:function(){return[MH(wH)[0],xH().memoizedState]},useMutableSource:kH,useSyncExternalStore:CH,useId:YH,unstable_isNewReconciler:!1};function rV(e,t){try{var n="",r=t;do{n+=PI(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function iV(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function oV(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var aV="function"==typeof WeakMap?WeakMap:Map;function sV(e,t,n){(n=EB(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){z$||(z$=!0,F$=r),oV(0,t)},n}function lV(e,t,n){(n=EB(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){oV(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){oV(0,t),"function"!=typeof r&&(null===j$?j$=new Set([this]):j$.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function uV(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new aV;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=bW.bind(null,e,t,n),t.then(e,e))}function cV(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 dV(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=EB(-1,1)).tag=2,DB(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var fV=gI.ReactCurrentOwner,hV=!1;function pV(e,t,n,r){t.child=null===e?WB(t,null,n,r):$B(t,e.child,n,r)}function mV(e,t,n,r,i){n=n.render;var o=t.ref;return vB(t,i),r=yH(e,t,n,r,o,i),n=vH(),null===e||hV?(Qj&&n&&Kj(t),t.flags|=1,pV(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zV(e,t,i))}function gV(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||qW(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=DW(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,yV(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:nF)(a,r)&&e.ref===t.ref)return zV(e,t,i)}return t.flags|=1,(e=EW(o,r)).ref=t.ref,e.return=t,t.child=e}function yV(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(nF(o,r)&&e.ref===t.ref){if(hV=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,zV(e,t,i);0!=(131072&e.flags)&&(hV=!0)}}return xV(e,t,n,r,i)}function vV(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xj(E$,q$),q$|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xj(E$,q$),q$|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xj(E$,q$),q$|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xj(E$,q$),q$|=r;return pV(e,t,i,n),t.child}function bV(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xV(e,t,n,r,i){var o=qj(n)?kj:Sj.current;return o=Cj(t,o),vB(t,i),n=yH(e,t,n,r,o,i),r=vH(),null===e||hV?(Qj&&r&&Kj(t),t.flags|=1,pV(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zV(e,t,i))}function wV(e,t,n,r,i){if(qj(n)){var o=!0;Nj(t)}else o=!1;if(vB(t,i),null===t.stateNode)PV(e,t),PB(t,n,r),FB(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=bB(u):u=Cj(t,u=qj(n)?kj:Sj.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&zB(t,a,r,u),kB=!1;var f=t.memoizedState;a.state=f,OB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Mj.current||kB?("function"==typeof c&&(LB(t,n,c,r),l=t.memoizedState),(s=kB||RB(t,n,s,r,f,l,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=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,qB(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:cB(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=bB(l):l=Cj(t,l=qj(n)?kj:Sj.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&zB(t,a,r,l),kB=!1,f=t.memoizedState,a.state=f,OB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Mj.current||kB?("function"==typeof h&&(LB(t,n,h,r),p=t.memoizedState),(u=kB||RB(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return SV(e,t,n,r,o,i)}function SV(e,t,n,r,i,o){bV(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Oj(t,n,!1),zV(e,t,o);r=t.stateNode,fV.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=$B(t,e.child,null,o),t.child=$B(t,null,s,o)):pV(e,t,s,o),t.memoizedState=r.state,i&&Oj(t,n,!0),t.child}function MV(e){var t=e.stateNode;t.pendingContext?Dj(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Dj(0,t.context,!1),JB(e,t.containerInfo)}function kV(e,t,n,r,i){return sB(),lB(i),t.flags|=256,pV(e,t,n,r),t.child}var CV,qV,EV,DV,TV={dehydrated:null,treeContext:null,retryLane:0};function NV(e){return{baseLanes:e,cachePool:null,transitions:null}}function OV(e,t,n){var r,i=t.pendingProps,o=tH.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),xj(tH,1&o),null===e)return rB(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=NW(s,i,0,null),e=TW(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=NV(n),t.memoizedState=TV,e):AV(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,_V(e,t,a,r=iV(Error(tI(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=NW({mode:"visible",children:r.children},i,0,null),(o=TW(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&$B(t,e.child,null,a),t.child.memoizedState=NV(a),t.memoizedState=TV,o);if(0==(1&t.mode))return _V(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,_V(e,t,a,r=iV(o=Error(tI(419)),r,void 0))}if(s=0!=(a&e.childLanes),hV||s){if(null!==(r=M$)){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,MB(e,i),X$(r,e,i,-1))}return uW(),_V(e,t,a,r=iV(Error(tI(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=wW.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Jj=rj(i.nextSibling),Xj=t,Qj=!0,Zj=null,null!==e&&(Bj[Hj++]=$j,Bj[Hj++]=Wj,Bj[Hj++]=Vj,$j=e.id,Wj=e.overflow,Vj=t),t=AV(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=EW(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=EW(r,a):(a=TW(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?NV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=TV,i}return e=(a=e.child).sibling,i=EW(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function AV(e,t){return(t=NW({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _V(e,t,n,r){return null!==r&&lB(r),$B(t,e.child,null,n),(e=AV(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function LV(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),yB(e.return,t,n)}function IV(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function RV(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(pV(e,t,r.children,n),0!=(2&(r=tH.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&LV(e,n,t);else if(19===e.tag)LV(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(xj(tH,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===nH(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),IV(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===nH(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}IV(t,!0,n,null,o);break;case"together":IV(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function PV(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zV(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),N$|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(tI(153));if(null!==t.child){for(n=EW(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=EW(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function FV(e,t){if(!Qj)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 jV(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function BV(e,t,n){var r=t.pendingProps;switch(Gj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jV(t),null;case 1:case 17:return qj(t.type)&&Ej(),jV(t),null;case 3:return r=t.stateNode,QB(),bj(Mj),bj(Sj),iH(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(oB(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Zj&&(eW(Zj),Zj=null))),qV(e,t),jV(t),null;case 5:eH(t);var i=XB(GB.current);if(n=t.type,null!==e&&null!=t.stateNode)EV(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(tI(166));return jV(t),null}if(e=XB(YB.current),oB(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[aj]=t,r[sj]=o,e=0!=(1&t.mode),n){case"dialog":_F("cancel",r),_F("close",r);break;case"iframe":case"object":case"embed":_F("load",r);break;case"video":case"audio":for(i=0;i<TF.length;i++)_F(TF[i],r);break;case"source":_F("error",r);break;case"img":case"image":case"link":_F("error",r),_F("load",r);break;case"details":_F("toggle",r);break;case"input":UI(r,o),_F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},_F("invalid",r);break;case"textarea":eR(r,o),_F("invalid",r)}for(var a in hR(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&UF(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&UF(r.textContent,s,e),i=["children",""+s]):rI.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&_F("scroll",r)}switch(n){case"input":HI(r),GI(r,o,!0);break;case"textarea":HI(r),nR(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=YF)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=rR(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[aj]=t,e[sj]=r,CV(e,t,!1,!1),t.stateNode=e;e:{switch(a=pR(n,r),n){case"dialog":_F("cancel",e),_F("close",e),i=r;break;case"iframe":case"object":case"embed":_F("load",e),i=r;break;case"video":case"audio":for(i=0;i<TF.length;i++)_F(TF[i],e);i=r;break;case"source":_F("error",e),i=r;break;case"img":case"image":case"link":_F("error",e),_F("load",e),i=r;break;case"details":_F("toggle",e),i=r;break;case"input":UI(e,r),i=WI(e,r),_F("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=_I({},r,{value:void 0}),_F("invalid",e);break;case"textarea":eR(e,r),i=ZI(e,r),_F("invalid",e)}for(o in hR(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?dR(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&aR(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&sR(e,l):"number"==typeof l&&sR(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(rI.hasOwnProperty(o)?null!=l&&"onScroll"===o&&_F("scroll",e):null!=l&&mI(e,o,l,a))}switch(n){case"input":HI(e),GI(e,r,!1);break;case"textarea":HI(e),nR(e);break;case"option":null!=r.value&&e.setAttribute("value",""+jI(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?QI(e,!!r.multiple,o,!1):null!=r.defaultValue&&QI(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=YF)}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 jV(t),null;case 6:if(e&&null!=t.stateNode)DV(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(tI(166));if(n=XB(GB.current),XB(YB.current),oB(t)){if(r=t.stateNode,n=t.memoizedProps,r[aj]=t,(o=r.nodeValue!==n)&&null!==(e=Xj))switch(e.tag){case 3:UF(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&UF(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[aj]=t,t.stateNode=r}return jV(t),null;case 13:if(bj(tH),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Qj&&null!==Jj&&0!=(1&t.mode)&&0==(128&t.flags))aB(),sB(),t.flags|=98560,o=!1;else if(o=oB(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(tI(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(tI(317));o[aj]=t}else sB(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;jV(t),o=!1}else null!==Zj&&(eW(Zj),Zj=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&tH.current)?0===D$&&(D$=3):uW())),null!==t.updateQueue&&(t.flags|=4),jV(t),null);case 4:return QB(),qV(e,t),null===e&&RF(t.stateNode.containerInfo),jV(t),null;case 10:return gB(t.type._context),jV(t),null;case 19:if(bj(tH),null===(o=t.memoizedState))return jV(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)FV(o,!1);else{if(0!==D$||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=nH(e))){for(t.flags|=128,FV(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xj(tH,1&tH.current|2),t.child}e=e.sibling}null!==o.tail&&UR()>R$&&(t.flags|=128,r=!0,FV(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=nH(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),FV(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Qj)return jV(t),null}else 2*UR()-o.renderingStartTime>R$&&1073741824!==n&&(t.flags|=128,r=!0,FV(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=UR(),t.sibling=null,n=tH.current,xj(tH,r?1&n|2:1&n),t):(jV(t),null);case 22:case 23:return oW(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&q$)&&(jV(t),6&t.subtreeFlags&&(t.flags|=8192)):jV(t),null;case 24:case 25:return null}throw Error(tI(156,t.tag))}function HV(e,t){switch(Gj(t),t.tag){case 1:return qj(t.type)&&Ej(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return QB(),bj(Mj),bj(Sj),iH(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return eH(t),null;case 13:if(bj(tH),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(tI(340));sB()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return bj(tH),null;case 4:return QB(),null;case 10:return gB(t.type._context),null;case 22:case 23:return oW(),null;default:return null}}CV=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}},qV=function(){},EV=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,XB(YB.current);var o,a=null;switch(n){case"input":i=WI(e,i),r=WI(e,r),a=[];break;case"select":i=_I({},i,{value:void 0}),r=_I({},r,{value:void 0}),a=[];break;case"textarea":i=ZI(e,i),r=ZI(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=YF)}for(u in hR(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(rI.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(rI.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&_F("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},DV=function(e,t,n,r){n!==r&&(t.flags|=4)};var VV=!1,$V=!1,WV="function"==typeof WeakSet?WeakSet:Set,UV=null;function YV(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){vW(e,t,n)}else n.current=null}function KV(e,t,n){try{n()}catch(n){vW(e,t,n)}}var GV=!1;function XV(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&KV(t,n,o)}i=i.next}while(i!==r)}}function JV(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 QV(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 ZV(e){var t=e.alternate;null!==t&&(e.alternate=null,ZV(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[aj],delete t[sj],delete t[uj],delete t[cj],delete t[dj])),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 e$(e){return 5===e.tag||3===e.tag||4===e.tag}function t$(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||e$(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 n$(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=YF));else if(4!==r&&null!==(e=e.child))for(n$(e,t,n),e=e.sibling;null!==e;)n$(e,t,n),e=e.sibling}function r$(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(r$(e,t,n),e=e.sibling;null!==e;)r$(e,t,n),e=e.sibling}var i$=null,o$=!1;function a$(e,t,n){for(n=n.child;null!==n;)s$(e,t,n),n=n.sibling}function s$(e,t,n){if(eP&&"function"==typeof eP.onCommitFiberUnmount)try{eP.onCommitFiberUnmount(ZR,n)}catch(e){}switch(n.tag){case 5:$V||YV(n,t);case 6:var r=i$,i=o$;i$=null,a$(e,t,n),o$=i,null!==(i$=r)&&(o$?(e=i$,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):i$.removeChild(n.stateNode));break;case 18:null!==i$&&(o$?(e=i$,n=n.stateNode,8===e.nodeType?nj(e.parentNode,n):1===e.nodeType&&nj(e,n),PP(e)):nj(i$,n.stateNode));break;case 4:r=i$,i=o$,i$=n.stateNode.containerInfo,o$=!0,a$(e,t,n),i$=r,o$=i;break;case 0:case 11:case 14:case 15:if(!$V&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&KV(n,t,a),i=i.next}while(i!==r)}a$(e,t,n);break;case 1:if(!$V&&(YV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){vW(n,t,e)}a$(e,t,n);break;case 21:a$(e,t,n);break;case 22:1&n.mode?($V=(r=$V)||null!==n.memoizedState,a$(e,t,n),$V=r):a$(e,t,n);break;default:a$(e,t,n)}}function l$(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new WV),t.forEach((function(t){var r=SW.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function u$(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:i$=s.stateNode,o$=!1;break e;case 3:case 4:i$=s.stateNode.containerInfo,o$=!0;break e}s=s.return}if(null===i$)throw Error(tI(160));s$(o,a,i),i$=null,o$=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){vW(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)c$(t,e),t=t.sibling}function c$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(u$(t,e),d$(e),4&r){try{XV(3,e,e.return),JV(3,e)}catch(t){vW(e,e.return,t)}try{XV(5,e,e.return)}catch(t){vW(e,e.return,t)}}break;case 1:u$(t,e),d$(e),512&r&&null!==n&&YV(n,n.return);break;case 5:if(u$(t,e),d$(e),512&r&&null!==n&&YV(n,n.return),32&e.flags){var i=e.stateNode;try{sR(i,"")}catch(t){vW(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&YI(i,o),pR(s,a);var u=pR(s,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?dR(i,d):"dangerouslySetInnerHTML"===c?aR(i,d):"children"===c?sR(i,d):mI(i,c,d,u)}switch(s){case"input":KI(i,o);break;case"textarea":tR(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?QI(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?QI(i,!!o.multiple,o.defaultValue,!0):QI(i,!!o.multiple,o.multiple?[]:"",!1))}i[sj]=o}catch(t){vW(e,e.return,t)}}break;case 6:if(u$(t,e),d$(e),4&r){if(null===e.stateNode)throw Error(tI(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){vW(e,e.return,t)}}break;case 3:if(u$(t,e),d$(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{PP(t.containerInfo)}catch(t){vW(e,e.return,t)}break;case 4:default:u$(t,e),d$(e);break;case 13:u$(t,e),d$(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(I$=UR())),4&r&&l$(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?($V=(u=$V)||c,u$(t,e),$V=u):u$(t,e),d$(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(UV=e,c=e.child;null!==c;){for(d=UV=c;null!==UV;){switch(h=(f=UV).child,f.tag){case 0:case 11:case 14:case 15:XV(4,f,f.return);break;case 1:YV(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){vW(r,n,e)}}break;case 5:YV(f,f.return);break;case 22:if(null!==f.memoizedState){m$(d);continue}}null!==h?(h.return=f,UV=h):m$(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=cR("display",a))}catch(t){vW(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){vW(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:u$(t,e),d$(e),4&r&&l$(e);case 21:}}function d$(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(e$(n)){var r=n;break e}n=n.return}throw Error(tI(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(sR(i,""),r.flags&=-33),r$(e,t$(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;n$(e,t$(e),o);break;default:throw Error(tI(161))}}catch(t){vW(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function f$(e,t,n){UV=e,h$(e)}function h$(e,t,n){for(var r=0!=(1&e.mode);null!==UV;){var i=UV,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||VV;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||$V;s=VV;var u=$V;if(VV=a,($V=l)&&!u)for(UV=i;null!==UV;)l=(a=UV).child,22===a.tag&&null!==a.memoizedState?g$(i):null!==l?(l.return=a,UV=l):g$(i);for(;null!==o;)UV=o,h$(o),o=o.sibling;UV=i,VV=s,$V=u}p$(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,UV=o):p$(e)}}function p$(e){for(;null!==UV;){var t=UV;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$V||JV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$V)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:cB(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&AB(t,o,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}AB(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.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&&PP(d)}}}break;default:throw Error(tI(163))}$V||512&t.flags&&QV(t)}catch(e){vW(t,t.return,e)}}if(t===e){UV=null;break}if(null!==(n=t.sibling)){n.return=t.return,UV=n;break}UV=t.return}}function m$(e){for(;null!==UV;){var t=UV;if(t===e){UV=null;break}var n=t.sibling;if(null!==n){n.return=t.return,UV=n;break}UV=t.return}}function g$(e){for(;null!==UV;){var t=UV;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{JV(4,t)}catch(e){vW(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){vW(t,i,e)}}var o=t.return;try{QV(t)}catch(e){vW(t,o,e)}break;case 5:var a=t.return;try{QV(t)}catch(e){vW(t,a,e)}}}catch(e){vW(t,t.return,e)}if(t===e){UV=null;break}var s=t.sibling;if(null!==s){s.return=t.return,UV=s;break}UV=t.return}}var y$,v$=Math.ceil,b$=gI.ReactCurrentDispatcher,x$=gI.ReactCurrentOwner,w$=gI.ReactCurrentBatchConfig,S$=0,M$=null,k$=null,C$=0,q$=0,E$=vj(0),D$=0,T$=null,N$=0,O$=0,A$=0,_$=null,L$=null,I$=0,R$=1/0,P$=null,z$=!1,F$=null,j$=null,B$=!1,H$=null,V$=0,$$=0,W$=null,U$=-1,Y$=0;function K$(){return 0!=(6&S$)?UR():-1!==U$?U$:U$=UR()}function G$(e){return 0==(1&e.mode)?1:0!=(2&S$)&&0!==C$?C$&-C$:null!==uB.transition?(0===Y$&&(Y$=cP()),Y$):0!==(e=pP)?e:e=void 0===(e=window.event)?16:WP(e.type)}function X$(e,t,n,r){if(50<$$)throw $$=0,W$=null,Error(tI(185));fP(e,n,r),0!=(2&S$)&&e===M$||(e===M$&&(0==(2&S$)&&(O$|=n),4===D$&&tW(e,C$)),J$(e,r),1===n&&0===S$&&0==(1&t.mode)&&(R$=UR()+500,_j&&Rj()))}function J$(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-tP(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=lP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=sP(e,e===M$?C$:0);if(0===r)null!==n&&VR(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&VR(n),1===t)0===e.tag?function(e){_j=!0,Ij(e)}(nW.bind(null,e)):Ij(nW.bind(null,e)),ej((function(){0==(6&S$)&&Rj()})),n=null;else{switch(mP(r)){case 1:n=KR;break;case 4:n=GR;break;case 16:default:n=XR;break;case 536870912:n=QR}n=MW(n,Q$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Q$(e,t){if(U$=-1,Y$=0,0!=(6&S$))throw Error(tI(327));var n=e.callbackNode;if(gW()&&e.callbackNode!==n)return null;var r=sP(e,e===M$?C$:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=cW(e,r);else{t=r;var i=S$;S$|=2;var o=lW();for(M$===e&&C$===t||(P$=null,R$=UR()+500,aW(e,t));;)try{fW();break}catch(t){sW(e,t)}mB(),b$.current=o,S$=i,null!==k$?t=0:(M$=null,C$=0,t=D$)}if(0!==t){if(2===t&&(0!==(i=uP(e))&&(r=i,t=Z$(e,i))),1===t)throw n=T$,aW(e,0),tW(e,r),J$(e,UR()),n;if(6===t)tW(e,r);else{if(i=e.current.alternate,0==(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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!tF(o(),i))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}(i)&&(2===(t=cW(e,r))&&(0!==(o=uP(e))&&(r=o,t=Z$(e,o))),1===t))throw n=T$,aW(e,0),tW(e,r),J$(e,UR()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(tI(345));case 2:case 5:mW(e,L$,P$);break;case 3:if(tW(e,r),(130023424&r)===r&&10<(t=I$+500-UR())){if(0!==sP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){K$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=JF(mW.bind(null,e,L$,P$),t);break}mW(e,L$,P$);break;case 4:if(tW(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-tP(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=UR()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v$(r/1960))-r)){e.timeoutHandle=JF(mW.bind(null,e,L$,P$),r);break}mW(e,L$,P$);break;default:throw Error(tI(329))}}}return J$(e,UR()),e.callbackNode===n?Q$.bind(null,e):null}function Z$(e,t){var n=_$;return e.current.memoizedState.isDehydrated&&(aW(e,t).flags|=256),2!==(e=cW(e,t))&&(t=L$,L$=n,null!==t&&eW(t)),e}function eW(e){null===L$?L$=e:L$.push.apply(L$,e)}function tW(e,t){for(t&=~A$,t&=~O$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tP(t),r=1<<n;e[n]=-1,t&=~r}}function nW(e){if(0!=(6&S$))throw Error(tI(327));gW();var t=sP(e,0);if(0==(1&t))return J$(e,UR()),null;var n=cW(e,t);if(0!==e.tag&&2===n){var r=uP(e);0!==r&&(t=r,n=Z$(e,r))}if(1===n)throw n=T$,aW(e,0),tW(e,t),J$(e,UR()),n;if(6===n)throw Error(tI(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mW(e,L$,P$),J$(e,UR()),null}function rW(e,t){var n=S$;S$|=1;try{return e(t)}finally{0===(S$=n)&&(R$=UR()+500,_j&&Rj())}}function iW(e){null!==H$&&0===H$.tag&&0==(6&S$)&&gW();var t=S$;S$|=1;var n=w$.transition,r=pP;try{if(w$.transition=null,pP=1,e)return e()}finally{pP=r,w$.transition=n,0==(6&(S$=t))&&Rj()}}function oW(){q$=E$.current,bj(E$)}function aW(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,QF(n)),null!==k$)for(n=k$.return;null!==n;){var r=n;switch(Gj(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ej();break;case 3:QB(),bj(Mj),bj(Sj),iH();break;case 5:eH(r);break;case 4:QB();break;case 13:case 19:bj(tH);break;case 10:gB(r.type._context);break;case 22:case 23:oW()}n=n.return}if(M$=e,k$=e=EW(e.current,null),C$=q$=t,D$=0,T$=null,A$=O$=N$=0,L$=_$=null,null!==xB){for(t=0;t<xB.length;t++)if(null!==(r=(n=xB[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}xB=null}return e}function sW(e,t){for(;;){var n=k$;try{if(mB(),oH.current=ZH,dH){for(var r=lH.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}dH=!1}if(sH=0,cH=uH=lH=null,fH=!1,hH=0,x$.current=null,null===n||null===n.return){D$=1,T$=t,k$=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=C$,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=cV(a);if(null!==h){h.flags&=-257,dV(h,a,s,0,t),1&h.mode&&uV(o,u,t),l=u;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){uV(o,u,t),uW();break e}l=Error(tI(426))}else if(Qj&&1&s.mode){var g=cV(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),dV(g,a,s,0,t),lB(rV(l,s));break e}}o=l=rV(l,s),4!==D$&&(D$=2),null===_$?_$=[o]:_$.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,NB(o,sV(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===j$||!j$.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,NB(o,lV(o,s,t));break e}}o=o.return}while(null!==o)}pW(n)}catch(e){t=e,k$===n&&null!==n&&(k$=n=n.return);continue}break}}function lW(){var e=b$.current;return b$.current=ZH,null===e?ZH:e}function uW(){0!==D$&&3!==D$&&2!==D$||(D$=4),null===M$||0==(268435455&N$)&&0==(268435455&O$)||tW(M$,C$)}function cW(e,t){var n=S$;S$|=2;var r=lW();for(M$===e&&C$===t||(P$=null,aW(e,t));;)try{dW();break}catch(t){sW(e,t)}if(mB(),S$=n,b$.current=r,null!==k$)throw Error(tI(261));return M$=null,C$=0,D$}function dW(){for(;null!==k$;)hW(k$)}function fW(){for(;null!==k$&&!$R();)hW(k$)}function hW(e){var t=y$(e.alternate,e,q$);e.memoizedProps=e.pendingProps,null===t?pW(e):k$=t,x$.current=null}function pW(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=BV(n,t,q$)))return void(k$=n)}else{if(null!==(n=HV(n,t)))return n.flags&=32767,void(k$=n);if(null===e)return D$=6,void(k$=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(k$=t);k$=t=e}while(null!==t);0===D$&&(D$=5)}function mW(e,t,n){var r=pP,i=w$.transition;try{w$.transition=null,pP=1,function(e,t,n,r){do{gW()}while(null!==H$);if(0!=(6&S$))throw Error(tI(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(tI(177));e.callbackNode=null,e.callbackPriority=0;var o=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 i=31-tP(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===M$&&(k$=M$=null,C$=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||B$||(B$=!0,MW(XR,(function(){return gW(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=w$.transition,w$.transition=null;var a=pP;pP=1;var s=S$;S$|=4,x$.current=null,function(e,t){if(KF=FP,sF(e=aF())){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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(GF={focusedElem:e,selectionRange:n},FP=!1,UV=t;null!==UV;)if(e=(t=UV).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,UV=e;else for(;null!==UV;){t=UV;try{var p=t.alternate;if(0!=(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!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:cB(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(tI(163))}}catch(e){vW(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,UV=e;break}UV=t.return}p=GV,GV=!1}(e,n),c$(n,e),lF(GF),FP=!!KF,GF=KF=null,e.current=n,f$(n),WR(),S$=s,pP=a,w$.transition=o}else e.current=n;if(B$&&(B$=!1,H$=e,V$=i),o=e.pendingLanes,0===o&&(j$=null),function(e){if(eP&&"function"==typeof eP.onCommitFiberRoot)try{eP.onCommitFiberRoot(ZR,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),J$(e,UR()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(z$)throw z$=!1,e=F$,F$=null,e;0!=(1&V$)&&0!==e.tag&&gW(),o=e.pendingLanes,0!=(1&o)?e===W$?$$++:($$=0,W$=e):$$=0,Rj()}(e,t,n,r)}finally{w$.transition=i,pP=r}return null}function gW(){if(null!==H$){var e=mP(V$),t=w$.transition,n=pP;try{if(w$.transition=null,pP=16>e?16:e,null===H$)var r=!1;else{if(e=H$,H$=null,V$=0,0!=(6&S$))throw Error(tI(331));var i=S$;for(S$|=4,UV=e.current;null!==UV;){var o=UV,a=o.child;if(0!=(16&UV.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(UV=u;null!==UV;){var c=UV;switch(c.tag){case 0:case 11:case 15:XV(8,c,o)}var d=c.child;if(null!==d)d.return=c,UV=d;else for(;null!==UV;){var f=(c=UV).sibling,h=c.return;if(ZV(c),c===u){UV=null;break}if(null!==f){f.return=h,UV=f;break}UV=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}UV=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,UV=a;else e:for(;null!==UV;){if(0!=(2048&(o=UV).flags))switch(o.tag){case 0:case 11:case 15:XV(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,UV=y;break e}UV=o.return}}var v=e.current;for(UV=v;null!==UV;){var b=(a=UV).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,UV=b;else e:for(a=v;null!==UV;){if(0!=(2048&(s=UV).flags))try{switch(s.tag){case 0:case 11:case 15:JV(9,s)}}catch(e){vW(s,s.return,e)}if(s===a){UV=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,UV=x;break e}UV=s.return}}if(S$=i,Rj(),eP&&"function"==typeof eP.onPostCommitFiberRoot)try{eP.onPostCommitFiberRoot(ZR,e)}catch(e){}r=!0}return r}finally{pP=n,w$.transition=t}}return!1}function yW(e,t,n){e=DB(e,t=sV(0,t=rV(n,t),1),1),t=K$(),null!==e&&(fP(e,1,t),J$(e,t))}function vW(e,t,n){if(3===e.tag)yW(e,e,n);else for(;null!==t;){if(3===t.tag){yW(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===j$||!j$.has(r))){t=DB(t,e=lV(t,e=rV(n,e),1),1),e=K$(),null!==t&&(fP(t,1,e),J$(t,e));break}}t=t.return}}function bW(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=K$(),e.pingedLanes|=e.suspendedLanes&n,M$===e&&(C$&n)===n&&(4===D$||3===D$&&(130023424&C$)===C$&&500>UR()-I$?aW(e,0):A$|=n),J$(e,t)}function xW(e,t){0===t&&(0==(1&e.mode)?t=1:(t=oP,0==(130023424&(oP<<=1))&&(oP=4194304)));var n=K$();null!==(e=MB(e,t))&&(fP(e,t,n),J$(e,n))}function wW(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xW(e,n)}function SW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(tI(314))}null!==r&&r.delete(t),xW(e,n)}function MW(e,t){return HR(e,t)}function kW(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 CW(e,t,n,r){return new kW(e,t,n,r)}function qW(e){return!(!(e=e.prototype)||!e.isReactComponent)}function EW(e,t){var n=e.alternate;return null===n?((n=CW(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 DW(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)qW(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case bI:return TW(n.children,i,o,t);case xI:a=8,i|=8;break;case wI:return(e=CW(12,n,t,2|i)).elementType=wI,e.lanes=o,e;case CI:return(e=CW(13,n,t,i)).elementType=CI,e.lanes=o,e;case qI:return(e=CW(19,n,t,i)).elementType=qI,e.lanes=o,e;case TI:return NW(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case SI:a=10;break e;case MI:a=9;break e;case kI:a=11;break e;case EI:a=14;break e;case DI:a=16,r=null;break e}throw Error(tI(130,null==e?e:typeof e,""))}return(t=CW(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function TW(e,t,n,r){return(e=CW(7,e,r,t)).lanes=n,e}function NW(e,t,n,r){return(e=CW(22,e,r,t)).elementType=TI,e.lanes=n,e.stateNode={isHidden:!1},e}function OW(e,t,n){return(e=CW(6,e,null,t)).lanes=n,e}function AW(e,t,n){return(t=CW(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _W(e,t,n,r,i){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=dP(0),this.expirationTimes=dP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function LW(e,t,n,r,i,o,a,s,l){return e=new _W(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=CW(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},CB(o),e}function IW(e){if(!e)return wj;e:{if(PR(e=e._reactInternals)!==e||1!==e.tag)throw Error(tI(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qj(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(tI(171))}if(1===e.tag){var n=e.type;if(qj(n))return Tj(e,n,t)}return t}function RW(e,t,n,r,i,o,a,s,l){return(e=LW(n,r,!0,e,0,o,0,s,l)).context=IW(null),n=e.current,(o=EB(r=K$(),i=G$(n))).callback=null!=t?t:null,DB(n,o,i),e.current.lanes=i,fP(e,i,r),J$(e,r),e}function PW(e,t,n,r){var i=t.current,o=K$(),a=G$(i);return n=IW(n),null===t.context?t.context=n:t.pendingContext=n,(t=EB(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=DB(i,t,a))&&(X$(e,i,a,o),TB(e,i,a)),a}function zW(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function FW(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function jW(e,t){FW(e,t),(e=e.alternate)&&FW(e,t)}y$=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mj.current)hV=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return hV=!1,function(e,t,n){switch(t.tag){case 3:MV(t),sB();break;case 5:ZB(t);break;case 1:qj(t.type)&&Nj(t);break;case 4:JB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;xj(dB,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xj(tH,1&tH.current),t.flags|=128,null):0!=(n&t.child.childLanes)?OV(e,t,n):(xj(tH,1&tH.current),null!==(e=zV(e,t,n))?e.sibling:null);xj(tH,1&tH.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return RV(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),xj(tH,tH.current),r)break;return null;case 22:case 23:return t.lanes=0,vV(e,t,n)}return zV(e,t,n)}(e,t,n);hV=0!=(131072&e.flags)}else hV=!1,Qj&&0!=(1048576&t.flags)&&Yj(t,jj,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;PV(e,t),e=t.pendingProps;var i=Cj(t,Sj.current);vB(t,n),i=yH(null,t,r,e,i,n);var o=vH();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qj(r)?(o=!0,Nj(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,CB(t),i.updater=IB,t.stateNode=i,i._reactInternals=t,FB(t,r,e,n),t=SV(null,t,r,!0,o,n)):(t.tag=0,Qj&&o&&Kj(t),pV(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(PV(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return qW(e)?1:0;if(null!=e){if((e=e.$$typeof)===kI)return 11;if(e===EI)return 14}return 2}(r),e=cB(r,e),i){case 0:t=xV(null,t,r,e,n);break e;case 1:t=wV(null,t,r,e,n);break e;case 11:t=mV(null,t,r,e,n);break e;case 14:t=gV(null,t,r,cB(r.type,e),n);break e}throw Error(tI(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,xV(e,t,r,i=t.elementType===r?i:cB(r,i),n);case 1:return r=t.type,i=t.pendingProps,wV(e,t,r,i=t.elementType===r?i:cB(r,i),n);case 3:e:{if(MV(t),null===e)throw Error(tI(387));r=t.pendingProps,i=(o=t.memoizedState).element,qB(e,t),OB(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=kV(e,t,r,n,i=rV(Error(tI(423)),t));break e}if(r!==i){t=kV(e,t,r,n,i=rV(Error(tI(424)),t));break e}for(Jj=rj(t.stateNode.containerInfo.firstChild),Xj=t,Qj=!0,Zj=null,n=WB(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(sB(),r===i){t=zV(e,t,n);break e}pV(e,t,r,n)}t=t.child}return t;case 5:return ZB(t),null===e&&rB(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,XF(r,i)?a=null:null!==o&&XF(r,o)&&(t.flags|=32),bV(e,t),pV(e,t,a,n),t.child;case 6:return null===e&&rB(t),null;case 13:return OV(e,t,n);case 4:return JB(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$B(t,null,r,n):pV(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,mV(e,t,r,i=t.elementType===r?i:cB(r,i),n);case 7:return pV(e,t,t.pendingProps,n),t.child;case 8:case 12:return pV(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,xj(dB,r._currentValue),r._currentValue=a,null!==o)if(tF(o.value,a)){if(o.children===i.children&&!Mj.current){t=zV(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=EB(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),yB(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(tI(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),yB(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}pV(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,vB(t,n),r=r(i=bB(i)),t.flags|=1,pV(e,t,r,n),t.child;case 14:return i=cB(r=t.type,t.pendingProps),gV(e,t,r,i=cB(r.type,i),n);case 15:return yV(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:cB(r,i),PV(e,t),t.tag=1,qj(r)?(e=!0,Nj(t)):e=!1,vB(t,n),PB(t,r,i),FB(t,r,i,n),SV(null,t,r,!0,e,n);case 19:return RV(e,t,n);case 22:return vV(e,t,n)}throw Error(tI(156,t.tag))};var BW="function"==typeof reportError?reportError:function(e){console.error(e)};function HW(e){this._internalRoot=e}function VW(e){this._internalRoot=e}function $W(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function WW(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function UW(){}function YW(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=zW(a);s.call(e)}}PW(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=zW(a);o.call(e)}}var a=RW(t,r,e,0,null,!1,0,"",UW);return e._reactRootContainer=a,e[lj]=a.current,RF(8===e.nodeType?e.parentNode:e),iW(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=zW(l);s.call(e)}}var l=LW(e,0,!1,null,0,!1,0,"",UW);return e._reactRootContainer=l,e[lj]=l.current,RF(8===e.nodeType?e.parentNode:e),iW((function(){PW(t,l,n,r)})),l}(n,t,e,i,r);return zW(a)}VW.prototype.render=HW.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(tI(409));PW(e,t,null,null)},VW.prototype.unmount=HW.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;iW((function(){PW(null,e,null,null)})),t[lj]=null}},VW.prototype.unstable_scheduleHydration=function(e){if(e){var t=bP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<DP.length&&0!==t&&t<DP[n].priority;n++);DP.splice(n,0,e),0===n&&AP(e)}},gP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=aP(t.pendingLanes);0!==n&&(hP(t,1|n),J$(t,UR()),0==(6&S$)&&(R$=UR()+500,Rj()))}break;case 13:iW((function(){var t=MB(e,1);if(null!==t){var n=K$();X$(t,e,1,n)}})),jW(e,1)}},yP=function(e){if(13===e.tag){var t=MB(e,134217728);if(null!==t)X$(t,e,134217728,K$());jW(e,134217728)}},vP=function(e){if(13===e.tag){var t=G$(e),n=MB(e,t);if(null!==n)X$(n,e,t,K$());jW(e,t)}},bP=function(){return pP},xP=function(e,t){var n=pP;try{return pP=e,t()}finally{pP=n}},yR=function(e,t,n){switch(t){case"input":if(KI(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 i=mj(r);if(!i)throw Error(tI(90));VI(r),KI(r,i)}}}break;case"textarea":tR(e,n);break;case"select":null!=(t=n.value)&&QI(e,!!n.multiple,t,!1)}},MR=rW,kR=iW;var KW={usingClientEntryPoint:!1,Events:[hj,pj,mj,wR,SR,rW]},GW={findFiberByHostInstance:fj,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},XW={bundleType:GW.bundleType,version:GW.version,rendererPackageName:GW.rendererPackageName,rendererConfig:GW.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gI.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=jR(e))?null:e.stateNode},findFiberByHostInstance:GW.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var JW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!JW.isDisabled&&JW.supportsFiber)try{ZR=JW.inject(XW),eP=JW}catch(a5){}}GL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KW,GL.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$W(t))throw Error(tI(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:vI,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},GL.createRoot=function(e,t){if(!$W(e))throw Error(tI(299));var n=!1,r="",i=BW;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=LW(e,1,!1,null,0,n,0,r,i),e[lj]=t.current,RF(8===e.nodeType?e.parentNode:e),new HW(t)},GL.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(tI(188));throw e=Object.keys(e).join(","),Error(tI(268,e))}return e=null===(e=jR(t))?null:e.stateNode},GL.flushSync=function(e){return iW(e)},GL.hydrate=function(e,t,n){if(!WW(t))throw Error(tI(200));return YW(null,e,t,!0,n)},GL.hydrateRoot=function(e,t,n){if(!$W(e))throw Error(tI(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=BW;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=RW(t,null,e,1,null!=n?n:null,i,0,o,a),e[lj]=t.current,RF(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new VW(t)},GL.render=function(e,t,n){if(!WW(t))throw Error(tI(200));return YW(null,e,t,!1,n)},GL.unmountComponentAtNode=function(e){if(!WW(e))throw Error(tI(40));return!!e._reactRootContainer&&(iW((function(){YW(null,null,e,!1,(function(){e._reactRootContainer=null,e[lj]=null}))})),!0)},GL.unstable_batchedUpdates=rW,GL.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!WW(n))throw Error(tI(200));if(null==e||void 0===e._reactInternals)throw Error(tI(38));return YW(e,t,n,!1,r)},GL.version="18.2.0-next-9e3b772b8-20220608",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)}}(),KL.exports=GL;var QW=KL.exports,ZW=mg(QW),eU=!0,tU=!1,nU=null,rU={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 iU(e){e.metaKey||e.altKey||e.ctrlKey||(eU=!0)}function oU(){eU=!1}function aU(){"hidden"===this.visibilityState&&tU&&(eU=!0)}function sU(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return eU||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!rU[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function lU(){tU=!0,window.clearTimeout(nU),nU=window.setTimeout((function(){tU=!1}),100)}function uU(){var e=xT.useCallback((function(e){var t,n=QW.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",iU,!0),t.addEventListener("mousedown",oU,!0),t.addEventListener("pointerdown",oU,!0),t.addEventListener("touchstart",oU,!0),t.addEventListener("visibilitychange",aU,!0))}),[]);return{isFocusVisible:sU,onBlurVisible:lU,ref:e}}var cU=!1,dU=wT.createContext(null),fU="unmounted",hU="exited",pU="entering",mU="entered",gU="exiting",yU=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=hU,r.appearStatus=pU):i=mU:i=t.unmountOnExit||t.mountOnEnter?fU:hU,r.state={status:i},r.nextCallback=null,r}XN(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===fU?{status:hU}: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!==pU&&n!==mU&&(t=pU):n!==pU&&n!==mU||(t=gU)}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===pU){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ZW.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hU&&this.setState({status:fU})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ZW.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||cU?this.safeSetState({status:mU},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:pU},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:mU},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ZW.findDOMNode(this);t&&!cU?(this.props.onExit(r),this.safeSetState({status:gU},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hU},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:hU},(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:ZW.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===fU)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=pN(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wT.createElement(dU.Provider,{value:null},"function"==typeof n?n(e,r):wT.cloneElement(wT.Children.only(n),r))},t}(wT.Component);function vU(){}yU.contextType=dU,yU.propTypes={},yU.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vU,onEntering:vU,onEntered:vU,onExit:vU,onExiting:vU,onExited:vU},yU.UNMOUNTED=fU,yU.EXITED=hU,yU.ENTERING=pU,yU.ENTERED=mU,yU.EXITING=gU;var bU=yU;function xU(e,t){var n=Object.create(null);return e&&xT.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&xT.isValidElement(e)?t(e):e}(e)})),n}function wU(e,t,n){return null!=n[t]?n[t]:e.props[t]}function SU(e,t,n){var r=xU(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(xT.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=xT.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&xT.isValidElement(u)&&(i[o]=xT.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:wU(a,"exit",e),enter:wU(a,"enter",e)})):i[o]=xT.cloneElement(a,{in:!1}):i[o]=xT.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:wU(a,"exit",e),enter:wU(a,"enter",e)})}})),i}var MU=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},kU=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(JN(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}XN(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,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,xU(n.children,(function(e){return xT.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:wU(e,"appear",n),enter:wU(e,"enter",n),exit:wU(e,"exit",n)})}))):SU(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=xU(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=nN({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=pN(e,["component","childFactory"]),i=this.state.contextValue,o=MU(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?wT.createElement(dU.Provider,{value:i},o):wT.createElement(dU.Provider,{value:i},wT.createElement(t,r,o))},t}(wT.Component);kU.propTypes={},kU.defaultProps={component:"div",childFactory:function(e){return e}};var CU=kU;function qU(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var EU=xT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,f=mN(e,["classes","className","component","square","elevation","variant"]);return xT.createElement(o,nN({className:BL(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},f))})),DU=PL((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),nN({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(EU),TU="undefined"==typeof window?xT.useEffect:xT.useLayoutEffect;function NU(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=xT.useState(!1),f=d[0],h=d[1],p=BL(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=BL(t.child,f&&t.childLeaving,r&&t.childPulsate),y=UL(u);return TU((function(){if(!s){h(!0);var e=setTimeout(y,c);return function(){clearTimeout(e)}}}),[y,s,c]),xT.createElement("span",{className:p,style:m},xT.createElement("span",{className:g}))}var OU=xT.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=mN(e,["center","classes","className"]),s=xT.useState([]),l=s[0],u=s[1],c=xT.useRef(0),d=xT.useRef(null);xT.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=xT.useRef(!1),h=xT.useRef(null),p=xT.useRef(null),m=xT.useRef(null);xT.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=xT.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(AN(e),[xT.createElement(NU,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),y=xT.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,y,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(k,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=xT.useCallback((function(){y({},{pulsate:!0})}),[y]),b=xT.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return xT.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),xT.createElement("span",nN({className:BL(i.root,o),ref:m},a),xT.createElement(CU,{component:null,exit:!0},l))})),AU=PL((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(xT.memo(OU)),_U=xT.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,S=e.onFocus,M=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,q=e.onMouseDown,E=e.onMouseLeave,D=e.onMouseUp,T=e.onTouchEnd,N=e.onTouchMove,O=e.onTouchStart,A=e.onDragLeave,_=e.tabIndex,L=void 0===_?0:_,I=e.TouchRippleProps,R=e.type,P=void 0===R?"button":R,z=mN(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=xT.useRef(null);var j=xT.useRef(null),B=xT.useState(!1),H=B[0],V=B[1];f&&H&&V(!1);var $=uU(),W=$.isFocusVisible,U=$.onBlurVisible,Y=$.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return UL((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}xT.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),xT.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",q),X=K("stop",A),J=K("stop",D),Q=K("stop",(function(e){H&&e.preventDefault(),E&&E(e)})),Z=K("start",O),ee=K("stop",T),te=K("stop",N),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=UL((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),M&&M(e)),S&&S(e)})),ie=function(){var e=QW.findDOMNode(F.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},oe=xT.useRef(!1),ae=UL((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=UL((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),C&&C(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=c;"button"===le&&z.href&&(le="a");var ue={};"button"===le?(ue.type=P,ue.disabled=f):("a"===le&&z.href||(ue.role="button"),ue["aria-disabled"]=f);var ce=YL(r,t),de=YL(Y,F),fe=YL(ce,de),he=xT.useState(!1),pe=he[0],me=he[1];xT.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return xT.createElement(le,nN({className:BL(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:fe,tabIndex:f?-1:L},ue,z),a,ge?xT.createElement(AU,nN({ref:j,center:o},I)):null)})),LU=PL({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(_U),IU={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},RU=xT.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?IU:b,w=mN(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(g?"p":x[v]||IU[v])||"span";return xT.createElement(S,nN({className:BL(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(zL(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(zL(r))],"initial"!==c&&i["display".concat(zL(c))]),ref:t},w))})),PU=PL((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(RU),zU=xT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,S=e.type,M=void 0===S?"button":S,k=e.variant,C=void 0===k?"text":k,q=mN(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=w&&xT.createElement("span",{className:BL(r.startIcon,r["iconSize".concat(zL(x))])},w),D=m&&xT.createElement("span",{className:BL(r.endIcon,r["iconSize".concat(zL(x))])},m);return xT.createElement(LU,nN({className:BL(r.root,r[C],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(C).concat(zL(a))],"medium"!==x&&[r["".concat(C,"Size").concat(zL(x))],r["size".concat(zL(x))]],f&&r.disableElevation,c&&r.disabled,v&&r.fullWidth),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:BL(r.focusVisible,g),ref:t,type:M},q),xT.createElement("span",{className:r.label},E,n,D))})),FU=PL((function(e){return{root:nN({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:hN(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:hN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:hN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(hN(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:hN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(hN(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:hN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(zU);var jU="undefined"!=typeof window?xT.useLayoutEffect:xT.useEffect,BU=xT.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=xT.useState(null),l=s[0],u=s[1],c=YL(xT.isValidElement(n)?n.ref:null,t);return jU((function(){o||u(function(e){return e="function"==typeof e?e():e,QW.findDOMNode(e)}(r)||document.body)}),[r,o]),jU((function(){if(l&&!o)return $L(t,l),function(){$L(t,null)}}),[t,l,o]),jU((function(){a&&(l||o)&&a()}),[a,l,o]),o?xT.isValidElement(n)?xT.cloneElement(n,{ref:c}):n:l?QW.createPortal(n,l):l})),HU=BU;function VU(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $U(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function WU(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(AN(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&VU(e,r)}))}function UU(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function YU(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=HL(e);return t.body===e?VL(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat($U(o)+a,"px"),n=HL(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat($U(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var KU=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return KN(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&VU(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);WU(t,e.mountNode,e.modalRef,r,!0);var i=UU(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=UU(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=YU(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=UU(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&VU(e.modalRef,!0),WU(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&VU(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function GU(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=xT.useRef(),f=xT.useRef(null),h=xT.useRef(null),p=xT.useRef(),m=xT.useRef(null),g=xT.useCallback((function(e){m.current=QW.findDOMNode(e)}),[]),y=YL(t.ref,g),v=xT.useRef();return xT.useEffect((function(){v.current=c}),[c]),!v.current&&c&&"undefined"!=typeof window&&(p.current=l().activeElement),xT.useEffect((function(){if(c){var e=HL(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,u,c]),xT.createElement(xT.Fragment,null,xT.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),xT.cloneElement(t,{ref:y}),xT.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var XU={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},JU=xT.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=mN(e,["invisible","open"]);return i?xT.createElement("div",nN({"aria-hidden":!0,ref:t},o,{style:nN({},XU.root,r?XU.invisible:{},o.style)})):null}));var QU=new KU,ZU=xT.forwardRef((function(e,t){var n=P_(),r=$N({name:"MuiModal",props:nN({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?JU:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,S=void 0!==w&&w,M=r.disableScrollLock,k=void 0!==M&&M,C=r.hideBackdrop,q=void 0!==C&&C,E=r.keepMounted,D=void 0!==E&&E,T=r.manager,N=void 0===T?QU:T,O=r.onBackdropClick,A=r.onClose,_=r.onEscapeKeyDown,L=r.onRendered,I=r.open,R=mN(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),P=xT.useState(!0),z=P[0],F=P[1],j=xT.useRef({}),B=xT.useRef(null),H=xT.useRef(null),V=YL(H,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return HL(B.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},Y=function(){N.mount(U(),{disableScrollLock:k}),H.current.scrollTop=0},K=UL((function(){var e=function(e){return e="function"==typeof e?e():e,QW.findDOMNode(e)}(c)||W().body;N.add(U(),e),H.current&&Y()})),G=xT.useCallback((function(){return N.isTopModal(U())}),[N]),X=UL((function(e){B.current=e,e&&(L&&L(),I&&G()?Y():VU(H.current,!0))})),J=xT.useCallback((function(){N.remove(U())}),[N]);if(xT.useEffect((function(){return function(){J()}}),[J]),xT.useEffect((function(){I?K():$&&u||J()}),[I,J,$,u,K]),!D&&!I&&(!$||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:FN}),Z={};return void 0===s.props.tabIndex&&(Z.tabIndex=s.props.tabIndex||"-1"),$&&(Z.onEnter=FL((function(){F(!1)}),s.props.onEnter),Z.onExited=FL((function(){F(!0),u&&J()}),s.props.onExited)),xT.createElement(HU,{ref:X,container:c,disablePortal:x},xT.createElement("div",nN({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(_&&_(e),v||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},R,{style:nN({},Q.root,!I&&z?Q.hidden:{},R.style)}),q?null:xT.createElement(o,nN({open:I,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!p&&A&&A(e,"backdropClick"))}},a)),xT.createElement(GU,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:S,getDoc:W,isEnabled:G,open:I},xT.cloneElement(s,Z))))})),eY=ZU,tY=xT.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,u=void 0!==l&&l,c=e.light,d=void 0!==c&&c,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=mN(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return xT.createElement(s,nN({className:BL(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,u&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),nY=PL((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:hN(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(tY);function rY(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var iY={entering:{opacity:1,transform:rY(1)},entered:{opacity:1,transform:"none"}},oY=xT.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?bU:m,y=mN(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=xT.useRef(),b=xT.useRef(),x=P_()||IL,w=x.unstable_strictMode&&!i,S=xT.useRef(null),M=YL(n.ref,t),k=YL(w?S:void 0,M),C=function(e){return function(t,n){if(e){var r=_N(w?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},q=C(l),E=C((function(e,t){!function(e){e.scrollTop}(e);var n,r=qU({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=C(s),T=C(d),N=C((function(e){var t,n=qU({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=rY(.75),u&&u(e)})),O=C(c);return xT.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),xT.createElement(g,nN({appear:!0,in:o,nodeRef:w?S:void 0,onEnter:E,onEntered:D,onEntering:q,onExit:N,onExited:O,onExiting:T,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return xT.cloneElement(n,nN({style:nN({opacity:0,transform:rY(.75),visibility:"exited"!==e||o?void 0:"hidden"},iY[e],f,n.props.style),ref:k},t))}))}));oY.muiSupportAuto=!0;var aY=oY,sY=xT.createContext({}),lY=xT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=mN(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=xT.useMemo((function(){return{dense:l}}),[l]);return xT.createElement(sY.Provider,{value:h},xT.createElement(a,nN({className:BL(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),uY=PL({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(lY),cY="undefined"==typeof window?xT.useEffect:xT.useLayoutEffect,dY=xT.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=mN(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,S=void 0!==w&&w,M=e.divider,k=void 0!==M&&M,C=e.focusVisibleClassName,q=e.selected,E=void 0!==q&&q,D=mN(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=xT.useContext(sY),N={dense:v||T.dense||!1,alignItems:r},O=xT.useRef(null);cY((function(){o&&O.current&&O.current.focus()}),[o]);var A,_,L=xT.Children.toArray(l),I=L.length&&(A=L[L.length-1],_=["ListItemSecondaryAction"],xT.isValidElement(A)&&-1!==_.indexOf(A.type.muiName)),R=xT.useCallback((function(e){O.current=QW.findDOMNode(e)}),[]),P=YL(R,t),z=nN({className:BL(u.root,c,N.dense&&u.dense,!S&&u.gutters,k&&u.divider,x&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,E&&u.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=BL(u.focusVisible,C),F=LU),I?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),xT.createElement(sY.Provider,{value:N},xT.createElement(h,nN({className:BL(u.container,m),ref:P},g),xT.createElement(F,z,L),L.pop()))):xT.createElement(sY.Provider,{value:N},xT.createElement(F,nN({ref:P},z),L))})),fY=PL((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(dY),hY=xT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=mN(e,["classes","className"]),o=xT.useContext(sY);return xT.createElement("div",nN({className:BL(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),pY=PL((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(hY),mY=xT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=mN(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=xT.useContext(sY).dense,m=null!=u?u:n;null==m||m.type===PU||a||(m=xT.createElement(PU,nN({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var g=d;return null==g||g.type===PU||a||(g=xT.createElement(PU,nN({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),xT.createElement("div",nN({className:BL(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),gY=PL({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(mY);function yY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bY(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function xY(e){return"function"==typeof e?e():e}var wY=xT.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,S=e.onExited,M=e.onExiting,k=e.open,C=e.PaperProps,q=void 0===C?{}:C,E=e.transformOrigin,D=void 0===E?{vertical:"top",horizontal:"left"}:E,T=e.TransitionComponent,N=void 0===T?aY:T,O=e.transitionDuration,A=void 0===O?"auto":O,_=e.TransitionProps,L=void 0===_?{}:_,I=mN(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),R=xT.useRef(),P=xT.useCallback((function(e){if("anchorPosition"===l)return a;var t=xY(r),n=(t&&1===t.nodeType?t:HL(R.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+yY(n,i),left:n.left+vY(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=xT.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=xT.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:yY(e,D.vertical)+t,horizontal:vY(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=xT.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:bY(i)};var o=P(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=VL(xY(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:bY(i)}}),[r,l,P,z,F,y]),B=xT.useCallback((function(){var e=R.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=xT.useCallback((function(e){R.current=QW.findDOMNode(e)}),[]);xT.useEffect((function(){k&&B()})),xT.useImperativeHandle(n,(function(){return k?{updatePosition:function(){B()}}:null}),[k,B]),xT.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,B]);var V=A;"auto"!==A||N.muiSupportAuto||(V=void 0);var $=f||(r?HL(xY(r)).body:void 0);return xT.createElement(eY,nN({container:$,open:k,ref:t,BackdropProps:{invisible:!0},className:BL(c.root,d)},I),xT.createElement(N,nN({appear:!0,in:k,onEnter:v,onEntered:b,onExit:w,onExited:S,onExiting:M,timeout:V},L,{onEntering:FL((function(e,t){x&&x(e,t),B()}),L.onEntering)}),xT.createElement(DU,nN({elevation:p,ref:H},q,{className:BL(c.paper,q.className)}),u)))})),SY=PL({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(wY);function MY(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function kY({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:MY(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return wT.createElement("i",{style:i},wT.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},wT.createElement("path",{d:e})))}const CY={menuItem:"alternative-menu-item"},qY=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>U_((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return wT.createElement(fY,VT({className:`${i.root} ${n}`},r))},EY=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${CY.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function DY({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Zg.detectTextDirection(e);return wT.createElement(qY,{nested:r,role:"menuitem",button:!0,onClick:n,className:CY.menuItem,onKeyDown:EY,dir:a,autoFocus:t},wT.createElement(gY,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),wT.createElement(pY,{style:{minWidth:16}},wT.createElement(kY,{d:t?ET.d:""})),i&&wT.createElement(pY,{style:{minWidth:16}},wT.createElement(kY,{d:i.d})))}DY.propTypes={title:YT.string.isRequired,selected:YT.bool,onClick:YT.func.isRequired,nested:YT.bool,icon:YT.shape({d:YT.string.isRequired}),bold:YT.bool,dir:YT.string.isRequired},DY.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},qY.propTypes={nested:YT.bool,className:YT.string},qY.defaultProps={nested:!1,className:CY.menuItem};const TY={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function NY({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const u=o.map(((t,i)=>{var s;return wT.createElement(wT.Fragment,{key:t.id},wT.createElement(DY,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&wT.createElement(uY,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>wT.createElement(DY,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&wT.createElement(nY,{key:`divider-${t.id}`}))}));return wT.createElement(SY,VT({anchorEl:t,open:s,onClose:a},TY[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),wT.createElement(uY,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},u))}NY.propTypes={chartId:YT.string.isRequired,alignTo:YT.any,currentId:YT.string.isRequired,dir:YT.string.isRequired,dock:YT.string.isRequired,list:YT.array,onClose:YT.func.isRequired,show:YT.bool.isRequired,instruction:YT.string.isRequired},NY.defaultProps={list:[],alignTo:null};const OY="title-button",AY="active-title-button",_Y=RL((({children:e,...t})=>wT.createElement(FU,VT({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),LY=RL(FU)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class IY extends wT.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=wT.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${OY}`);t&&t.classList.add(AY)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${OY}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${AY}`);e&&(e.classList.remove(AY),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u,showGroupDimOptions:c}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>wT.createElement(_Y,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},wT.createElement("span",{style:d},e),wT.createElement(kY,VT({},TT,{size:"small",style:{margin:"0 8px"}}))))),m=u||c?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Zg.detectTextDirection(t.text),w=wT.createElement(_Y,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${OY} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&wT.createElement(kY,VT({},qT,{size:"small",title:r.get("Tooltip.selections.locked")})),wT.createElement("span",{style:d,dir:x},t.text),n&&m&&wT.createElement(kY,VT({},DT,{size:"small",style:{margin:"0 8px"}})));return wT.createElement(wT.Fragment,null,t.icon&&t.icon.onClick&&wT.createElement(LY,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},wT.createElement(kY,VT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&wT.createElement(kY,VT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,wT.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&wT.createElement(NY,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function RY(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function PY(e){function t(e){return!e.isDimension&&Pg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:u,padding:c,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?FT:BT,M=a?jT:HT,k=Boolean(l&&l.colorSupport&&l.modifiers),C=k&&((q=this.settings.settings).isDimension&&Pg.getValue(q,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var q;const E=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,q=k||b?S({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:RY(g),model:l,onChange:u,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:k}):void 0;return wT.createElement(wT.Fragment,{key:t.cId},wT.createElement(IY,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:q,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:c,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&wT.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return wT.createElement("div",{style:v,dir:y},E)}}}IY.propTypes={chartId:YT.string.isRequired,disabled:YT.bool.isRequired,padding:YT.string,minWidth:YT.string,titleData:YT.shape({breadcrumbs:YT.arrayOf(YT.string).isRequired,icon:YT.shape({path:YT.shape({d:YT.string.isRequired}),tooltip:YT.string.isRequired,onClick:YT.func}),index:YT.number.isRequired,locked:YT.bool.isRequired,text:YT.string.isRequired,popoverText:YT.string.isRequired,drillUp:YT.func,id:YT.string.isRequired}).isRequired,popover:YT.shape({dir:YT.string.isRequired,dock:YT.string.isRequired,getPopoverOptions:YT.func.isRequired}),translator:YT.shape({get:YT.func.isRequired}).isRequired,selections:YT.shape({isActive:YT.func,addListener:YT.func,removeListener:YT.func}),style:YT.shape({fontSize:YT.string,color:YT.string,fontFamily:YT.string}).isRequired,isDimension:YT.bool.isRequired,hasAlternative:YT.bool.isRequired,supportConditional:YT.bool.isRequired,showGroupDimOptions:YT.bool.isRequired},IY.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const zY=jN({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0}}});const FY=VN({productionPrefix:"q9342",disableGlobal:!0,seed:""});function jY(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",ZW.render(function(e,t){return wT.createElement(H_,{generateClassName:t},wT.createElement(_L,{theme:zY},e))}(e,FY),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&ZW.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(ZW.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var BY={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:HY}=BY;function VY({layoutService:e,largeDataService:t}){const{maxNumPoints:n=HY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:$Y}=BY,WY=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=$Y}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!VY({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:UY}=BY,{MAX_NUM_POINTS:YY,DEFAULT_NUM_POINTS:KY,DEFAULT_NUM_LINES:GY}=BY,{DEFAULT_NUM_POINTS:XY}=BY,JY=({layoutService:e,largeDataService:t})=>{if(!VY({layoutService:e,largeDataService:t})){const{maxNumPoints:e=XY}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=GY,maxNumPoints:o=KY,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(WY({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,u=Math.floor(r[0]<=l?l:l/4),c=2*s*(s+1);return a&&(s>GY||o>KY)?Math.min(u,Math.ceil(YY/c)):u})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=UY}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})},QY=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:JY({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:WY({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function ZY({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>VY({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>JY({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>WY({layoutService:t,largeDataService:n}),fetch:(i,o)=>QY({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function eK(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function tK({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function nK(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function rK(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=nK(),o=nK();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function iK(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function oK(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=rK(e,t,n.qMatrix),i=iK(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const aK=2**.5,sK=1/aK,lK=1e-6,uK=sK**44;function cK(e){return e.qIsOtherCell}function dK({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(cK)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(cK)||t++})),t}(n)}const fK={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var hK={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};const pK="…";function mK(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function gK(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",u=s(l);let{x:c,width:d}=r;e.start===e.end&&(d=u.width+2*i,1===e.end&&(c-=d));const f={x:c+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}${pK}`).width,p=Math.max(0,f.width-u.width),m=Math.max(0,f.height-u.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,u.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:c+g,width:u.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=mK(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:mK(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function yK(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=mK(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:mK(i,n.minorGuideLine.strokeWidth),x2:o,y2:mK(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function vK(e){return e.filter((e=>e.show)).map((e=>Dg({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var bK={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=mK(1,t.line.strokeWidth);return{show:n.line.show,x1:mK(0,t.line.strokeWidth),y1:r,x2:mK(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=gK(n,this),this.state.minor=yK(r,this)},render(){return[...vK([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>Dg({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...vK(this.state.major.map((e=>e.guideLine))),...vK(this.state.minor.map((e=>e.guideLine)))];var e}};function xK(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function wK(e){return e.qTags.indexOf("$qualified")>-1}function SK({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];xK(o,a)?(wK(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function MK({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const u=e[l];if(u.queries.outer(n)){const e=t[l+1];if(i=u.index,r=l,u.attrs.isDayOrShorter()&&u.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}const kK=16;function CK({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+kK}))),r.clamp(n),i.rangeAndWidth}}}const qK=6;function EK({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=qK,canFitHalfDayTicks:n=>n>=t*e.count()}}function DK({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=CK,queryFactory:s=EK}={attributesFactory:CK,queryFactory:EK}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),u=e.map((e=>l[e])),c=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:u,nonQualifiedMeta:c}}function TK({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=DK,mapper:a=SK,resolver:s=MK}={metaFactory:DK,mapper:SK,resolver:MK}){const{qualified:l,nonQualified:u}=a({qAxis:e}),{qualifiedMeta:c,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:u,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:c,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}const NK=86400,OK=864e5;function AK(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(OK*(e-Math.floor(e)))))}const _K=AK(0).getTime();function LK(e){return(e.getTime()-_K)/NK/1e3}const IK=new Date,RK=new Date;function PK(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>PK((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(IK.setTime(+t),RK.setTime(+r),e(IK),e(RK),Math.floor(n(IK,RK))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const zK=1e3,FK=6e4,jK=36e5,BK=864e5,HK=6048e5,VK=PK((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*zK)}),((e,t)=>(t-e)/zK),(e=>e.getUTCSeconds()));VK.range;const $K=PK((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zK)}),((e,t)=>{e.setTime(+e+t*FK)}),((e,t)=>(t-e)/FK),(e=>e.getMinutes()));$K.range;const WK=PK((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*FK)}),((e,t)=>(t-e)/FK),(e=>e.getUTCMinutes()));WK.range;const UK=PK((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zK-e.getMinutes()*FK)}),((e,t)=>{e.setTime(+e+t*jK)}),((e,t)=>(t-e)/jK),(e=>e.getHours()));UK.range;const YK=PK((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*jK)}),((e,t)=>(t-e)/jK),(e=>e.getUTCHours()));YK.range;const KK=PK((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*FK)/BK),(e=>e.getDate()-1));KK.range;const GK=PK((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/BK),(e=>e.getUTCDate()-1));GK.range;const XK=PK((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/BK),(e=>Math.floor(e/BK)));function JK(e){return PK((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*FK)/HK))}XK.range;const QK=JK(0),ZK=JK(1),eG=JK(2),tG=JK(3),nG=JK(4),rG=JK(5),iG=JK(6);function oG(e){return PK((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/HK))}QK.range,ZK.range,eG.range,tG.range,nG.range,rG.range,iG.range;const aG=oG(0),sG=oG(1),lG=oG(2),uG=oG(3),cG=oG(4),dG=oG(5),fG=oG(6);aG.range,sG.range,lG.range,uG.range,cG.range,dG.range,fG.range;const hG=PK((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));hG.range;const pG=PK((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));pG.range;const mG=PK((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));mG.every=e=>isFinite(e=Math.floor(e))&&e>0?PK((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,mG.range;const gG=PK((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));gG.every=e=>isFinite(e=Math.floor(e))&&e>0?PK((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,gG.range;const yG={second:1,minute:2,hour:3,day:4,month:5,year:6};function vG({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),u=i.key({distance:n});let c;i.get(u,1)?c=i.get(u,1):(c=function(e,t,n,r,i,o){function a(e){return gG.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=VK.count(e,t),l=WK.count(e,t),u=YK.count(e,t),c=GK.count(e,t),d=aG.count(e,t),f=pG.count(e,t),h=gG.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:gG.every(1),formatter:r.year.formatter,offset:e=>gG.offset(e,-1),floor:gG.floor};if(s<=p)v.type=yG.second,v.desc="second",v.count=s,v.interval=VK.every(1),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-1),v.floor=VK.floor;else if(s/2<=p)v.type=yG.second,v.desc="every other second",v.count=s/2,v.interval=VK.every(2),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-2),v.floor=VK.floor;else if(s/5<=p)v.type=yG.second,v.desc="every 5 second",v.count=s/5,v.interval=VK.every(5),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-5),v.floor=VK.floor;else if(s/15<=p)v.type=yG.second,v.desc="every 15 second",v.count=s/15,v.interval=VK.every(15),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-15),v.floor=VK.floor;else if(s/30<=p)v.type=yG.second,v.desc="every 30 second",v.count=s/30,v.interval=VK.every(30),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-30),v.floor=VK.floor;else if(l<=m)v.type=yG.minute,v.desc="minute",v.count=l,v.interval=WK.every(1),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-1),v.floor=WK.floor;else if(l/2<=m)v.type=yG.minute,v.desc="every 2 minute",v.count=l/2,v.interval=WK.every(2),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-2),v.floor=WK.floor;else if(l/5<=m)v.type=yG.minute,v.desc="every 5 minute",v.count=l/5,v.interval=WK.every(5),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-5),v.floor=WK.floor;else if(l/10<=m)v.type=yG.minute,v.desc="every 10 minute",v.count=l/10,v.interval=WK.every(10),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-10),v.floor=WK.floor;else if(l/15<=m)v.type=yG.minute,v.desc="every 15 minute",v.count=l/15,v.interval=WK.every(15),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-15),v.floor=WK.floor;else if(l/30<=m)v.type=yG.minute,v.desc="every 30 minute",v.count=l/30,v.interval=WK.every(30),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-30),v.floor=WK.floor;else if(u<=m)v.type=yG.hour,v.desc="hour",v.count=u,v.interval=YK.every(1),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-1),v.floor=YK.floor;else if(u/2<=m)v.type=yG.hour,v.desc="every 2 hour",v.count=u/2,v.interval=YK.every(2),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-2),v.floor=YK.floor;else if(u/3<=m)v.type=yG.hour,v.desc="every 3 hour",v.count=u/3,v.interval=YK.every(3),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-3),v.floor=YK.floor;else if(u/6<=m)v.type=yG.hour,v.desc="every 6 hour",v.count=u/6,v.interval=YK.every(6),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-6),v.floor=YK.floor;else if(u/12<=m||i)v.type=yG.hour,v.desc="every 12 hour",v.count=u/12,v.interval=YK.every(12),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-12),v.floor=YK.floor;else if(c<=g)v.type=yG.day,v.desc="day",v.count=c,v.interval=GK.every(1),v.formatter=r.date.formatter,v.offset=e=>GK.offset(e,-1),v.floor=GK.floor;else if(c/2<=g)v.type=yG.day,v.desc="every 2 day",v.count=c/2,v.interval=GK.every(2),v.formatter=r.date.formatter,v.offset=e=>GK.offset(e,-2),v.floor=GK.floor;else if(c/3<=g)v.type=yG.day,v.desc="every 3 day",v.count=c/3,v.interval=GK.every(3),v.formatter=r.date.formatter,v.offset=e=>GK.offset(e,-3),v.floor=GK.floor;else if(d<=g)v.type=yG.day,v.desc="week",v.count=d,v.interval=aG.every(1),v.formatter=r.date.formatter,v.offset=e=>aG.offset(e,-1),v.floor=GK.floor;else if(d/2<=g)v.type=yG.day,v.desc="every 2 week",v.count=d/2,v.interval=aG.every(2),v.formatter=r.date.formatter,v.offset=e=>aG.offset(e,-2),v.floor=GK.floor;else if(f<=g)v.type=yG.month,v.desc="month",v.count=f,v.interval=pG.every(1),v.formatter=r.date.formatter,v.offset=e=>pG.offset(e,-1),v.floor=GK.floor;else if(f/3<=g)v.type=yG.month,v.desc="quarter",v.count=f/3,v.interval=pG.every(3),v.formatter=r.date.formatter,v.offset=e=>pG.offset(e,-3),v.floor=GK.floor;else if(f/6<=g)v.type=yG.month,v.desc="half year",v.count=f/6,v.interval=pG.every(6),v.formatter=r.date.formatter,v.offset=e=>pG.offset(e,-6),v.floor=GK.floor;else if(h<=y)v.type=yG.year,v.desc="year",v.count=h,v.interval=gG.every(1),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-1),v.floor=gG.floor;else if(h/2<=y)v.type=yG.year,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-2),v.floor=gG.floor;else if(h/5<=y)v.type=yG.year,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-5),v.floor=gG.floor;else if(h/10<=y)v.type=yG.year,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-10),v.floor=gG.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=yG.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>gG.offset(t,-e),v.floor=gG.floor}return v}(s,l,n,t.all(),r,a),i.set(u,c,1));const d=e.ticks(c.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(c.offset(d[0])):d.push(c.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:c.formatter}}));let h=[];if(!o&&c.type<=yG.hour){const n=t.getFormat("date"),r=e.ticks(GK.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(GK.offset(r[0],-1)),h=(r.length?r:[GK.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const bG=86400,xG=1440,wG={};function SG(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function MG(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,u]=e.domain(),c=hS().domain([AK(l),AK(u)]);c.clamp(o),c.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>vG({timeScale:c,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?c.domain()[0]:AK(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(wG[[t,n,r,r,o]])return wG[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=AK(n),l=s.getFullYear(),u=s.getMonth(),c=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/bG,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let w,S,M,k=0,C=0,q=null,E=null,D=null,T=null,N=null,O=null;const A={outer:[],inner:[]};for(y<1?(q=1,C=1/bG):y<2?(q=2,C=1/bG*2):y<5?(q=5,C=1/bG*5):y<10?(q=10,C=1/bG*10):y<30?(q=30,C=1/bG*30):v<1?(E=1,C=1/xG):v<2?(E=2,C=1/xG*2):v<5?(E=5,C=1/xG*5):v<10?(E=10,C=1/xG*10):v<30?(E=30,C=1/xG*30):v<60?(D=1,C=1/24):v<120?(D=2,C=2/24):v<360?(D=6,C=.25):v<720?(D=12,C=.5):b<1/90?(C=1,T=1):b<2/90?(C=2,T=2):b<7/90?(C=7,T=7):b<31/90?(N=1,C=31):b<1?(N=3,C=90):x<1?(O=1,C=366):x<2?(O=2,C=732):x<5?(O=5,C=1826.25):(O=10,C=3652.5),S=Math.floor((d+n%1)/C);k<i;){M=S+1,w=O?SG("year",[l+S*O,0,1],[l+M*O,0,1],a.year.formatter):N?SG("month",[l,u+S*N,1],[l,u+M*N,1],a.date.formatter):T?SG("day",[l,u,c+S*T],[l,u,c+M*T],a.date.formatter):D?SG("hour",[l,u,c,0+S*D],[l,u,c,0+M*D],a.minute.formatter):E?SG("minute",[l,u,c,0,0+S*E],[l,u,c,0,0+M*E],a.minute.formatter):SG("second",[l,u,c,0,0,0+S*q],[l,u,c,0,0,0+M*q],a.second.formatter),k=LK(w.start),A.inner.push(w);const e=Math.floor(k);if(!(o||O||N||T)){const t={type:"day",start:AK(e),end:AK(e+1),formatter:a.date.formatter,qStart:e};A.outer[A.outer.length-1]&&A.outer[A.outer.length-1].qStart===t.qStart||A.outer.push(t)}S++}return A.min=r,A.max=i,wG[[t,n,r,r,o]]=A,A}(n,e,d.min,l,u,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?LK(t.start):"end"===i?LK(t.end):(LK(t.start)+LK(t.end))/2,{position:c(t.start),start:c(t.start),end:c(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:LK(t.start),end:LK(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const kG=41000.2343433,CG=/t+/i,qG=16,EG=60;const DG={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function TG(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const NG="continuousPan";var OG={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=fK,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=ZY,snapshotFetcherFactory:u=tK,cacheFetcherFactory:c=eK,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=u({layoutService:t,viewCache:i}),p=c({cache:d}),m=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",function(e,t){return Math.max(lK,(t-e)*uK)}(y,v)),g=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=h.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=iK(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>oK(y,v,e))).then((e=>this.updateLayout(e))).catch(m)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=iK(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>oK(e,t,n))).catch(m),fetchFromCache:(e,t)=>p.fetch(e,t).then((n=>oK(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return Dg({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return Dg({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>dK(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=YC(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return KC(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),u=i?1-o:o,{min:c,max:d}=t.get("zoom"),f=Math.abs(d-c),h=f-(r>0?sK:aK)*f,p=c+h*u,m=d-h*(1-u),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:NG,pointers:1,threshold:10,enable(r,i){return this.started===NG||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${NG}start`](n){n.preventDefault(),this.started=NG;const{min:i,max:o}=r.get("zoom");this[NG]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${NG}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[NG],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${NG}end`](e){e.preventDefault(),this.started=!1},[`${NG}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:hK,timeAxis:bK},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=Dg(!0,{},t[i],o)})),r}(t,DG,n),{qAxis:i}=r,o=rx(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let u,c,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=c.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=c.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=c.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(TG(a,f),a.instance(e)),f.normInvert=e=>(TG(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:EG,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:EG,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:EG,formatter:void 0},year:{type:"year",pattern:"YYYY",width:EG,formatter:void 0}};return i&&CG.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(kG)).width+qG)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=AK(t[0].data.start),i=AK(t[n-1].data.start);return GK.count(r,i)/n>=1?o.date:YK.count(r,i)/n>0?o.minute:WK.count(r,i)/n>0?o.second:o.date},t}(r);return c=MG(o.copy(),r,h),u=TK({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:HC(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const AG={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var _G={OPTIONS:AG,DEFAULT:AG.MINI_CHART};function LG({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,u=r[l?"width":"height"];let c=a.qArea.qTop/s*u,d=a.qArea.qHeight/s*u;if(d<o){const e=(o-d)/2;c=c-e+(Math.max(0,0-(c-e))-Math.max(0,c+d+e-u)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:c,width:d}:{top:c,left:0,height:d}}})}}function IG({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const RG=e=>({miniChart:e===_G.OPTIONS.MINI_CHART.value,bar:e===_G.OPTIONS.BAR.value,none:e===_G.OPTIONS.NONE.value}),PG=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return RG(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return RG(_G.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return RG(!n&&(r||!r&&i)?_G.OPTIONS.NONE.value:_G.OPTIONS.MINI_CHART.value)};function zG({layoutService:e,override:t}){const n=PG({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===_G.OPTIONS.MINI_CHART.value,n.bar=t.value===_G.OPTIONS.BAR.value,n.none=t.value===_G.OPTIONS.NONE.value),n}function FG({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:u=!1,deviceType:c}){const d=zG({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>IG({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===c?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&u&&(h.settings.injections=()=>[LG({layoutService:e,discrete:n})]),h}function jG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:u}=s.center,c=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-c.left-d.rect.computedInner.x:u-c.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=IG({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,w=!b&&!x;return{pixel:m,relative:g,thumb:w?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:w}}}function BG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:u}=a.rect.computedInner,c="horizontal"===s?l:u,[d,f]=IG({layoutService:i,viewState:n,viewCache:r});return{size:c,thumbSize:(f-d)*c}}}function HG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=jG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=BG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=u(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=c(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const VG="data-scrollbar-handle";function $G({e:e}){return(e.srcEvent||e).srcElement.getAttribute(VG)||""}const WG="scrollbarResize",UG=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function YG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=jG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${WG}`,options:{event:WG,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[WG]=this[WG]||{},UG(t)&&$G({e:t})&&(this[WG].panningEvent=t.srcEvent),!!this[WG].panningEvent))}},events:{[`${WG}start`](n){n.preventDefault(),this[WG]=this[WG]||{},this[WG].panningEvent&&t.component(e).emit("dragStart",this[WG].panningEvent)},[`${WG}move`](n){if(n.preventDefault(),this[WG]=this[WG]||{},!this[WG].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),u=i.get("minimiumZoomSpan"),c=(s-a)*l(n).relative+a,d=$G({e:this[WG].panningEvent});let f="start"===d?Math.min(c,o.max):o.min,h="end"===d?Math.max(c,o.min):o.max;f===h&&(f-="start"===d?u:0,h+="end"===d?u:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${WG}end`](n){n.preventDefault(),this[WG]=this[WG]||{},delete this[WG].panningEvent,t.component(e).emit("dragEnd")},[`${WG}cancel`](n){n.preventDefault(),this[WG]=this[WG]||{},delete this[WG].panningEvent,t.component(e).emit("dragEnd")}}}}const KG="scrollbarPan";function GG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=jG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=BG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${KG}`,options:{event:KG,threshold:0,enable(r,i){return this[KG]=this[KG]||{},!(i&&!this[KG].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${KG}start`](n){n.preventDefault();const a=u(n);if(this[KG]=this[KG]||{},this[KG].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[KG].relative=a.relative,this[KG].zoom=r.get("zoom"),this[KG].zoom.span=this[KG].zoom.max-this[KG].zoom.min,this[KG].zoom.fullSpan=o-n}else if(a.onThumb)this[KG].offset=a.thumb;else{const e=c();this[KG].offset=a.beforeThumb?0:e.thumbSize}},[`${KG}move`](n){n.preventDefault();const a=u(n);if(this[KG]=this[KG]||{},o.meta.isContinuous){const e=a.relative-this[KG].relative,{fullSpan:t,span:n,min:o,max:s}=this[KG].zoom,l=i.get("continuousMin"),u=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,u-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[KG].offset||0),t=c(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${KG}end`](n){n.preventDefault(),this[KG]=this[KG]||{},this[KG].isPanning=!1,t.component(e).emit("unlockState")},[`${KG}cancel`](n){n.preventDefault(),this[KG]=this[KG]||{},this[KG].isPanning=!1,t.component(e).emit("unlockState")}}}}function XG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[HG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),YG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),GG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function JG({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}function QG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...XG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:JG({componentKey:e,chart:t,actions:n,layoutService:o})}}const ZG={background:"rgba(0, 0, 0, 0.1)"},eX={top:-1,bottom:-1,width:6},tX={width:2,background:"#595959"};var nX={before:ZG,after:ZG,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:eX,endHandle:eX,startHandleBorder:tX,endHandleBorder:tX};const rX={background:"rgba(0, 0, 0, 0.1)"},iX={top:-1,bottom:-1,width:6},oX={width:2,background:"#595959"};var aX={before:rX,after:rX,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:iX,endHandle:iX,startHandleBorder:oX,endHandleBorder:oX};const sX={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},lX={pointerEvents:"initial"},uX={pointerEvents:"none"};const cX="ew-resize",dX="default";function fX(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function hX(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?cX:dX}function pX(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function mX(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function gX(){const{size:e,start:t,end:n}=fX.call(this);this.renderer.render(this.elements(this.h,pX.call(this,e,t,n)))}function yX(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?aX:nX;return{container:{...sX},before:{...sX,...n.before,...t.before},after:{...sX,...n.after,...t.after},thumb:{...sX,...n.thumb,...t.thumb},startHandle:{...sX,...lX,...n.startHandle},endHandle:{...sX,...lX,...n.endHandle},startHandleBorder:{...sX,...uX,...n.startHandleBorder},endHandleBorder:{...sX,...uX,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var vX={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){gX.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!mX.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=$G({e:e});t&&(this.state.hover[t]=!0),hX.call(this),gX.call(this)},leave(){this.state.locked||(this.state.hover.reset(),hX.call(this),gX.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=$G({e:e});t&&(this.state.drag[t]=!0),hX.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),hX.call(this),gX.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=fX.call(this);return this.elements(e,pX.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:u,injections:c}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...u?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...u?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...u?m:h},class:"scrollbar--start-handle",[VG]:"start"},o?e("div",{style:{...s.startHandleBorder,...u?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...u?h:m},class:"scrollbar--end-handle",[VG]:"end"},a?e("div",{style:{...s.endHandleBorder,...u?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...c])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:yX.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};var bX={black:"#000",white:"#fff"};var xX={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 wX={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 SX={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 MX={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 kX={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 CX={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 qX={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 EX(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 DX=Object.freeze({__proto__:null,default:EX}),TX="$$material";function NX(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var OX=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AX=NX((function(e){return OX.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var _X=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),LX="-ms-",IX="-moz-",RX="-webkit-",PX="comm",zX="rule",FX="decl",jX="@keyframes",BX=Math.abs,HX=String.fromCharCode,VX=Object.assign;function $X(e){return e.trim()}function WX(e,t,n){return e.replace(t,n)}function UX(e,t){return e.indexOf(t)}function YX(e,t){return 0|e.charCodeAt(t)}function KX(e,t,n){return e.slice(t,n)}function GX(e){return e.length}function XX(e){return e.length}function JX(e,t){return t.push(e),e}var QX=1,ZX=1,eJ=0,tJ=0,nJ=0,rJ="";function iJ(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:QX,column:ZX,length:a,return:""}}function oJ(e,t){return VX(iJ("",null,null,"",null,null,0),e,{length:-e.length},t)}function aJ(){return nJ=tJ>0?YX(rJ,--tJ):0,ZX--,10===nJ&&(ZX=1,QX--),nJ}function sJ(){return nJ=tJ<eJ?YX(rJ,tJ++):0,ZX++,10===nJ&&(ZX=1,QX++),nJ}function lJ(){return YX(rJ,tJ)}function uJ(){return tJ}function cJ(e,t){return KX(rJ,e,t)}function dJ(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 fJ(e){return QX=ZX=1,eJ=GX(rJ=e),tJ=0,[]}function hJ(e){return rJ="",e}function pJ(e){return $X(cJ(tJ-1,yJ(91===e?e+2:40===e?e+1:e)))}function mJ(e){for(;(nJ=lJ())&&nJ<33;)sJ();return dJ(e)>2||dJ(nJ)>3?"":" "}function gJ(e,t){for(;--t&&sJ()&&!(nJ<48||nJ>102||nJ>57&&nJ<65||nJ>70&&nJ<97););return cJ(e,uJ()+(t<6&&32==lJ()&&32==sJ()))}function yJ(e){for(;sJ();)switch(nJ){case e:return tJ;case 34:case 39:34!==e&&39!==e&&yJ(nJ);break;case 40:41===e&&yJ(e);break;case 92:sJ()}return tJ}function vJ(e,t){for(;sJ()&&e+nJ!==57&&(e+nJ!==84||47!==lJ()););return"/*"+cJ(t,tJ-1)+"*"+HX(47===e?e:sJ())}function bJ(e){for(;!dJ(lJ());)sJ();return cJ(e,tJ)}function xJ(e){return hJ(wJ("",null,null,null,[""],e=fJ(e),0,[0],e))}function wJ(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,S=r,M=b;g;)switch(p=v,v=sJ()){case 40:if(108!=p&&58==YX(M,d-1)){-1!=UX(M+=WX(pJ(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=pJ(v);break;case 9:case 10:case 13:case 32:M+=mJ(p);break;case 92:M+=gJ(uJ()-1,7);continue;case 47:switch(lJ()){case 42:case 47:JX(MJ(vJ(sJ(),uJ()),t,n),l);break;default:M+="/"}break;case 123*m:s[u++]=GX(M)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(M=WX(M,/\f/g,"")),h>0&&GX(M)-d&&JX(h>32?kJ(M+";",r,n,d-1):kJ(WX(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(JX(S=SJ(M,t,n,u,c,i,s,b,x=[],w=[],d),o),123===v)if(0===c)wJ(M,t,S,S,x,o,d,s,w);else switch(99===f&&110===YX(M,3)?100:f){case 100:case 108:case 109:case 115:wJ(e,S,S,r&&JX(SJ(e,S,S,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:wJ(M,S,S,S,[""],w,0,s,w)}}u=c=h=0,m=y=1,b=M="",d=a;break;case 58:d=1+GX(M),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==aJ())continue;switch(M+=HX(v),v*m){case 38:y=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(GX(M)-1)*y,y=1;break;case 64:45===lJ()&&(M+=pJ(sJ())),f=lJ(),c=d=GX(b=M+=bJ(uJ())),v++;break;case 45:45===p&&2==GX(M)&&(m=0)}}return o}function SJ(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],h=XX(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=KX(e,d+1,d=BX(m=a[p])),b=e;y<h;++y)(b=$X(m>0?f[y]+" "+v:WX(v,/&\f/g,f[y])))&&(l[g++]=b);return iJ(e,t,n,0===i?zX:s,l,u,c)}function MJ(e,t,n){return iJ(e,t,n,PX,HX(nJ),KX(e,2,-2),0)}function kJ(e,t,n,r){return iJ(e,t,n,FX,KX(e,0,r),KX(e,r+1,-1),r)}function CJ(e,t){for(var n="",r=XX(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function qJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case FX:return e.return=e.return||e.value;case PX:return"";case jX:return e.return=e.value+"{"+CJ(e.children,r)+"}";case zX:e.value=e.props.join(",")}return GX(n=CJ(e.children,r))?e.return=e.value+"{"+n+"}":""}function EJ(e){var t=XX(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var DJ="undefined"!=typeof document,TJ=function(e,t,n){for(var r=0,i=0;r=i,i=lJ(),38===r&&12===i&&(t[n]=1),!dJ(i);)sJ();return cJ(e,tJ)},NJ=function(e,t){return hJ(function(e,t){var n=-1,r=44;do{switch(dJ(r)){case 0:38===r&&12===lJ()&&(t[n]=1),e[n]+=TJ(tJ-1,t,n);break;case 2:e[n]+=pJ(r);break;case 4:if(44===r){e[++n]=58===lJ()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=HX(r)}}while(r=sJ());return e}(fJ(e),t))},OJ=new WeakMap,AJ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||OJ.get(n))&&!r){OJ.set(e,!0);for(var i=[],o=NJ(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},_J=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function LJ(e,t){switch(function(e,t){return 45^YX(e,0)?(((t<<2^YX(e,0))<<2^YX(e,1))<<2^YX(e,2))<<2^YX(e,3):0}(e,t)){case 5103:return RX+"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 RX+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return RX+e+IX+e+LX+e+e;case 6828:case 4268:return RX+e+LX+e+e;case 6165:return RX+e+LX+"flex-"+e+e;case 5187:return RX+e+WX(e,/(\w+).+(:[^]+)/,RX+"box-$1$2"+LX+"flex-$1$2")+e;case 5443:return RX+e+LX+"flex-item-"+WX(e,/flex-|-self/,"")+e;case 4675:return RX+e+LX+"flex-line-pack"+WX(e,/align-content|flex-|-self/,"")+e;case 5548:return RX+e+LX+WX(e,"shrink","negative")+e;case 5292:return RX+e+LX+WX(e,"basis","preferred-size")+e;case 6060:return RX+"box-"+WX(e,"-grow","")+RX+e+LX+WX(e,"grow","positive")+e;case 4554:return RX+WX(e,/([^-])(transform)/g,"$1"+RX+"$2")+e;case 6187:return WX(WX(WX(e,/(zoom-|grab)/,RX+"$1"),/(image-set)/,RX+"$1"),e,"")+e;case 5495:case 3959:return WX(e,/(image-set\([^]*)/,RX+"$1$`$1");case 4968:return WX(WX(e,/(.+:)(flex-)?(.*)/,RX+"box-pack:$3"+LX+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+RX+e+e;case 4095:case 3583:case 4068:case 2532:return WX(e,/(.+)-inline(.+)/,RX+"$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(GX(e)-1-t>6)switch(YX(e,t+1)){case 109:if(45!==YX(e,t+4))break;case 102:return WX(e,/(.+:)(.+)-([^]+)/,"$1"+RX+"$2-$3$1"+IX+(108==YX(e,t+3)?"$3":"$2-$3"))+e;case 115:return~UX(e,"stretch")?LJ(WX(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==YX(e,t+1))break;case 6444:switch(YX(e,GX(e)-3-(~UX(e,"!important")&&10))){case 107:return WX(e,":",":"+RX)+e;case 101:return WX(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+RX+(45===YX(e,14)?"inline-":"")+"box$3$1"+RX+"$2$3$1"+LX+"$2box$3")+e}break;case 5936:switch(YX(e,t+11)){case 114:return RX+e+LX+WX(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return RX+e+LX+WX(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return RX+e+LX+WX(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return RX+e+LX+e+e}return e}var IJ=DJ?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return NX((function(){var e={};return function(t){return e[t]}}))})),RJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case FX:e.return=LJ(e.value,e.length);break;case jX:return CJ([oJ(e,{value:WX(e.value,"@","@"+RX)})],r);case zX:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return CJ([oJ(e,{props:[WX(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return CJ([oJ(e,{props:[WX(t,/:(plac\w+)/,":"+RX+"input-$1")]}),oJ(e,{props:[WX(t,/:(plac\w+)/,":-moz-$1")]}),oJ(e,{props:[WX(t,/:(plac\w+)/,LX+"input-$1")]})],r)}return""}))}}],PJ=function(e){var t=e.key;if(DJ&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||RJ,a={},s=[];DJ&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,u=[AJ,_J];if(DJ){var c,d=[qJ,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=EJ(u.concat(o,d));i=function(e,t,n,r){c=n,function(e){CJ(xJ(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[qJ],p=EJ(u.concat(o,h)),m=IJ(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return CJ(xJ(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new _X({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},zJ="undefined"!=typeof document;var FJ=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===zJ&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},jJ=function(e,t,n){FJ(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);zJ||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!zJ&&0!==i.length)return i}};var BJ={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,scale: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},HJ=!1,VJ=/[A-Z]|^ms/g,$J=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WJ=function(e){return 45===e.charCodeAt(1)},UJ=function(e){return null!=e&&"boolean"!=typeof e},YJ=NX((function(e){return WJ(e)?e:e.replace(VJ,"-$&").toLowerCase()})),KJ=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($J,(function(e,t,n){return JJ={name:t,styles:n,next:JJ},t}))}return 1===BJ[e]||WJ(e)||"number"!=typeof t||0===t?t:t+"px"},GJ="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function XJ(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return JJ={name:i.name,styles:i.styles,next:JJ},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)JJ={name:a.name,styles:a.styles,next:JJ},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=XJ(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":UJ(s)&&(r+=YJ(o)+":"+KJ(o,s)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&HJ)throw new Error(GJ);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=XJ(e,t,a);switch(o){case"animation":case"animationName":r+=YJ(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)UJ(a[u])&&(r+=YJ(o)+":"+KJ(o,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=JJ,l=n(e);return JJ=s,XJ(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var JJ,QJ=/label:\s*([^\s;{]+)\s*(;|$)/g;function ZJ(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";JJ=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=XJ(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=XJ(n,t,e[a]),r)i+=o[a]}QJ.lastIndex=0;for(var s,l="";null!==(s=QJ.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:JJ}}var eQ="undefined"!=typeof document,tQ=function(e){return e()},nQ=!!ST.useInsertionEffect&&ST.useInsertionEffect,rQ=eQ&&nQ||tQ,iQ=nQ||xT.useLayoutEffect,oQ="undefined"!=typeof document,aQ=xT.createContext("undefined"!=typeof HTMLElement?PJ({key:"css"}):null),sQ=aQ.Provider,lQ=function(e){return xT.forwardRef((function(t,n){var r=xT.useContext(aQ);return e(t,r,n)}))};oQ||(lQ=function(e){return function(t){var n=xT.useContext(aQ);return null===n?(n=PJ({key:"css"}),xT.createElement(aQ.Provider,{value:n},e(t,n))):e(t,n)}});var uQ=xT.createContext({}),cQ=lQ((function(e,t){var n=ZJ([e.styles],void 0,xT.useContext(uQ));if(!oQ){for(var r,i=n.name,o=n.styles,a=n.next;void 0!==a;)i+=" "+a.name,o+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:i,styles:o},t.sheet,s);return s?null:xT.createElement("style",((r={})["data-emotion"]=t.key+"-global "+i,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var u=xT.useRef();return iQ((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),u.current=[r,i],function(){r.flush()}}),[t]),iQ((function(){var e=u.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&jJ(t,n.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function dQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ZJ(t)}var fQ=function(){var e=dQ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},hQ=AX,pQ=function(e){return"theme"!==e},mQ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hQ:pQ},gQ=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},yQ="undefined"!=typeof document,vQ=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;FJ(t,n,r);var i=rQ((function(){return jJ(t,n,r)}));if(!yQ&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return xT.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},bQ=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=gQ(t,n,o),l=s||mQ(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)d.push(c[h],c[0][h])}var p=lQ((function(e,t,n){var r,o,c,f,h=u&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=xT.useContext(uQ)}"string"==typeof e.className?(r=t.registered,o=m,c=e.className,f="",c.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):e&&(f+=e+" ")})),p=f):null!=e.className&&(p=e.className+" ");var v=ZJ(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=u&&void 0===s?mQ(h):l,x={};for(var w in e)u&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,n&&(x.ref=n),xT.createElement(xT.Fragment,null,xT.createElement(vQ,{cache:t,serialized:v,isStringTag:"string"==typeof h}),xT.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,nN({},n,r,{shouldForwardProp:gQ(p,r,!0)})).apply(void 0,d)},p}}.bind();["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){bQ[e]=bQ(e)}));var xQ={exports:{}},wQ={},SQ=xT,MQ=Symbol.for("react.element"),kQ=Symbol.for("react.fragment"),CQ=Object.prototype.hasOwnProperty,qQ=SQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EQ={key:!0,ref:!0,__self:!0,__source:!0};function DQ(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)CQ.call(t,r)&&!EQ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:MQ,type:e,key:o,ref:a,props:i,_owner:qQ.current}}wQ.Fragment=kQ,wQ.jsx=DQ,wQ.jsxs=DQ,xQ.exports=wQ;var TQ=xQ.exports;let NQ;"object"==typeof document&&(NQ=PJ({key:"css",prepend:!0}));var OQ=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return TQ.jsx(cQ,{styles:r})}
|
|
42
|
+
*/function tI(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 nI=new Set,rI={};function iI(e,t){oI(e,t),oI(e+"Capture",t)}function oI(e,t){for(rI[e]=t,e=0;e<t.length;e++)nI.add(t[e])}var aI=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),sI=Object.prototype.hasOwnProperty,lI=/^[: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]*$/,uI={},cI={};function dI(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var fI={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fI[e]=new dI(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fI[t]=new dI(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fI[e]=new dI(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fI[e]=new dI(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){fI[e]=new dI(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fI[e]=new dI(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){fI[e]=new dI(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){fI[e]=new dI(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){fI[e]=new dI(e,5,!1,e.toLowerCase(),null,!1,!1)}));var hI=/[\-:]([a-z])/g;function pI(e){return e[1].toUpperCase()}function mI(e,t,n,r){var i=fI.hasOwnProperty(t)?fI[t]:null;(null!==i?0!==i.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,i,r)&&(n=null),r||null===i?function(e){return!!sI.call(cI,e)||!sI.call(uI,e)&&(lI.test(e)?cI[e]=!0:(uI[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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(hI,pI);fI[t]=new dI(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(hI,pI);fI[t]=new dI(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(hI,pI);fI[t]=new dI(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){fI[e]=new dI(e,1,!1,e.toLowerCase(),null,!1,!1)})),fI.xlinkHref=new dI("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){fI[e]=new dI(e,1,!1,e.toLowerCase(),null,!0,!0)}));var gI=ZL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yI=Symbol.for("react.element"),vI=Symbol.for("react.portal"),bI=Symbol.for("react.fragment"),xI=Symbol.for("react.strict_mode"),wI=Symbol.for("react.profiler"),SI=Symbol.for("react.provider"),MI=Symbol.for("react.context"),kI=Symbol.for("react.forward_ref"),CI=Symbol.for("react.suspense"),qI=Symbol.for("react.suspense_list"),EI=Symbol.for("react.memo"),DI=Symbol.for("react.lazy"),TI=Symbol.for("react.offscreen"),NI=Symbol.iterator;function OI(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=NI&&e[NI]||e["@@iterator"])?e:null}var AI,_I=Object.assign;function LI(e){if(void 0===AI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);AI=t&&t[1]||""}return"\n"+AI+e}var II=!1;function RI(e,t){if(!e||II)return"";II=!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 i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{II=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?LI(e):""}function PI(e){switch(e.tag){case 5:return LI(e.type);case 16:return LI("Lazy");case 13:return LI("Suspense");case 19:return LI("SuspenseList");case 0:case 2:case 15:return e=RI(e.type,!1);case 11:return e=RI(e.type.render,!1);case 1:return e=RI(e.type,!0);default:return""}}function zI(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 bI:return"Fragment";case vI:return"Portal";case wI:return"Profiler";case xI:return"StrictMode";case CI:return"Suspense";case qI:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case MI:return(e.displayName||"Context")+".Consumer";case SI:return(e._context.displayName||"Context")+".Provider";case kI:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case EI:return null!==(t=e.displayName||null)?t:zI(e.type)||"Memo";case DI:t=e._payload,e=e._init;try{return zI(e(t))}catch(e){}}return null}function FI(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 zI(t);case 8:return t===xI?"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 jI(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function BI(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function HI(e){e._valueTracker||(e._valueTracker=function(e){var t=BI(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 VI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=BI(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $I(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 WI(e,t){var n=t.checked;return _I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function UI(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=jI(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 YI(e,t){null!=(t=t.checked)&&mI(e,"checked",t,!1)}function KI(e,t){YI(e,t);var n=jI(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")?XI(e,t.type,n):t.hasOwnProperty("defaultValue")&&XI(e,t.type,jI(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function GI(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 XI(e,t,n){"number"===t&&$I(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var JI=Array.isArray;function QI(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jI(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ZI(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(tI(91));return _I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eR(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(tI(92));if(JI(n)){if(1<n.length)throw Error(tI(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:jI(n)}}function tR(e,t){var n=jI(t.value),r=jI(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 nR(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function rR(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 iR(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?rR(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var oR,aR=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((oR=oR||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function sR(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 lR={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},uR=["Webkit","ms","Moz","O"];function cR(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||lR.hasOwnProperty(e)&&lR[e]?(""+t).trim():t+"px"}function dR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=cR(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(lR).forEach((function(e){uR.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lR[t]=lR[e]}))}));var fR=_I({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 hR(e,t){if(t){if(fR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(tI(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(tI(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(tI(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(tI(62))}}function pR(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 mR=null;function gR(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yR=null,vR=null,bR=null;function xR(e){if(e=hj(e)){if("function"!=typeof yR)throw Error(tI(280));var t=e.stateNode;t&&(t=mj(t),yR(e.stateNode,e.type,t))}}function wR(e){vR?bR?bR.push(e):bR=[e]:vR=e}function SR(){if(vR){var e=vR,t=bR;if(bR=vR=null,xR(e),t)for(e=0;e<t.length;e++)xR(t[e])}}function MR(e,t){return e(t)}function kR(){}var CR=!1;function qR(e,t,n){if(CR)return e(t,n);CR=!0;try{return MR(e,t,n)}finally{CR=!1,(null!==vR||null!==bR)&&(kR(),SR())}}function ER(e,t){var n=e.stateNode;if(null===n)return null;var r=mj(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(tI(231,t,typeof n));return n}var DR=!1;if(aI)try{var TR={};Object.defineProperty(TR,"passive",{get:function(){DR=!0}}),window.addEventListener("test",TR,TR),window.removeEventListener("test",TR,TR)}catch(a5){DR=!1}function NR(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var OR=!1,AR=null,_R=!1,LR=null,IR={onError:function(e){OR=!0,AR=e}};function RR(e,t,n,r,i,o,a,s,l){OR=!1,AR=null,NR.apply(IR,arguments)}function PR(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function zR(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 FR(e){if(PR(e)!==e)throw Error(tI(188))}function jR(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=PR(e)))throw Error(tI(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return FR(i),e;if(o===r)return FR(i),t;o=o.sibling}throw Error(tI(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(tI(189))}}if(n.alternate!==r)throw Error(tI(190))}if(3!==n.tag)throw Error(tI(188));return n.stateNode.current===n?e:t}(e),null!==e?BR(e):null}function BR(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=BR(e);if(null!==t)return t;e=e.sibling}return null}var HR=eI.unstable_scheduleCallback,VR=eI.unstable_cancelCallback,$R=eI.unstable_shouldYield,WR=eI.unstable_requestPaint,UR=eI.unstable_now,YR=eI.unstable_getCurrentPriorityLevel,KR=eI.unstable_ImmediatePriority,GR=eI.unstable_UserBlockingPriority,XR=eI.unstable_NormalPriority,JR=eI.unstable_LowPriority,QR=eI.unstable_IdlePriority,ZR=null,eP=null;var tP=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(nP(e)/rP|0)|0},nP=Math.log,rP=Math.LN2;var iP=64,oP=4194304;function aP(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 sP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=aP(s):0!==(o&=a)&&(r=aP(o))}else 0!==(a=n&~i)?r=aP(a):0!==o&&(r=aP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-tP(t)),r|=e[n],t&=~i;return r}function lP(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 uP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function cP(){var e=iP;return 0==(4194240&(iP<<=1))&&(iP=64),e}function dP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tP(t)]=n}function hP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tP(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pP=0;function mP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var gP,yP,vP,bP,xP,wP=!1,SP=[],MP=null,kP=null,CP=null,qP=new Map,EP=new Map,DP=[],TP="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 NP(e,t){switch(e){case"focusin":case"focusout":MP=null;break;case"dragenter":case"dragleave":kP=null;break;case"mouseover":case"mouseout":CP=null;break;case"pointerover":case"pointerout":qP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":EP.delete(t.pointerId)}}function OP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=hj(t))&&yP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function AP(e){var t=fj(e.target);if(null!==t){var n=PR(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=zR(n)))return e.blockedOn=t,void xP(e.priority,(function(){vP(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 _P(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$P(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=hj(n))&&yP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);mR=r,n.target.dispatchEvent(r),mR=null,t.shift()}return!0}function LP(e,t,n){_P(e)&&n.delete(t)}function IP(){wP=!1,null!==MP&&_P(MP)&&(MP=null),null!==kP&&_P(kP)&&(kP=null),null!==CP&&_P(CP)&&(CP=null),qP.forEach(LP),EP.forEach(LP)}function RP(e,t){e.blockedOn===t&&(e.blockedOn=null,wP||(wP=!0,eI.unstable_scheduleCallback(eI.unstable_NormalPriority,IP)))}function PP(e){function t(t){return RP(t,e)}if(0<SP.length){RP(SP[0],e);for(var n=1;n<SP.length;n++){var r=SP[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==MP&&RP(MP,e),null!==kP&&RP(kP,e),null!==CP&&RP(CP,e),qP.forEach(t),EP.forEach(t),n=0;n<DP.length;n++)(r=DP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<DP.length&&null===(n=DP[0]).blockedOn;)AP(n),null===n.blockedOn&&DP.shift()}var zP=gI.ReactCurrentBatchConfig,FP=!0;function jP(e,t,n,r){var i=pP,o=zP.transition;zP.transition=null;try{pP=1,HP(e,t,n,r)}finally{pP=i,zP.transition=o}}function BP(e,t,n,r){var i=pP,o=zP.transition;zP.transition=null;try{pP=4,HP(e,t,n,r)}finally{pP=i,zP.transition=o}}function HP(e,t,n,r){if(FP){var i=$P(e,t,n,r);if(null===i)zF(e,t,r,VP,n),NP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return MP=OP(MP,e,t,n,r,i),!0;case"dragenter":return kP=OP(kP,e,t,n,r,i),!0;case"mouseover":return CP=OP(CP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return qP.set(o,OP(qP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,EP.set(o,OP(EP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(NP(e,r),4&t&&-1<TP.indexOf(e)){for(;null!==i;){var o=hj(i);if(null!==o&&gP(o),null===(o=$P(e,t,n,r))&&zF(e,t,r,VP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else zF(e,t,r,null,n)}}var VP=null;function $P(e,t,n,r){if(VP=null,null!==(e=fj(e=gR(r))))if(null===(t=PR(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=zR(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 VP=e,null}function WP(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(YR()){case KR:return 1;case GR:return 4;case XR:case JR:return 16;case QR:return 536870912;default:return 16}default:return 16}}var UP=null,YP=null,KP=null;function GP(){if(KP)return KP;var e,t,n=YP,r=n.length,i="value"in UP?UP.value:UP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return KP=i.slice(e,1<t?1-t:void 0)}function XP(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 JP(){return!0}function QP(){return!1}function ZP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?JP:QP,this.isPropagationStopped=QP,this}return _I(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=JP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=JP)},persist:function(){},isPersistent:JP}),t}var ez,tz,nz,rz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iz=ZP(rz),oz=_I({},rz,{view:0,detail:0}),az=ZP(oz),sz=_I({},oz,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bz,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!==nz&&(nz&&"mousemove"===e.type?(ez=e.screenX-nz.screenX,tz=e.screenY-nz.screenY):tz=ez=0,nz=e),ez)},movementY:function(e){return"movementY"in e?e.movementY:tz}}),lz=ZP(sz),uz=ZP(_I({},sz,{dataTransfer:0})),cz=ZP(_I({},oz,{relatedTarget:0})),dz=ZP(_I({},rz,{animationName:0,elapsedTime:0,pseudoElement:0})),fz=_I({},rz,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hz=ZP(fz),pz=ZP(_I({},rz,{data:0})),mz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gz={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"},yz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yz[e])&&!!t[e]}function bz(){return vz}var xz=_I({},oz,{key:function(e){if(e.key){var t=mz[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=XP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bz,charCode:function(e){return"keypress"===e.type?XP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?XP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wz=ZP(xz),Sz=ZP(_I({},sz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mz=ZP(_I({},oz,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bz})),kz=ZP(_I({},rz,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cz=_I({},sz,{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}),qz=ZP(Cz),Ez=[9,13,27,32],Dz=aI&&"CompositionEvent"in window,Tz=null;aI&&"documentMode"in document&&(Tz=document.documentMode);var Nz=aI&&"TextEvent"in window&&!Tz,Oz=aI&&(!Dz||Tz&&8<Tz&&11>=Tz),Az=String.fromCharCode(32),_z=!1;function Lz(e,t){switch(e){case"keyup":return-1!==Ez.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iz(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Rz=!1;var Pz={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 zz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pz[e.type]:"textarea"===t}function Fz(e,t,n,r){wR(r),0<(t=jF(t,"onChange")).length&&(n=new iz("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jz=null,Bz=null;function Hz(e){AF(e,0)}function Vz(e){if(VI(pj(e)))return e}function $z(e,t){if("change"===e)return t}var Wz=!1;if(aI){var Uz;if(aI){var Yz="oninput"in document;if(!Yz){var Kz=document.createElement("div");Kz.setAttribute("oninput","return;"),Yz="function"==typeof Kz.oninput}Uz=Yz}else Uz=!1;Wz=Uz&&(!document.documentMode||9<document.documentMode)}function Gz(){jz&&(jz.detachEvent("onpropertychange",Xz),Bz=jz=null)}function Xz(e){if("value"===e.propertyName&&Vz(Bz)){var t=[];Fz(t,Bz,e,gR(e)),qR(Hz,t)}}function Jz(e,t,n){"focusin"===e?(Gz(),Bz=n,(jz=t).attachEvent("onpropertychange",Xz)):"focusout"===e&&Gz()}function Qz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vz(Bz)}function Zz(e,t){if("click"===e)return Vz(t)}function eF(e,t){if("input"===e||"change"===e)return Vz(t)}var tF="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nF(e,t){if(tF(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 i=n[r];if(!sI.call(t,i)||!tF(e[i],t[i]))return!1}return!0}function rF(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iF(e,t){var n,r=rF(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=rF(r)}}function oF(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?oF(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function aF(){for(var e=window,t=$I();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$I((e=t.contentWindow).document)}return t}function sF(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 lF(e){var t=aF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oF(n.ownerDocument.documentElement,n)){if(null!==r&&sF(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 i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=iF(n,o);var a=iF(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>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 uF=aI&&"documentMode"in document&&11>=document.documentMode,cF=null,dF=null,fF=null,hF=!1;function pF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;hF||null==cF||cF!==$I(r)||("selectionStart"in(r=cF)&&sF(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},fF&&nF(fF,r)||(fF=r,0<(r=jF(dF,"onSelect")).length&&(t=new iz("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=cF)))}function mF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gF={animationend:mF("Animation","AnimationEnd"),animationiteration:mF("Animation","AnimationIteration"),animationstart:mF("Animation","AnimationStart"),transitionend:mF("Transition","TransitionEnd")},yF={},vF={};function bF(e){if(yF[e])return yF[e];if(!gF[e])return e;var t,n=gF[e];for(t in n)if(n.hasOwnProperty(t)&&t in vF)return yF[e]=n[t];return e}aI&&(vF=document.createElement("div").style,"AnimationEvent"in window||(delete gF.animationend.animation,delete gF.animationiteration.animation,delete gF.animationstart.animation),"TransitionEvent"in window||delete gF.transitionend.transition);var xF=bF("animationend"),wF=bF("animationiteration"),SF=bF("animationstart"),MF=bF("transitionend"),kF=new Map,CF="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 qF(e,t){kF.set(e,t),iI(t,[e])}for(var EF=0;EF<CF.length;EF++){var DF=CF[EF];qF(DF.toLowerCase(),"on"+(DF[0].toUpperCase()+DF.slice(1)))}qF(xF,"onAnimationEnd"),qF(wF,"onAnimationIteration"),qF(SF,"onAnimationStart"),qF("dblclick","onDoubleClick"),qF("focusin","onFocus"),qF("focusout","onBlur"),qF(MF,"onTransitionEnd"),oI("onMouseEnter",["mouseout","mouseover"]),oI("onMouseLeave",["mouseout","mouseover"]),oI("onPointerEnter",["pointerout","pointerover"]),oI("onPointerLeave",["pointerout","pointerover"]),iI("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),iI("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),iI("onBeforeInput",["compositionend","keypress","textInput","paste"]),iI("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),iI("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),iI("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var TF="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(" "),NF=new Set("cancel close invalid load scroll toggle".split(" ").concat(TF));function OF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(RR.apply(this,arguments),OR){if(!OR)throw Error(tI(198));var u=AR;OR=!1,AR=null,_R||(_R=!0,LR=u)}}(r,t,void 0,e),e.currentTarget=null}function AF(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;OF(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;OF(i,s,u),o=l}}}if(_R)throw e=LR,_R=!1,LR=null,e}function _F(e,t){var n=t[uj];void 0===n&&(n=t[uj]=new Set);var r=e+"__bubble";n.has(r)||(PF(t,e,2,!1),n.add(r))}function LF(e,t,n){var r=0;t&&(r|=4),PF(n,e,r,t)}var IF="_reactListening"+Math.random().toString(36).slice(2);function RF(e){if(!e[IF]){e[IF]=!0,nI.forEach((function(t){"selectionchange"!==t&&(NF.has(t)||LF(t,!1,e),LF(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[IF]||(t[IF]=!0,LF("selectionchange",!1,t))}}function PF(e,t,n,r){switch(WP(t)){case 1:var i=jP;break;case 4:i=BP;break;default:i=HP}n=i.bind(null,t,n,e),i=void 0,!DR||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zF(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=fj(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}qR((function(){var r=o,i=gR(n),a=[];e:{var s=kF.get(e);if(void 0!==s){var l=iz,u=e;switch(e){case"keypress":if(0===XP(n))break e;case"keydown":case"keyup":l=wz;break;case"focusin":u="focus",l=cz;break;case"focusout":u="blur",l=cz;break;case"beforeblur":case"afterblur":l=cz;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":l=lz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=uz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mz;break;case xF:case wF:case SF:l=dz;break;case MF:l=kz;break;case"scroll":l=az;break;case"wheel":l=qz;break;case"copy":case"cut":case"paste":l=hz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sz}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=ER(p,f))&&c.push(FF(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===mR||!(u=n.relatedTarget||n.fromElement)||!fj(u)&&!u[lj])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?fj(u):null)&&(u!==(d=PR(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=lz,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Sz,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:pj(l),h=null==u?s:pj(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,fj(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=BF(h))p++;for(h=0,m=f;m;m=BF(m))h++;for(;0<p-h;)c=BF(c),p--;for(;0<h-p;)f=BF(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=BF(c),f=BF(f)}c=null}else c=null;null!==l&&HF(a,s,l,c,!1),null!==u&&null!==d&&HF(a,d,u,c,!0)}if("select"===(l=(s=r?pj(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=$z;else if(zz(s))if(Wz)g=eF;else{g=Qz;var y=Jz}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Zz);switch(g&&(g=g(e,r))?Fz(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&XI(s,"number",s.value)),y=r?pj(r):window,e){case"focusin":(zz(y)||"true"===y.contentEditable)&&(cF=y,dF=r,fF=null);break;case"focusout":fF=dF=cF=null;break;case"mousedown":hF=!0;break;case"contextmenu":case"mouseup":case"dragend":hF=!1,pF(a,n,i);break;case"selectionchange":if(uF)break;case"keydown":case"keyup":pF(a,n,i)}var v;if(Dz)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Rz?Lz(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Oz&&"ko"!==n.locale&&(Rz||"onCompositionStart"!==b?"onCompositionEnd"===b&&Rz&&(v=GP()):(YP="value"in(UP=i)?UP.value:UP.textContent,Rz=!0)),0<(y=jF(r,b)).length&&(b=new pz(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Iz(n))&&(b.data=v))),(v=Nz?function(e,t){switch(e){case"compositionend":return Iz(t);case"keypress":return 32!==t.which?null:(_z=!0,Az);case"textInput":return(e=t.data)===Az&&_z?null:e;default:return null}}(e,n):function(e,t){if(Rz)return"compositionend"===e||!Dz&&Lz(e,t)?(e=GP(),KP=YP=UP=null,Rz=!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 Oz&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=jF(r,"onBeforeInput")).length&&(i=new pz("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}AF(a,t)}))}function FF(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jF(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ER(e,n))&&r.unshift(FF(e,o,i)),null!=(o=ER(e,t))&&r.push(FF(e,o,i))),e=e.return}return r}function BF(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function HF(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ER(n,o))&&a.unshift(FF(n,l,s)):i||null!=(l=ER(n,o))&&a.push(FF(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var VF=/\r\n?/g,$F=/\u0000|\uFFFD/g;function WF(e){return("string"==typeof e?e:""+e).replace(VF,"\n").replace($F,"")}function UF(e,t,n){if(t=WF(t),WF(e)!==t&&n)throw Error(tI(425))}function YF(){}var KF=null,GF=null;function XF(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 JF="function"==typeof setTimeout?setTimeout:void 0,QF="function"==typeof clearTimeout?clearTimeout:void 0,ZF="function"==typeof Promise?Promise:void 0,ej="function"==typeof queueMicrotask?queueMicrotask:void 0!==ZF?function(e){return ZF.resolve(null).then(e).catch(tj)}:JF;function tj(e){setTimeout((function(){throw e}))}function nj(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void PP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);PP(t)}function rj(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 ij(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 oj=Math.random().toString(36).slice(2),aj="__reactFiber$"+oj,sj="__reactProps$"+oj,lj="__reactContainer$"+oj,uj="__reactEvents$"+oj,cj="__reactListeners$"+oj,dj="__reactHandles$"+oj;function fj(e){var t=e[aj];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lj]||n[aj]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ij(e);null!==e;){if(n=e[aj])return n;e=ij(e)}return t}n=(e=n).parentNode}return null}function hj(e){return!(e=e[aj]||e[lj])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pj(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(tI(33))}function mj(e){return e[sj]||null}var gj=[],yj=-1;function vj(e){return{current:e}}function bj(e){0>yj||(e.current=gj[yj],gj[yj]=null,yj--)}function xj(e,t){yj++,gj[yj]=e.current,e.current=t}var wj={},Sj=vj(wj),Mj=vj(!1),kj=wj;function Cj(e,t){var n=e.type.contextTypes;if(!n)return wj;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qj(e){return null!=(e=e.childContextTypes)}function Ej(){bj(Mj),bj(Sj)}function Dj(e,t,n){if(Sj.current!==wj)throw Error(tI(168));xj(Sj,t),xj(Mj,n)}function Tj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(tI(108,FI(e)||"Unknown",i));return _I({},n,r)}function Nj(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wj,kj=Sj.current,xj(Sj,e),xj(Mj,Mj.current),!0}function Oj(e,t,n){var r=e.stateNode;if(!r)throw Error(tI(169));n?(e=Tj(e,t,kj),r.__reactInternalMemoizedMergedChildContext=e,bj(Mj),bj(Sj),xj(Sj,e)):bj(Mj),xj(Mj,n)}var Aj=null,_j=!1,Lj=!1;function Ij(e){null===Aj?Aj=[e]:Aj.push(e)}function Rj(){if(!Lj&&null!==Aj){Lj=!0;var e=0,t=pP;try{var n=Aj;for(pP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Aj=null,_j=!1}catch(t){throw null!==Aj&&(Aj=Aj.slice(e+1)),HR(KR,Rj),t}finally{pP=t,Lj=!1}}return null}var Pj=[],zj=0,Fj=null,jj=0,Bj=[],Hj=0,Vj=null,$j=1,Wj="";function Uj(e,t){Pj[zj++]=jj,Pj[zj++]=Fj,Fj=e,jj=t}function Yj(e,t,n){Bj[Hj++]=$j,Bj[Hj++]=Wj,Bj[Hj++]=Vj,Vj=e;var r=$j;e=Wj;var i=32-tP(r)-1;r&=~(1<<i),n+=1;var o=32-tP(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,$j=1<<32-tP(t)+i|n<<i|r,Wj=o+e}else $j=1<<o|n<<i|r,Wj=e}function Kj(e){null!==e.return&&(Uj(e,1),Yj(e,1,0))}function Gj(e){for(;e===Fj;)Fj=Pj[--zj],Pj[zj]=null,jj=Pj[--zj],Pj[zj]=null;for(;e===Vj;)Vj=Bj[--Hj],Bj[Hj]=null,Wj=Bj[--Hj],Bj[Hj]=null,$j=Bj[--Hj],Bj[Hj]=null}var Xj=null,Jj=null,Qj=!1,Zj=null;function eB(e,t){var n=CW(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 tB(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,Xj=e,Jj=rj(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Xj=e,Jj=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Vj?{id:$j,overflow:Wj}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=CW(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Xj=e,Jj=null,!0);default:return!1}}function nB(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function rB(e){if(Qj){var t=Jj;if(t){var n=t;if(!tB(e,t)){if(nB(e))throw Error(tI(418));t=rj(n.nextSibling);var r=Xj;t&&tB(e,t)?eB(r,n):(e.flags=-4097&e.flags|2,Qj=!1,Xj=e)}}else{if(nB(e))throw Error(tI(418));e.flags=-4097&e.flags|2,Qj=!1,Xj=e}}}function iB(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Xj=e}function oB(e){if(e!==Xj)return!1;if(!Qj)return iB(e),Qj=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!XF(e.type,e.memoizedProps)),t&&(t=Jj)){if(nB(e))throw aB(),Error(tI(418));for(;t;)eB(e,t),t=rj(t.nextSibling)}if(iB(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(tI(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Jj=rj(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Jj=null}}else Jj=Xj?rj(e.stateNode.nextSibling):null;return!0}function aB(){for(var e=Jj;e;)e=rj(e.nextSibling)}function sB(){Jj=Xj=null,Qj=!1}function lB(e){null===Zj?Zj=[e]:Zj.push(e)}var uB=gI.ReactCurrentBatchConfig;function cB(e,t){if(e&&e.defaultProps){for(var n in t=_I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var dB=vj(null),fB=null,hB=null,pB=null;function mB(){pB=hB=fB=null}function gB(e){var t=dB.current;bj(dB),e._currentValue=t}function yB(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 vB(e,t){fB=e,pB=hB=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(hV=!0),e.firstContext=null)}function bB(e){var t=e._currentValue;if(pB!==e)if(e={context:e,memoizedValue:t,next:null},null===hB){if(null===fB)throw Error(tI(308));hB=e,fB.dependencies={lanes:0,firstContext:e}}else hB=hB.next=e;return t}var xB=null;function wB(e){null===xB?xB=[e]:xB.push(e)}function SB(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,wB(t)):(n.next=i.next,i.next=n),t.interleaved=n,MB(e,r)}function MB(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 kB=!1;function CB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qB(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 EB(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function DB(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&S$)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,MB(e,n)}return null===(i=r.interleaved)?(t.next=t,wB(r)):(t.next=i.next,i.next=t),r.interleaved=t,MB(e,n)}function TB(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,hP(e,n)}}function NB(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=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===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function OB(e,t,n,r){var i=e.updateQueue;kB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=_I({},d,f);break e;case 2:kB=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);N$|=a,e.lanes=a,e.memoizedState=d}}function AB(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(tI(191,i));i.call(r)}}}var _B=(new ZL.Component).refs;function LB(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:_I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var IB={isMounted:function(e){return!!(e=e._reactInternals)&&PR(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=K$(),i=G$(e),o=EB(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=DB(e,o,i))&&(X$(t,e,i,r),TB(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=K$(),i=G$(e),o=EB(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=DB(e,o,i))&&(X$(t,e,i,r),TB(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=K$(),r=G$(e),i=EB(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=DB(e,i,r))&&(X$(t,e,r,n),TB(t,e,r))}};function RB(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!nF(n,r)||!nF(i,o))}function PB(e,t,n){var r=!1,i=wj,o=t.contextType;return"object"==typeof o&&null!==o?o=bB(o):(i=qj(t)?kj:Sj.current,o=(r=null!=(r=t.contextTypes))?Cj(e,i):wj),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=IB,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function zB(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&&IB.enqueueReplaceState(t,t.state,null)}function FB(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=_B,CB(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=bB(o):(o=qj(t)?kj:Sj.current,i.context=Cj(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(LB(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&IB.enqueueReplaceState(i,i.state,null),OB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function jB(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(tI(309));var r=n.stateNode}if(!r)throw Error(tI(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===_B&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(tI(284));if(!n._owner)throw Error(tI(290,e))}return e}function BB(e,t){throw e=Object.prototype.toString.call(t),Error(tI(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function HB(e){return(0,e._init)(e._payload)}function VB(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 i(e,t){return(e=EW(e,t)).index=0,e.sibling=null,e}function o(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 s(e,t,n,r){return null===t||6!==t.tag?((t=OW(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===bI?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===DI&&HB(o)===t.type)?((r=i(t,n.props)).ref=jB(e,t,n),r.return=e,r):((r=DW(n.type,n.key,n.props,null,e.mode,r)).ref=jB(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=AW(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=TW(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=OW(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case yI:return(n=DW(t.type,t.key,t.props,null,e.mode,n)).ref=jB(e,null,t),n.return=e,n;case vI:return(t=AW(t,e.mode,n)).return=e,t;case DI:return d(e,(0,t._init)(t._payload),n)}if(JI(t)||OI(t))return(t=TW(t,e.mode,n,null)).return=e,t;BB(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case yI:return n.key===i?l(e,t,n,r):null;case vI:return n.key===i?u(e,t,n,r):null;case DI:return f(e,t,(i=n._init)(n._payload),r)}if(JI(n)||OI(n))return null!==i?null:c(e,t,n,r,null);BB(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case yI:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case vI:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case DI:return h(e,t,n,(0,r._init)(r._payload),i)}if(JI(r)||OI(r))return c(t,e=e.get(n)||null,r,i,null);BB(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===s.length)return n(i,p),Qj&&Uj(i,m),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return Qj&&Uj(i,m),u}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),Qj&&Uj(i,m),u}function m(i,a,s,l){var u=OI(s);if("function"!=typeof u)throw Error(tI(150));if(null==(s=u.call(s)))throw Error(tI(151));for(var c=u=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=g}if(y.done)return n(i,p),Qj&&Uj(i,m),u;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return Qj&&Uj(i,m),u}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),Qj&&Uj(i,m),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===bI&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case yI:e:{for(var u=s.key,c=o;null!==c;){if(c.key===u){if((u=s.type)===bI){if(7===c.tag){n(r,c.sibling),(o=i(c,s.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===DI&&HB(u)===c.type){n(r,c.sibling),(o=i(c,s.props)).ref=jB(r,c,s),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===bI?((o=TW(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=DW(s.type,s.key,s.props,null,r.mode,l)).ref=jB(r,o,s),l.return=r,r=l)}return a(r);case vI:e:{for(c=s.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=AW(s,r.mode,l)).return=r,r=o}return a(r);case DI:return e(r,o,(c=s._init)(s._payload),l)}if(JI(s))return p(r,o,s,l);if(OI(s))return m(r,o,s,l);BB(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=OW(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var $B=VB(!0),WB=VB(!1),UB={},YB=vj(UB),KB=vj(UB),GB=vj(UB);function XB(e){if(e===UB)throw Error(tI(174));return e}function JB(e,t){switch(xj(GB,t),xj(KB,e),xj(YB,UB),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:iR(null,"");break;default:t=iR(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}bj(YB),xj(YB,t)}function QB(){bj(YB),bj(KB),bj(GB)}function ZB(e){XB(GB.current);var t=XB(YB.current),n=iR(t,e.type);t!==n&&(xj(KB,e),xj(YB,n))}function eH(e){KB.current===e&&(bj(YB),bj(KB))}var tH=vj(0);function nH(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(0!=(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 rH=[];function iH(){for(var e=0;e<rH.length;e++)rH[e]._workInProgressVersionPrimary=null;rH.length=0}var oH=gI.ReactCurrentDispatcher,aH=gI.ReactCurrentBatchConfig,sH=0,lH=null,uH=null,cH=null,dH=!1,fH=!1,hH=0,pH=0;function mH(){throw Error(tI(321))}function gH(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tF(e[n],t[n]))return!1;return!0}function yH(e,t,n,r,i,o){if(sH=o,lH=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oH.current=null===e||null===e.memoizedState?eV:tV,e=n(r,i),fH){o=0;do{if(fH=!1,hH=0,25<=o)throw Error(tI(301));o+=1,cH=uH=null,t.updateQueue=null,oH.current=nV,e=n(r,i)}while(fH)}if(oH.current=ZH,t=null!==uH&&null!==uH.next,sH=0,cH=uH=lH=null,dH=!1,t)throw Error(tI(300));return e}function vH(){var e=0!==hH;return hH=0,e}function bH(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cH?lH.memoizedState=cH=e:cH=cH.next=e,cH}function xH(){if(null===uH){var e=lH.alternate;e=null!==e?e.memoizedState:null}else e=uH.next;var t=null===cH?lH.memoizedState:cH.next;if(null!==t)cH=t,uH=e;else{if(null===e)throw Error(tI(310));e={memoizedState:(uH=e).memoizedState,baseState:uH.baseState,baseQueue:uH.baseQueue,queue:uH.queue,next:null},null===cH?lH.memoizedState=cH=e:cH=cH.next=e}return cH}function wH(e,t){return"function"==typeof t?t(e):t}function SH(e){var t=xH(),n=t.queue;if(null===n)throw Error(tI(311));n.lastRenderedReducer=e;var r=uH,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((sH&c)===c)null!==l&&(l=l.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===l?(s=l=d,a=r):l=l.next=d,lH.lanes|=c,N$|=c}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=s,tF(r,t.memoizedState)||(hV=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,lH.lanes|=o,N$|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function MH(e){var t=xH(),n=t.queue;if(null===n)throw Error(tI(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);tF(o,t.memoizedState)||(hV=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function kH(){}function CH(e,t){var n=lH,r=xH(),i=t(),o=!tF(r.memoizedState,i);if(o&&(r.memoizedState=i,hV=!0),r=r.queue,PH(DH.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==cH&&1&cH.memoizedState.tag){if(n.flags|=2048,AH(9,EH.bind(null,n,r,i,t),void 0,null),null===M$)throw Error(tI(349));0!=(30&sH)||qH(n,t,i)}return i}function qH(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=lH.updateQueue)?(t={lastEffect:null,stores:null},lH.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function EH(e,t,n,r){t.value=n,t.getSnapshot=r,TH(t)&&NH(e)}function DH(e,t,n){return n((function(){TH(t)&&NH(e)}))}function TH(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tF(e,n)}catch(e){return!0}}function NH(e){var t=MB(e,1);null!==t&&X$(t,e,1,-1)}function OH(e){var t=bH();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wH,lastRenderedState:e},t.queue=e,e=e.dispatch=GH.bind(null,lH,e),[t.memoizedState,e]}function AH(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=lH.updateQueue)?(t={lastEffect:null,stores:null},lH.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 _H(){return xH().memoizedState}function LH(e,t,n,r){var i=bH();lH.flags|=e,i.memoizedState=AH(1|t,n,void 0,void 0===r?null:r)}function IH(e,t,n,r){var i=xH();r=void 0===r?null:r;var o=void 0;if(null!==uH){var a=uH.memoizedState;if(o=a.destroy,null!==r&&gH(r,a.deps))return void(i.memoizedState=AH(t,n,o,r))}lH.flags|=e,i.memoizedState=AH(1|t,n,o,r)}function RH(e,t){return LH(8390656,8,e,t)}function PH(e,t){return IH(2048,8,e,t)}function zH(e,t){return IH(4,2,e,t)}function FH(e,t){return IH(4,4,e,t)}function jH(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 BH(e,t,n){return n=null!=n?n.concat([e]):null,IH(4,4,jH.bind(null,t,e),n)}function HH(){}function VH(e,t){var n=xH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gH(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $H(e,t){var n=xH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gH(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function WH(e,t,n){return 0==(21&sH)?(e.baseState&&(e.baseState=!1,hV=!0),e.memoizedState=n):(tF(n,t)||(n=cP(),lH.lanes|=n,N$|=n,e.baseState=!0),t)}function UH(e,t){var n=pP;pP=0!==n&&4>n?n:4,e(!0);var r=aH.transition;aH.transition={};try{e(!1),t()}finally{pP=n,aH.transition=r}}function YH(){return xH().memoizedState}function KH(e,t,n){var r=G$(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},XH(e))JH(t,n);else if(null!==(n=SB(e,t,n,r))){X$(n,e,r,K$()),QH(n,t,r)}}function GH(e,t,n){var r=G$(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(XH(e))JH(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,tF(s,a)){var l=t.interleaved;return null===l?(i.next=i,wB(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=SB(e,t,i,r))&&(X$(n,e,r,i=K$()),QH(n,t,r))}}function XH(e){var t=e.alternate;return e===lH||null!==t&&t===lH}function JH(e,t){fH=dH=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QH(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,hP(e,n)}}var ZH={readContext:bB,useCallback:mH,useContext:mH,useEffect:mH,useImperativeHandle:mH,useInsertionEffect:mH,useLayoutEffect:mH,useMemo:mH,useReducer:mH,useRef:mH,useState:mH,useDebugValue:mH,useDeferredValue:mH,useTransition:mH,useMutableSource:mH,useSyncExternalStore:mH,useId:mH,unstable_isNewReconciler:!1},eV={readContext:bB,useCallback:function(e,t){return bH().memoizedState=[e,void 0===t?null:t],e},useContext:bB,useEffect:RH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,LH(4194308,4,jH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return LH(4194308,4,e,t)},useInsertionEffect:function(e,t){return LH(4,2,e,t)},useMemo:function(e,t){var n=bH();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bH();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=KH.bind(null,lH,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bH().memoizedState=e},useState:OH,useDebugValue:HH,useDeferredValue:function(e){return bH().memoizedState=e},useTransition:function(){var e=OH(!1),t=e[0];return e=UH.bind(null,e[1]),bH().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lH,i=bH();if(Qj){if(void 0===n)throw Error(tI(407));n=n()}else{if(n=t(),null===M$)throw Error(tI(349));0!=(30&sH)||qH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,RH(DH.bind(null,r,o,e),[e]),r.flags|=2048,AH(9,EH.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=bH(),t=M$.identifierPrefix;if(Qj){var n=Wj;t=":"+t+"R"+(n=($j&~(1<<32-tP($j)-1)).toString(32)+n),0<(n=hH++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pH++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tV={readContext:bB,useCallback:VH,useContext:bB,useEffect:PH,useImperativeHandle:BH,useInsertionEffect:zH,useLayoutEffect:FH,useMemo:$H,useReducer:SH,useRef:_H,useState:function(){return SH(wH)},useDebugValue:HH,useDeferredValue:function(e){return WH(xH(),uH.memoizedState,e)},useTransition:function(){return[SH(wH)[0],xH().memoizedState]},useMutableSource:kH,useSyncExternalStore:CH,useId:YH,unstable_isNewReconciler:!1},nV={readContext:bB,useCallback:VH,useContext:bB,useEffect:PH,useImperativeHandle:BH,useInsertionEffect:zH,useLayoutEffect:FH,useMemo:$H,useReducer:MH,useRef:_H,useState:function(){return MH(wH)},useDebugValue:HH,useDeferredValue:function(e){var t=xH();return null===uH?t.memoizedState=e:WH(t,uH.memoizedState,e)},useTransition:function(){return[MH(wH)[0],xH().memoizedState]},useMutableSource:kH,useSyncExternalStore:CH,useId:YH,unstable_isNewReconciler:!1};function rV(e,t){try{var n="",r=t;do{n+=PI(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function iV(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function oV(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var aV="function"==typeof WeakMap?WeakMap:Map;function sV(e,t,n){(n=EB(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){z$||(z$=!0,F$=r),oV(0,t)},n}function lV(e,t,n){(n=EB(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){oV(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){oV(0,t),"function"!=typeof r&&(null===j$?j$=new Set([this]):j$.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function uV(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new aV;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=bW.bind(null,e,t,n),t.then(e,e))}function cV(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 dV(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=EB(-1,1)).tag=2,DB(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var fV=gI.ReactCurrentOwner,hV=!1;function pV(e,t,n,r){t.child=null===e?WB(t,null,n,r):$B(t,e.child,n,r)}function mV(e,t,n,r,i){n=n.render;var o=t.ref;return vB(t,i),r=yH(e,t,n,r,o,i),n=vH(),null===e||hV?(Qj&&n&&Kj(t),t.flags|=1,pV(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zV(e,t,i))}function gV(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||qW(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=DW(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,yV(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:nF)(a,r)&&e.ref===t.ref)return zV(e,t,i)}return t.flags|=1,(e=EW(o,r)).ref=t.ref,e.return=t,t.child=e}function yV(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(nF(o,r)&&e.ref===t.ref){if(hV=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,zV(e,t,i);0!=(131072&e.flags)&&(hV=!0)}}return xV(e,t,n,r,i)}function vV(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xj(E$,q$),q$|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xj(E$,q$),q$|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xj(E$,q$),q$|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xj(E$,q$),q$|=r;return pV(e,t,i,n),t.child}function bV(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xV(e,t,n,r,i){var o=qj(n)?kj:Sj.current;return o=Cj(t,o),vB(t,i),n=yH(e,t,n,r,o,i),r=vH(),null===e||hV?(Qj&&r&&Kj(t),t.flags|=1,pV(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zV(e,t,i))}function wV(e,t,n,r,i){if(qj(n)){var o=!0;Nj(t)}else o=!1;if(vB(t,i),null===t.stateNode)PV(e,t),PB(t,n,r),FB(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=bB(u):u=Cj(t,u=qj(n)?kj:Sj.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&zB(t,a,r,u),kB=!1;var f=t.memoizedState;a.state=f,OB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Mj.current||kB?("function"==typeof c&&(LB(t,n,c,r),l=t.memoizedState),(s=kB||RB(t,n,s,r,f,l,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=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,qB(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:cB(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=bB(l):l=Cj(t,l=qj(n)?kj:Sj.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&zB(t,a,r,l),kB=!1,f=t.memoizedState,a.state=f,OB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Mj.current||kB?("function"==typeof h&&(LB(t,n,h,r),p=t.memoizedState),(u=kB||RB(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return SV(e,t,n,r,o,i)}function SV(e,t,n,r,i,o){bV(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Oj(t,n,!1),zV(e,t,o);r=t.stateNode,fV.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=$B(t,e.child,null,o),t.child=$B(t,null,s,o)):pV(e,t,s,o),t.memoizedState=r.state,i&&Oj(t,n,!0),t.child}function MV(e){var t=e.stateNode;t.pendingContext?Dj(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Dj(0,t.context,!1),JB(e,t.containerInfo)}function kV(e,t,n,r,i){return sB(),lB(i),t.flags|=256,pV(e,t,n,r),t.child}var CV,qV,EV,DV,TV={dehydrated:null,treeContext:null,retryLane:0};function NV(e){return{baseLanes:e,cachePool:null,transitions:null}}function OV(e,t,n){var r,i=t.pendingProps,o=tH.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),xj(tH,1&o),null===e)return rB(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=NW(s,i,0,null),e=TW(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=NV(n),t.memoizedState=TV,e):AV(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,_V(e,t,a,r=iV(Error(tI(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=NW({mode:"visible",children:r.children},i,0,null),(o=TW(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&$B(t,e.child,null,a),t.child.memoizedState=NV(a),t.memoizedState=TV,o);if(0==(1&t.mode))return _V(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,_V(e,t,a,r=iV(o=Error(tI(419)),r,void 0))}if(s=0!=(a&e.childLanes),hV||s){if(null!==(r=M$)){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,MB(e,i),X$(r,e,i,-1))}return uW(),_V(e,t,a,r=iV(Error(tI(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=wW.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Jj=rj(i.nextSibling),Xj=t,Qj=!0,Zj=null,null!==e&&(Bj[Hj++]=$j,Bj[Hj++]=Wj,Bj[Hj++]=Vj,$j=e.id,Wj=e.overflow,Vj=t),t=AV(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=EW(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=EW(r,a):(a=TW(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?NV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=TV,i}return e=(a=e.child).sibling,i=EW(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function AV(e,t){return(t=NW({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _V(e,t,n,r){return null!==r&&lB(r),$B(t,e.child,null,n),(e=AV(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function LV(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),yB(e.return,t,n)}function IV(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function RV(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(pV(e,t,r.children,n),0!=(2&(r=tH.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&LV(e,n,t);else if(19===e.tag)LV(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(xj(tH,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===nH(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),IV(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===nH(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}IV(t,!0,n,null,o);break;case"together":IV(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function PV(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zV(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),N$|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(tI(153));if(null!==t.child){for(n=EW(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=EW(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function FV(e,t){if(!Qj)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 jV(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function BV(e,t,n){var r=t.pendingProps;switch(Gj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jV(t),null;case 1:case 17:return qj(t.type)&&Ej(),jV(t),null;case 3:return r=t.stateNode,QB(),bj(Mj),bj(Sj),iH(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(oB(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Zj&&(eW(Zj),Zj=null))),qV(e,t),jV(t),null;case 5:eH(t);var i=XB(GB.current);if(n=t.type,null!==e&&null!=t.stateNode)EV(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(tI(166));return jV(t),null}if(e=XB(YB.current),oB(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[aj]=t,r[sj]=o,e=0!=(1&t.mode),n){case"dialog":_F("cancel",r),_F("close",r);break;case"iframe":case"object":case"embed":_F("load",r);break;case"video":case"audio":for(i=0;i<TF.length;i++)_F(TF[i],r);break;case"source":_F("error",r);break;case"img":case"image":case"link":_F("error",r),_F("load",r);break;case"details":_F("toggle",r);break;case"input":UI(r,o),_F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},_F("invalid",r);break;case"textarea":eR(r,o),_F("invalid",r)}for(var a in hR(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&UF(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&UF(r.textContent,s,e),i=["children",""+s]):rI.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&_F("scroll",r)}switch(n){case"input":HI(r),GI(r,o,!0);break;case"textarea":HI(r),nR(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=YF)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=rR(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[aj]=t,e[sj]=r,CV(e,t,!1,!1),t.stateNode=e;e:{switch(a=pR(n,r),n){case"dialog":_F("cancel",e),_F("close",e),i=r;break;case"iframe":case"object":case"embed":_F("load",e),i=r;break;case"video":case"audio":for(i=0;i<TF.length;i++)_F(TF[i],e);i=r;break;case"source":_F("error",e),i=r;break;case"img":case"image":case"link":_F("error",e),_F("load",e),i=r;break;case"details":_F("toggle",e),i=r;break;case"input":UI(e,r),i=WI(e,r),_F("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=_I({},r,{value:void 0}),_F("invalid",e);break;case"textarea":eR(e,r),i=ZI(e,r),_F("invalid",e)}for(o in hR(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?dR(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&aR(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&sR(e,l):"number"==typeof l&&sR(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(rI.hasOwnProperty(o)?null!=l&&"onScroll"===o&&_F("scroll",e):null!=l&&mI(e,o,l,a))}switch(n){case"input":HI(e),GI(e,r,!1);break;case"textarea":HI(e),nR(e);break;case"option":null!=r.value&&e.setAttribute("value",""+jI(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?QI(e,!!r.multiple,o,!1):null!=r.defaultValue&&QI(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=YF)}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 jV(t),null;case 6:if(e&&null!=t.stateNode)DV(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(tI(166));if(n=XB(GB.current),XB(YB.current),oB(t)){if(r=t.stateNode,n=t.memoizedProps,r[aj]=t,(o=r.nodeValue!==n)&&null!==(e=Xj))switch(e.tag){case 3:UF(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&UF(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[aj]=t,t.stateNode=r}return jV(t),null;case 13:if(bj(tH),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Qj&&null!==Jj&&0!=(1&t.mode)&&0==(128&t.flags))aB(),sB(),t.flags|=98560,o=!1;else if(o=oB(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(tI(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(tI(317));o[aj]=t}else sB(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;jV(t),o=!1}else null!==Zj&&(eW(Zj),Zj=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&tH.current)?0===D$&&(D$=3):uW())),null!==t.updateQueue&&(t.flags|=4),jV(t),null);case 4:return QB(),qV(e,t),null===e&&RF(t.stateNode.containerInfo),jV(t),null;case 10:return gB(t.type._context),jV(t),null;case 19:if(bj(tH),null===(o=t.memoizedState))return jV(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)FV(o,!1);else{if(0!==D$||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=nH(e))){for(t.flags|=128,FV(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xj(tH,1&tH.current|2),t.child}e=e.sibling}null!==o.tail&&UR()>R$&&(t.flags|=128,r=!0,FV(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=nH(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),FV(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Qj)return jV(t),null}else 2*UR()-o.renderingStartTime>R$&&1073741824!==n&&(t.flags|=128,r=!0,FV(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=UR(),t.sibling=null,n=tH.current,xj(tH,r?1&n|2:1&n),t):(jV(t),null);case 22:case 23:return oW(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&q$)&&(jV(t),6&t.subtreeFlags&&(t.flags|=8192)):jV(t),null;case 24:case 25:return null}throw Error(tI(156,t.tag))}function HV(e,t){switch(Gj(t),t.tag){case 1:return qj(t.type)&&Ej(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return QB(),bj(Mj),bj(Sj),iH(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return eH(t),null;case 13:if(bj(tH),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(tI(340));sB()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return bj(tH),null;case 4:return QB(),null;case 10:return gB(t.type._context),null;case 22:case 23:return oW(),null;default:return null}}CV=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}},qV=function(){},EV=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,XB(YB.current);var o,a=null;switch(n){case"input":i=WI(e,i),r=WI(e,r),a=[];break;case"select":i=_I({},i,{value:void 0}),r=_I({},r,{value:void 0}),a=[];break;case"textarea":i=ZI(e,i),r=ZI(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=YF)}for(u in hR(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(rI.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(rI.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&_F("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},DV=function(e,t,n,r){n!==r&&(t.flags|=4)};var VV=!1,$V=!1,WV="function"==typeof WeakSet?WeakSet:Set,UV=null;function YV(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){vW(e,t,n)}else n.current=null}function KV(e,t,n){try{n()}catch(n){vW(e,t,n)}}var GV=!1;function XV(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&KV(t,n,o)}i=i.next}while(i!==r)}}function JV(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 QV(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 ZV(e){var t=e.alternate;null!==t&&(e.alternate=null,ZV(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[aj],delete t[sj],delete t[uj],delete t[cj],delete t[dj])),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 e$(e){return 5===e.tag||3===e.tag||4===e.tag}function t$(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||e$(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 n$(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=YF));else if(4!==r&&null!==(e=e.child))for(n$(e,t,n),e=e.sibling;null!==e;)n$(e,t,n),e=e.sibling}function r$(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(r$(e,t,n),e=e.sibling;null!==e;)r$(e,t,n),e=e.sibling}var i$=null,o$=!1;function a$(e,t,n){for(n=n.child;null!==n;)s$(e,t,n),n=n.sibling}function s$(e,t,n){if(eP&&"function"==typeof eP.onCommitFiberUnmount)try{eP.onCommitFiberUnmount(ZR,n)}catch(e){}switch(n.tag){case 5:$V||YV(n,t);case 6:var r=i$,i=o$;i$=null,a$(e,t,n),o$=i,null!==(i$=r)&&(o$?(e=i$,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):i$.removeChild(n.stateNode));break;case 18:null!==i$&&(o$?(e=i$,n=n.stateNode,8===e.nodeType?nj(e.parentNode,n):1===e.nodeType&&nj(e,n),PP(e)):nj(i$,n.stateNode));break;case 4:r=i$,i=o$,i$=n.stateNode.containerInfo,o$=!0,a$(e,t,n),i$=r,o$=i;break;case 0:case 11:case 14:case 15:if(!$V&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&KV(n,t,a),i=i.next}while(i!==r)}a$(e,t,n);break;case 1:if(!$V&&(YV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){vW(n,t,e)}a$(e,t,n);break;case 21:a$(e,t,n);break;case 22:1&n.mode?($V=(r=$V)||null!==n.memoizedState,a$(e,t,n),$V=r):a$(e,t,n);break;default:a$(e,t,n)}}function l$(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new WV),t.forEach((function(t){var r=SW.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function u$(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:i$=s.stateNode,o$=!1;break e;case 3:case 4:i$=s.stateNode.containerInfo,o$=!0;break e}s=s.return}if(null===i$)throw Error(tI(160));s$(o,a,i),i$=null,o$=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){vW(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)c$(t,e),t=t.sibling}function c$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(u$(t,e),d$(e),4&r){try{XV(3,e,e.return),JV(3,e)}catch(t){vW(e,e.return,t)}try{XV(5,e,e.return)}catch(t){vW(e,e.return,t)}}break;case 1:u$(t,e),d$(e),512&r&&null!==n&&YV(n,n.return);break;case 5:if(u$(t,e),d$(e),512&r&&null!==n&&YV(n,n.return),32&e.flags){var i=e.stateNode;try{sR(i,"")}catch(t){vW(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&YI(i,o),pR(s,a);var u=pR(s,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?dR(i,d):"dangerouslySetInnerHTML"===c?aR(i,d):"children"===c?sR(i,d):mI(i,c,d,u)}switch(s){case"input":KI(i,o);break;case"textarea":tR(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?QI(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?QI(i,!!o.multiple,o.defaultValue,!0):QI(i,!!o.multiple,o.multiple?[]:"",!1))}i[sj]=o}catch(t){vW(e,e.return,t)}}break;case 6:if(u$(t,e),d$(e),4&r){if(null===e.stateNode)throw Error(tI(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){vW(e,e.return,t)}}break;case 3:if(u$(t,e),d$(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{PP(t.containerInfo)}catch(t){vW(e,e.return,t)}break;case 4:default:u$(t,e),d$(e);break;case 13:u$(t,e),d$(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(I$=UR())),4&r&&l$(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?($V=(u=$V)||c,u$(t,e),$V=u):u$(t,e),d$(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(UV=e,c=e.child;null!==c;){for(d=UV=c;null!==UV;){switch(h=(f=UV).child,f.tag){case 0:case 11:case 14:case 15:XV(4,f,f.return);break;case 1:YV(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){vW(r,n,e)}}break;case 5:YV(f,f.return);break;case 22:if(null!==f.memoizedState){m$(d);continue}}null!==h?(h.return=f,UV=h):m$(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=cR("display",a))}catch(t){vW(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){vW(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:u$(t,e),d$(e),4&r&&l$(e);case 21:}}function d$(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(e$(n)){var r=n;break e}n=n.return}throw Error(tI(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(sR(i,""),r.flags&=-33),r$(e,t$(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;n$(e,t$(e),o);break;default:throw Error(tI(161))}}catch(t){vW(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function f$(e,t,n){UV=e,h$(e)}function h$(e,t,n){for(var r=0!=(1&e.mode);null!==UV;){var i=UV,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||VV;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||$V;s=VV;var u=$V;if(VV=a,($V=l)&&!u)for(UV=i;null!==UV;)l=(a=UV).child,22===a.tag&&null!==a.memoizedState?g$(i):null!==l?(l.return=a,UV=l):g$(i);for(;null!==o;)UV=o,h$(o),o=o.sibling;UV=i,VV=s,$V=u}p$(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,UV=o):p$(e)}}function p$(e){for(;null!==UV;){var t=UV;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$V||JV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$V)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:cB(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&AB(t,o,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}AB(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.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&&PP(d)}}}break;default:throw Error(tI(163))}$V||512&t.flags&&QV(t)}catch(e){vW(t,t.return,e)}}if(t===e){UV=null;break}if(null!==(n=t.sibling)){n.return=t.return,UV=n;break}UV=t.return}}function m$(e){for(;null!==UV;){var t=UV;if(t===e){UV=null;break}var n=t.sibling;if(null!==n){n.return=t.return,UV=n;break}UV=t.return}}function g$(e){for(;null!==UV;){var t=UV;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{JV(4,t)}catch(e){vW(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){vW(t,i,e)}}var o=t.return;try{QV(t)}catch(e){vW(t,o,e)}break;case 5:var a=t.return;try{QV(t)}catch(e){vW(t,a,e)}}}catch(e){vW(t,t.return,e)}if(t===e){UV=null;break}var s=t.sibling;if(null!==s){s.return=t.return,UV=s;break}UV=t.return}}var y$,v$=Math.ceil,b$=gI.ReactCurrentDispatcher,x$=gI.ReactCurrentOwner,w$=gI.ReactCurrentBatchConfig,S$=0,M$=null,k$=null,C$=0,q$=0,E$=vj(0),D$=0,T$=null,N$=0,O$=0,A$=0,_$=null,L$=null,I$=0,R$=1/0,P$=null,z$=!1,F$=null,j$=null,B$=!1,H$=null,V$=0,$$=0,W$=null,U$=-1,Y$=0;function K$(){return 0!=(6&S$)?UR():-1!==U$?U$:U$=UR()}function G$(e){return 0==(1&e.mode)?1:0!=(2&S$)&&0!==C$?C$&-C$:null!==uB.transition?(0===Y$&&(Y$=cP()),Y$):0!==(e=pP)?e:e=void 0===(e=window.event)?16:WP(e.type)}function X$(e,t,n,r){if(50<$$)throw $$=0,W$=null,Error(tI(185));fP(e,n,r),0!=(2&S$)&&e===M$||(e===M$&&(0==(2&S$)&&(O$|=n),4===D$&&tW(e,C$)),J$(e,r),1===n&&0===S$&&0==(1&t.mode)&&(R$=UR()+500,_j&&Rj()))}function J$(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-tP(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=lP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=sP(e,e===M$?C$:0);if(0===r)null!==n&&VR(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&VR(n),1===t)0===e.tag?function(e){_j=!0,Ij(e)}(nW.bind(null,e)):Ij(nW.bind(null,e)),ej((function(){0==(6&S$)&&Rj()})),n=null;else{switch(mP(r)){case 1:n=KR;break;case 4:n=GR;break;case 16:default:n=XR;break;case 536870912:n=QR}n=MW(n,Q$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Q$(e,t){if(U$=-1,Y$=0,0!=(6&S$))throw Error(tI(327));var n=e.callbackNode;if(gW()&&e.callbackNode!==n)return null;var r=sP(e,e===M$?C$:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=cW(e,r);else{t=r;var i=S$;S$|=2;var o=lW();for(M$===e&&C$===t||(P$=null,R$=UR()+500,aW(e,t));;)try{fW();break}catch(t){sW(e,t)}mB(),b$.current=o,S$=i,null!==k$?t=0:(M$=null,C$=0,t=D$)}if(0!==t){if(2===t&&(0!==(i=uP(e))&&(r=i,t=Z$(e,i))),1===t)throw n=T$,aW(e,0),tW(e,r),J$(e,UR()),n;if(6===t)tW(e,r);else{if(i=e.current.alternate,0==(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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!tF(o(),i))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}(i)&&(2===(t=cW(e,r))&&(0!==(o=uP(e))&&(r=o,t=Z$(e,o))),1===t))throw n=T$,aW(e,0),tW(e,r),J$(e,UR()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(tI(345));case 2:case 5:mW(e,L$,P$);break;case 3:if(tW(e,r),(130023424&r)===r&&10<(t=I$+500-UR())){if(0!==sP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){K$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=JF(mW.bind(null,e,L$,P$),t);break}mW(e,L$,P$);break;case 4:if(tW(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-tP(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=UR()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v$(r/1960))-r)){e.timeoutHandle=JF(mW.bind(null,e,L$,P$),r);break}mW(e,L$,P$);break;default:throw Error(tI(329))}}}return J$(e,UR()),e.callbackNode===n?Q$.bind(null,e):null}function Z$(e,t){var n=_$;return e.current.memoizedState.isDehydrated&&(aW(e,t).flags|=256),2!==(e=cW(e,t))&&(t=L$,L$=n,null!==t&&eW(t)),e}function eW(e){null===L$?L$=e:L$.push.apply(L$,e)}function tW(e,t){for(t&=~A$,t&=~O$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tP(t),r=1<<n;e[n]=-1,t&=~r}}function nW(e){if(0!=(6&S$))throw Error(tI(327));gW();var t=sP(e,0);if(0==(1&t))return J$(e,UR()),null;var n=cW(e,t);if(0!==e.tag&&2===n){var r=uP(e);0!==r&&(t=r,n=Z$(e,r))}if(1===n)throw n=T$,aW(e,0),tW(e,t),J$(e,UR()),n;if(6===n)throw Error(tI(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mW(e,L$,P$),J$(e,UR()),null}function rW(e,t){var n=S$;S$|=1;try{return e(t)}finally{0===(S$=n)&&(R$=UR()+500,_j&&Rj())}}function iW(e){null!==H$&&0===H$.tag&&0==(6&S$)&&gW();var t=S$;S$|=1;var n=w$.transition,r=pP;try{if(w$.transition=null,pP=1,e)return e()}finally{pP=r,w$.transition=n,0==(6&(S$=t))&&Rj()}}function oW(){q$=E$.current,bj(E$)}function aW(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,QF(n)),null!==k$)for(n=k$.return;null!==n;){var r=n;switch(Gj(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ej();break;case 3:QB(),bj(Mj),bj(Sj),iH();break;case 5:eH(r);break;case 4:QB();break;case 13:case 19:bj(tH);break;case 10:gB(r.type._context);break;case 22:case 23:oW()}n=n.return}if(M$=e,k$=e=EW(e.current,null),C$=q$=t,D$=0,T$=null,A$=O$=N$=0,L$=_$=null,null!==xB){for(t=0;t<xB.length;t++)if(null!==(r=(n=xB[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}xB=null}return e}function sW(e,t){for(;;){var n=k$;try{if(mB(),oH.current=ZH,dH){for(var r=lH.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}dH=!1}if(sH=0,cH=uH=lH=null,fH=!1,hH=0,x$.current=null,null===n||null===n.return){D$=1,T$=t,k$=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=C$,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=cV(a);if(null!==h){h.flags&=-257,dV(h,a,s,0,t),1&h.mode&&uV(o,u,t),l=u;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){uV(o,u,t),uW();break e}l=Error(tI(426))}else if(Qj&&1&s.mode){var g=cV(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),dV(g,a,s,0,t),lB(rV(l,s));break e}}o=l=rV(l,s),4!==D$&&(D$=2),null===_$?_$=[o]:_$.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,NB(o,sV(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===j$||!j$.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,NB(o,lV(o,s,t));break e}}o=o.return}while(null!==o)}pW(n)}catch(e){t=e,k$===n&&null!==n&&(k$=n=n.return);continue}break}}function lW(){var e=b$.current;return b$.current=ZH,null===e?ZH:e}function uW(){0!==D$&&3!==D$&&2!==D$||(D$=4),null===M$||0==(268435455&N$)&&0==(268435455&O$)||tW(M$,C$)}function cW(e,t){var n=S$;S$|=2;var r=lW();for(M$===e&&C$===t||(P$=null,aW(e,t));;)try{dW();break}catch(t){sW(e,t)}if(mB(),S$=n,b$.current=r,null!==k$)throw Error(tI(261));return M$=null,C$=0,D$}function dW(){for(;null!==k$;)hW(k$)}function fW(){for(;null!==k$&&!$R();)hW(k$)}function hW(e){var t=y$(e.alternate,e,q$);e.memoizedProps=e.pendingProps,null===t?pW(e):k$=t,x$.current=null}function pW(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=BV(n,t,q$)))return void(k$=n)}else{if(null!==(n=HV(n,t)))return n.flags&=32767,void(k$=n);if(null===e)return D$=6,void(k$=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(k$=t);k$=t=e}while(null!==t);0===D$&&(D$=5)}function mW(e,t,n){var r=pP,i=w$.transition;try{w$.transition=null,pP=1,function(e,t,n,r){do{gW()}while(null!==H$);if(0!=(6&S$))throw Error(tI(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(tI(177));e.callbackNode=null,e.callbackPriority=0;var o=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 i=31-tP(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===M$&&(k$=M$=null,C$=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||B$||(B$=!0,MW(XR,(function(){return gW(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=w$.transition,w$.transition=null;var a=pP;pP=1;var s=S$;S$|=4,x$.current=null,function(e,t){if(KF=FP,sF(e=aF())){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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(GF={focusedElem:e,selectionRange:n},FP=!1,UV=t;null!==UV;)if(e=(t=UV).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,UV=e;else for(;null!==UV;){t=UV;try{var p=t.alternate;if(0!=(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!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:cB(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(tI(163))}}catch(e){vW(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,UV=e;break}UV=t.return}p=GV,GV=!1}(e,n),c$(n,e),lF(GF),FP=!!KF,GF=KF=null,e.current=n,f$(n),WR(),S$=s,pP=a,w$.transition=o}else e.current=n;if(B$&&(B$=!1,H$=e,V$=i),o=e.pendingLanes,0===o&&(j$=null),function(e){if(eP&&"function"==typeof eP.onCommitFiberRoot)try{eP.onCommitFiberRoot(ZR,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),J$(e,UR()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(z$)throw z$=!1,e=F$,F$=null,e;0!=(1&V$)&&0!==e.tag&&gW(),o=e.pendingLanes,0!=(1&o)?e===W$?$$++:($$=0,W$=e):$$=0,Rj()}(e,t,n,r)}finally{w$.transition=i,pP=r}return null}function gW(){if(null!==H$){var e=mP(V$),t=w$.transition,n=pP;try{if(w$.transition=null,pP=16>e?16:e,null===H$)var r=!1;else{if(e=H$,H$=null,V$=0,0!=(6&S$))throw Error(tI(331));var i=S$;for(S$|=4,UV=e.current;null!==UV;){var o=UV,a=o.child;if(0!=(16&UV.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(UV=u;null!==UV;){var c=UV;switch(c.tag){case 0:case 11:case 15:XV(8,c,o)}var d=c.child;if(null!==d)d.return=c,UV=d;else for(;null!==UV;){var f=(c=UV).sibling,h=c.return;if(ZV(c),c===u){UV=null;break}if(null!==f){f.return=h,UV=f;break}UV=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}UV=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,UV=a;else e:for(;null!==UV;){if(0!=(2048&(o=UV).flags))switch(o.tag){case 0:case 11:case 15:XV(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,UV=y;break e}UV=o.return}}var v=e.current;for(UV=v;null!==UV;){var b=(a=UV).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,UV=b;else e:for(a=v;null!==UV;){if(0!=(2048&(s=UV).flags))try{switch(s.tag){case 0:case 11:case 15:JV(9,s)}}catch(e){vW(s,s.return,e)}if(s===a){UV=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,UV=x;break e}UV=s.return}}if(S$=i,Rj(),eP&&"function"==typeof eP.onPostCommitFiberRoot)try{eP.onPostCommitFiberRoot(ZR,e)}catch(e){}r=!0}return r}finally{pP=n,w$.transition=t}}return!1}function yW(e,t,n){e=DB(e,t=sV(0,t=rV(n,t),1),1),t=K$(),null!==e&&(fP(e,1,t),J$(e,t))}function vW(e,t,n){if(3===e.tag)yW(e,e,n);else for(;null!==t;){if(3===t.tag){yW(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===j$||!j$.has(r))){t=DB(t,e=lV(t,e=rV(n,e),1),1),e=K$(),null!==t&&(fP(t,1,e),J$(t,e));break}}t=t.return}}function bW(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=K$(),e.pingedLanes|=e.suspendedLanes&n,M$===e&&(C$&n)===n&&(4===D$||3===D$&&(130023424&C$)===C$&&500>UR()-I$?aW(e,0):A$|=n),J$(e,t)}function xW(e,t){0===t&&(0==(1&e.mode)?t=1:(t=oP,0==(130023424&(oP<<=1))&&(oP=4194304)));var n=K$();null!==(e=MB(e,t))&&(fP(e,t,n),J$(e,n))}function wW(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xW(e,n)}function SW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(tI(314))}null!==r&&r.delete(t),xW(e,n)}function MW(e,t){return HR(e,t)}function kW(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 CW(e,t,n,r){return new kW(e,t,n,r)}function qW(e){return!(!(e=e.prototype)||!e.isReactComponent)}function EW(e,t){var n=e.alternate;return null===n?((n=CW(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 DW(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)qW(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case bI:return TW(n.children,i,o,t);case xI:a=8,i|=8;break;case wI:return(e=CW(12,n,t,2|i)).elementType=wI,e.lanes=o,e;case CI:return(e=CW(13,n,t,i)).elementType=CI,e.lanes=o,e;case qI:return(e=CW(19,n,t,i)).elementType=qI,e.lanes=o,e;case TI:return NW(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case SI:a=10;break e;case MI:a=9;break e;case kI:a=11;break e;case EI:a=14;break e;case DI:a=16,r=null;break e}throw Error(tI(130,null==e?e:typeof e,""))}return(t=CW(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function TW(e,t,n,r){return(e=CW(7,e,r,t)).lanes=n,e}function NW(e,t,n,r){return(e=CW(22,e,r,t)).elementType=TI,e.lanes=n,e.stateNode={isHidden:!1},e}function OW(e,t,n){return(e=CW(6,e,null,t)).lanes=n,e}function AW(e,t,n){return(t=CW(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _W(e,t,n,r,i){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=dP(0),this.expirationTimes=dP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function LW(e,t,n,r,i,o,a,s,l){return e=new _W(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=CW(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},CB(o),e}function IW(e){if(!e)return wj;e:{if(PR(e=e._reactInternals)!==e||1!==e.tag)throw Error(tI(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qj(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(tI(171))}if(1===e.tag){var n=e.type;if(qj(n))return Tj(e,n,t)}return t}function RW(e,t,n,r,i,o,a,s,l){return(e=LW(n,r,!0,e,0,o,0,s,l)).context=IW(null),n=e.current,(o=EB(r=K$(),i=G$(n))).callback=null!=t?t:null,DB(n,o,i),e.current.lanes=i,fP(e,i,r),J$(e,r),e}function PW(e,t,n,r){var i=t.current,o=K$(),a=G$(i);return n=IW(n),null===t.context?t.context=n:t.pendingContext=n,(t=EB(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=DB(i,t,a))&&(X$(e,i,a,o),TB(e,i,a)),a}function zW(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function FW(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function jW(e,t){FW(e,t),(e=e.alternate)&&FW(e,t)}y$=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mj.current)hV=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return hV=!1,function(e,t,n){switch(t.tag){case 3:MV(t),sB();break;case 5:ZB(t);break;case 1:qj(t.type)&&Nj(t);break;case 4:JB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;xj(dB,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xj(tH,1&tH.current),t.flags|=128,null):0!=(n&t.child.childLanes)?OV(e,t,n):(xj(tH,1&tH.current),null!==(e=zV(e,t,n))?e.sibling:null);xj(tH,1&tH.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return RV(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),xj(tH,tH.current),r)break;return null;case 22:case 23:return t.lanes=0,vV(e,t,n)}return zV(e,t,n)}(e,t,n);hV=0!=(131072&e.flags)}else hV=!1,Qj&&0!=(1048576&t.flags)&&Yj(t,jj,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;PV(e,t),e=t.pendingProps;var i=Cj(t,Sj.current);vB(t,n),i=yH(null,t,r,e,i,n);var o=vH();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qj(r)?(o=!0,Nj(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,CB(t),i.updater=IB,t.stateNode=i,i._reactInternals=t,FB(t,r,e,n),t=SV(null,t,r,!0,o,n)):(t.tag=0,Qj&&o&&Kj(t),pV(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(PV(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return qW(e)?1:0;if(null!=e){if((e=e.$$typeof)===kI)return 11;if(e===EI)return 14}return 2}(r),e=cB(r,e),i){case 0:t=xV(null,t,r,e,n);break e;case 1:t=wV(null,t,r,e,n);break e;case 11:t=mV(null,t,r,e,n);break e;case 14:t=gV(null,t,r,cB(r.type,e),n);break e}throw Error(tI(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,xV(e,t,r,i=t.elementType===r?i:cB(r,i),n);case 1:return r=t.type,i=t.pendingProps,wV(e,t,r,i=t.elementType===r?i:cB(r,i),n);case 3:e:{if(MV(t),null===e)throw Error(tI(387));r=t.pendingProps,i=(o=t.memoizedState).element,qB(e,t),OB(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=kV(e,t,r,n,i=rV(Error(tI(423)),t));break e}if(r!==i){t=kV(e,t,r,n,i=rV(Error(tI(424)),t));break e}for(Jj=rj(t.stateNode.containerInfo.firstChild),Xj=t,Qj=!0,Zj=null,n=WB(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(sB(),r===i){t=zV(e,t,n);break e}pV(e,t,r,n)}t=t.child}return t;case 5:return ZB(t),null===e&&rB(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,XF(r,i)?a=null:null!==o&&XF(r,o)&&(t.flags|=32),bV(e,t),pV(e,t,a,n),t.child;case 6:return null===e&&rB(t),null;case 13:return OV(e,t,n);case 4:return JB(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$B(t,null,r,n):pV(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,mV(e,t,r,i=t.elementType===r?i:cB(r,i),n);case 7:return pV(e,t,t.pendingProps,n),t.child;case 8:case 12:return pV(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,xj(dB,r._currentValue),r._currentValue=a,null!==o)if(tF(o.value,a)){if(o.children===i.children&&!Mj.current){t=zV(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=EB(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),yB(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(tI(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),yB(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}pV(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,vB(t,n),r=r(i=bB(i)),t.flags|=1,pV(e,t,r,n),t.child;case 14:return i=cB(r=t.type,t.pendingProps),gV(e,t,r,i=cB(r.type,i),n);case 15:return yV(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:cB(r,i),PV(e,t),t.tag=1,qj(r)?(e=!0,Nj(t)):e=!1,vB(t,n),PB(t,r,i),FB(t,r,i,n),SV(null,t,r,!0,e,n);case 19:return RV(e,t,n);case 22:return vV(e,t,n)}throw Error(tI(156,t.tag))};var BW="function"==typeof reportError?reportError:function(e){console.error(e)};function HW(e){this._internalRoot=e}function VW(e){this._internalRoot=e}function $W(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function WW(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function UW(){}function YW(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=zW(a);s.call(e)}}PW(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=zW(a);o.call(e)}}var a=RW(t,r,e,0,null,!1,0,"",UW);return e._reactRootContainer=a,e[lj]=a.current,RF(8===e.nodeType?e.parentNode:e),iW(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=zW(l);s.call(e)}}var l=LW(e,0,!1,null,0,!1,0,"",UW);return e._reactRootContainer=l,e[lj]=l.current,RF(8===e.nodeType?e.parentNode:e),iW((function(){PW(t,l,n,r)})),l}(n,t,e,i,r);return zW(a)}VW.prototype.render=HW.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(tI(409));PW(e,t,null,null)},VW.prototype.unmount=HW.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;iW((function(){PW(null,e,null,null)})),t[lj]=null}},VW.prototype.unstable_scheduleHydration=function(e){if(e){var t=bP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<DP.length&&0!==t&&t<DP[n].priority;n++);DP.splice(n,0,e),0===n&&AP(e)}},gP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=aP(t.pendingLanes);0!==n&&(hP(t,1|n),J$(t,UR()),0==(6&S$)&&(R$=UR()+500,Rj()))}break;case 13:iW((function(){var t=MB(e,1);if(null!==t){var n=K$();X$(t,e,1,n)}})),jW(e,1)}},yP=function(e){if(13===e.tag){var t=MB(e,134217728);if(null!==t)X$(t,e,134217728,K$());jW(e,134217728)}},vP=function(e){if(13===e.tag){var t=G$(e),n=MB(e,t);if(null!==n)X$(n,e,t,K$());jW(e,t)}},bP=function(){return pP},xP=function(e,t){var n=pP;try{return pP=e,t()}finally{pP=n}},yR=function(e,t,n){switch(t){case"input":if(KI(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 i=mj(r);if(!i)throw Error(tI(90));VI(r),KI(r,i)}}}break;case"textarea":tR(e,n);break;case"select":null!=(t=n.value)&&QI(e,!!n.multiple,t,!1)}},MR=rW,kR=iW;var KW={usingClientEntryPoint:!1,Events:[hj,pj,mj,wR,SR,rW]},GW={findFiberByHostInstance:fj,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},XW={bundleType:GW.bundleType,version:GW.version,rendererPackageName:GW.rendererPackageName,rendererConfig:GW.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gI.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=jR(e))?null:e.stateNode},findFiberByHostInstance:GW.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var JW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!JW.isDisabled&&JW.supportsFiber)try{ZR=JW.inject(XW),eP=JW}catch(a5){}}GL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KW,GL.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$W(t))throw Error(tI(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:vI,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},GL.createRoot=function(e,t){if(!$W(e))throw Error(tI(299));var n=!1,r="",i=BW;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=LW(e,1,!1,null,0,n,0,r,i),e[lj]=t.current,RF(8===e.nodeType?e.parentNode:e),new HW(t)},GL.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(tI(188));throw e=Object.keys(e).join(","),Error(tI(268,e))}return e=null===(e=jR(t))?null:e.stateNode},GL.flushSync=function(e){return iW(e)},GL.hydrate=function(e,t,n){if(!WW(t))throw Error(tI(200));return YW(null,e,t,!0,n)},GL.hydrateRoot=function(e,t,n){if(!$W(e))throw Error(tI(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=BW;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=RW(t,null,e,1,null!=n?n:null,i,0,o,a),e[lj]=t.current,RF(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new VW(t)},GL.render=function(e,t,n){if(!WW(t))throw Error(tI(200));return YW(null,e,t,!1,n)},GL.unmountComponentAtNode=function(e){if(!WW(e))throw Error(tI(40));return!!e._reactRootContainer&&(iW((function(){YW(null,null,e,!1,(function(){e._reactRootContainer=null,e[lj]=null}))})),!0)},GL.unstable_batchedUpdates=rW,GL.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!WW(n))throw Error(tI(200));if(null==e||void 0===e._reactInternals)throw Error(tI(38));return YW(e,t,n,!1,r)},GL.version="18.2.0-next-9e3b772b8-20220608",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)}}(),KL.exports=GL;var QW=KL.exports,ZW=mg(QW),eU=!0,tU=!1,nU=null,rU={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 iU(e){e.metaKey||e.altKey||e.ctrlKey||(eU=!0)}function oU(){eU=!1}function aU(){"hidden"===this.visibilityState&&tU&&(eU=!0)}function sU(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return eU||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!rU[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function lU(){tU=!0,window.clearTimeout(nU),nU=window.setTimeout((function(){tU=!1}),100)}function uU(){var e=xT.useCallback((function(e){var t,n=QW.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",iU,!0),t.addEventListener("mousedown",oU,!0),t.addEventListener("pointerdown",oU,!0),t.addEventListener("touchstart",oU,!0),t.addEventListener("visibilitychange",aU,!0))}),[]);return{isFocusVisible:sU,onBlurVisible:lU,ref:e}}var cU=!1,dU=wT.createContext(null),fU="unmounted",hU="exited",pU="entering",mU="entered",gU="exiting",yU=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=hU,r.appearStatus=pU):i=mU:i=t.unmountOnExit||t.mountOnEnter?fU:hU,r.state={status:i},r.nextCallback=null,r}XN(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===fU?{status:hU}: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!==pU&&n!==mU&&(t=pU):n!==pU&&n!==mU||(t=gU)}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===pU){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ZW.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hU&&this.setState({status:fU})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ZW.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||cU?this.safeSetState({status:mU},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:pU},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:mU},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ZW.findDOMNode(this);t&&!cU?(this.props.onExit(r),this.safeSetState({status:gU},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hU},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:hU},(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:ZW.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===fU)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=pN(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wT.createElement(dU.Provider,{value:null},"function"==typeof n?n(e,r):wT.cloneElement(wT.Children.only(n),r))},t}(wT.Component);function vU(){}yU.contextType=dU,yU.propTypes={},yU.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vU,onEntering:vU,onEntered:vU,onExit:vU,onExiting:vU,onExited:vU},yU.UNMOUNTED=fU,yU.EXITED=hU,yU.ENTERING=pU,yU.ENTERED=mU,yU.EXITING=gU;var bU=yU;function xU(e,t){var n=Object.create(null);return e&&xT.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&xT.isValidElement(e)?t(e):e}(e)})),n}function wU(e,t,n){return null!=n[t]?n[t]:e.props[t]}function SU(e,t,n){var r=xU(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(xT.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=xT.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&xT.isValidElement(u)&&(i[o]=xT.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:wU(a,"exit",e),enter:wU(a,"enter",e)})):i[o]=xT.cloneElement(a,{in:!1}):i[o]=xT.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:wU(a,"exit",e),enter:wU(a,"enter",e)})}})),i}var MU=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},kU=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(JN(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}XN(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,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,xU(n.children,(function(e){return xT.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:wU(e,"appear",n),enter:wU(e,"enter",n),exit:wU(e,"exit",n)})}))):SU(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=xU(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=nN({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=pN(e,["component","childFactory"]),i=this.state.contextValue,o=MU(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?wT.createElement(dU.Provider,{value:i},o):wT.createElement(dU.Provider,{value:i},wT.createElement(t,r,o))},t}(wT.Component);kU.propTypes={},kU.defaultProps={component:"div",childFactory:function(e){return e}};var CU=kU;function qU(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var EU=xT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,f=mN(e,["classes","className","component","square","elevation","variant"]);return xT.createElement(o,nN({className:BL(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},f))})),DU=PL((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),nN({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(EU),TU="undefined"==typeof window?xT.useEffect:xT.useLayoutEffect;function NU(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=xT.useState(!1),f=d[0],h=d[1],p=BL(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=BL(t.child,f&&t.childLeaving,r&&t.childPulsate),y=UL(u);return TU((function(){if(!s){h(!0);var e=setTimeout(y,c);return function(){clearTimeout(e)}}}),[y,s,c]),xT.createElement("span",{className:p,style:m},xT.createElement("span",{className:g}))}var OU=xT.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=mN(e,["center","classes","className"]),s=xT.useState([]),l=s[0],u=s[1],c=xT.useRef(0),d=xT.useRef(null);xT.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=xT.useRef(!1),h=xT.useRef(null),p=xT.useRef(null),m=xT.useRef(null);xT.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=xT.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(AN(e),[xT.createElement(NU,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),y=xT.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,y,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(k,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=xT.useCallback((function(){y({},{pulsate:!0})}),[y]),b=xT.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return xT.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),xT.createElement("span",nN({className:BL(i.root,o),ref:m},a),xT.createElement(CU,{component:null,exit:!0},l))})),AU=PL((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(xT.memo(OU)),_U=xT.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,S=e.onFocus,M=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,q=e.onMouseDown,E=e.onMouseLeave,D=e.onMouseUp,T=e.onTouchEnd,N=e.onTouchMove,O=e.onTouchStart,A=e.onDragLeave,_=e.tabIndex,L=void 0===_?0:_,I=e.TouchRippleProps,R=e.type,P=void 0===R?"button":R,z=mN(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=xT.useRef(null);var j=xT.useRef(null),B=xT.useState(!1),H=B[0],V=B[1];f&&H&&V(!1);var $=uU(),W=$.isFocusVisible,U=$.onBlurVisible,Y=$.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return UL((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}xT.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),xT.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",q),X=K("stop",A),J=K("stop",D),Q=K("stop",(function(e){H&&e.preventDefault(),E&&E(e)})),Z=K("start",O),ee=K("stop",T),te=K("stop",N),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=UL((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),M&&M(e)),S&&S(e)})),ie=function(){var e=QW.findDOMNode(F.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},oe=xT.useRef(!1),ae=UL((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=UL((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),C&&C(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=c;"button"===le&&z.href&&(le="a");var ue={};"button"===le?(ue.type=P,ue.disabled=f):("a"===le&&z.href||(ue.role="button"),ue["aria-disabled"]=f);var ce=YL(r,t),de=YL(Y,F),fe=YL(ce,de),he=xT.useState(!1),pe=he[0],me=he[1];xT.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return xT.createElement(le,nN({className:BL(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:fe,tabIndex:f?-1:L},ue,z),a,ge?xT.createElement(AU,nN({ref:j,center:o},I)):null)})),LU=PL({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(_U),IU={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},RU=xT.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?IU:b,w=mN(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(g?"p":x[v]||IU[v])||"span";return xT.createElement(S,nN({className:BL(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(zL(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(zL(r))],"initial"!==c&&i["display".concat(zL(c))]),ref:t},w))})),PU=PL((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(RU),zU=xT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,S=e.type,M=void 0===S?"button":S,k=e.variant,C=void 0===k?"text":k,q=mN(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=w&&xT.createElement("span",{className:BL(r.startIcon,r["iconSize".concat(zL(x))])},w),D=m&&xT.createElement("span",{className:BL(r.endIcon,r["iconSize".concat(zL(x))])},m);return xT.createElement(LU,nN({className:BL(r.root,r[C],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(C).concat(zL(a))],"medium"!==x&&[r["".concat(C,"Size").concat(zL(x))],r["size".concat(zL(x))]],f&&r.disableElevation,c&&r.disabled,v&&r.fullWidth),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:BL(r.focusVisible,g),ref:t,type:M},q),xT.createElement("span",{className:r.label},E,n,D))})),FU=PL((function(e){return{root:nN({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:hN(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:hN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:hN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(hN(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:hN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(hN(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:hN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(zU);var jU="undefined"!=typeof window?xT.useLayoutEffect:xT.useEffect,BU=xT.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=xT.useState(null),l=s[0],u=s[1],c=YL(xT.isValidElement(n)?n.ref:null,t);return jU((function(){o||u(function(e){return e="function"==typeof e?e():e,QW.findDOMNode(e)}(r)||document.body)}),[r,o]),jU((function(){if(l&&!o)return $L(t,l),function(){$L(t,null)}}),[t,l,o]),jU((function(){a&&(l||o)&&a()}),[a,l,o]),o?xT.isValidElement(n)?xT.cloneElement(n,{ref:c}):n:l?QW.createPortal(n,l):l})),HU=BU;function VU(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $U(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function WU(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(AN(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&VU(e,r)}))}function UU(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function YU(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=HL(e);return t.body===e?VL(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat($U(o)+a,"px"),n=HL(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat($U(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var KU=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return KN(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&VU(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);WU(t,e.mountNode,e.modalRef,r,!0);var i=UU(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=UU(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=YU(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=UU(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&VU(e.modalRef,!0),WU(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&VU(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function GU(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=xT.useRef(),f=xT.useRef(null),h=xT.useRef(null),p=xT.useRef(),m=xT.useRef(null),g=xT.useCallback((function(e){m.current=QW.findDOMNode(e)}),[]),y=YL(t.ref,g),v=xT.useRef();return xT.useEffect((function(){v.current=c}),[c]),!v.current&&c&&"undefined"!=typeof window&&(p.current=l().activeElement),xT.useEffect((function(){if(c){var e=HL(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,u,c]),xT.createElement(xT.Fragment,null,xT.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),xT.cloneElement(t,{ref:y}),xT.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var XU={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},JU=xT.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=mN(e,["invisible","open"]);return i?xT.createElement("div",nN({"aria-hidden":!0,ref:t},o,{style:nN({},XU.root,r?XU.invisible:{},o.style)})):null}));var QU=new KU,ZU=xT.forwardRef((function(e,t){var n=P_(),r=$N({name:"MuiModal",props:nN({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?JU:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,S=void 0!==w&&w,M=r.disableScrollLock,k=void 0!==M&&M,C=r.hideBackdrop,q=void 0!==C&&C,E=r.keepMounted,D=void 0!==E&&E,T=r.manager,N=void 0===T?QU:T,O=r.onBackdropClick,A=r.onClose,_=r.onEscapeKeyDown,L=r.onRendered,I=r.open,R=mN(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),P=xT.useState(!0),z=P[0],F=P[1],j=xT.useRef({}),B=xT.useRef(null),H=xT.useRef(null),V=YL(H,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return HL(B.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},Y=function(){N.mount(U(),{disableScrollLock:k}),H.current.scrollTop=0},K=UL((function(){var e=function(e){return e="function"==typeof e?e():e,QW.findDOMNode(e)}(c)||W().body;N.add(U(),e),H.current&&Y()})),G=xT.useCallback((function(){return N.isTopModal(U())}),[N]),X=UL((function(e){B.current=e,e&&(L&&L(),I&&G()?Y():VU(H.current,!0))})),J=xT.useCallback((function(){N.remove(U())}),[N]);if(xT.useEffect((function(){return function(){J()}}),[J]),xT.useEffect((function(){I?K():$&&u||J()}),[I,J,$,u,K]),!D&&!I&&(!$||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:FN}),Z={};return void 0===s.props.tabIndex&&(Z.tabIndex=s.props.tabIndex||"-1"),$&&(Z.onEnter=FL((function(){F(!1)}),s.props.onEnter),Z.onExited=FL((function(){F(!0),u&&J()}),s.props.onExited)),xT.createElement(HU,{ref:X,container:c,disablePortal:x},xT.createElement("div",nN({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(_&&_(e),v||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},R,{style:nN({},Q.root,!I&&z?Q.hidden:{},R.style)}),q?null:xT.createElement(o,nN({open:I,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!p&&A&&A(e,"backdropClick"))}},a)),xT.createElement(GU,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:S,getDoc:W,isEnabled:G,open:I},xT.cloneElement(s,Z))))})),eY=ZU,tY=xT.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,u=void 0!==l&&l,c=e.light,d=void 0!==c&&c,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=mN(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return xT.createElement(s,nN({className:BL(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,u&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),nY=PL((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:hN(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(tY);function rY(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var iY={entering:{opacity:1,transform:rY(1)},entered:{opacity:1,transform:"none"}},oY=xT.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?bU:m,y=mN(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=xT.useRef(),b=xT.useRef(),x=P_()||IL,w=x.unstable_strictMode&&!i,S=xT.useRef(null),M=YL(n.ref,t),k=YL(w?S:void 0,M),C=function(e){return function(t,n){if(e){var r=_N(w?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},q=C(l),E=C((function(e,t){!function(e){e.scrollTop}(e);var n,r=qU({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=C(s),T=C(d),N=C((function(e){var t,n=qU({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=rY(.75),u&&u(e)})),O=C(c);return xT.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),xT.createElement(g,nN({appear:!0,in:o,nodeRef:w?S:void 0,onEnter:E,onEntered:D,onEntering:q,onExit:N,onExited:O,onExiting:T,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return xT.cloneElement(n,nN({style:nN({opacity:0,transform:rY(.75),visibility:"exited"!==e||o?void 0:"hidden"},iY[e],f,n.props.style),ref:k},t))}))}));oY.muiSupportAuto=!0;var aY=oY,sY=xT.createContext({}),lY=xT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=mN(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=xT.useMemo((function(){return{dense:l}}),[l]);return xT.createElement(sY.Provider,{value:h},xT.createElement(a,nN({className:BL(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),uY=PL({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(lY),cY="undefined"==typeof window?xT.useEffect:xT.useLayoutEffect,dY=xT.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=mN(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,S=void 0!==w&&w,M=e.divider,k=void 0!==M&&M,C=e.focusVisibleClassName,q=e.selected,E=void 0!==q&&q,D=mN(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=xT.useContext(sY),N={dense:v||T.dense||!1,alignItems:r},O=xT.useRef(null);cY((function(){o&&O.current&&O.current.focus()}),[o]);var A,_,L=xT.Children.toArray(l),I=L.length&&(A=L[L.length-1],_=["ListItemSecondaryAction"],xT.isValidElement(A)&&-1!==_.indexOf(A.type.muiName)),R=xT.useCallback((function(e){O.current=QW.findDOMNode(e)}),[]),P=YL(R,t),z=nN({className:BL(u.root,c,N.dense&&u.dense,!S&&u.gutters,k&&u.divider,x&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,E&&u.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=BL(u.focusVisible,C),F=LU),I?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),xT.createElement(sY.Provider,{value:N},xT.createElement(h,nN({className:BL(u.container,m),ref:P},g),xT.createElement(F,z,L),L.pop()))):xT.createElement(sY.Provider,{value:N},xT.createElement(F,nN({ref:P},z),L))})),fY=PL((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(dY),hY=xT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=mN(e,["classes","className"]),o=xT.useContext(sY);return xT.createElement("div",nN({className:BL(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),pY=PL((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(hY),mY=xT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=mN(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=xT.useContext(sY).dense,m=null!=u?u:n;null==m||m.type===PU||a||(m=xT.createElement(PU,nN({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var g=d;return null==g||g.type===PU||a||(g=xT.createElement(PU,nN({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),xT.createElement("div",nN({className:BL(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),gY=PL({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(mY);function yY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bY(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function xY(e){return"function"==typeof e?e():e}var wY=xT.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,S=e.onExited,M=e.onExiting,k=e.open,C=e.PaperProps,q=void 0===C?{}:C,E=e.transformOrigin,D=void 0===E?{vertical:"top",horizontal:"left"}:E,T=e.TransitionComponent,N=void 0===T?aY:T,O=e.transitionDuration,A=void 0===O?"auto":O,_=e.TransitionProps,L=void 0===_?{}:_,I=mN(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),R=xT.useRef(),P=xT.useCallback((function(e){if("anchorPosition"===l)return a;var t=xY(r),n=(t&&1===t.nodeType?t:HL(R.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+yY(n,i),left:n.left+vY(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=xT.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=xT.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:yY(e,D.vertical)+t,horizontal:vY(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=xT.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:bY(i)};var o=P(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=VL(xY(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:bY(i)}}),[r,l,P,z,F,y]),B=xT.useCallback((function(){var e=R.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=xT.useCallback((function(e){R.current=QW.findDOMNode(e)}),[]);xT.useEffect((function(){k&&B()})),xT.useImperativeHandle(n,(function(){return k?{updatePosition:function(){B()}}:null}),[k,B]),xT.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,B]);var V=A;"auto"!==A||N.muiSupportAuto||(V=void 0);var $=f||(r?HL(xY(r)).body:void 0);return xT.createElement(eY,nN({container:$,open:k,ref:t,BackdropProps:{invisible:!0},className:BL(c.root,d)},I),xT.createElement(N,nN({appear:!0,in:k,onEnter:v,onEntered:b,onExit:w,onExited:S,onExiting:M,timeout:V},L,{onEntering:FL((function(e,t){x&&x(e,t),B()}),L.onEntering)}),xT.createElement(DU,nN({elevation:p,ref:H},q,{className:BL(c.paper,q.className)}),u)))})),SY=PL({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(wY);function MY(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function kY({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:MY(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return wT.createElement("i",{style:i},wT.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},wT.createElement("path",{d:e})))}const CY={menuItem:"alternative-menu-item"},qY=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>U_((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return wT.createElement(fY,VT({className:`${i.root} ${n}`},r))},EY=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${CY.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function DY({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Zg.detectTextDirection(e);return wT.createElement(qY,{nested:r,role:"menuitem",button:!0,onClick:n,className:CY.menuItem,onKeyDown:EY,dir:a,autoFocus:t},wT.createElement(gY,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),wT.createElement(pY,{style:{minWidth:16}},wT.createElement(kY,{d:t?ET.d:""})),i&&wT.createElement(pY,{style:{minWidth:16}},wT.createElement(kY,{d:i.d})))}DY.propTypes={title:YT.string.isRequired,selected:YT.bool,onClick:YT.func.isRequired,nested:YT.bool,icon:YT.shape({d:YT.string.isRequired}),bold:YT.bool,dir:YT.string.isRequired},DY.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},qY.propTypes={nested:YT.bool,className:YT.string},qY.defaultProps={nested:!1,className:CY.menuItem};const TY={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function NY({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const u=o.map(((t,i)=>{var s;return wT.createElement(wT.Fragment,{key:t.id},wT.createElement(DY,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&wT.createElement(uY,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>wT.createElement(DY,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&wT.createElement(nY,{key:`divider-${t.id}`}))}));return wT.createElement(SY,VT({anchorEl:t,open:s,onClose:a},TY[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),wT.createElement(uY,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},u))}NY.propTypes={chartId:YT.string.isRequired,alignTo:YT.any,currentId:YT.string.isRequired,dir:YT.string.isRequired,dock:YT.string.isRequired,list:YT.array,onClose:YT.func.isRequired,show:YT.bool.isRequired,instruction:YT.string.isRequired},NY.defaultProps={list:[],alignTo:null};const OY="title-button",AY="active-title-button",_Y=RL((({children:e,...t})=>wT.createElement(FU,VT({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),LY=RL(FU)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class IY extends wT.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=wT.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${OY}`);t&&(t.focus(),t.classList.add(AY))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${OY}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${AY}`);e&&(e.classList.remove(AY),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u,showGroupDimOptions:c}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>wT.createElement(_Y,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},wT.createElement("span",{style:d},e),wT.createElement(kY,VT({},TT,{size:"small",style:{margin:"0 8px"}}))))),m=u||c?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Zg.detectTextDirection(t.text),w=wT.createElement(_Y,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${OY} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&wT.createElement(kY,VT({},qT,{size:"small",title:r.get("Tooltip.selections.locked")})),wT.createElement("span",{style:d,dir:x},t.text),n&&m&&wT.createElement(kY,VT({},DT,{size:"small",style:{margin:"0 8px"}})));return wT.createElement(wT.Fragment,null,t.icon&&t.icon.onClick&&wT.createElement(LY,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},wT.createElement(kY,VT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&wT.createElement(kY,VT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,wT.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&wT.createElement(NY,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function RY(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function PY(e){function t(e){return!e.isDimension&&Pg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:u,padding:c,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?FT:BT,M=a?jT:HT,k=Boolean(l&&l.colorSupport&&l.modifiers),C=k&&((q=this.settings.settings).isDimension&&Pg.getValue(q,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var q;const E=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,q=k||b?S({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:RY(g),model:l,onChange:u,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:k}):void 0;return wT.createElement(wT.Fragment,{key:t.cId},wT.createElement(IY,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:q,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:c,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&wT.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return wT.createElement("div",{style:v,dir:y},E)}}}IY.propTypes={chartId:YT.string.isRequired,disabled:YT.bool.isRequired,padding:YT.string,minWidth:YT.string,titleData:YT.shape({breadcrumbs:YT.arrayOf(YT.string).isRequired,icon:YT.shape({path:YT.shape({d:YT.string.isRequired}),tooltip:YT.string.isRequired,onClick:YT.func}),index:YT.number.isRequired,locked:YT.bool.isRequired,text:YT.string.isRequired,popoverText:YT.string.isRequired,drillUp:YT.func,id:YT.string.isRequired}).isRequired,popover:YT.shape({dir:YT.string.isRequired,dock:YT.string.isRequired,getPopoverOptions:YT.func.isRequired}),translator:YT.shape({get:YT.func.isRequired}).isRequired,selections:YT.shape({isActive:YT.func,addListener:YT.func,removeListener:YT.func}),style:YT.shape({fontSize:YT.string,color:YT.string,fontFamily:YT.string}).isRequired,isDimension:YT.bool.isRequired,hasAlternative:YT.bool.isRequired,supportConditional:YT.bool.isRequired,showGroupDimOptions:YT.bool.isRequired},IY.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const zY=jN({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0}}});const FY=VN({productionPrefix:"qbee5",disableGlobal:!0,seed:""});function jY(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",ZW.render(function(e,t){return wT.createElement(H_,{generateClassName:t},wT.createElement(_L,{theme:zY},e))}(e,FY),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&ZW.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(ZW.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var BY={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:HY}=BY;function VY({layoutService:e,largeDataService:t}){const{maxNumPoints:n=HY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:$Y}=BY,WY=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=$Y}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!VY({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:UY}=BY,{MAX_NUM_POINTS:YY,DEFAULT_NUM_POINTS:KY,DEFAULT_NUM_LINES:GY}=BY,{DEFAULT_NUM_POINTS:XY}=BY,JY=({layoutService:e,largeDataService:t})=>{if(!VY({layoutService:e,largeDataService:t})){const{maxNumPoints:e=XY}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=GY,maxNumPoints:o=KY,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(WY({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,u=Math.floor(r[0]<=l?l:l/4),c=2*s*(s+1);return a&&(s>GY||o>KY)?Math.min(u,Math.ceil(YY/c)):u})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=UY}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})},QY=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:JY({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:WY({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function ZY({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>VY({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>JY({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>WY({layoutService:t,largeDataService:n}),fetch:(i,o)=>QY({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function eK(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function tK({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function nK(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function rK(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=nK(),o=nK();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function iK(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function oK(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=rK(e,t,n.qMatrix),i=iK(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const aK=2**.5,sK=1/aK,lK=1e-6,uK=sK**44;function cK(e){return e.qIsOtherCell}function dK({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(cK)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(cK)||t++})),t}(n)}const fK={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var hK={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};const pK="…";function mK(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function gK(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",u=s(l);let{x:c,width:d}=r;e.start===e.end&&(d=u.width+2*i,1===e.end&&(c-=d));const f={x:c+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}${pK}`).width,p=Math.max(0,f.width-u.width),m=Math.max(0,f.height-u.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,u.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:c+g,width:u.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=mK(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:mK(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function yK(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=mK(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:mK(i,n.minorGuideLine.strokeWidth),x2:o,y2:mK(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function vK(e){return e.filter((e=>e.show)).map((e=>Dg({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var bK={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=mK(1,t.line.strokeWidth);return{show:n.line.show,x1:mK(0,t.line.strokeWidth),y1:r,x2:mK(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=gK(n,this),this.state.minor=yK(r,this)},render(){return[...vK([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>Dg({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...vK(this.state.major.map((e=>e.guideLine))),...vK(this.state.minor.map((e=>e.guideLine)))];var e}};function xK(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function wK(e){return e.qTags.indexOf("$qualified")>-1}function SK({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];xK(o,a)?(wK(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function MK({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const u=e[l];if(u.queries.outer(n)){const e=t[l+1];if(i=u.index,r=l,u.attrs.isDayOrShorter()&&u.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}const kK=16;function CK({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+kK}))),r.clamp(n),i.rangeAndWidth}}}const qK=6;function EK({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=qK,canFitHalfDayTicks:n=>n>=t*e.count()}}function DK({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=CK,queryFactory:s=EK}={attributesFactory:CK,queryFactory:EK}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),u=e.map((e=>l[e])),c=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:u,nonQualifiedMeta:c}}function TK({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=DK,mapper:a=SK,resolver:s=MK}={metaFactory:DK,mapper:SK,resolver:MK}){const{qualified:l,nonQualified:u}=a({qAxis:e}),{qualifiedMeta:c,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:u,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:c,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}const NK=86400,OK=864e5;function AK(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(OK*(e-Math.floor(e)))))}const _K=AK(0).getTime();function LK(e){return(e.getTime()-_K)/NK/1e3}const IK=new Date,RK=new Date;function PK(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>PK((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(IK.setTime(+t),RK.setTime(+r),e(IK),e(RK),Math.floor(n(IK,RK))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const zK=1e3,FK=6e4,jK=36e5,BK=864e5,HK=6048e5,VK=PK((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*zK)}),((e,t)=>(t-e)/zK),(e=>e.getUTCSeconds()));VK.range;const $K=PK((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zK)}),((e,t)=>{e.setTime(+e+t*FK)}),((e,t)=>(t-e)/FK),(e=>e.getMinutes()));$K.range;const WK=PK((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*FK)}),((e,t)=>(t-e)/FK),(e=>e.getUTCMinutes()));WK.range;const UK=PK((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zK-e.getMinutes()*FK)}),((e,t)=>{e.setTime(+e+t*jK)}),((e,t)=>(t-e)/jK),(e=>e.getHours()));UK.range;const YK=PK((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*jK)}),((e,t)=>(t-e)/jK),(e=>e.getUTCHours()));YK.range;const KK=PK((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*FK)/BK),(e=>e.getDate()-1));KK.range;const GK=PK((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/BK),(e=>e.getUTCDate()-1));GK.range;const XK=PK((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/BK),(e=>Math.floor(e/BK)));function JK(e){return PK((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*FK)/HK))}XK.range;const QK=JK(0),ZK=JK(1),eG=JK(2),tG=JK(3),nG=JK(4),rG=JK(5),iG=JK(6);function oG(e){return PK((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/HK))}QK.range,ZK.range,eG.range,tG.range,nG.range,rG.range,iG.range;const aG=oG(0),sG=oG(1),lG=oG(2),uG=oG(3),cG=oG(4),dG=oG(5),fG=oG(6);aG.range,sG.range,lG.range,uG.range,cG.range,dG.range,fG.range;const hG=PK((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));hG.range;const pG=PK((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));pG.range;const mG=PK((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));mG.every=e=>isFinite(e=Math.floor(e))&&e>0?PK((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,mG.range;const gG=PK((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));gG.every=e=>isFinite(e=Math.floor(e))&&e>0?PK((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,gG.range;const yG={second:1,minute:2,hour:3,day:4,month:5,year:6};function vG({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),u=i.key({distance:n});let c;i.get(u,1)?c=i.get(u,1):(c=function(e,t,n,r,i,o){function a(e){return gG.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=VK.count(e,t),l=WK.count(e,t),u=YK.count(e,t),c=GK.count(e,t),d=aG.count(e,t),f=pG.count(e,t),h=gG.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:gG.every(1),formatter:r.year.formatter,offset:e=>gG.offset(e,-1),floor:gG.floor};if(s<=p)v.type=yG.second,v.desc="second",v.count=s,v.interval=VK.every(1),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-1),v.floor=VK.floor;else if(s/2<=p)v.type=yG.second,v.desc="every other second",v.count=s/2,v.interval=VK.every(2),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-2),v.floor=VK.floor;else if(s/5<=p)v.type=yG.second,v.desc="every 5 second",v.count=s/5,v.interval=VK.every(5),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-5),v.floor=VK.floor;else if(s/15<=p)v.type=yG.second,v.desc="every 15 second",v.count=s/15,v.interval=VK.every(15),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-15),v.floor=VK.floor;else if(s/30<=p)v.type=yG.second,v.desc="every 30 second",v.count=s/30,v.interval=VK.every(30),v.formatter=r.second.formatter,v.offset=e=>VK.offset(e,-30),v.floor=VK.floor;else if(l<=m)v.type=yG.minute,v.desc="minute",v.count=l,v.interval=WK.every(1),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-1),v.floor=WK.floor;else if(l/2<=m)v.type=yG.minute,v.desc="every 2 minute",v.count=l/2,v.interval=WK.every(2),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-2),v.floor=WK.floor;else if(l/5<=m)v.type=yG.minute,v.desc="every 5 minute",v.count=l/5,v.interval=WK.every(5),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-5),v.floor=WK.floor;else if(l/10<=m)v.type=yG.minute,v.desc="every 10 minute",v.count=l/10,v.interval=WK.every(10),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-10),v.floor=WK.floor;else if(l/15<=m)v.type=yG.minute,v.desc="every 15 minute",v.count=l/15,v.interval=WK.every(15),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-15),v.floor=WK.floor;else if(l/30<=m)v.type=yG.minute,v.desc="every 30 minute",v.count=l/30,v.interval=WK.every(30),v.formatter=r.minute.formatter,v.offset=e=>WK.offset(e,-30),v.floor=WK.floor;else if(u<=m)v.type=yG.hour,v.desc="hour",v.count=u,v.interval=YK.every(1),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-1),v.floor=YK.floor;else if(u/2<=m)v.type=yG.hour,v.desc="every 2 hour",v.count=u/2,v.interval=YK.every(2),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-2),v.floor=YK.floor;else if(u/3<=m)v.type=yG.hour,v.desc="every 3 hour",v.count=u/3,v.interval=YK.every(3),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-3),v.floor=YK.floor;else if(u/6<=m)v.type=yG.hour,v.desc="every 6 hour",v.count=u/6,v.interval=YK.every(6),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-6),v.floor=YK.floor;else if(u/12<=m||i)v.type=yG.hour,v.desc="every 12 hour",v.count=u/12,v.interval=YK.every(12),v.formatter=r.minute.formatter,v.offset=e=>YK.offset(e,-12),v.floor=YK.floor;else if(c<=g)v.type=yG.day,v.desc="day",v.count=c,v.interval=GK.every(1),v.formatter=r.date.formatter,v.offset=e=>GK.offset(e,-1),v.floor=GK.floor;else if(c/2<=g)v.type=yG.day,v.desc="every 2 day",v.count=c/2,v.interval=GK.every(2),v.formatter=r.date.formatter,v.offset=e=>GK.offset(e,-2),v.floor=GK.floor;else if(c/3<=g)v.type=yG.day,v.desc="every 3 day",v.count=c/3,v.interval=GK.every(3),v.formatter=r.date.formatter,v.offset=e=>GK.offset(e,-3),v.floor=GK.floor;else if(d<=g)v.type=yG.day,v.desc="week",v.count=d,v.interval=aG.every(1),v.formatter=r.date.formatter,v.offset=e=>aG.offset(e,-1),v.floor=GK.floor;else if(d/2<=g)v.type=yG.day,v.desc="every 2 week",v.count=d/2,v.interval=aG.every(2),v.formatter=r.date.formatter,v.offset=e=>aG.offset(e,-2),v.floor=GK.floor;else if(f<=g)v.type=yG.month,v.desc="month",v.count=f,v.interval=pG.every(1),v.formatter=r.date.formatter,v.offset=e=>pG.offset(e,-1),v.floor=GK.floor;else if(f/3<=g)v.type=yG.month,v.desc="quarter",v.count=f/3,v.interval=pG.every(3),v.formatter=r.date.formatter,v.offset=e=>pG.offset(e,-3),v.floor=GK.floor;else if(f/6<=g)v.type=yG.month,v.desc="half year",v.count=f/6,v.interval=pG.every(6),v.formatter=r.date.formatter,v.offset=e=>pG.offset(e,-6),v.floor=GK.floor;else if(h<=y)v.type=yG.year,v.desc="year",v.count=h,v.interval=gG.every(1),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-1),v.floor=gG.floor;else if(h/2<=y)v.type=yG.year,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-2),v.floor=gG.floor;else if(h/5<=y)v.type=yG.year,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-5),v.floor=gG.floor;else if(h/10<=y)v.type=yG.year,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>gG.offset(e,-10),v.floor=gG.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=yG.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>gG.offset(t,-e),v.floor=gG.floor}return v}(s,l,n,t.all(),r,a),i.set(u,c,1));const d=e.ticks(c.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(c.offset(d[0])):d.push(c.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:c.formatter}}));let h=[];if(!o&&c.type<=yG.hour){const n=t.getFormat("date"),r=e.ticks(GK.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(GK.offset(r[0],-1)),h=(r.length?r:[GK.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const bG=86400,xG=1440,wG={};function SG(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function MG(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,u]=e.domain(),c=hS().domain([AK(l),AK(u)]);c.clamp(o),c.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>vG({timeScale:c,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?c.domain()[0]:AK(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(wG[[t,n,r,r,o]])return wG[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=AK(n),l=s.getFullYear(),u=s.getMonth(),c=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/bG,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let w,S,M,k=0,C=0,q=null,E=null,D=null,T=null,N=null,O=null;const A={outer:[],inner:[]};for(y<1?(q=1,C=1/bG):y<2?(q=2,C=1/bG*2):y<5?(q=5,C=1/bG*5):y<10?(q=10,C=1/bG*10):y<30?(q=30,C=1/bG*30):v<1?(E=1,C=1/xG):v<2?(E=2,C=1/xG*2):v<5?(E=5,C=1/xG*5):v<10?(E=10,C=1/xG*10):v<30?(E=30,C=1/xG*30):v<60?(D=1,C=1/24):v<120?(D=2,C=2/24):v<360?(D=6,C=.25):v<720?(D=12,C=.5):b<1/90?(C=1,T=1):b<2/90?(C=2,T=2):b<7/90?(C=7,T=7):b<31/90?(N=1,C=31):b<1?(N=3,C=90):x<1?(O=1,C=366):x<2?(O=2,C=732):x<5?(O=5,C=1826.25):(O=10,C=3652.5),S=Math.floor((d+n%1)/C);k<i;){M=S+1,w=O?SG("year",[l+S*O,0,1],[l+M*O,0,1],a.year.formatter):N?SG("month",[l,u+S*N,1],[l,u+M*N,1],a.date.formatter):T?SG("day",[l,u,c+S*T],[l,u,c+M*T],a.date.formatter):D?SG("hour",[l,u,c,0+S*D],[l,u,c,0+M*D],a.minute.formatter):E?SG("minute",[l,u,c,0,0+S*E],[l,u,c,0,0+M*E],a.minute.formatter):SG("second",[l,u,c,0,0,0+S*q],[l,u,c,0,0,0+M*q],a.second.formatter),k=LK(w.start),A.inner.push(w);const e=Math.floor(k);if(!(o||O||N||T)){const t={type:"day",start:AK(e),end:AK(e+1),formatter:a.date.formatter,qStart:e};A.outer[A.outer.length-1]&&A.outer[A.outer.length-1].qStart===t.qStart||A.outer.push(t)}S++}return A.min=r,A.max=i,wG[[t,n,r,r,o]]=A,A}(n,e,d.min,l,u,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?LK(t.start):"end"===i?LK(t.end):(LK(t.start)+LK(t.end))/2,{position:c(t.start),start:c(t.start),end:c(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:LK(t.start),end:LK(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const kG=41000.2343433,CG=/t+/i,qG=16,EG=60;const DG={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function TG(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const NG="continuousPan";var OG={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=fK,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=ZY,snapshotFetcherFactory:u=tK,cacheFetcherFactory:c=eK,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=u({layoutService:t,viewCache:i}),p=c({cache:d}),m=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",function(e,t){return Math.max(lK,(t-e)*uK)}(y,v)),g=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=h.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=iK(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>oK(y,v,e))).then((e=>this.updateLayout(e))).catch(m)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=iK(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>oK(e,t,n))).catch(m),fetchFromCache:(e,t)=>p.fetch(e,t).then((n=>oK(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return Dg({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return Dg({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>dK(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=YC(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return KC(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),u=i?1-o:o,{min:c,max:d}=t.get("zoom"),f=Math.abs(d-c),h=f-(r>0?sK:aK)*f,p=c+h*u,m=d-h*(1-u),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:NG,pointers:1,threshold:10,enable(r,i){return this.started===NG||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${NG}start`](n){n.preventDefault(),this.started=NG;const{min:i,max:o}=r.get("zoom");this[NG]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${NG}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[NG],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${NG}end`](e){e.preventDefault(),this.started=!1},[`${NG}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:hK,timeAxis:bK},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=Dg(!0,{},t[i],o)})),r}(t,DG,n),{qAxis:i}=r,o=rx(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let u,c,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=c.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=c.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=c.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(TG(a,f),a.instance(e)),f.normInvert=e=>(TG(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:EG,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:EG,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:EG,formatter:void 0},year:{type:"year",pattern:"YYYY",width:EG,formatter:void 0}};return i&&CG.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(kG)).width+qG)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=AK(t[0].data.start),i=AK(t[n-1].data.start);return GK.count(r,i)/n>=1?o.date:YK.count(r,i)/n>0?o.minute:WK.count(r,i)/n>0?o.second:o.date},t}(r);return c=MG(o.copy(),r,h),u=TK({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:HC(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const AG={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var _G={OPTIONS:AG,DEFAULT:AG.MINI_CHART};function LG({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,u=r[l?"width":"height"];let c=a.qArea.qTop/s*u,d=a.qArea.qHeight/s*u;if(d<o){const e=(o-d)/2;c=c-e+(Math.max(0,0-(c-e))-Math.max(0,c+d+e-u)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:c,width:d}:{top:c,left:0,height:d}}})}}function IG({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const RG=e=>({miniChart:e===_G.OPTIONS.MINI_CHART.value,bar:e===_G.OPTIONS.BAR.value,none:e===_G.OPTIONS.NONE.value}),PG=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return RG(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return RG(_G.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return RG(!n&&(r||!r&&i)?_G.OPTIONS.NONE.value:_G.OPTIONS.MINI_CHART.value)};function zG({layoutService:e,override:t}){const n=PG({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===_G.OPTIONS.MINI_CHART.value,n.bar=t.value===_G.OPTIONS.BAR.value,n.none=t.value===_G.OPTIONS.NONE.value),n}function FG({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:u=!1,deviceType:c}){const d=zG({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>IG({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===c?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&u&&(h.settings.injections=()=>[LG({layoutService:e,discrete:n})]),h}function jG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:u}=s.center,c=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-c.left-d.rect.computedInner.x:u-c.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=IG({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,w=!b&&!x;return{pixel:m,relative:g,thumb:w?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:w}}}function BG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:u}=a.rect.computedInner,c="horizontal"===s?l:u,[d,f]=IG({layoutService:i,viewState:n,viewCache:r});return{size:c,thumbSize:(f-d)*c}}}function HG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=jG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=BG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=u(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=c(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const VG="data-scrollbar-handle";function $G({e:e}){return(e.srcEvent||e).srcElement.getAttribute(VG)||""}const WG="scrollbarResize",UG=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function YG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=jG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${WG}`,options:{event:WG,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[WG]=this[WG]||{},UG(t)&&$G({e:t})&&(this[WG].panningEvent=t.srcEvent),!!this[WG].panningEvent))}},events:{[`${WG}start`](n){n.preventDefault(),this[WG]=this[WG]||{},this[WG].panningEvent&&t.component(e).emit("dragStart",this[WG].panningEvent)},[`${WG}move`](n){if(n.preventDefault(),this[WG]=this[WG]||{},!this[WG].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),u=i.get("minimiumZoomSpan"),c=(s-a)*l(n).relative+a,d=$G({e:this[WG].panningEvent});let f="start"===d?Math.min(c,o.max):o.min,h="end"===d?Math.max(c,o.min):o.max;f===h&&(f-="start"===d?u:0,h+="end"===d?u:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${WG}end`](n){n.preventDefault(),this[WG]=this[WG]||{},delete this[WG].panningEvent,t.component(e).emit("dragEnd")},[`${WG}cancel`](n){n.preventDefault(),this[WG]=this[WG]||{},delete this[WG].panningEvent,t.component(e).emit("dragEnd")}}}}const KG="scrollbarPan";function GG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=jG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=BG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${KG}`,options:{event:KG,threshold:0,enable(r,i){return this[KG]=this[KG]||{},!(i&&!this[KG].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${KG}start`](n){n.preventDefault();const a=u(n);if(this[KG]=this[KG]||{},this[KG].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[KG].relative=a.relative,this[KG].zoom=r.get("zoom"),this[KG].zoom.span=this[KG].zoom.max-this[KG].zoom.min,this[KG].zoom.fullSpan=o-n}else if(a.onThumb)this[KG].offset=a.thumb;else{const e=c();this[KG].offset=a.beforeThumb?0:e.thumbSize}},[`${KG}move`](n){n.preventDefault();const a=u(n);if(this[KG]=this[KG]||{},o.meta.isContinuous){const e=a.relative-this[KG].relative,{fullSpan:t,span:n,min:o,max:s}=this[KG].zoom,l=i.get("continuousMin"),u=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,u-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[KG].offset||0),t=c(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${KG}end`](n){n.preventDefault(),this[KG]=this[KG]||{},this[KG].isPanning=!1,t.component(e).emit("unlockState")},[`${KG}cancel`](n){n.preventDefault(),this[KG]=this[KG]||{},this[KG].isPanning=!1,t.component(e).emit("unlockState")}}}}function XG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[HG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),YG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),GG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function JG({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}function QG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...XG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:JG({componentKey:e,chart:t,actions:n,layoutService:o})}}const ZG={background:"rgba(0, 0, 0, 0.1)"},eX={top:-1,bottom:-1,width:6},tX={width:2,background:"#595959"};var nX={before:ZG,after:ZG,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:eX,endHandle:eX,startHandleBorder:tX,endHandleBorder:tX};const rX={background:"rgba(0, 0, 0, 0.1)"},iX={top:-1,bottom:-1,width:6},oX={width:2,background:"#595959"};var aX={before:rX,after:rX,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:iX,endHandle:iX,startHandleBorder:oX,endHandleBorder:oX};const sX={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},lX={pointerEvents:"initial"},uX={pointerEvents:"none"};const cX="ew-resize",dX="default";function fX(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function hX(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?cX:dX}function pX(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function mX(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function gX(){const{size:e,start:t,end:n}=fX.call(this);this.renderer.render(this.elements(this.h,pX.call(this,e,t,n)))}function yX(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?aX:nX;return{container:{...sX},before:{...sX,...n.before,...t.before},after:{...sX,...n.after,...t.after},thumb:{...sX,...n.thumb,...t.thumb},startHandle:{...sX,...lX,...n.startHandle},endHandle:{...sX,...lX,...n.endHandle},startHandleBorder:{...sX,...uX,...n.startHandleBorder},endHandleBorder:{...sX,...uX,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var vX={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){gX.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!mX.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=$G({e:e});t&&(this.state.hover[t]=!0),hX.call(this),gX.call(this)},leave(){this.state.locked||(this.state.hover.reset(),hX.call(this),gX.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=$G({e:e});t&&(this.state.drag[t]=!0),hX.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),hX.call(this),gX.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=fX.call(this);return this.elements(e,pX.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:u,injections:c}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...u?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...u?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...u?m:h},class:"scrollbar--start-handle",[VG]:"start"},o?e("div",{style:{...s.startHandleBorder,...u?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...u?h:m},class:"scrollbar--end-handle",[VG]:"end"},a?e("div",{style:{...s.endHandleBorder,...u?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...c])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:yX.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};var bX={black:"#000",white:"#fff"};var xX={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 wX={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 SX={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 MX={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 kX={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 CX={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 qX={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 EX(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 DX=Object.freeze({__proto__:null,default:EX}),TX="$$material";function NX(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var OX=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AX=NX((function(e){return OX.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var _X=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),LX="-ms-",IX="-moz-",RX="-webkit-",PX="comm",zX="rule",FX="decl",jX="@keyframes",BX=Math.abs,HX=String.fromCharCode,VX=Object.assign;function $X(e){return e.trim()}function WX(e,t,n){return e.replace(t,n)}function UX(e,t){return e.indexOf(t)}function YX(e,t){return 0|e.charCodeAt(t)}function KX(e,t,n){return e.slice(t,n)}function GX(e){return e.length}function XX(e){return e.length}function JX(e,t){return t.push(e),e}var QX=1,ZX=1,eJ=0,tJ=0,nJ=0,rJ="";function iJ(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:QX,column:ZX,length:a,return:""}}function oJ(e,t){return VX(iJ("",null,null,"",null,null,0),e,{length:-e.length},t)}function aJ(){return nJ=tJ>0?YX(rJ,--tJ):0,ZX--,10===nJ&&(ZX=1,QX--),nJ}function sJ(){return nJ=tJ<eJ?YX(rJ,tJ++):0,ZX++,10===nJ&&(ZX=1,QX++),nJ}function lJ(){return YX(rJ,tJ)}function uJ(){return tJ}function cJ(e,t){return KX(rJ,e,t)}function dJ(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 fJ(e){return QX=ZX=1,eJ=GX(rJ=e),tJ=0,[]}function hJ(e){return rJ="",e}function pJ(e){return $X(cJ(tJ-1,yJ(91===e?e+2:40===e?e+1:e)))}function mJ(e){for(;(nJ=lJ())&&nJ<33;)sJ();return dJ(e)>2||dJ(nJ)>3?"":" "}function gJ(e,t){for(;--t&&sJ()&&!(nJ<48||nJ>102||nJ>57&&nJ<65||nJ>70&&nJ<97););return cJ(e,uJ()+(t<6&&32==lJ()&&32==sJ()))}function yJ(e){for(;sJ();)switch(nJ){case e:return tJ;case 34:case 39:34!==e&&39!==e&&yJ(nJ);break;case 40:41===e&&yJ(e);break;case 92:sJ()}return tJ}function vJ(e,t){for(;sJ()&&e+nJ!==57&&(e+nJ!==84||47!==lJ()););return"/*"+cJ(t,tJ-1)+"*"+HX(47===e?e:sJ())}function bJ(e){for(;!dJ(lJ());)sJ();return cJ(e,tJ)}function xJ(e){return hJ(wJ("",null,null,null,[""],e=fJ(e),0,[0],e))}function wJ(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,S=r,M=b;g;)switch(p=v,v=sJ()){case 40:if(108!=p&&58==YX(M,d-1)){-1!=UX(M+=WX(pJ(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=pJ(v);break;case 9:case 10:case 13:case 32:M+=mJ(p);break;case 92:M+=gJ(uJ()-1,7);continue;case 47:switch(lJ()){case 42:case 47:JX(MJ(vJ(sJ(),uJ()),t,n),l);break;default:M+="/"}break;case 123*m:s[u++]=GX(M)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(M=WX(M,/\f/g,"")),h>0&&GX(M)-d&&JX(h>32?kJ(M+";",r,n,d-1):kJ(WX(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(JX(S=SJ(M,t,n,u,c,i,s,b,x=[],w=[],d),o),123===v)if(0===c)wJ(M,t,S,S,x,o,d,s,w);else switch(99===f&&110===YX(M,3)?100:f){case 100:case 108:case 109:case 115:wJ(e,S,S,r&&JX(SJ(e,S,S,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:wJ(M,S,S,S,[""],w,0,s,w)}}u=c=h=0,m=y=1,b=M="",d=a;break;case 58:d=1+GX(M),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==aJ())continue;switch(M+=HX(v),v*m){case 38:y=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(GX(M)-1)*y,y=1;break;case 64:45===lJ()&&(M+=pJ(sJ())),f=lJ(),c=d=GX(b=M+=bJ(uJ())),v++;break;case 45:45===p&&2==GX(M)&&(m=0)}}return o}function SJ(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],h=XX(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=KX(e,d+1,d=BX(m=a[p])),b=e;y<h;++y)(b=$X(m>0?f[y]+" "+v:WX(v,/&\f/g,f[y])))&&(l[g++]=b);return iJ(e,t,n,0===i?zX:s,l,u,c)}function MJ(e,t,n){return iJ(e,t,n,PX,HX(nJ),KX(e,2,-2),0)}function kJ(e,t,n,r){return iJ(e,t,n,FX,KX(e,0,r),KX(e,r+1,-1),r)}function CJ(e,t){for(var n="",r=XX(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function qJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case FX:return e.return=e.return||e.value;case PX:return"";case jX:return e.return=e.value+"{"+CJ(e.children,r)+"}";case zX:e.value=e.props.join(",")}return GX(n=CJ(e.children,r))?e.return=e.value+"{"+n+"}":""}function EJ(e){var t=XX(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var DJ="undefined"!=typeof document,TJ=function(e,t,n){for(var r=0,i=0;r=i,i=lJ(),38===r&&12===i&&(t[n]=1),!dJ(i);)sJ();return cJ(e,tJ)},NJ=function(e,t){return hJ(function(e,t){var n=-1,r=44;do{switch(dJ(r)){case 0:38===r&&12===lJ()&&(t[n]=1),e[n]+=TJ(tJ-1,t,n);break;case 2:e[n]+=pJ(r);break;case 4:if(44===r){e[++n]=58===lJ()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=HX(r)}}while(r=sJ());return e}(fJ(e),t))},OJ=new WeakMap,AJ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||OJ.get(n))&&!r){OJ.set(e,!0);for(var i=[],o=NJ(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},_J=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function LJ(e,t){switch(function(e,t){return 45^YX(e,0)?(((t<<2^YX(e,0))<<2^YX(e,1))<<2^YX(e,2))<<2^YX(e,3):0}(e,t)){case 5103:return RX+"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 RX+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return RX+e+IX+e+LX+e+e;case 6828:case 4268:return RX+e+LX+e+e;case 6165:return RX+e+LX+"flex-"+e+e;case 5187:return RX+e+WX(e,/(\w+).+(:[^]+)/,RX+"box-$1$2"+LX+"flex-$1$2")+e;case 5443:return RX+e+LX+"flex-item-"+WX(e,/flex-|-self/,"")+e;case 4675:return RX+e+LX+"flex-line-pack"+WX(e,/align-content|flex-|-self/,"")+e;case 5548:return RX+e+LX+WX(e,"shrink","negative")+e;case 5292:return RX+e+LX+WX(e,"basis","preferred-size")+e;case 6060:return RX+"box-"+WX(e,"-grow","")+RX+e+LX+WX(e,"grow","positive")+e;case 4554:return RX+WX(e,/([^-])(transform)/g,"$1"+RX+"$2")+e;case 6187:return WX(WX(WX(e,/(zoom-|grab)/,RX+"$1"),/(image-set)/,RX+"$1"),e,"")+e;case 5495:case 3959:return WX(e,/(image-set\([^]*)/,RX+"$1$`$1");case 4968:return WX(WX(e,/(.+:)(flex-)?(.*)/,RX+"box-pack:$3"+LX+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+RX+e+e;case 4095:case 3583:case 4068:case 2532:return WX(e,/(.+)-inline(.+)/,RX+"$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(GX(e)-1-t>6)switch(YX(e,t+1)){case 109:if(45!==YX(e,t+4))break;case 102:return WX(e,/(.+:)(.+)-([^]+)/,"$1"+RX+"$2-$3$1"+IX+(108==YX(e,t+3)?"$3":"$2-$3"))+e;case 115:return~UX(e,"stretch")?LJ(WX(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==YX(e,t+1))break;case 6444:switch(YX(e,GX(e)-3-(~UX(e,"!important")&&10))){case 107:return WX(e,":",":"+RX)+e;case 101:return WX(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+RX+(45===YX(e,14)?"inline-":"")+"box$3$1"+RX+"$2$3$1"+LX+"$2box$3")+e}break;case 5936:switch(YX(e,t+11)){case 114:return RX+e+LX+WX(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return RX+e+LX+WX(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return RX+e+LX+WX(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return RX+e+LX+e+e}return e}var IJ=DJ?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return NX((function(){var e={};return function(t){return e[t]}}))})),RJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case FX:e.return=LJ(e.value,e.length);break;case jX:return CJ([oJ(e,{value:WX(e.value,"@","@"+RX)})],r);case zX:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return CJ([oJ(e,{props:[WX(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return CJ([oJ(e,{props:[WX(t,/:(plac\w+)/,":"+RX+"input-$1")]}),oJ(e,{props:[WX(t,/:(plac\w+)/,":-moz-$1")]}),oJ(e,{props:[WX(t,/:(plac\w+)/,LX+"input-$1")]})],r)}return""}))}}],PJ=function(e){var t=e.key;if(DJ&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||RJ,a={},s=[];DJ&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,u=[AJ,_J];if(DJ){var c,d=[qJ,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=EJ(u.concat(o,d));i=function(e,t,n,r){c=n,function(e){CJ(xJ(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[qJ],p=EJ(u.concat(o,h)),m=IJ(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return CJ(xJ(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new _X({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},zJ="undefined"!=typeof document;var FJ=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===zJ&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},jJ=function(e,t,n){FJ(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);zJ||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!zJ&&0!==i.length)return i}};var BJ={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,scale: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},HJ=!1,VJ=/[A-Z]|^ms/g,$J=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WJ=function(e){return 45===e.charCodeAt(1)},UJ=function(e){return null!=e&&"boolean"!=typeof e},YJ=NX((function(e){return WJ(e)?e:e.replace(VJ,"-$&").toLowerCase()})),KJ=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($J,(function(e,t,n){return JJ={name:t,styles:n,next:JJ},t}))}return 1===BJ[e]||WJ(e)||"number"!=typeof t||0===t?t:t+"px"},GJ="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function XJ(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return JJ={name:i.name,styles:i.styles,next:JJ},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)JJ={name:a.name,styles:a.styles,next:JJ},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=XJ(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":UJ(s)&&(r+=YJ(o)+":"+KJ(o,s)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&HJ)throw new Error(GJ);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=XJ(e,t,a);switch(o){case"animation":case"animationName":r+=YJ(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)UJ(a[u])&&(r+=YJ(o)+":"+KJ(o,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=JJ,l=n(e);return JJ=s,XJ(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var JJ,QJ=/label:\s*([^\s;{]+)\s*(;|$)/g;function ZJ(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";JJ=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=XJ(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=XJ(n,t,e[a]),r)i+=o[a]}QJ.lastIndex=0;for(var s,l="";null!==(s=QJ.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:JJ}}var eQ="undefined"!=typeof document,tQ=function(e){return e()},nQ=!!ST.useInsertionEffect&&ST.useInsertionEffect,rQ=eQ&&nQ||tQ,iQ=nQ||xT.useLayoutEffect,oQ="undefined"!=typeof document,aQ=xT.createContext("undefined"!=typeof HTMLElement?PJ({key:"css"}):null),sQ=aQ.Provider,lQ=function(e){return xT.forwardRef((function(t,n){var r=xT.useContext(aQ);return e(t,r,n)}))};oQ||(lQ=function(e){return function(t){var n=xT.useContext(aQ);return null===n?(n=PJ({key:"css"}),xT.createElement(aQ.Provider,{value:n},e(t,n))):e(t,n)}});var uQ=xT.createContext({}),cQ=lQ((function(e,t){var n=ZJ([e.styles],void 0,xT.useContext(uQ));if(!oQ){for(var r,i=n.name,o=n.styles,a=n.next;void 0!==a;)i+=" "+a.name,o+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:i,styles:o},t.sheet,s);return s?null:xT.createElement("style",((r={})["data-emotion"]=t.key+"-global "+i,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var u=xT.useRef();return iQ((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),u.current=[r,i],function(){r.flush()}}),[t]),iQ((function(){var e=u.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&jJ(t,n.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function dQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ZJ(t)}var fQ=function(){var e=dQ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},hQ=AX,pQ=function(e){return"theme"!==e},mQ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hQ:pQ},gQ=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},yQ="undefined"!=typeof document,vQ=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;FJ(t,n,r);var i=rQ((function(){return jJ(t,n,r)}));if(!yQ&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return xT.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},bQ=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=gQ(t,n,o),l=s||mQ(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)d.push(c[h],c[0][h])}var p=lQ((function(e,t,n){var r,o,c,f,h=u&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=xT.useContext(uQ)}"string"==typeof e.className?(r=t.registered,o=m,c=e.className,f="",c.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):e&&(f+=e+" ")})),p=f):null!=e.className&&(p=e.className+" ");var v=ZJ(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=u&&void 0===s?mQ(h):l,x={};for(var w in e)u&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,n&&(x.ref=n),xT.createElement(xT.Fragment,null,xT.createElement(vQ,{cache:t,serialized:v,isStringTag:"string"==typeof h}),xT.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,nN({},n,r,{shouldForwardProp:gQ(p,r,!0)})).apply(void 0,d)},p}}.bind();["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){bQ[e]=bQ(e)}));var xQ={exports:{}},wQ={},SQ=xT,MQ=Symbol.for("react.element"),kQ=Symbol.for("react.fragment"),CQ=Object.prototype.hasOwnProperty,qQ=SQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EQ={key:!0,ref:!0,__self:!0,__source:!0};function DQ(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)CQ.call(t,r)&&!EQ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:MQ,type:e,key:o,ref:a,props:i,_owner:qQ.current}}wQ.Fragment=kQ,wQ.jsx=DQ,wQ.jsxs=DQ,xQ.exports=wQ;var TQ=xQ.exports;let NQ;"object"==typeof document&&(NQ=PJ({key:"css",prepend:!0}));var OQ=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return TQ.jsx(cQ,{styles:r})}
|
|
43
43
|
/**
|
|
44
44
|
* @mui/styled-engine v5.15.14
|
|
45
45
|
*
|
|
@@ -119,4 +119,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
|
|
|
119
119
|
animation-iteration-count: infinite;
|
|
120
120
|
animation-delay: 200ms;
|
|
121
121
|
}
|
|
122
|
-
`),N2.rippleVisible,P2,550,(({theme:e})=>e.transitions.easing.easeInOut),N2.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),N2.child,N2.childLeaving,z2,550,(({theme:e})=>e.transitions.easing.easeInOut),N2.childPulsate,F2,(({theme:e})=>e.transitions.easing.easeInOut)),H2=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=pN(n,O2),[s,l]=xT.useState([]),u=xT.useRef(0),c=xT.useRef(null);xT.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=xT.useRef(!1),f=L0(),h=xT.useRef(null),p=xT.useRef(null),m=xT.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,TQ.jsx(B2,{classes:{ripple:JZ(i.ripple,N2.ripple),rippleVisible:JZ(i.rippleVisible,N2.rippleVisible),ripplePulsate:JZ(i.ripplePulsate,N2.ripplePulsate),child:JZ(i.child,N2.child),childLeaving:JZ(i.childLeaving,N2.childLeaving),childPulsate:JZ(i.childPulsate,N2.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,c.current=a}),[i]),g=xT.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=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 s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,f]),y=xT.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=xT.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return xT.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),TQ.jsx(j2,nN({className:JZ(N2.root,i.root,o),ref:p},a,{children:TQ.jsx(CU,{component:null,exit:!0,children:s})}))}));var V2=H2;function $2(e){return ZZ("MuiButtonBase",e)}var W2=e0("MuiButtonBase",["root","disabled","focusVisible"]);const U2=["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"],Y2=S2("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"},[`&.${W2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K2=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:M,onTouchEnd:k,onTouchMove:C,onTouchStart:q,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:T,type:N}=n,O=pN(n,U2),A=xT.useRef(null),_=xT.useRef(null),L=N0(_,T),{isFocusVisibleRef:I,onFocus:R,onBlur:P,ref:z}=V0(),[F,j]=xT.useState(!1);l&&F&&j(!1),xT.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[B,H]=xT.useState(!1);xT.useEffect((()=>{H(!0)}),[]);const V=B&&!u&&!l;function $(e,t,n=c){return T0((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}xT.useEffect((()=>{F&&d&&!u&&B&&_.current.pulsate()}),[u,d,F,B]);const W=$("start",w),U=$("stop",m),Y=$("stop",g),K=$("stop",M),G=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),X=$("start",q),J=$("stop",k),Q=$("stop",C),Z=$("stop",(e=>{P(e),!1===I.current&&j(!1),h&&h(e)}),!1),ee=T0((e=>{A.current||(A.current=e.currentTarget),R(e),!0===I.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=xT.useRef(!1),re=T0((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=T0((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(O.href||O.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===N?"button":N,ae.disabled=l):(O.href||O.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=N0(t,z,A),le=nN({},n,{centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:E,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=$0({root:["root",t&&"disabled",n&&"focusVisible"]},$2,i);return n&&r&&(o.root+=` ${r}`),o})(le);return TQ.jsxs(Y2,nN({as:oe,className:JZ(ue.root,a),ownerState:le,onBlur:Z,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:l?-1:E,type:N},ae,O,{children:[o,V?TQ.jsx(V2,nN({ref:L,center:i},D)):null]}))}));var G2=K2;function X2(e){return ZZ("MuiButton",e)}var J2=e0("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Q2=xT.createContext({});var Z2=xT.createContext(void 0);const e5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],t5=e=>nN({},"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}}),n5=S2(G2,{shouldForwardProp:e=>w2(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$Q(n.color)}`],t[`size${$Q(n.size)}`],t[`${n.variant}Size${$Q(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return nN({},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":nN({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:s1(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})`:s1(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})`:s1(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:o,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":nN({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${J2.focusVisible}`]:nN({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${J2.disabled}`]:nN({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 ${s1(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:i,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"},[`&.${J2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${J2.disabled}`]:{boxShadow:"none"}})),r5=S2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$Q(n.size)}`]]}})((({ownerState:e})=>nN({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},t5(e)))),i5=S2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$Q(n.size)}`]]}})((({ownerState:e})=>nN({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},t5(e)))),o5=xT.forwardRef((function(e,t){const n=xT.useContext(Q2),r=xT.useContext(Z2),i=W1({props:C0(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=pN(i,e5),x=nN({},i,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return nN({},a,$0({root:["root",o,`${o}${$Q(t)}`,`size${$Q(i)}`,`${o}Size${$Q(i)}`,`color${$Q(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$Q(i)}`],endIcon:["icon","endIcon",`iconSize${$Q(i)}`]},X2,a))})(x),S=g&&TQ.jsx(r5,{className:w.startIcon,ownerState:x,children:g}),M=f&&TQ.jsx(i5,{className:w.endIcon,ownerState:x,children:f}),k=r||"";return TQ.jsxs(n5,nN({ownerState:x,className:JZ(n.className,w.root,l,k),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:JZ(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[S,o,M]}))}));var a5=o5;var s5=xT.createContext({});function l5(e){return ZZ("MuiListItemButton",e)}var u5=e0("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const c5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],d5=S2(G2,{shouldForwardProp:e=>w2(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>nN({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${u5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:s1(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${u5.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:s1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${u5.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:s1(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})`:s1(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${u5.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${u5.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),f5=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:f}=n,h=pN(n,c5),p=xT.useContext(s5),m=xT.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=xT.useRef(null);E0((()=>{i&&g.current&&g.current.focus()}),[i]);const y=nN({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return nN({},n,$0({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},l5,n))})(y),b=N0(g,t);return TQ.jsx(s5.Provider,{value:m,children:TQ.jsx(d5,nN({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:JZ(v.focusVisible,c),ownerState:y,className:JZ(v.root,f)},h,{classes:v,children:a}))})}));var h5=f5;function p5(e){return ZZ("MuiListItemIcon",e)}e0("MuiListItemIcon",["root","alignItemsFlexStart"]);const m5=["className"],g5=S2("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})=>nN({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),y5=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=pN(n,m5),o=nN({},n,{alignItems:xT.useContext(s5).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return $0({root:["root","flex-start"===t&&"alignItemsFlexStart"]},p5,n)})(o);return TQ.jsx(g5,nN({className:JZ(a.root,r),ownerState:o,ref:t},i))}));var v5=y5;function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b5(Object(n),!0).forEach((function(t){w5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S5=function(e){var t=e.className,n=e.path,r=e.fillRule;return wT.createElement(T2,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},wT.createElement("path",{d:n}),r?wT.createElement("use",{fillRule:r}):void 0)},M5={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};S2(a5,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY}})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:M5.ICONS.COLOR.DISABLED}}})),S2(a5,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var k5={color:M5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:M5.ICONS.COLOR.DISABLED}};S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return k5})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return k5})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:M5.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),S2(h5)((function(){return{padding:"4px 12px","&:focus":x5({},M5.FOCUS)}})),S2(v5)((function(){return{marginRight:0,justifyContent:"center"}})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY}}));var C5=Object.prototype.hasOwnProperty,q5=Object.prototype.toString,E5=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,T5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===q5.call(e)},N5=function(e){if(!e||"[object Object]"!==q5.call(e))return!1;var t,n=C5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&C5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||C5.call(e,t)},O5=function(e,t){E5&&"__proto__"===t.name?E5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},A5=function(e,t){if("__proto__"===t){if(!C5.call(e,t))return;if(D5)return D5(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=A5(s,n),s!==(i=A5(t,n))&&(c&&i&&(N5(i)||(o=T5(i)))?(o?(o=!1,a=r&&T5(r)?r:[]):a=r&&N5(r)?r:{},O5(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&O5(s,{name:n,newValue:i}));return s}));var _5,L5=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return wT.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},I5={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return wT.createElement("div",{dir:o,style:a},wT.createElement(L5,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},R5=ZW;_5=R5.createRoot,R5.hydrateRoot;var P5=V1({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:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},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"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function z5(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function F5(){var e={rendererBox:z5(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=z5(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=_5(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return wT.createElement(wT.StrictMode,null,wT.createElement(k2,{theme:P5},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const j5={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,d=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,d=t<.5?180:0),a(Dg({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}};function B5({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const d=Dg({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),p=(c-h)/2,m=p+d.major+h/2;return{item:d,boxCenter:m,boxWidth:h,boxPadding:p,rendWidth:t,rendHeight:n}}function H5({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=Dg(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let d;d="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Dg(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Dg(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const p={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Dg(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],p[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:u});return p}const V5=["oob"];const $5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=H5({keys:V5,data:i,defaultSettings:{oob:j5.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=B5}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,g=[];if(d.oob.show){g.push(j5.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:V5,symbol:s,dockValue:n});return d}},W5={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},U5=["hat"];function Y5(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function K5({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+u},{[a]:d+t*c*l,[s]:8},{[a]:d+t*l,[s]:0+u},{[a]:d+t*l,[s]:0+u+10},{[a]:d,[s]:0+u+10}];const h=Dg({},e.hat,{type:"path",d:Y5(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-c)*l,[s]:0+u-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,Dg({},e.hat,{type:"path",d:Y5(f)})]}const G5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=H5({keys:U5,data:r,defaultSettings:W5,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,u=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=B5}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...K5({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:U5});return u}};function X5(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:X5(i,t,n)},i}function J5(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),X5(i,a,l,e.invert)}))}function Q5(){const e=Cp();return e.use(dg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",pg(e))};e.interaction("hammer",pg(Hammer))}(vg)),e.use((function(e){e.renderer("react",jY()),e.component("data-title",PY(e.renderer("svg")()))})),e.use(J5),e.renderer("react-qcm",F5),e.component("box-sliced-hat",G5),e.component("box-out-of-bounds",$5),e.component("disclaimer",I5),e.component("scrollbar",vX),e.component("scroll-hint",gS),e.component("reference-line-labels",bM),e.component("axis-overlay",OG.picassoComponents.axisOverlay),e.component("time-axis",OG.picassoComponents.timeAxis),e.scale("q-time-axis",OG.picassoScales.time),e}const Z5=()=>({version:"1.35.16",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),e3={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function t3(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const n3={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function r3(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(i=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return u=void 0!==i.secure?i.secure:i.isSecure,o=u?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await n3.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function i3(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,u=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",f=c.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return r3(c,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&t3(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await n3.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await n3.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,c,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(t3(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await n3.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const o3={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(i3(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},a3={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await o3.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>o3.checkIfPromisesExist({customTooltipModel:e})};const s3=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:e3.CHART.CHART_PARENT_TYPE,qId:e3.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},l3=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:e3.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const u3={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=e3.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:e3.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await u3.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=e3.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=e3.CHART.STATE,a=s3(t,o),s=await e.createSessionObject(a),l=l3(t);if(s.id!==e3.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,f;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(e3.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await u3.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(u3.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(e3.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=e3.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function c3(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function d3(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=e3.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function f3(e){const t=d3();return e.filter((e=>t[e.id]))}const h3={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=h3.getAttrExprData(a);o.length||n.length?a3.handlePromises({customTooltipModel:i,nodes:h3.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&u3.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>a3.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[e3.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[e3.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[e3.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(f3(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[e3.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[e3.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=c3(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===f3(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=c3(e)||[];[...i,t].forEach((e=>{const t=f3(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=d3(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Zg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Zg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function p3(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case e3.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case e3.CUSTOM.TITLE:case e3.CUSTOM.DESCRIPTION:case e3.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const m3={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>p3(t,e,r,n)}}};const g3={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[e3.CUSTOM.TITLE]:!0,[e3.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=h3.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===e3.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===e3.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>ey.getMeasure(e,t))),e,i)}};function y3({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(g3.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function v3(e){const t=e3.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function b3(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const x3={migrateProperties(e){var t,n;const r=Dg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=b3(r);return o=function(e,t){return t.concat(e.map((e=>v3(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=v3(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(b3(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var w3={attrExpr:x3},S3=7005;const M3=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3},k3=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Pg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},C3=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Pg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Pg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},q3=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},E3=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;C3(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(C3(e,t),r)))),(()=>r))}return k3(e),Promise.resolve()};function D3(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?$C(e,"color.persistent",!0):"byDimension"===r&&n.length>1?$C(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?$C(e,"color.mode","primary"):0===t.length&&n.length>0&&($C(e,"color.byMeasureDef",void 0),$C(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&$C(e,"color.mode","primary"))}const T3=(e,t)=>{D3(t),ev(e),h3.addCallbackCustomTooltip(t)},N3=e=>{D3(e)};function O3({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,i){let o;const a=null!=i&&i.layout?i.layout.qHyperCube.qDimensionInfo.filter((e=>M3(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?o="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?E3(t,n.app).then((()=>(T3(e,t),e))):(q3(t),T3(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>M3(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),k3(t),D3(t),h3.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;D3(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),h3.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){h3.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?E3(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,N3(t),e))):(q3(t),N3(t),e),move(e,t){k3(t),D3(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;D3(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function A3(e){return{properties:Z5(),data:{targets:[{path:"/qHyperCubeDef",...O3(e)}]}}}var _3={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function L3({env:t}){var n;const{flags:r}=t,i=null===(n=t.anything)||void 0===n||null===(n=n.sense)||void 0===n?void 0:n.isUnsupportedFeature,o=e.useTranslator();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(_3).forEach((t=>{e.add(_3[t])}))}}(t.translator);const a=e.useEmbed(),s=e.useTheme(),[l,u]=e.useState(),c=e.useDeviceType(),d=e.useAppLayout(),{qLocaleInfo:f}=d;return e.useEffect((()=>{u({translator:o,theme:s,embed:a,deviceType:c,localeInfo:f,isUnsupportedFeature:i,flags:r})}),[f,i,o.language(),s.name(),c]),l}function I3(){const[t]=e.useState((()=>WC())),[n]=e.useState((()=>function(e){var t=wM({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:t,viewState:n}}const R3="REJECTED",P3=()=>{},z3=1e4,F3={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},j3=50,B3=10,H3=100;var V3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-B3<=t.qTop,i=n.qLeft+n.qWidth+B3>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+B3>=t.qTop+t.qHeight,a=n.qLeft-B3<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var $3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-B3<=t.qTop,i=n.qTop+n.qHeight+B3>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var W3={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const U3="pages";const Y3="discretePan",K3=10;function G3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:Y3,pointers:1,threshold:K3,enable(r,i){return this.started===Y3||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${Y3}start`](e){e.preventDefault(),this.started=Y3;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-K3:K3},[`${Y3}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${Y3}end`](e){e.preventDefault(),this.started=!1},[`${Y3}cancel`](e){e.preventDefault(),this.started=!1}}}}function X3({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=Math.sign(-a)*H3;r.scroll(s)}}function J3({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(z3/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(F3.MAXIMUM,n));return{width:e,height:Math.max(F3.MINIMUM,Math.min(n*F3.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Q3(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(R3),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(R3),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(R3),n=null)},i}const Z3={command:{update:()=>{}}};function e4({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=Z3,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:u}=t,c=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:J3({layoutService:r}),request:u({definitionPath:o}),process:Q3(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=KC(((e,{onProcessing:t,onData:n})=>{c(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==R3)throw e}))}),j3);return function(e,{onProcessing:t=P3,onDataPage:n=P3}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var t4={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var n4={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function r4(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function i4(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function o4(e){return i4(e.qMatrix,(e=>e[0].qElemNumber))-1}var a4={inTotal:function({layoutService:e}){const t=r4(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=r4(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=r4(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=o4(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const s4=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),l4=(e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n};function u4(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return s4(e,n);const r=l4(t.qMatrix,n);return r.successful?r.count:s4(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return s4(e,n);return i4(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var c4={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=u4(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=u4(t).area(e(),l,a.qArea),d=o4(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function d4({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:u,maxDataRows:c}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,c);case"custom":return Math.min(g,c);default:return u?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:u,fontSize:c,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:u,fontSize:c,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function f4({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:u}){const{inTotal:c,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?t4:n?r?a4:c4:n4}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=c({layoutService:r});return{inTotal:l,inView:d4({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(z3/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&u?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function h4({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,renderer:c,areaBuffer:d,viewState:f,rtl:h}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const p=f4({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,renderer:c,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=m();n.set("itemSize",p.getItemSize({items:a}));const u=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),c=g({pixelOffset:u,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:c.start.pixel,items:a}));const d=p.getArea({itemOffset:c.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:c.start,items:a})),f.preventSet("scrollOffset",{start:c.start.item,end:c.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function p4({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=(()=>{})}={}}){const g=WC(),y=function({qMode:e}){switch(e){case"S":default:return V3;case"K":return $3;case"T":return W3}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(U3,[]),{add:t=>{const n=e.get(U3);n.length=0,n.push(t)},getCurrent:()=>e.get(U3)[0],getAll:()=>e.get(U3),contains:n=>t(e.get(U3)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=e4({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,processDataPage:m}),w=h4({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:u}),S=function({layoutService:e,dataStore:t}){return function(n){const r=HC(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[G3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:X3({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:w});return{interactions:M,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>S(e)}}}var m4="AVERAGE",g4="LINEAR",y4="POLYNOMIAL2",v4="POLYNOMIAL3",b4="POLYNOMIAL4",x4="EXPONENTIAL",w4="LOG",S4="POWER";function M4({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:i}=n,o={x:e,y:i[2]*t**2+i[1]*t+i[0]};switch(r){default:case y4:return o;case v4:return o.y+=i[3]*t**3,o;case b4:return o.y+=i[4]*t**4+i[3]*t**3,o}}var k4={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:M4,polynomial3:M4,polynomial4:M4,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};const C4=500;function q4(e,t){const n=k4[t.qType.toLowerCase()],r=Math.max(1,e/C4);let i=1/0,o=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});i=Math.min(e,i),o=Math.max(e,o)}return{min:i,max:o}}const E4=100;function D4(e){return k4[e.qType.toLowerCase()]}function T4(e,t){return e.meta.isContinuous?function(e,t){return{generate:(e,n,r)=>{const i=[],o=D4(e),{min:a,max:s}=t.get("zoom"),l=(s-a)/E4;if(l>0){const t=t=>{const a=o({dimValue:t,value:t,qTrendLine:e});a.layerId=n,a.measureIndex=r,a.dimValue=t,i.push(a)};let u=a;for(let e=a;e<=s;e+=l)t(e),u=e;u!==s&&t(s)}return i},calculate:(e,t)=>D4(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(0,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,s=o.qArea.qTop,l=k4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e],u=l({dimValue:o.qElemNo,value:e+s+1,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=o.qText,i.push(u)}return i},findMinMax:q4}}(e):function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qMatrix,s=o.qArea.qTop,l=k4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e][0],u=e+s+1,c=l({dimValue:o.qElemNumber,value:u,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=o.qText,i.push(c)}return i},calculate:(e,t,n)=>(0,k4[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:q4}}(e)}var N4={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},O4={color:"#f93f17",index:9};const{isDark:A4}=Zy,_4={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},L4=({layoutService:e,viewState:t,colorModel:n,chart:r,env:i,keys:{colorScale:o},isEnabled:a=(()=>!1)})=>{const{translator:s}=i,l=[_4],u=[],c=[],d=T4(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(u.push(...e.qTrendLines),c.push(...e.qTrendLines.map((()=>t))))}));const f=UC((e=>{const{style:t}=u[e]||{},i=n.settings();if(t.autoColor){if("measure"===i.mode){const t=c[e],n=r.scale(o)(t);return A4(n)?function(e){const t=Xy(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Xy(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(O4)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!u.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=u[e]||{};return t.lineDash},getLabel:e=>(u[e]||{}).label,getType:e=>{const{qType:t}=u[e]||{};return s.get(N4.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return u.forEach((r=>{const i=d.findMinMax(e.meta.size.y,r);t=Math.min(i.min,t),n=Math.max(i.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=u[e];return d.calculate(r,t,n)}},command:{update:()=>{l.length=0,u.forEach(((e,t)=>{const n=d.generate(e,t,c[t]);l.push(...n)}))}}}};var I4={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const R4=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,P4=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:i})=>{if(!n.query.hasTrendLines())return[];const o=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:i,animationsEnabled:o})=>{const a=R4(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:I4,settings:{connect:!0,orientation:i.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:2,stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:o,trackBy:wD.nonUpdatingNode.trackBy,compensateForLayoutChanges:wD.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:i}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:i})=>{const o=R4(r),a="horizontal"===i.meta.major.orientation,s={scale:e,fn:o},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:I4,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[o,a]};function z4(e,t){const{getLabel:n,getType:r,getLineDash:i,getStroke:o}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:o(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":i(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}const F4=16,j4=2;function B4(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Zg.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${F4}px`,x2:`${F4}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${F4} ${F4}`},t)}(e):t.content}function H4(e,t){return({h:n,data:r,style:i})=>{const o=r[0].title,a=r.filter((e=>e.title===o)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Zg.detectTextDirection(t)},t);return e("tr",{},n)}(n,o),l=[s];if(a.slice(0,j4).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Zg.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const i=B4(t,e);return t("td",r,i)}))}(e.row,{h:n,style:i})))})),r.length>j4){const i=r.length-j4;l.push(...function(e,t,n,r){const i=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,o=Zg.detectTextDirection(i);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:o},colspan:3},i))]}(n,e,t,i))}return l}}function V4(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:i}=r,o=Gg({key:e.tooltip,rtl:i});return Dg(!0,o,{settings:{extract:z4(e,t),content:H4(n,i),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function $4(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function W4(e,{chart:t,viewState:n,trendLineModel:r,layoutService:i,rtl:o}){const{isContinuous:a}=i.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=$4(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:i}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=$4(r,t),u=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(u.length){const r=function(e,t,n,r){let i=(e.x-t.rect.computed.x)/t.rect.computed.width;i=r?1-i:i;const{min:o,max:a}=n.get("zoom");return o+(a-o)*i}(l,a,n,o),s=t.scale(e.majorInnerScale),c=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);u.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=c,e.data.minor.value=i(e.data.layer.value,r).y}))}return u}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const U4=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},Y4=e=>{U4(e),e.qMultiDimMode="Sum",e.qXColIx=0};function K4(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Bg.dimensionless(n)&&!Bg.groupedByDimension(n)&&(r||!Bg.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:N4.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(N4.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:N4.ADD_BUTTON,add:Y4,globalChange:e=>{const t=HC(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!HC(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:N4.TYPE,options:[{value:m4,translation:N4.TYPES.AVERAGE},{value:g4,translation:N4.TYPES.LINEAR},{value:y4,translation:N4.TYPES.POLYNOMIAL2},{value:v4,translation:N4.TYPES.POLYNOMIAL3},{value:b4,translation:N4.TYPES.POLYNOMIAL4},{value:x4,translation:N4.TYPES.EXPONENTIAL},{value:w4,translation:N4.TYPES.LOG},{value:S4,translation:N4.TYPES.POWER}],defaultValue:m4},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:O4,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:N4.STYLE.DASHED,type:"boolean",defaultValue:!0,change:U4}}}}var G4={};function X4(){X4.init.call(this)}G4.isObject=function(e){return"object"==typeof e&&null!==e},G4.isNumber=function(e){return"number"==typeof e},G4.isUndefined=function(e){return void 0===e},G4.isFunction=function(e){return"function"==typeof e};var J4=X4;X4.EventEmitter=X4,X4.prototype._events=void 0,X4.prototype._maxListeners=void 0,X4.defaultMaxListeners=10,X4.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},X4.prototype.setMaxListeners=function(e){if(!G4.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},X4.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],G4.isUndefined(n))return!1;if(G4.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(G4.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},X4.prototype.addListener=function(e,t){var n;if(!G4.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,G4.isFunction(t.listener)?t.listener:t),this._events[e]?G4.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,G4.isObject(this._events[e])&&!this._events[e].warned)&&((n=G4.isUndefined(this._maxListeners)?X4.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,G4.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),G4.isFunction(console.trace)&&console.trace()));return this},X4.prototype.on=X4.prototype.addListener,X4.prototype.once=function(e,t){if(!G4.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},X4.prototype.removeListener=function(e,t){var n,r,i,o;if(!G4.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||G4.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(G4.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},X4.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],G4.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},X4.prototype.listeners=function(e){return this._events&&this._events[e]?G4.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},X4.listenerCount=function(e,t){return e._events&&e._events[t]?G4.isFunction(e._events[t])?1:e._events[t].length:0};var Q4=mg(J4);const Z4={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const e6=e=>(Object.keys(Q4.prototype).forEach((t=>{e[t]=Q4.prototype[t]})),Q4.init(e),e);function t6(){const[t]=e.useState({}),[n]=e.useState({}),r=function(){var t,n;const r=e.useLayout(),i=e.useTranslator(),o=!(null==r||null===(t=r.qSelectionInfo)||void 0===t||!t.qInSelections),a=!(null==r||null===(n=r.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n||null===(n=n[0])||void 0===n||!n.qIsOneAndOnlyOne),[s,l]=e.useState(!1),[u,c]=e.useState(!1),[d,f]=e.useState({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),h=e=>{c("boolean"==typeof e?e:!u)};return e.useAction((()=>(f({key:"lasso",action:h,enabled:()=>s,active:()=>u}),{key:"lasso",label:i.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:Z4,hidden:!s||!o||a,active:u,action:h})),[o,a,u,s,i.language()]),{get:()=>d,setAllows:e=>{l(!!e)}}}(),[i,o]=e.useState();return e.useEffect((()=>{const e={};e.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:e,discrete:r}=t;return n.allowScroll&&((null==e?void 0:e.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},e.interact={key:"interact",isEnabled:!0,enabled:()=>n.allowInteract},e.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>n.allowTooltip},e.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>n.allowSelect},e.lasso=r.get(),Object.keys(e).forEach((t=>e6(e[t]))),o(e)}),[]),e.useEffect((()=>{i&&r&&(i.lasso={...i.lasso,...r.get()})}),[r]),{get:()=>i,setAllows:e=>{Object.assign(n,e),r.setAllows(null==e?void 0:e.allowSelect)},setContext:e=>{Object.assign(t,e)},destroy:()=>{Object.keys(i).forEach((e=>i[e].removeAllListeners()))}}}var n6={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}},r6={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",MAJOR_NUM:"majorNum",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",STACK:"stack",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"},STYLING:{AXIS:"axis"}};function i6({layout:e}){const t=Ig.canBeContinuous(e),n=Bg.continuous(e),r=Bg.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:Ig.isTime(n,e),isDimensionless:r,isSimple:Bg.simple(e),isGrouped:Bg.grouped(e),isGroupedByMeasure:Bg.groupedByMeasure(e),isGroupedByDimension:Bg.groupedByDimension(e),isStacked:Bg.stacked(e),isStackedByDimension:Bg.stackedByDimension(e),isStackedByMeasure:Bg.stackedByMeasure(e),isSnapshot:Bg.snapshot(e)}}const o6={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===r6.COMPONENT.BAR){n=e;const r=HC(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function a6(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Vg).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,i=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+i.length+r,qHeight:Math.min(2e3,1e4/(i.length+1))},zoomLevel:-1,filter:"D1"}}}}function s6({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:i},o={}){const a=a6(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,i),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),u=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),c={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>c,update(e){var r;u.should(e)&&u(e),c.mode=Dg(c.mode,t.meta),c.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,c.mode.isStackedByDimension=c.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),c.mode.isStackedByMeasure=c.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),c.fields={major:c.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:c.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},c.scales={major:r6.SCALE.REDUCED.MAJOR,minor:r6.SCALE.REDUCED.MINOR},c.cube=e,o.qDataPages=e.qDataPages},fetchMinMaxData(){if(o.qDataPages)return Promise.resolve(o.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=Dg(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=c.cube}}}function l6({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:i}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==i.event&&r({componentName:"continuousRangeBrush",brushName:!1})}const u6=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function c6({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}const d6={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:i=0,qSelected:o=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+i+o:n}};function f6({picasso:t,chart:n,environment:r,viewState:i,viewCache:o}){const a=e.useStaleLayout(),s=e.useModel(),l=e.useApp(),u=e.usePlugins(),c=e.useSelections(),d=e.useOptions(),[f,h]=e.useState(),[p,m]=e.useState(),[g,y]=e.useState(),v=e.useConstraints(),b=t6();return e.useEffect((()=>{if(!n)return()=>{};const e=b.get(),t=function({chart:e,actions:t,selections:n}){const r=e.scale(r6.SCALE.MAIN.MAJOR),i=uD({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:l6},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}});return i}({chart:n,actions:e,selections:c});return m(e),y(t),()=>{t.destroy(),b.destroy()}}),[n]),e.useEffect((()=>{if(!v)return;const e={allowScroll:!v.active,allowInteract:!v.active,allowTooltip:!v.passive,allowSelect:!v.select&&!v.active};b.setAllows(e)}),[v]),e.useEffect((()=>{if(!g||!r)return;const{theme:e,translator:c,localeInfo:f,flags:m,embed:y}=r,{direction:v="ltr"}=d,x=ZC({source:a,metaAdditionsFn:i6,experimental:{filter:m.isEnabled("IM_1579_HIDE_DIM_MEA")}});g.setFilteredFields(x.meta.filteredFields);const w=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(x.getLayout())?ZC({source:x.getLayout()}):void 0,S=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:d}),M=function({layoutService:e,viewCache:t,flags:n,options:r}){const i={};return i.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),i.selectionDimensionIdx=u6(e.getHyperCube()),i.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,i.selectionDimensionProp=e=>void 0===i.selectionDimensionIdx||void 0!==e&&i.selectionDimensionIdx!==e?{}:{selectionDimension:{field:i.selectionDimensionIdx}},i.animations={enabled:()=>!1!==r.chartAnimations&&!!n.isEnabled("IM_1355_ANIMATIONS_BAR")&&!(i.animations.isPartialUpdating||i.animations.isSizeChanging||i.animations.hasSlicedHats)&&!wD.propertiesHaveChanged({viewCache:t,layout:e.getLayout()}),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},i}({layoutService:x,viewCache:o,flags:m,options:d}),k=BC({chart:n,layoutService:x,config:{logicalSize:S,rtl:"rtl"===v},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),C=function({layoutService:e}){return OC({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return d6.getDimensionSize(r)>Ig.maxNumberOfLines}}}}})}({layoutService:x}),q=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,u=r.extend,c=void 0===u?[]:u,d={theme:t,matrix:gD(a),styles:void 0};return d.styles=vD({theme:t,id:i,transform:l,extend:c,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=vD({theme:e,id:i,transform:l,extend:c,matrix:d.matrix})}}}({theme:e,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),E=function({layoutService:e,themeService:t}){const n=t.getStyles(),r=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.title.fontSize,color:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fill:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.axis.label.name.color,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.label.name.fontSize,fontFamily:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:n.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.title.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.title.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.label.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.label.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,o,a,s,l,u;return{fill:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.label.value.color,useContrastColor:null===(i=null===(o=r("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.useContrastColor)||void 0===i||i,fontSize:null!==(a=null===(s=r("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontSize)&&void 0!==a?a:n.label.value.fontSize,fontFamily:null!==(l=null===(u=r("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.fontFamily)&&void 0!==l?l:n.label.value.fontFamily}}}}}({layoutService:x,themeService:q}),D=OG.model({model:s,layoutService:x,viewCache:o,viewState:i}),T=s6({enigma:s,layoutService:x,viewModel:M});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:x,viewState:i,viewStateOptions:null==d?void 0:d.viewState});const N=function({app:e,model:t,translator:n,picasso:r,localeInfo:i,theme:o,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:u}){const{isContinuous:c,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const h=[],{isReduced:p}=u.model().mode,m=c||p||d,g=!c&&(p||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return f.main=qC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:c6,key:r6.SCALE.MAIN.COLOR},createConfig:()=>({hc:m?g||s.getHyperCube():u.model().cube,source:m?y:"miniCube",theme:o})}),h.push(f.main.initialize()),c&&(f.mini=qC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:c6,key:r6.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:o})}),h.push(f.mini.initialize())),Promise.all(h)},getMain:()=>f.main,getMini:()=>f.mini}}({picasso:t,model:s,app:l,translator:c,localeInfo:f,theme:e,continuousDataModel:D,layoutService:x,legendLayoutService:w,reducedDataModel:T}),O=L4({layoutService:x,viewState:i,colorModel:{settings:()=>N.getMain().getSettings(),resolveUIColor:e=>N.getMain().getPaletteColor(e)},chart:n,env:r,keys:{colorScale:r6.SCALE.MAIN.COLOR},isEnabled:()=>!x.meta.isGroupedByDimension&&(!x.meta.isStackedByDimension||m.isEnabled("TRENDLINES_STACKED_DIM"))&&!x.meta.isDimensionless});w3.attrExpr.updateProperties(s,a);const A=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:h3,miniChartToken:{},embed:s}}({layout:a,app:l,model:s,picasso:t,chart:n,translator:c,localeInfo:f,embed:y,extractDimsAndNode:o6.extractDimsAndNode});let _;x.meta.isDiscrete&&(_=p4({chart:n,actions:p,componentKey:r6.COMPONENT.BAR,enigmaModel:s,layoutService:x,dockService:k,trendLineModel:O,itemWidths:n6,viewState:i,rtl:"rtl"===v,options:{axisKey:r6.COMPONENT.BAR_AXIS,renderer:t.renderer("svg")()}}));const L=AD({layoutService:x,discreteModel:_}),I=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:r6.SCALE.MAIN.MINOR,MAJOR:r6.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:r6.COMPONENT.BAR,BAR_AXIS:r6.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:r6.COLLECTION.MAIN}}}}(x),R=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return CM(SM().mark((function e(){var r,a,s,l;return SM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=CM(SM().mark((function e(n){var r;return SM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(wM({},i));case 4:if("object"===MM(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(wM({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,TM(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=DM(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=GM(!0,{},n.brush);GM(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===MM(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=eq({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=eq({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:u||[],pluginArgs:I});b.setContext({discrete:_,layoutService:x}),h({discrete:_,continuous:OG,legendLayoutService:w,layoutService:x,viewModel:M,dockService:k,themeService:q,styleService:E,continuousDataModel:D,reducedDataModel:T,colorService:N,trendLineModel:O,refLineModel:L,pluginService:R,customTooltipModel:A,selectionService:g,logicalSize:S,disclaimerService:C})}),[g,d,r,a]),f}function h6(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function p6(e){return e.some(h6)}function m6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{p6(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function g6(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function y6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!p6(e)){let i=0,o=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?o+=e.qNum:i+=e.qNum)})),n=Number.isNaN(n)?i:Math.min(i,n),r=Number.isNaN(r)?o:Math.max(o,r)}})),{min:n,max:r}}function v6(e,t){const n={};e.forEach((e=>{if(!p6(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,i=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),i=Number.isNaN(i)?n[e].max:Math.max(n[e].max,i)})),{min:r,max:i}}function b6(e){return"number"==typeof e&&!Number.isNaN(e)}function x6(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>b6(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>b6(e.qMax))).map((e=>e.qMax)))}}function w6(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function S6(e){return!Number.isNaN(+e.qNum)}function M6(e){return e.qNum}function k6(e){return!Number.isNaN(+e.qNum)}function C6(e){return e.qNum}function q6(e,t){return e.push(...t),e}const{getValueWithOffset:E6,isNumber:D6}=_S,T6=5,N6=.2;function O6(e,t){return Math.abs(e/t)<T6||0===t}function A6({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=y6,stackedByDimensionExtractor:i=v6,straightExtractor:o=m6,measureInfoExtractor:a=x6,explicitExtractor:s=g6}=n,{meta:l}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:i}){let o,a;if(Array.isArray(n)?({min:o,max:a}=this.extractFromStacked(n)):({min:o,max:a}=this.extractFromStraight(e,i)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();o=Number.isFinite(e)?Math.min(o,e):o,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),u=this.extractExplicit(),c=[0,o,a].filter((e=>D6(e)));let d=Math.min(...c),f=Math.max(...c);d=O6(s,d)?Math.min(d,s):d,f=O6(l,f)?Math.max(f,l):f;const h=[u.explicitMin,u.explicitMax,d,f].filter((e=>D6(e)));return o=Number.isNaN(u.explicitMin)?Math.min(...h):u.explicitMin,a=Number.isNaN(u.explicitMax)?Math.max(...h):u.explicitMax,o===a&&(Number.isNaN(u.explicitMin)?o=E6(o,-N6):Number.isNaN(u.explicitMax)&&(a=E6(a,N6))),{min:o,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<o,hasOtherMax:l>a,...u}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:i}=s(e);return{hasExplicitMinMax:r||i,hasExplicitMin:r,hasExplicitMax:i,explicitMin:t,explicitMax:n}},extractFromStacked:e=>function(e){return e.length?{min:Math.min(...e[0].qSubNodes.map((e=>e.qMinNeg))),max:Math.max(...e[0].qSubNodes.map((e=>e.qMaxPos)))}:{min:0,max:0}}(e.length?e[0].qData:[]),extractFromStraight(t,n){const s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?i(s,n):e.getHyperCubeValue("qHasOtherValues")?o(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=w6(HC(e,"0.qData.0.qSubNodes",[]),h6,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=HC(e,"0.qMatrix",[]).filter(p6).reduce(q6,[]).filter(k6).map(C6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=w6(HC(e,"0.qMatrix",[]),p6,[]).filter(S6).map(M6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function _6(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:i}=t,o=e=>!e.length&&r.mode.K,a=e=>{const t=i("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=i("qMeasureInfo").length,s=i("qDimensionInfo").length,l=i("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const u=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(o(e))return a(l);let t=[];return l&&(t=r.mode.K?i("qStackedDataPages",[]):i("qDataPages",[])),{qDataPages:e,count:u,others:t}}))}}}(e),n=A6(e);return t.resolve().then((e=>n.extract(e)))}const L6=({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}),I6="lasso",R6=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:I6,enable(e,n){if(this.started===I6||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==I6&&(i.actions.select.emit("start",I6),this.chart.component(e).emit("lassoStart",t),this.started=I6)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",I6),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const P6=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),u=o.hitRadius?o.hitRadius(a):0,c=u>0?{cx:n.x,cy:n.y,r:u}:n,d=o.shapesAt?o.shapesAt(c):this.chart.shapesAt(c,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const z6=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const F6=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function j6(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:u=!1,multiple:c=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:u?{context:"selection",observe:!0}:"selection",scale:s,multiple:c,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=F6(e,t,"range");return{interactions:[e.onEdited?z6(e,t):null,r].filter(Boolean),components:[n]}}const B6={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},H6="inner-time-axis",V6="outer-time-axis";const $6={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=d6.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?HC(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=$6.getAxisData(e,t),r=!e.qDimensionInfo.length,i=r||t?void 0:e.qDimensionInfo.length-1,o=$6.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Ug.getAdjustedMaxGlyphCount(o,n,i,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=$6.getAxisData(e),n=d6.getMaxGlyphCount(e,0);return Ug.getAdjustedMaxGlyphCount(n,t,0)}};var W6={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function U6(e,t,n,r){const{meta:i}=t.layoutService,o=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);i.isContinuous?o.push(...function(e,t,n,r){const{meta:i}=t.layoutService,{axis:o,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:u}=t.layoutService.getLayoutValue("gridLine",{}),c=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=B6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,h={type:"grid-line",x:{},layout:{minimumLayoutMode:B6.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.lines.trackBy,compensateForLayoutChanges:wD.lines.compensateForLayoutChanges}},p=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(i.isTime){if(d){const e=n?"end":"start",r=n?1:0,i="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:o.line.major.color},minorGuideLine:{stroke:o.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:i,justify:r},guideLine:{major:{justify:r},minor:{align:i}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isTime:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isTime:!0})}};c.push(Dg(!0,{},d,{key:H6,scale:r6.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===u}},style:Dg(!0,{},a,{line:{stroke:o.line.major.color},majorGuideLine:{stroke:o.line.minor.color},minorGuideLine:{stroke:o.line.major.color}})})),c.push(Dg(!0,{},d,{key:V6,scale:r6.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:r6.SCALE.MAIN.MAJOR,layout:{dock:`@${V6}`,minimumLayoutMode:f}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:r6.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${H6}`,minimumLayoutMode:f}}),c.push(p)}return c.push(Dg(!0,{},h,{key:"inner-time-grid",x:{scale:r6.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(Dg(!0,{},h,{key:"outer-time-grid",x:{scale:r6.SCALE.MAIN.MAJOR}})),c}if(i.isContinuous){const e="continuous-axis";d&&(c.push({type:"axis",key:e,renderer:RD(t.flags),scale:r6.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:o.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isContinuous:!0})}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:r6.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),c.push(p)),c.push(Dg(!0,{},h,{key:"continuous-grid",x:{scale:r6.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):o.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:i}=t.layoutService,o=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),u="horizontal"===t.dockService.meta.major.orientation,c=u?e.dimensionAxis.label:"auto",d="horizontal"===c?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),h={type:"axis",renderer:RD(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:B6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:c,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:o.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isHorizontal:u})}};l&&a.push(Dg(!0,{},h,{key:"group-axis",scale:r6.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":h.settings.labels.mode,maxGlyphCount:$6.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(u||!s)&&h.settings.line.show}}}));const p=$6.getBarAxisMaxGlyphCount(e.qHyperCube,i.isStackedByDimension);return s&&a.push(Dg(!0,{},h,{key:r6.COMPONENT.BAR_AXIS,scale:r6.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:p,maxLengthPx:d,tiltThreshold:p>W6.LOWERGLYPHCOUNT&&p<W6.UPPERGLYPHCOUNT?1:void 0},line:{show:!(u&&l)&&h.settings.line.show}}})),u||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),u=t.styleService.axis.label.getStyle();return a&&o.push({type:"axis",key:"y-axis",renderer:RD(t.flags),formatter:r6.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:B6.measureAxis.minimumLayoutMode},scale:r6.SCALE.MAIN.MINOR,settings:{labels:{show:s,...u},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),o}var Y6={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const K6=.7,G6=.9;function X6({layoutService:e,discrete:t,componentKey:n}){var r;const{isContinuous:i,isGrouped:o}=e.meta;if(i)return 1;const a=(e.getLayoutValue("components",[])||[]).filter((e=>e.key===n))[0];if(null!=a&&null!==(r=a.style)&&void 0!==r&&r.width){const{style:e}=a;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=Y6.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return o?G6:K6}const J6={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Q6(e,t,n={}){return({data:r})=>{const i=e.chart.component(t).rect;if(!r.items.length||!i)return 2;const{min:o,max:a}=e.viewState.get("zoom");if(n[[o,a]])return n[[o,a]];const s=J6[Og.getLayoutMode(i.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-o),u=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===u)return s;const c=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/u/.2,1));return n[[o,a]]=Math.max(2,Math.min(s,c)),n[[o,a]]}}function Z6(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function e7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function t7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function n7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const r7={MAX:"max",MIN:"min"},i7={min:"Min",max:"Max"};function o7(e,t,n){return void 0===n?Z6(e,t)||e7(e,t):n===r7.MAX?Z6(e,t):e7(e,t)}function a7({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${i7[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===r7.MAX?e.implicitMax:e.implicitMin;return!o7(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function s7(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:i,dockService:o,themeService:a}=e,s=i.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===r7.MAX?s.implicitMax:s.implicitMin;if(!o7(Number(l.toFixed(13)),s,n))return!1;const{orientation:u}=t.settings,c=n===r7.MAX?o.meta.minor.end:o.meta.minor.start;let d="end";r&&(d=n===r7.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:u,major:t.settings.major,minor:t.settings.minor,dockValue:$g.getDockValue(c),oob:Dg({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&o7(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:wD.barOobs.compensateForLayoutChanges}}}function l7(e){return Math.min(Math.max(0,e),1)}const u7=(e,{chart:t,type:n,componentKey:r,collectionKey:i})=>{const{layoutService:o,dockService:a,viewCache:s}=e,{isStacked:l}=o.meta,u=s.get("minorMinMax"),{meta:c}=e.layoutService;if(!a7({minorMinMax:u,type:n}))return!1;let d;c.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:c.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${r6.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:i},settings:{orientation:a.meta.minor.orientation,major:{scale:r6.SCALE.MAIN.MAJOR,fn:d},minor:{scale:r6.SCALE.MAIN.MINOR,start(e){var n;return l7(t.scale(r6.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(r6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r[n]();return l7(r(o))}},box:{width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(r6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r.max();return"max"===n?o>r.max():o<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return f};function c7(e,t){const{style:n,styleService:r,dockService:i}=t,o=r.label.getStyle(),a=o.useContrastColor&&!e.onBackground?function(e){return function(t){return Zy.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):o.fill,s="horizontal"===i.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function d7(e){return{placements:e.simplifiedPlacements.map((t=>c7(t,e))),label:e.label}}function f7(e,t){if(t){if(function(e,t){return Z6(e,t)}(e,t))return-1;if(function(e,t){return e7(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}const h7="vertical",p7="horizontal";function m7(e,t,n,r){const i=f7(e,r);let o="up";return t===h7&&i<0?o="down":t===p7&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}function g7(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!r||!i&&!!n.showSegmentLabels}function y7(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!!r&&(!!i||!1!==n.showTotalLabels)}function v7(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}function b7({layout:e,component:t,minorScale:n},r,i){if(!g7(e,r))return!1;const{viewModel:o,ds:a,viewCache:s,layoutService:l,dockService:u,themeService:c}=r,{meta:d}=l,f=s.get("minorMinMax"),h=c.getStyles(),p=r.styleService.label.getStyle();let m;!d.isStacked&&(m=d.isStacked?1:0);const g=0===m?1:0,y=d.isStacked?.5:1,v=o.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,w=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>w?b(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:x,simplifiedPlacements:v7(m,g,y,d.isContinuous),style:h.label.value},M=[d7(Dg(r,S))],k={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>m7(e.data.end.value,u.meta.minor.orientation,i,f),labels:M,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:wD.labels.linkData}}},C=[k],q={key:"bar-labels",type:"labels",renderer:RD(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:C},animations:{enabled:r.viewModel.animations.enabled,trackBy:wD.labels.trackBy,compensateForLayoutChanges:wD.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(q.beforeRender=()=>{w=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",i=t.chart.component(e),o=i&&i.rect?i.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/o}(t,r,n)}),q}const x7={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,i){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const o=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:o.measureIndex.value]:void 0,s=n.isStacked?{source:{key:o.source.key,field:a},label:!0===(null===(l=o.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&i?i(o.segment.value):o.segment.label}:o.end;var l;return ey.getMeasure(e,s)},getMeasures(e,t,n,r,i){const o=e.resources.dataset;return t.map((e=>x7.getMeasure(o,e,n,r,i))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return y3({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,i){const o={title:x7.getTitle(t,n),color:ey.getColor(e,t,r),measures:x7.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,i)};if(x7.useCustomTooltip(r)){var a,s;const n=x7.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);o.customMeasures=n.customTooltipAttrExpsArr,o.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===e3.CUSTOM.TITLE)),o.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===e3.CUSTOM.DESCRIPTION));let i=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(i=e.data.customTooltipImages)})),i.length>0&&(o.customImages=i);const d=r.layoutService.getLayout();var l,u,c;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(u=r.app).isInModalSelection)&&void 0!==l&&l.call(u)){if((null==d||null===(c=d.qHyperCube)||void 0===c||null===(c=c.qDimensionInfo)||void 0===c?void 0:c.length)>0){u3.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");o.customLimitation=e}}else{const t=u3.createContainer({ctx:e,layout:d});o.customChart=t}}return o},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,i=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${x7.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:i}},extractTooltipData(e,t){const n=t.chart.formatter(r6.FORMATTER.MINOR),{meta:r}=t.layoutService,i=e.node.childrenNodes?e.node.childrenNodes:[e.node],o=Math.max(0,i.length-6);i.length=Math.min(i.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>x7.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:i.map((i=>x7.extractBarTooltipData(e,i,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:o}},extractBarNodeData(e,t,n,r,i,o,a){let s=!i&&ey.getTitleRow(t,r);const l=ey.hideColorRow(t,n),u=!o&&!l&&ey.getColorRow(e,t,r),c=t.measures.map((i=>!a&&ey.getMeasureRow(i,e,t,r,l&&i.field===n.coloring.field))),d=c.filter((e=>!x7.isSameMeasureAndColorRow(e,u,r)));if(x7.useCustomTooltip(n)){const n=i?[]:t.customMeasures.map((n=>ey.getMeasureRow(n,e,t,r,!1))),o=!(!t.customTitle[0]||i)&&ey.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||i)&&ey.getDescriptionRow(t.customDescription[0],r);s=!x7.shouldIgnoreTitleRowForCtt(o,a,d,n)&&s;const l=[o,a,s,u,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(h3.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>h3.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,u,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&ey.getTitleRow(t,n),i=t.measures.map((r=>ey.getMeasureRow(r,e,t,n,!1)));return[r,...i].filter(Boolean)},useCustomTooltip:e=>HC(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>x7.useCustomTooltip(t)&&HC(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:i}=t.layoutService,o=t.layoutService.getLayout(),a=r.length;let s,l,u=[];const c=x7.shouldIgnoreDefaultRows(o,t);for(s=0;s<a;s++){l=r[s];const o=x7.shouldIgnoreTitleRow(i,s),d=c||x7.shouldIgnoreColorRow(i,s),f=c||x7.shouldIgnoreMeasureRow(d,l,t);if(u=u.concat(x7.extractBarNodeData(e,l,t,n,o,d,f)),u.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:u,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:u,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(x7.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:i,stackTotalBarTooltipData:o}=x7.extractTooltipData(e,t),a=x7.extractStackTotalBarsData(e,n,o);a.length&&a.push(ey.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=x7.extractBarsData(e,t,n,r),u=a.concat(s),c=i+l;return c&&u.push(ey.getNMoreRow(c,t.translator,n)),u},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return _D.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:i,groupProp:o}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",u=e.chart.scale(n).pxScale(a[l]);let c,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;c=i.value,d=n===r&&void 0!==c?(u([c,0])+u([c,t-1]))/2:0,f=n===r&&void 0!==c?u.bandwidth([c,0]):0}else{const{value:e}=i;c=i[o]?i[o].value:void 0,d=u(n===r&&void 0!==c?[c,e]:e),f=n===r&&void 0!==c?u.bandwidth([c,e]):u.bandwidth(e)}const h=(d+f/2)*a[l],p={width:0,height:0};return"horizontal"===s?(p.x=h,p.y=a.height):(p.y=h,p.x=0),p},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:i,majorScale:o,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let u;return u=l.length?x7.calculateBoundsFromBars(l):x7.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===i?o:a,majorScale:o,data:t[0].data,groupProp:s}),u},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const i=e.filter((e=>t.some((t=>n(e,t,r)))));return i},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=x7.isBarMatchingLabelOnProp;return x7.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=x7.isBarMatchingLabel;return x7.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const i=t.filter((e=>e.key===n)),o=t.filter((e=>e.key!==n)),a=x7.findBarsFromBarLabelsInGroupedByDim(e,i,r),s=x7.findBarsFromGroupLabelsInGroupedByDim(e,o,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=x7.isBarMatchingLabel;return x7.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=x7.isBarMatchingLabel;return x7.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=x7.isBarMatchingLabelOnProp;return x7.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>x7.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:i,stackProp:o}){const{meta:a}=t.layoutService,s=x7.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?x7.findBarsFromLabelsInStackedByDim(s,e,o):a.isStackedByMeasure?x7.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?x7.findBarsFromLabelsInGroupedByDim(s,e,r,i):x7.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const i=x7.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?x7.findStackTotalBarsFromLabelsInStackedByDim(i,e):x7.findStackTotalBarsFromLabelsInStackedByMeasure(i,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:u,majorInnerScale:c,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let h=x7.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(h=h.filter(d)),x7.isSingleBarMode(f,h))return[h[0]];if(h.length){let f=x7.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,o,a],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const p=x7.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:i,groupProp:s,majorScale:u,majorInnerScale:c}),m=x7.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:p,childrenNodes:h,data:h.map((e=>e.data)),stackTotalBarNodes:m};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,groupAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d}){let f=x7.filterNodesOnKeys(e,[i,o]),h=f&&f.length?[f[0]]:[];const p=x7.filterNodesOnLabels({labels:h,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d});if(p&&p.length)return p;const{meta:m}=t.layoutService;if(m.isStackedByMeasure){f=x7.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>x7.filterNodesForOob(e,n,a),p=x7.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}if(m.isStackedByDimension){f=x7.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>x7.filterNodesForOob(e,n,a),p=x7.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}const g=x7.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function w7(e,t={},n){let r=[];const i=Gg({key:r6.COMPONENT.BASE_TOOLTIP,rtl:n});return Dg(!0,i,{scale:r6.SCALE.MAIN.COLOR,settings:{filter:e=>x7.filterNodes({nodes:e,opts:t,barKey:r6.COMPONENT.BAR,stackTotalBarKey:r6.COMPONENT.STACK_TOTAL_BAR,barAxisKey:r6.COMPONENT.BAR_AXIS,groupAxisKey:r6.COMPONENT.GROUP_AXIS,barOobMaxKey:r6.COMPONENT.BAR_OOB_MAX,barOobMinKey:r6.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],x7.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:i,properties:o,customTooltipModel:a}=t;i&&(null===(e=i.isInModalSelection)||void 0===e||!e.call(i))&&a.useCustomTooltip&&a.embed&&u3.show({app:i,properties:o,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const S7={extractData:(e,t)=>[ey.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function M7(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Gg({key:r6.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return Dg(!0,r,{scale:r6.SCALE.MAIN.COLOR,settings:{filter:e=>S7.filterNodes(e,r6.COMPONENT.LEGEND_COLOR_CAT),extract:e=>S7.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function k7(e,{fill:t}){return{[r6.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[r6.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const C7=1,q7=3;function E7(e){return e.getLayoutValue("gridLine.auto")}function D7(e){return!E7(e)&&e.getLayoutValue("gridLine.spacing")===C7}function T7(e){return!E7(e)&&e.getLayoutValue("gridLine.spacing")===q7}const N7=e=>({enabled:e.animations.enabled,trackBy:wD.lines.trackBy,compensateForLayoutChanges:wD.lines.compensateForLayoutChanges}),O7=(e,{themeService:t,layoutService:n,dockService:r,viewModel:i})=>{if(!E7(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:B6.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!D7(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:T7(n),stroke:o.line.minor.color},animations:N7(i)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=r6.SCALE.MAIN.MINOR,a};function A7(e,t){const n=[O7(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const i=n.get("minorMinMax");if(i.min>0||i.max<0)return!1;const o=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:r6.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:r6.SCALE.MAIN.MINOR,lines:a,animations:N7(r)}})(t)),n}const _7="areaPan",L7=e=>({type:"Pan",key:"panorama",options:{event:_7,pointers:1,threshold:10,enable(t,n){return this.started===_7||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===r6.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=_7;const n=e.viewState.get("zoom");this[_7]={min:n.min,max:n.max,size:e.chart.component(r6.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:i,size:o}=this[_7],a=-t.deltaX/o;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(i+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function I7(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:i}=e,{rtl:o}=t,a=OG.event.onZoom({viewCache:n,viewState:r,chart:i},{threshold:100,rtl:o,targetKey:r6.COMPONENT.BAR}),s={last:0,diff:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===r6.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function R7({chart:e},t,n){const r=e.component(r6.COMPONENT.BASE_TOOLTIP);var i;r&&r.show&&(r.emit("hide"),null!=n&&null!==(i=n.customTooltipModel)&&void 0!==i&&i.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const o=e.component(r6.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&o.emit("hide");const a=e.component(r6.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function P7(e,t){const{viewCache:n,viewState:r,chart:i,trendLineModel:o,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?OG.event.onZoom({viewCache:n,viewState:r,chart:i},{rtl:s,threshold:50,targetKey:r6.COMPONENT.BAR}):void 0,u=W4({majorInnerScale:r6.SCALE.MAIN.MAJOR_INNER,tooltip:r6.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:r6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:i,viewState:r,trendLineModel:o,layoutService:a,rtl:s}),c=[r6.COMPONENT.BAR,r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS,r6.COMPONENT.BAR_OOB_MAX,r6.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const i={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(i).filter((e=>e.key===r6.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(i,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),R7(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(u(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(r6.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>c.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const i=d.getNodes(t,this.chart);f(t,r,{nodes:i,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const i=this.chart.component(r6.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&(n.some((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT))?i.emit("show",t):i.emit("hide"))}},mouseup(t){2===t.button&&R7(this,f,e)},mouseleave(){R7(this,f,e)}}}}const z7=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...QG({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[L7(e,t.rtl),I7(e,t)]]});function F7(e,t){const n=[z7(e,t),P7(e,t),QG({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const j7=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:wD.bars.compensateForLayoutChanges});const B7=(e,t,{collectionKey:n})=>{if(!zG({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:i},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:Dg(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:Dg(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:j7(i)}}(e,t,{collectionKey:n});const{mode:r,scales:i}=t.reducedDataModel;let o;return r.isGroupedByDimension&&!r.isReduced?o=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(o=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:i.major,fn:o},minor:{scale:i.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:j7(t.viewModel)}},{measureText:H7}=Cp.renderer("svg")();function V7(e,t,n){const r=function(e){const t=Dg(!0,{},e);return delete t.data,t}(t.minor),i=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:i,getProp:o}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:i};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=Dg(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=Dg(!0,{},t,{min:()=>o("continuousMin"),max:()=>o("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:i}}const $7=125,W7={NARROW:50,MEDIUM:100,WIDE:200};function U7(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return W7.NARROW;case 1:return W7.MEDIUM;case 2:return W7.WIDE;default:return t*$7}}(t);return Math.max(1,Math.round(e/n))}const Y7=10;function K7(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function G7(e,t,n){return 0===t||0===e||t===n.length-1}function X7(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function J7(e,t,n,r,i){e.domain([t,n]),e.nice(Y7);const[o,a]=e.domain();let s=e.ticks(Y7);const l=function(e){return e.length%2==0}(s),u=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),c=u?G7:K7;s=s.filter(c),l&&!u&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=i?i.formatter(r6.FORMATTER.MINOR):void 0;return X7(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:o,roundedMax:a,ticks:s}}function Q7(e,t,n,r,i,o,a,s){const l=o.formatter(r6.FORMATTER.MINOR),u=s.getStyles(),c="horizontal"===a.meta.major.orientation?"height":"width",d=e=>H7({text:e,fontSize:u.axis.label.name.fontSize,fontFamily:u.axis.label.name.fontFamily})[c];let[f,h]=e.domain(),p=e.ticks(r);function m(){const e=p.map(l);return!X7(e)&&function(e){const t=i/p.length;return Math.max(...e.map(d))<=t}(e)}for(let i=r-1;i>0&&!m();i--)e.domain([t,n]),e.nice(i),[f,h]=e.domain(),p=e.ticks(i);return{roundedMin:f,roundedMax:h,ticks:p}}const Z7=(e,t)=>e.value-t.value,e8=e=>({value:e,isMinor:!1}),t8=e=>({value:e,isMinor:!0});function n8(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function r8({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:i}){const{explicitMin:o,explicitMax:a,hasExplicitMin:s,hasExplicitMax:l}=t.get("minorMinMax"),{min:u,max:c}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),d=UC((()=>{const d=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(r6.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=U7(d,r),h=function(e,t,n){const r=rx().domain([e,t]);return r.nice(n),r}(u,c,f);let p,m,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:p,roundedMax:m}=function(e,t){return{roundedMin:e,roundedMax:t}}(u,c)):(({roundedMin:p,roundedMax:m,ticks:g}=Q7(h,u,c,f,d,e,n,i)),n8(g,o,a)&&({roundedMin:p,roundedMax:m,ticks:g}=J7(h,u,c,s||l,e)));const y=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}(g,1);g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(s,o,g),g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(l,a,g);const v=function(e,t){return[...e.map(e8),...t.map(t8)].sort(Z7)}(g,y);return{roundedMin:p,roundedMax:m,ticks:v}}),(()=>t.get("isPreRender")));return{values:()=>d().ticks,min:()=>s?o:d().roundedMin,max:()=>l?a:d().roundedMax}}function i8(e,{picasso:t,discrete:n,layoutService:r,dockService:i,viewModel:o,viewCache:a,reducedDataModel:s,colorService:l,themeService:u,viewState:c,chart:d},{localeInfo:f,rtl:h}){const{meta:p}=r,{fields:m}=o,g=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,i.meta.chart.size["horizontal"===i.meta.major.orientation?"height":"width"]/4)},y=!("none"===r.getLayoutValue("measureAxis.show"))?(v=i.meta.minor.orientation,b=i.meta.minor.dock,"vertical"===v?"near"===b||"left"===b?0:1:"near"===b||"bottom"===b?1:0):.5;var v,b;const x={},w="vertical"===i.meta.minor.orientation&&h,S=l.getMain().getScales(),M=l.getMini().getScales();if(Object.assign(x,S,{reducedFill:M.reducedFill}),x[r6.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:i,themeService:o},{rtl:a}){const s=r8({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:o}),l={invert:"vertical"===n.meta.minor.orientation||a,ticks:{values:s.values},minorTicks:{count:1},min:s.min,max:s.max};return i.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor}),l}({chart:d,viewModel:o,dockService:i,viewCache:a,layoutService:r,themeService:u},{rtl:h}),p.isGroupedByDimension)[r6.SCALE.MAIN.MAJOR_INNER,r6.SCALE.MAIN.MAJOR].forEach(((e,t)=>{x[e]={invert:w,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...o.selectionDimensionProp(t),group:p.isGroupedByDimension?{field:m.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:g,align:y}})),o.isDimensionLocked(0)||(x[r6.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(p.isGroupedByMeasure)x[r6.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:w,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:g,align:y};else if(p.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:i,picasso:o,viewState:a,localeInfo:s,themeService:l}=e,u=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),c=o.formatter("q-time"),d=l.getStyles(),f=e=>H7({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});i.set("qTimeAxisCache",[]);const h={get:(e,t=0)=>{const n=i.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{i.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(i.get("continuousMax")-i.get("continuousMin")),o=u().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...o].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:h},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:h}}}({picasso:t,localeInfo:f,viewState:c,viewModel:o,viewCache:a,themeService:u,layoutService:r},h);x[r6.SCALE.MAIN.MAJOR_INNER]=e,x[r6.SCALE.MAIN.MAJOR]=n}else p.isContinuous?x[r6.SCALE.MAIN.MAJOR]={type:"linear",invert:w,data:{extract:{key:"qHyperCube",field:m.majorNumeric}},ticks:{forceBounds:!0,count:c.get("zoom").min===c.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>c.get("zoom").min,max:()=>c.get("zoom").max}:x[r6.SCALE.MAIN.MAJOR]={invert:w,data:{extract:p.isDimensionless?m.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:p.isDimensionless?"band":void 0,maxPxStep:g,align:y};const{reducedMinor:k,reducedMajor:C}=V7(s,{major:x[r6.SCALE.MAIN.MAJOR],minor:x[r6.SCALE.MAIN.MINOR]},{majorScaleInvert:w,maxPxStep:g,align:y,getProp:a.get});return p.isDiscrete&&(x[r6.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,p.isGroupedByDimension&&(x[r6.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),x[s.scales.major]=C,x[s.scales.minor]=k,x}function o8(e,t,n){const{layoutService:r,colorService:i}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[P6(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?r6.COMPONENT.STACK_TOTAL_BAR:r6.COMPONENT.BAR,r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",r6.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return r6.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT))?i.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function a8(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=L6(n);return{interactions:[R6(n,t)],components:[r]}}({key:"lasso",componentTargetKey:r6.COMPONENT.BAR,components:[t?{key:r6.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:r6.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function s8(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[F6(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:r6.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",r6.COMPONENT.BAR_AXIS,r6.COMPONENT.BAR],fillTargets:["group-axis",r6.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function l8(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:i}=t,o=void 0===n,a=r.getIsSingleSelect(n),s=o8(e,o,a);if(o||a)return{components:[...s.components],gestures:[...s.interactions]};const l=a8(e),u=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:j6({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",r6.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:r6.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,i),c=function(e){return e.layoutService.meta.isContinuous?j6({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",r6.COMPONENT.BAR]:["continuous-axis",r6.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?r6.SCALE.MAIN.MAJOR_INNER:r6.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const i=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(r6.FORMATTER.MINOR),o=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||o?"":"<"}${i(t)}`}},e):{components:[],interactions:[]}}(e),d=s8(e);return{components:[...s.components,...l.components,...u.components,...d.components,...c.components],gestures:[...l.interactions,...s.interactions,...u.interactions,...d.interactions,...c.interactions]}}function u8({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:i}=e;if(!i.isStackedByDimension||i.isContinuous)return!1;const{fields:o}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMaxPos.toFixed(13))}}},{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMinNeg.toFixed(13))}}}]},settings:{major:{scale:r6.SCALE.MAIN.MAJOR},minor:{scale:r6.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:wD.shadowBars.trackBy,compensateForLayoutChanges:wD.bars.compensateForLayoutChanges}}}const c8={min:"Min",max:"Max"};function d8(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?t7(e,t)||n7(e,t):n===r7.MAX?t7(e,t):n7(e,t)}(Number(r.toFixed(13)),e,t)}function f8(e,{barComponent:t,type:n,isStacked:r}){var i,o,a;const{viewCache:s,layoutService:l,dockService:u}=e,c=s.get("minorMinMax"),d=n===r7.MAX;if(function(e,t){return!e[`hasOther${c8[t]}`]}(c,n)){if(function(e,t){return!e[`hasExplicit${c8[t]}`]}(c,n))return!1;if(d8(c,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${c8[t]}`]&&r(e[`explicit${c8[t]}`])}(c,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const h=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(r6.SCALE.MAIN.MINOR)[n]())),p=d?e=>e.datum[f].value>h():e=>e.datum[f].value<h(),m=r6.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===m))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:Dg({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:p,width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:m}),strokeWidth:null!=y&&null!==(i=y.style)&&void 0!==i&&i.strokeWidth?Y6.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Y6.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:Y6.BAR.STROKE.COLOR})}}}function h8(e,t){var n;let r;return r=e.isContinuous?1:.7,!e.isContinuous&&null!=t&&null!==(n=t.style)&&void 0!==n&&n.width&&t.style.width>0?t.style.width:r}function p8(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:i}=e.viewModel,o=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum",a=e=>"NaN"===e[o]?0:e[o];function s(t){const n=e.ds.field(t).raw(),r=e.ds.field(t).formatter(),i=Pg.shouldUseFormat(n);return{field:t,reduceLabel:"none",value:a,label:e=>i?(e=>"NaN"===e[o]?"-":r(e[o]))(e):e.qText}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;function u(e){return{field:e,reduceLabel:"none",reduce:"first",value:l}}const c={key:t,data:{extract:i.minor.map(((t,o)=>{const a=e.colorService.getMain().getDatumProps(o),l=e.colorService.getMini().getDatumProps(o),c=a[Object.keys(a)[0]],d=null==c?void 0:c.field,f=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,h={field:r.isDimensionless?t:i.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:u(t),segment:r.isStacked?s(t):void 0,group:r.isGroupedByDimension?{field:i.majorGroup}:void 0,stack:r.isStacked?{field:i.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:o,timeStart:r.isContinuous?{field:i.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:i.majorNumeric}:void 0,fillTooltip:f,...a,...l,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${o}`},customTooltipAttrExps:0!==r.dimensionCount?m3.getNode(e.layoutService.getLayout(),r):void 0}};return r.isDimensionless&&(h.value=o),void 0!==n&&(h.source=n),Pg.deleteUndefinedProperties(h.props),h}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function m8({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:i}=t;if(!r.isStacked)return!1;let o;return o=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,i):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Number(e.qMaxPos.toFixed(13))},sumOfNegatives:{value:e=>Number(e.qMinNeg.toFixed(13))},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,i),{key:n,data:{extract:o}}}const g8="main-collection",y8="stack-total-collection";const v8="mini-collection",b8="mini-stack-collection",x8="mini-continuous-collection",w8="miniCube",S8=(e,t)=>{const n=(e=>{const t=[p8(e,{collectionKey:g8})];return e.layoutService.meta.isStacked&&t.push(m8(e,{collectionKey:y8})),t})(t),r=((e,t)=>{const n=[];return zG({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(p8(t,{collectionKey:x8},w8)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o={end:{field:e,reduceLabel:"none"},...i.isStackedByMeasure&&!i.isReduced?n.getMain().getDatumProps(t):{}};return i.isContinuous&&(o.timeStart={field:r.major,value:e=>e.qNum},o.timeEnd=o.timeStart),{source:"miniCube",field:r.major,props:o}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:b8})):n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o=i.isReduced?{}:n.getMain().getDatumProps(t),a={end:{field:e},start:0,group:{field:r.majorGroup},measureIndex:t,...o},s={source:"miniCube",field:i.isDimensionless?e:r.major,props:a};return i.isDimensionless&&(s.value=t),s}))}}}(t,{collectionKey:v8}))),n})(0,t);return n.concat(r)};function M8(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function k8({layout:e,component:t},n,r){if(!y7(e,n))return!1;const{layoutService:i,chart:o,dockService:a,viewModel:s,themeService:l,styleService:u}=n,{meta:c}=i,d=!g7(e,n),f=l.getStyles(),h=u.label.getStyle(),p=h.useContrastColor;function m(e){const t=o.formatter(r6.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":m(e.data.sumOfPositives.value)},simplifiedPlacements:M8("outside",d,p,c.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":m(e.data.sumOfNegatives.value)},simplifiedPlacements:M8("opposite",d,p,c.isContinuous),style:f.label.value},v=[d7(Dg(n,g)),d7(Dg(n,y))];return{key:"stack-total-labels",type:"labels",renderer:RD(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>m7(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily,linkData:wD.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:wD.labels.trackBy,compensateForLayoutChanges:wD.labels.compensateForLayoutChanges}}}function C8(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function q8({layout:e,type:t},n){const{layoutService:r,viewCache:i,themeService:o,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!g7(e,n)||l&&!y7(e,n))return!1;const u=i.get("minorMinMax");if(!u.hasExplicitMinMax||t===r7.MAX&&0===u.max||t===r7.MIN&&0===u.min)return!1;if(!o7(t===r7.MAX?u.implicitMax:u.implicitMin,u,t))return!1;const c=o.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===r7.MAX?function(e){if(o7(e.data.sumOfNegatives.value,u,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(r6.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(o7(e.data.sumOfPositives.value,u,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(r6.FORMATTER.MINOR);return r?r(t):t}return""});const h={label:f,simplifiedPlacements:C8("outside",true,s.isContinuous),styles:c},p={label:f,simplifiedPlacements:C8("opposite",true,s.isContinuous),styles:c},m=[d7(Dg(n,h)),d7(Dg(n,p))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${r6.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:m,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:wD.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:RD(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:wD.labels.trackBy,compensateForLayoutChanges:wD.labels.compensateForLayoutChanges}}}function E8(e){return"all"===e||"title"===e}function D8(e,t,n){if(!E8(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:i}=t,o={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(o.padding="0",o.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:B6[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:o,style:a}}function T8(e,t,n){if(!E8(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,o=t.properties,a=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",s={hyperCube:r.getHyperCube(),hyperCubeDef:HC(o,a),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},l=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(s.padding="0",s.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:s,style:l}}function N8({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:i,dockService:o,themeService:a,viewModel:s,chart:l}){const{theme:u,localeInfo:c}=e,d={resolveUIColor:i.getMain().getPaletteColor},f=a.getStyles(),h=s.animations.enabled;return[ED({refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:r6.SCALE.MAIN.MINOR,axis:"horizontal"===o.meta.major.orientation?"y":"x",key:r6.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:B6.refLines.minimumLayoutMode}),ED({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:r6.SCALE.MAIN.MAJOR,axis:"horizontal"===o.meta.major.orientation?"x":"y",rtl:t,key:r6.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:r6.COMPONENT.BAR,minimumLayoutMode:B6.refLines.minimumLayoutMode}),...OD({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.minor.opposite,scale:r6.SCALE.MAIN.MINOR,style:f,formatter:r6.FORMATTER.MINOR,theme:u,localeInfo:c,rtl:t,key:r6.COMPONENT.MEASURE_REF_LINE_LABEL}),...OD({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.major.opposite,scale:r6.SCALE.MAIN.MAJOR,style:f,theme:u,localeInfo:c,rtl:t,key:r6.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const O8=(e,t,n)=>{var r;const{layoutService:i,dockService:o,colorService:a,chart:s,actions:l,discrete:u,continuousDataModel:c,reducedDataModel:d,viewModel:f,viewState:h,viewCache:p,themeService:m,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:w}=t,{localeInfo:S}=n,M=function(e,t){const{disclaimerService:n,themeService:r,translator:i}=e,o=n.getDisclaimer();if(!o)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:o.alignment},settings:{isRTL:t,label:i.get(`Object.Disclaimer.${o.key}`)},style:{fontFamily:a}}}(t,v);if(w.getHasSuppressingDisclaimer())return{components:[M]};const k=i8(e,t,{localeInfo:S,rtl:v}),C=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),q=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:h,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:C}),E=q.components[0];if(E){const{dock:e}=E.layout;if(k.fillRange&&(["right","left"].includes(e)||v)&&(k.fillRange.invert=!0),"legend-seq"===E.type&&void 0!==f.selectionDimensionIdx&&k.fillRange&&k.fillRange.min<k.fillRange.max){const e=j6({eventName:"legendRange",key:"legendRangeBrush",targets:[E.key],fillTargets:[E.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:E.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);q.components.push(...e.components),q.interactions.unshift(...e.interactions)}}else k.fillRange&&v&&(k.fillRange.invert=!0);const D=((e,{componentKey:t,collectionKey:n})=>{var r,i,o;const{meta:a}=e.layoutService;let s,l;a.isGroupedByDimension?s=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(s=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(l={start:"timeStart",end:"timeEnd"},u=Q6(e,t)):a.isStacked&&(l="stack");const c=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,d=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),h=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||c?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:r6.SCALE.MAIN.MAJOR,fn:s,ref:l},minor:{scale:r6.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>d(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:d(e)?.01:.3},strokeWidth:null!=h&&null!==(r=h.style)&&void 0!==r&&r.strokeWidth?Y6.BAR.STROKE.WIDTH[h.style.strokeWidth.toUpperCase()]:Y6.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==h||null===(o=h.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==i?i:Y6.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:wD.bars.trackBy,compensateForLayoutChanges:wD.bars.compensateForLayoutChanges}}})(t,{componentKey:r6.COMPONENT.BAR,collectionKey:r6.COLLECTION.MAIN}),T=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let i=2;r.isContinuous&&(i=Q6(e,t));const o=e.layoutService.getLayoutValue("components",null),a=o?o.filter((e=>e.key===t))[0]:null,s={key:t,type:"box",data:{collection:n},settings:{major:{scale:r6.SCALE.MAIN.MAJOR},minor:{scale:r6.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:h8(r,a),minWidthPx:i,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"}),s})(t,{componentKey:r6.COMPONENT.STACK_TOTAL_BAR,collectionKey:r6.COLLECTION.STACK_TOTAL}),N=l8(t,n,f.selectionDimensionIdx),{isStacked:O}=i.meta;let A;A=d.mode.isContinuous?r6.COLLECTION.MINI_CONTINUOUS:O?r6.COLLECTION.MINI_STACK:r6.COLLECTION.MINI;const _=O?T:D,L=A7(0,t),I=[...L,f8(t,{barComponent:_,type:"max",isStacked:O}),f8(t,{barComponent:_,type:"min",isStacked:O}),s7(t,{barComponent:_,type:"max",isStacked:O}),s7(t,{barComponent:_,type:"min",isStacked:O}),u7(t,{chart:s,barComponent:_,type:"max",scales:k,collectionKey:O?r6.COLLECTION.STACK_TOTAL:r6.COLLECTION.MAIN}),u7(t,{chart:s,barComponent:_,type:"min",scales:k,collectionKey:O?r6.COLLECTION.STACK_TOTAL:r6.COLLECTION.MAIN}),...U6(e,t,v,!!L[0]),D,T,u8({layoutService:i,viewModel:f,layout:e,dockService:o}),D8(e,t,v),T8(e,t,v),...N8({environment:n,rtl:v,refLineModel:g,layoutService:i,colorService:a,dockService:o,themeService:m,viewModel:f,chart:s}),yS({viewState:h,viewCache:p,layoutService:i,dockService:o,rtl:v}),B7(D,t,{collectionKey:A}),FG({layoutService:i,dockService:o,discrete:u,continuousDataModel:c,viewState:h,viewCache:p,themeService:m,rtl:v,deviceType:n.deviceType}),...P4({majorScale:r6.SCALE.MAIN.MAJOR,minorScale:r6.SCALE.MAIN.MINOR,tooltipOverlay:r6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:i,trendLineModel:x,dockService:o,animationsEnabled:f.animations.enabled}),...q.components,b7({layout:e,component:r6.COMPONENT.BAR,minorScale:k.minor},t,v),k8({layout:e,component:r6.COMPONENT.STACK_TOTAL_BAR},t,v),q8({layout:e,component:"bar-oob-max",type:"max"},t),q8({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,w7(0,{...t,coloring:a.getMain().getSettings()},v),M7(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&M,V4({tooltip:r6.COMPONENT.TREND_LINES_TOOLTIP,formatter:r6.FORMATTER.MINOR,majorScale:r6.SCALE.MAIN.MAJOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const R=[...q.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:F7(t,{rtl:v,hammer:{gestures:R}}),scales:k,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:Ag(0,{logicalSize:b,minCenterRatio:0}),formatters:k7(t,k),collections:S8(0,t)}};function A8({picasso:t,chart:n,services:r,environment:i,viewState:o,viewCache:a,bootstrapped:s}){const{width:l,height:u}=e.useRect(),c=e.useModel(),d=e.useSelections(),f=e.useOptions(),[h,p]=e.useState(),[m,g]=e.useState(),[y,v]=e.useState(),[b,x]=e.useState(),w=e.useApp();function S(){if(!n.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:s,viewModel:l}=r;a.set("isPreRender",!0);const u=function(e={}){const{selectionService:s,refLineModel:l,discrete:u,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,pluginService:y,colorService:v,viewModel:b,dockService:x,themeService:S,customTooltipModel:M,layoutService:k,logicalSize:C,styleService:q,disclaimerService:E}=r,D=s.custom.getActions(),T=t.data("q")(h.prepPicassoDataSet()),N={picasso:t,ds:T,rtl:"rtl"===(null==f?void 0:f.direction),model:c,app:w,chart:n,actions:D,localeInfo:i.localeInfo,logicalSize:C,flags:i.flags,translator:i.translator,selections:d,isLocked:s.getIsSelectionLocked,viewCache:a,viewState:o,layoutService:k,dockService:x,viewModel:b,colorService:v,selectionService:s,themeService:S,trendLineModel:g,discrete:u,continuousDataModel:m,reducedDataModel:p.model(),customTooltipModel:M,debouncer:YC,refLineModel:l,pluginService:y,styleService:q,disclaimerService:E,...e};return O8(k.getLayout(),N,i)}(m);h.extractDataPages(),n.layoutComponents({settings:u,data:y}),a.set("isPreRender",!1),h.insertDataPages(),l.animations.hasSlicedHats=u.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const p=[];return 1!==u.components.length&&s.meta.isDiscrete&&p.push(e.command.initialize()),Promise.all(p)}const[[M,k]=[]]=e.usePromise((()=>{var e,l;if(!(t&&n&&r&&i&&o&&a&&s))return Promise.resolve();const{layoutService:u,selectionService:c,refLineModel:d,discrete:f,continuous:h,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:w,customTooltipModel:S,disclaimerService:M}=r;if(null==c||null===(e=c.custom)||void 0===e||!e.getActions())return Promise.resolve();const{flags:k}=i;if(null!=k&&null!==(l=k.isEnabled)&&void 0!==l&&l.call(k,"IM_1579_HIDE_DIM_MEA")){const{properties:e}=s,t=null==e?void 0:e.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));t&&(S.useCustomTooltip=!1)}const C=()=>{x(Date.now()),w.animations.isPartialUpdating=!0};o.onChanged("scrollOffset",(()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),C()})),o.onChanged("legendScrollOffset",C),o.intercept("zoom",h.event.onZoomIntercept({viewCache:a})),o.onChanged("zoom",h.event.onZoomChange({layoutService:u,continuousDataModel:m},C)),c.setLayout(u.getLayout());const q=[];u.meta.isContinuous&&(m.update(u.getLayout()),q.push(m.initialFetch())),g.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),q.push(Promise.resolve({properties:s.properties}));return Promise.all(q).then((e=>Promise.all([b.initialize(),v.initialize(),_6({reducedDataModel:p,layoutService:u,continuousDataModel:m,trendLineModel:g})]).then((t=>[e,t.pop()]))))}),[s]);e.useEffect((()=>{var e;if(null==r||null===(e=r.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:n,reducedDataModel:o,continuousDataModel:s,trendLineModel:l,legendLayoutService:u,colorService:c,viewModel:d}=r;a.set("minorMinMax",k);const f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():o.model().cube,{field:m}=c.getMain().getSettings(),y=!t.meta.isContinuous&&(o.model().mode.isReduced||t.meta.isStacked)&&u,v=y?u.getHyperCube():void 0;n.setBrushAliases({colorField:m,useLegendCube:y,legendAlias:`legendCube/${m}`});const b=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:i,viewModel:o,trendLineModel:a}){const s=i.refs.dataPages.split(".").pop();let l=[],u=[];const c=i.meta.isContinuous?[{key:o.fields.majorNumeric,from:i.meta.isStackedByDimension?o.fields.majorStack:o.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}}),prepPicassoData(i){const o=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:c}},...i];return n&&o.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:c}}),a.query.hasTrendLines()&&o.push({key:"trend",data:a.query.getData()}),o},extractDataPages(){l=e[s],u=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=u}}}({mainCube:f,miniCube:h,legendCube:v,localeInfo:i.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),x=M[M.length-1];g({localeInfo:i.localeInfo,...x}),p(b)}),[k]),e.useEffect((()=>{if(!r||!m||!h)return;const e=r.colorService.getMain();if(!e)return;h.prepPicassoDataSet();const t=h.prepPicassoData(e.getData());v(t)}),[m]),e.useEffect((()=>{var e;null!=r&&null!==(e=r.colorService)&&void 0!==e&&e.getMain()&&n.update&&h&&y&&S().then((()=>{const{layoutService:e,discrete:t,legendLayoutService:i}=r;if(i){1===e.getLayoutValue("scrollStartPos")&&i.setDataPages([t.query.getCurrentDataPage()])}n.update(),wD.cacheProperties({viewCache:a,layout:e.getLayout()})}))}),[y]),e.useEffect((()=>{if(!(l&&u&&h&&null!=n&&n.update&&null!=r&&r.colorService.getMain()))return;const{viewModel:e}=r;e.animations.isSizeChanging=!0;const{dockService:t,themeService:o}=r;t.update({width:l,height:u}),o.setTheme(i.theme),S().then((()=>{n.update&&n.update()}))}),[l,u]),e.useEffect((()=>{if(null==n||!n.update)return;const{viewModel:e}=r;n.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}const _8=e=>"[object Object]"===Object.prototype.toString.call(e),L8=e=>Array.isArray(e);function I8(e,t){if(e===t)return!0;if(L8(e)){if(!L8(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!I8(e[n],t[n]))return!1;return!0}if(_8(e)){if(!_8(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!I8(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function R8({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=Dg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=Dg(!0,{},e),l=Dg(!0,{},t);return a.exclude=!I8(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!I8(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}const P8=({properties:e,layout:t,isStacked:n,isContinuous:r,model:i,layoutService:o})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=Dg(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,u,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=i.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var i;if("colorByExpression"===(null===(i=t.getLayout().qHyperCube.qMeasureInfo)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.qAttrExprInfo)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id))return;const{current:r,target:o}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:i}=n.reduce(((e,n,r)=>{var i;return"colorByExpression"===(null===(i=n.qAttributeExpressions[0])||void 0===i?void 0:i.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:i}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[o].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:o}),!MS.compare(c,e,!0)&&JSON.stringify(c)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};var z8={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=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,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=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,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.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 i={};(()=>{r.r(i),r.d(i,{default:()=>Oe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}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,i=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===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(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 p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],i),p(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),f=c(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const S={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=p(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({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=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.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,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,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 i=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}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=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(o,"(").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 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}function k(e){return k="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},k(e)}var C=t().bind(null,!0),q={},E=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function T(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(D(e)&&D(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(E(e)&&E(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}q.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?C({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||N(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(q.generate(a,o,s)):E(o)&&E(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(q.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},q.apply=function(e,t){t.forEach((function(t){var n,r,i=O(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(E(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(E(a)&&E(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(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 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}}(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(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),C(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=O(e,t.from);E(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(E(i)?i.splice(+o,1):delete i[o])}))},q.clone=function(e){return C({},e)},q.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},q.updateObject=function(e,t){Object.keys(e).length?q.apply(e,q.generate(e,t)):C(e,t)};const _=q,L=function(e,n,r){if(!e)return Promise.resolve();var i=_.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var I="accumulation";function R(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===I)return n[r]}function P(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===I)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getNumStepComp(n,l),f=S.getAboveComp(n,l,c,d),h=S.getRangeComp("RangeSum",f);if(S.needDimension({modifier:n,properties:r,layout:i})){var p=S.getDimComp(u,1),m=S.getDimComp(u,0),g=S.getAggrComp(h,p,m);h=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,z)},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(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(P(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(P(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(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=R(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=R(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(I))return!1;var o=R(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function B(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(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 V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const $={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=S.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),h=S.getNumStepComp(r,u),p=S.getAboveComp(r,u,f,h);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",p);else{var m=S.getRangeComp("RangeSum",p),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var y=t;if(S.needDimension({modifier:r,properties:i,layout:a})){var v=S.getDimComp(c,1),b=S.getDimComp(c,0),x=S.getAggrComp(y,v,b);y=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,V)},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(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=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=B(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?S.generateTSDExpression(n,t,r):t},extractInputExpression:S.extractInputExpression,initModifier:function(e,t){S.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=S.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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=o(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:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getAboveComp(n,l,c),f="".concat(c," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:i})){var h=S.getDimComp(u,1),p=S.getDimComp(u,0),m=S.getAggrComp(f,h,p);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(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=o(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 ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(c,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[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!S.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=ie(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 i=t.layout.qHyperCube.qDimensionInfo.length,o=[{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===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(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 S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",Se="qDef.qLabelExpression",Me="qDef.base.qLabel",ke="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",qe="qDef.base.qAggrFunc",Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,we)),n(e,ke,o(e,Se)))},restoreBase:function(e){Ee.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Me)),n(e,Se,o(e,ke)),o(e,Ce)&&o(e,qe)&&n(e,Ce,o(e,qe)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=Ee;function Te(e){return Te="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},Te(e)}var Ne={accumulation:F,movingAverage:$,difference:ee,normalization:ce,timeSeriesDecomposition:G};const Oe={modifiers:Ne,apply:_e,applyModifiers:Le,cleanUpMeasure:Ie,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:Re,getActiveModifier:Pe,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ae={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Te(r))return Le({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(c,"qHyperCube.qMeasureInfo"),h=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Re({measures:f,layout:c})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(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 Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:c,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Ze(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ne[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=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&$e(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Ze(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ie(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Ze(i);return et({model:n,libraryIds:f,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Re({measures:n,properties:r}))return n.forEach((function(e){return Ie(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,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:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,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=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(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:i,dimensionAndFieldList:e}),Ve(n)):Ie(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ie(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ne[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Re(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Pe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Pe(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Pe(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ne[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(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={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"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:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(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 s(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 s(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)?s(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 s(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 l(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 i=e.indexOf(t[r]);if(n>i)return!1;n=i}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 f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),S=n.n(w);function M(e,t){var n=S()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function k(e,t){return S()(!0,{},t,e)}function C(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var q=Math.pow(2,53)-1;function E(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 D(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 T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},O=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}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},I=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=k(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=k(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},R=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=C(a.max,i.dimensions.length,q),l=C(a.min,i.dimensions.length,0);return{maxDimensions:C(o.max,s,q),minDimensions:C(o.min,l,0),maxMeasures:s,minMeasures:l}},P=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=S()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".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)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=S()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return E(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 E(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)?E(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=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var 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)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function $(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=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,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:u}),y=o.getValue(r,u||"").qHyperCubeDef,v=o.getValue(g,u||"").qHyperCubeDef,b=R({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,S=b.maxMeasures,M=b.minMeasures,k=l.defaultDimension,C=void 0===k?A():k,q=l.defaultMeasure,E=void 0===q?_():q;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:C}),I({exportFormat:t,maxMeasures:S,minMeasures:M,newHyperCubeDef:v,defaultMeasure:E}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),P({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),O("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),O("qMode",y,v,"S"),O("qReductionMode",y,v,"N"),O("qSortbyYValue",y,v),O("qIndentMode",y,v),O("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var D=o.getValue(c||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&$(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&$(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[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,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))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 o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Q={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:Q,"sn-scatter-plot":Q,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=G.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,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(u){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.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 s}const oe={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 i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",u),G.moveByIdFromGroup(a,[],"qAttributeExpressions",u),G.moveByIdFromGroup(s,[],"qAttributeExpressions",c),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ue(d,f),y=ce({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),c}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?$(n,"unsupportedAutoMinMax")||S()(n.measureAxis,t.measureAxis):$(n,"supportedAutoMinMax")||S()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.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 l=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,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&S()(s,n.properties.measureAxes[t[0].axis])):S()(s,n.properties.measureAxes[0])}},we=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}}},Se={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Me(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var qe="qHyperCubeDef.qMeasures",Ee="conditionalColoring",De="measures",Te="qDef.conditionalColoring";const Ne={quarantine:function(e){ke({properties:e,arrayPath:qe,quarantineName:Ee,arrayName:De,itemPath:Te})},unquarantine:function(e){Ce({properties:e,arrayPath:qe,itemPath:Te,arrayName:De,quarantineName:Ee})}};var Oe="qHyperCubeDef.qMeasures",Ae="measures",_e="qHyperCubeDef.qDimensions",Le="dimensions",Ie="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Re="alternativeMeasures",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const Be={quarantine:function(e){ke({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},unquarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},quarantineAlternative:function(e){ke({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),ke({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:Se,quarantineProperty:x,unquarantineProperty:$,quarantineArrayProp:ke,unquarantineArrayProp:Ce,conditionalColoring:Ne,conditionalShow:Be}})(),r.default})()}(z8);var F8=mg(z8.exports);function j8(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,i=e.dimensionAxis.maxVisibleItems;i<1?e.dimensionAxis.maxVisibleItems=10:i>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(i,Math.floor(1e4/(r+n))))}}const B8=.7,H8=.9,V8=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],$8=(e,t)=>{var n,r,i;const o=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,s="grouped"===(null===(i=e.barGrouping)||void 0===i?void 0:i.grouping)&&a>0&&o+a>2;return Bg.continuous(t)?1:s?H8:B8},W8=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function U8(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,u={};l.forEach((function(e){for(var r=e.split("."),i=u,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=jM({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var c=function(e){for(var t=e.split("."),n=u,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(V8).map((e=>V8[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!Bg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:i,qHyperCubeDef:o}=r,a=o.qMeasures.length,s=o.qDimensions.length,l="grouped"===i.grouping&&s>0&&a+s>2;return Bg.continuous(r)?1:l?H8:B8},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:W8("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:W8("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...W8("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:W8("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:W8("legend.label",r,e)}}}:void 0}}}function Y8(e=!1,t,n,r){return e?function(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(V8).map((e=>V8[e])),schemaIgnore:!0,defaultValue:V8[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!Bg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>$8(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(_G.OPTIONS).map((e=>_G.OPTIONS[e])),schemaIgnore:!0,defaultValue:_G.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}(n):U8(t,n,r)}const K8=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3},G8=(e,t)=>e.qHyperCube[t].filter((e=>K8(e))),X8=e=>({get:(t,n,r)=>Bg.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Wg(n.type,n);t(n.type,e,r)}}),J8=e=>{if(!e)return!1;const t=Dg(!0,{},e);return t.qHyperCube.qMeasureInfo=G8(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=G8(e,"qDimensionInfo"),t&&!Bg.continuous(t)&&Bg.stacked(t)},Q8=({translator:e,flags:t,anything:n})=>{var r,i,o;const a=null==n||null===(r=n.sense)||void 0===r||null===(i=r.isUnsupportedFeature)||void 0===i?void 0:i.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>G8(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!J8(t.layout)&&G8(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>J8(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,i){i.dataPoint.showSegmentLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>J8(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,i){i.dataPoint.showTotalLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>G8(n.layout,"qDimensionInfo").length&&G8(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>G8(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,i){i.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(o=n.sense)||void 0===o?void 0:o.theme,u={uses:"settings",items:{simpleStyling:Y8(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:Y8(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=G8(t.layout,"qMeasureInfo").length,r=G8(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){G8(t.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Bg.continuous(n.layout),convertFunctions:X8("stacked")},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>Bg.continuous(n.layout),convertFunctions:X8("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(_G.OPTIONS).map((e=>_G.OPTIONS[e])),defaultValue:_G.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!Bg.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(J8(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&J8(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&J8(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:PD}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!Bg.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=G8(n.layout,"qMeasureInfo").length,i=G8(n.layout,"qDimensionInfo").length,o=e.dimensionAxis.maxVisibleItems;return o<0||o>1e4/(i+r)},globalChange:j8,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(u.items.dimensionAxis.items.othersGroup={items:{label:{options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]}}}),u},Z8={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){ev(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:i}=e.qHyperCubeDef,{qCardinal:o}=t.layout.qHyperCube.qDimensionInfo[0],a=i.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&o>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},e9={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},t9=({translator:e,flags:t,anything:n})=>{var r,i;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var i,o;if(null!=n&&null!==(i=n.sense)&&void 0!==i&&null!==(o=i.isUnsupportedFeature)&&void 0!==o&&o.call(i,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const i=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>K8(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[i])===e})(e,t),s=Bg.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"trendlines")?void 0:K4({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function n9({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:t9({translator:e,flags:t,anything:n}),sorting:Z8,addons:e9,settings:Q8({translator:e,flags:t,anything:n})}}}const r9=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3};function i9(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,i=n.qHyperCube.qDimensionInfo.filter((e=>r9(e))).length;return 1===r&&2===i&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=t.qHyperCube.qMeasureInfo.filter((e=>r9(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>r9(e))).length;return n+r>2&&!Bg.continuous(t)&&!((null==(i=t)||null===(o=i.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.filter((e=>r9(e))).length)>1&&(null==i||null===(a=i.qHyperCube)||void 0===a?void 0:a.isHCEnabled));var i,o,a},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!Bg.continuous(t)}}},color:{uses:"color"}}}}function o9(e){const t={},n=HC(e,"components"),r=HC(e,"dimensionAxis.axisDisplayMode"),i=HC(e,"dimensionAxis.maxVisibleItems"),o=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=HC(e,"tooltip");if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=HC(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const a9=e=>!!(e&&e.qHyperCube.qSize.qcy>0),s9={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function l9(){const e=[];return Object.keys(s9).forEach((t=>{e.push(s9[t])})),e}function u9(e){const{flags:t}=e;return{definition:n9(e),softDefinition:i9(),support:{snapshot:a9,export:a9,exportData:!0,sharing:a9,viewData:!0,effects:!0,modifiers:l9()},importProperties:(n,r,i,o)=>{const a={layout:{templateId:r.templateId}};i.mapProperties(a);const s={defaultDimension:i.getDefaultDimensionProperties(),defaultMeasure:i.getDefaultMeasureProperties()},l=F8.axisChart.importProperties({exportFormat:n,initialProperties:r,dataDefinition:O3(e),defaultPropertyValues:s,hypercubePath:o,extension:i}),u=l.qProperty;return u.qHyperCubeDef.qDimensions.length>1&&"stacked"===u.barGrouping.grouping&&(u.qHyperCubeDef.qMode="K",u.qHyperCubeDef.qAlwaysFullyExpanded=!0),t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(F8.conditionalShow.unquarantine(u),F8.conditionalShow.unquarantineAlternative(u)),l},exportProperties:(e,n,r)=>{t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(F8.conditionalShow.quarantine(e.qProperty),F8.conditionalShow.quarantineAlternative(e.qProperty));return F8.axisChart.exportProperties({propertyTree:e,hyperCubePath:n,viewDataMode:r})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(ev),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(ev)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:i}=e;if(t||!1!==i)return;const{continuousAuto:o}=n;(o||!o&&r)&&(e.scrollbar=_G.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:o9}}return function(t){const n=Q5();return{qae:A3(t),ext:u9(t),component(){const r=L3({env:t}),{viewState:i,viewCache:o}=I3(),a=function({picasso:t}){const n=e.useElement(),r=e.useOptions(),[i,o]=e.useState();return e.useEffect((()=>{if(!t)return()=>{};n.style.overflow="hidden";const e=t({renderer:{prio:[(null==r?void 0:r.renderer)||"canvas"]}}).chart({element:n,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[r.renderer]),i}({picasso:n}),s=f6({picasso:n,chart:a,environment:r,viewState:i,viewCache:o}),l=function({env:t,services:n}){var r;const i=e.useApp(),o=e.useModel(),a=e.useRenderState(),s=R8({enable:!1===(null==n||null===(r=n.layoutService)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.isSnapshot)}),[l,u]=e.usePromise((async()=>{if(!t||!n)return Promise.resolve();const{flags:e}=t,{layoutService:r}=n,{isSnapshot:s,isStacked:l,isContinuous:u}=r.meta,c=[];return s||c.push(o.getEffectiveProperties()),Promise.all(c).then((async t=>{const n=t[0]||void 0;if(e.isEnabled("IM_1579_HIDE_DIM_MEA")&&null!=n&&n.qHyperCubeDef){const e=r.getLayout(),t=Dg(!0,{},n);if(P8({properties:n,layout:e,isStacked:l,isContinuous:u,model:o,layoutService:r}))return a.pending(),ID(e)?o.setProperties(n).then((()=>{i.clearUndoBuffer()})):void await LD(o,t,n);a.restore()}return{properties:n}}))}),[t,n,s]);if(u&&!u.isHandled)throw u;return l}({env:t,services:s});A8({picasso:n,chart:a,services:s,environment:r,viewState:i,viewCache:o,bootstrapped:l}),(({environment:t,services:n,chart:r,viewState:i,bootstrapped:o})=>{e.onTakeSnapshot((e=>{var a;if(!t||!n||!o)return;const{flags:s}=t,{layoutService:l,dockService:u,colorService:c,discrete:d,continuousDataModel:f,reducedDataModel:h}=n,{width:p,height:m}=u.meta.chart.size;if(e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:p,h:m}},l.meta.isSnapshot)return Promise.resolve();if(e.snapshotData.content.chartData={scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Hg(r,r6.COMPONENT.LEGEND_COLOR_CAT)},null!=s&&null!==(a=s.isEnabled)&&void 0!==a&&a.call(s,"IM_1579_HIDE_DIM_MEA")){const{properties:t}=o,n=null==t?void 0:t.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));n&&(e.tooltip.auto=!0)}return l.meta.isDiscrete?(d.command.setSnapshotData(e),h.setSnapshotData(e)):f.setSnapshotData(e),c.getMain().getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))})),e.useImperativeHandle((()=>({getViewState(){if(i&&r)return{scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Hg(r,r6.COMPONENT.LEGEND_COLOR_CAT)}}})),[i,r])})({environment:r,services:s,chart:a,viewState:i,bootstrapped:l})}}}}));
|
|
122
|
+
`),N2.rippleVisible,P2,550,(({theme:e})=>e.transitions.easing.easeInOut),N2.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),N2.child,N2.childLeaving,z2,550,(({theme:e})=>e.transitions.easing.easeInOut),N2.childPulsate,F2,(({theme:e})=>e.transitions.easing.easeInOut)),H2=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=pN(n,O2),[s,l]=xT.useState([]),u=xT.useRef(0),c=xT.useRef(null);xT.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=xT.useRef(!1),f=L0(),h=xT.useRef(null),p=xT.useRef(null),m=xT.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,TQ.jsx(B2,{classes:{ripple:JZ(i.ripple,N2.ripple),rippleVisible:JZ(i.rippleVisible,N2.rippleVisible),ripplePulsate:JZ(i.ripplePulsate,N2.ripplePulsate),child:JZ(i.child,N2.child),childLeaving:JZ(i.childLeaving,N2.childLeaving),childPulsate:JZ(i.childPulsate,N2.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,c.current=a}),[i]),g=xT.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=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 s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,f]),y=xT.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=xT.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return xT.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),TQ.jsx(j2,nN({className:JZ(N2.root,i.root,o),ref:p},a,{children:TQ.jsx(CU,{component:null,exit:!0,children:s})}))}));var V2=H2;function $2(e){return ZZ("MuiButtonBase",e)}var W2=e0("MuiButtonBase",["root","disabled","focusVisible"]);const U2=["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"],Y2=S2("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"},[`&.${W2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K2=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:M,onTouchEnd:k,onTouchMove:C,onTouchStart:q,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:T,type:N}=n,O=pN(n,U2),A=xT.useRef(null),_=xT.useRef(null),L=N0(_,T),{isFocusVisibleRef:I,onFocus:R,onBlur:P,ref:z}=V0(),[F,j]=xT.useState(!1);l&&F&&j(!1),xT.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[B,H]=xT.useState(!1);xT.useEffect((()=>{H(!0)}),[]);const V=B&&!u&&!l;function $(e,t,n=c){return T0((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}xT.useEffect((()=>{F&&d&&!u&&B&&_.current.pulsate()}),[u,d,F,B]);const W=$("start",w),U=$("stop",m),Y=$("stop",g),K=$("stop",M),G=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),X=$("start",q),J=$("stop",k),Q=$("stop",C),Z=$("stop",(e=>{P(e),!1===I.current&&j(!1),h&&h(e)}),!1),ee=T0((e=>{A.current||(A.current=e.currentTarget),R(e),!0===I.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=xT.useRef(!1),re=T0((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=T0((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(O.href||O.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===N?"button":N,ae.disabled=l):(O.href||O.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=N0(t,z,A),le=nN({},n,{centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:E,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=$0({root:["root",t&&"disabled",n&&"focusVisible"]},$2,i);return n&&r&&(o.root+=` ${r}`),o})(le);return TQ.jsxs(Y2,nN({as:oe,className:JZ(ue.root,a),ownerState:le,onBlur:Z,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:l?-1:E,type:N},ae,O,{children:[o,V?TQ.jsx(V2,nN({ref:L,center:i},D)):null]}))}));var G2=K2;function X2(e){return ZZ("MuiButton",e)}var J2=e0("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Q2=xT.createContext({});var Z2=xT.createContext(void 0);const e5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],t5=e=>nN({},"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}}),n5=S2(G2,{shouldForwardProp:e=>w2(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$Q(n.color)}`],t[`size${$Q(n.size)}`],t[`${n.variant}Size${$Q(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return nN({},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":nN({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:s1(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})`:s1(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})`:s1(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:o,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":nN({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${J2.focusVisible}`]:nN({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${J2.disabled}`]:nN({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 ${s1(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:i,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"},[`&.${J2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${J2.disabled}`]:{boxShadow:"none"}})),r5=S2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$Q(n.size)}`]]}})((({ownerState:e})=>nN({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},t5(e)))),i5=S2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$Q(n.size)}`]]}})((({ownerState:e})=>nN({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},t5(e)))),o5=xT.forwardRef((function(e,t){const n=xT.useContext(Q2),r=xT.useContext(Z2),i=W1({props:C0(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=pN(i,e5),x=nN({},i,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return nN({},a,$0({root:["root",o,`${o}${$Q(t)}`,`size${$Q(i)}`,`${o}Size${$Q(i)}`,`color${$Q(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$Q(i)}`],endIcon:["icon","endIcon",`iconSize${$Q(i)}`]},X2,a))})(x),S=g&&TQ.jsx(r5,{className:w.startIcon,ownerState:x,children:g}),M=f&&TQ.jsx(i5,{className:w.endIcon,ownerState:x,children:f}),k=r||"";return TQ.jsxs(n5,nN({ownerState:x,className:JZ(n.className,w.root,l,k),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:JZ(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[S,o,M]}))}));var a5=o5;var s5=xT.createContext({});function l5(e){return ZZ("MuiListItemButton",e)}var u5=e0("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const c5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],d5=S2(G2,{shouldForwardProp:e=>w2(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>nN({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${u5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:s1(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${u5.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:s1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${u5.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:s1(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})`:s1(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${u5.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${u5.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),f5=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:f}=n,h=pN(n,c5),p=xT.useContext(s5),m=xT.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=xT.useRef(null);E0((()=>{i&&g.current&&g.current.focus()}),[i]);const y=nN({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return nN({},n,$0({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},l5,n))})(y),b=N0(g,t);return TQ.jsx(s5.Provider,{value:m,children:TQ.jsx(d5,nN({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:JZ(v.focusVisible,c),ownerState:y,className:JZ(v.root,f)},h,{classes:v,children:a}))})}));var h5=f5;function p5(e){return ZZ("MuiListItemIcon",e)}e0("MuiListItemIcon",["root","alignItemsFlexStart"]);const m5=["className"],g5=S2("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})=>nN({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),y5=xT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=pN(n,m5),o=nN({},n,{alignItems:xT.useContext(s5).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return $0({root:["root","flex-start"===t&&"alignItemsFlexStart"]},p5,n)})(o);return TQ.jsx(g5,nN({className:JZ(a.root,r),ownerState:o,ref:t},i))}));var v5=y5;function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b5(Object(n),!0).forEach((function(t){w5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S5=function(e){var t=e.className,n=e.path,r=e.fillRule;return wT.createElement(T2,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},wT.createElement("path",{d:n}),r?wT.createElement("use",{fillRule:r}):void 0)},M5={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};S2(a5,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY}})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:M5.ICONS.COLOR.DISABLED}}})),S2(a5,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var k5={color:M5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:M5.ICONS.COLOR.DISABLED}};S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return k5})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return k5})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:M5.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),S2(h5)((function(){return{padding:"4px 12px","&:focus":x5({},M5.FOCUS)}})),S2(v5)((function(){return{marginRight:0,justifyContent:"center"}})),S2((function(e){var t=e.className;return wT.createElement(S5,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY}}));var C5=Object.prototype.hasOwnProperty,q5=Object.prototype.toString,E5=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,T5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===q5.call(e)},N5=function(e){if(!e||"[object Object]"!==q5.call(e))return!1;var t,n=C5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&C5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||C5.call(e,t)},O5=function(e,t){E5&&"__proto__"===t.name?E5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},A5=function(e,t){if("__proto__"===t){if(!C5.call(e,t))return;if(D5)return D5(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=A5(s,n),s!==(i=A5(t,n))&&(c&&i&&(N5(i)||(o=T5(i)))?(o?(o=!1,a=r&&T5(r)?r:[]):a=r&&N5(r)?r:{},O5(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&O5(s,{name:n,newValue:i}));return s}));var _5,L5=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return wT.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},I5={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return wT.createElement("div",{dir:o,style:a},wT.createElement(L5,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},R5=ZW;_5=R5.createRoot,R5.hydrateRoot;var P5=V1({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:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},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"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function z5(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function F5(){var e={rendererBox:z5(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=z5(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=_5(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return wT.createElement(wT.StrictMode,null,wT.createElement(k2,{theme:P5},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const j5={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,d=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,d=t<.5?180:0),a(Dg({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}};function B5({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const d=Dg({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),p=(c-h)/2,m=p+d.major+h/2;return{item:d,boxCenter:m,boxWidth:h,boxPadding:p,rendWidth:t,rendHeight:n}}function H5({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=Dg(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let d;d="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Dg(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Dg(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const p={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Dg(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],p[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:u});return p}const V5=["oob"];const $5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=H5({keys:V5,data:i,defaultSettings:{oob:j5.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=B5}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,g=[];if(d.oob.show){g.push(j5.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:V5,symbol:s,dockValue:n});return d}},W5={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},U5=["hat"];function Y5(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function K5({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+u},{[a]:d+t*c*l,[s]:8},{[a]:d+t*l,[s]:0+u},{[a]:d+t*l,[s]:0+u+10},{[a]:d,[s]:0+u+10}];const h=Dg({},e.hat,{type:"path",d:Y5(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-c)*l,[s]:0+u-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,Dg({},e.hat,{type:"path",d:Y5(f)})]}const G5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=H5({keys:U5,data:r,defaultSettings:W5,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,u=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=B5}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...K5({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:U5});return u}};function X5(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:X5(i,t,n)},i}function J5(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),X5(i,a,l,e.invert)}))}function Q5(){const e=Cp();return e.use(dg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",pg(e))};e.interaction("hammer",pg(Hammer))}(vg)),e.use((function(e){e.renderer("react",jY()),e.component("data-title",PY(e.renderer("svg")()))})),e.use(J5),e.renderer("react-qcm",F5),e.component("box-sliced-hat",G5),e.component("box-out-of-bounds",$5),e.component("disclaimer",I5),e.component("scrollbar",vX),e.component("scroll-hint",gS),e.component("reference-line-labels",bM),e.component("axis-overlay",OG.picassoComponents.axisOverlay),e.component("time-axis",OG.picassoComponents.timeAxis),e.scale("q-time-axis",OG.picassoScales.time),e}const Z5=()=>({version:"1.35.18",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),e3={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function t3(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const n3={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function r3(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(i=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return u=void 0!==i.secure?i.secure:i.isSecure,o=u?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await n3.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function i3(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,u=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",f=c.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return r3(c,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&t3(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await n3.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await n3.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,c,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(t3(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await n3.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const o3={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(i3(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},a3={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await o3.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>o3.checkIfPromisesExist({customTooltipModel:e})};const s3=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:e3.CHART.CHART_PARENT_TYPE,qId:e3.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},l3=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:e3.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const u3={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=e3.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:e3.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await u3.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=e3.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=e3.CHART.STATE,a=s3(t,o),s=await e.createSessionObject(a),l=l3(t);if(s.id!==e3.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,f;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(e3.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await u3.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(u3.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(e3.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=e3.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function c3(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function d3(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=e3.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function f3(e){const t=d3();return e.filter((e=>t[e.id]))}const h3={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=h3.getAttrExprData(a);o.length||n.length?a3.handlePromises({customTooltipModel:i,nodes:h3.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&u3.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>a3.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[e3.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[e3.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[e3.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(f3(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[e3.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[e3.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=c3(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===f3(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=c3(e)||[];[...i,t].forEach((e=>{const t=f3(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=d3(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Zg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Zg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function p3(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case e3.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case e3.CUSTOM.TITLE:case e3.CUSTOM.DESCRIPTION:case e3.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const m3={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>p3(t,e,r,n)}}};const g3={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[e3.CUSTOM.TITLE]:!0,[e3.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=h3.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===e3.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===e3.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>ey.getMeasure(e,t))),e,i)}};function y3({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(g3.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function v3(e){const t=e3.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function b3(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const x3={migrateProperties(e){var t,n;const r=Dg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=b3(r);return o=function(e,t){return t.concat(e.map((e=>v3(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=v3(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(b3(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var w3={attrExpr:x3},S3=7005;const M3=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3},k3=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Pg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},C3=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Pg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Pg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},q3=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},E3=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;C3(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(C3(e,t),r)))),(()=>r))}return k3(e),Promise.resolve()};function D3(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?$C(e,"color.persistent",!0):"byDimension"===r&&n.length>1?$C(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?$C(e,"color.mode","primary"):0===t.length&&n.length>0&&($C(e,"color.byMeasureDef",void 0),$C(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&$C(e,"color.mode","primary"))}const T3=(e,t)=>{D3(t),ev(e),h3.addCallbackCustomTooltip(t)},N3=e=>{D3(e)};function O3({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,i){let o;const a=null!=i&&i.layout?i.layout.qHyperCube.qDimensionInfo.filter((e=>M3(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?o="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?E3(t,n.app).then((()=>(T3(e,t),e))):(q3(t),T3(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>M3(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),k3(t),D3(t),h3.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;D3(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),h3.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){h3.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?E3(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,N3(t),e))):(q3(t),N3(t),e),move(e,t){k3(t),D3(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;D3(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function A3(e){return{properties:Z5(),data:{targets:[{path:"/qHyperCubeDef",...O3(e)}]}}}var _3={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function L3({env:t}){var n;const{flags:r}=t,i=null===(n=t.anything)||void 0===n||null===(n=n.sense)||void 0===n?void 0:n.isUnsupportedFeature,o=e.useTranslator();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(_3).forEach((t=>{e.add(_3[t])}))}}(t.translator);const a=e.useEmbed(),s=e.useTheme(),[l,u]=e.useState(),c=e.useDeviceType(),d=e.useAppLayout(),{qLocaleInfo:f}=d;return e.useEffect((()=>{u({translator:o,theme:s,embed:a,deviceType:c,localeInfo:f,isUnsupportedFeature:i,flags:r})}),[f,i,o.language(),s.name(),c]),l}function I3(){const[t]=e.useState((()=>WC())),[n]=e.useState((()=>function(e){var t=wM({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:t,viewState:n}}const R3="REJECTED",P3=()=>{},z3=1e4,F3={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},j3=50,B3=10,H3=100;var V3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-B3<=t.qTop,i=n.qLeft+n.qWidth+B3>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+B3>=t.qTop+t.qHeight,a=n.qLeft-B3<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var $3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-B3<=t.qTop,i=n.qTop+n.qHeight+B3>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var W3={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const U3="pages";const Y3="discretePan",K3=10;function G3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:Y3,pointers:1,threshold:K3,enable(r,i){return this.started===Y3||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${Y3}start`](e){e.preventDefault(),this.started=Y3;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-K3:K3},[`${Y3}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${Y3}end`](e){e.preventDefault(),this.started=!1},[`${Y3}cancel`](e){e.preventDefault(),this.started=!1}}}}function X3({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=Math.sign(-a)*H3;r.scroll(s)}}function J3({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(z3/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(F3.MAXIMUM,n));return{width:e,height:Math.max(F3.MINIMUM,Math.min(n*F3.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Q3(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(R3),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(R3),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(R3),n=null)},i}const Z3={command:{update:()=>{}}};function e4({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=Z3,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:u}=t,c=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:J3({layoutService:r}),request:u({definitionPath:o}),process:Q3(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=KC(((e,{onProcessing:t,onData:n})=>{c(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==R3)throw e}))}),j3);return function(e,{onProcessing:t=P3,onDataPage:n=P3}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var t4={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var n4={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function r4(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function i4(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function o4(e){return i4(e.qMatrix,(e=>e[0].qElemNumber))-1}var a4={inTotal:function({layoutService:e}){const t=r4(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=r4(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=r4(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=o4(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const s4=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),l4=(e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n};function u4(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return s4(e,n);const r=l4(t.qMatrix,n);return r.successful?r.count:s4(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return s4(e,n);return i4(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var c4={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=u4(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=u4(t).area(e(),l,a.qArea),d=o4(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function d4({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:u,maxDataRows:c}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,c);case"custom":return Math.min(g,c);default:return u?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:u,fontSize:c,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:u,fontSize:c,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function f4({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:u}){const{inTotal:c,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?t4:n?r?a4:c4:n4}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=c({layoutService:r});return{inTotal:l,inView:d4({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(z3/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&u?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function h4({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,renderer:c,areaBuffer:d,viewState:f,rtl:h}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const p=f4({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,renderer:c,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=m();n.set("itemSize",p.getItemSize({items:a}));const u=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),c=g({pixelOffset:u,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:c.start.pixel,items:a}));const d=p.getArea({itemOffset:c.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:c.start,items:a})),f.preventSet("scrollOffset",{start:c.start.item,end:c.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function p4({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=(()=>{})}={}}){const g=WC(),y=function({qMode:e}){switch(e){case"S":default:return V3;case"K":return $3;case"T":return W3}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(U3,[]),{add:t=>{const n=e.get(U3);n.length=0,n.push(t)},getCurrent:()=>e.get(U3)[0],getAll:()=>e.get(U3),contains:n=>t(e.get(U3)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=e4({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,processDataPage:m}),w=h4({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:u}),S=function({layoutService:e,dataStore:t}){return function(n){const r=HC(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[G3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:X3({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:w});return{interactions:M,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>S(e)}}}var m4="AVERAGE",g4="LINEAR",y4="POLYNOMIAL2",v4="POLYNOMIAL3",b4="POLYNOMIAL4",x4="EXPONENTIAL",w4="LOG",S4="POWER";function M4({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:i}=n,o={x:e,y:i[2]*t**2+i[1]*t+i[0]};switch(r){default:case y4:return o;case v4:return o.y+=i[3]*t**3,o;case b4:return o.y+=i[4]*t**4+i[3]*t**3,o}}var k4={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:M4,polynomial3:M4,polynomial4:M4,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};const C4=500;function q4(e,t){const n=k4[t.qType.toLowerCase()],r=Math.max(1,e/C4);let i=1/0,o=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});i=Math.min(e,i),o=Math.max(e,o)}return{min:i,max:o}}const E4=100;function D4(e){return k4[e.qType.toLowerCase()]}function T4(e,t){return e.meta.isContinuous?function(e,t){return{generate:(e,n,r)=>{var i,o;const a=[],s=D4(e),l=t.get("zoom"),u=null!==(i=e.start)&&void 0!==i?i:l.min,c=null!==(o=e.end)&&void 0!==o?o:l.max,d=(c-u)/E4;if(d>0){const t=t=>{const i=s({dimValue:t,value:t,qTrendLine:e});i.layerId=n,i.measureIndex=r,i.dimValue=t,a.push(i)};let i=u;for(let e=u;e<=c;e+=d)t(e),i=e;i!==c&&t(c)}return a},calculate:(e,t)=>D4(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(0,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,s=o.qArea.qTop,l=k4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e],u=l({dimValue:o.qElemNo,value:e+s+1,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=o.qText,i.push(u)}return i},findMinMax:q4}}(e):function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qMatrix,s=o.qArea.qTop,l=k4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e][0],u=e+s+1,c=l({dimValue:o.qElemNumber,value:u,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=o.qText,i.push(c)}return i},calculate:(e,t,n)=>(0,k4[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:q4}}(e)}var N4={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},O4={color:"#f93f17",index:9};const{isDark:A4}=Zy,_4={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},L4=({layoutService:e,viewState:t,colorModel:n,chart:r,env:i,keys:{colorScale:o},isEnabled:a=(()=>!1)})=>{const{translator:s}=i,l=[_4],u=[],c=[],d=T4(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(u.push(...e.qTrendLines),c.push(...e.qTrendLines.map((()=>t))))}));const f=UC((e=>{const{style:t}=u[e]||{},i=n.settings();if(t.autoColor){if("measure"===i.mode){const t=c[e],n=r.scale(o)(t);return A4(n)?function(e){const t=Xy(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Xy(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(O4)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!u.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=u[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=u[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(u[e]||{}).label,getType:e=>{const{qType:t}=u[e]||{};return s.get(N4.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return u.forEach((r=>{const i=d.findMinMax(e.meta.size.y,r);t=Math.min(i.min,t),n=Math.max(i.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=u[e];return d.calculate(r,t,n)}},command:{update:()=>{l.length=0,u.forEach(((e,t)=>{const n=d.generate(e,t,c[t]);l.push(...n)}))}}}};var I4={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const R4=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,P4=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:i})=>{if(!n.query.hasTrendLines())return[];const o=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:i,animationsEnabled:o})=>{const a=R4(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:I4,settings:{connect:!0,orientation:i.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:o,trackBy:wD.nonUpdatingNode.trackBy,compensateForLayoutChanges:wD.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:i}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:i})=>{const o=R4(r),a="horizontal"===i.meta.major.orientation,s={scale:e,fn:o},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:I4,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[o,a]};function z4(e,t){const{getLabel:n,getType:r,getLineDash:i,getStroke:o}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:o(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":i(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}const F4=16,j4=2;function B4(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Zg.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${F4}px`,x2:`${F4}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${F4} ${F4}`},t)}(e):t.content}function H4(e,t){return({h:n,data:r,style:i})=>{const o=r[0].title,a=r.filter((e=>e.title===o)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Zg.detectTextDirection(t)},t);return e("tr",{},n)}(n,o),l=[s];if(a.slice(0,j4).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Zg.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const i=B4(t,e);return t("td",r,i)}))}(e.row,{h:n,style:i})))})),r.length>j4){const i=r.length-j4;l.push(...function(e,t,n,r){const i=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,o=Zg.detectTextDirection(i);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:o},colspan:3},i))]}(n,e,t,i))}return l}}function V4(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:i}=r,o=Gg({key:e.tooltip,rtl:i});return Dg(!0,o,{settings:{extract:z4(e,t),content:H4(n,i),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function $4(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function W4(e,{chart:t,viewState:n,trendLineModel:r,layoutService:i,rtl:o}){const{isContinuous:a}=i.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=$4(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:i}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=$4(r,t),u=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(u.length){const r=function(e,t,n,r){let i=(e.x-t.rect.computed.x)/t.rect.computed.width;i=r?1-i:i;const{min:o,max:a}=n.get("zoom");return o+(a-o)*i}(l,a,n,o),s=t.scale(e.majorInnerScale),c=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);u.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=c,e.data.minor.value=i(e.data.layer.value,r).y}))}return u}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const U4=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},Y4=e=>{U4(e),e.qMultiDimMode="Sum",e.qXColIx=0};function K4(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Bg.dimensionless(n)&&!Bg.groupedByDimension(n)&&(r||!Bg.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:N4.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(N4.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:N4.ADD_BUTTON,add:Y4,globalChange:e=>{const t=HC(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!HC(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:N4.TYPE,options:[{value:m4,translation:N4.TYPES.AVERAGE},{value:g4,translation:N4.TYPES.LINEAR},{value:y4,translation:N4.TYPES.POLYNOMIAL2},{value:v4,translation:N4.TYPES.POLYNOMIAL3},{value:b4,translation:N4.TYPES.POLYNOMIAL4},{value:x4,translation:N4.TYPES.EXPONENTIAL},{value:w4,translation:N4.TYPES.LOG},{value:S4,translation:N4.TYPES.POWER}],defaultValue:m4},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:O4,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:N4.STYLE.DASHED,type:"boolean",defaultValue:!0,change:U4}}}}var G4={};function X4(){X4.init.call(this)}G4.isObject=function(e){return"object"==typeof e&&null!==e},G4.isNumber=function(e){return"number"==typeof e},G4.isUndefined=function(e){return void 0===e},G4.isFunction=function(e){return"function"==typeof e};var J4=X4;X4.EventEmitter=X4,X4.prototype._events=void 0,X4.prototype._maxListeners=void 0,X4.defaultMaxListeners=10,X4.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},X4.prototype.setMaxListeners=function(e){if(!G4.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},X4.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],G4.isUndefined(n))return!1;if(G4.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(G4.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},X4.prototype.addListener=function(e,t){var n;if(!G4.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,G4.isFunction(t.listener)?t.listener:t),this._events[e]?G4.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,G4.isObject(this._events[e])&&!this._events[e].warned)&&((n=G4.isUndefined(this._maxListeners)?X4.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,G4.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),G4.isFunction(console.trace)&&console.trace()));return this},X4.prototype.on=X4.prototype.addListener,X4.prototype.once=function(e,t){if(!G4.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},X4.prototype.removeListener=function(e,t){var n,r,i,o;if(!G4.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||G4.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(G4.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},X4.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],G4.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},X4.prototype.listeners=function(e){return this._events&&this._events[e]?G4.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},X4.listenerCount=function(e,t){return e._events&&e._events[t]?G4.isFunction(e._events[t])?1:e._events[t].length:0};var Q4=mg(J4);const Z4={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const e6=e=>(Object.keys(Q4.prototype).forEach((t=>{e[t]=Q4.prototype[t]})),Q4.init(e),e);function t6(){const[t]=e.useState({}),[n]=e.useState({}),r=function(){var t,n;const r=e.useLayout(),i=e.useTranslator(),o=!(null==r||null===(t=r.qSelectionInfo)||void 0===t||!t.qInSelections),a=!(null==r||null===(n=r.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n||null===(n=n[0])||void 0===n||!n.qIsOneAndOnlyOne),[s,l]=e.useState(!1),[u,c]=e.useState(!1),[d,f]=e.useState({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),h=e=>{c("boolean"==typeof e?e:!u)};return e.useAction((()=>(f({key:"lasso",action:h,enabled:()=>s,active:()=>u}),{key:"lasso",label:i.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:Z4,hidden:!s||!o||a,active:u,action:h})),[o,a,u,s,i.language()]),{get:()=>d,setAllows:e=>{l(!!e)}}}(),[i,o]=e.useState();return e.useEffect((()=>{const e={};e.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:e,discrete:r}=t;return n.allowScroll&&((null==e?void 0:e.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},e.interact={key:"interact",isEnabled:!0,enabled:()=>n.allowInteract},e.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>n.allowTooltip},e.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>n.allowSelect},e.lasso=r.get(),Object.keys(e).forEach((t=>e6(e[t]))),o(e)}),[]),e.useEffect((()=>{i&&r&&(i.lasso={...i.lasso,...r.get()})}),[r]),{get:()=>i,setAllows:e=>{Object.assign(n,e),r.setAllows(null==e?void 0:e.allowSelect)},setContext:e=>{Object.assign(t,e)},destroy:()=>{Object.keys(i).forEach((e=>i[e].removeAllListeners()))}}}var n6={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}},r6={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",MAJOR_NUM:"majorNum",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",STACK:"stack",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"},STYLING:{AXIS:"axis"}};function i6({layout:e}){const t=Ig.canBeContinuous(e),n=Bg.continuous(e),r=Bg.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:Ig.isTime(n,e),isDimensionless:r,isSimple:Bg.simple(e),isGrouped:Bg.grouped(e),isGroupedByMeasure:Bg.groupedByMeasure(e),isGroupedByDimension:Bg.groupedByDimension(e),isStacked:Bg.stacked(e),isStackedByDimension:Bg.stackedByDimension(e),isStackedByMeasure:Bg.stackedByMeasure(e),isSnapshot:Bg.snapshot(e)}}const o6={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===r6.COMPONENT.BAR){n=e;const r=HC(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function a6(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Vg).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,i=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+i.length+r,qHeight:Math.min(2e3,1e4/(i.length+1))},zoomLevel:-1,filter:"D1"}}}}function s6({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:i},o={}){const a=a6(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,i),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),u=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),c={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>c,update(e){var r;u.should(e)&&u(e),c.mode=Dg(c.mode,t.meta),c.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,c.mode.isStackedByDimension=c.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),c.mode.isStackedByMeasure=c.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),c.fields={major:c.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:c.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},c.scales={major:r6.SCALE.REDUCED.MAJOR,minor:r6.SCALE.REDUCED.MINOR},c.cube=e,o.qDataPages=e.qDataPages},fetchMinMaxData(){if(o.qDataPages)return Promise.resolve(o.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=Dg(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=c.cube}}}function l6({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:i}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==i.event&&r({componentName:"continuousRangeBrush",brushName:!1})}const u6=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function c6({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}const d6={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:i=0,qSelected:o=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+i+o:n}};function f6({picasso:t,chart:n,environment:r,viewState:i,viewCache:o}){const a=e.useStaleLayout(),s=e.useModel(),l=e.useApp(),u=e.usePlugins(),c=e.useSelections(),d=e.useOptions(),[f,h]=e.useState(),[p,m]=e.useState(),[g,y]=e.useState(),v=e.useConstraints(),b=t6();return e.useEffect((()=>{if(!n)return()=>{};const e=b.get(),t=function({chart:e,actions:t,selections:n}){const r=e.scale(r6.SCALE.MAIN.MAJOR),i=uD({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:l6},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}});return i}({chart:n,actions:e,selections:c});return m(e),y(t),()=>{t.destroy(),b.destroy()}}),[n]),e.useEffect((()=>{if(!v)return;const e={allowScroll:!v.active,allowInteract:!v.active,allowTooltip:!v.passive,allowSelect:!v.select&&!v.active};b.setAllows(e)}),[v]),e.useEffect((()=>{if(!g||!r)return;const{theme:e,translator:c,localeInfo:f,flags:m,embed:y}=r,{direction:v="ltr"}=d,x=ZC({source:a,metaAdditionsFn:i6,experimental:{filter:m.isEnabled("IM_1579_HIDE_DIM_MEA")}});g.setFilteredFields(x.meta.filteredFields);const w=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(x.getLayout())?ZC({source:x.getLayout()}):void 0,S=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:d}),M=function({layoutService:e,viewCache:t,flags:n,options:r}){const i={};return i.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),i.selectionDimensionIdx=u6(e.getHyperCube()),i.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,i.selectionDimensionProp=e=>void 0===i.selectionDimensionIdx||void 0!==e&&i.selectionDimensionIdx!==e?{}:{selectionDimension:{field:i.selectionDimensionIdx}},i.animations={enabled:()=>!1!==r.chartAnimations&&!!n.isEnabled("IM_1355_ANIMATIONS_BAR")&&!(i.animations.isPartialUpdating||i.animations.isSizeChanging||i.animations.hasSlicedHats)&&!wD.propertiesHaveChanged({viewCache:t,layout:e.getLayout()}),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},i}({layoutService:x,viewCache:o,flags:m,options:d}),k=BC({chart:n,layoutService:x,config:{logicalSize:S,rtl:"rtl"===v},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),C=function({layoutService:e}){return OC({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return d6.getDimensionSize(r)>Ig.maxNumberOfLines}}}}})}({layoutService:x}),q=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,u=r.extend,c=void 0===u?[]:u,d={theme:t,matrix:gD(a),styles:void 0};return d.styles=vD({theme:t,id:i,transform:l,extend:c,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=vD({theme:e,id:i,transform:l,extend:c,matrix:d.matrix})}}}({theme:e,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),E=function({layoutService:e,themeService:t}){const n=t.getStyles(),r=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.title.fontSize,color:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fill:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.axis.label.name.color,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.label.name.fontSize,fontFamily:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:n.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.title.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.title.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.label.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.label.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,o,a,s,l,u;return{fill:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.label.value.color,useContrastColor:null===(i=null===(o=r("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.useContrastColor)||void 0===i||i,fontSize:null!==(a=null===(s=r("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontSize)&&void 0!==a?a:n.label.value.fontSize,fontFamily:null!==(l=null===(u=r("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.fontFamily)&&void 0!==l?l:n.label.value.fontFamily}}}}}({layoutService:x,themeService:q}),D=OG.model({model:s,layoutService:x,viewCache:o,viewState:i}),T=s6({enigma:s,layoutService:x,viewModel:M});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:x,viewState:i,viewStateOptions:null==d?void 0:d.viewState});const N=function({app:e,model:t,translator:n,picasso:r,localeInfo:i,theme:o,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:u}){const{isContinuous:c,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const h=[],{isReduced:p}=u.model().mode,m=c||p||d,g=!c&&(p||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return f.main=qC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:c6,key:r6.SCALE.MAIN.COLOR},createConfig:()=>({hc:m?g||s.getHyperCube():u.model().cube,source:m?y:"miniCube",theme:o})}),h.push(f.main.initialize()),c&&(f.mini=qC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:c6,key:r6.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:o})}),h.push(f.mini.initialize())),Promise.all(h)},getMain:()=>f.main,getMini:()=>f.mini}}({picasso:t,model:s,app:l,translator:c,localeInfo:f,theme:e,continuousDataModel:D,layoutService:x,legendLayoutService:w,reducedDataModel:T}),O=L4({layoutService:x,viewState:i,colorModel:{settings:()=>N.getMain().getSettings(),resolveUIColor:e=>N.getMain().getPaletteColor(e)},chart:n,env:r,keys:{colorScale:r6.SCALE.MAIN.COLOR},isEnabled:()=>!x.meta.isGroupedByDimension&&(!x.meta.isStackedByDimension||m.isEnabled("TRENDLINES_STACKED_DIM"))&&!x.meta.isDimensionless});w3.attrExpr.updateProperties(s,a);const A=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:h3,miniChartToken:{},embed:s}}({layout:a,app:l,model:s,picasso:t,chart:n,translator:c,localeInfo:f,embed:y,extractDimsAndNode:o6.extractDimsAndNode});let _;x.meta.isDiscrete&&(_=p4({chart:n,actions:p,componentKey:r6.COMPONENT.BAR,enigmaModel:s,layoutService:x,dockService:k,trendLineModel:O,itemWidths:n6,viewState:i,rtl:"rtl"===v,options:{axisKey:r6.COMPONENT.BAR_AXIS,renderer:t.renderer("svg")()}}));const L=AD({layoutService:x,discreteModel:_}),I=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:r6.SCALE.MAIN.MINOR,MAJOR:r6.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:r6.COMPONENT.BAR,BAR_AXIS:r6.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:r6.COLLECTION.MAIN}}}}(x),R=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return CM(SM().mark((function e(){var r,a,s,l;return SM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=CM(SM().mark((function e(n){var r;return SM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(wM({},i));case 4:if("object"===MM(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(wM({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,TM(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=DM(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=GM(!0,{},n.brush);GM(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===MM(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=eq({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=eq({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:u||[],pluginArgs:I});b.setContext({discrete:_,layoutService:x}),h({discrete:_,continuous:OG,legendLayoutService:w,layoutService:x,viewModel:M,dockService:k,themeService:q,styleService:E,continuousDataModel:D,reducedDataModel:T,colorService:N,trendLineModel:O,refLineModel:L,pluginService:R,customTooltipModel:A,selectionService:g,logicalSize:S,disclaimerService:C})}),[g,d,r,a]),f}function h6(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function p6(e){return e.some(h6)}function m6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{p6(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function g6(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function y6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!p6(e)){let i=0,o=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?o+=e.qNum:i+=e.qNum)})),n=Number.isNaN(n)?i:Math.min(i,n),r=Number.isNaN(r)?o:Math.max(o,r)}})),{min:n,max:r}}function v6(e,t){const n={};e.forEach((e=>{if(!p6(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,i=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),i=Number.isNaN(i)?n[e].max:Math.max(n[e].max,i)})),{min:r,max:i}}function b6(e){return"number"==typeof e&&!Number.isNaN(e)}function x6(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>b6(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>b6(e.qMax))).map((e=>e.qMax)))}}function w6(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function S6(e){return!Number.isNaN(+e.qNum)}function M6(e){return e.qNum}function k6(e){return!Number.isNaN(+e.qNum)}function C6(e){return e.qNum}function q6(e,t){return e.push(...t),e}const{getValueWithOffset:E6,isNumber:D6}=_S,T6=5,N6=.2;function O6(e,t){return Math.abs(e/t)<T6||0===t}function A6({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=y6,stackedByDimensionExtractor:i=v6,straightExtractor:o=m6,measureInfoExtractor:a=x6,explicitExtractor:s=g6}=n,{meta:l}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:i}){let o,a;if(Array.isArray(n)?({min:o,max:a}=this.extractFromStacked(n)):({min:o,max:a}=this.extractFromStraight(e,i)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();o=Number.isFinite(e)?Math.min(o,e):o,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),u=this.extractExplicit(),c=[0,o,a].filter((e=>D6(e)));let d=Math.min(...c),f=Math.max(...c);d=O6(s,d)?Math.min(d,s):d,f=O6(l,f)?Math.max(f,l):f;const h=[u.explicitMin,u.explicitMax,d,f].filter((e=>D6(e)));return o=Number.isNaN(u.explicitMin)?Math.min(...h):u.explicitMin,a=Number.isNaN(u.explicitMax)?Math.max(...h):u.explicitMax,o===a&&(Number.isNaN(u.explicitMin)?o=E6(o,-N6):Number.isNaN(u.explicitMax)&&(a=E6(a,N6))),{min:o,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<o,hasOtherMax:l>a,...u}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:i}=s(e);return{hasExplicitMinMax:r||i,hasExplicitMin:r,hasExplicitMax:i,explicitMin:t,explicitMax:n}},extractFromStacked:e=>function(e){return e.length?{min:Math.min(...e[0].qSubNodes.map((e=>e.qMinNeg))),max:Math.max(...e[0].qSubNodes.map((e=>e.qMaxPos)))}:{min:0,max:0}}(e.length?e[0].qData:[]),extractFromStraight(t,n){const s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?i(s,n):e.getHyperCubeValue("qHasOtherValues")?o(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=w6(HC(e,"0.qData.0.qSubNodes",[]),h6,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=HC(e,"0.qMatrix",[]).filter(p6).reduce(q6,[]).filter(k6).map(C6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=w6(HC(e,"0.qMatrix",[]),p6,[]).filter(S6).map(M6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function _6(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:i}=t,o=e=>!e.length&&r.mode.K,a=e=>{const t=i("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=i("qMeasureInfo").length,s=i("qDimensionInfo").length,l=i("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const u=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(o(e))return a(l);let t=[];return l&&(t=r.mode.K?i("qStackedDataPages",[]):i("qDataPages",[])),{qDataPages:e,count:u,others:t}}))}}}(e),n=A6(e);return t.resolve().then((e=>n.extract(e)))}const L6=({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}),I6="lasso",R6=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:I6,enable(e,n){if(this.started===I6||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==I6&&(i.actions.select.emit("start",I6),this.chart.component(e).emit("lassoStart",t),this.started=I6)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",I6),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const P6=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),u=o.hitRadius?o.hitRadius(a):0,c=u>0?{cx:n.x,cy:n.y,r:u}:n,d=o.shapesAt?o.shapesAt(c):this.chart.shapesAt(c,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const z6=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const F6=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function j6(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:u=!1,multiple:c=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:u?{context:"selection",observe:!0}:"selection",scale:s,multiple:c,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=F6(e,t,"range");return{interactions:[e.onEdited?z6(e,t):null,r].filter(Boolean),components:[n]}}const B6={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},H6="inner-time-axis",V6="outer-time-axis";const $6={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=d6.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?HC(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=$6.getAxisData(e,t),r=!e.qDimensionInfo.length,i=r||t?void 0:e.qDimensionInfo.length-1,o=$6.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Ug.getAdjustedMaxGlyphCount(o,n,i,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=$6.getAxisData(e),n=d6.getMaxGlyphCount(e,0);return Ug.getAdjustedMaxGlyphCount(n,t,0)}};var W6={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function U6(e,t,n,r){const{meta:i}=t.layoutService,o=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);i.isContinuous?o.push(...function(e,t,n,r){const{meta:i}=t.layoutService,{axis:o,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:u}=t.layoutService.getLayoutValue("gridLine",{}),c=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=B6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,h={type:"grid-line",x:{},layout:{minimumLayoutMode:B6.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.lines.trackBy,compensateForLayoutChanges:wD.lines.compensateForLayoutChanges}},p=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(i.isTime){if(d){const e=n?"end":"start",r=n?1:0,i="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:o.line.major.color},minorGuideLine:{stroke:o.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:i,justify:r},guideLine:{major:{justify:r},minor:{align:i}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isTime:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isTime:!0})}};c.push(Dg(!0,{},d,{key:H6,scale:r6.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===u}},style:Dg(!0,{},a,{line:{stroke:o.line.major.color},majorGuideLine:{stroke:o.line.minor.color},minorGuideLine:{stroke:o.line.major.color}})})),c.push(Dg(!0,{},d,{key:V6,scale:r6.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:r6.SCALE.MAIN.MAJOR,layout:{dock:`@${V6}`,minimumLayoutMode:f}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:r6.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${H6}`,minimumLayoutMode:f}}),c.push(p)}return c.push(Dg(!0,{},h,{key:"inner-time-grid",x:{scale:r6.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(Dg(!0,{},h,{key:"outer-time-grid",x:{scale:r6.SCALE.MAIN.MAJOR}})),c}if(i.isContinuous){const e="continuous-axis";d&&(c.push({type:"axis",key:e,renderer:RD(t.flags),scale:r6.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:o.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isContinuous:!0})}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:r6.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),c.push(p)),c.push(Dg(!0,{},h,{key:"continuous-grid",x:{scale:r6.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):o.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:i}=t.layoutService,o=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),u="horizontal"===t.dockService.meta.major.orientation,c=u?e.dimensionAxis.label:"auto",d="horizontal"===c?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),h={type:"axis",renderer:RD(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:B6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:c,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:o.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isHorizontal:u})}};l&&a.push(Dg(!0,{},h,{key:"group-axis",scale:r6.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":h.settings.labels.mode,maxGlyphCount:$6.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(u||!s)&&h.settings.line.show}}}));const p=$6.getBarAxisMaxGlyphCount(e.qHyperCube,i.isStackedByDimension);return s&&a.push(Dg(!0,{},h,{key:r6.COMPONENT.BAR_AXIS,scale:r6.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:p,maxLengthPx:d,tiltThreshold:p>W6.LOWERGLYPHCOUNT&&p<W6.UPPERGLYPHCOUNT?1:void 0},line:{show:!(u&&l)&&h.settings.line.show}}})),u||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),u=t.styleService.axis.label.getStyle();return a&&o.push({type:"axis",key:"y-axis",renderer:RD(t.flags),formatter:r6.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:B6.measureAxis.minimumLayoutMode},scale:r6.SCALE.MAIN.MINOR,settings:{labels:{show:s,...u},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:wD.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:wD.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),o}var Y6={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const K6=.7,G6=.9;function X6({layoutService:e,discrete:t,componentKey:n}){var r;const{isContinuous:i,isGrouped:o}=e.meta;if(i)return 1;const a=(e.getLayoutValue("components",[])||[]).filter((e=>e.key===n))[0];if(null!=a&&null!==(r=a.style)&&void 0!==r&&r.width){const{style:e}=a;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=Y6.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return o?G6:K6}const J6={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Q6(e,t,n={}){return({data:r})=>{const i=e.chart.component(t).rect;if(!r.items.length||!i)return 2;const{min:o,max:a}=e.viewState.get("zoom");if(n[[o,a]])return n[[o,a]];const s=J6[Og.getLayoutMode(i.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-o),u=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===u)return s;const c=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/u/.2,1));return n[[o,a]]=Math.max(2,Math.min(s,c)),n[[o,a]]}}function Z6(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function e8(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function t8(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function n8(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const r8={MAX:"max",MIN:"min"},i8={min:"Min",max:"Max"};function o8(e,t,n){return void 0===n?Z6(e,t)||e8(e,t):n===r8.MAX?Z6(e,t):e8(e,t)}function a8({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${i8[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===r8.MAX?e.implicitMax:e.implicitMin;return!o8(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function s8(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:i,dockService:o,themeService:a}=e,s=i.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===r8.MAX?s.implicitMax:s.implicitMin;if(!o8(Number(l.toFixed(13)),s,n))return!1;const{orientation:u}=t.settings,c=n===r8.MAX?o.meta.minor.end:o.meta.minor.start;let d="end";r&&(d=n===r8.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:u,major:t.settings.major,minor:t.settings.minor,dockValue:$g.getDockValue(c),oob:Dg({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&o8(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:wD.barOobs.compensateForLayoutChanges}}}function l8(e){return Math.min(Math.max(0,e),1)}const u8=(e,{chart:t,type:n,componentKey:r,collectionKey:i})=>{const{layoutService:o,dockService:a,viewCache:s}=e,{isStacked:l}=o.meta,u=s.get("minorMinMax"),{meta:c}=e.layoutService;if(!a8({minorMinMax:u,type:n}))return!1;let d;c.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:c.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${r6.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:i},settings:{orientation:a.meta.minor.orientation,major:{scale:r6.SCALE.MAIN.MAJOR,fn:d},minor:{scale:r6.SCALE.MAIN.MINOR,start(e){var n;return l8(t.scale(r6.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(r6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r[n]();return l8(r(o))}},box:{width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(r6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r.max();return"max"===n?o>r.max():o<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return f};function c8(e,t){const{style:n,styleService:r,dockService:i}=t,o=r.label.getStyle(),a=o.useContrastColor&&!e.onBackground?function(e){return function(t){return Zy.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):o.fill,s="horizontal"===i.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function d8(e){return{placements:e.simplifiedPlacements.map((t=>c8(t,e))),label:e.label}}function f8(e,t){if(t){if(function(e,t){return Z6(e,t)}(e,t))return-1;if(function(e,t){return e8(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}const h8="vertical",p8="horizontal";function m8(e,t,n,r){const i=f8(e,r);let o="up";return t===h8&&i<0?o="down":t===p8&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}function g8(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!r||!i&&!!n.showSegmentLabels}function y8(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!!r&&(!!i||!1!==n.showTotalLabels)}function v8(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}function b8({layout:e,component:t,minorScale:n},r,i){if(!g8(e,r))return!1;const{viewModel:o,ds:a,viewCache:s,layoutService:l,dockService:u,themeService:c}=r,{meta:d}=l,f=s.get("minorMinMax"),h=c.getStyles(),p=r.styleService.label.getStyle();let m;!d.isStacked&&(m=d.isStacked?1:0);const g=0===m?1:0,y=d.isStacked?.5:1,v=o.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,w=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>w?b(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:x,simplifiedPlacements:v8(m,g,y,d.isContinuous),style:h.label.value},M=[d8(Dg(r,S))],k={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>m8(e.data.end.value,u.meta.minor.orientation,i,f),labels:M,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:wD.labels.linkData}}},C=[k],q={key:"bar-labels",type:"labels",renderer:RD(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:C},animations:{enabled:r.viewModel.animations.enabled,trackBy:wD.labels.trackBy,compensateForLayoutChanges:wD.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(q.beforeRender=()=>{w=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",i=t.chart.component(e),o=i&&i.rect?i.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/o}(t,r,n)}),q}const x8={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,i){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const o=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:o.measureIndex.value]:void 0,s=n.isStacked?{source:{key:o.source.key,field:a},label:!0===(null===(l=o.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&i?i(o.segment.value):o.segment.label}:o.end;var l;return ey.getMeasure(e,s)},getMeasures(e,t,n,r,i){const o=e.resources.dataset;return t.map((e=>x8.getMeasure(o,e,n,r,i))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return y3({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,i){const o={title:x8.getTitle(t,n),color:ey.getColor(e,t,r),measures:x8.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,i)};if(x8.useCustomTooltip(r)){var a,s;const n=x8.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);o.customMeasures=n.customTooltipAttrExpsArr,o.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===e3.CUSTOM.TITLE)),o.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===e3.CUSTOM.DESCRIPTION));let i=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(i=e.data.customTooltipImages)})),i.length>0&&(o.customImages=i);const d=r.layoutService.getLayout();var l,u,c;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(u=r.app).isInModalSelection)&&void 0!==l&&l.call(u)){if((null==d||null===(c=d.qHyperCube)||void 0===c||null===(c=c.qDimensionInfo)||void 0===c?void 0:c.length)>0){u3.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");o.customLimitation=e}}else{const t=u3.createContainer({ctx:e,layout:d});o.customChart=t}}return o},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,i=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${x8.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:i}},extractTooltipData(e,t){const n=t.chart.formatter(r6.FORMATTER.MINOR),{meta:r}=t.layoutService,i=e.node.childrenNodes?e.node.childrenNodes:[e.node],o=Math.max(0,i.length-6);i.length=Math.min(i.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>x8.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:i.map((i=>x8.extractBarTooltipData(e,i,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:o}},extractBarNodeData(e,t,n,r,i,o,a){let s=!i&&ey.getTitleRow(t,r);const l=ey.hideColorRow(t,n),u=!o&&!l&&ey.getColorRow(e,t,r),c=t.measures.map((i=>!a&&ey.getMeasureRow(i,e,t,r,l&&i.field===n.coloring.field))),d=c.filter((e=>!x8.isSameMeasureAndColorRow(e,u,r)));if(x8.useCustomTooltip(n)){const n=i?[]:t.customMeasures.map((n=>ey.getMeasureRow(n,e,t,r,!1))),o=!(!t.customTitle[0]||i)&&ey.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||i)&&ey.getDescriptionRow(t.customDescription[0],r);s=!x8.shouldIgnoreTitleRowForCtt(o,a,d,n)&&s;const l=[o,a,s,u,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(h3.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>h3.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,u,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&ey.getTitleRow(t,n),i=t.measures.map((r=>ey.getMeasureRow(r,e,t,n,!1)));return[r,...i].filter(Boolean)},useCustomTooltip:e=>HC(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>x8.useCustomTooltip(t)&&HC(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:i}=t.layoutService,o=t.layoutService.getLayout(),a=r.length;let s,l,u=[];const c=x8.shouldIgnoreDefaultRows(o,t);for(s=0;s<a;s++){l=r[s];const o=x8.shouldIgnoreTitleRow(i,s),d=c||x8.shouldIgnoreColorRow(i,s),f=c||x8.shouldIgnoreMeasureRow(d,l,t);if(u=u.concat(x8.extractBarNodeData(e,l,t,n,o,d,f)),u.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:u,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:u,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(x8.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:i,stackTotalBarTooltipData:o}=x8.extractTooltipData(e,t),a=x8.extractStackTotalBarsData(e,n,o);a.length&&a.push(ey.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=x8.extractBarsData(e,t,n,r),u=a.concat(s),c=i+l;return c&&u.push(ey.getNMoreRow(c,t.translator,n)),u},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return _D.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:i,groupProp:o}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",u=e.chart.scale(n).pxScale(a[l]);let c,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;c=i.value,d=n===r&&void 0!==c?(u([c,0])+u([c,t-1]))/2:0,f=n===r&&void 0!==c?u.bandwidth([c,0]):0}else{const{value:e}=i;c=i[o]?i[o].value:void 0,d=u(n===r&&void 0!==c?[c,e]:e),f=n===r&&void 0!==c?u.bandwidth([c,e]):u.bandwidth(e)}const h=(d+f/2)*a[l],p={width:0,height:0};return"horizontal"===s?(p.x=h,p.y=a.height):(p.y=h,p.x=0),p},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:i,majorScale:o,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let u;return u=l.length?x8.calculateBoundsFromBars(l):x8.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===i?o:a,majorScale:o,data:t[0].data,groupProp:s}),u},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const i=e.filter((e=>t.some((t=>n(e,t,r)))));return i},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=x8.isBarMatchingLabelOnProp;return x8.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=x8.isBarMatchingLabel;return x8.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const i=t.filter((e=>e.key===n)),o=t.filter((e=>e.key!==n)),a=x8.findBarsFromBarLabelsInGroupedByDim(e,i,r),s=x8.findBarsFromGroupLabelsInGroupedByDim(e,o,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=x8.isBarMatchingLabel;return x8.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=x8.isBarMatchingLabel;return x8.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=x8.isBarMatchingLabelOnProp;return x8.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>x8.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:i,stackProp:o}){const{meta:a}=t.layoutService,s=x8.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?x8.findBarsFromLabelsInStackedByDim(s,e,o):a.isStackedByMeasure?x8.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?x8.findBarsFromLabelsInGroupedByDim(s,e,r,i):x8.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const i=x8.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?x8.findStackTotalBarsFromLabelsInStackedByDim(i,e):x8.findStackTotalBarsFromLabelsInStackedByMeasure(i,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:u,majorInnerScale:c,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let h=x8.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(h=h.filter(d)),x8.isSingleBarMode(f,h))return[h[0]];if(h.length){let f=x8.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,o,a],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const p=x8.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:i,groupProp:s,majorScale:u,majorInnerScale:c}),m=x8.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:p,childrenNodes:h,data:h.map((e=>e.data)),stackTotalBarNodes:m};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,groupAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d}){let f=x8.filterNodesOnKeys(e,[i,o]),h=f&&f.length?[f[0]]:[];const p=x8.filterNodesOnLabels({labels:h,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d});if(p&&p.length)return p;const{meta:m}=t.layoutService;if(m.isStackedByMeasure){f=x8.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>x8.filterNodesForOob(e,n,a),p=x8.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}if(m.isStackedByDimension){f=x8.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>x8.filterNodesForOob(e,n,a),p=x8.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}const g=x8.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function w8(e,t={},n){let r=[];const i=Gg({key:r6.COMPONENT.BASE_TOOLTIP,rtl:n});return Dg(!0,i,{scale:r6.SCALE.MAIN.COLOR,settings:{filter:e=>x8.filterNodes({nodes:e,opts:t,barKey:r6.COMPONENT.BAR,stackTotalBarKey:r6.COMPONENT.STACK_TOTAL_BAR,barAxisKey:r6.COMPONENT.BAR_AXIS,groupAxisKey:r6.COMPONENT.GROUP_AXIS,barOobMaxKey:r6.COMPONENT.BAR_OOB_MAX,barOobMinKey:r6.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],x8.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:i,properties:o,customTooltipModel:a}=t;i&&(null===(e=i.isInModalSelection)||void 0===e||!e.call(i))&&a.useCustomTooltip&&a.embed&&u3.show({app:i,properties:o,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const S8={extractData:(e,t)=>[ey.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function M8(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Gg({key:r6.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return Dg(!0,r,{scale:r6.SCALE.MAIN.COLOR,settings:{filter:e=>S8.filterNodes(e,r6.COMPONENT.LEGEND_COLOR_CAT),extract:e=>S8.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function k8(e,{fill:t}){return{[r6.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[r6.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const C8=1,q8=3;function E8(e){return e.getLayoutValue("gridLine.auto")}function D8(e){return!E8(e)&&e.getLayoutValue("gridLine.spacing")===C8}function T8(e){return!E8(e)&&e.getLayoutValue("gridLine.spacing")===q8}const N8=e=>({enabled:e.animations.enabled,trackBy:wD.lines.trackBy,compensateForLayoutChanges:wD.lines.compensateForLayoutChanges}),O8=(e,{themeService:t,layoutService:n,dockService:r,viewModel:i})=>{if(!E8(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:B6.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!D8(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:T8(n),stroke:o.line.minor.color},animations:N8(i)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=r6.SCALE.MAIN.MINOR,a};function A8(e,t){const n=[O8(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const i=n.get("minorMinMax");if(i.min>0||i.max<0)return!1;const o=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:r6.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:r6.SCALE.MAIN.MINOR,lines:a,animations:N8(r)}})(t)),n}const _8="areaPan",L8=e=>({type:"Pan",key:"panorama",options:{event:_8,pointers:1,threshold:10,enable(t,n){return this.started===_8||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===r6.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=_8;const n=e.viewState.get("zoom");this[_8]={min:n.min,max:n.max,size:e.chart.component(r6.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:i,size:o}=this[_8],a=-t.deltaX/o;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(i+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function I8(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:i}=e,{rtl:o}=t,a=OG.event.onZoom({viewCache:n,viewState:r,chart:i},{threshold:100,rtl:o,targetKey:r6.COMPONENT.BAR}),s={last:0,diff:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===r6.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function R8({chart:e},t,n){const r=e.component(r6.COMPONENT.BASE_TOOLTIP);var i;r&&r.show&&(r.emit("hide"),null!=n&&null!==(i=n.customTooltipModel)&&void 0!==i&&i.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const o=e.component(r6.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&o.emit("hide");const a=e.component(r6.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function P8(e,t){const{viewCache:n,viewState:r,chart:i,trendLineModel:o,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?OG.event.onZoom({viewCache:n,viewState:r,chart:i},{rtl:s,threshold:50,targetKey:r6.COMPONENT.BAR}):void 0,u=W4({majorInnerScale:r6.SCALE.MAIN.MAJOR_INNER,tooltip:r6.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:r6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:i,viewState:r,trendLineModel:o,layoutService:a,rtl:s}),c=[r6.COMPONENT.BAR,r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS,r6.COMPONENT.BAR_OOB_MAX,r6.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const i={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(i).filter((e=>e.key===r6.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(i,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),R8(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(u(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(r6.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>c.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const i=d.getNodes(t,this.chart);f(t,r,{nodes:i,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const i=this.chart.component(r6.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&(n.some((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT))?i.emit("show",t):i.emit("hide"))}},mouseup(t){2===t.button&&R8(this,f,e)},mouseleave(){R8(this,f,e)}}}}const z8=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...QG({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[L8(e,t.rtl),I8(e,t)]]});function F8(e,t){const n=[z8(e,t),P8(e,t),QG({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const j8=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:wD.bars.compensateForLayoutChanges});const B8=(e,t,{collectionKey:n})=>{if(!zG({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:i},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:Dg(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:Dg(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:j8(i)}}(e,t,{collectionKey:n});const{mode:r,scales:i}=t.reducedDataModel;let o;return r.isGroupedByDimension&&!r.isReduced?o=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(o=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:i.major,fn:o},minor:{scale:i.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:j8(t.viewModel)}},{measureText:H8}=Cp.renderer("svg")();function V8(e,t,n){const r=function(e){const t=Dg(!0,{},e);return delete t.data,t}(t.minor),i=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:i,getProp:o}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:i};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=Dg(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=Dg(!0,{},t,{min:()=>o("continuousMin"),max:()=>o("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:i}}const $8=125,W8={NARROW:50,MEDIUM:100,WIDE:200};function U8(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return W8.NARROW;case 1:return W8.MEDIUM;case 2:return W8.WIDE;default:return t*$8}}(t);return Math.max(1,Math.round(e/n))}const Y8=10;function K8(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function G8(e,t,n){return 0===t||0===e||t===n.length-1}function X8(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function J8(e,t,n,r,i){e.domain([t,n]),e.nice(Y8);const[o,a]=e.domain();let s=e.ticks(Y8);const l=function(e){return e.length%2==0}(s),u=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),c=u?G8:K8;s=s.filter(c),l&&!u&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=i?i.formatter(r6.FORMATTER.MINOR):void 0;return X8(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:o,roundedMax:a,ticks:s}}function Q8(e,t,n,r,i,o,a,s){const l=o.formatter(r6.FORMATTER.MINOR),u=s.getStyles(),c="horizontal"===a.meta.major.orientation?"height":"width",d=e=>H8({text:e,fontSize:u.axis.label.name.fontSize,fontFamily:u.axis.label.name.fontFamily})[c];let[f,h]=e.domain(),p=e.ticks(r);function m(){const e=p.map(l);return!X8(e)&&function(e){const t=i/p.length;return Math.max(...e.map(d))<=t}(e)}for(let i=r-1;i>0&&!m();i--)e.domain([t,n]),e.nice(i),[f,h]=e.domain(),p=e.ticks(i);return{roundedMin:f,roundedMax:h,ticks:p}}const Z8=(e,t)=>e.value-t.value,e7=e=>({value:e,isMinor:!1}),t7=e=>({value:e,isMinor:!0});function n7(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function r7({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:i}){const{explicitMin:o,explicitMax:a,hasExplicitMin:s,hasExplicitMax:l}=t.get("minorMinMax"),{min:u,max:c}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),d=UC((()=>{const d=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(r6.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=U8(d,r),h=function(e,t,n){const r=rx().domain([e,t]);return r.nice(n),r}(u,c,f);let p,m,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:p,roundedMax:m}=function(e,t){return{roundedMin:e,roundedMax:t}}(u,c)):(({roundedMin:p,roundedMax:m,ticks:g}=Q8(h,u,c,f,d,e,n,i)),n7(g,o,a)&&({roundedMin:p,roundedMax:m,ticks:g}=J8(h,u,c,s||l,e)));const y=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}(g,1);g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(s,o,g),g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(l,a,g);const v=function(e,t){return[...e.map(e7),...t.map(t7)].sort(Z8)}(g,y);return{roundedMin:p,roundedMax:m,ticks:v}}),(()=>t.get("isPreRender")));return{values:()=>d().ticks,min:()=>s?o:d().roundedMin,max:()=>l?a:d().roundedMax}}function i7(e,{picasso:t,discrete:n,layoutService:r,dockService:i,viewModel:o,viewCache:a,reducedDataModel:s,colorService:l,themeService:u,viewState:c,chart:d},{localeInfo:f,rtl:h}){const{meta:p}=r,{fields:m}=o,g=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,i.meta.chart.size["horizontal"===i.meta.major.orientation?"height":"width"]/4)},y=!("none"===r.getLayoutValue("measureAxis.show"))?(v=i.meta.minor.orientation,b=i.meta.minor.dock,"vertical"===v?"near"===b||"left"===b?0:1:"near"===b||"bottom"===b?1:0):.5;var v,b;const x={},w="vertical"===i.meta.minor.orientation&&h,S=l.getMain().getScales(),M=l.getMini().getScales();if(Object.assign(x,S,{reducedFill:M.reducedFill}),x[r6.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:i,themeService:o},{rtl:a}){const s=r7({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:o}),l={invert:"vertical"===n.meta.minor.orientation||a,ticks:{values:s.values},minorTicks:{count:1},min:s.min,max:s.max};return i.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor}),l}({chart:d,viewModel:o,dockService:i,viewCache:a,layoutService:r,themeService:u},{rtl:h}),p.isGroupedByDimension)[r6.SCALE.MAIN.MAJOR_INNER,r6.SCALE.MAIN.MAJOR].forEach(((e,t)=>{x[e]={invert:w,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...o.selectionDimensionProp(t),group:p.isGroupedByDimension?{field:m.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:g,align:y}})),o.isDimensionLocked(0)||(x[r6.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(p.isGroupedByMeasure)x[r6.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:w,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:g,align:y};else if(p.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:i,picasso:o,viewState:a,localeInfo:s,themeService:l}=e,u=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),c=o.formatter("q-time"),d=l.getStyles(),f=e=>H8({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});i.set("qTimeAxisCache",[]);const h={get:(e,t=0)=>{const n=i.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{i.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(i.get("continuousMax")-i.get("continuousMin")),o=u().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...o].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:h},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:h}}}({picasso:t,localeInfo:f,viewState:c,viewModel:o,viewCache:a,themeService:u,layoutService:r},h);x[r6.SCALE.MAIN.MAJOR_INNER]=e,x[r6.SCALE.MAIN.MAJOR]=n}else p.isContinuous?x[r6.SCALE.MAIN.MAJOR]={type:"linear",invert:w,data:{extract:{key:"qHyperCube",field:m.majorNumeric}},ticks:{forceBounds:!0,count:c.get("zoom").min===c.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>c.get("zoom").min,max:()=>c.get("zoom").max}:x[r6.SCALE.MAIN.MAJOR]={invert:w,data:{extract:p.isDimensionless?m.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:p.isDimensionless?"band":void 0,maxPxStep:g,align:y};const{reducedMinor:k,reducedMajor:C}=V8(s,{major:x[r6.SCALE.MAIN.MAJOR],minor:x[r6.SCALE.MAIN.MINOR]},{majorScaleInvert:w,maxPxStep:g,align:y,getProp:a.get});return p.isDiscrete&&(x[r6.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,p.isGroupedByDimension&&(x[r6.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),x[s.scales.major]=C,x[s.scales.minor]=k,x}function o7(e,t,n){const{layoutService:r,colorService:i}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[P6(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?r6.COMPONENT.STACK_TOTAL_BAR:r6.COMPONENT.BAR,r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",r6.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return r6.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT))?i.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function a7(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=L6(n);return{interactions:[R6(n,t)],components:[r]}}({key:"lasso",componentTargetKey:r6.COMPONENT.BAR,components:[t?{key:r6.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:r6.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function s7(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[F6(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:r6.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",r6.COMPONENT.BAR_AXIS,r6.COMPONENT.BAR],fillTargets:["group-axis",r6.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function l7(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:i}=t,o=void 0===n,a=r.getIsSingleSelect(n),s=o7(e,o,a);if(o||a)return{components:[...s.components],gestures:[...s.interactions]};const l=a7(e),u=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:j6({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",r6.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:r6.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,i),c=function(e){return e.layoutService.meta.isContinuous?j6({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",r6.COMPONENT.BAR]:["continuous-axis",r6.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?r6.SCALE.MAIN.MAJOR_INNER:r6.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const i=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(r6.FORMATTER.MINOR),o=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||o?"":"<"}${i(t)}`}},e):{components:[],interactions:[]}}(e),d=s7(e);return{components:[...s.components,...l.components,...u.components,...d.components,...c.components],gestures:[...l.interactions,...s.interactions,...u.interactions,...d.interactions,...c.interactions]}}function u7({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:i}=e;if(!i.isStackedByDimension||i.isContinuous)return!1;const{fields:o}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMaxPos.toFixed(13))}}},{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMinNeg.toFixed(13))}}}]},settings:{major:{scale:r6.SCALE.MAIN.MAJOR},minor:{scale:r6.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:wD.shadowBars.trackBy,compensateForLayoutChanges:wD.bars.compensateForLayoutChanges}}}const c7={min:"Min",max:"Max"};function d7(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?t8(e,t)||n8(e,t):n===r8.MAX?t8(e,t):n8(e,t)}(Number(r.toFixed(13)),e,t)}function f7(e,{barComponent:t,type:n,isStacked:r}){var i,o,a;const{viewCache:s,layoutService:l,dockService:u}=e,c=s.get("minorMinMax"),d=n===r8.MAX;if(function(e,t){return!e[`hasOther${c7[t]}`]}(c,n)){if(function(e,t){return!e[`hasExplicit${c7[t]}`]}(c,n))return!1;if(d7(c,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${c7[t]}`]&&r(e[`explicit${c7[t]}`])}(c,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const h=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(r6.SCALE.MAIN.MINOR)[n]())),p=d?e=>e.datum[f].value>h():e=>e.datum[f].value<h(),m=r6.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===m))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:Dg({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:p,width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:m}),strokeWidth:null!=y&&null!==(i=y.style)&&void 0!==i&&i.strokeWidth?Y6.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Y6.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:Y6.BAR.STROKE.COLOR})}}}function h7(e,t){var n;let r;return r=e.isContinuous?1:.7,!e.isContinuous&&null!=t&&null!==(n=t.style)&&void 0!==n&&n.width&&t.style.width>0?t.style.width:r}function p7(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:i}=e.viewModel,o=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum",a=e=>"NaN"===e[o]?0:e[o];function s(t){const n=e.ds.field(t).raw(),r=e.ds.field(t).formatter(),i=Pg.shouldUseFormat(n);return{field:t,reduceLabel:"none",value:a,label:e=>i?(e=>"NaN"===e[o]?"-":r(e[o]))(e):e.qText}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;function u(e){return{field:e,reduceLabel:"none",reduce:"first",value:l}}const c={key:t,data:{extract:i.minor.map(((t,o)=>{const a=e.colorService.getMain().getDatumProps(o),l=e.colorService.getMini().getDatumProps(o),c=a[Object.keys(a)[0]],d=null==c?void 0:c.field,f=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,h={field:r.isDimensionless?t:i.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:u(t),segment:r.isStacked?s(t):void 0,group:r.isGroupedByDimension?{field:i.majorGroup}:void 0,stack:r.isStacked?{field:i.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:o,timeStart:r.isContinuous?{field:i.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:i.majorNumeric}:void 0,fillTooltip:f,...a,...l,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${o}`},customTooltipAttrExps:0!==r.dimensionCount?m3.getNode(e.layoutService.getLayout(),r):void 0}};return r.isDimensionless&&(h.value=o),void 0!==n&&(h.source=n),Pg.deleteUndefinedProperties(h.props),h}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function m7({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:i}=t;if(!r.isStacked)return!1;let o;return o=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,i):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Number(e.qMaxPos.toFixed(13))},sumOfNegatives:{value:e=>Number(e.qMinNeg.toFixed(13))},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,i),{key:n,data:{extract:o}}}const g7="main-collection",y7="stack-total-collection";const v7="mini-collection",b7="mini-stack-collection",x7="mini-continuous-collection",w7="miniCube",S7=(e,t)=>{const n=(e=>{const t=[p7(e,{collectionKey:g7})];return e.layoutService.meta.isStacked&&t.push(m7(e,{collectionKey:y7})),t})(t),r=((e,t)=>{const n=[];return zG({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(p7(t,{collectionKey:x7},w7)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o={end:{field:e,reduceLabel:"none"},...i.isStackedByMeasure&&!i.isReduced?n.getMain().getDatumProps(t):{}};return i.isContinuous&&(o.timeStart={field:r.major,value:e=>e.qNum},o.timeEnd=o.timeStart),{source:"miniCube",field:r.major,props:o}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:b7})):n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o=i.isReduced?{}:n.getMain().getDatumProps(t),a={end:{field:e},start:0,group:{field:r.majorGroup},measureIndex:t,...o},s={source:"miniCube",field:i.isDimensionless?e:r.major,props:a};return i.isDimensionless&&(s.value=t),s}))}}}(t,{collectionKey:v7}))),n})(0,t);return n.concat(r)};function M7(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function k7({layout:e,component:t},n,r){if(!y8(e,n))return!1;const{layoutService:i,chart:o,dockService:a,viewModel:s,themeService:l,styleService:u}=n,{meta:c}=i,d=!g8(e,n),f=l.getStyles(),h=u.label.getStyle(),p=h.useContrastColor;function m(e){const t=o.formatter(r6.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":m(e.data.sumOfPositives.value)},simplifiedPlacements:M7("outside",d,p,c.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":m(e.data.sumOfNegatives.value)},simplifiedPlacements:M7("opposite",d,p,c.isContinuous),style:f.label.value},v=[d8(Dg(n,g)),d8(Dg(n,y))];return{key:"stack-total-labels",type:"labels",renderer:RD(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>m8(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily,linkData:wD.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:wD.labels.trackBy,compensateForLayoutChanges:wD.labels.compensateForLayoutChanges}}}function C7(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function q7({layout:e,type:t},n){const{layoutService:r,viewCache:i,themeService:o,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!g8(e,n)||l&&!y8(e,n))return!1;const u=i.get("minorMinMax");if(!u.hasExplicitMinMax||t===r8.MAX&&0===u.max||t===r8.MIN&&0===u.min)return!1;if(!o8(t===r8.MAX?u.implicitMax:u.implicitMin,u,t))return!1;const c=o.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===r8.MAX?function(e){if(o8(e.data.sumOfNegatives.value,u,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(r6.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(o8(e.data.sumOfPositives.value,u,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(r6.FORMATTER.MINOR);return r?r(t):t}return""});const h={label:f,simplifiedPlacements:C7("outside",true,s.isContinuous),styles:c},p={label:f,simplifiedPlacements:C7("opposite",true,s.isContinuous),styles:c},m=[d8(Dg(n,h)),d8(Dg(n,p))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${r6.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:m,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:wD.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:RD(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:wD.labels.trackBy,compensateForLayoutChanges:wD.labels.compensateForLayoutChanges}}}function E7(e){return"all"===e||"title"===e}function D7(e,t,n){if(!E7(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:i}=t,o={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(o.padding="0",o.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:B6[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:o,style:a}}function T7(e,t,n){if(!E7(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,o=t.properties,a=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",s={hyperCube:r.getHyperCube(),hyperCubeDef:HC(o,a),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},l=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(s.padding="0",s.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:s,style:l}}function N7({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:i,dockService:o,themeService:a,viewModel:s,chart:l}){const{theme:u,localeInfo:c}=e,d={resolveUIColor:i.getMain().getPaletteColor},f=a.getStyles(),h=s.animations.enabled;return[ED({refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:r6.SCALE.MAIN.MINOR,axis:"horizontal"===o.meta.major.orientation?"y":"x",key:r6.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:B6.refLines.minimumLayoutMode}),ED({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:r6.SCALE.MAIN.MAJOR,axis:"horizontal"===o.meta.major.orientation?"x":"y",rtl:t,key:r6.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:r6.COMPONENT.BAR,minimumLayoutMode:B6.refLines.minimumLayoutMode}),...OD({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.minor.opposite,scale:r6.SCALE.MAIN.MINOR,style:f,formatter:r6.FORMATTER.MINOR,theme:u,localeInfo:c,rtl:t,key:r6.COMPONENT.MEASURE_REF_LINE_LABEL}),...OD({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.major.opposite,scale:r6.SCALE.MAIN.MAJOR,style:f,theme:u,localeInfo:c,rtl:t,key:r6.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const O7=(e,t,n)=>{var r;const{layoutService:i,dockService:o,colorService:a,chart:s,actions:l,discrete:u,continuousDataModel:c,reducedDataModel:d,viewModel:f,viewState:h,viewCache:p,themeService:m,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:w}=t,{localeInfo:S}=n,M=function(e,t){const{disclaimerService:n,themeService:r,translator:i}=e,o=n.getDisclaimer();if(!o)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:o.alignment},settings:{isRTL:t,label:i.get(`Object.Disclaimer.${o.key}`)},style:{fontFamily:a}}}(t,v);if(w.getHasSuppressingDisclaimer())return{components:[M]};const k=i7(e,t,{localeInfo:S,rtl:v}),C=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),q=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:h,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:C}),E=q.components[0];if(E){const{dock:e}=E.layout;if(k.fillRange&&(["right","left"].includes(e)||v)&&(k.fillRange.invert=!0),"legend-seq"===E.type&&void 0!==f.selectionDimensionIdx&&k.fillRange&&k.fillRange.min<k.fillRange.max){const e=j6({eventName:"legendRange",key:"legendRangeBrush",targets:[E.key],fillTargets:[E.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:E.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);q.components.push(...e.components),q.interactions.unshift(...e.interactions)}}else k.fillRange&&v&&(k.fillRange.invert=!0);const D=((e,{componentKey:t,collectionKey:n})=>{var r,i,o;const{meta:a}=e.layoutService;let s,l;a.isGroupedByDimension?s=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(s=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(l={start:"timeStart",end:"timeEnd"},u=Q6(e,t)):a.isStacked&&(l="stack");const c=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,d=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),h=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||c?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:r6.SCALE.MAIN.MAJOR,fn:s,ref:l},minor:{scale:r6.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>d(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:d(e)?.01:.3},strokeWidth:null!=h&&null!==(r=h.style)&&void 0!==r&&r.strokeWidth?Y6.BAR.STROKE.WIDTH[h.style.strokeWidth.toUpperCase()]:Y6.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==h||null===(o=h.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==i?i:Y6.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:wD.bars.trackBy,compensateForLayoutChanges:wD.bars.compensateForLayoutChanges}}})(t,{componentKey:r6.COMPONENT.BAR,collectionKey:r6.COLLECTION.MAIN}),T=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let i=2;r.isContinuous&&(i=Q6(e,t));const o=e.layoutService.getLayoutValue("components",null),a=o?o.filter((e=>e.key===t))[0]:null,s={key:t,type:"box",data:{collection:n},settings:{major:{scale:r6.SCALE.MAIN.MAJOR},minor:{scale:r6.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:h7(r,a),minWidthPx:i,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"}),s})(t,{componentKey:r6.COMPONENT.STACK_TOTAL_BAR,collectionKey:r6.COLLECTION.STACK_TOTAL}),N=l7(t,n,f.selectionDimensionIdx),{isStacked:O}=i.meta;let A;A=d.mode.isContinuous?r6.COLLECTION.MINI_CONTINUOUS:O?r6.COLLECTION.MINI_STACK:r6.COLLECTION.MINI;const _=O?T:D,L=A8(0,t),I=[...L,f7(t,{barComponent:_,type:"max",isStacked:O}),f7(t,{barComponent:_,type:"min",isStacked:O}),s8(t,{barComponent:_,type:"max",isStacked:O}),s8(t,{barComponent:_,type:"min",isStacked:O}),u8(t,{chart:s,barComponent:_,type:"max",scales:k,collectionKey:O?r6.COLLECTION.STACK_TOTAL:r6.COLLECTION.MAIN}),u8(t,{chart:s,barComponent:_,type:"min",scales:k,collectionKey:O?r6.COLLECTION.STACK_TOTAL:r6.COLLECTION.MAIN}),...U6(e,t,v,!!L[0]),D,T,u7({layoutService:i,viewModel:f,layout:e,dockService:o}),D7(e,t,v),T7(e,t,v),...N7({environment:n,rtl:v,refLineModel:g,layoutService:i,colorService:a,dockService:o,themeService:m,viewModel:f,chart:s}),yS({viewState:h,viewCache:p,layoutService:i,dockService:o,rtl:v}),B8(D,t,{collectionKey:A}),FG({layoutService:i,dockService:o,discrete:u,continuousDataModel:c,viewState:h,viewCache:p,themeService:m,rtl:v,deviceType:n.deviceType}),...P4({majorScale:r6.SCALE.MAIN.MAJOR,minorScale:r6.SCALE.MAIN.MINOR,tooltipOverlay:r6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:i,trendLineModel:x,dockService:o,animationsEnabled:f.animations.enabled}),...q.components,b8({layout:e,component:r6.COMPONENT.BAR,minorScale:k.minor},t,v),k7({layout:e,component:r6.COMPONENT.STACK_TOTAL_BAR},t,v),q7({layout:e,component:"bar-oob-max",type:"max"},t),q7({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,w8(0,{...t,coloring:a.getMain().getSettings()},v),M8(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&M,V4({tooltip:r6.COMPONENT.TREND_LINES_TOOLTIP,formatter:r6.FORMATTER.MINOR,majorScale:r6.SCALE.MAIN.MAJOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const R=[...q.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:F8(t,{rtl:v,hammer:{gestures:R}}),scales:k,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:Ag(0,{logicalSize:b,minCenterRatio:0}),formatters:k8(t,k),collections:S7(0,t)}};function A7({picasso:t,chart:n,services:r,environment:i,viewState:o,viewCache:a,bootstrapped:s}){const{width:l,height:u}=e.useRect(),c=e.useModel(),d=e.useSelections(),f=e.useOptions(),[h,p]=e.useState(),[m,g]=e.useState(),[y,v]=e.useState(),[b,x]=e.useState(),w=e.useApp();function S(){if(!n.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:s,viewModel:l}=r;a.set("isPreRender",!0);const u=function(e={}){const{selectionService:s,refLineModel:l,discrete:u,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,pluginService:y,colorService:v,viewModel:b,dockService:x,themeService:S,customTooltipModel:M,layoutService:k,logicalSize:C,styleService:q,disclaimerService:E}=r,D=s.custom.getActions(),T=t.data("q")(h.prepPicassoDataSet()),N={picasso:t,ds:T,rtl:"rtl"===(null==f?void 0:f.direction),model:c,app:w,chart:n,actions:D,localeInfo:i.localeInfo,logicalSize:C,flags:i.flags,translator:i.translator,selections:d,isLocked:s.getIsSelectionLocked,viewCache:a,viewState:o,layoutService:k,dockService:x,viewModel:b,colorService:v,selectionService:s,themeService:S,trendLineModel:g,discrete:u,continuousDataModel:m,reducedDataModel:p.model(),customTooltipModel:M,debouncer:YC,refLineModel:l,pluginService:y,styleService:q,disclaimerService:E,...e};return O7(k.getLayout(),N,i)}(m);h.extractDataPages(),n.layoutComponents({settings:u,data:y}),a.set("isPreRender",!1),h.insertDataPages(),l.animations.hasSlicedHats=u.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const p=[];return 1!==u.components.length&&s.meta.isDiscrete&&p.push(e.command.initialize()),Promise.all(p)}const[[M,k]=[]]=e.usePromise((()=>{var e,l;if(!(t&&n&&r&&i&&o&&a&&s))return Promise.resolve();const{layoutService:u,selectionService:c,refLineModel:d,discrete:f,continuous:h,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:w,customTooltipModel:S,disclaimerService:M}=r;if(null==c||null===(e=c.custom)||void 0===e||!e.getActions())return Promise.resolve();const{flags:k}=i;if(null!=k&&null!==(l=k.isEnabled)&&void 0!==l&&l.call(k,"IM_1579_HIDE_DIM_MEA")){const{properties:e}=s,t=null==e?void 0:e.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));t&&(S.useCustomTooltip=!1)}const C=()=>{x(Date.now()),w.animations.isPartialUpdating=!0};o.onChanged("scrollOffset",(()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),C()})),o.onChanged("legendScrollOffset",C),o.intercept("zoom",h.event.onZoomIntercept({viewCache:a})),o.onChanged("zoom",h.event.onZoomChange({layoutService:u,continuousDataModel:m},C)),c.setLayout(u.getLayout());const q=[];u.meta.isContinuous&&(m.update(u.getLayout()),q.push(m.initialFetch())),g.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),q.push(Promise.resolve({properties:s.properties}));return Promise.all(q).then((e=>Promise.all([b.initialize(),v.initialize(),_6({reducedDataModel:p,layoutService:u,continuousDataModel:m,trendLineModel:g})]).then((t=>[e,t.pop()]))))}),[s]);e.useEffect((()=>{var e;if(null==r||null===(e=r.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:n,reducedDataModel:o,continuousDataModel:s,trendLineModel:l,legendLayoutService:u,colorService:c,viewModel:d}=r;a.set("minorMinMax",k);const f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():o.model().cube,{field:m}=c.getMain().getSettings(),y=!t.meta.isContinuous&&(o.model().mode.isReduced||t.meta.isStacked)&&u,v=y?u.getHyperCube():void 0;n.setBrushAliases({colorField:m,useLegendCube:y,legendAlias:`legendCube/${m}`});const b=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:i,viewModel:o,trendLineModel:a}){const s=i.refs.dataPages.split(".").pop();let l=[],u=[];const c=i.meta.isContinuous?[{key:o.fields.majorNumeric,from:i.meta.isStackedByDimension?o.fields.majorStack:o.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}}),prepPicassoData(i){const o=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:c}},...i];return n&&o.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:c}}),a.query.hasTrendLines()&&o.push({key:"trend",data:a.query.getData()}),o},extractDataPages(){l=e[s],u=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=u}}}({mainCube:f,miniCube:h,legendCube:v,localeInfo:i.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),x=M[M.length-1];g({localeInfo:i.localeInfo,...x}),p(b)}),[k]),e.useEffect((()=>{if(!r||!m||!h)return;const e=r.colorService.getMain();if(!e)return;h.prepPicassoDataSet();const t=h.prepPicassoData(e.getData());v(t)}),[m]),e.useEffect((()=>{var e;null!=r&&null!==(e=r.colorService)&&void 0!==e&&e.getMain()&&n.update&&h&&y&&S().then((()=>{const{layoutService:e,discrete:t,legendLayoutService:i}=r;if(i){1===e.getLayoutValue("scrollStartPos")&&i.setDataPages([t.query.getCurrentDataPage()])}n.update(),wD.cacheProperties({viewCache:a,layout:e.getLayout()})}))}),[y]),e.useEffect((()=>{if(!(l&&u&&h&&null!=n&&n.update&&null!=r&&r.colorService.getMain()))return;const{viewModel:e}=r;e.animations.isSizeChanging=!0;const{dockService:t,themeService:o}=r;t.update({width:l,height:u}),o.setTheme(i.theme),S().then((()=>{n.update&&n.update()}))}),[l,u]),e.useEffect((()=>{if(null==n||!n.update)return;const{viewModel:e}=r;n.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}const _7=e=>"[object Object]"===Object.prototype.toString.call(e),L7=e=>Array.isArray(e);function I7(e,t){if(e===t)return!0;if(L7(e)){if(!L7(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!I7(e[n],t[n]))return!1;return!0}if(_7(e)){if(!_7(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!I7(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function R7({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=Dg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=Dg(!0,{},e),l=Dg(!0,{},t);return a.exclude=!I7(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!I7(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}const P7=({properties:e,layout:t,isStacked:n,isContinuous:r,model:i,layoutService:o})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=Dg(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,u,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=i.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var i;if("colorByExpression"===(null===(i=t.getLayout().qHyperCube.qMeasureInfo)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.qAttrExprInfo)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id))return;const{current:r,target:o}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:i}=n.reduce(((e,n,r)=>{var i;return"colorByExpression"===(null===(i=n.qAttributeExpressions[0])||void 0===i?void 0:i.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:i}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[o].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:o}),!MS.compare(c,e,!0)&&JSON.stringify(c)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};var z7={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=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,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=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,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.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 i={};(()=>{r.r(i),r.d(i,{default:()=>Oe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}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,i=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===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(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 p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],i),p(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),f=c(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const S={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=p(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({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=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.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,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,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 i=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}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=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(o,"(").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 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}function k(e){return k="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},k(e)}var C=t().bind(null,!0),q={},E=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function T(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(D(e)&&D(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(E(e)&&E(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}q.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?C({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||N(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(q.generate(a,o,s)):E(o)&&E(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(q.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},q.apply=function(e,t){t.forEach((function(t){var n,r,i=O(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(E(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(E(a)&&E(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(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 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}}(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(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),C(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=O(e,t.from);E(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(E(i)?i.splice(+o,1):delete i[o])}))},q.clone=function(e){return C({},e)},q.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},q.updateObject=function(e,t){Object.keys(e).length?q.apply(e,q.generate(e,t)):C(e,t)};const _=q,L=function(e,n,r){if(!e)return Promise.resolve();var i=_.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var I="accumulation";function R(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===I)return n[r]}function P(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===I)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getNumStepComp(n,l),f=S.getAboveComp(n,l,c,d),h=S.getRangeComp("RangeSum",f);if(S.needDimension({modifier:n,properties:r,layout:i})){var p=S.getDimComp(u,1),m=S.getDimComp(u,0),g=S.getAggrComp(h,p,m);h=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,z)},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(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(P(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(P(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(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=R(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=R(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(I))return!1;var o=R(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function B(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(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 V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const $={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=S.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),h=S.getNumStepComp(r,u),p=S.getAboveComp(r,u,f,h);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",p);else{var m=S.getRangeComp("RangeSum",p),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var y=t;if(S.needDimension({modifier:r,properties:i,layout:a})){var v=S.getDimComp(c,1),b=S.getDimComp(c,0),x=S.getAggrComp(y,v,b);y=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,V)},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(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=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=B(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?S.generateTSDExpression(n,t,r):t},extractInputExpression:S.extractInputExpression,initModifier:function(e,t){S.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=S.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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=o(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:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getAboveComp(n,l,c),f="".concat(c," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:i})){var h=S.getDimComp(u,1),p=S.getDimComp(u,0),m=S.getAggrComp(f,h,p);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},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!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(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=o(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 ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(c,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[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!S.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=ie(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 i=t.layout.qHyperCube.qDimensionInfo.length,o=[{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===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(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 S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",Se="qDef.qLabelExpression",Me="qDef.base.qLabel",ke="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",qe="qDef.base.qAggrFunc",Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,we)),n(e,ke,o(e,Se)))},restoreBase:function(e){Ee.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Me)),n(e,Se,o(e,ke)),o(e,Ce)&&o(e,qe)&&n(e,Ce,o(e,qe)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=Ee;function Te(e){return Te="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},Te(e)}var Ne={accumulation:F,movingAverage:$,difference:ee,normalization:ce,timeSeriesDecomposition:G};const Oe={modifiers:Ne,apply:_e,applyModifiers:Le,cleanUpMeasure:Ie,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:Re,getActiveModifier:Pe,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ae={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Te(r))return Le({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(c,"qHyperCube.qMeasureInfo"),h=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Re({measures:f,layout:c})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(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 Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:c,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Ze(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ne[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=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&$e(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Ze(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ie(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Ze(i);return et({model:n,libraryIds:f,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Re({measures:n,properties:r}))return n.forEach((function(e){return Ie(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,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:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,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=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(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:i,dimensionAndFieldList:e}),Ve(n)):Ie(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ie(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ne[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Re(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Pe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Pe(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Pe(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ne[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(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={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"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:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(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 s(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 s(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)?s(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 s(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 l(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 i=e.indexOf(t[r]);if(n>i)return!1;n=i}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 f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),S=n.n(w);function M(e,t){var n=S()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function k(e,t){return S()(!0,{},t,e)}function C(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var q=Math.pow(2,53)-1;function E(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 D(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 T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},O=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}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},I=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=k(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=k(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},R=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=C(a.max,i.dimensions.length,q),l=C(a.min,i.dimensions.length,0);return{maxDimensions:C(o.max,s,q),minDimensions:C(o.min,l,0),maxMeasures:s,minMeasures:l}},P=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=S()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".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)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=S()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return E(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 E(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)?E(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=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var 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)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function $(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=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,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:u}),y=o.getValue(r,u||"").qHyperCubeDef,v=o.getValue(g,u||"").qHyperCubeDef,b=R({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,S=b.maxMeasures,M=b.minMeasures,k=l.defaultDimension,C=void 0===k?A():k,q=l.defaultMeasure,E=void 0===q?_():q;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:C}),I({exportFormat:t,maxMeasures:S,minMeasures:M,newHyperCubeDef:v,defaultMeasure:E}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),P({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),O("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),O("qMode",y,v,"S"),O("qReductionMode",y,v,"N"),O("qSortbyYValue",y,v),O("qIndentMode",y,v),O("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var D=o.getValue(c||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&$(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&$(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[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,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))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 o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Q={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:Q,"sn-scatter-plot":Q,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=G.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,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(u){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.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 s}const oe={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 i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",u),G.moveByIdFromGroup(a,[],"qAttributeExpressions",u),G.moveByIdFromGroup(s,[],"qAttributeExpressions",c),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ue(d,f),y=ce({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),c}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?$(n,"unsupportedAutoMinMax")||S()(n.measureAxis,t.measureAxis):$(n,"supportedAutoMinMax")||S()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.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 l=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,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&S()(s,n.properties.measureAxes[t[0].axis])):S()(s,n.properties.measureAxes[0])}},we=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}}},Se={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Me(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var qe="qHyperCubeDef.qMeasures",Ee="conditionalColoring",De="measures",Te="qDef.conditionalColoring";const Ne={quarantine:function(e){ke({properties:e,arrayPath:qe,quarantineName:Ee,arrayName:De,itemPath:Te})},unquarantine:function(e){Ce({properties:e,arrayPath:qe,itemPath:Te,arrayName:De,quarantineName:Ee})}};var Oe="qHyperCubeDef.qMeasures",Ae="measures",_e="qHyperCubeDef.qDimensions",Le="dimensions",Ie="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Re="alternativeMeasures",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const Be={quarantine:function(e){ke({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},unquarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},quarantineAlternative:function(e){ke({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),ke({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:Se,quarantineProperty:x,unquarantineProperty:$,quarantineArrayProp:ke,unquarantineArrayProp:Ce,conditionalColoring:Ne,conditionalShow:Be}})(),r.default})()}(z7);var F7=mg(z7.exports);function j7(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,i=e.dimensionAxis.maxVisibleItems;i<1?e.dimensionAxis.maxVisibleItems=10:i>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(i,Math.floor(1e4/(r+n))))}}const B7=.7,H7=.9,V7=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],$7=(e,t)=>{var n,r,i;const o=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,s="grouped"===(null===(i=e.barGrouping)||void 0===i?void 0:i.grouping)&&a>0&&o+a>2;return Bg.continuous(t)?1:s?H7:B7},W7=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function U7(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,u={};l.forEach((function(e){for(var r=e.split("."),i=u,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=jM({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var c=function(e){for(var t=e.split("."),n=u,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(V7).map((e=>V7[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!Bg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:i,qHyperCubeDef:o}=r,a=o.qMeasures.length,s=o.qDimensions.length,l="grouped"===i.grouping&&s>0&&a+s>2;return Bg.continuous(r)?1:l?H7:B7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:W7("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:W7("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...W7("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:W7("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:W7("legend.label",r,e)}}}:void 0}}}function Y7(e=!1,t,n,r){return e?function(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(V7).map((e=>V7[e])),schemaIgnore:!0,defaultValue:V7[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!Bg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>$7(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(_G.OPTIONS).map((e=>_G.OPTIONS[e])),schemaIgnore:!0,defaultValue:_G.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}(n):U7(t,n,r)}const K7=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3},G7=(e,t)=>e.qHyperCube[t].filter((e=>K7(e))),X7=e=>({get:(t,n,r)=>Bg.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Wg(n.type,n);t(n.type,e,r)}}),J7=e=>{if(!e)return!1;const t=Dg(!0,{},e);return t.qHyperCube.qMeasureInfo=G7(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=G7(e,"qDimensionInfo"),t&&!Bg.continuous(t)&&Bg.stacked(t)},Q7=({translator:e,flags:t,anything:n})=>{var r,i,o;const a=null==n||null===(r=n.sense)||void 0===r||null===(i=r.isUnsupportedFeature)||void 0===i?void 0:i.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>G7(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!J7(t.layout)&&G7(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>J7(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,i){i.dataPoint.showSegmentLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>J7(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,i){i.dataPoint.showTotalLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>G7(n.layout,"qDimensionInfo").length&&G7(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>G7(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,i){i.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(o=n.sense)||void 0===o?void 0:o.theme,u={uses:"settings",items:{simpleStyling:Y7(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:Y7(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=G7(t.layout,"qMeasureInfo").length,r=G7(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){G7(t.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Bg.continuous(n.layout),convertFunctions:X7("stacked")},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>Bg.continuous(n.layout),convertFunctions:X7("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(_G.OPTIONS).map((e=>_G.OPTIONS[e])),defaultValue:_G.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!Bg.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(J7(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&J7(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&J7(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:PD}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!Bg.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=G7(n.layout,"qMeasureInfo").length,i=G7(n.layout,"qDimensionInfo").length,o=e.dimensionAxis.maxVisibleItems;return o<0||o>1e4/(i+r)},globalChange:j7,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(u.items.dimensionAxis.items.othersGroup={items:{label:{options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]}}}),u},Z7={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){ev(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:i}=e.qHyperCubeDef,{qCardinal:o}=t.layout.qHyperCube.qDimensionInfo[0],a=i.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&o>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},e9={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},t9=({translator:e,flags:t,anything:n})=>{var r,i;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var i,o;if(null!=n&&null!==(i=n.sense)&&void 0!==i&&null!==(o=i.isUnsupportedFeature)&&void 0!==o&&o.call(i,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const i=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>K7(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[i])===e})(e,t),s=Bg.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"trendlines")?void 0:K4({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function n9({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:t9({translator:e,flags:t,anything:n}),sorting:Z7,addons:e9,settings:Q7({translator:e,flags:t,anything:n})}}}const r9=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3};function i9(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,i=n.qHyperCube.qDimensionInfo.filter((e=>r9(e))).length;return 1===r&&2===i&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=t.qHyperCube.qMeasureInfo.filter((e=>r9(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>r9(e))).length;return n+r>2&&!Bg.continuous(t)&&!((null==(i=t)||null===(o=i.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.filter((e=>r9(e))).length)>1&&(null==i||null===(a=i.qHyperCube)||void 0===a?void 0:a.isHCEnabled));var i,o,a},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!Bg.continuous(t)}}},color:{uses:"color"}}}}function o9(e){const t={},n=HC(e,"components"),r=HC(e,"dimensionAxis.axisDisplayMode"),i=HC(e,"dimensionAxis.maxVisibleItems"),o=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=HC(e,"tooltip");if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=HC(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const a9=e=>!!(e&&e.qHyperCube.qSize.qcy>0),s9={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function l9(){const e=[];return Object.keys(s9).forEach((t=>{e.push(s9[t])})),e}function u9(e){const{flags:t}=e;return{definition:n9(e),softDefinition:i9(),support:{snapshot:a9,export:a9,exportData:!0,sharing:a9,viewData:!0,effects:!0,modifiers:l9()},importProperties:(n,r,i,o)=>{const a={layout:{templateId:r.templateId}};i.mapProperties(a);const s={defaultDimension:i.getDefaultDimensionProperties(),defaultMeasure:i.getDefaultMeasureProperties()},l=F7.axisChart.importProperties({exportFormat:n,initialProperties:r,dataDefinition:O3(e),defaultPropertyValues:s,hypercubePath:o,extension:i}),u=l.qProperty;return u.qHyperCubeDef.qDimensions.length>1&&"stacked"===u.barGrouping.grouping&&(u.qHyperCubeDef.qMode="K",u.qHyperCubeDef.qAlwaysFullyExpanded=!0),t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(F7.conditionalShow.unquarantine(u),F7.conditionalShow.unquarantineAlternative(u)),l},exportProperties:(e,n,r)=>{t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(F7.conditionalShow.quarantine(e.qProperty),F7.conditionalShow.quarantineAlternative(e.qProperty));return F7.axisChart.exportProperties({propertyTree:e,hyperCubePath:n,viewDataMode:r})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(ev),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(ev)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:i}=e;if(t||!1!==i)return;const{continuousAuto:o}=n;(o||!o&&r)&&(e.scrollbar=_G.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:o9}}return function(t){const n=Q5();return{qae:A3(t),ext:u9(t),component(){const r=L3({env:t}),{viewState:i,viewCache:o}=I3(),a=function({picasso:t}){const n=e.useElement(),r=e.useOptions(),[i,o]=e.useState();return e.useEffect((()=>{if(!t)return()=>{};n.style.overflow="hidden";const e=t({renderer:{prio:[(null==r?void 0:r.renderer)||"canvas"]}}).chart({element:n,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[r.renderer]),i}({picasso:n}),s=f6({picasso:n,chart:a,environment:r,viewState:i,viewCache:o}),l=function({env:t,services:n}){var r;const i=e.useApp(),o=e.useModel(),a=e.useRenderState(),s=R7({enable:!1===(null==n||null===(r=n.layoutService)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.isSnapshot)}),[l,u]=e.usePromise((async()=>{if(!t||!n)return Promise.resolve();const{flags:e}=t,{layoutService:r}=n,{isSnapshot:s,isStacked:l,isContinuous:u}=r.meta,c=[];return s||c.push(o.getEffectiveProperties()),Promise.all(c).then((async t=>{const n=t[0]||void 0;if(e.isEnabled("IM_1579_HIDE_DIM_MEA")&&null!=n&&n.qHyperCubeDef){const e=r.getLayout(),t=Dg(!0,{},n);if(P7({properties:n,layout:e,isStacked:l,isContinuous:u,model:o,layoutService:r}))return a.pending(),ID(e)?o.setProperties(n).then((()=>{i.clearUndoBuffer()})):void await LD(o,t,n);a.restore()}return{properties:n}}))}),[t,n,s]);if(u&&!u.isHandled)throw u;return l}({env:t,services:s});A7({picasso:n,chart:a,services:s,environment:r,viewState:i,viewCache:o,bootstrapped:l}),(({environment:t,services:n,chart:r,viewState:i,bootstrapped:o})=>{e.onTakeSnapshot((e=>{var a;if(!t||!n||!o)return;const{flags:s}=t,{layoutService:l,dockService:u,colorService:c,discrete:d,continuousDataModel:f,reducedDataModel:h}=n,{width:p,height:m}=u.meta.chart.size;if(e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:p,h:m}},l.meta.isSnapshot)return Promise.resolve();if(e.snapshotData.content.chartData={scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Hg(r,r6.COMPONENT.LEGEND_COLOR_CAT)},null!=s&&null!==(a=s.isEnabled)&&void 0!==a&&a.call(s,"IM_1579_HIDE_DIM_MEA")){const{properties:t}=o,n=null==t?void 0:t.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));n&&(e.tooltip.auto=!0)}return l.meta.isDiscrete?(d.command.setSnapshotData(e),h.setSnapshotData(e)):f.setSnapshotData(e),c.getMain().getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))})),e.useImperativeHandle((()=>({getViewState(){if(i&&r)return{scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Hg(r,r6.COMPONENT.LEGEND_COLOR_CAT)}}})),[i,r])})({environment:r,services:s,chart:a,viewState:i,bootstrapped:l})}}}}));
|