@nebula.js/sn-pie-chart 1.28.4 → 1.28.5
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 +2 -2
- package/dist/sn-pie-chart.js +3 -3
- package/dist/sn-pie-chart.systemjs.js +3 -83
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +3 -3
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
package/dist/sn-pie-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.28.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.28.5
|
|
3
3
|
* Copyright (c) 2025 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,c,u,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 $D(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 HD=new Set,VD={};function BD(e,t){WD(e,t),WD(e+"Capture",t)}function WD(e,t){for(VD[e]=t,e=0;e<t.length;e++)HD.add(t[e])}var UD=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),YD=Object.prototype.hasOwnProperty,KD=/^[: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]*$/,GD={},XD={};function JD(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 ZD={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ZD[e]=new JD(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ZD[t]=new JD(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ZD[e]=new JD(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ZD[e]=new JD(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){ZD[e]=new JD(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ZD[e]=new JD(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ZD[e]=new JD(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ZD[e]=new JD(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ZD[e]=new JD(e,5,!1,e.toLowerCase(),null,!1,!1)}));var QD=/[\-:]([a-z])/g;function eR(e){return e[1].toUpperCase()}function tR(e,t,n,r){var i=ZD.hasOwnProperty(t)?ZD[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!!YD.call(XD,e)||!YD.call(GD,e)&&(KD.test(e)?XD[e]=!0:(GD[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(QD,eR);ZD[t]=new JD(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(QD,eR);ZD[t]=new JD(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(QD,eR);ZD[t]=new JD(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ZD[e]=new JD(e,1,!1,e.toLowerCase(),null,!1,!1)})),ZD.xlinkHref=new JD("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ZD[e]=new JD(e,1,!1,e.toLowerCase(),null,!0,!0)}));var nR=FD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,rR=Symbol.for("react.element"),iR=Symbol.for("react.portal"),oR=Symbol.for("react.fragment"),aR=Symbol.for("react.strict_mode"),sR=Symbol.for("react.profiler"),lR=Symbol.for("react.provider"),cR=Symbol.for("react.context"),uR=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.suspense_list"),hR=Symbol.for("react.memo"),pR=Symbol.for("react.lazy"),mR=Symbol.for("react.offscreen"),gR=Symbol.iterator;function yR(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=gR&&e[gR]||e["@@iterator"])?e:null}var vR,bR=Object.assign;function xR(e){if(void 0===vR)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);vR=t&&t[1]||""}return"\n"+vR+e}var wR=!1;function kR(e,t){if(!e||wR)return"";wR=!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{wR=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xR(e):""}function SR(e){switch(e.tag){case 5:return xR(e.type);case 16:return xR("Lazy");case 13:return xR("Suspense");case 19:return xR("SuspenseList");case 0:case 2:case 15:return e=kR(e.type,!1);case 11:return e=kR(e.type.render,!1);case 1:return e=kR(e.type,!0);default:return""}}function CR(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 oR:return"Fragment";case iR:return"Portal";case sR:return"Profiler";case aR:return"StrictMode";case dR:return"Suspense";case fR:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case cR:return(e.displayName||"Context")+".Consumer";case lR:return(e._context.displayName||"Context")+".Provider";case uR:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case hR:return null!==(t=e.displayName||null)?t:CR(e.type)||"Memo";case pR:t=e._payload,e=e._init;try{return CR(e(t))}catch(e){}}return null}function ER(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 CR(t);case 8:return t===aR?"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 MR(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function _R(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qR(e){e._valueTracker||(e._valueTracker=function(e){var t=_R(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 DR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_R(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function RR(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 TR(e,t){var n=t.checked;return bR({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function OR(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=MR(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 PR(e,t){null!=(t=t.checked)&&tR(e,"checked",t,!1)}function NR(e,t){PR(e,t);var n=MR(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")?IR(e,t.type,n):t.hasOwnProperty("defaultValue")&&IR(e,t.type,MR(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function AR(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 IR(e,t,n){"number"===t&&RR(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var LR=Array.isArray;function zR(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=""+MR(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 FR(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error($D(91));return bR({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jR(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error($D(92));if(LR(n)){if(1<n.length)throw Error($D(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:MR(n)}}function $R(e,t){var n=MR(t.value),r=MR(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 HR(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function VR(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 BR(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?VR(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var WR,UR=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((WR=WR||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=WR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function YR(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 KR={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},GR=["Webkit","ms","Moz","O"];function XR(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||KR.hasOwnProperty(e)&&KR[e]?(""+t).trim():t+"px"}function JR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=XR(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(KR).forEach((function(e){GR.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),KR[t]=KR[e]}))}));var ZR=bR({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 QR(e,t){if(t){if(ZR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error($D(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error($D(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error($D(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error($D(62))}}function eT(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 tT=null;function nT(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var rT=null,iT=null,oT=null;function aT(e){if(e=QN(e)){if("function"!=typeof rT)throw Error($D(280));var t=e.stateNode;t&&(t=tA(t),rT(e.stateNode,e.type,t))}}function sT(e){iT?oT?oT.push(e):oT=[e]:iT=e}function lT(){if(iT){var e=iT,t=oT;if(oT=iT=null,aT(e),t)for(e=0;e<t.length;e++)aT(t[e])}}function cT(e,t){return e(t)}function uT(){}var dT=!1;function fT(e,t,n){if(dT)return e(t,n);dT=!0;try{return cT(e,t,n)}finally{dT=!1,(null!==iT||null!==oT)&&(uT(),lT())}}function hT(e,t){var n=e.stateNode;if(null===n)return null;var r=tA(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($D(231,t,typeof n));return n}var pT=!1;if(UD)try{var mT={};Object.defineProperty(mT,"passive",{get:function(){pT=!0}}),window.addEventListener("test",mT,mT),window.removeEventListener("test",mT,mT)}catch(Wh){pT=!1}function gT(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var yT=!1,vT=null,bT=!1,xT=null,wT={onError:function(e){yT=!0,vT=e}};function kT(e,t,n,r,i,o,a,s,l){yT=!1,vT=null,gT.apply(wT,arguments)}function ST(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function CT(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 ET(e){if(ST(e)!==e)throw Error($D(188))}function MT(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ST(e)))throw Error($D(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 ET(i),e;if(o===r)return ET(i),t;o=o.sibling}throw Error($D(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($D(189))}}if(n.alternate!==r)throw Error($D(190))}if(3!==n.tag)throw Error($D(188));return n.stateNode.current===n?e:t}(e),null!==e?_T(e):null}function _T(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=_T(e);if(null!==t)return t;e=e.sibling}return null}var qT=jD.unstable_scheduleCallback,DT=jD.unstable_cancelCallback,RT=jD.unstable_shouldYield,TT=jD.unstable_requestPaint,OT=jD.unstable_now,PT=jD.unstable_getCurrentPriorityLevel,NT=jD.unstable_ImmediatePriority,AT=jD.unstable_UserBlockingPriority,IT=jD.unstable_NormalPriority,LT=jD.unstable_LowPriority,zT=jD.unstable_IdlePriority,FT=null,jT=null;var $T=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(HT(e)/VT|0)|0},HT=Math.log,VT=Math.LN2;var BT=64,WT=4194304;function UT(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 YT(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=UT(s):0!==(o&=a)&&(r=UT(o))}else 0!==(a=n&~i)?r=UT(a):0!==o&&(r=UT(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-$T(t)),r|=e[n],t&=~i;return r}function KT(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 GT(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function XT(){var e=BT;return!(4194240&(BT<<=1))&&(BT=64),e}function JT(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ZT(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-$T(t)]=n}function QT(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$T(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var eO=0;function tO(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var nO,rO,iO,oO,aO,sO=!1,lO=[],cO=null,uO=null,dO=null,fO=new Map,hO=new Map,pO=[],mO="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 gO(e,t){switch(e){case"focusin":case"focusout":cO=null;break;case"dragenter":case"dragleave":uO=null;break;case"mouseover":case"mouseout":dO=null;break;case"pointerover":case"pointerout":fO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hO.delete(t.pointerId)}}function yO(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=QN(t))&&rO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vO(e){var t=ZN(e.target);if(null!==t){var n=ST(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=CT(n)))return e.blockedOn=t,void aO(e.priority,(function(){iO(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 bO(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=RO(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=QN(n))&&rO(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tT=r,n.target.dispatchEvent(r),tT=null,t.shift()}return!0}function xO(e,t,n){bO(e)&&n.delete(t)}function wO(){sO=!1,null!==cO&&bO(cO)&&(cO=null),null!==uO&&bO(uO)&&(uO=null),null!==dO&&bO(dO)&&(dO=null),fO.forEach(xO),hO.forEach(xO)}function kO(e,t){e.blockedOn===t&&(e.blockedOn=null,sO||(sO=!0,jD.unstable_scheduleCallback(jD.unstable_NormalPriority,wO)))}function SO(e){function t(t){return kO(t,e)}if(0<lO.length){kO(lO[0],e);for(var n=1;n<lO.length;n++){var r=lO[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==cO&&kO(cO,e),null!==uO&&kO(uO,e),null!==dO&&kO(dO,e),fO.forEach(t),hO.forEach(t),n=0;n<pO.length;n++)(r=pO[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pO.length&&null===(n=pO[0]).blockedOn;)vO(n),null===n.blockedOn&&pO.shift()}var CO=nR.ReactCurrentBatchConfig,EO=!0;function MO(e,t,n,r){var i=eO,o=CO.transition;CO.transition=null;try{eO=1,qO(e,t,n,r)}finally{eO=i,CO.transition=o}}function _O(e,t,n,r){var i=eO,o=CO.transition;CO.transition=null;try{eO=4,qO(e,t,n,r)}finally{eO=i,CO.transition=o}}function qO(e,t,n,r){if(EO){var i=RO(e,t,n,r);if(null===i)CN(e,t,r,DO,n),gO(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return cO=yO(cO,e,t,n,r,i),!0;case"dragenter":return uO=yO(uO,e,t,n,r,i),!0;case"mouseover":return dO=yO(dO,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return fO.set(o,yO(fO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,hO.set(o,yO(hO.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(gO(e,r),4&t&&-1<mO.indexOf(e)){for(;null!==i;){var o=QN(i);if(null!==o&&nO(o),null===(o=RO(e,t,n,r))&&CN(e,t,r,DO,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else CN(e,t,r,null,n)}}var DO=null;function RO(e,t,n,r){if(DO=null,null!==(e=ZN(e=nT(r))))if(null===(t=ST(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=CT(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 DO=e,null}function TO(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(PT()){case NT:return 1;case AT:return 4;case IT:case LT:return 16;case zT:return 536870912;default:return 16}default:return 16}}var OO=null,PO=null,NO=null;function AO(){if(NO)return NO;var e,t,n=PO,r=n.length,i="value"in OO?OO.value:OO.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 NO=i.slice(e,1<t?1-t:void 0)}function IO(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 LO(){return!0}function zO(){return!1}function FO(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)?LO:zO,this.isPropagationStopped=zO,this}return bR(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=LO)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=LO)},persist:function(){},isPersistent:LO}),t}var jO,$O,HO,VO={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},BO=FO(VO),WO=bR({},VO,{view:0,detail:0}),UO=FO(WO),YO=bR({},WO,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oP,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!==HO&&(HO&&"mousemove"===e.type?(jO=e.screenX-HO.screenX,$O=e.screenY-HO.screenY):$O=jO=0,HO=e),jO)},movementY:function(e){return"movementY"in e?e.movementY:$O}}),KO=FO(YO),GO=FO(bR({},YO,{dataTransfer:0})),XO=FO(bR({},WO,{relatedTarget:0})),JO=FO(bR({},VO,{animationName:0,elapsedTime:0,pseudoElement:0})),ZO=bR({},VO,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QO=FO(ZO),eP=FO(bR({},VO,{data:0})),tP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nP={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"},rP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=rP[e])&&!!t[e]}function oP(){return iP}var aP=bR({},WO,{key:function(e){if(e.key){var t=tP[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=IO(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?nP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oP,charCode:function(e){return"keypress"===e.type?IO(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?IO(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),sP=FO(aP),lP=FO(bR({},YO,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),cP=FO(bR({},WO,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oP})),uP=FO(bR({},VO,{propertyName:0,elapsedTime:0,pseudoElement:0})),dP=bR({},YO,{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}),fP=FO(dP),hP=[9,13,27,32],pP=UD&&"CompositionEvent"in window,mP=null;UD&&"documentMode"in document&&(mP=document.documentMode);var gP=UD&&"TextEvent"in window&&!mP,yP=UD&&(!pP||mP&&8<mP&&11>=mP),vP=String.fromCharCode(32),bP=!1;function xP(e,t){switch(e){case"keyup":return-1!==hP.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wP(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var kP=!1;var SP={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 CP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!SP[e.type]:"textarea"===t}function EP(e,t,n,r){sT(r),0<(t=MN(t,"onChange")).length&&(n=new BO("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var MP=null,_P=null;function qP(e){vN(e,0)}function DP(e){if(DR(eA(e)))return e}function RP(e,t){if("change"===e)return t}var TP=!1;if(UD){var OP;if(UD){var PP="oninput"in document;if(!PP){var NP=document.createElement("div");NP.setAttribute("oninput","return;"),PP="function"==typeof NP.oninput}OP=PP}else OP=!1;TP=OP&&(!document.documentMode||9<document.documentMode)}function AP(){MP&&(MP.detachEvent("onpropertychange",IP),_P=MP=null)}function IP(e){if("value"===e.propertyName&&DP(_P)){var t=[];EP(t,_P,e,nT(e)),fT(qP,t)}}function LP(e,t,n){"focusin"===e?(AP(),_P=n,(MP=t).attachEvent("onpropertychange",IP)):"focusout"===e&&AP()}function zP(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return DP(_P)}function FP(e,t){if("click"===e)return DP(t)}function jP(e,t){if("input"===e||"change"===e)return DP(t)}var $P="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function HP(e,t){if($P(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(!YD.call(t,i)||!$P(e[i],t[i]))return!1}return!0}function VP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function BP(e,t){var n,r=VP(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=VP(r)}}function WP(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?WP(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function UP(){for(var e=window,t=RR();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=RR((e=t.contentWindow).document)}return t}function YP(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 KP(e){var t=UP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WP(n.ownerDocument.documentElement,n)){if(null!==r&&YP(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=BP(n,o);var a=BP(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 GP=UD&&"documentMode"in document&&11>=document.documentMode,XP=null,JP=null,ZP=null,QP=!1;function eN(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;QP||null==XP||XP!==RR(r)||("selectionStart"in(r=XP)&&YP(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},ZP&&HP(ZP,r)||(ZP=r,0<(r=MN(JP,"onSelect")).length&&(t=new BO("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=XP)))}function tN(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nN={animationend:tN("Animation","AnimationEnd"),animationiteration:tN("Animation","AnimationIteration"),animationstart:tN("Animation","AnimationStart"),transitionend:tN("Transition","TransitionEnd")},rN={},iN={};function oN(e){if(rN[e])return rN[e];if(!nN[e])return e;var t,n=nN[e];for(t in n)if(n.hasOwnProperty(t)&&t in iN)return rN[e]=n[t];return e}UD&&(iN=document.createElement("div").style,"AnimationEvent"in window||(delete nN.animationend.animation,delete nN.animationiteration.animation,delete nN.animationstart.animation),"TransitionEvent"in window||delete nN.transitionend.transition);var aN=oN("animationend"),sN=oN("animationiteration"),lN=oN("animationstart"),cN=oN("transitionend"),uN=new Map,dN="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 fN(e,t){uN.set(e,t),BD(t,[e])}for(var hN=0;hN<dN.length;hN++){var pN=dN[hN];fN(pN.toLowerCase(),"on"+(pN[0].toUpperCase()+pN.slice(1)))}fN(aN,"onAnimationEnd"),fN(sN,"onAnimationIteration"),fN(lN,"onAnimationStart"),fN("dblclick","onDoubleClick"),fN("focusin","onFocus"),fN("focusout","onBlur"),fN(cN,"onTransitionEnd"),WD("onMouseEnter",["mouseout","mouseover"]),WD("onMouseLeave",["mouseout","mouseover"]),WD("onPointerEnter",["pointerout","pointerover"]),WD("onPointerLeave",["pointerout","pointerover"]),BD("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),BD("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),BD("onBeforeInput",["compositionend","keypress","textInput","paste"]),BD("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),BD("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),BD("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mN="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(" "),gN=new Set("cancel close invalid load scroll toggle".split(" ").concat(mN));function yN(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(kT.apply(this,arguments),yT){if(!yT)throw Error($D(198));var c=vT;yT=!1,vT=null,bT||(bT=!0,xT=c)}}(r,t,void 0,e),e.currentTarget=null}function vN(e,t){t=!!(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,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;yN(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;yN(i,s,c),o=l}}}if(bT)throw e=xT,bT=!1,xT=null,e}function bN(e,t){var n=t[GN];void 0===n&&(n=t[GN]=new Set);var r=e+"__bubble";n.has(r)||(SN(t,e,2,!1),n.add(r))}function xN(e,t,n){var r=0;t&&(r|=4),SN(n,e,r,t)}var wN="_reactListening"+Math.random().toString(36).slice(2);function kN(e){if(!e[wN]){e[wN]=!0,HD.forEach((function(t){"selectionchange"!==t&&(gN.has(t)||xN(t,!1,e),xN(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[wN]||(t[wN]=!0,xN("selectionchange",!1,t))}}function SN(e,t,n,r){switch(TO(t)){case 1:var i=MO;break;case 4:i=_O;break;default:i=qO}n=i.bind(null,t,n,e),i=void 0,!pT||"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 CN(e,t,n,r,i){var o=r;if(!(1&t||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=ZN(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}fT((function(){var r=o,i=nT(n),a=[];e:{var s=uN.get(e);if(void 0!==s){var l=BO,c=e;switch(e){case"keypress":if(0===IO(n))break e;case"keydown":case"keyup":l=sP;break;case"focusin":c="focus",l=XO;break;case"focusout":c="blur",l=XO;break;case"beforeblur":case"afterblur":l=XO;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=KO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=GO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=cP;break;case aN:case sN:case lN:l=JO;break;case cN:l=uP;break;case"scroll":l=UO;break;case"wheel":l=fP;break;case"copy":case"cut":case"paste":l=QO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=lP}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=hT(p,f))&&u.push(EN(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===tT||!(c=n.relatedTarget||n.fromElement)||!ZN(c)&&!c[KN])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ZN(c):null)&&(c!==(d=ST(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=KO,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=lP,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:eA(l),h=null==c?s:eA(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,ZN(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=_N(h))p++;for(h=0,m=f;m;m=_N(m))h++;for(;0<p-h;)u=_N(u),p--;for(;0<h-p;)f=_N(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=_N(u),f=_N(f)}u=null}else u=null;null!==l&&qN(a,s,l,u,!1),null!==c&&null!==d&&qN(a,d,c,u,!0)}if("select"===(l=(s=r?eA(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=RP;else if(CP(s))if(TP)g=jP;else{g=zP;var y=LP}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=FP);switch(g&&(g=g(e,r))?EP(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&IR(s,"number",s.value)),y=r?eA(r):window,e){case"focusin":(CP(y)||"true"===y.contentEditable)&&(XP=y,JP=r,ZP=null);break;case"focusout":ZP=JP=XP=null;break;case"mousedown":QP=!0;break;case"contextmenu":case"mouseup":case"dragend":QP=!1,eN(a,n,i);break;case"selectionchange":if(GP)break;case"keydown":case"keyup":eN(a,n,i)}var v;if(pP)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 kP?xP(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(yP&&"ko"!==n.locale&&(kP||"onCompositionStart"!==b?"onCompositionEnd"===b&&kP&&(v=AO()):(PO="value"in(OO=i)?OO.value:OO.textContent,kP=!0)),0<(y=MN(r,b)).length&&(b=new eP(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=wP(n))&&(b.data=v))),(v=gP?function(e,t){switch(e){case"compositionend":return wP(t);case"keypress":return 32!==t.which?null:(bP=!0,vP);case"textInput":return(e=t.data)===vP&&bP?null:e;default:return null}}(e,n):function(e,t){if(kP)return"compositionend"===e||!pP&&xP(e,t)?(e=AO(),NO=PO=OO=null,kP=!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 yP&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=MN(r,"onBeforeInput")).length&&(i=new eP("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}vN(a,t)}))}function EN(e,t,n){return{instance:e,listener:t,currentTarget:n}}function MN(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=hT(e,n))&&r.unshift(EN(e,o,i)),null!=(o=hT(e,t))&&r.push(EN(e,o,i))),e=e.return}return r}function _N(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qN(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=hT(n,o))&&a.unshift(EN(n,l,s)):i||null!=(l=hT(n,o))&&a.push(EN(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var DN=/\r\n?/g,RN=/\u0000|\uFFFD/g;function TN(e){return("string"==typeof e?e:""+e).replace(DN,"\n").replace(RN,"")}function ON(e,t,n){if(t=TN(t),TN(e)!==t&&n)throw Error($D(425))}function PN(){}var NN=null,AN=null;function IN(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 LN="function"==typeof setTimeout?setTimeout:void 0,zN="function"==typeof clearTimeout?clearTimeout:void 0,FN="function"==typeof Promise?Promise:void 0,jN="function"==typeof queueMicrotask?queueMicrotask:void 0!==FN?function(e){return FN.resolve(null).then(e).catch($N)}:LN;function $N(e){setTimeout((function(){throw e}))}function HN(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 SO(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);SO(t)}function VN(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 BN(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 WN=Math.random().toString(36).slice(2),UN="__reactFiber$"+WN,YN="__reactProps$"+WN,KN="__reactContainer$"+WN,GN="__reactEvents$"+WN,XN="__reactListeners$"+WN,JN="__reactHandles$"+WN;function ZN(e){var t=e[UN];if(t)return t;for(var n=e.parentNode;n;){if(t=n[KN]||n[UN]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=BN(e);null!==e;){if(n=e[UN])return n;e=BN(e)}return t}n=(e=n).parentNode}return null}function QN(e){return!(e=e[UN]||e[KN])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function eA(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error($D(33))}function tA(e){return e[YN]||null}var nA=[],rA=-1;function iA(e){return{current:e}}function oA(e){0>rA||(e.current=nA[rA],nA[rA]=null,rA--)}function aA(e,t){rA++,nA[rA]=e.current,e.current=t}var sA={},lA=iA(sA),cA=iA(!1),uA=sA;function dA(e,t){var n=e.type.contextTypes;if(!n)return sA;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 fA(e){return null!=(e=e.childContextTypes)}function hA(){oA(cA),oA(lA)}function pA(e,t,n){if(lA.current!==sA)throw Error($D(168));aA(lA,t),aA(cA,n)}function mA(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($D(108,ER(e)||"Unknown",i));return bR({},n,r)}function gA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sA,uA=lA.current,aA(lA,e),aA(cA,cA.current),!0}function yA(e,t,n){var r=e.stateNode;if(!r)throw Error($D(169));n?(e=mA(e,t,uA),r.__reactInternalMemoizedMergedChildContext=e,oA(cA),oA(lA),aA(lA,e)):oA(cA),aA(cA,n)}var vA=null,bA=!1,xA=!1;function wA(e){null===vA?vA=[e]:vA.push(e)}function kA(){if(!xA&&null!==vA){xA=!0;var e=0,t=eO;try{var n=vA;for(eO=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}vA=null,bA=!1}catch(t){throw null!==vA&&(vA=vA.slice(e+1)),qT(NT,kA),t}finally{eO=t,xA=!1}}return null}var SA=[],CA=0,EA=null,MA=0,_A=[],qA=0,DA=null,RA=1,TA="";function OA(e,t){SA[CA++]=MA,SA[CA++]=EA,EA=e,MA=t}function PA(e,t,n){_A[qA++]=RA,_A[qA++]=TA,_A[qA++]=DA,DA=e;var r=RA;e=TA;var i=32-$T(r)-1;r&=~(1<<i),n+=1;var o=32-$T(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,RA=1<<32-$T(t)+i|n<<i|r,TA=o+e}else RA=1<<o|n<<i|r,TA=e}function NA(e){null!==e.return&&(OA(e,1),PA(e,1,0))}function AA(e){for(;e===EA;)EA=SA[--CA],SA[CA]=null,MA=SA[--CA],SA[CA]=null;for(;e===DA;)DA=_A[--qA],_A[qA]=null,TA=_A[--qA],_A[qA]=null,RA=_A[--qA],_A[qA]=null}var IA=null,LA=null,zA=!1,FA=null;function jA(e,t){var n=uj(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 $A(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,IA=e,LA=VN(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,IA=e,LA=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==DA?{id:RA,overflow:TA}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=uj(18,null,null,0)).stateNode=t,n.return=e,e.child=n,IA=e,LA=null,!0);default:return!1}}function HA(e){return!(!(1&e.mode)||128&e.flags)}function VA(e){if(zA){var t=LA;if(t){var n=t;if(!$A(e,t)){if(HA(e))throw Error($D(418));t=VN(n.nextSibling);var r=IA;t&&$A(e,t)?jA(r,n):(e.flags=-4097&e.flags|2,zA=!1,IA=e)}}else{if(HA(e))throw Error($D(418));e.flags=-4097&e.flags|2,zA=!1,IA=e}}}function BA(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;IA=e}function WA(e){if(e!==IA)return!1;if(!zA)return BA(e),zA=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!IN(e.type,e.memoizedProps)),t&&(t=LA)){if(HA(e))throw UA(),Error($D(418));for(;t;)jA(e,t),t=VN(t.nextSibling)}if(BA(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error($D(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){LA=VN(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}LA=null}}else LA=IA?VN(e.stateNode.nextSibling):null;return!0}function UA(){for(var e=LA;e;)e=VN(e.nextSibling)}function YA(){LA=IA=null,zA=!1}function KA(e){null===FA?FA=[e]:FA.push(e)}var GA=nR.ReactCurrentBatchConfig;function XA(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($D(309));var r=n.stateNode}if(!r)throw Error($D(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;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error($D(284));if(!n._owner)throw Error($D(290,e))}return e}function JA(e,t){throw e=Object.prototype.toString.call(t),Error($D(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ZA(e){return(0,e._init)(e._payload)}function QA(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=fj(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=gj(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===oR?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===pR&&ZA(o)===t.type)?((r=i(t,n.props)).ref=XA(e,t,n),r.return=e,r):((r=hj(n.type,n.key,n.props,null,e.mode,r)).ref=XA(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=yj(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=pj(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=gj(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case rR:return(n=hj(t.type,t.key,t.props,null,e.mode,n)).ref=XA(e,null,t),n.return=e,n;case iR:return(t=yj(t,e.mode,n)).return=e,t;case pR:return d(e,(0,t._init)(t._payload),n)}if(LR(t)||yR(t))return(t=pj(t,e.mode,n,null)).return=e,t;JA(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 rR:return n.key===i?l(e,t,n,r):null;case iR:return n.key===i?c(e,t,n,r):null;case pR:return f(e,t,(i=n._init)(n._payload),r)}if(LR(n)||yR(n))return null!==i?null:u(e,t,n,r,null);JA(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 rR:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case iR:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case pR:return h(e,t,n,(0,r._init)(r._payload),i)}if(LR(r)||yR(r))return u(t,e=e.get(n)||null,r,i,null);JA(t,r)}return null}function p(i,a,s,l){for(var c=null,u=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===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),zA&&OA(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return zA&&OA(i,m),c}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===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),zA&&OA(i,m),c}function m(i,a,s,l){var c=yR(s);if("function"!=typeof c)throw Error($D(150));if(null==(s=c.call(s)))throw Error($D(151));for(var u=c=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===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),zA&&OA(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return zA&&OA(i,m),c}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===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),zA&&OA(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===oR&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case rR:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===oR){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===pR&&ZA(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=XA(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===oR?((o=pj(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=hj(s.type,s.key,s.props,null,r.mode,l)).ref=XA(r,o,s),l.return=r,r=l)}return a(r);case iR:e:{for(u=s.key;null!==o;){if(o.key===u){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=yj(s,r.mode,l)).return=r,r=o}return a(r);case pR:return e(r,o,(u=s._init)(s._payload),l)}if(LR(s))return p(r,o,s,l);if(yR(s))return m(r,o,s,l);JA(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=gj(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var eI=QA(!0),tI=QA(!1),nI=iA(null),rI=null,iI=null,oI=null;function aI(){oI=iI=rI=null}function sI(e){var t=nI.current;oA(nI),e._currentValue=t}function lI(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 cI(e,t){rI=e,oI=iI=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ZL=!0),e.firstContext=null)}function uI(e){var t=e._currentValue;if(oI!==e)if(e={context:e,memoizedValue:t,next:null},null===iI){if(null===rI)throw Error($D(308));iI=e,rI.dependencies={lanes:0,firstContext:e}}else iI=iI.next=e;return t}var dI=null;function fI(e){null===dI?dI=[e]:dI.push(e)}function hI(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,fI(t)):(n.next=i.next,i.next=n),t.interleaved=n,pI(e,r)}function pI(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 mI=!1;function gI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yI(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 vI(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bI(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&sF){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pI(e,n)}return null===(i=r.interleaved)?(t.next=t,fI(r)):(t.next=i.next,i.next=t),r.interleaved=t,pI(e,n)}function xI(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,QT(e,n)}}function wI(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 kI(e,t,n,r){var i=e.updateQueue;mI=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.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=bR({},d,f);break e;case 2:mI=!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===u?(c=u=h,l=d):u=u.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===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);mF|=a,e.lanes=a,e.memoizedState=d}}function SI(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($D(191,i));i.call(r)}}}var CI={},EI=iA(CI),MI=iA(CI),_I=iA(CI);function qI(e){if(e===CI)throw Error($D(174));return e}function DI(e,t){switch(aA(_I,t),aA(MI,e),aA(EI,CI),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:BR(null,"");break;default:t=BR(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oA(EI),aA(EI,t)}function RI(){oA(EI),oA(MI),oA(_I)}function TI(e){qI(_I.current);var t=qI(EI.current),n=BR(t,e.type);t!==n&&(aA(MI,e),aA(EI,n))}function OI(e){MI.current===e&&(oA(EI),oA(MI))}var PI=iA(0);function NI(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var AI=[];function II(){for(var e=0;e<AI.length;e++)AI[e]._workInProgressVersionPrimary=null;AI.length=0}var LI=nR.ReactCurrentDispatcher,zI=nR.ReactCurrentBatchConfig,FI=0,jI=null,$I=null,HI=null,VI=!1,BI=!1,WI=0,UI=0;function YI(){throw Error($D(321))}function KI(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$P(e[n],t[n]))return!1;return!0}function GI(e,t,n,r,i,o){if(FI=o,jI=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,LI.current=null===e||null===e.memoizedState?OL:PL,e=n(r,i),BI){o=0;do{if(BI=!1,WI=0,25<=o)throw Error($D(301));o+=1,HI=$I=null,t.updateQueue=null,LI.current=NL,e=n(r,i)}while(BI)}if(LI.current=TL,t=null!==$I&&null!==$I.next,FI=0,HI=$I=jI=null,VI=!1,t)throw Error($D(300));return e}function XI(){var e=0!==WI;return WI=0,e}function JI(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===HI?jI.memoizedState=HI=e:HI=HI.next=e,HI}function ZI(){if(null===$I){var e=jI.alternate;e=null!==e?e.memoizedState:null}else e=$I.next;var t=null===HI?jI.memoizedState:HI.next;if(null!==t)HI=t,$I=e;else{if(null===e)throw Error($D(310));e={memoizedState:($I=e).memoizedState,baseState:$I.baseState,baseQueue:$I.baseQueue,queue:$I.queue,next:null},null===HI?jI.memoizedState=HI=e:HI=HI.next=e}return HI}function QI(e,t){return"function"==typeof t?t(e):t}function eL(e){var t=ZI(),n=t.queue;if(null===n)throw Error($D(311));n.lastRenderedReducer=e;var r=$I,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,c=o;do{var u=c.lane;if((FI&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,jI.lanes|=u,mF|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,$P(r,t.memoizedState)||(ZL=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,jI.lanes|=o,mF|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tL(e){var t=ZI(),n=t.queue;if(null===n)throw Error($D(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);$P(o,t.memoizedState)||(ZL=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function nL(){}function rL(e,t){var n=jI,r=ZI(),i=t(),o=!$P(r.memoizedState,i);if(o&&(r.memoizedState=i,ZL=!0),r=r.queue,mL(aL.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==HI&&1&HI.memoizedState.tag){if(n.flags|=2048,uL(9,oL.bind(null,n,r,i,t),void 0,null),null===lF)throw Error($D(349));30&FI||iL(n,t,i)}return i}function iL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=jI.updateQueue)?(t={lastEffect:null,stores:null},jI.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function oL(e,t,n,r){t.value=n,t.getSnapshot=r,sL(t)&&lL(e)}function aL(e,t,n){return n((function(){sL(t)&&lL(e)}))}function sL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$P(e,n)}catch(e){return!0}}function lL(e){var t=pI(e,1);null!==t&&AF(t,e,1,-1)}function cL(e){var t=JI();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:QI,lastRenderedState:e},t.queue=e,e=e.dispatch=_L.bind(null,jI,e),[t.memoizedState,e]}function uL(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=jI.updateQueue)?(t={lastEffect:null,stores:null},jI.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 dL(){return ZI().memoizedState}function fL(e,t,n,r){var i=JI();jI.flags|=e,i.memoizedState=uL(1|t,n,void 0,void 0===r?null:r)}function hL(e,t,n,r){var i=ZI();r=void 0===r?null:r;var o=void 0;if(null!==$I){var a=$I.memoizedState;if(o=a.destroy,null!==r&&KI(r,a.deps))return void(i.memoizedState=uL(t,n,o,r))}jI.flags|=e,i.memoizedState=uL(1|t,n,o,r)}function pL(e,t){return fL(8390656,8,e,t)}function mL(e,t){return hL(2048,8,e,t)}function gL(e,t){return hL(4,2,e,t)}function yL(e,t){return hL(4,4,e,t)}function vL(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 bL(e,t,n){return n=null!=n?n.concat([e]):null,hL(4,4,vL.bind(null,t,e),n)}function xL(){}function wL(e,t){var n=ZI();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&KI(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kL(e,t){var n=ZI();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&KI(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function SL(e,t,n){return 21&FI?($P(n,t)||(n=XT(),jI.lanes|=n,mF|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ZL=!0),e.memoizedState=n)}function CL(e,t){var n=eO;eO=0!==n&&4>n?n:4,e(!0);var r=zI.transition;zI.transition={};try{e(!1),t()}finally{eO=n,zI.transition=r}}function EL(){return ZI().memoizedState}function ML(e,t,n){var r=NF(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qL(e))DL(t,n);else if(null!==(n=hI(e,t,n,r))){AF(n,e,r,PF()),RL(n,t,r)}}function _L(e,t,n){var r=NF(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qL(e))DL(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,$P(s,a)){var l=t.interleaved;return null===l?(i.next=i,fI(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=hI(e,t,i,r))&&(AF(n,e,r,i=PF()),RL(n,t,r))}}function qL(e){var t=e.alternate;return e===jI||null!==t&&t===jI}function DL(e,t){BI=VI=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RL(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,QT(e,n)}}var TL={readContext:uI,useCallback:YI,useContext:YI,useEffect:YI,useImperativeHandle:YI,useInsertionEffect:YI,useLayoutEffect:YI,useMemo:YI,useReducer:YI,useRef:YI,useState:YI,useDebugValue:YI,useDeferredValue:YI,useTransition:YI,useMutableSource:YI,useSyncExternalStore:YI,useId:YI,unstable_isNewReconciler:!1},OL={readContext:uI,useCallback:function(e,t){return JI().memoizedState=[e,void 0===t?null:t],e},useContext:uI,useEffect:pL,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,fL(4194308,4,vL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fL(4194308,4,e,t)},useInsertionEffect:function(e,t){return fL(4,2,e,t)},useMemo:function(e,t){var n=JI();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=JI();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=ML.bind(null,jI,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},JI().memoizedState=e},useState:cL,useDebugValue:xL,useDeferredValue:function(e){return JI().memoizedState=e},useTransition:function(){var e=cL(!1),t=e[0];return e=CL.bind(null,e[1]),JI().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jI,i=JI();if(zA){if(void 0===n)throw Error($D(407));n=n()}else{if(n=t(),null===lF)throw Error($D(349));30&FI||iL(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,pL(aL.bind(null,r,o,e),[e]),r.flags|=2048,uL(9,oL.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=JI(),t=lF.identifierPrefix;if(zA){var n=TA;t=":"+t+"R"+(n=(RA&~(1<<32-$T(RA)-1)).toString(32)+n),0<(n=WI++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=UI++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},PL={readContext:uI,useCallback:wL,useContext:uI,useEffect:mL,useImperativeHandle:bL,useInsertionEffect:gL,useLayoutEffect:yL,useMemo:kL,useReducer:eL,useRef:dL,useState:function(){return eL(QI)},useDebugValue:xL,useDeferredValue:function(e){return SL(ZI(),$I.memoizedState,e)},useTransition:function(){return[eL(QI)[0],ZI().memoizedState]},useMutableSource:nL,useSyncExternalStore:rL,useId:EL,unstable_isNewReconciler:!1},NL={readContext:uI,useCallback:wL,useContext:uI,useEffect:mL,useImperativeHandle:bL,useInsertionEffect:gL,useLayoutEffect:yL,useMemo:kL,useReducer:tL,useRef:dL,useState:function(){return tL(QI)},useDebugValue:xL,useDeferredValue:function(e){var t=ZI();return null===$I?t.memoizedState=e:SL(t,$I.memoizedState,e)},useTransition:function(){return[tL(QI)[0],ZI().memoizedState]},useMutableSource:nL,useSyncExternalStore:rL,useId:EL,unstable_isNewReconciler:!1};function AL(e,t){if(e&&e.defaultProps){for(var n in t=bR({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function IL(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:bR({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var LL={isMounted:function(e){return!!(e=e._reactInternals)&&ST(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=PF(),i=NF(e),o=vI(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=bI(e,o,i))&&(AF(t,e,i,r),xI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=PF(),i=NF(e),o=vI(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=bI(e,o,i))&&(AF(t,e,i,r),xI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=PF(),r=NF(e),i=vI(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=bI(e,i,r))&&(AF(t,e,r,n),xI(t,e,r))}};function zL(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!HP(n,r)||!HP(i,o))}function FL(e,t,n){var r=!1,i=sA,o=t.contextType;return"object"==typeof o&&null!==o?o=uI(o):(i=fA(t)?uA:lA.current,o=(r=null!=(r=t.contextTypes))?dA(e,i):sA),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=LL,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function jL(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&&LL.enqueueReplaceState(t,t.state,null)}function $L(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},gI(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=uI(o):(o=fA(t)?uA:lA.current,i.context=dA(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(IL(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&&LL.enqueueReplaceState(i,i.state,null),kI(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function HL(e,t){try{var n="",r=t;do{n+=SR(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 VL(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function BL(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var WL="function"==typeof WeakMap?WeakMap:Map;function UL(e,t,n){(n=vI(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){SF||(SF=!0,CF=r),BL(0,t)},n}function YL(e,t,n){(n=vI(-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(){BL(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){BL(0,t),"function"!=typeof r&&(null===EF?EF=new Set([this]):EF.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function KL(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new WL;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=ij.bind(null,e,t,n),t.then(e,e))}function GL(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 XL(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=vI(-1,1)).tag=2,bI(n,t,1))),n.lanes|=1),e)}var JL=nR.ReactCurrentOwner,ZL=!1;function QL(e,t,n,r){t.child=null===e?tI(t,null,n,r):eI(t,e.child,n,r)}function ez(e,t,n,r,i){n=n.render;var o=t.ref;return cI(t,i),r=GI(e,t,n,r,o,i),n=XI(),null===e||ZL?(zA&&n&&NA(t),t.flags|=1,QL(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sz(e,t,i))}function tz(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||dj(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=hj(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,nz(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:HP)(a,r)&&e.ref===t.ref)return Sz(e,t,i)}return t.flags|=1,(e=fj(o,r)).ref=t.ref,e.return=t,t.child=e}function nz(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(HP(o,r)&&e.ref===t.ref){if(ZL=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,Sz(e,t,i);131072&e.flags&&(ZL=!0)}}return oz(e,t,n,r,i)}function rz(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(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,aA(fF,dF),dF|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,aA(fF,dF),dF|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},aA(fF,dF),dF|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,aA(fF,dF),dF|=r;return QL(e,t,i,n),t.child}function iz(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oz(e,t,n,r,i){var o=fA(n)?uA:lA.current;return o=dA(t,o),cI(t,i),n=GI(e,t,n,r,o,i),r=XI(),null===e||ZL?(zA&&r&&NA(t),t.flags|=1,QL(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sz(e,t,i))}function az(e,t,n,r,i){if(fA(n)){var o=!0;gA(t)}else o=!1;if(cI(t,i),null===t.stateNode)kz(e,t),FL(t,n,r),$L(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=uI(c):c=dA(t,c=fA(n)?uA:lA.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&jL(t,a,r,c),mI=!1;var f=t.memoizedState;a.state=f,kI(t,r,a,i),l=t.memoizedState,s!==r||f!==l||cA.current||mI?("function"==typeof u&&(IL(t,n,u,r),l=t.memoizedState),(s=mI||zL(t,n,s,r,f,l,c))?(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=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yI(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:AL(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=uI(l):l=dA(t,l=fA(n)?uA:lA.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&jL(t,a,r,l),mI=!1,f=t.memoizedState,a.state=f,kI(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||cA.current||mI?("function"==typeof h&&(IL(t,n,h,r),p=t.memoizedState),(c=mI||zL(t,n,c,r,f,p,l)||!1)?(u||"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=c):("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 sz(e,t,n,r,o,i)}function sz(e,t,n,r,i,o){iz(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&yA(t,n,!1),Sz(e,t,o);r=t.stateNode,JL.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=eI(t,e.child,null,o),t.child=eI(t,null,s,o)):QL(e,t,s,o),t.memoizedState=r.state,i&&yA(t,n,!0),t.child}function lz(e){var t=e.stateNode;t.pendingContext?pA(0,t.pendingContext,t.pendingContext!==t.context):t.context&&pA(0,t.context,!1),DI(e,t.containerInfo)}function cz(e,t,n,r,i){return YA(),KA(i),t.flags|=256,QL(e,t,n,r),t.child}var uz,dz,fz,hz,pz={dehydrated:null,treeContext:null,retryLane:0};function mz(e){return{baseLanes:e,cachePool:null,transitions:null}}function gz(e,t,n){var r,i=t.pendingProps,o=PI.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),aA(PI,1&o),null===e)return VA(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=mj(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=pj(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=mz(n),t.memoizedState=pz,e):yz(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,vz(e,t,a,r=VL(Error($D(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=mj({mode:"visible",children:r.children},i,0,null),(o=pj(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&eI(t,e.child,null,a),t.child.memoizedState=mz(a),t.memoizedState=pz,o);if(!(1&t.mode))return vz(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,vz(e,t,a,r=VL(o=Error($D(419)),r,void 0))}if(s=!!(a&e.childLanes),ZL||s){if(null!==(r=lF)){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=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,pI(e,i),AF(r,e,i,-1))}return KF(),vz(e,t,a,r=VL(Error($D(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=aj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,LA=VN(i.nextSibling),IA=t,zA=!0,FA=null,null!==e&&(_A[qA++]=RA,_A[qA++]=TA,_A[qA++]=DA,RA=e.id,TA=e.overflow,DA=t),t=yz(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 1&s||t.child===o?(i=fj(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=fj(r,a):(a=pj(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)?mz(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=pz,i}return e=(a=e.child).sibling,i=fj(a,{mode:"visible",children:i.children}),!(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 yz(e,t){return(t=mj({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function vz(e,t,n,r){return null!==r&&KA(r),eI(t,e.child,null,n),(e=yz(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function bz(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),lI(e.return,t,n)}function xz(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 wz(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(QL(e,t,r.children,n),2&(r=PI.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&bz(e,n,t);else if(19===e.tag)bz(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(aA(PI,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===NI(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xz(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===NI(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xz(t,!0,n,null,o);break;case"together":xz(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function kz(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sz(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mF|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error($D(153));if(null!==t.child){for(n=fj(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=fj(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Cz(e,t){if(!zA)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 Ez(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 Mz(e,t,n){var r=t.pendingProps;switch(AA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ez(t),null;case 1:case 17:return fA(t.type)&&hA(),Ez(t),null;case 3:return r=t.stateNode,RI(),oA(cA),oA(lA),II(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(WA(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==FA&&(FF(FA),FA=null))),dz(e,t),Ez(t),null;case 5:OI(t);var i=qI(_I.current);if(n=t.type,null!==e&&null!=t.stateNode)fz(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error($D(166));return Ez(t),null}if(e=qI(EI.current),WA(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[UN]=t,r[YN]=o,e=!!(1&t.mode),n){case"dialog":bN("cancel",r),bN("close",r);break;case"iframe":case"object":case"embed":bN("load",r);break;case"video":case"audio":for(i=0;i<mN.length;i++)bN(mN[i],r);break;case"source":bN("error",r);break;case"img":case"image":case"link":bN("error",r),bN("load",r);break;case"details":bN("toggle",r);break;case"input":OR(r,o),bN("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},bN("invalid",r);break;case"textarea":jR(r,o),bN("invalid",r)}for(var a in QR(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&ON(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&ON(r.textContent,s,e),i=["children",""+s]):VD.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&bN("scroll",r)}switch(n){case"input":qR(r),AR(r,o,!0);break;case"textarea":qR(r),HR(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=PN)}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=VR(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[UN]=t,e[YN]=r,uz(e,t,!1,!1),t.stateNode=e;e:{switch(a=eT(n,r),n){case"dialog":bN("cancel",e),bN("close",e),i=r;break;case"iframe":case"object":case"embed":bN("load",e),i=r;break;case"video":case"audio":for(i=0;i<mN.length;i++)bN(mN[i],e);i=r;break;case"source":bN("error",e),i=r;break;case"img":case"image":case"link":bN("error",e),bN("load",e),i=r;break;case"details":bN("toggle",e),i=r;break;case"input":OR(e,r),i=TR(e,r),bN("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=bR({},r,{value:void 0}),bN("invalid",e);break;case"textarea":jR(e,r),i=FR(e,r),bN("invalid",e)}for(o in QR(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?JR(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&UR(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&YR(e,l):"number"==typeof l&&YR(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(VD.hasOwnProperty(o)?null!=l&&"onScroll"===o&&bN("scroll",e):null!=l&&tR(e,o,l,a))}switch(n){case"input":qR(e),AR(e,r,!1);break;case"textarea":qR(e),HR(e);break;case"option":null!=r.value&&e.setAttribute("value",""+MR(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?zR(e,!!r.multiple,o,!1):null!=r.defaultValue&&zR(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=PN)}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 Ez(t),null;case 6:if(e&&null!=t.stateNode)hz(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error($D(166));if(n=qI(_I.current),qI(EI.current),WA(t)){if(r=t.stateNode,n=t.memoizedProps,r[UN]=t,(o=r.nodeValue!==n)&&null!==(e=IA))switch(e.tag){case 3:ON(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ON(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[UN]=t,t.stateNode=r}return Ez(t),null;case 13:if(oA(PI),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(zA&&null!==LA&&1&t.mode&&!(128&t.flags))UA(),YA(),t.flags|=98560,o=!1;else if(o=WA(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error($D(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error($D(317));o[UN]=t}else YA(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ez(t),o=!1}else null!==FA&&(FF(FA),FA=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&PI.current?0===hF&&(hF=3):KF())),null!==t.updateQueue&&(t.flags|=4),Ez(t),null);case 4:return RI(),dz(e,t),null===e&&kN(t.stateNode.containerInfo),Ez(t),null;case 10:return sI(t.type._context),Ez(t),null;case 19:if(oA(PI),null===(o=t.memoizedState))return Ez(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)Cz(o,!1);else{if(0!==hF||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=NI(e))){for(t.flags|=128,Cz(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 aA(PI,1&PI.current|2),t.child}e=e.sibling}null!==o.tail&&OT()>wF&&(t.flags|=128,r=!0,Cz(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=NI(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Cz(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!zA)return Ez(t),null}else 2*OT()-o.renderingStartTime>wF&&1073741824!==n&&(t.flags|=128,r=!0,Cz(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=OT(),t.sibling=null,n=PI.current,aA(PI,r?1&n|2:1&n),t):(Ez(t),null);case 22:case 23:return BF(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&dF)&&(Ez(t),6&t.subtreeFlags&&(t.flags|=8192)):Ez(t),null;case 24:case 25:return null}throw Error($D(156,t.tag))}function _z(e,t){switch(AA(t),t.tag){case 1:return fA(t.type)&&hA(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return RI(),oA(cA),oA(lA),II(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return OI(t),null;case 13:if(oA(PI),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error($D(340));YA()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return oA(PI),null;case 4:return RI(),null;case 10:return sI(t.type._context),null;case 22:case 23:return BF(),null;default:return null}}uz=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}},dz=function(){},fz=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qI(EI.current);var o,a=null;switch(n){case"input":i=TR(e,i),r=TR(e,r),a=[];break;case"select":i=bR({},i,{value:void 0}),r=bR({},r,{value:void 0}),a=[];break;case"textarea":i=FR(e,i),r=FR(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=PN)}for(c in QR(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(VD.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)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(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(VD.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&bN("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},hz=function(e,t,n,r){n!==r&&(t.flags|=4)};var qz=!1,Dz=!1,Rz="function"==typeof WeakSet?WeakSet:Set,Tz=null;function Oz(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){rj(e,t,n)}else n.current=null}function Pz(e,t,n){try{n()}catch(n){rj(e,t,n)}}var Nz=!1;function Az(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&&Pz(t,n,o)}i=i.next}while(i!==r)}}function Iz(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 Lz(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 zz(e){var t=e.alternate;null!==t&&(e.alternate=null,zz(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[UN],delete t[YN],delete t[GN],delete t[XN],delete t[JN])),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 Fz(e){return 5===e.tag||3===e.tag||4===e.tag}function jz(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Fz(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 $z(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=PN));else if(4!==r&&null!==(e=e.child))for($z(e,t,n),e=e.sibling;null!==e;)$z(e,t,n),e=e.sibling}function Hz(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(Hz(e,t,n),e=e.sibling;null!==e;)Hz(e,t,n),e=e.sibling}var Vz=null,Bz=!1;function Wz(e,t,n){for(n=n.child;null!==n;)Uz(e,t,n),n=n.sibling}function Uz(e,t,n){if(jT&&"function"==typeof jT.onCommitFiberUnmount)try{jT.onCommitFiberUnmount(FT,n)}catch(e){}switch(n.tag){case 5:Dz||Oz(n,t);case 6:var r=Vz,i=Bz;Vz=null,Wz(e,t,n),Bz=i,null!==(Vz=r)&&(Bz?(e=Vz,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Vz.removeChild(n.stateNode));break;case 18:null!==Vz&&(Bz?(e=Vz,n=n.stateNode,8===e.nodeType?HN(e.parentNode,n):1===e.nodeType&&HN(e,n),SO(e)):HN(Vz,n.stateNode));break;case 4:r=Vz,i=Bz,Vz=n.stateNode.containerInfo,Bz=!0,Wz(e,t,n),Vz=r,Bz=i;break;case 0:case 11:case 14:case 15:if(!Dz&&(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&&(2&o||4&o)&&Pz(n,t,a),i=i.next}while(i!==r)}Wz(e,t,n);break;case 1:if(!Dz&&(Oz(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){rj(n,t,e)}Wz(e,t,n);break;case 21:Wz(e,t,n);break;case 22:1&n.mode?(Dz=(r=Dz)||null!==n.memoizedState,Wz(e,t,n),Dz=r):Wz(e,t,n);break;default:Wz(e,t,n)}}function Yz(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Rz),t.forEach((function(t){var r=sj.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Kz(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:Vz=s.stateNode,Bz=!1;break e;case 3:case 4:Vz=s.stateNode.containerInfo,Bz=!0;break e}s=s.return}if(null===Vz)throw Error($D(160));Uz(o,a,i),Vz=null,Bz=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){rj(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Gz(t,e),t=t.sibling}function Gz(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kz(t,e),Xz(e),4&r){try{Az(3,e,e.return),Iz(3,e)}catch(t){rj(e,e.return,t)}try{Az(5,e,e.return)}catch(t){rj(e,e.return,t)}}break;case 1:Kz(t,e),Xz(e),512&r&&null!==n&&Oz(n,n.return);break;case 5:if(Kz(t,e),Xz(e),512&r&&null!==n&&Oz(n,n.return),32&e.flags){var i=e.stateNode;try{YR(i,"")}catch(t){rj(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&&PR(i,o),eT(s,a);var c=eT(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?JR(i,d):"dangerouslySetInnerHTML"===u?UR(i,d):"children"===u?YR(i,d):tR(i,u,d,c)}switch(s){case"input":NR(i,o);break;case"textarea":$R(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?zR(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?zR(i,!!o.multiple,o.defaultValue,!0):zR(i,!!o.multiple,o.multiple?[]:"",!1))}i[YN]=o}catch(t){rj(e,e.return,t)}}break;case 6:if(Kz(t,e),Xz(e),4&r){if(null===e.stateNode)throw Error($D(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){rj(e,e.return,t)}}break;case 3:if(Kz(t,e),Xz(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{SO(t.containerInfo)}catch(t){rj(e,e.return,t)}break;case 4:default:Kz(t,e),Xz(e);break;case 13:Kz(t,e),Xz(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(xF=OT())),4&r&&Yz(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Dz=(c=Dz)||u,Kz(t,e),Dz=c):Kz(t,e),Xz(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(Tz=e,u=e.child;null!==u;){for(d=Tz=u;null!==Tz;){switch(h=(f=Tz).child,f.tag){case 0:case 11:case 14:case 15:Az(4,f,f.return);break;case 1:Oz(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){rj(r,n,e)}}break;case 5:Oz(f,f.return);break;case 22:if(null!==f.memoizedState){eF(d);continue}}null!==h?(h.return=f,Tz=h):eF(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"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=XR("display",a))}catch(t){rj(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){rj(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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Kz(t,e),Xz(e),4&r&&Yz(e);case 21:}}function Xz(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Fz(n)){var r=n;break e}n=n.return}throw Error($D(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(YR(i,""),r.flags&=-33),Hz(e,jz(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;$z(e,jz(e),o);break;default:throw Error($D(161))}}catch(t){rj(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Jz(e,t,n){Tz=e,Zz(e)}function Zz(e,t,n){for(var r=!!(1&e.mode);null!==Tz;){var i=Tz,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||qz;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Dz;s=qz;var c=Dz;if(qz=a,(Dz=l)&&!c)for(Tz=i;null!==Tz;)l=(a=Tz).child,22===a.tag&&null!==a.memoizedState?tF(i):null!==l?(l.return=a,Tz=l):tF(i);for(;null!==o;)Tz=o,Zz(o),o=o.sibling;Tz=i,qz=s,Dz=c}Qz(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Tz=o):Qz(e)}}function Qz(e){for(;null!==Tz;){var t=Tz;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Dz||Iz(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Dz)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:AL(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&SI(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}SI(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 c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&SO(d)}}}break;default:throw Error($D(163))}Dz||512&t.flags&&Lz(t)}catch(e){rj(t,t.return,e)}}if(t===e){Tz=null;break}if(null!==(n=t.sibling)){n.return=t.return,Tz=n;break}Tz=t.return}}function eF(e){for(;null!==Tz;){var t=Tz;if(t===e){Tz=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Tz=n;break}Tz=t.return}}function tF(e){for(;null!==Tz;){var t=Tz;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Iz(4,t)}catch(e){rj(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){rj(t,i,e)}}var o=t.return;try{Lz(t)}catch(e){rj(t,o,e)}break;case 5:var a=t.return;try{Lz(t)}catch(e){rj(t,a,e)}}}catch(e){rj(t,t.return,e)}if(t===e){Tz=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Tz=s;break}Tz=t.return}}var nF,rF=Math.ceil,iF=nR.ReactCurrentDispatcher,oF=nR.ReactCurrentOwner,aF=nR.ReactCurrentBatchConfig,sF=0,lF=null,cF=null,uF=0,dF=0,fF=iA(0),hF=0,pF=null,mF=0,gF=0,yF=0,vF=null,bF=null,xF=0,wF=1/0,kF=null,SF=!1,CF=null,EF=null,MF=!1,_F=null,qF=0,DF=0,RF=null,TF=-1,OF=0;function PF(){return 6&sF?OT():-1!==TF?TF:TF=OT()}function NF(e){return 1&e.mode?2&sF&&0!==uF?uF&-uF:null!==GA.transition?(0===OF&&(OF=XT()),OF):0!==(e=eO)?e:e=void 0===(e=window.event)?16:TO(e.type):1}function AF(e,t,n,r){if(50<DF)throw DF=0,RF=null,Error($D(185));ZT(e,n,r),2&sF&&e===lF||(e===lF&&(!(2&sF)&&(gF|=n),4===hF&&jF(e,uF)),IF(e,r),1===n&&0===sF&&!(1&t.mode)&&(wF=OT()+500,bA&&kA()))}function IF(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-$T(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=KT(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=YT(e,e===lF?uF:0);if(0===r)null!==n&&DT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&DT(n),1===t)0===e.tag?function(e){bA=!0,wA(e)}($F.bind(null,e)):wA($F.bind(null,e)),jN((function(){!(6&sF)&&kA()})),n=null;else{switch(tO(r)){case 1:n=NT;break;case 4:n=AT;break;case 16:default:n=IT;break;case 536870912:n=zT}n=lj(n,LF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function LF(e,t){if(TF=-1,OF=0,6&sF)throw Error($D(327));var n=e.callbackNode;if(tj()&&e.callbackNode!==n)return null;var r=YT(e,e===lF?uF:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=GF(e,r);else{t=r;var i=sF;sF|=2;var o=YF();for(lF===e&&uF===t||(kF=null,wF=OT()+500,WF(e,t));;)try{JF();break}catch(t){UF(e,t)}aI(),iF.current=o,sF=i,null!==cF?t=0:(lF=null,uF=0,t=hF)}if(0!==t){if(2===t&&(0!==(i=GT(e))&&(r=i,t=zF(e,i))),1===t)throw n=pF,WF(e,0),jF(e,r),IF(e,OT()),n;if(6===t)jF(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!$P(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)||(t=GF(e,r),2===t&&(o=GT(e),0!==o&&(r=o,t=zF(e,o))),1!==t)))throw n=pF,WF(e,0),jF(e,r),IF(e,OT()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error($D(345));case 2:case 5:ej(e,bF,kF);break;case 3:if(jF(e,r),(130023424&r)===r&&10<(t=xF+500-OT())){if(0!==YT(e,0))break;if(((i=e.suspendedLanes)&r)!==r){PF(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=LN(ej.bind(null,e,bF,kF),t);break}ej(e,bF,kF);break;case 4:if(jF(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-$T(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=OT()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rF(r/1960))-r)){e.timeoutHandle=LN(ej.bind(null,e,bF,kF),r);break}ej(e,bF,kF);break;default:throw Error($D(329))}}}return IF(e,OT()),e.callbackNode===n?LF.bind(null,e):null}function zF(e,t){var n=vF;return e.current.memoizedState.isDehydrated&&(WF(e,t).flags|=256),2!==(e=GF(e,t))&&(t=bF,bF=n,null!==t&&FF(t)),e}function FF(e){null===bF?bF=e:bF.push.apply(bF,e)}function jF(e,t){for(t&=~yF,t&=~gF,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$T(t),r=1<<n;e[n]=-1,t&=~r}}function $F(e){if(6&sF)throw Error($D(327));tj();var t=YT(e,0);if(!(1&t))return IF(e,OT()),null;var n=GF(e,t);if(0!==e.tag&&2===n){var r=GT(e);0!==r&&(t=r,n=zF(e,r))}if(1===n)throw n=pF,WF(e,0),jF(e,t),IF(e,OT()),n;if(6===n)throw Error($D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ej(e,bF,kF),IF(e,OT()),null}function HF(e,t){var n=sF;sF|=1;try{return e(t)}finally{0===(sF=n)&&(wF=OT()+500,bA&&kA())}}function VF(e){null!==_F&&0===_F.tag&&!(6&sF)&&tj();var t=sF;sF|=1;var n=aF.transition,r=eO;try{if(aF.transition=null,eO=1,e)return e()}finally{eO=r,aF.transition=n,!(6&(sF=t))&&kA()}}function BF(){dF=fF.current,oA(fF)}function WF(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,zN(n)),null!==cF)for(n=cF.return;null!==n;){var r=n;switch(AA(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&hA();break;case 3:RI(),oA(cA),oA(lA),II();break;case 5:OI(r);break;case 4:RI();break;case 13:case 19:oA(PI);break;case 10:sI(r.type._context);break;case 22:case 23:BF()}n=n.return}if(lF=e,cF=e=fj(e.current,null),uF=dF=t,hF=0,pF=null,yF=gF=mF=0,bF=vF=null,null!==dI){for(t=0;t<dI.length;t++)if(null!==(r=(n=dI[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}dI=null}return e}function UF(e,t){for(;;){var n=cF;try{if(aI(),LI.current=TL,VI){for(var r=jI.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}VI=!1}if(FI=0,HI=$I=jI=null,BI=!1,WI=0,oF.current=null,null===n||null===n.return){hF=1,pF=t,cF=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=uF,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=GL(a);if(null!==h){h.flags&=-257,XL(h,a,s,0,t),1&h.mode&&KL(o,c,t),l=c;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(!(1&t)){KL(o,c,t),KF();break e}l=Error($D(426))}else if(zA&&1&s.mode){var g=GL(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),XL(g,a,s,0,t),KA(HL(l,s));break e}}o=l=HL(l,s),4!==hF&&(hF=2),null===vF?vF=[o]:vF.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,wI(o,UL(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==EF&&EF.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,wI(o,YL(o,s,t));break e}}o=o.return}while(null!==o)}QF(n)}catch(e){t=e,cF===n&&null!==n&&(cF=n=n.return);continue}break}}function YF(){var e=iF.current;return iF.current=TL,null===e?TL:e}function KF(){0!==hF&&3!==hF&&2!==hF||(hF=4),null===lF||!(268435455&mF)&&!(268435455&gF)||jF(lF,uF)}function GF(e,t){var n=sF;sF|=2;var r=YF();for(lF===e&&uF===t||(kF=null,WF(e,t));;)try{XF();break}catch(t){UF(e,t)}if(aI(),sF=n,iF.current=r,null!==cF)throw Error($D(261));return lF=null,uF=0,hF}function XF(){for(;null!==cF;)ZF(cF)}function JF(){for(;null!==cF&&!RT();)ZF(cF)}function ZF(e){var t=nF(e.alternate,e,dF);e.memoizedProps=e.pendingProps,null===t?QF(e):cF=t,oF.current=null}function QF(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=_z(n,t)))return n.flags&=32767,void(cF=n);if(null===e)return hF=6,void(cF=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Mz(n,t,dF)))return void(cF=n);if(null!==(t=t.sibling))return void(cF=t);cF=t=e}while(null!==t);0===hF&&(hF=5)}function ej(e,t,n){var r=eO,i=aF.transition;try{aF.transition=null,eO=1,function(e,t,n,r){do{tj()}while(null!==_F);if(6&sF)throw Error($D(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($D(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-$T(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===lF&&(cF=lF=null,uF=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||MF||(MF=!0,lj(IT,(function(){return tj(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=aF.transition,aF.transition=null;var a=eO;eO=1;var s=sF;sF|=4,oF.current=null,function(e,t){if(NN=EO,YP(e=UP())){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,c=0,u=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&&++c===i&&(s=a),f===o&&++u===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(AN={focusedElem:e,selectionRange:n},EO=!1,Tz=t;null!==Tz;)if(e=(t=Tz).child,1028&t.subtreeFlags&&null!==e)e.return=t,Tz=e;else for(;null!==Tz;){t=Tz;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:AL(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($D(163))}}catch(e){rj(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Tz=e;break}Tz=t.return}p=Nz,Nz=!1}(e,n),Gz(n,e),KP(AN),EO=!!NN,AN=NN=null,e.current=n,Jz(n),TT(),sF=s,eO=a,aF.transition=o}else e.current=n;if(MF&&(MF=!1,_F=e,qF=i),o=e.pendingLanes,0===o&&(EF=null),function(e){if(jT&&"function"==typeof jT.onCommitFiberRoot)try{jT.onCommitFiberRoot(FT,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),IF(e,OT()),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(SF)throw SF=!1,e=CF,CF=null,e;!!(1&qF)&&0!==e.tag&&tj(),o=e.pendingLanes,1&o?e===RF?DF++:(DF=0,RF=e):DF=0,kA()}(e,t,n,r)}finally{aF.transition=i,eO=r}return null}function tj(){if(null!==_F){var e=tO(qF),t=aF.transition,n=eO;try{if(aF.transition=null,eO=16>e?16:e,null===_F)var r=!1;else{if(e=_F,_F=null,qF=0,6&sF)throw Error($D(331));var i=sF;for(sF|=4,Tz=e.current;null!==Tz;){var o=Tz,a=o.child;if(16&Tz.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Tz=c;null!==Tz;){var u=Tz;switch(u.tag){case 0:case 11:case 15:Az(8,u,o)}var d=u.child;if(null!==d)d.return=u,Tz=d;else for(;null!==Tz;){var f=(u=Tz).sibling,h=u.return;if(zz(u),u===c){Tz=null;break}if(null!==f){f.return=h,Tz=f;break}Tz=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)}}Tz=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,Tz=a;else e:for(;null!==Tz;){if(2048&(o=Tz).flags)switch(o.tag){case 0:case 11:case 15:Az(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Tz=y;break e}Tz=o.return}}var v=e.current;for(Tz=v;null!==Tz;){var b=(a=Tz).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,Tz=b;else e:for(a=v;null!==Tz;){if(2048&(s=Tz).flags)try{switch(s.tag){case 0:case 11:case 15:Iz(9,s)}}catch(e){rj(s,s.return,e)}if(s===a){Tz=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Tz=x;break e}Tz=s.return}}if(sF=i,kA(),jT&&"function"==typeof jT.onPostCommitFiberRoot)try{jT.onPostCommitFiberRoot(FT,e)}catch(e){}r=!0}return r}finally{eO=n,aF.transition=t}}return!1}function nj(e,t,n){e=bI(e,t=UL(0,t=HL(n,t),1),1),t=PF(),null!==e&&(ZT(e,1,t),IF(e,t))}function rj(e,t,n){if(3===e.tag)nj(e,e,n);else for(;null!==t;){if(3===t.tag){nj(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===EF||!EF.has(r))){t=bI(t,e=YL(t,e=HL(n,e),1),1),e=PF(),null!==t&&(ZT(t,1,e),IF(t,e));break}}t=t.return}}function ij(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=PF(),e.pingedLanes|=e.suspendedLanes&n,lF===e&&(uF&n)===n&&(4===hF||3===hF&&(130023424&uF)===uF&&500>OT()-xF?WF(e,0):yF|=n),IF(e,t)}function oj(e,t){0===t&&(1&e.mode?(t=WT,!(130023424&(WT<<=1))&&(WT=4194304)):t=1);var n=PF();null!==(e=pI(e,t))&&(ZT(e,t,n),IF(e,n))}function aj(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),oj(e,n)}function sj(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($D(314))}null!==r&&r.delete(t),oj(e,n)}function lj(e,t){return qT(e,t)}function cj(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 uj(e,t,n,r){return new cj(e,t,n,r)}function dj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function fj(e,t){var n=e.alternate;return null===n?((n=uj(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 hj(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)dj(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case oR:return pj(n.children,i,o,t);case aR:a=8,i|=8;break;case sR:return(e=uj(12,n,t,2|i)).elementType=sR,e.lanes=o,e;case dR:return(e=uj(13,n,t,i)).elementType=dR,e.lanes=o,e;case fR:return(e=uj(19,n,t,i)).elementType=fR,e.lanes=o,e;case mR:return mj(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case lR:a=10;break e;case cR:a=9;break e;case uR:a=11;break e;case hR:a=14;break e;case pR:a=16,r=null;break e}throw Error($D(130,null==e?e:typeof e,""))}return(t=uj(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function pj(e,t,n,r){return(e=uj(7,e,r,t)).lanes=n,e}function mj(e,t,n,r){return(e=uj(22,e,r,t)).elementType=mR,e.lanes=n,e.stateNode={isHidden:!1},e}function gj(e,t,n){return(e=uj(6,e,null,t)).lanes=n,e}function yj(e,t,n){return(t=uj(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vj(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=JT(0),this.expirationTimes=JT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=JT(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bj(e,t,n,r,i,o,a,s,l){return e=new vj(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=uj(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gI(o),e}function xj(e){if(!e)return sA;e:{if(ST(e=e._reactInternals)!==e||1!==e.tag)throw Error($D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(fA(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error($D(171))}if(1===e.tag){var n=e.type;if(fA(n))return mA(e,n,t)}return t}function wj(e,t,n,r,i,o,a,s,l){return(e=bj(n,r,!0,e,0,o,0,s,l)).context=xj(null),n=e.current,(o=vI(r=PF(),i=NF(n))).callback=null!=t?t:null,bI(n,o,i),e.current.lanes=i,ZT(e,i,r),IF(e,r),e}function kj(e,t,n,r){var i=t.current,o=PF(),a=NF(i);return n=xj(n),null===t.context?t.context=n:t.pendingContext=n,(t=vI(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=bI(i,t,a))&&(AF(e,i,a,o),xI(e,i,a)),a}function Sj(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Cj(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ej(e,t){Cj(e,t),(e=e.alternate)&&Cj(e,t)}nF=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||cA.current)ZL=!0;else{if(!(e.lanes&n||128&t.flags))return ZL=!1,function(e,t,n){switch(t.tag){case 3:lz(t),YA();break;case 5:TI(t);break;case 1:fA(t.type)&&gA(t);break;case 4:DI(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;aA(nI,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(aA(PI,1&PI.current),t.flags|=128,null):n&t.child.childLanes?gz(e,t,n):(aA(PI,1&PI.current),null!==(e=Sz(e,t,n))?e.sibling:null);aA(PI,1&PI.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return wz(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),aA(PI,PI.current),r)break;return null;case 22:case 23:return t.lanes=0,rz(e,t,n)}return Sz(e,t,n)}(e,t,n);ZL=!!(131072&e.flags)}else ZL=!1,zA&&1048576&t.flags&&PA(t,MA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kz(e,t),e=t.pendingProps;var i=dA(t,lA.current);cI(t,n),i=GI(null,t,r,e,i,n);var o=XI();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,fA(r)?(o=!0,gA(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,gI(t),i.updater=LL,t.stateNode=i,i._reactInternals=t,$L(t,r,e,n),t=sz(null,t,r,!0,o,n)):(t.tag=0,zA&&o&&NA(t),QL(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kz(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return dj(e)?1:0;if(null!=e){if((e=e.$$typeof)===uR)return 11;if(e===hR)return 14}return 2}(r),e=AL(r,e),i){case 0:t=oz(null,t,r,e,n);break e;case 1:t=az(null,t,r,e,n);break e;case 11:t=ez(null,t,r,e,n);break e;case 14:t=tz(null,t,r,AL(r.type,e),n);break e}throw Error($D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,oz(e,t,r,i=t.elementType===r?i:AL(r,i),n);case 1:return r=t.type,i=t.pendingProps,az(e,t,r,i=t.elementType===r?i:AL(r,i),n);case 3:e:{if(lz(t),null===e)throw Error($D(387));r=t.pendingProps,i=(o=t.memoizedState).element,yI(e,t),kI(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=cz(e,t,r,n,i=HL(Error($D(423)),t));break e}if(r!==i){t=cz(e,t,r,n,i=HL(Error($D(424)),t));break e}for(LA=VN(t.stateNode.containerInfo.firstChild),IA=t,zA=!0,FA=null,n=tI(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(YA(),r===i){t=Sz(e,t,n);break e}QL(e,t,r,n)}t=t.child}return t;case 5:return TI(t),null===e&&VA(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,IN(r,i)?a=null:null!==o&&IN(r,o)&&(t.flags|=32),iz(e,t),QL(e,t,a,n),t.child;case 6:return null===e&&VA(t),null;case 13:return gz(e,t,n);case 4:return DI(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=eI(t,null,r,n):QL(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ez(e,t,r,i=t.elementType===r?i:AL(r,i),n);case 7:return QL(e,t,t.pendingProps,n),t.child;case 8:case 12:return QL(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,aA(nI,r._currentValue),r._currentValue=a,null!==o)if($P(o.value,a)){if(o.children===i.children&&!cA.current){t=Sz(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=vI(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),lI(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($D(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),lI(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}QL(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cI(t,n),r=r(i=uI(i)),t.flags|=1,QL(e,t,r,n),t.child;case 14:return i=AL(r=t.type,t.pendingProps),tz(e,t,r,i=AL(r.type,i),n);case 15:return nz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:AL(r,i),kz(e,t),t.tag=1,fA(r)?(e=!0,gA(t)):e=!1,cI(t,n),FL(t,r,i),$L(t,r,i,n),sz(null,t,r,!0,e,n);case 19:return wz(e,t,n);case 22:return rz(e,t,n)}throw Error($D(156,t.tag))};var Mj="function"==typeof reportError?reportError:function(e){console.error(e)};function _j(e){this._internalRoot=e}function qj(e){this._internalRoot=e}function Dj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Rj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Tj(){}function Oj(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=Sj(a);s.call(e)}}kj(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=Sj(a);o.call(e)}}var a=wj(t,r,e,0,null,!1,0,"",Tj);return e._reactRootContainer=a,e[KN]=a.current,kN(8===e.nodeType?e.parentNode:e),VF(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Sj(l);s.call(e)}}var l=bj(e,0,!1,null,0,!1,0,"",Tj);return e._reactRootContainer=l,e[KN]=l.current,kN(8===e.nodeType?e.parentNode:e),VF((function(){kj(t,l,n,r)})),l}(n,t,e,i,r);return Sj(a)}qj.prototype.render=_j.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error($D(409));kj(e,t,null,null)},qj.prototype.unmount=_j.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;VF((function(){kj(null,e,null,null)})),t[KN]=null}},qj.prototype.unstable_scheduleHydration=function(e){if(e){var t=oO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pO.length&&0!==t&&t<pO[n].priority;n++);pO.splice(n,0,e),0===n&&vO(e)}},nO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=UT(t.pendingLanes);0!==n&&(QT(t,1|n),IF(t,OT()),!(6&sF)&&(wF=OT()+500,kA()))}break;case 13:VF((function(){var t=pI(e,1);if(null!==t){var n=PF();AF(t,e,1,n)}})),Ej(e,1)}},rO=function(e){if(13===e.tag){var t=pI(e,134217728);if(null!==t)AF(t,e,134217728,PF());Ej(e,134217728)}},iO=function(e){if(13===e.tag){var t=NF(e),n=pI(e,t);if(null!==n)AF(n,e,t,PF());Ej(e,t)}},oO=function(){return eO},aO=function(e,t){var n=eO;try{return eO=e,t()}finally{eO=n}},rT=function(e,t,n){switch(t){case"input":if(NR(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=tA(r);if(!i)throw Error($D(90));DR(r),NR(r,i)}}}break;case"textarea":$R(e,n);break;case"select":null!=(t=n.value)&&zR(e,!!n.multiple,t,!1)}},cT=HF,uT=VF;var Pj={usingClientEntryPoint:!1,Events:[QN,eA,tA,sT,lT,HF]},Nj={findFiberByHostInstance:ZN,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Aj={bundleType:Nj.bundleType,version:Nj.version,rendererPackageName:Nj.rendererPackageName,rendererConfig:Nj.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nR.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=MT(e))?null:e.stateNode},findFiberByHostInstance:Nj.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ij=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ij.isDisabled&&Ij.supportsFiber)try{FT=Ij.inject(Aj),jT=Ij}catch(Wh){}}AD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pj,AD.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Dj(t))throw Error($D(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:iR,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},AD.createRoot=function(e,t){if(!Dj(e))throw Error($D(299));var n=!1,r="",i=Mj;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=bj(e,1,!1,null,0,n,0,r,i),e[KN]=t.current,kN(8===e.nodeType?e.parentNode:e),new _j(t)},AD.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($D(188));throw e=Object.keys(e).join(","),Error($D(268,e))}return e=null===(e=MT(t))?null:e.stateNode},AD.flushSync=function(e){return VF(e)},AD.hydrate=function(e,t,n){if(!Rj(t))throw Error($D(200));return Oj(null,e,t,!0,n)},AD.hydrateRoot=function(e,t,n){if(!Dj(e))throw Error($D(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=Mj;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=wj(t,null,e,1,null!=n?n:null,i,0,o,a),e[KN]=t.current,kN(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 qj(t)},AD.render=function(e,t,n){if(!Rj(t))throw Error($D(200));return Oj(null,e,t,!1,n)},AD.unmountComponentAtNode=function(e){if(!Rj(e))throw Error($D(40));return!!e._reactRootContainer&&(VF((function(){Oj(null,null,e,!1,(function(){e._reactRootContainer=null,e[KN]=null}))})),!0)},AD.unstable_batchedUpdates=HF,AD.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rj(n))throw Error($D(200));if(null==e||void 0===e._reactInternals)throw Error($D(38));return Oj(e,t,n,!1,r)},AD.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ND.exports=AD;var Lj=ND.exports,zj=r(Lj),Fj=!0,jj=!1,$j=null,Hj={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 Vj(e){e.metaKey||e.altKey||e.ctrlKey||(Fj=!0)}function Bj(){Fj=!1}function Wj(){"hidden"===this.visibilityState&&jj&&(Fj=!0)}function Uj(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Fj||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Hj[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Yj(){jj=!0,window.clearTimeout($j),$j=window.setTimeout((function(){jj=!1}),100)}function Kj(){var e=US.useCallback((function(e){var t,n=Lj.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Vj,!0),t.addEventListener("mousedown",Bj,!0),t.addEventListener("pointerdown",Bj,!0),t.addEventListener("touchstart",Bj,!0),t.addEventListener("visibilitychange",Wj,!0))}),[]);return{isFocusVisible:Uj,onBlurVisible:Yj,ref:e}}var Gj=!1,Xj=YS.createContext(null),Jj="unmounted",Zj="exited",Qj="entering",e$="entered",t$="exiting",n$=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=Zj,r.appearStatus=Qj):i=e$:i=t.unmountOnExit||t.mountOnEnter?Jj:Zj,r.state={status:i},r.nextCallback=null,r}NE(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Jj?{status:Zj}: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!==Qj&&n!==e$&&(t=Qj):n!==Qj&&n!==e$||(t=t$)}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===Qj){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:zj.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zj&&this.setState({status:Jj})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[zj.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Gj?this.safeSetState({status:e$},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Qj},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:e$},(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:zj.findDOMNode(this);t&&!Gj?(this.props.onExit(r),this.safeSetState({status:t$},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Zj},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Zj},(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:zj.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===Jj)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=QC(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return YS.createElement(Xj.Provider,{value:null},"function"==typeof n?n(e,r):YS.cloneElement(YS.Children.only(n),r))},t}(YS.Component);function r$(){}function i$(e,t){var n=Object.create(null);return e&&US.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&US.isValidElement(e)?t(e):e}(e)})),n}function o$(e,t,n){return null!=n[t]?n[t]:e.props[t]}function a$(e,t,n){var r=i$(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 c=i[l][r];s[i[l][r]]=n(c)}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(US.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=US.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&US.isValidElement(c)&&(i[o]=US.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:o$(a,"exit",e),enter:o$(a,"enter",e)})):i[o]=US.cloneElement(a,{in:!1}):i[o]=US.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:o$(a,"exit",e),enter:o$(a,"enter",e)})}})),i}n$.contextType=Xj,n$.propTypes={},n$.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:r$,onEntering:r$,onEntered:r$,onExit:r$,onExiting:r$,onExited:r$},n$.UNMOUNTED=Jj,n$.EXITED=Zj,n$.ENTERING=Qj,n$.ENTERED=e$,n$.EXITING=t$;var s$=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},l$=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(AE(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}NE(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,i$(n.children,(function(e){return US.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:o$(e,"appear",n),enter:o$(e,"enter",n),exit:o$(e,"exit",n)})}))):a$(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=i$(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=$C({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=QC(e,["component","childFactory"]),i=this.state.contextValue,o=s$(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?YS.createElement(Xj.Provider,{value:i},o):YS.createElement(Xj.Provider,{value:i},YS.createElement(t,r,o))},t}(YS.Component);l$.propTypes={},l$.defaultProps={component:"div",childFactory:function(e){return e}};function c$(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 u$=US.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,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=eE(e,["classes","className","component","square","elevation","variant"]);return US.createElement(o,$C({className:_D(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),d$=SD((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),$C({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"})(u$),f$="undefined"==typeof window?US.useEffect:US.useLayoutEffect;function h$(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,c=void 0===l?function(){}:l,u=e.timeout,d=US.useState(!1),f=d[0],h=d[1],p=_D(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=_D(t.child,f&&t.childLeaving,r&&t.childPulsate),y=OD(c);return f$((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),US.createElement("span",{className:p,style:m},US.createElement("span",{className:g}))}var p$=US.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=eE(e,["center","classes","className"]),s=US.useState([]),l=s[0],c=s[1],u=US.useRef(0),d=US.useRef(null);US.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=US.useRef(!1),h=US.useRef(null),p=US.useRef(null),m=US.useRef(null);US.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=US.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(yE(e),[US.createElement(h$,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=US.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,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?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)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-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 S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=US.useCallback((function(){y({},{pulsate:!0})}),[y]),b=US.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,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return US.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),US.createElement("span",$C({className:_D(i.root,o),ref:m},a),US.createElement(l$,{component:null,exit:!0},l))})),m$=SD((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"})(US.memo(p$)),g$=US.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,c=e.component,u=void 0===c?"button":c,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,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,E=e.onKeyUp,M=e.onMouseDown,_=e.onMouseLeave,q=e.onMouseUp,D=e.onTouchEnd,R=e.onTouchMove,T=e.onTouchStart,O=e.onDragLeave,P=e.tabIndex,N=void 0===P?0:P,A=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=eE(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=US.useRef(null);var j=US.useRef(null),$=US.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=Kj(),W=B.isFocusVisible,U=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return OD((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}US.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),US.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",M),X=K("stop",O),J=K("stop",q),Z=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),Q=K("start",T),ee=K("stop",D),te=K("stop",R),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=OD((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=Lj.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=US.useRef(!1),ae=OD((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(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=OD((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),E&&E(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=PD(r,t),de=PD(Y,F),fe=PD(ue,de),he=US.useState(!1),pe=he[0],me=he[1];US.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return US.createElement(le,$C({className:_D(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:N},ce,z),a,ge?US.createElement(m$,$C({ref:j,center:o},A)):null)})),y$=SD({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"})(g$),v$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},b$=US.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,c=e.display,u=void 0===c?"initial":c,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?v$:b,w=eE(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||v$[v])||"span";return US.createElement(k,$C({className:_D(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(CD(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(CD(r))],"initial"!==u&&i["display".concat(CD(u))]),ref:t},w))})),x$=SD((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"})(b$),w$=US.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,c=e.disabled,u=void 0!==c&&c,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,k=e.type,S=void 0===k?"button":k,C=e.variant,E=void 0===C?"text":C,M=eE(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&US.createElement("span",{className:_D(r.startIcon,r["iconSize".concat(CD(x))])},w),q=m&&US.createElement("span",{className:_D(r.endIcon,r["iconSize".concat(CD(x))])},m);return US.createElement(y$,$C({className:_D(r.root,r[E],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(CD(a))],"medium"!==x&&[r["".concat(E,"Size").concat(CD(x))],r["size".concat(CD(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:_D(r.focusVisible,g),ref:t,type:S},M),US.createElement("span",{className:r.label},_,n,q))})),k$=SD((function(e){return{root:$C({},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:ZC(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:ZC(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:ZC(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(ZC(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:ZC(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(ZC(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:ZC(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"})(w$);var S$="undefined"!=typeof window?US.useLayoutEffect:US.useEffect,C$=US.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=US.useState(null),l=s[0],c=s[1],u=PD(US.isValidElement(n)?n.ref:null,t);return S$((function(){o||c(function(e){return e="function"==typeof e?e():e,Lj.findDOMNode(e)}(r)||document.body)}),[r,o]),S$((function(){if(l&&!o)return RD(t,l),function(){RD(t,null)}}),[t,l,o]),S$((function(){a&&(l||o)&&a()}),[a,l,o]),o?US.isValidElement(n)?US.cloneElement(n,{ref:u}):n:l?Lj.createPortal(n,l):l}));function E$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function M$(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _$(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(yE(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)&&E$(e,r)}))}function q$(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function D$(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=qD(e);return t.body===e?DD(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(M$(o)+a,"px"),n=qD(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(M$(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 R$=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 OE(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&&E$(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);_$(t,e.mountNode,e.modalRef,r,!0);var i=q$(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=q$(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=D$(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=q$(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&&E$(e.modalRef,!0),_$(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&&E$(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function T$(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,c=e.isEnabled,u=e.open,d=US.useRef(),f=US.useRef(null),h=US.useRef(null),p=US.useRef(),m=US.useRef(null),g=US.useCallback((function(e){m.current=Lj.findDOMNode(e)}),[]),y=PD(t.ref,g),v=US.useRef();return US.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),US.useEffect((function(){if(u){var e=qD(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&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&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,c,u]),US.createElement(US.Fragment,null,US.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),US.cloneElement(t,{ref:y}),US.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var O$={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"}},P$=US.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=eE(e,["invisible","open"]);return i?US.createElement("div",$C({"aria-hidden":!0,ref:t},o,{style:$C({},O$.root,r?O$.invisible:{},o.style)})):null}));var N$=new R$,A$=US.forwardRef((function(e,t){var n=Cq(),r=DE({name:"MuiModal",props:$C({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?P$:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=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,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,E=r.hideBackdrop,M=void 0!==E&&E,_=r.keepMounted,q=void 0!==_&&_,D=r.manager,R=void 0===D?N$:D,T=r.onBackdropClick,O=r.onClose,P=r.onEscapeKeyDown,N=r.onRendered,A=r.open,I=eE(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=US.useState(!0),z=L[0],F=L[1],j=US.useRef({}),$=US.useRef(null),H=US.useRef(null),V=PD(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return qD($.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){R.mount(U(),{disableScrollLock:C}),H.current.scrollTop=0},K=OD((function(){var e=function(e){return e="function"==typeof e?e():e,Lj.findDOMNode(e)}(u)||W().body;R.add(U(),e),H.current&&Y()})),G=US.useCallback((function(){return R.isTopModal(U())}),[R]),X=OD((function(e){$.current=e,e&&(N&&N(),A&&G()?Y():E$(H.current,!0))})),J=US.useCallback((function(){R.remove(U())}),[R]);if(US.useEffect((function(){return function(){J()}}),[J]),US.useEffect((function(){A?K():B&&c||J()}),[A,J,B,c,K]),!q&&!A&&(!B||z))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:CE}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),B&&(Q.onEnter=ED((function(){F(!1)}),s.props.onEnter),Q.onExited=ED((function(){F(!0),c&&J()}),s.props.onExited)),US.createElement(C$,{ref:X,container:u,disablePortal:x},US.createElement("div",$C({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(P&&P(e),v||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},I,{style:$C({},Z.root,!A&&z?Z.hidden:{},I.style)}),M?null:US.createElement(o,$C({open:A,onClick:function(e){e.target===e.currentTarget&&(T&&T(e),!p&&O&&O(e,"backdropClick"))}},a)),US.createElement(T$,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:W,isEnabled:G,open:A},US.cloneElement(s,Q))))})),I$=US.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,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,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=eE(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return US.createElement(s,$C({className:_D(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),L$=SD((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:ZC(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"})(I$);function z$(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var F$={entering:{opacity:1,transform:z$(1)},entered:{opacity:1,transform:"none"}},j$=US.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,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?n$:m,y=eE(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=US.useRef(),b=US.useRef(),x=Cq()||wD,w=x.unstable_strictMode&&!i,k=US.useRef(null),S=PD(n.ref,t),C=PD(w?k:void 0,S),E=function(e){return function(t,n){if(e){var r=vE(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},M=E(l),_=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=c$({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)})),q=E(s),D=E(d),R=E((function(e){var t,n=c$({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=z$(.75),c&&c(e)})),T=E(u);return US.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),US.createElement(g,$C({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:q,onEntering:M,onExit:R,onExited:T,onExiting:D,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 US.cloneElement(n,$C({style:$C({opacity:0,transform:z$(.75),visibility:"exited"!==e||o?void 0:"hidden"},F$[e],f,n.props.style),ref:C},t))}))}));j$.muiSupportAuto=!0;var $$=US.createContext({}),H$=US.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,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=eE(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=US.useMemo((function(){return{dense:l}}),[l]);return US.createElement($$.Provider,{value:h},US.createElement(a,$C({className:_D(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),V$=SD({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(H$),B$="undefined"==typeof window?US.useEffect:US.useLayoutEffect,W$=US.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,c=e.classes,u=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=eE(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,E=e.focusVisibleClassName,M=e.selected,_=void 0!==M&&M,q=eE(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=US.useContext($$),R={dense:v||D.dense||!1,alignItems:r},T=US.useRef(null);B$((function(){o&&T.current&&T.current.focus()}),[o]);var O,P,N=US.Children.toArray(l),A=N.length&&(O=N[N.length-1],P=["ListItemSecondaryAction"],US.isValidElement(O)&&-1!==P.indexOf(O.type.muiName)),I=US.useCallback((function(e){T.current=Lj.findDOMNode(e)}),[]),L=PD(I,t),z=$C({className:_D(c.root,u,R.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,A&&c.secondaryAction,_&&c.selected),disabled:x},q),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=_D(c.focusVisible,E),F=y$),A?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),US.createElement($$.Provider,{value:R},US.createElement(h,$C({className:_D(c.container,m),ref:L},g),US.createElement(F,z,N),N.pop()))):US.createElement($$.Provider,{value:R},US.createElement(F,$C({ref:L},z),N))})),U$=SD((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"})(W$),Y$=US.forwardRef((function(e,t){var n=e.classes,r=e.className,i=eE(e,["classes","className"]),o=US.useContext($$);return US.createElement("div",$C({className:_D(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),K$=SD((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Y$),G$=US.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,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=eE(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=US.useContext($$).dense,m=null!=c?c:n;null==m||m.type===x$||a||(m=US.createElement(x$,$C({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===x$||a||(g=US.createElement(x$,$C({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),US.createElement("div",$C({className:_D(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),X$=SD({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(G$);function J$(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Z$(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Q$(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function eH(e){return"function"==typeof e?e():e}var tH=US.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,c=e.children,u=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,k=e.onExited,S=e.onExiting,C=e.open,E=e.PaperProps,M=void 0===E?{}:E,_=e.transformOrigin,q=void 0===_?{vertical:"top",horizontal:"left"}:_,D=e.TransitionComponent,R=void 0===D?j$:D,T=e.transitionDuration,O=void 0===T?"auto":T,P=e.TransitionProps,N=void 0===P?{}:P,A=eE(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"]),I=US.useRef(),L=US.useCallback((function(e){if("anchorPosition"===l)return a;var t=eH(r),n=(t&&1===t.nodeType?t:qD(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+J$(n,i),left:n.left+Z$(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=US.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=US.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:J$(e,q.vertical)+t,horizontal:Z$(e,q.horizontal)}}),[q.horizontal,q.vertical]),j=US.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:Q$(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=DD(eH(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Q$(i)}}),[r,l,L,z,F,y]),$=US.useCallback((function(){var e=I.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=US.useCallback((function(e){I.current=Lj.findDOMNode(e)}),[]);US.useEffect((function(){C&&$()})),US.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),US.useEffect((function(){if(C){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(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=O;"auto"!==O||R.muiSupportAuto||(V=void 0);var B=f||(r?qD(eH(r)).body:void 0);return US.createElement(A$,$C({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:_D(u.root,d)},A),US.createElement(R,$C({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},N,{onEntering:ED((function(e,t){x&&x(e,t),$()}),N.onEntering)}),US.createElement(d$,$C({elevation:p,ref:H},M,{className:_D(u.paper,M.className)}),c)))})),nH=SD({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(tH);function rH(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function iH({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:rH(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return YS.createElement("i",{style:i},YS.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},YS.createElement("path",{d:e})))}const oH="alternative-menu-item",aH=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>Pq((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 YS.createElement(U$,gC({className:`${i.root} ${n}`},r))},sH=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${oH}`);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 lH({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Tg.detectTextDirection(e);return YS.createElement(aH,{nested:r,role:"menuitem",button:!0,onClick:n,className:oH,onKeyDown:sH,dir:a,autoFocus:t},YS.createElement(X$,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),YS.createElement(K$,{style:{minWidth:16}},YS.createElement(iH,{d:t?QS:""})),i&&YS.createElement(K$,{style:{minWidth:16}},YS.createElement(iH,{d:i.d})))}lH.propTypes={title:xC.string.isRequired,selected:xC.bool,onClick:xC.func.isRequired,nested:xC.bool,icon:xC.shape({d:xC.string.isRequired}),bold:xC.bool,dir:xC.string.isRequired},lH.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},aH.propTypes={nested:xC.bool,className:xC.string},aH.defaultProps={nested:!1,className:oH};const cH={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 uH({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return YS.createElement(YS.Fragment,{key:t.id},YS.createElement(lH,{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&&YS.createElement(V$,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>YS.createElement(lH,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&YS.createElement(L$,{key:`divider-${t.id}`}))}));return YS.createElement(nH,gC({anchorEl:t,open:s,onClose:a},cH[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),YS.createElement(V$,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}uH.propTypes={chartId:xC.string.isRequired,alignTo:xC.any,currentId:xC.string.isRequired,dir:xC.string.isRequired,dock:xC.string.isRequired,list:xC.array,onClose:xC.func.isRequired,show:xC.bool.isRequired,instruction:xC.string.isRequired},uH.defaultProps={list:[],alignTo:null};const dH="title-button",fH="active-title-button",hH=kD((({children:e,...t})=>YS.createElement(k$,gC({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),pH=kD(k$)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class mH extends YS.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=YS.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(`.${dH}`);t&&(t.focus(),t.classList.add(fH))}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(`.${dH}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${fH}`);e&&(e.classList.remove(fH),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:c,showGroupDimOptions:u}=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)=>YS.createElement(hH,{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},YS.createElement("span",{style:d},e),YS.createElement(iH,gC({},tC,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?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=Tg.detectTextDirection(t.text),w=YS.createElement(hH,{"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:`${dH} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&YS.createElement(iH,gC({},ZS,{size:"small",title:r.get("Tooltip.selections.locked")})),YS.createElement("span",{style:d,dir:x},t.text),n&&m&&YS.createElement(iH,gC({},eC,{size:"small",style:{margin:"0 8px"}})));return YS.createElement(YS.Fragment,null,t.icon&&t.icon.onClick&&YS.createElement(pH,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},YS.createElement(iH,gC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&YS.createElement(iH,gC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,YS.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&YS.createElement(uH,{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 gH(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function yH(e){function t(e){return!e.isDimension&&Mg.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:c,padding:u,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"],k=a?fC:pC,S=a?hC:mC,C=Boolean(l&&l.colorSupport&&l.modifiers),E=C&&((M=this.settings.settings).isDimension&&Mg.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var M;const _=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=S(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,M=C||b?k({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:gH(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:C}):void 0;return YS.createElement(YS.Fragment,{key:t.cId},YS.createElement(mH,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:M,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m}),!v&&YS.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return YS.createElement("div",{style:v,dir:y},_)}}}mH.propTypes={chartId:xC.string.isRequired,disabled:xC.bool.isRequired,padding:xC.string,minWidth:xC.string,titleData:xC.shape({breadcrumbs:xC.arrayOf(xC.string).isRequired,icon:xC.shape({path:xC.shape({d:xC.string.isRequired}),tooltip:xC.string.isRequired,onClick:xC.func}),index:xC.number.isRequired,locked:xC.bool.isRequired,text:xC.string.isRequired,popoverText:xC.string.isRequired,drillUp:xC.func,id:xC.string.isRequired}).isRequired,popover:xC.shape({dir:xC.string.isRequired,dock:xC.string.isRequired,getPopoverOptions:xC.func.isRequired}),translator:xC.shape({get:xC.func.isRequired}).isRequired,selections:xC.shape({isActive:xC.func,addListener:xC.func,removeListener:xC.func}),style:xC.shape({fontSize:xC.string,color:xC.string,fontFamily:xC.string}).isRequired,isDimension:xC.bool.isRequired,hasAlternative:xC.bool.isRequired,supportConditional:xC.bool.isRequired,showGroupDimOptions:xC.bool.isRequired},mH.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const vH=EE({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 bH=qE({productionPrefix:"q6c85",disableGlobal:!0,seed:""});function xH(){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",zj.render(function(e,t){return YS.createElement(Dq,{generateClassName:t},YS.createElement(xD,{theme:vH},e))}(e,bH),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&zj.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(zj.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}const wH={black:"#000",white:"#fff"},kH="#e57373",SH="#ef5350",CH="#f44336",EH="#d32f2f",MH="#c62828",_H="#f3e5f5",qH="#ce93d8",DH="#ba68c8",RH="#ab47bc",TH="#9c27b0",OH="#7b1fa2",PH="#e3f2fd",NH="#90caf9",AH="#42a5f5",IH="#1976d2",LH="#1565c0",zH="#4fc3f7",FH="#29b6f6",jH="#03a9f4",$H="#0288d1",HH="#01579b",VH="#81c784",BH="#66bb6a",WH="#4caf50",UH="#388e3c",YH="#2e7d32",KH="#1b5e20",GH="#ffb74d",XH="#ffa726",JH="#ff9800",ZH="#f57c00",QH="#e65100",eV={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 tV(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 nV=Object.freeze({__proto__:null,default:tV}),rV="$$material";var iV=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}(),oV="-ms-",aV="-moz-",sV="-webkit-",lV="comm",cV="rule",uV="decl",dV="@keyframes",fV=Math.abs,hV=String.fromCharCode,pV=Object.assign;function mV(e){return e.trim()}function gV(e,t,n){return e.replace(t,n)}function yV(e,t){return e.indexOf(t)}function vV(e,t){return 0|e.charCodeAt(t)}function bV(e,t,n){return e.slice(t,n)}function xV(e){return e.length}function wV(e){return e.length}function kV(e,t){return t.push(e),e}var SV=1,CV=1,EV=0,MV=0,_V=0,qV="";function DV(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:SV,column:CV,length:a,return:""}}function RV(e,t){return pV(DV("",null,null,"",null,null,0),e,{length:-e.length},t)}function TV(){return _V=MV>0?vV(qV,--MV):0,CV--,10===_V&&(CV=1,SV--),_V}function OV(){return _V=MV<EV?vV(qV,MV++):0,CV++,10===_V&&(CV=1,SV++),_V}function PV(){return vV(qV,MV)}function NV(){return MV}function AV(e,t){return bV(qV,e,t)}function IV(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 LV(e){return SV=CV=1,EV=xV(qV=e),MV=0,[]}function zV(e){return qV="",e}function FV(e){return mV(AV(MV-1,HV(91===e?e+2:40===e?e+1:e)))}function jV(e){for(;(_V=PV())&&_V<33;)OV();return IV(e)>2||IV(_V)>3?"":" "}function $V(e,t){for(;--t&&OV()&&!(_V<48||_V>102||_V>57&&_V<65||_V>70&&_V<97););return AV(e,NV()+(t<6&&32==PV()&&32==OV()))}function HV(e){for(;OV();)switch(_V){case e:return MV;case 34:case 39:34!==e&&39!==e&&HV(_V);break;case 40:41===e&&HV(e);break;case 92:OV()}return MV}function VV(e,t){for(;OV()&&e+_V!==57&&(e+_V!==84||47!==PV()););return"/*"+AV(t,MV-1)+"*"+hV(47===e?e:OV())}function BV(e){for(;!IV(PV());)OV();return AV(e,MV)}function WV(e){return zV(UV("",null,null,null,[""],e=LV(e),0,[0],e))}function UV(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=OV()){case 40:if(108!=p&&58==vV(S,d-1)){-1!=yV(S+=gV(FV(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=FV(v);break;case 9:case 10:case 13:case 32:S+=jV(p);break;case 92:S+=$V(NV()-1,7);continue;case 47:switch(PV()){case 42:case 47:kV(KV(VV(OV(),NV()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=xV(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=gV(S,/\f/g,"")),h>0&&xV(S)-d&&kV(h>32?GV(S+";",r,n,d-1):GV(gV(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(kV(k=YV(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)UV(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===vV(S,3)?100:f){case 100:case 108:case 109:case 115:UV(e,k,k,r&&kV(YV(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:UV(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+xV(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==TV())continue;switch(S+=hV(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(xV(S)-1)*y,y=1;break;case 64:45===PV()&&(S+=FV(OV())),f=PV(),u=d=xV(b=S+=BV(NV())),v++;break;case 45:45===p&&2==xV(S)&&(m=0)}}return o}function YV(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=wV(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=bV(e,d+1,d=fV(m=a[p])),b=e;y<h;++y)(b=mV(m>0?f[y]+" "+v:gV(v,/&\f/g,f[y])))&&(l[g++]=b);return DV(e,t,n,0===i?cV:s,l,c,u)}function KV(e,t,n){return DV(e,t,n,lV,hV(_V),bV(e,2,-2),0)}function GV(e,t,n,r){return DV(e,t,n,uV,bV(e,0,r),bV(e,r+1,-1),r)}function XV(e,t){for(var n="",r=wV(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function JV(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case uV:return e.return=e.return||e.value;case lV:return"";case dV:return e.return=e.value+"{"+XV(e.children,r)+"}";case cV:e.value=e.props.join(",")}return xV(n=XV(e.children,r))?e.return=e.value+"{"+n+"}":""}function ZV(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var QV=function(e,t,n){for(var r=0,i=0;r=i,i=PV(),38===r&&12===i&&(t[n]=1),!IV(i);)OV();return AV(e,MV)},eB=function(e,t){return zV(function(e,t){var n=-1,r=44;do{switch(IV(r)){case 0:38===r&&12===PV()&&(t[n]=1),e[n]+=QV(MV-1,t,n);break;case 2:e[n]+=FV(r);break;case 4:if(44===r){e[++n]=58===PV()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hV(r)}}while(r=OV());return e}(LV(e),t))},tB=new WeakMap,nB=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)||tB.get(n))&&!r){tB.set(e,!0);for(var i=[],o=eB(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},rB=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function iB(e,t){switch(function(e,t){return 45^vV(e,0)?(((t<<2^vV(e,0))<<2^vV(e,1))<<2^vV(e,2))<<2^vV(e,3):0}(e,t)){case 5103:return sV+"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 sV+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sV+e+aV+e+oV+e+e;case 6828:case 4268:return sV+e+oV+e+e;case 6165:return sV+e+oV+"flex-"+e+e;case 5187:return sV+e+gV(e,/(\w+).+(:[^]+)/,sV+"box-$1$2"+oV+"flex-$1$2")+e;case 5443:return sV+e+oV+"flex-item-"+gV(e,/flex-|-self/,"")+e;case 4675:return sV+e+oV+"flex-line-pack"+gV(e,/align-content|flex-|-self/,"")+e;case 5548:return sV+e+oV+gV(e,"shrink","negative")+e;case 5292:return sV+e+oV+gV(e,"basis","preferred-size")+e;case 6060:return sV+"box-"+gV(e,"-grow","")+sV+e+oV+gV(e,"grow","positive")+e;case 4554:return sV+gV(e,/([^-])(transform)/g,"$1"+sV+"$2")+e;case 6187:return gV(gV(gV(e,/(zoom-|grab)/,sV+"$1"),/(image-set)/,sV+"$1"),e,"")+e;case 5495:case 3959:return gV(e,/(image-set\([^]*)/,sV+"$1$`$1");case 4968:return gV(gV(e,/(.+:)(flex-)?(.*)/,sV+"box-pack:$3"+oV+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+sV+e+e;case 4095:case 3583:case 4068:case 2532:return gV(e,/(.+)-inline(.+)/,sV+"$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(xV(e)-1-t>6)switch(vV(e,t+1)){case 109:if(45!==vV(e,t+4))break;case 102:return gV(e,/(.+:)(.+)-([^]+)/,"$1"+sV+"$2-$3$1"+aV+(108==vV(e,t+3)?"$3":"$2-$3"))+e;case 115:return~yV(e,"stretch")?iB(gV(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vV(e,t+1))break;case 6444:switch(vV(e,xV(e)-3-(~yV(e,"!important")&&10))){case 107:return gV(e,":",":"+sV)+e;case 101:return gV(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sV+(45===vV(e,14)?"inline-":"")+"box$3$1"+sV+"$2$3$1"+oV+"$2box$3")+e}break;case 5936:switch(vV(e,t+11)){case 114:return sV+e+oV+gV(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sV+e+oV+gV(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sV+e+oV+gV(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sV+e+oV+e+e}return e}var oB=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case uV:e.return=iB(e.value,e.length);break;case dV:return XV([RV(e,{value:gV(e.value,"@","@"+sV)})],r);case cV: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 XV([RV(e,{props:[gV(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return XV([RV(e,{props:[gV(t,/:(plac\w+)/,":"+sV+"input-$1")]}),RV(e,{props:[gV(t,/:(plac\w+)/,":-moz-$1")]}),RV(e,{props:[gV(t,/:(plac\w+)/,oV+"input-$1")]})],r)}return""}))}}],aB=function(e){var t=e.key;if("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||oB,a={},s=[];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,c,u=[JV,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=wV(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([nB,rB].concat(o,u));i=function(e,t,n,r){l=n,function(e){XV(WV(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new iV({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 f.sheet.hydrate(s),f};function sB(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var lB=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cB=function(e,t,n){lB(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var uB={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},dB=/[A-Z]|^ms/g,fB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hB=function(e){return 45===e.charCodeAt(1)},pB=function(e){return null!=e&&"boolean"!=typeof e},mB=ZV((function(e){return hB(e)?e:e.replace(dB,"-$&").toLowerCase()})),gB=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fB,(function(e,t,n){return vB={name:t,styles:n,next:vB},t}))}return 1===uB[e]||hB(e)||"number"!=typeof t||0===t?t:t+"px"};function yB(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 vB={name:i.name,styles:i.styles,next:vB},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)vB={name:a.name,styles:a.styles,next:vB},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+=yB(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]+"}":pB(s)&&(r+=mB(o)+":"+gB(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yB(e,t,a);switch(o){case"animation":case"animationName":r+=mB(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)pB(a[c])&&(r+=mB(o)+":"+gB(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=vB,l=n(e);return vB=s,yB(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var vB,bB=/label:\s*([^\s;{]+)\s*(;|$)/g;function xB(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="";vB=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=yB(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=yB(n,t,e[a]),r)i+=o[a]}bB.lastIndex=0;for(var s,l="";null!==(s=bB.exec(i));)l+="-"+s[1];var c=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:c,styles:i,next:vB}}var wB,kB,SB=!!KS.useInsertionEffect&&KS.useInsertionEffect,CB=SB||function(e){return e()},EB=SB||US.useLayoutEffect,MB=US.createContext("undefined"!=typeof HTMLElement?aB({key:"css"}):null),_B=MB.Provider,qB=function(e){return US.forwardRef((function(t,n){var r=US.useContext(MB);return e(t,r,n)}))},DB=US.createContext({}),RB={}.hasOwnProperty,TB="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OB=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lB(t,n,r),CB((function(){return cB(t,n,r)})),null},PB=qB((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[TB],o=[r],a="";"string"==typeof e.className?a=sB(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=xB(o,void 0,US.useContext(DB));a+=t.key+"-"+s.name;var l={};for(var c in e)RB.call(e,c)&&"css"!==c&&c!==TB&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),US.createElement(US.Fragment,null,US.createElement(OB,{cache:t,serialized:s,isStringTag:"string"==typeof i}),US.createElement(i,l))})),NB=PB,AB=function(e,t){var n=arguments;if(null==t||!RB.call(t,"css"))return US.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=NB,i[1]=function(e,t){var n={};for(var r in t)RB.call(t,r)&&(n[r]=t[r]);return n[TB]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return US.createElement.apply(null,i)};wB=AB||(AB={}),kB||(kB=wB.JSX||(wB.JSX={}));var IB=qB((function(e,t){var n=xB([e.styles],void 0,US.useContext(DB)),r=US.useRef();return EB((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),EB((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cB(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function LB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xB(t)}function zB(){var e=LB.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_"}}}var FB=/^((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)-.*))$/,jB=ZV((function(e){return FB.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$B=function(e){return"theme"!==e},HB=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jB:$B},VB=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},BB=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lB(t,n,r),CB((function(){return cB(t,n,r)})),null},WB=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=VB(t,n,o),l=s||HB(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=qB((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=US.useContext(DB)}"string"==typeof e.className?o=sB(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=xB(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?HB(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),US.createElement(US.Fragment,null,US.createElement(BB,{cache:t,serialized:p,isStringTag:"string"==typeof r}),US.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,$C({},n,r,{shouldForwardProp:VB(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){WB[e]=WB(e)}));var UB={exports:{}},YB={},KB=US,GB=Symbol.for("react.element"),XB=Symbol.for("react.fragment"),JB=Object.prototype.hasOwnProperty,ZB=KB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QB={key:!0,ref:!0,__self:!0,__source:!0};function eW(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)JB.call(t,r)&&!QB.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:GB,type:e,key:o,ref:a,props:i,_owner:ZB.current}}YB.Fragment=XB,YB.jsx=eW,YB.jsxs=eW,UB.exports=YB;var tW=UB.exports;let nW;"object"==typeof document&&(nW=aB({key:"css",prepend:!0}));var rW=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 tW.jsx(IB,{styles:r})}
|
|
42
|
+
*/function $D(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 HD=new Set,VD={};function BD(e,t){WD(e,t),WD(e+"Capture",t)}function WD(e,t){for(VD[e]=t,e=0;e<t.length;e++)HD.add(t[e])}var UD=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),YD=Object.prototype.hasOwnProperty,KD=/^[: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]*$/,GD={},XD={};function JD(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 ZD={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ZD[e]=new JD(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ZD[t]=new JD(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ZD[e]=new JD(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ZD[e]=new JD(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){ZD[e]=new JD(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ZD[e]=new JD(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ZD[e]=new JD(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ZD[e]=new JD(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ZD[e]=new JD(e,5,!1,e.toLowerCase(),null,!1,!1)}));var QD=/[\-:]([a-z])/g;function eR(e){return e[1].toUpperCase()}function tR(e,t,n,r){var i=ZD.hasOwnProperty(t)?ZD[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!!YD.call(XD,e)||!YD.call(GD,e)&&(KD.test(e)?XD[e]=!0:(GD[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(QD,eR);ZD[t]=new JD(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(QD,eR);ZD[t]=new JD(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(QD,eR);ZD[t]=new JD(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ZD[e]=new JD(e,1,!1,e.toLowerCase(),null,!1,!1)})),ZD.xlinkHref=new JD("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ZD[e]=new JD(e,1,!1,e.toLowerCase(),null,!0,!0)}));var nR=FD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,rR=Symbol.for("react.element"),iR=Symbol.for("react.portal"),oR=Symbol.for("react.fragment"),aR=Symbol.for("react.strict_mode"),sR=Symbol.for("react.profiler"),lR=Symbol.for("react.provider"),cR=Symbol.for("react.context"),uR=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.suspense_list"),hR=Symbol.for("react.memo"),pR=Symbol.for("react.lazy"),mR=Symbol.for("react.offscreen"),gR=Symbol.iterator;function yR(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=gR&&e[gR]||e["@@iterator"])?e:null}var vR,bR=Object.assign;function xR(e){if(void 0===vR)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);vR=t&&t[1]||""}return"\n"+vR+e}var wR=!1;function kR(e,t){if(!e||wR)return"";wR=!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{wR=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xR(e):""}function SR(e){switch(e.tag){case 5:return xR(e.type);case 16:return xR("Lazy");case 13:return xR("Suspense");case 19:return xR("SuspenseList");case 0:case 2:case 15:return e=kR(e.type,!1);case 11:return e=kR(e.type.render,!1);case 1:return e=kR(e.type,!0);default:return""}}function CR(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 oR:return"Fragment";case iR:return"Portal";case sR:return"Profiler";case aR:return"StrictMode";case dR:return"Suspense";case fR:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case cR:return(e.displayName||"Context")+".Consumer";case lR:return(e._context.displayName||"Context")+".Provider";case uR:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case hR:return null!==(t=e.displayName||null)?t:CR(e.type)||"Memo";case pR:t=e._payload,e=e._init;try{return CR(e(t))}catch(e){}}return null}function ER(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 CR(t);case 8:return t===aR?"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 MR(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function _R(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qR(e){e._valueTracker||(e._valueTracker=function(e){var t=_R(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 DR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_R(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function RR(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 TR(e,t){var n=t.checked;return bR({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function OR(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=MR(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 PR(e,t){null!=(t=t.checked)&&tR(e,"checked",t,!1)}function NR(e,t){PR(e,t);var n=MR(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")?IR(e,t.type,n):t.hasOwnProperty("defaultValue")&&IR(e,t.type,MR(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function AR(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 IR(e,t,n){"number"===t&&RR(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var LR=Array.isArray;function zR(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=""+MR(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 FR(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error($D(91));return bR({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jR(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error($D(92));if(LR(n)){if(1<n.length)throw Error($D(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:MR(n)}}function $R(e,t){var n=MR(t.value),r=MR(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 HR(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function VR(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 BR(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?VR(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var WR,UR=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((WR=WR||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=WR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function YR(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 KR={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},GR=["Webkit","ms","Moz","O"];function XR(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||KR.hasOwnProperty(e)&&KR[e]?(""+t).trim():t+"px"}function JR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=XR(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(KR).forEach((function(e){GR.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),KR[t]=KR[e]}))}));var ZR=bR({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 QR(e,t){if(t){if(ZR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error($D(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error($D(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error($D(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error($D(62))}}function eT(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 tT=null;function nT(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var rT=null,iT=null,oT=null;function aT(e){if(e=QN(e)){if("function"!=typeof rT)throw Error($D(280));var t=e.stateNode;t&&(t=tA(t),rT(e.stateNode,e.type,t))}}function sT(e){iT?oT?oT.push(e):oT=[e]:iT=e}function lT(){if(iT){var e=iT,t=oT;if(oT=iT=null,aT(e),t)for(e=0;e<t.length;e++)aT(t[e])}}function cT(e,t){return e(t)}function uT(){}var dT=!1;function fT(e,t,n){if(dT)return e(t,n);dT=!0;try{return cT(e,t,n)}finally{dT=!1,(null!==iT||null!==oT)&&(uT(),lT())}}function hT(e,t){var n=e.stateNode;if(null===n)return null;var r=tA(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($D(231,t,typeof n));return n}var pT=!1;if(UD)try{var mT={};Object.defineProperty(mT,"passive",{get:function(){pT=!0}}),window.addEventListener("test",mT,mT),window.removeEventListener("test",mT,mT)}catch(Wh){pT=!1}function gT(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var yT=!1,vT=null,bT=!1,xT=null,wT={onError:function(e){yT=!0,vT=e}};function kT(e,t,n,r,i,o,a,s,l){yT=!1,vT=null,gT.apply(wT,arguments)}function ST(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function CT(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 ET(e){if(ST(e)!==e)throw Error($D(188))}function MT(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ST(e)))throw Error($D(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 ET(i),e;if(o===r)return ET(i),t;o=o.sibling}throw Error($D(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($D(189))}}if(n.alternate!==r)throw Error($D(190))}if(3!==n.tag)throw Error($D(188));return n.stateNode.current===n?e:t}(e),null!==e?_T(e):null}function _T(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=_T(e);if(null!==t)return t;e=e.sibling}return null}var qT=jD.unstable_scheduleCallback,DT=jD.unstable_cancelCallback,RT=jD.unstable_shouldYield,TT=jD.unstable_requestPaint,OT=jD.unstable_now,PT=jD.unstable_getCurrentPriorityLevel,NT=jD.unstable_ImmediatePriority,AT=jD.unstable_UserBlockingPriority,IT=jD.unstable_NormalPriority,LT=jD.unstable_LowPriority,zT=jD.unstable_IdlePriority,FT=null,jT=null;var $T=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(HT(e)/VT|0)|0},HT=Math.log,VT=Math.LN2;var BT=64,WT=4194304;function UT(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 YT(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=UT(s):0!==(o&=a)&&(r=UT(o))}else 0!==(a=n&~i)?r=UT(a):0!==o&&(r=UT(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-$T(t)),r|=e[n],t&=~i;return r}function KT(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 GT(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function XT(){var e=BT;return!(4194240&(BT<<=1))&&(BT=64),e}function JT(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ZT(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-$T(t)]=n}function QT(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$T(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var eO=0;function tO(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var nO,rO,iO,oO,aO,sO=!1,lO=[],cO=null,uO=null,dO=null,fO=new Map,hO=new Map,pO=[],mO="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 gO(e,t){switch(e){case"focusin":case"focusout":cO=null;break;case"dragenter":case"dragleave":uO=null;break;case"mouseover":case"mouseout":dO=null;break;case"pointerover":case"pointerout":fO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hO.delete(t.pointerId)}}function yO(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=QN(t))&&rO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vO(e){var t=ZN(e.target);if(null!==t){var n=ST(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=CT(n)))return e.blockedOn=t,void aO(e.priority,(function(){iO(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 bO(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=RO(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=QN(n))&&rO(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tT=r,n.target.dispatchEvent(r),tT=null,t.shift()}return!0}function xO(e,t,n){bO(e)&&n.delete(t)}function wO(){sO=!1,null!==cO&&bO(cO)&&(cO=null),null!==uO&&bO(uO)&&(uO=null),null!==dO&&bO(dO)&&(dO=null),fO.forEach(xO),hO.forEach(xO)}function kO(e,t){e.blockedOn===t&&(e.blockedOn=null,sO||(sO=!0,jD.unstable_scheduleCallback(jD.unstable_NormalPriority,wO)))}function SO(e){function t(t){return kO(t,e)}if(0<lO.length){kO(lO[0],e);for(var n=1;n<lO.length;n++){var r=lO[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==cO&&kO(cO,e),null!==uO&&kO(uO,e),null!==dO&&kO(dO,e),fO.forEach(t),hO.forEach(t),n=0;n<pO.length;n++)(r=pO[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pO.length&&null===(n=pO[0]).blockedOn;)vO(n),null===n.blockedOn&&pO.shift()}var CO=nR.ReactCurrentBatchConfig,EO=!0;function MO(e,t,n,r){var i=eO,o=CO.transition;CO.transition=null;try{eO=1,qO(e,t,n,r)}finally{eO=i,CO.transition=o}}function _O(e,t,n,r){var i=eO,o=CO.transition;CO.transition=null;try{eO=4,qO(e,t,n,r)}finally{eO=i,CO.transition=o}}function qO(e,t,n,r){if(EO){var i=RO(e,t,n,r);if(null===i)CN(e,t,r,DO,n),gO(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return cO=yO(cO,e,t,n,r,i),!0;case"dragenter":return uO=yO(uO,e,t,n,r,i),!0;case"mouseover":return dO=yO(dO,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return fO.set(o,yO(fO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,hO.set(o,yO(hO.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(gO(e,r),4&t&&-1<mO.indexOf(e)){for(;null!==i;){var o=QN(i);if(null!==o&&nO(o),null===(o=RO(e,t,n,r))&&CN(e,t,r,DO,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else CN(e,t,r,null,n)}}var DO=null;function RO(e,t,n,r){if(DO=null,null!==(e=ZN(e=nT(r))))if(null===(t=ST(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=CT(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 DO=e,null}function TO(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(PT()){case NT:return 1;case AT:return 4;case IT:case LT:return 16;case zT:return 536870912;default:return 16}default:return 16}}var OO=null,PO=null,NO=null;function AO(){if(NO)return NO;var e,t,n=PO,r=n.length,i="value"in OO?OO.value:OO.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 NO=i.slice(e,1<t?1-t:void 0)}function IO(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 LO(){return!0}function zO(){return!1}function FO(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)?LO:zO,this.isPropagationStopped=zO,this}return bR(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=LO)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=LO)},persist:function(){},isPersistent:LO}),t}var jO,$O,HO,VO={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},BO=FO(VO),WO=bR({},VO,{view:0,detail:0}),UO=FO(WO),YO=bR({},WO,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oP,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!==HO&&(HO&&"mousemove"===e.type?(jO=e.screenX-HO.screenX,$O=e.screenY-HO.screenY):$O=jO=0,HO=e),jO)},movementY:function(e){return"movementY"in e?e.movementY:$O}}),KO=FO(YO),GO=FO(bR({},YO,{dataTransfer:0})),XO=FO(bR({},WO,{relatedTarget:0})),JO=FO(bR({},VO,{animationName:0,elapsedTime:0,pseudoElement:0})),ZO=bR({},VO,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QO=FO(ZO),eP=FO(bR({},VO,{data:0})),tP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nP={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"},rP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=rP[e])&&!!t[e]}function oP(){return iP}var aP=bR({},WO,{key:function(e){if(e.key){var t=tP[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=IO(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?nP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oP,charCode:function(e){return"keypress"===e.type?IO(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?IO(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),sP=FO(aP),lP=FO(bR({},YO,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),cP=FO(bR({},WO,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oP})),uP=FO(bR({},VO,{propertyName:0,elapsedTime:0,pseudoElement:0})),dP=bR({},YO,{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}),fP=FO(dP),hP=[9,13,27,32],pP=UD&&"CompositionEvent"in window,mP=null;UD&&"documentMode"in document&&(mP=document.documentMode);var gP=UD&&"TextEvent"in window&&!mP,yP=UD&&(!pP||mP&&8<mP&&11>=mP),vP=String.fromCharCode(32),bP=!1;function xP(e,t){switch(e){case"keyup":return-1!==hP.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wP(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var kP=!1;var SP={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 CP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!SP[e.type]:"textarea"===t}function EP(e,t,n,r){sT(r),0<(t=MN(t,"onChange")).length&&(n=new BO("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var MP=null,_P=null;function qP(e){vN(e,0)}function DP(e){if(DR(eA(e)))return e}function RP(e,t){if("change"===e)return t}var TP=!1;if(UD){var OP;if(UD){var PP="oninput"in document;if(!PP){var NP=document.createElement("div");NP.setAttribute("oninput","return;"),PP="function"==typeof NP.oninput}OP=PP}else OP=!1;TP=OP&&(!document.documentMode||9<document.documentMode)}function AP(){MP&&(MP.detachEvent("onpropertychange",IP),_P=MP=null)}function IP(e){if("value"===e.propertyName&&DP(_P)){var t=[];EP(t,_P,e,nT(e)),fT(qP,t)}}function LP(e,t,n){"focusin"===e?(AP(),_P=n,(MP=t).attachEvent("onpropertychange",IP)):"focusout"===e&&AP()}function zP(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return DP(_P)}function FP(e,t){if("click"===e)return DP(t)}function jP(e,t){if("input"===e||"change"===e)return DP(t)}var $P="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function HP(e,t){if($P(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(!YD.call(t,i)||!$P(e[i],t[i]))return!1}return!0}function VP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function BP(e,t){var n,r=VP(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=VP(r)}}function WP(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?WP(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function UP(){for(var e=window,t=RR();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=RR((e=t.contentWindow).document)}return t}function YP(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 KP(e){var t=UP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WP(n.ownerDocument.documentElement,n)){if(null!==r&&YP(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=BP(n,o);var a=BP(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 GP=UD&&"documentMode"in document&&11>=document.documentMode,XP=null,JP=null,ZP=null,QP=!1;function eN(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;QP||null==XP||XP!==RR(r)||("selectionStart"in(r=XP)&&YP(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},ZP&&HP(ZP,r)||(ZP=r,0<(r=MN(JP,"onSelect")).length&&(t=new BO("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=XP)))}function tN(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nN={animationend:tN("Animation","AnimationEnd"),animationiteration:tN("Animation","AnimationIteration"),animationstart:tN("Animation","AnimationStart"),transitionend:tN("Transition","TransitionEnd")},rN={},iN={};function oN(e){if(rN[e])return rN[e];if(!nN[e])return e;var t,n=nN[e];for(t in n)if(n.hasOwnProperty(t)&&t in iN)return rN[e]=n[t];return e}UD&&(iN=document.createElement("div").style,"AnimationEvent"in window||(delete nN.animationend.animation,delete nN.animationiteration.animation,delete nN.animationstart.animation),"TransitionEvent"in window||delete nN.transitionend.transition);var aN=oN("animationend"),sN=oN("animationiteration"),lN=oN("animationstart"),cN=oN("transitionend"),uN=new Map,dN="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 fN(e,t){uN.set(e,t),BD(t,[e])}for(var hN=0;hN<dN.length;hN++){var pN=dN[hN];fN(pN.toLowerCase(),"on"+(pN[0].toUpperCase()+pN.slice(1)))}fN(aN,"onAnimationEnd"),fN(sN,"onAnimationIteration"),fN(lN,"onAnimationStart"),fN("dblclick","onDoubleClick"),fN("focusin","onFocus"),fN("focusout","onBlur"),fN(cN,"onTransitionEnd"),WD("onMouseEnter",["mouseout","mouseover"]),WD("onMouseLeave",["mouseout","mouseover"]),WD("onPointerEnter",["pointerout","pointerover"]),WD("onPointerLeave",["pointerout","pointerover"]),BD("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),BD("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),BD("onBeforeInput",["compositionend","keypress","textInput","paste"]),BD("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),BD("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),BD("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mN="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(" "),gN=new Set("cancel close invalid load scroll toggle".split(" ").concat(mN));function yN(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(kT.apply(this,arguments),yT){if(!yT)throw Error($D(198));var c=vT;yT=!1,vT=null,bT||(bT=!0,xT=c)}}(r,t,void 0,e),e.currentTarget=null}function vN(e,t){t=!!(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,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;yN(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;yN(i,s,c),o=l}}}if(bT)throw e=xT,bT=!1,xT=null,e}function bN(e,t){var n=t[GN];void 0===n&&(n=t[GN]=new Set);var r=e+"__bubble";n.has(r)||(SN(t,e,2,!1),n.add(r))}function xN(e,t,n){var r=0;t&&(r|=4),SN(n,e,r,t)}var wN="_reactListening"+Math.random().toString(36).slice(2);function kN(e){if(!e[wN]){e[wN]=!0,HD.forEach((function(t){"selectionchange"!==t&&(gN.has(t)||xN(t,!1,e),xN(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[wN]||(t[wN]=!0,xN("selectionchange",!1,t))}}function SN(e,t,n,r){switch(TO(t)){case 1:var i=MO;break;case 4:i=_O;break;default:i=qO}n=i.bind(null,t,n,e),i=void 0,!pT||"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 CN(e,t,n,r,i){var o=r;if(!(1&t||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=ZN(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}fT((function(){var r=o,i=nT(n),a=[];e:{var s=uN.get(e);if(void 0!==s){var l=BO,c=e;switch(e){case"keypress":if(0===IO(n))break e;case"keydown":case"keyup":l=sP;break;case"focusin":c="focus",l=XO;break;case"focusout":c="blur",l=XO;break;case"beforeblur":case"afterblur":l=XO;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=KO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=GO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=cP;break;case aN:case sN:case lN:l=JO;break;case cN:l=uP;break;case"scroll":l=UO;break;case"wheel":l=fP;break;case"copy":case"cut":case"paste":l=QO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=lP}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=hT(p,f))&&u.push(EN(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===tT||!(c=n.relatedTarget||n.fromElement)||!ZN(c)&&!c[KN])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ZN(c):null)&&(c!==(d=ST(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=KO,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=lP,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:eA(l),h=null==c?s:eA(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,ZN(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=_N(h))p++;for(h=0,m=f;m;m=_N(m))h++;for(;0<p-h;)u=_N(u),p--;for(;0<h-p;)f=_N(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=_N(u),f=_N(f)}u=null}else u=null;null!==l&&qN(a,s,l,u,!1),null!==c&&null!==d&&qN(a,d,c,u,!0)}if("select"===(l=(s=r?eA(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=RP;else if(CP(s))if(TP)g=jP;else{g=zP;var y=LP}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=FP);switch(g&&(g=g(e,r))?EP(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&IR(s,"number",s.value)),y=r?eA(r):window,e){case"focusin":(CP(y)||"true"===y.contentEditable)&&(XP=y,JP=r,ZP=null);break;case"focusout":ZP=JP=XP=null;break;case"mousedown":QP=!0;break;case"contextmenu":case"mouseup":case"dragend":QP=!1,eN(a,n,i);break;case"selectionchange":if(GP)break;case"keydown":case"keyup":eN(a,n,i)}var v;if(pP)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 kP?xP(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(yP&&"ko"!==n.locale&&(kP||"onCompositionStart"!==b?"onCompositionEnd"===b&&kP&&(v=AO()):(PO="value"in(OO=i)?OO.value:OO.textContent,kP=!0)),0<(y=MN(r,b)).length&&(b=new eP(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=wP(n))&&(b.data=v))),(v=gP?function(e,t){switch(e){case"compositionend":return wP(t);case"keypress":return 32!==t.which?null:(bP=!0,vP);case"textInput":return(e=t.data)===vP&&bP?null:e;default:return null}}(e,n):function(e,t){if(kP)return"compositionend"===e||!pP&&xP(e,t)?(e=AO(),NO=PO=OO=null,kP=!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 yP&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=MN(r,"onBeforeInput")).length&&(i=new eP("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}vN(a,t)}))}function EN(e,t,n){return{instance:e,listener:t,currentTarget:n}}function MN(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=hT(e,n))&&r.unshift(EN(e,o,i)),null!=(o=hT(e,t))&&r.push(EN(e,o,i))),e=e.return}return r}function _N(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qN(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=hT(n,o))&&a.unshift(EN(n,l,s)):i||null!=(l=hT(n,o))&&a.push(EN(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var DN=/\r\n?/g,RN=/\u0000|\uFFFD/g;function TN(e){return("string"==typeof e?e:""+e).replace(DN,"\n").replace(RN,"")}function ON(e,t,n){if(t=TN(t),TN(e)!==t&&n)throw Error($D(425))}function PN(){}var NN=null,AN=null;function IN(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 LN="function"==typeof setTimeout?setTimeout:void 0,zN="function"==typeof clearTimeout?clearTimeout:void 0,FN="function"==typeof Promise?Promise:void 0,jN="function"==typeof queueMicrotask?queueMicrotask:void 0!==FN?function(e){return FN.resolve(null).then(e).catch($N)}:LN;function $N(e){setTimeout((function(){throw e}))}function HN(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 SO(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);SO(t)}function VN(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 BN(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 WN=Math.random().toString(36).slice(2),UN="__reactFiber$"+WN,YN="__reactProps$"+WN,KN="__reactContainer$"+WN,GN="__reactEvents$"+WN,XN="__reactListeners$"+WN,JN="__reactHandles$"+WN;function ZN(e){var t=e[UN];if(t)return t;for(var n=e.parentNode;n;){if(t=n[KN]||n[UN]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=BN(e);null!==e;){if(n=e[UN])return n;e=BN(e)}return t}n=(e=n).parentNode}return null}function QN(e){return!(e=e[UN]||e[KN])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function eA(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error($D(33))}function tA(e){return e[YN]||null}var nA=[],rA=-1;function iA(e){return{current:e}}function oA(e){0>rA||(e.current=nA[rA],nA[rA]=null,rA--)}function aA(e,t){rA++,nA[rA]=e.current,e.current=t}var sA={},lA=iA(sA),cA=iA(!1),uA=sA;function dA(e,t){var n=e.type.contextTypes;if(!n)return sA;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 fA(e){return null!=(e=e.childContextTypes)}function hA(){oA(cA),oA(lA)}function pA(e,t,n){if(lA.current!==sA)throw Error($D(168));aA(lA,t),aA(cA,n)}function mA(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($D(108,ER(e)||"Unknown",i));return bR({},n,r)}function gA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sA,uA=lA.current,aA(lA,e),aA(cA,cA.current),!0}function yA(e,t,n){var r=e.stateNode;if(!r)throw Error($D(169));n?(e=mA(e,t,uA),r.__reactInternalMemoizedMergedChildContext=e,oA(cA),oA(lA),aA(lA,e)):oA(cA),aA(cA,n)}var vA=null,bA=!1,xA=!1;function wA(e){null===vA?vA=[e]:vA.push(e)}function kA(){if(!xA&&null!==vA){xA=!0;var e=0,t=eO;try{var n=vA;for(eO=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}vA=null,bA=!1}catch(t){throw null!==vA&&(vA=vA.slice(e+1)),qT(NT,kA),t}finally{eO=t,xA=!1}}return null}var SA=[],CA=0,EA=null,MA=0,_A=[],qA=0,DA=null,RA=1,TA="";function OA(e,t){SA[CA++]=MA,SA[CA++]=EA,EA=e,MA=t}function PA(e,t,n){_A[qA++]=RA,_A[qA++]=TA,_A[qA++]=DA,DA=e;var r=RA;e=TA;var i=32-$T(r)-1;r&=~(1<<i),n+=1;var o=32-$T(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,RA=1<<32-$T(t)+i|n<<i|r,TA=o+e}else RA=1<<o|n<<i|r,TA=e}function NA(e){null!==e.return&&(OA(e,1),PA(e,1,0))}function AA(e){for(;e===EA;)EA=SA[--CA],SA[CA]=null,MA=SA[--CA],SA[CA]=null;for(;e===DA;)DA=_A[--qA],_A[qA]=null,TA=_A[--qA],_A[qA]=null,RA=_A[--qA],_A[qA]=null}var IA=null,LA=null,zA=!1,FA=null;function jA(e,t){var n=uj(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 $A(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,IA=e,LA=VN(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,IA=e,LA=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==DA?{id:RA,overflow:TA}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=uj(18,null,null,0)).stateNode=t,n.return=e,e.child=n,IA=e,LA=null,!0);default:return!1}}function HA(e){return!(!(1&e.mode)||128&e.flags)}function VA(e){if(zA){var t=LA;if(t){var n=t;if(!$A(e,t)){if(HA(e))throw Error($D(418));t=VN(n.nextSibling);var r=IA;t&&$A(e,t)?jA(r,n):(e.flags=-4097&e.flags|2,zA=!1,IA=e)}}else{if(HA(e))throw Error($D(418));e.flags=-4097&e.flags|2,zA=!1,IA=e}}}function BA(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;IA=e}function WA(e){if(e!==IA)return!1;if(!zA)return BA(e),zA=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!IN(e.type,e.memoizedProps)),t&&(t=LA)){if(HA(e))throw UA(),Error($D(418));for(;t;)jA(e,t),t=VN(t.nextSibling)}if(BA(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error($D(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){LA=VN(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}LA=null}}else LA=IA?VN(e.stateNode.nextSibling):null;return!0}function UA(){for(var e=LA;e;)e=VN(e.nextSibling)}function YA(){LA=IA=null,zA=!1}function KA(e){null===FA?FA=[e]:FA.push(e)}var GA=nR.ReactCurrentBatchConfig;function XA(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($D(309));var r=n.stateNode}if(!r)throw Error($D(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;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error($D(284));if(!n._owner)throw Error($D(290,e))}return e}function JA(e,t){throw e=Object.prototype.toString.call(t),Error($D(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ZA(e){return(0,e._init)(e._payload)}function QA(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=fj(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=gj(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===oR?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===pR&&ZA(o)===t.type)?((r=i(t,n.props)).ref=XA(e,t,n),r.return=e,r):((r=hj(n.type,n.key,n.props,null,e.mode,r)).ref=XA(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=yj(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=pj(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=gj(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case rR:return(n=hj(t.type,t.key,t.props,null,e.mode,n)).ref=XA(e,null,t),n.return=e,n;case iR:return(t=yj(t,e.mode,n)).return=e,t;case pR:return d(e,(0,t._init)(t._payload),n)}if(LR(t)||yR(t))return(t=pj(t,e.mode,n,null)).return=e,t;JA(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 rR:return n.key===i?l(e,t,n,r):null;case iR:return n.key===i?c(e,t,n,r):null;case pR:return f(e,t,(i=n._init)(n._payload),r)}if(LR(n)||yR(n))return null!==i?null:u(e,t,n,r,null);JA(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 rR:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case iR:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case pR:return h(e,t,n,(0,r._init)(r._payload),i)}if(LR(r)||yR(r))return u(t,e=e.get(n)||null,r,i,null);JA(t,r)}return null}function p(i,a,s,l){for(var c=null,u=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===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),zA&&OA(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return zA&&OA(i,m),c}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===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),zA&&OA(i,m),c}function m(i,a,s,l){var c=yR(s);if("function"!=typeof c)throw Error($D(150));if(null==(s=c.call(s)))throw Error($D(151));for(var u=c=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===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),zA&&OA(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return zA&&OA(i,m),c}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===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),zA&&OA(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===oR&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case rR:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===oR){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===pR&&ZA(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=XA(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===oR?((o=pj(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=hj(s.type,s.key,s.props,null,r.mode,l)).ref=XA(r,o,s),l.return=r,r=l)}return a(r);case iR:e:{for(u=s.key;null!==o;){if(o.key===u){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=yj(s,r.mode,l)).return=r,r=o}return a(r);case pR:return e(r,o,(u=s._init)(s._payload),l)}if(LR(s))return p(r,o,s,l);if(yR(s))return m(r,o,s,l);JA(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=gj(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var eI=QA(!0),tI=QA(!1),nI=iA(null),rI=null,iI=null,oI=null;function aI(){oI=iI=rI=null}function sI(e){var t=nI.current;oA(nI),e._currentValue=t}function lI(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 cI(e,t){rI=e,oI=iI=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ZL=!0),e.firstContext=null)}function uI(e){var t=e._currentValue;if(oI!==e)if(e={context:e,memoizedValue:t,next:null},null===iI){if(null===rI)throw Error($D(308));iI=e,rI.dependencies={lanes:0,firstContext:e}}else iI=iI.next=e;return t}var dI=null;function fI(e){null===dI?dI=[e]:dI.push(e)}function hI(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,fI(t)):(n.next=i.next,i.next=n),t.interleaved=n,pI(e,r)}function pI(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 mI=!1;function gI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yI(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 vI(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bI(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&sF){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pI(e,n)}return null===(i=r.interleaved)?(t.next=t,fI(r)):(t.next=i.next,i.next=t),r.interleaved=t,pI(e,n)}function xI(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,QT(e,n)}}function wI(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 kI(e,t,n,r){var i=e.updateQueue;mI=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.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=bR({},d,f);break e;case 2:mI=!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===u?(c=u=h,l=d):u=u.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===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);mF|=a,e.lanes=a,e.memoizedState=d}}function SI(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($D(191,i));i.call(r)}}}var CI={},EI=iA(CI),MI=iA(CI),_I=iA(CI);function qI(e){if(e===CI)throw Error($D(174));return e}function DI(e,t){switch(aA(_I,t),aA(MI,e),aA(EI,CI),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:BR(null,"");break;default:t=BR(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oA(EI),aA(EI,t)}function RI(){oA(EI),oA(MI),oA(_I)}function TI(e){qI(_I.current);var t=qI(EI.current),n=BR(t,e.type);t!==n&&(aA(MI,e),aA(EI,n))}function OI(e){MI.current===e&&(oA(EI),oA(MI))}var PI=iA(0);function NI(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var AI=[];function II(){for(var e=0;e<AI.length;e++)AI[e]._workInProgressVersionPrimary=null;AI.length=0}var LI=nR.ReactCurrentDispatcher,zI=nR.ReactCurrentBatchConfig,FI=0,jI=null,$I=null,HI=null,VI=!1,BI=!1,WI=0,UI=0;function YI(){throw Error($D(321))}function KI(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$P(e[n],t[n]))return!1;return!0}function GI(e,t,n,r,i,o){if(FI=o,jI=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,LI.current=null===e||null===e.memoizedState?OL:PL,e=n(r,i),BI){o=0;do{if(BI=!1,WI=0,25<=o)throw Error($D(301));o+=1,HI=$I=null,t.updateQueue=null,LI.current=NL,e=n(r,i)}while(BI)}if(LI.current=TL,t=null!==$I&&null!==$I.next,FI=0,HI=$I=jI=null,VI=!1,t)throw Error($D(300));return e}function XI(){var e=0!==WI;return WI=0,e}function JI(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===HI?jI.memoizedState=HI=e:HI=HI.next=e,HI}function ZI(){if(null===$I){var e=jI.alternate;e=null!==e?e.memoizedState:null}else e=$I.next;var t=null===HI?jI.memoizedState:HI.next;if(null!==t)HI=t,$I=e;else{if(null===e)throw Error($D(310));e={memoizedState:($I=e).memoizedState,baseState:$I.baseState,baseQueue:$I.baseQueue,queue:$I.queue,next:null},null===HI?jI.memoizedState=HI=e:HI=HI.next=e}return HI}function QI(e,t){return"function"==typeof t?t(e):t}function eL(e){var t=ZI(),n=t.queue;if(null===n)throw Error($D(311));n.lastRenderedReducer=e;var r=$I,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,c=o;do{var u=c.lane;if((FI&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,jI.lanes|=u,mF|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,$P(r,t.memoizedState)||(ZL=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,jI.lanes|=o,mF|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tL(e){var t=ZI(),n=t.queue;if(null===n)throw Error($D(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);$P(o,t.memoizedState)||(ZL=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function nL(){}function rL(e,t){var n=jI,r=ZI(),i=t(),o=!$P(r.memoizedState,i);if(o&&(r.memoizedState=i,ZL=!0),r=r.queue,mL(aL.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==HI&&1&HI.memoizedState.tag){if(n.flags|=2048,uL(9,oL.bind(null,n,r,i,t),void 0,null),null===lF)throw Error($D(349));30&FI||iL(n,t,i)}return i}function iL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=jI.updateQueue)?(t={lastEffect:null,stores:null},jI.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function oL(e,t,n,r){t.value=n,t.getSnapshot=r,sL(t)&&lL(e)}function aL(e,t,n){return n((function(){sL(t)&&lL(e)}))}function sL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$P(e,n)}catch(e){return!0}}function lL(e){var t=pI(e,1);null!==t&&AF(t,e,1,-1)}function cL(e){var t=JI();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:QI,lastRenderedState:e},t.queue=e,e=e.dispatch=_L.bind(null,jI,e),[t.memoizedState,e]}function uL(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=jI.updateQueue)?(t={lastEffect:null,stores:null},jI.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 dL(){return ZI().memoizedState}function fL(e,t,n,r){var i=JI();jI.flags|=e,i.memoizedState=uL(1|t,n,void 0,void 0===r?null:r)}function hL(e,t,n,r){var i=ZI();r=void 0===r?null:r;var o=void 0;if(null!==$I){var a=$I.memoizedState;if(o=a.destroy,null!==r&&KI(r,a.deps))return void(i.memoizedState=uL(t,n,o,r))}jI.flags|=e,i.memoizedState=uL(1|t,n,o,r)}function pL(e,t){return fL(8390656,8,e,t)}function mL(e,t){return hL(2048,8,e,t)}function gL(e,t){return hL(4,2,e,t)}function yL(e,t){return hL(4,4,e,t)}function vL(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 bL(e,t,n){return n=null!=n?n.concat([e]):null,hL(4,4,vL.bind(null,t,e),n)}function xL(){}function wL(e,t){var n=ZI();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&KI(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kL(e,t){var n=ZI();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&KI(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function SL(e,t,n){return 21&FI?($P(n,t)||(n=XT(),jI.lanes|=n,mF|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ZL=!0),e.memoizedState=n)}function CL(e,t){var n=eO;eO=0!==n&&4>n?n:4,e(!0);var r=zI.transition;zI.transition={};try{e(!1),t()}finally{eO=n,zI.transition=r}}function EL(){return ZI().memoizedState}function ML(e,t,n){var r=NF(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qL(e))DL(t,n);else if(null!==(n=hI(e,t,n,r))){AF(n,e,r,PF()),RL(n,t,r)}}function _L(e,t,n){var r=NF(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qL(e))DL(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,$P(s,a)){var l=t.interleaved;return null===l?(i.next=i,fI(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=hI(e,t,i,r))&&(AF(n,e,r,i=PF()),RL(n,t,r))}}function qL(e){var t=e.alternate;return e===jI||null!==t&&t===jI}function DL(e,t){BI=VI=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RL(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,QT(e,n)}}var TL={readContext:uI,useCallback:YI,useContext:YI,useEffect:YI,useImperativeHandle:YI,useInsertionEffect:YI,useLayoutEffect:YI,useMemo:YI,useReducer:YI,useRef:YI,useState:YI,useDebugValue:YI,useDeferredValue:YI,useTransition:YI,useMutableSource:YI,useSyncExternalStore:YI,useId:YI,unstable_isNewReconciler:!1},OL={readContext:uI,useCallback:function(e,t){return JI().memoizedState=[e,void 0===t?null:t],e},useContext:uI,useEffect:pL,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,fL(4194308,4,vL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fL(4194308,4,e,t)},useInsertionEffect:function(e,t){return fL(4,2,e,t)},useMemo:function(e,t){var n=JI();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=JI();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=ML.bind(null,jI,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},JI().memoizedState=e},useState:cL,useDebugValue:xL,useDeferredValue:function(e){return JI().memoizedState=e},useTransition:function(){var e=cL(!1),t=e[0];return e=CL.bind(null,e[1]),JI().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jI,i=JI();if(zA){if(void 0===n)throw Error($D(407));n=n()}else{if(n=t(),null===lF)throw Error($D(349));30&FI||iL(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,pL(aL.bind(null,r,o,e),[e]),r.flags|=2048,uL(9,oL.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=JI(),t=lF.identifierPrefix;if(zA){var n=TA;t=":"+t+"R"+(n=(RA&~(1<<32-$T(RA)-1)).toString(32)+n),0<(n=WI++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=UI++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},PL={readContext:uI,useCallback:wL,useContext:uI,useEffect:mL,useImperativeHandle:bL,useInsertionEffect:gL,useLayoutEffect:yL,useMemo:kL,useReducer:eL,useRef:dL,useState:function(){return eL(QI)},useDebugValue:xL,useDeferredValue:function(e){return SL(ZI(),$I.memoizedState,e)},useTransition:function(){return[eL(QI)[0],ZI().memoizedState]},useMutableSource:nL,useSyncExternalStore:rL,useId:EL,unstable_isNewReconciler:!1},NL={readContext:uI,useCallback:wL,useContext:uI,useEffect:mL,useImperativeHandle:bL,useInsertionEffect:gL,useLayoutEffect:yL,useMemo:kL,useReducer:tL,useRef:dL,useState:function(){return tL(QI)},useDebugValue:xL,useDeferredValue:function(e){var t=ZI();return null===$I?t.memoizedState=e:SL(t,$I.memoizedState,e)},useTransition:function(){return[tL(QI)[0],ZI().memoizedState]},useMutableSource:nL,useSyncExternalStore:rL,useId:EL,unstable_isNewReconciler:!1};function AL(e,t){if(e&&e.defaultProps){for(var n in t=bR({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function IL(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:bR({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var LL={isMounted:function(e){return!!(e=e._reactInternals)&&ST(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=PF(),i=NF(e),o=vI(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=bI(e,o,i))&&(AF(t,e,i,r),xI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=PF(),i=NF(e),o=vI(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=bI(e,o,i))&&(AF(t,e,i,r),xI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=PF(),r=NF(e),i=vI(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=bI(e,i,r))&&(AF(t,e,r,n),xI(t,e,r))}};function zL(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!HP(n,r)||!HP(i,o))}function FL(e,t,n){var r=!1,i=sA,o=t.contextType;return"object"==typeof o&&null!==o?o=uI(o):(i=fA(t)?uA:lA.current,o=(r=null!=(r=t.contextTypes))?dA(e,i):sA),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=LL,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function jL(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&&LL.enqueueReplaceState(t,t.state,null)}function $L(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},gI(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=uI(o):(o=fA(t)?uA:lA.current,i.context=dA(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(IL(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&&LL.enqueueReplaceState(i,i.state,null),kI(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function HL(e,t){try{var n="",r=t;do{n+=SR(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 VL(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function BL(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var WL="function"==typeof WeakMap?WeakMap:Map;function UL(e,t,n){(n=vI(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){SF||(SF=!0,CF=r),BL(0,t)},n}function YL(e,t,n){(n=vI(-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(){BL(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){BL(0,t),"function"!=typeof r&&(null===EF?EF=new Set([this]):EF.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function KL(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new WL;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=ij.bind(null,e,t,n),t.then(e,e))}function GL(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 XL(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=vI(-1,1)).tag=2,bI(n,t,1))),n.lanes|=1),e)}var JL=nR.ReactCurrentOwner,ZL=!1;function QL(e,t,n,r){t.child=null===e?tI(t,null,n,r):eI(t,e.child,n,r)}function ez(e,t,n,r,i){n=n.render;var o=t.ref;return cI(t,i),r=GI(e,t,n,r,o,i),n=XI(),null===e||ZL?(zA&&n&&NA(t),t.flags|=1,QL(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sz(e,t,i))}function tz(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||dj(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=hj(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,nz(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:HP)(a,r)&&e.ref===t.ref)return Sz(e,t,i)}return t.flags|=1,(e=fj(o,r)).ref=t.ref,e.return=t,t.child=e}function nz(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(HP(o,r)&&e.ref===t.ref){if(ZL=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,Sz(e,t,i);131072&e.flags&&(ZL=!0)}}return oz(e,t,n,r,i)}function rz(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(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,aA(fF,dF),dF|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,aA(fF,dF),dF|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},aA(fF,dF),dF|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,aA(fF,dF),dF|=r;return QL(e,t,i,n),t.child}function iz(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oz(e,t,n,r,i){var o=fA(n)?uA:lA.current;return o=dA(t,o),cI(t,i),n=GI(e,t,n,r,o,i),r=XI(),null===e||ZL?(zA&&r&&NA(t),t.flags|=1,QL(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sz(e,t,i))}function az(e,t,n,r,i){if(fA(n)){var o=!0;gA(t)}else o=!1;if(cI(t,i),null===t.stateNode)kz(e,t),FL(t,n,r),$L(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=uI(c):c=dA(t,c=fA(n)?uA:lA.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&jL(t,a,r,c),mI=!1;var f=t.memoizedState;a.state=f,kI(t,r,a,i),l=t.memoizedState,s!==r||f!==l||cA.current||mI?("function"==typeof u&&(IL(t,n,u,r),l=t.memoizedState),(s=mI||zL(t,n,s,r,f,l,c))?(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=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yI(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:AL(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=uI(l):l=dA(t,l=fA(n)?uA:lA.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&jL(t,a,r,l),mI=!1,f=t.memoizedState,a.state=f,kI(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||cA.current||mI?("function"==typeof h&&(IL(t,n,h,r),p=t.memoizedState),(c=mI||zL(t,n,c,r,f,p,l)||!1)?(u||"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=c):("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 sz(e,t,n,r,o,i)}function sz(e,t,n,r,i,o){iz(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&yA(t,n,!1),Sz(e,t,o);r=t.stateNode,JL.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=eI(t,e.child,null,o),t.child=eI(t,null,s,o)):QL(e,t,s,o),t.memoizedState=r.state,i&&yA(t,n,!0),t.child}function lz(e){var t=e.stateNode;t.pendingContext?pA(0,t.pendingContext,t.pendingContext!==t.context):t.context&&pA(0,t.context,!1),DI(e,t.containerInfo)}function cz(e,t,n,r,i){return YA(),KA(i),t.flags|=256,QL(e,t,n,r),t.child}var uz,dz,fz,hz,pz={dehydrated:null,treeContext:null,retryLane:0};function mz(e){return{baseLanes:e,cachePool:null,transitions:null}}function gz(e,t,n){var r,i=t.pendingProps,o=PI.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),aA(PI,1&o),null===e)return VA(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=mj(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=pj(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=mz(n),t.memoizedState=pz,e):yz(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,vz(e,t,a,r=VL(Error($D(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=mj({mode:"visible",children:r.children},i,0,null),(o=pj(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&eI(t,e.child,null,a),t.child.memoizedState=mz(a),t.memoizedState=pz,o);if(!(1&t.mode))return vz(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,vz(e,t,a,r=VL(o=Error($D(419)),r,void 0))}if(s=!!(a&e.childLanes),ZL||s){if(null!==(r=lF)){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=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,pI(e,i),AF(r,e,i,-1))}return KF(),vz(e,t,a,r=VL(Error($D(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=aj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,LA=VN(i.nextSibling),IA=t,zA=!0,FA=null,null!==e&&(_A[qA++]=RA,_A[qA++]=TA,_A[qA++]=DA,RA=e.id,TA=e.overflow,DA=t),t=yz(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 1&s||t.child===o?(i=fj(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=fj(r,a):(a=pj(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)?mz(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=pz,i}return e=(a=e.child).sibling,i=fj(a,{mode:"visible",children:i.children}),!(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 yz(e,t){return(t=mj({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function vz(e,t,n,r){return null!==r&&KA(r),eI(t,e.child,null,n),(e=yz(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function bz(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),lI(e.return,t,n)}function xz(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 wz(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(QL(e,t,r.children,n),2&(r=PI.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&bz(e,n,t);else if(19===e.tag)bz(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(aA(PI,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===NI(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xz(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===NI(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xz(t,!0,n,null,o);break;case"together":xz(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function kz(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sz(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mF|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error($D(153));if(null!==t.child){for(n=fj(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=fj(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Cz(e,t){if(!zA)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 Ez(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 Mz(e,t,n){var r=t.pendingProps;switch(AA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ez(t),null;case 1:case 17:return fA(t.type)&&hA(),Ez(t),null;case 3:return r=t.stateNode,RI(),oA(cA),oA(lA),II(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(WA(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==FA&&(FF(FA),FA=null))),dz(e,t),Ez(t),null;case 5:OI(t);var i=qI(_I.current);if(n=t.type,null!==e&&null!=t.stateNode)fz(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error($D(166));return Ez(t),null}if(e=qI(EI.current),WA(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[UN]=t,r[YN]=o,e=!!(1&t.mode),n){case"dialog":bN("cancel",r),bN("close",r);break;case"iframe":case"object":case"embed":bN("load",r);break;case"video":case"audio":for(i=0;i<mN.length;i++)bN(mN[i],r);break;case"source":bN("error",r);break;case"img":case"image":case"link":bN("error",r),bN("load",r);break;case"details":bN("toggle",r);break;case"input":OR(r,o),bN("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},bN("invalid",r);break;case"textarea":jR(r,o),bN("invalid",r)}for(var a in QR(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&ON(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&ON(r.textContent,s,e),i=["children",""+s]):VD.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&bN("scroll",r)}switch(n){case"input":qR(r),AR(r,o,!0);break;case"textarea":qR(r),HR(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=PN)}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=VR(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[UN]=t,e[YN]=r,uz(e,t,!1,!1),t.stateNode=e;e:{switch(a=eT(n,r),n){case"dialog":bN("cancel",e),bN("close",e),i=r;break;case"iframe":case"object":case"embed":bN("load",e),i=r;break;case"video":case"audio":for(i=0;i<mN.length;i++)bN(mN[i],e);i=r;break;case"source":bN("error",e),i=r;break;case"img":case"image":case"link":bN("error",e),bN("load",e),i=r;break;case"details":bN("toggle",e),i=r;break;case"input":OR(e,r),i=TR(e,r),bN("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=bR({},r,{value:void 0}),bN("invalid",e);break;case"textarea":jR(e,r),i=FR(e,r),bN("invalid",e)}for(o in QR(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?JR(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&UR(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&YR(e,l):"number"==typeof l&&YR(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(VD.hasOwnProperty(o)?null!=l&&"onScroll"===o&&bN("scroll",e):null!=l&&tR(e,o,l,a))}switch(n){case"input":qR(e),AR(e,r,!1);break;case"textarea":qR(e),HR(e);break;case"option":null!=r.value&&e.setAttribute("value",""+MR(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?zR(e,!!r.multiple,o,!1):null!=r.defaultValue&&zR(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=PN)}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 Ez(t),null;case 6:if(e&&null!=t.stateNode)hz(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error($D(166));if(n=qI(_I.current),qI(EI.current),WA(t)){if(r=t.stateNode,n=t.memoizedProps,r[UN]=t,(o=r.nodeValue!==n)&&null!==(e=IA))switch(e.tag){case 3:ON(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ON(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[UN]=t,t.stateNode=r}return Ez(t),null;case 13:if(oA(PI),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(zA&&null!==LA&&1&t.mode&&!(128&t.flags))UA(),YA(),t.flags|=98560,o=!1;else if(o=WA(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error($D(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error($D(317));o[UN]=t}else YA(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ez(t),o=!1}else null!==FA&&(FF(FA),FA=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&PI.current?0===hF&&(hF=3):KF())),null!==t.updateQueue&&(t.flags|=4),Ez(t),null);case 4:return RI(),dz(e,t),null===e&&kN(t.stateNode.containerInfo),Ez(t),null;case 10:return sI(t.type._context),Ez(t),null;case 19:if(oA(PI),null===(o=t.memoizedState))return Ez(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)Cz(o,!1);else{if(0!==hF||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=NI(e))){for(t.flags|=128,Cz(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 aA(PI,1&PI.current|2),t.child}e=e.sibling}null!==o.tail&&OT()>wF&&(t.flags|=128,r=!0,Cz(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=NI(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Cz(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!zA)return Ez(t),null}else 2*OT()-o.renderingStartTime>wF&&1073741824!==n&&(t.flags|=128,r=!0,Cz(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=OT(),t.sibling=null,n=PI.current,aA(PI,r?1&n|2:1&n),t):(Ez(t),null);case 22:case 23:return BF(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&dF)&&(Ez(t),6&t.subtreeFlags&&(t.flags|=8192)):Ez(t),null;case 24:case 25:return null}throw Error($D(156,t.tag))}function _z(e,t){switch(AA(t),t.tag){case 1:return fA(t.type)&&hA(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return RI(),oA(cA),oA(lA),II(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return OI(t),null;case 13:if(oA(PI),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error($D(340));YA()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return oA(PI),null;case 4:return RI(),null;case 10:return sI(t.type._context),null;case 22:case 23:return BF(),null;default:return null}}uz=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}},dz=function(){},fz=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qI(EI.current);var o,a=null;switch(n){case"input":i=TR(e,i),r=TR(e,r),a=[];break;case"select":i=bR({},i,{value:void 0}),r=bR({},r,{value:void 0}),a=[];break;case"textarea":i=FR(e,i),r=FR(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=PN)}for(c in QR(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(VD.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)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(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(VD.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&bN("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},hz=function(e,t,n,r){n!==r&&(t.flags|=4)};var qz=!1,Dz=!1,Rz="function"==typeof WeakSet?WeakSet:Set,Tz=null;function Oz(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){rj(e,t,n)}else n.current=null}function Pz(e,t,n){try{n()}catch(n){rj(e,t,n)}}var Nz=!1;function Az(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&&Pz(t,n,o)}i=i.next}while(i!==r)}}function Iz(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 Lz(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 zz(e){var t=e.alternate;null!==t&&(e.alternate=null,zz(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[UN],delete t[YN],delete t[GN],delete t[XN],delete t[JN])),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 Fz(e){return 5===e.tag||3===e.tag||4===e.tag}function jz(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Fz(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 $z(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=PN));else if(4!==r&&null!==(e=e.child))for($z(e,t,n),e=e.sibling;null!==e;)$z(e,t,n),e=e.sibling}function Hz(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(Hz(e,t,n),e=e.sibling;null!==e;)Hz(e,t,n),e=e.sibling}var Vz=null,Bz=!1;function Wz(e,t,n){for(n=n.child;null!==n;)Uz(e,t,n),n=n.sibling}function Uz(e,t,n){if(jT&&"function"==typeof jT.onCommitFiberUnmount)try{jT.onCommitFiberUnmount(FT,n)}catch(e){}switch(n.tag){case 5:Dz||Oz(n,t);case 6:var r=Vz,i=Bz;Vz=null,Wz(e,t,n),Bz=i,null!==(Vz=r)&&(Bz?(e=Vz,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Vz.removeChild(n.stateNode));break;case 18:null!==Vz&&(Bz?(e=Vz,n=n.stateNode,8===e.nodeType?HN(e.parentNode,n):1===e.nodeType&&HN(e,n),SO(e)):HN(Vz,n.stateNode));break;case 4:r=Vz,i=Bz,Vz=n.stateNode.containerInfo,Bz=!0,Wz(e,t,n),Vz=r,Bz=i;break;case 0:case 11:case 14:case 15:if(!Dz&&(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&&(2&o||4&o)&&Pz(n,t,a),i=i.next}while(i!==r)}Wz(e,t,n);break;case 1:if(!Dz&&(Oz(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){rj(n,t,e)}Wz(e,t,n);break;case 21:Wz(e,t,n);break;case 22:1&n.mode?(Dz=(r=Dz)||null!==n.memoizedState,Wz(e,t,n),Dz=r):Wz(e,t,n);break;default:Wz(e,t,n)}}function Yz(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Rz),t.forEach((function(t){var r=sj.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Kz(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:Vz=s.stateNode,Bz=!1;break e;case 3:case 4:Vz=s.stateNode.containerInfo,Bz=!0;break e}s=s.return}if(null===Vz)throw Error($D(160));Uz(o,a,i),Vz=null,Bz=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){rj(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Gz(t,e),t=t.sibling}function Gz(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kz(t,e),Xz(e),4&r){try{Az(3,e,e.return),Iz(3,e)}catch(t){rj(e,e.return,t)}try{Az(5,e,e.return)}catch(t){rj(e,e.return,t)}}break;case 1:Kz(t,e),Xz(e),512&r&&null!==n&&Oz(n,n.return);break;case 5:if(Kz(t,e),Xz(e),512&r&&null!==n&&Oz(n,n.return),32&e.flags){var i=e.stateNode;try{YR(i,"")}catch(t){rj(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&&PR(i,o),eT(s,a);var c=eT(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?JR(i,d):"dangerouslySetInnerHTML"===u?UR(i,d):"children"===u?YR(i,d):tR(i,u,d,c)}switch(s){case"input":NR(i,o);break;case"textarea":$R(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?zR(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?zR(i,!!o.multiple,o.defaultValue,!0):zR(i,!!o.multiple,o.multiple?[]:"",!1))}i[YN]=o}catch(t){rj(e,e.return,t)}}break;case 6:if(Kz(t,e),Xz(e),4&r){if(null===e.stateNode)throw Error($D(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){rj(e,e.return,t)}}break;case 3:if(Kz(t,e),Xz(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{SO(t.containerInfo)}catch(t){rj(e,e.return,t)}break;case 4:default:Kz(t,e),Xz(e);break;case 13:Kz(t,e),Xz(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(xF=OT())),4&r&&Yz(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Dz=(c=Dz)||u,Kz(t,e),Dz=c):Kz(t,e),Xz(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(Tz=e,u=e.child;null!==u;){for(d=Tz=u;null!==Tz;){switch(h=(f=Tz).child,f.tag){case 0:case 11:case 14:case 15:Az(4,f,f.return);break;case 1:Oz(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){rj(r,n,e)}}break;case 5:Oz(f,f.return);break;case 22:if(null!==f.memoizedState){eF(d);continue}}null!==h?(h.return=f,Tz=h):eF(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"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=XR("display",a))}catch(t){rj(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){rj(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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Kz(t,e),Xz(e),4&r&&Yz(e);case 21:}}function Xz(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Fz(n)){var r=n;break e}n=n.return}throw Error($D(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(YR(i,""),r.flags&=-33),Hz(e,jz(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;$z(e,jz(e),o);break;default:throw Error($D(161))}}catch(t){rj(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Jz(e,t,n){Tz=e,Zz(e)}function Zz(e,t,n){for(var r=!!(1&e.mode);null!==Tz;){var i=Tz,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||qz;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Dz;s=qz;var c=Dz;if(qz=a,(Dz=l)&&!c)for(Tz=i;null!==Tz;)l=(a=Tz).child,22===a.tag&&null!==a.memoizedState?tF(i):null!==l?(l.return=a,Tz=l):tF(i);for(;null!==o;)Tz=o,Zz(o),o=o.sibling;Tz=i,qz=s,Dz=c}Qz(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Tz=o):Qz(e)}}function Qz(e){for(;null!==Tz;){var t=Tz;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Dz||Iz(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Dz)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:AL(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&SI(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}SI(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 c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&SO(d)}}}break;default:throw Error($D(163))}Dz||512&t.flags&&Lz(t)}catch(e){rj(t,t.return,e)}}if(t===e){Tz=null;break}if(null!==(n=t.sibling)){n.return=t.return,Tz=n;break}Tz=t.return}}function eF(e){for(;null!==Tz;){var t=Tz;if(t===e){Tz=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Tz=n;break}Tz=t.return}}function tF(e){for(;null!==Tz;){var t=Tz;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Iz(4,t)}catch(e){rj(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){rj(t,i,e)}}var o=t.return;try{Lz(t)}catch(e){rj(t,o,e)}break;case 5:var a=t.return;try{Lz(t)}catch(e){rj(t,a,e)}}}catch(e){rj(t,t.return,e)}if(t===e){Tz=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Tz=s;break}Tz=t.return}}var nF,rF=Math.ceil,iF=nR.ReactCurrentDispatcher,oF=nR.ReactCurrentOwner,aF=nR.ReactCurrentBatchConfig,sF=0,lF=null,cF=null,uF=0,dF=0,fF=iA(0),hF=0,pF=null,mF=0,gF=0,yF=0,vF=null,bF=null,xF=0,wF=1/0,kF=null,SF=!1,CF=null,EF=null,MF=!1,_F=null,qF=0,DF=0,RF=null,TF=-1,OF=0;function PF(){return 6&sF?OT():-1!==TF?TF:TF=OT()}function NF(e){return 1&e.mode?2&sF&&0!==uF?uF&-uF:null!==GA.transition?(0===OF&&(OF=XT()),OF):0!==(e=eO)?e:e=void 0===(e=window.event)?16:TO(e.type):1}function AF(e,t,n,r){if(50<DF)throw DF=0,RF=null,Error($D(185));ZT(e,n,r),2&sF&&e===lF||(e===lF&&(!(2&sF)&&(gF|=n),4===hF&&jF(e,uF)),IF(e,r),1===n&&0===sF&&!(1&t.mode)&&(wF=OT()+500,bA&&kA()))}function IF(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-$T(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=KT(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=YT(e,e===lF?uF:0);if(0===r)null!==n&&DT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&DT(n),1===t)0===e.tag?function(e){bA=!0,wA(e)}($F.bind(null,e)):wA($F.bind(null,e)),jN((function(){!(6&sF)&&kA()})),n=null;else{switch(tO(r)){case 1:n=NT;break;case 4:n=AT;break;case 16:default:n=IT;break;case 536870912:n=zT}n=lj(n,LF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function LF(e,t){if(TF=-1,OF=0,6&sF)throw Error($D(327));var n=e.callbackNode;if(tj()&&e.callbackNode!==n)return null;var r=YT(e,e===lF?uF:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=GF(e,r);else{t=r;var i=sF;sF|=2;var o=YF();for(lF===e&&uF===t||(kF=null,wF=OT()+500,WF(e,t));;)try{JF();break}catch(t){UF(e,t)}aI(),iF.current=o,sF=i,null!==cF?t=0:(lF=null,uF=0,t=hF)}if(0!==t){if(2===t&&(0!==(i=GT(e))&&(r=i,t=zF(e,i))),1===t)throw n=pF,WF(e,0),jF(e,r),IF(e,OT()),n;if(6===t)jF(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!$P(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)||(t=GF(e,r),2===t&&(o=GT(e),0!==o&&(r=o,t=zF(e,o))),1!==t)))throw n=pF,WF(e,0),jF(e,r),IF(e,OT()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error($D(345));case 2:case 5:ej(e,bF,kF);break;case 3:if(jF(e,r),(130023424&r)===r&&10<(t=xF+500-OT())){if(0!==YT(e,0))break;if(((i=e.suspendedLanes)&r)!==r){PF(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=LN(ej.bind(null,e,bF,kF),t);break}ej(e,bF,kF);break;case 4:if(jF(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-$T(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=OT()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rF(r/1960))-r)){e.timeoutHandle=LN(ej.bind(null,e,bF,kF),r);break}ej(e,bF,kF);break;default:throw Error($D(329))}}}return IF(e,OT()),e.callbackNode===n?LF.bind(null,e):null}function zF(e,t){var n=vF;return e.current.memoizedState.isDehydrated&&(WF(e,t).flags|=256),2!==(e=GF(e,t))&&(t=bF,bF=n,null!==t&&FF(t)),e}function FF(e){null===bF?bF=e:bF.push.apply(bF,e)}function jF(e,t){for(t&=~yF,t&=~gF,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$T(t),r=1<<n;e[n]=-1,t&=~r}}function $F(e){if(6&sF)throw Error($D(327));tj();var t=YT(e,0);if(!(1&t))return IF(e,OT()),null;var n=GF(e,t);if(0!==e.tag&&2===n){var r=GT(e);0!==r&&(t=r,n=zF(e,r))}if(1===n)throw n=pF,WF(e,0),jF(e,t),IF(e,OT()),n;if(6===n)throw Error($D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ej(e,bF,kF),IF(e,OT()),null}function HF(e,t){var n=sF;sF|=1;try{return e(t)}finally{0===(sF=n)&&(wF=OT()+500,bA&&kA())}}function VF(e){null!==_F&&0===_F.tag&&!(6&sF)&&tj();var t=sF;sF|=1;var n=aF.transition,r=eO;try{if(aF.transition=null,eO=1,e)return e()}finally{eO=r,aF.transition=n,!(6&(sF=t))&&kA()}}function BF(){dF=fF.current,oA(fF)}function WF(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,zN(n)),null!==cF)for(n=cF.return;null!==n;){var r=n;switch(AA(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&hA();break;case 3:RI(),oA(cA),oA(lA),II();break;case 5:OI(r);break;case 4:RI();break;case 13:case 19:oA(PI);break;case 10:sI(r.type._context);break;case 22:case 23:BF()}n=n.return}if(lF=e,cF=e=fj(e.current,null),uF=dF=t,hF=0,pF=null,yF=gF=mF=0,bF=vF=null,null!==dI){for(t=0;t<dI.length;t++)if(null!==(r=(n=dI[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}dI=null}return e}function UF(e,t){for(;;){var n=cF;try{if(aI(),LI.current=TL,VI){for(var r=jI.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}VI=!1}if(FI=0,HI=$I=jI=null,BI=!1,WI=0,oF.current=null,null===n||null===n.return){hF=1,pF=t,cF=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=uF,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=GL(a);if(null!==h){h.flags&=-257,XL(h,a,s,0,t),1&h.mode&&KL(o,c,t),l=c;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(!(1&t)){KL(o,c,t),KF();break e}l=Error($D(426))}else if(zA&&1&s.mode){var g=GL(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),XL(g,a,s,0,t),KA(HL(l,s));break e}}o=l=HL(l,s),4!==hF&&(hF=2),null===vF?vF=[o]:vF.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,wI(o,UL(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==EF&&EF.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,wI(o,YL(o,s,t));break e}}o=o.return}while(null!==o)}QF(n)}catch(e){t=e,cF===n&&null!==n&&(cF=n=n.return);continue}break}}function YF(){var e=iF.current;return iF.current=TL,null===e?TL:e}function KF(){0!==hF&&3!==hF&&2!==hF||(hF=4),null===lF||!(268435455&mF)&&!(268435455&gF)||jF(lF,uF)}function GF(e,t){var n=sF;sF|=2;var r=YF();for(lF===e&&uF===t||(kF=null,WF(e,t));;)try{XF();break}catch(t){UF(e,t)}if(aI(),sF=n,iF.current=r,null!==cF)throw Error($D(261));return lF=null,uF=0,hF}function XF(){for(;null!==cF;)ZF(cF)}function JF(){for(;null!==cF&&!RT();)ZF(cF)}function ZF(e){var t=nF(e.alternate,e,dF);e.memoizedProps=e.pendingProps,null===t?QF(e):cF=t,oF.current=null}function QF(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=_z(n,t)))return n.flags&=32767,void(cF=n);if(null===e)return hF=6,void(cF=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Mz(n,t,dF)))return void(cF=n);if(null!==(t=t.sibling))return void(cF=t);cF=t=e}while(null!==t);0===hF&&(hF=5)}function ej(e,t,n){var r=eO,i=aF.transition;try{aF.transition=null,eO=1,function(e,t,n,r){do{tj()}while(null!==_F);if(6&sF)throw Error($D(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($D(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-$T(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===lF&&(cF=lF=null,uF=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||MF||(MF=!0,lj(IT,(function(){return tj(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=aF.transition,aF.transition=null;var a=eO;eO=1;var s=sF;sF|=4,oF.current=null,function(e,t){if(NN=EO,YP(e=UP())){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,c=0,u=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&&++c===i&&(s=a),f===o&&++u===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(AN={focusedElem:e,selectionRange:n},EO=!1,Tz=t;null!==Tz;)if(e=(t=Tz).child,1028&t.subtreeFlags&&null!==e)e.return=t,Tz=e;else for(;null!==Tz;){t=Tz;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:AL(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($D(163))}}catch(e){rj(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Tz=e;break}Tz=t.return}p=Nz,Nz=!1}(e,n),Gz(n,e),KP(AN),EO=!!NN,AN=NN=null,e.current=n,Jz(n),TT(),sF=s,eO=a,aF.transition=o}else e.current=n;if(MF&&(MF=!1,_F=e,qF=i),o=e.pendingLanes,0===o&&(EF=null),function(e){if(jT&&"function"==typeof jT.onCommitFiberRoot)try{jT.onCommitFiberRoot(FT,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),IF(e,OT()),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(SF)throw SF=!1,e=CF,CF=null,e;!!(1&qF)&&0!==e.tag&&tj(),o=e.pendingLanes,1&o?e===RF?DF++:(DF=0,RF=e):DF=0,kA()}(e,t,n,r)}finally{aF.transition=i,eO=r}return null}function tj(){if(null!==_F){var e=tO(qF),t=aF.transition,n=eO;try{if(aF.transition=null,eO=16>e?16:e,null===_F)var r=!1;else{if(e=_F,_F=null,qF=0,6&sF)throw Error($D(331));var i=sF;for(sF|=4,Tz=e.current;null!==Tz;){var o=Tz,a=o.child;if(16&Tz.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Tz=c;null!==Tz;){var u=Tz;switch(u.tag){case 0:case 11:case 15:Az(8,u,o)}var d=u.child;if(null!==d)d.return=u,Tz=d;else for(;null!==Tz;){var f=(u=Tz).sibling,h=u.return;if(zz(u),u===c){Tz=null;break}if(null!==f){f.return=h,Tz=f;break}Tz=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)}}Tz=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,Tz=a;else e:for(;null!==Tz;){if(2048&(o=Tz).flags)switch(o.tag){case 0:case 11:case 15:Az(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Tz=y;break e}Tz=o.return}}var v=e.current;for(Tz=v;null!==Tz;){var b=(a=Tz).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,Tz=b;else e:for(a=v;null!==Tz;){if(2048&(s=Tz).flags)try{switch(s.tag){case 0:case 11:case 15:Iz(9,s)}}catch(e){rj(s,s.return,e)}if(s===a){Tz=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Tz=x;break e}Tz=s.return}}if(sF=i,kA(),jT&&"function"==typeof jT.onPostCommitFiberRoot)try{jT.onPostCommitFiberRoot(FT,e)}catch(e){}r=!0}return r}finally{eO=n,aF.transition=t}}return!1}function nj(e,t,n){e=bI(e,t=UL(0,t=HL(n,t),1),1),t=PF(),null!==e&&(ZT(e,1,t),IF(e,t))}function rj(e,t,n){if(3===e.tag)nj(e,e,n);else for(;null!==t;){if(3===t.tag){nj(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===EF||!EF.has(r))){t=bI(t,e=YL(t,e=HL(n,e),1),1),e=PF(),null!==t&&(ZT(t,1,e),IF(t,e));break}}t=t.return}}function ij(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=PF(),e.pingedLanes|=e.suspendedLanes&n,lF===e&&(uF&n)===n&&(4===hF||3===hF&&(130023424&uF)===uF&&500>OT()-xF?WF(e,0):yF|=n),IF(e,t)}function oj(e,t){0===t&&(1&e.mode?(t=WT,!(130023424&(WT<<=1))&&(WT=4194304)):t=1);var n=PF();null!==(e=pI(e,t))&&(ZT(e,t,n),IF(e,n))}function aj(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),oj(e,n)}function sj(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($D(314))}null!==r&&r.delete(t),oj(e,n)}function lj(e,t){return qT(e,t)}function cj(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 uj(e,t,n,r){return new cj(e,t,n,r)}function dj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function fj(e,t){var n=e.alternate;return null===n?((n=uj(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 hj(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)dj(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case oR:return pj(n.children,i,o,t);case aR:a=8,i|=8;break;case sR:return(e=uj(12,n,t,2|i)).elementType=sR,e.lanes=o,e;case dR:return(e=uj(13,n,t,i)).elementType=dR,e.lanes=o,e;case fR:return(e=uj(19,n,t,i)).elementType=fR,e.lanes=o,e;case mR:return mj(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case lR:a=10;break e;case cR:a=9;break e;case uR:a=11;break e;case hR:a=14;break e;case pR:a=16,r=null;break e}throw Error($D(130,null==e?e:typeof e,""))}return(t=uj(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function pj(e,t,n,r){return(e=uj(7,e,r,t)).lanes=n,e}function mj(e,t,n,r){return(e=uj(22,e,r,t)).elementType=mR,e.lanes=n,e.stateNode={isHidden:!1},e}function gj(e,t,n){return(e=uj(6,e,null,t)).lanes=n,e}function yj(e,t,n){return(t=uj(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vj(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=JT(0),this.expirationTimes=JT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=JT(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bj(e,t,n,r,i,o,a,s,l){return e=new vj(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=uj(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gI(o),e}function xj(e){if(!e)return sA;e:{if(ST(e=e._reactInternals)!==e||1!==e.tag)throw Error($D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(fA(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error($D(171))}if(1===e.tag){var n=e.type;if(fA(n))return mA(e,n,t)}return t}function wj(e,t,n,r,i,o,a,s,l){return(e=bj(n,r,!0,e,0,o,0,s,l)).context=xj(null),n=e.current,(o=vI(r=PF(),i=NF(n))).callback=null!=t?t:null,bI(n,o,i),e.current.lanes=i,ZT(e,i,r),IF(e,r),e}function kj(e,t,n,r){var i=t.current,o=PF(),a=NF(i);return n=xj(n),null===t.context?t.context=n:t.pendingContext=n,(t=vI(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=bI(i,t,a))&&(AF(e,i,a,o),xI(e,i,a)),a}function Sj(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Cj(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ej(e,t){Cj(e,t),(e=e.alternate)&&Cj(e,t)}nF=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||cA.current)ZL=!0;else{if(!(e.lanes&n||128&t.flags))return ZL=!1,function(e,t,n){switch(t.tag){case 3:lz(t),YA();break;case 5:TI(t);break;case 1:fA(t.type)&&gA(t);break;case 4:DI(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;aA(nI,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(aA(PI,1&PI.current),t.flags|=128,null):n&t.child.childLanes?gz(e,t,n):(aA(PI,1&PI.current),null!==(e=Sz(e,t,n))?e.sibling:null);aA(PI,1&PI.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return wz(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),aA(PI,PI.current),r)break;return null;case 22:case 23:return t.lanes=0,rz(e,t,n)}return Sz(e,t,n)}(e,t,n);ZL=!!(131072&e.flags)}else ZL=!1,zA&&1048576&t.flags&&PA(t,MA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kz(e,t),e=t.pendingProps;var i=dA(t,lA.current);cI(t,n),i=GI(null,t,r,e,i,n);var o=XI();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,fA(r)?(o=!0,gA(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,gI(t),i.updater=LL,t.stateNode=i,i._reactInternals=t,$L(t,r,e,n),t=sz(null,t,r,!0,o,n)):(t.tag=0,zA&&o&&NA(t),QL(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kz(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return dj(e)?1:0;if(null!=e){if((e=e.$$typeof)===uR)return 11;if(e===hR)return 14}return 2}(r),e=AL(r,e),i){case 0:t=oz(null,t,r,e,n);break e;case 1:t=az(null,t,r,e,n);break e;case 11:t=ez(null,t,r,e,n);break e;case 14:t=tz(null,t,r,AL(r.type,e),n);break e}throw Error($D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,oz(e,t,r,i=t.elementType===r?i:AL(r,i),n);case 1:return r=t.type,i=t.pendingProps,az(e,t,r,i=t.elementType===r?i:AL(r,i),n);case 3:e:{if(lz(t),null===e)throw Error($D(387));r=t.pendingProps,i=(o=t.memoizedState).element,yI(e,t),kI(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=cz(e,t,r,n,i=HL(Error($D(423)),t));break e}if(r!==i){t=cz(e,t,r,n,i=HL(Error($D(424)),t));break e}for(LA=VN(t.stateNode.containerInfo.firstChild),IA=t,zA=!0,FA=null,n=tI(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(YA(),r===i){t=Sz(e,t,n);break e}QL(e,t,r,n)}t=t.child}return t;case 5:return TI(t),null===e&&VA(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,IN(r,i)?a=null:null!==o&&IN(r,o)&&(t.flags|=32),iz(e,t),QL(e,t,a,n),t.child;case 6:return null===e&&VA(t),null;case 13:return gz(e,t,n);case 4:return DI(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=eI(t,null,r,n):QL(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ez(e,t,r,i=t.elementType===r?i:AL(r,i),n);case 7:return QL(e,t,t.pendingProps,n),t.child;case 8:case 12:return QL(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,aA(nI,r._currentValue),r._currentValue=a,null!==o)if($P(o.value,a)){if(o.children===i.children&&!cA.current){t=Sz(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=vI(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),lI(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($D(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),lI(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}QL(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cI(t,n),r=r(i=uI(i)),t.flags|=1,QL(e,t,r,n),t.child;case 14:return i=AL(r=t.type,t.pendingProps),tz(e,t,r,i=AL(r.type,i),n);case 15:return nz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:AL(r,i),kz(e,t),t.tag=1,fA(r)?(e=!0,gA(t)):e=!1,cI(t,n),FL(t,r,i),$L(t,r,i,n),sz(null,t,r,!0,e,n);case 19:return wz(e,t,n);case 22:return rz(e,t,n)}throw Error($D(156,t.tag))};var Mj="function"==typeof reportError?reportError:function(e){console.error(e)};function _j(e){this._internalRoot=e}function qj(e){this._internalRoot=e}function Dj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Rj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Tj(){}function Oj(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=Sj(a);s.call(e)}}kj(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=Sj(a);o.call(e)}}var a=wj(t,r,e,0,null,!1,0,"",Tj);return e._reactRootContainer=a,e[KN]=a.current,kN(8===e.nodeType?e.parentNode:e),VF(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Sj(l);s.call(e)}}var l=bj(e,0,!1,null,0,!1,0,"",Tj);return e._reactRootContainer=l,e[KN]=l.current,kN(8===e.nodeType?e.parentNode:e),VF((function(){kj(t,l,n,r)})),l}(n,t,e,i,r);return Sj(a)}qj.prototype.render=_j.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error($D(409));kj(e,t,null,null)},qj.prototype.unmount=_j.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;VF((function(){kj(null,e,null,null)})),t[KN]=null}},qj.prototype.unstable_scheduleHydration=function(e){if(e){var t=oO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pO.length&&0!==t&&t<pO[n].priority;n++);pO.splice(n,0,e),0===n&&vO(e)}},nO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=UT(t.pendingLanes);0!==n&&(QT(t,1|n),IF(t,OT()),!(6&sF)&&(wF=OT()+500,kA()))}break;case 13:VF((function(){var t=pI(e,1);if(null!==t){var n=PF();AF(t,e,1,n)}})),Ej(e,1)}},rO=function(e){if(13===e.tag){var t=pI(e,134217728);if(null!==t)AF(t,e,134217728,PF());Ej(e,134217728)}},iO=function(e){if(13===e.tag){var t=NF(e),n=pI(e,t);if(null!==n)AF(n,e,t,PF());Ej(e,t)}},oO=function(){return eO},aO=function(e,t){var n=eO;try{return eO=e,t()}finally{eO=n}},rT=function(e,t,n){switch(t){case"input":if(NR(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=tA(r);if(!i)throw Error($D(90));DR(r),NR(r,i)}}}break;case"textarea":$R(e,n);break;case"select":null!=(t=n.value)&&zR(e,!!n.multiple,t,!1)}},cT=HF,uT=VF;var Pj={usingClientEntryPoint:!1,Events:[QN,eA,tA,sT,lT,HF]},Nj={findFiberByHostInstance:ZN,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Aj={bundleType:Nj.bundleType,version:Nj.version,rendererPackageName:Nj.rendererPackageName,rendererConfig:Nj.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nR.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=MT(e))?null:e.stateNode},findFiberByHostInstance:Nj.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ij=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ij.isDisabled&&Ij.supportsFiber)try{FT=Ij.inject(Aj),jT=Ij}catch(Wh){}}AD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pj,AD.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Dj(t))throw Error($D(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:iR,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},AD.createRoot=function(e,t){if(!Dj(e))throw Error($D(299));var n=!1,r="",i=Mj;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=bj(e,1,!1,null,0,n,0,r,i),e[KN]=t.current,kN(8===e.nodeType?e.parentNode:e),new _j(t)},AD.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($D(188));throw e=Object.keys(e).join(","),Error($D(268,e))}return e=null===(e=MT(t))?null:e.stateNode},AD.flushSync=function(e){return VF(e)},AD.hydrate=function(e,t,n){if(!Rj(t))throw Error($D(200));return Oj(null,e,t,!0,n)},AD.hydrateRoot=function(e,t,n){if(!Dj(e))throw Error($D(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=Mj;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=wj(t,null,e,1,null!=n?n:null,i,0,o,a),e[KN]=t.current,kN(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 qj(t)},AD.render=function(e,t,n){if(!Rj(t))throw Error($D(200));return Oj(null,e,t,!1,n)},AD.unmountComponentAtNode=function(e){if(!Rj(e))throw Error($D(40));return!!e._reactRootContainer&&(VF((function(){Oj(null,null,e,!1,(function(){e._reactRootContainer=null,e[KN]=null}))})),!0)},AD.unstable_batchedUpdates=HF,AD.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rj(n))throw Error($D(200));if(null==e||void 0===e._reactInternals)throw Error($D(38));return Oj(e,t,n,!1,r)},AD.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ND.exports=AD;var Lj=ND.exports,zj=r(Lj),Fj=!0,jj=!1,$j=null,Hj={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 Vj(e){e.metaKey||e.altKey||e.ctrlKey||(Fj=!0)}function Bj(){Fj=!1}function Wj(){"hidden"===this.visibilityState&&jj&&(Fj=!0)}function Uj(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Fj||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Hj[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Yj(){jj=!0,window.clearTimeout($j),$j=window.setTimeout((function(){jj=!1}),100)}function Kj(){var e=US.useCallback((function(e){var t,n=Lj.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Vj,!0),t.addEventListener("mousedown",Bj,!0),t.addEventListener("pointerdown",Bj,!0),t.addEventListener("touchstart",Bj,!0),t.addEventListener("visibilitychange",Wj,!0))}),[]);return{isFocusVisible:Uj,onBlurVisible:Yj,ref:e}}var Gj=!1,Xj=YS.createContext(null),Jj="unmounted",Zj="exited",Qj="entering",e$="entered",t$="exiting",n$=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=Zj,r.appearStatus=Qj):i=e$:i=t.unmountOnExit||t.mountOnEnter?Jj:Zj,r.state={status:i},r.nextCallback=null,r}NE(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Jj?{status:Zj}: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!==Qj&&n!==e$&&(t=Qj):n!==Qj&&n!==e$||(t=t$)}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===Qj){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:zj.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zj&&this.setState({status:Jj})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[zj.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Gj?this.safeSetState({status:e$},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Qj},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:e$},(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:zj.findDOMNode(this);t&&!Gj?(this.props.onExit(r),this.safeSetState({status:t$},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Zj},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Zj},(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:zj.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===Jj)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=QC(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return YS.createElement(Xj.Provider,{value:null},"function"==typeof n?n(e,r):YS.cloneElement(YS.Children.only(n),r))},t}(YS.Component);function r$(){}function i$(e,t){var n=Object.create(null);return e&&US.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&US.isValidElement(e)?t(e):e}(e)})),n}function o$(e,t,n){return null!=n[t]?n[t]:e.props[t]}function a$(e,t,n){var r=i$(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 c=i[l][r];s[i[l][r]]=n(c)}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(US.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=US.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&US.isValidElement(c)&&(i[o]=US.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:o$(a,"exit",e),enter:o$(a,"enter",e)})):i[o]=US.cloneElement(a,{in:!1}):i[o]=US.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:o$(a,"exit",e),enter:o$(a,"enter",e)})}})),i}n$.contextType=Xj,n$.propTypes={},n$.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:r$,onEntering:r$,onEntered:r$,onExit:r$,onExiting:r$,onExited:r$},n$.UNMOUNTED=Jj,n$.EXITED=Zj,n$.ENTERING=Qj,n$.ENTERED=e$,n$.EXITING=t$;var s$=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},l$=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(AE(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}NE(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,i$(n.children,(function(e){return US.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:o$(e,"appear",n),enter:o$(e,"enter",n),exit:o$(e,"exit",n)})}))):a$(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=i$(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=$C({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=QC(e,["component","childFactory"]),i=this.state.contextValue,o=s$(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?YS.createElement(Xj.Provider,{value:i},o):YS.createElement(Xj.Provider,{value:i},YS.createElement(t,r,o))},t}(YS.Component);l$.propTypes={},l$.defaultProps={component:"div",childFactory:function(e){return e}};function c$(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 u$=US.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,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=eE(e,["classes","className","component","square","elevation","variant"]);return US.createElement(o,$C({className:_D(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),d$=SD((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),$C({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"})(u$),f$="undefined"==typeof window?US.useEffect:US.useLayoutEffect;function h$(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,c=void 0===l?function(){}:l,u=e.timeout,d=US.useState(!1),f=d[0],h=d[1],p=_D(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=_D(t.child,f&&t.childLeaving,r&&t.childPulsate),y=OD(c);return f$((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),US.createElement("span",{className:p,style:m},US.createElement("span",{className:g}))}var p$=US.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=eE(e,["center","classes","className"]),s=US.useState([]),l=s[0],c=s[1],u=US.useRef(0),d=US.useRef(null);US.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=US.useRef(!1),h=US.useRef(null),p=US.useRef(null),m=US.useRef(null);US.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=US.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(yE(e),[US.createElement(h$,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=US.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,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?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)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-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 S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=US.useCallback((function(){y({},{pulsate:!0})}),[y]),b=US.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,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return US.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),US.createElement("span",$C({className:_D(i.root,o),ref:m},a),US.createElement(l$,{component:null,exit:!0},l))})),m$=SD((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"})(US.memo(p$)),g$=US.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,c=e.component,u=void 0===c?"button":c,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,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,E=e.onKeyUp,M=e.onMouseDown,_=e.onMouseLeave,q=e.onMouseUp,D=e.onTouchEnd,R=e.onTouchMove,T=e.onTouchStart,O=e.onDragLeave,P=e.tabIndex,N=void 0===P?0:P,A=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=eE(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=US.useRef(null);var j=US.useRef(null),$=US.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=Kj(),W=B.isFocusVisible,U=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return OD((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}US.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),US.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",M),X=K("stop",O),J=K("stop",q),Z=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),Q=K("start",T),ee=K("stop",D),te=K("stop",R),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=OD((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=Lj.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=US.useRef(!1),ae=OD((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(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=OD((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),E&&E(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=PD(r,t),de=PD(Y,F),fe=PD(ue,de),he=US.useState(!1),pe=he[0],me=he[1];US.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return US.createElement(le,$C({className:_D(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:N},ce,z),a,ge?US.createElement(m$,$C({ref:j,center:o},A)):null)})),y$=SD({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"})(g$),v$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},b$=US.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,c=e.display,u=void 0===c?"initial":c,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?v$:b,w=eE(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||v$[v])||"span";return US.createElement(k,$C({className:_D(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(CD(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(CD(r))],"initial"!==u&&i["display".concat(CD(u))]),ref:t},w))})),x$=SD((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"})(b$),w$=US.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,c=e.disabled,u=void 0!==c&&c,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,k=e.type,S=void 0===k?"button":k,C=e.variant,E=void 0===C?"text":C,M=eE(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&US.createElement("span",{className:_D(r.startIcon,r["iconSize".concat(CD(x))])},w),q=m&&US.createElement("span",{className:_D(r.endIcon,r["iconSize".concat(CD(x))])},m);return US.createElement(y$,$C({className:_D(r.root,r[E],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(CD(a))],"medium"!==x&&[r["".concat(E,"Size").concat(CD(x))],r["size".concat(CD(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:_D(r.focusVisible,g),ref:t,type:S},M),US.createElement("span",{className:r.label},_,n,q))})),k$=SD((function(e){return{root:$C({},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:ZC(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:ZC(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:ZC(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(ZC(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:ZC(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(ZC(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:ZC(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"})(w$);var S$="undefined"!=typeof window?US.useLayoutEffect:US.useEffect,C$=US.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=US.useState(null),l=s[0],c=s[1],u=PD(US.isValidElement(n)?n.ref:null,t);return S$((function(){o||c(function(e){return e="function"==typeof e?e():e,Lj.findDOMNode(e)}(r)||document.body)}),[r,o]),S$((function(){if(l&&!o)return RD(t,l),function(){RD(t,null)}}),[t,l,o]),S$((function(){a&&(l||o)&&a()}),[a,l,o]),o?US.isValidElement(n)?US.cloneElement(n,{ref:u}):n:l?Lj.createPortal(n,l):l}));function E$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function M$(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _$(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(yE(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)&&E$(e,r)}))}function q$(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function D$(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=qD(e);return t.body===e?DD(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(M$(o)+a,"px"),n=qD(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(M$(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 R$=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 OE(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&&E$(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);_$(t,e.mountNode,e.modalRef,r,!0);var i=q$(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=q$(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=D$(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=q$(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&&E$(e.modalRef,!0),_$(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&&E$(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function T$(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,c=e.isEnabled,u=e.open,d=US.useRef(),f=US.useRef(null),h=US.useRef(null),p=US.useRef(),m=US.useRef(null),g=US.useCallback((function(e){m.current=Lj.findDOMNode(e)}),[]),y=PD(t.ref,g),v=US.useRef();return US.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),US.useEffect((function(){if(u){var e=qD(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&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&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,c,u]),US.createElement(US.Fragment,null,US.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),US.cloneElement(t,{ref:y}),US.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var O$={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"}},P$=US.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=eE(e,["invisible","open"]);return i?US.createElement("div",$C({"aria-hidden":!0,ref:t},o,{style:$C({},O$.root,r?O$.invisible:{},o.style)})):null}));var N$=new R$,A$=US.forwardRef((function(e,t){var n=Cq(),r=DE({name:"MuiModal",props:$C({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?P$:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=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,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,E=r.hideBackdrop,M=void 0!==E&&E,_=r.keepMounted,q=void 0!==_&&_,D=r.manager,R=void 0===D?N$:D,T=r.onBackdropClick,O=r.onClose,P=r.onEscapeKeyDown,N=r.onRendered,A=r.open,I=eE(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=US.useState(!0),z=L[0],F=L[1],j=US.useRef({}),$=US.useRef(null),H=US.useRef(null),V=PD(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return qD($.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){R.mount(U(),{disableScrollLock:C}),H.current.scrollTop=0},K=OD((function(){var e=function(e){return e="function"==typeof e?e():e,Lj.findDOMNode(e)}(u)||W().body;R.add(U(),e),H.current&&Y()})),G=US.useCallback((function(){return R.isTopModal(U())}),[R]),X=OD((function(e){$.current=e,e&&(N&&N(),A&&G()?Y():E$(H.current,!0))})),J=US.useCallback((function(){R.remove(U())}),[R]);if(US.useEffect((function(){return function(){J()}}),[J]),US.useEffect((function(){A?K():B&&c||J()}),[A,J,B,c,K]),!q&&!A&&(!B||z))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:CE}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),B&&(Q.onEnter=ED((function(){F(!1)}),s.props.onEnter),Q.onExited=ED((function(){F(!0),c&&J()}),s.props.onExited)),US.createElement(C$,{ref:X,container:u,disablePortal:x},US.createElement("div",$C({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(P&&P(e),v||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},I,{style:$C({},Z.root,!A&&z?Z.hidden:{},I.style)}),M?null:US.createElement(o,$C({open:A,onClick:function(e){e.target===e.currentTarget&&(T&&T(e),!p&&O&&O(e,"backdropClick"))}},a)),US.createElement(T$,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:W,isEnabled:G,open:A},US.cloneElement(s,Q))))})),I$=US.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,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,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=eE(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return US.createElement(s,$C({className:_D(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),L$=SD((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:ZC(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"})(I$);function z$(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var F$={entering:{opacity:1,transform:z$(1)},entered:{opacity:1,transform:"none"}},j$=US.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,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?n$:m,y=eE(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=US.useRef(),b=US.useRef(),x=Cq()||wD,w=x.unstable_strictMode&&!i,k=US.useRef(null),S=PD(n.ref,t),C=PD(w?k:void 0,S),E=function(e){return function(t,n){if(e){var r=vE(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},M=E(l),_=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=c$({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)})),q=E(s),D=E(d),R=E((function(e){var t,n=c$({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=z$(.75),c&&c(e)})),T=E(u);return US.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),US.createElement(g,$C({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:q,onEntering:M,onExit:R,onExited:T,onExiting:D,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 US.cloneElement(n,$C({style:$C({opacity:0,transform:z$(.75),visibility:"exited"!==e||o?void 0:"hidden"},F$[e],f,n.props.style),ref:C},t))}))}));j$.muiSupportAuto=!0;var $$=US.createContext({}),H$=US.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,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=eE(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=US.useMemo((function(){return{dense:l}}),[l]);return US.createElement($$.Provider,{value:h},US.createElement(a,$C({className:_D(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),V$=SD({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(H$),B$="undefined"==typeof window?US.useEffect:US.useLayoutEffect,W$=US.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,c=e.classes,u=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=eE(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,E=e.focusVisibleClassName,M=e.selected,_=void 0!==M&&M,q=eE(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=US.useContext($$),R={dense:v||D.dense||!1,alignItems:r},T=US.useRef(null);B$((function(){o&&T.current&&T.current.focus()}),[o]);var O,P,N=US.Children.toArray(l),A=N.length&&(O=N[N.length-1],P=["ListItemSecondaryAction"],US.isValidElement(O)&&-1!==P.indexOf(O.type.muiName)),I=US.useCallback((function(e){T.current=Lj.findDOMNode(e)}),[]),L=PD(I,t),z=$C({className:_D(c.root,u,R.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,A&&c.secondaryAction,_&&c.selected),disabled:x},q),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=_D(c.focusVisible,E),F=y$),A?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),US.createElement($$.Provider,{value:R},US.createElement(h,$C({className:_D(c.container,m),ref:L},g),US.createElement(F,z,N),N.pop()))):US.createElement($$.Provider,{value:R},US.createElement(F,$C({ref:L},z),N))})),U$=SD((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"})(W$),Y$=US.forwardRef((function(e,t){var n=e.classes,r=e.className,i=eE(e,["classes","className"]),o=US.useContext($$);return US.createElement("div",$C({className:_D(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),K$=SD((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Y$),G$=US.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,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=eE(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=US.useContext($$).dense,m=null!=c?c:n;null==m||m.type===x$||a||(m=US.createElement(x$,$C({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===x$||a||(g=US.createElement(x$,$C({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),US.createElement("div",$C({className:_D(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),X$=SD({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(G$);function J$(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Z$(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Q$(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function eH(e){return"function"==typeof e?e():e}var tH=US.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,c=e.children,u=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,k=e.onExited,S=e.onExiting,C=e.open,E=e.PaperProps,M=void 0===E?{}:E,_=e.transformOrigin,q=void 0===_?{vertical:"top",horizontal:"left"}:_,D=e.TransitionComponent,R=void 0===D?j$:D,T=e.transitionDuration,O=void 0===T?"auto":T,P=e.TransitionProps,N=void 0===P?{}:P,A=eE(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"]),I=US.useRef(),L=US.useCallback((function(e){if("anchorPosition"===l)return a;var t=eH(r),n=(t&&1===t.nodeType?t:qD(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+J$(n,i),left:n.left+Z$(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=US.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=US.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:J$(e,q.vertical)+t,horizontal:Z$(e,q.horizontal)}}),[q.horizontal,q.vertical]),j=US.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:Q$(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=DD(eH(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Q$(i)}}),[r,l,L,z,F,y]),$=US.useCallback((function(){var e=I.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=US.useCallback((function(e){I.current=Lj.findDOMNode(e)}),[]);US.useEffect((function(){C&&$()})),US.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),US.useEffect((function(){if(C){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(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=O;"auto"!==O||R.muiSupportAuto||(V=void 0);var B=f||(r?qD(eH(r)).body:void 0);return US.createElement(A$,$C({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:_D(u.root,d)},A),US.createElement(R,$C({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},N,{onEntering:ED((function(e,t){x&&x(e,t),$()}),N.onEntering)}),US.createElement(d$,$C({elevation:p,ref:H},M,{className:_D(u.paper,M.className)}),c)))})),nH=SD({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(tH);function rH(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function iH({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:rH(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return YS.createElement("i",{style:i},YS.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},YS.createElement("path",{d:e})))}const oH="alternative-menu-item",aH=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>Pq((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 YS.createElement(U$,gC({className:`${i.root} ${n}`},r))},sH=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${oH}`);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 lH({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Tg.detectTextDirection(e);return YS.createElement(aH,{nested:r,role:"menuitem",button:!0,onClick:n,className:oH,onKeyDown:sH,dir:a,autoFocus:t},YS.createElement(X$,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),YS.createElement(K$,{style:{minWidth:16}},YS.createElement(iH,{d:t?QS:""})),i&&YS.createElement(K$,{style:{minWidth:16}},YS.createElement(iH,{d:i.d})))}lH.propTypes={title:xC.string.isRequired,selected:xC.bool,onClick:xC.func.isRequired,nested:xC.bool,icon:xC.shape({d:xC.string.isRequired}),bold:xC.bool,dir:xC.string.isRequired},lH.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},aH.propTypes={nested:xC.bool,className:xC.string},aH.defaultProps={nested:!1,className:oH};const cH={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 uH({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return YS.createElement(YS.Fragment,{key:t.id},YS.createElement(lH,{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&&YS.createElement(V$,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>YS.createElement(lH,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&YS.createElement(L$,{key:`divider-${t.id}`}))}));return YS.createElement(nH,gC({anchorEl:t,open:s,onClose:a},cH[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),YS.createElement(V$,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}uH.propTypes={chartId:xC.string.isRequired,alignTo:xC.any,currentId:xC.string.isRequired,dir:xC.string.isRequired,dock:xC.string.isRequired,list:xC.array,onClose:xC.func.isRequired,show:xC.bool.isRequired,instruction:xC.string.isRequired},uH.defaultProps={list:[],alignTo:null};const dH="title-button",fH="active-title-button",hH=kD((({children:e,...t})=>YS.createElement(k$,gC({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),pH=kD(k$)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class mH extends YS.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=YS.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(`.${dH}`);t&&(t.focus(),t.classList.add(fH))}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(`.${dH}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${fH}`);e&&(e.classList.remove(fH),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:c,showGroupDimOptions:u}=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)=>YS.createElement(hH,{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},YS.createElement("span",{style:d},e),YS.createElement(iH,gC({},tC,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?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=Tg.detectTextDirection(t.text),w=YS.createElement(hH,{"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:`${dH} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&YS.createElement(iH,gC({},ZS,{size:"small",title:r.get("Tooltip.selections.locked")})),YS.createElement("span",{style:d,dir:x},t.text),n&&m&&YS.createElement(iH,gC({},eC,{size:"small",style:{margin:"0 8px"}})));return YS.createElement(YS.Fragment,null,t.icon&&t.icon.onClick&&YS.createElement(pH,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},YS.createElement(iH,gC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&YS.createElement(iH,gC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,YS.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&YS.createElement(uH,{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 gH(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function yH(e){function t(e){return!e.isDimension&&Mg.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:c,padding:u,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"],k=a?fC:pC,S=a?hC:mC,C=Boolean(l&&l.colorSupport&&l.modifiers),E=C&&((M=this.settings.settings).isDimension&&Mg.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var M;const _=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=S(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,M=C||b?k({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:gH(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:C}):void 0;return YS.createElement(YS.Fragment,{key:t.cId},YS.createElement(mH,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:M,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m}),!v&&YS.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return YS.createElement("div",{style:v,dir:y},_)}}}mH.propTypes={chartId:xC.string.isRequired,disabled:xC.bool.isRequired,padding:xC.string,minWidth:xC.string,titleData:xC.shape({breadcrumbs:xC.arrayOf(xC.string).isRequired,icon:xC.shape({path:xC.shape({d:xC.string.isRequired}),tooltip:xC.string.isRequired,onClick:xC.func}),index:xC.number.isRequired,locked:xC.bool.isRequired,text:xC.string.isRequired,popoverText:xC.string.isRequired,drillUp:xC.func,id:xC.string.isRequired}).isRequired,popover:xC.shape({dir:xC.string.isRequired,dock:xC.string.isRequired,getPopoverOptions:xC.func.isRequired}),translator:xC.shape({get:xC.func.isRequired}).isRequired,selections:xC.shape({isActive:xC.func,addListener:xC.func,removeListener:xC.func}),style:xC.shape({fontSize:xC.string,color:xC.string,fontFamily:xC.string}).isRequired,isDimension:xC.bool.isRequired,hasAlternative:xC.bool.isRequired,supportConditional:xC.bool.isRequired,showGroupDimOptions:xC.bool.isRequired},mH.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const vH=EE({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 bH=qE({productionPrefix:"qed23",disableGlobal:!0,seed:""});function xH(){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",zj.render(function(e,t){return YS.createElement(Dq,{generateClassName:t},YS.createElement(xD,{theme:vH},e))}(e,bH),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&zj.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(zj.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}const wH={black:"#000",white:"#fff"},kH="#e57373",SH="#ef5350",CH="#f44336",EH="#d32f2f",MH="#c62828",_H="#f3e5f5",qH="#ce93d8",DH="#ba68c8",RH="#ab47bc",TH="#9c27b0",OH="#7b1fa2",PH="#e3f2fd",NH="#90caf9",AH="#42a5f5",IH="#1976d2",LH="#1565c0",zH="#4fc3f7",FH="#29b6f6",jH="#03a9f4",$H="#0288d1",HH="#01579b",VH="#81c784",BH="#66bb6a",WH="#4caf50",UH="#388e3c",YH="#2e7d32",KH="#1b5e20",GH="#ffb74d",XH="#ffa726",JH="#ff9800",ZH="#f57c00",QH="#e65100",eV={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 tV(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 nV=Object.freeze({__proto__:null,default:tV}),rV="$$material";var iV=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}(),oV="-ms-",aV="-moz-",sV="-webkit-",lV="comm",cV="rule",uV="decl",dV="@keyframes",fV=Math.abs,hV=String.fromCharCode,pV=Object.assign;function mV(e){return e.trim()}function gV(e,t,n){return e.replace(t,n)}function yV(e,t){return e.indexOf(t)}function vV(e,t){return 0|e.charCodeAt(t)}function bV(e,t,n){return e.slice(t,n)}function xV(e){return e.length}function wV(e){return e.length}function kV(e,t){return t.push(e),e}var SV=1,CV=1,EV=0,MV=0,_V=0,qV="";function DV(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:SV,column:CV,length:a,return:""}}function RV(e,t){return pV(DV("",null,null,"",null,null,0),e,{length:-e.length},t)}function TV(){return _V=MV>0?vV(qV,--MV):0,CV--,10===_V&&(CV=1,SV--),_V}function OV(){return _V=MV<EV?vV(qV,MV++):0,CV++,10===_V&&(CV=1,SV++),_V}function PV(){return vV(qV,MV)}function NV(){return MV}function AV(e,t){return bV(qV,e,t)}function IV(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 LV(e){return SV=CV=1,EV=xV(qV=e),MV=0,[]}function zV(e){return qV="",e}function FV(e){return mV(AV(MV-1,HV(91===e?e+2:40===e?e+1:e)))}function jV(e){for(;(_V=PV())&&_V<33;)OV();return IV(e)>2||IV(_V)>3?"":" "}function $V(e,t){for(;--t&&OV()&&!(_V<48||_V>102||_V>57&&_V<65||_V>70&&_V<97););return AV(e,NV()+(t<6&&32==PV()&&32==OV()))}function HV(e){for(;OV();)switch(_V){case e:return MV;case 34:case 39:34!==e&&39!==e&&HV(_V);break;case 40:41===e&&HV(e);break;case 92:OV()}return MV}function VV(e,t){for(;OV()&&e+_V!==57&&(e+_V!==84||47!==PV()););return"/*"+AV(t,MV-1)+"*"+hV(47===e?e:OV())}function BV(e){for(;!IV(PV());)OV();return AV(e,MV)}function WV(e){return zV(UV("",null,null,null,[""],e=LV(e),0,[0],e))}function UV(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=OV()){case 40:if(108!=p&&58==vV(S,d-1)){-1!=yV(S+=gV(FV(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=FV(v);break;case 9:case 10:case 13:case 32:S+=jV(p);break;case 92:S+=$V(NV()-1,7);continue;case 47:switch(PV()){case 42:case 47:kV(KV(VV(OV(),NV()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=xV(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=gV(S,/\f/g,"")),h>0&&xV(S)-d&&kV(h>32?GV(S+";",r,n,d-1):GV(gV(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(kV(k=YV(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)UV(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===vV(S,3)?100:f){case 100:case 108:case 109:case 115:UV(e,k,k,r&&kV(YV(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:UV(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+xV(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==TV())continue;switch(S+=hV(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(xV(S)-1)*y,y=1;break;case 64:45===PV()&&(S+=FV(OV())),f=PV(),u=d=xV(b=S+=BV(NV())),v++;break;case 45:45===p&&2==xV(S)&&(m=0)}}return o}function YV(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=wV(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=bV(e,d+1,d=fV(m=a[p])),b=e;y<h;++y)(b=mV(m>0?f[y]+" "+v:gV(v,/&\f/g,f[y])))&&(l[g++]=b);return DV(e,t,n,0===i?cV:s,l,c,u)}function KV(e,t,n){return DV(e,t,n,lV,hV(_V),bV(e,2,-2),0)}function GV(e,t,n,r){return DV(e,t,n,uV,bV(e,0,r),bV(e,r+1,-1),r)}function XV(e,t){for(var n="",r=wV(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function JV(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case uV:return e.return=e.return||e.value;case lV:return"";case dV:return e.return=e.value+"{"+XV(e.children,r)+"}";case cV:e.value=e.props.join(",")}return xV(n=XV(e.children,r))?e.return=e.value+"{"+n+"}":""}function ZV(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var QV=function(e,t,n){for(var r=0,i=0;r=i,i=PV(),38===r&&12===i&&(t[n]=1),!IV(i);)OV();return AV(e,MV)},eB=function(e,t){return zV(function(e,t){var n=-1,r=44;do{switch(IV(r)){case 0:38===r&&12===PV()&&(t[n]=1),e[n]+=QV(MV-1,t,n);break;case 2:e[n]+=FV(r);break;case 4:if(44===r){e[++n]=58===PV()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hV(r)}}while(r=OV());return e}(LV(e),t))},tB=new WeakMap,nB=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)||tB.get(n))&&!r){tB.set(e,!0);for(var i=[],o=eB(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},rB=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function iB(e,t){switch(function(e,t){return 45^vV(e,0)?(((t<<2^vV(e,0))<<2^vV(e,1))<<2^vV(e,2))<<2^vV(e,3):0}(e,t)){case 5103:return sV+"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 sV+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sV+e+aV+e+oV+e+e;case 6828:case 4268:return sV+e+oV+e+e;case 6165:return sV+e+oV+"flex-"+e+e;case 5187:return sV+e+gV(e,/(\w+).+(:[^]+)/,sV+"box-$1$2"+oV+"flex-$1$2")+e;case 5443:return sV+e+oV+"flex-item-"+gV(e,/flex-|-self/,"")+e;case 4675:return sV+e+oV+"flex-line-pack"+gV(e,/align-content|flex-|-self/,"")+e;case 5548:return sV+e+oV+gV(e,"shrink","negative")+e;case 5292:return sV+e+oV+gV(e,"basis","preferred-size")+e;case 6060:return sV+"box-"+gV(e,"-grow","")+sV+e+oV+gV(e,"grow","positive")+e;case 4554:return sV+gV(e,/([^-])(transform)/g,"$1"+sV+"$2")+e;case 6187:return gV(gV(gV(e,/(zoom-|grab)/,sV+"$1"),/(image-set)/,sV+"$1"),e,"")+e;case 5495:case 3959:return gV(e,/(image-set\([^]*)/,sV+"$1$`$1");case 4968:return gV(gV(e,/(.+:)(flex-)?(.*)/,sV+"box-pack:$3"+oV+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+sV+e+e;case 4095:case 3583:case 4068:case 2532:return gV(e,/(.+)-inline(.+)/,sV+"$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(xV(e)-1-t>6)switch(vV(e,t+1)){case 109:if(45!==vV(e,t+4))break;case 102:return gV(e,/(.+:)(.+)-([^]+)/,"$1"+sV+"$2-$3$1"+aV+(108==vV(e,t+3)?"$3":"$2-$3"))+e;case 115:return~yV(e,"stretch")?iB(gV(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vV(e,t+1))break;case 6444:switch(vV(e,xV(e)-3-(~yV(e,"!important")&&10))){case 107:return gV(e,":",":"+sV)+e;case 101:return gV(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sV+(45===vV(e,14)?"inline-":"")+"box$3$1"+sV+"$2$3$1"+oV+"$2box$3")+e}break;case 5936:switch(vV(e,t+11)){case 114:return sV+e+oV+gV(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sV+e+oV+gV(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sV+e+oV+gV(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sV+e+oV+e+e}return e}var oB=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case uV:e.return=iB(e.value,e.length);break;case dV:return XV([RV(e,{value:gV(e.value,"@","@"+sV)})],r);case cV: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 XV([RV(e,{props:[gV(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return XV([RV(e,{props:[gV(t,/:(plac\w+)/,":"+sV+"input-$1")]}),RV(e,{props:[gV(t,/:(plac\w+)/,":-moz-$1")]}),RV(e,{props:[gV(t,/:(plac\w+)/,oV+"input-$1")]})],r)}return""}))}}],aB=function(e){var t=e.key;if("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||oB,a={},s=[];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,c,u=[JV,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=wV(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([nB,rB].concat(o,u));i=function(e,t,n,r){l=n,function(e){XV(WV(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new iV({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 f.sheet.hydrate(s),f};function sB(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var lB=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cB=function(e,t,n){lB(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var uB={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},dB=/[A-Z]|^ms/g,fB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hB=function(e){return 45===e.charCodeAt(1)},pB=function(e){return null!=e&&"boolean"!=typeof e},mB=ZV((function(e){return hB(e)?e:e.replace(dB,"-$&").toLowerCase()})),gB=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fB,(function(e,t,n){return vB={name:t,styles:n,next:vB},t}))}return 1===uB[e]||hB(e)||"number"!=typeof t||0===t?t:t+"px"};function yB(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 vB={name:i.name,styles:i.styles,next:vB},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)vB={name:a.name,styles:a.styles,next:vB},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+=yB(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]+"}":pB(s)&&(r+=mB(o)+":"+gB(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yB(e,t,a);switch(o){case"animation":case"animationName":r+=mB(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)pB(a[c])&&(r+=mB(o)+":"+gB(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=vB,l=n(e);return vB=s,yB(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var vB,bB=/label:\s*([^\s;{]+)\s*(;|$)/g;function xB(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="";vB=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=yB(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=yB(n,t,e[a]),r)i+=o[a]}bB.lastIndex=0;for(var s,l="";null!==(s=bB.exec(i));)l+="-"+s[1];var c=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:c,styles:i,next:vB}}var wB,kB,SB=!!KS.useInsertionEffect&&KS.useInsertionEffect,CB=SB||function(e){return e()},EB=SB||US.useLayoutEffect,MB=US.createContext("undefined"!=typeof HTMLElement?aB({key:"css"}):null),_B=MB.Provider,qB=function(e){return US.forwardRef((function(t,n){var r=US.useContext(MB);return e(t,r,n)}))},DB=US.createContext({}),RB={}.hasOwnProperty,TB="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OB=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lB(t,n,r),CB((function(){return cB(t,n,r)})),null},PB=qB((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[TB],o=[r],a="";"string"==typeof e.className?a=sB(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=xB(o,void 0,US.useContext(DB));a+=t.key+"-"+s.name;var l={};for(var c in e)RB.call(e,c)&&"css"!==c&&c!==TB&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),US.createElement(US.Fragment,null,US.createElement(OB,{cache:t,serialized:s,isStringTag:"string"==typeof i}),US.createElement(i,l))})),NB=PB,AB=function(e,t){var n=arguments;if(null==t||!RB.call(t,"css"))return US.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=NB,i[1]=function(e,t){var n={};for(var r in t)RB.call(t,r)&&(n[r]=t[r]);return n[TB]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return US.createElement.apply(null,i)};wB=AB||(AB={}),kB||(kB=wB.JSX||(wB.JSX={}));var IB=qB((function(e,t){var n=xB([e.styles],void 0,US.useContext(DB)),r=US.useRef();return EB((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),EB((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cB(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function LB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xB(t)}function zB(){var e=LB.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_"}}}var FB=/^((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)-.*))$/,jB=ZV((function(e){return FB.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$B=function(e){return"theme"!==e},HB=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jB:$B},VB=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},BB=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lB(t,n,r),CB((function(){return cB(t,n,r)})),null},WB=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=VB(t,n,o),l=s||HB(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=qB((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=US.useContext(DB)}"string"==typeof e.className?o=sB(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=xB(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?HB(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),US.createElement(US.Fragment,null,US.createElement(BB,{cache:t,serialized:p,isStringTag:"string"==typeof r}),US.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,$C({},n,r,{shouldForwardProp:VB(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){WB[e]=WB(e)}));var UB={exports:{}},YB={},KB=US,GB=Symbol.for("react.element"),XB=Symbol.for("react.fragment"),JB=Object.prototype.hasOwnProperty,ZB=KB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QB={key:!0,ref:!0,__self:!0,__source:!0};function eW(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)JB.call(t,r)&&!QB.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:GB,type:e,key:o,ref:a,props:i,_owner:ZB.current}}YB.Fragment=XB,YB.jsx=eW,YB.jsxs=eW,UB.exports=YB;var tW=UB.exports;let nW;"object"==typeof document&&(nW=aB({key:"css",prepend:!0}));var rW=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 tW.jsx(IB,{styles:r})}
|
|
43
43
|
/**
|
|
44
44
|
* @mui/styled-engine v5.16.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,c,u,d,f=e.le
|
|
|
119
119
|
animation-iteration-count: infinite;
|
|
120
120
|
animation-delay: 200ms;
|
|
121
121
|
}
|
|
122
|
-
`),bG.rippleVisible,MG,550,(({theme:e})=>e.transitions.easing.easeInOut),bG.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),bG.child,bG.childLeaving,_G,550,(({theme:e})=>e.transitions.easing.easeInOut),bG.childPulsate,qG,(({theme:e})=>e.transitions.easing.easeInOut)),TG=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=QC(n,xG),[s,l]=US.useState([]),c=US.useRef(0),u=US.useRef(null);US.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=US.useRef(!1),f=lY(),h=US.useRef(null),p=US.useRef(null),m=US.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,tW.jsx(RG,{classes:{ripple:kU(i.ripple,bG.ripple),rippleVisible:kU(i.rippleVisible,bG.rippleVisible),ripplePulsate:kU(i.ripplePulsate,bG.ripplePulsate),child:kU(i.child,bG.child),childLeaving:kU(i.childLeaving,bG.childLeaving),childPulsate:kU(i.childPulsate,bG.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=US.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 c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=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)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=US.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=US.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)),u.current=t}),[f]);return US.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),tW.jsx(DG,$C({className:kU(bG.root,i.root,o),ref:p},a,{children:tW.jsx(l$,{component:null,exit:!0,children:s})}))}));function OG(e){return CU("MuiButtonBase",e)}const PG=EU("MuiButtonBase",["root","disabled","focusVisible"]),NG=["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"],AG=eG("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"},[`&.${PG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IG=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!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:k,onMouseUp:S,onTouchEnd:C,onTouchMove:E,onTouchStart:M,tabIndex:_=0,TouchRippleProps:q,touchRippleRef:D,type:R}=n,T=QC(n,NG),O=US.useRef(null),P=US.useRef(null),N=iY(P,D),{isFocusVisibleRef:A,onFocus:I,onBlur:L,ref:z}=yY(),[F,j]=US.useState(!1);l&&F&&j(!1),US.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),O.current.focus()}})),[]);const[$,H]=US.useState(!1);US.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return rY((r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0}))}US.useEffect((()=>{F&&d&&!c&&$&&P.current.pulsate()}),[c,d,F,$]);const W=B("start",w),U=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",M),J=B("stop",C),Z=B("stop",E),Q=B("stop",(e=>{L(e),!1===A.current&&j(!1),h&&h(e)}),!1),ee=rY((e=>{O.current||(O.current=e.currentTarget),I(e),!0===A.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=US.useRef(!1),re=rY((e=>{d&&!ne.current&&F&&P.current&&" "===e.key&&(ne.current=!0,P.current.stop(e,(()=>{P.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=rY((e=>{d&&" "===e.key&&P.current&&F&&!e.defaultPrevented&&(ne.current=!1,P.current.stop(e,(()=>{P.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(T.href||T.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===R?"button":R,ae.disabled=l):(T.href||T.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=iY(t,z,O),le=$C({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=vY({root:["root",t&&"disabled",n&&"focusVisible"]},OG,i);return n&&r&&(o.root+=` ${r}`),o})(le);return tW.jsxs(AG,$C({as:oe,className:kU(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:R},ae,T,{children:[o,V?tW.jsx(TG,$C({ref:N,center:i},q)):null]}))}));function LG(e){return CU("MuiTypography",e)}EU("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zG=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],FG=eG("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${mW(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$C({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),jG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$G={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HG=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiTypography"}),r=(e=>$G[e]||e)(n.color),i=yU($C({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=jG}=i,h=QC(i,zG),p=$C({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||jG[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return vY({root:["root",o,"inherit"!==e.align&&`align${mW(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},LG,a)})(p);return tW.jsx(FG,$C({as:m,ref:t,ownerState:p,className:kU(g.root,a)},h))})),VG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BG(e){const t=[],n=[];return Array.from(e.querySelectorAll(VG)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function WG(){return!0}function UG(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=BG,isEnabled:a=WG,open:s}=e,l=US.useRef(!1),c=US.useRef(null),u=US.useRef(null),d=US.useRef(null),f=US.useRef(null),h=US.useRef(!1),p=US.useRef(null),m=iY(t.ref,p),g=US.useRef(null);US.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),US.useEffect((()=>{if(!s||!p.current)return;const e=eY(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),US.useEffect((()=>{if(!s||!p.current)return;const e=eY(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return tW.jsxs(US.Fragment,{children:[tW.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),US.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),tW.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const YG=US.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=US.useState(null),s=iY(US.isValidElement(n)?n.ref:null,t);if(JU((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),JU((()=>{if(o&&!i)return nY(t,o),()=>{nY(t,null)}}),[t,o,i]),i){if(US.isValidElement(n)){const e={ref:s};return US.cloneElement(n,e)}return tW.jsx(US.Fragment,{children:n})}return tW.jsx(US.Fragment,{children:o?Lj.createPortal(n,o):o})}));function KG(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GG(e){return parseInt(tY(e).getComputedStyle(e).paddingRight,10)||0}function XG(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&KG(e,i)}))}function JG(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ZG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=eY(e);return t.body===e?tY(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(eY(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GG(r)+e}px`;const t=eY(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${GG(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=eY(r).body;else{const t=r.parentElement,n=tY(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const QG=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&KG(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);XG(t,e.mount,e.modalRef,r,!0);const i=JG(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=JG(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ZG(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=JG(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&KG(e.modalRef,t),XG(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&KG(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function eX(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=QG,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=US.useRef({}),h=US.useRef(null),p=US.useRef(null),m=iY(p,d),[g,y]=US.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=rY((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||eY(h.current).body;i.add(x(),e),p.current&&w()})),S=US.useCallback((()=>i.isTopModal(x())),[i]),C=rY((e=>{h.current=e,e&&(u&&S()?w():p.current&&KG(p.current,b))})),E=US.useCallback((()=>{i.remove(x(),b)}),[b,i]);US.useEffect((()=>()=>{E()}),[E]),US.useEffect((()=>{u?k():v&&o||E()}),[u,E,v,o,k]);const M=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=mG(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=$C({},n,t);return $C({role:"presentation"},r,{onKeyDown:M(r),ref:m})},getBackdropProps:(e={})=>$C({"aria-hidden":!0},e,{onClick:_(e),open:u}),getTransitionProps:()=>({onEnter:QU((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:QU((()=>{y(!0),s&&s(),o&&E()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:C,isTopModal:S,exited:g,hasTransition:v}}const tX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nX={entering:{opacity:1},entered:{opacity:1}},rX=US.forwardRef((function(e,t){const n=kK(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=n$}=e,v=QC(e,tX),b=US.useRef(null),x=iY(b,a.ref,t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},k=w(d),S=w(((e,t)=>{lG(e);const r=cG({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),E=w(p),M=w((e=>{const t=cG({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),_=w(h);return tW.jsx(y,$C({appear:o,in:l,nodeRef:b,onEnter:S,onEntered:C,onEntering:k,onExit:M,onExited:_,onExiting:E,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>US.cloneElement(a,$C({style:$C({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},nX[e],m,a.props.style),ref:x},t))}))}));function iX(e){return CU("MuiBackdrop",e)}EU("MuiBackdrop",["root","invisible"]);const oX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aX=eG("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>$C({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),sX=US.forwardRef((function(e,t){var n,r,i;const o=SK({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=rX,transitionDuration:g}=o,y=QC(o,oX),v=$C({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return vY({root:["root",n&&"invisible"]},iX,t)})(v),x=null!=(n=h.root)?n:u.root;return tW.jsx(m,$C({in:f,timeout:g},y,{children:tW.jsx(aX,$C({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:kU(b.root,s,null==x?void 0:x.className),ownerState:$C({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function lX(e){return CU("MuiButton",e)}const cX=EU("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"]),uX=US.createContext({}),dX=US.createContext(void 0),fX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],hX=e=>$C({},"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}}),pX=eG(IG,{shouldForwardProp:e=>QK(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${mW(n.color)}`],t[`size${mW(n.size)}`],t[`${n.variant}Size${mW(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 $C({},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":$C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:LY(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})`:LY(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})`:LY(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":$C({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${cX.focusVisible}`]:$C({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${cX.disabled}`]:$C({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 ${LY(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"},[`&.${cX.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cX.disabled}`]:{boxShadow:"none"}})),mX=eG("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${mW(n.size)}`]]}})((({ownerState:e})=>$C({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},hX(e)))),gX=eG("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${mW(n.size)}`]]}})((({ownerState:e})=>$C({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},hX(e)))),yX=US.forwardRef((function(e,t){const n=US.useContext(uX),r=US.useContext(dX),i=SK({props:GU(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=QC(i,fX),x=$C({},i,{color:a,component:s,disabled:c,disableElevation:u,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 $C({},a,vY({root:["root",o,`${o}${mW(t)}`,`size${mW(i)}`,`${o}Size${mW(i)}`,`color${mW(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${mW(i)}`],endIcon:["icon","endIcon",`iconSize${mW(i)}`]},lX,a))})(x),k=g&&tW.jsx(mX,{className:w.startIcon,ownerState:x,children:g}),S=f&&tW.jsx(gX,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return tW.jsxs(pX,$C({ownerState:x,className:kU(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:kU(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));function vX(e){return CU("MuiModal",e)}EU("MuiModal",["root","hidden","backdrop"]);const bX=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],xX=eG("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>$C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),wX=eG(sX,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kX=US.forwardRef((function(e,t){var n,r,i,o,a,s;const l=SK({name:"MuiModal",props:e}),{BackdropComponent:c=wX,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:E=!1,onBackdropClick:M,open:_,slotProps:q,slots:D}=l,R=QC(l,bX),T=$C({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:C,keepMounted:E}),{getRootProps:O,getBackdropProps:P,getTransitionProps:N,portalRef:A,isTopModal:I,exited:L,hasTransition:z}=eX($C({},T,{rootRef:t})),F=$C({},T,{exited:L}),j=(e=>{const{open:t,exited:n,classes:r}=e;return vY({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vX,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=N();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:xX,V=null!=(i=null!=(o=null==D?void 0:D.backdrop)?o:g.Backdrop)?i:c,B=null!=(a=null==q?void 0:q.root)?a:y.root,W=null!=(s=null==q?void 0:q.backdrop)?s:y.backdrop,U=vG({elementType:H,externalSlotProps:B,externalForwardedProps:R,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:kU(d,null==B?void 0:B.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=vG({elementType:V,externalSlotProps:W,additionalProps:u,getSlotProps:e=>P($C({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:kU(null==W?void 0:W.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return E||_||z&&!L?tW.jsx(YG,{ref:A,container:p,disablePortal:w,children:tW.jsxs(H,$C({},U,{children:[!C&&c?tW.jsx(V,$C({},Y)):null,tW.jsx(UG,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:k,isEnabled:I,open:_,children:US.cloneElement(h,$)})]}))}):null}));function SX(e){return CU("MuiDivider",e)}EU("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const CX=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],EX=eG("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>$C({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:LY(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>$C({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$C({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$C({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$C({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),MX=eG("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$C({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),_X=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=QC(n,CX),p=$C({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return vY({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},SX,r)})(p);return tW.jsx(EX,$C({as:a,className:kU(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?tW.jsx(MX,{className:m.wrapper,ownerState:p,children:i}):null}))}));_X.muiSkipListHighlight=!0;const qX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function DX(e){return`scale(${e}, ${e**2})`}const RX={entering:{opacity:1,transform:DX(1)},entered:{opacity:1,transform:"none"}},TX="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),OX=US.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=n$}=e,g=QC(e,qX),y=lY(),v=US.useRef(),b=kK(),x=US.useRef(null),w=iY(x,i.ref,t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=k(c),C=k(((e,t)=>{lG(e);const{duration:n,delay:r,easing:i}=cG({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:TX?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),E=k(l),M=k(f),_=k((e=>{const{duration:t,delay:n,easing:r}=cG({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:TX?i:.666*i,delay:TX?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=DX(.75),u&&u(e)})),q=k(d);return tW.jsx(m,$C({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:E,onEntering:S,onExit:_,onExited:q,onExiting:M,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>US.cloneElement(i,$C({style:$C({opacity:0,transform:DX(.75),visibility:"exited"!==e||a?void 0:"hidden"},RX[e],h,i.props.style),ref:w},t))}))}));OX.muiSupportAuto=!0;const PX=US.createContext({});function NX(e){return CU("MuiList",e)}EU("MuiList",["root","padding","dense","subheader"]);const AX=["children","className","component","dense","disablePadding","subheader"],IX=eG("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>$C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),LX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=QC(n,AX),u=US.useMemo((()=>({dense:a})),[a]),d=$C({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return vY({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},NX,t)})(d);return tW.jsx(PX.Provider,{value:u,children:tW.jsxs(IX,$C({as:o,className:kU(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function zX(e){return CU("MuiListItemButton",e)}const FX=EU("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),jX=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],$X=eG(IG,{shouldForwardProp:e=>QK(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})=>$C({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"}},[`&.${FX.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:LY(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${FX.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:LY(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${FX.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:LY(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})`:LY(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${FX.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${FX.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}))),HX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=QC(n,jX),p=US.useContext(PX),m=US.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=US.useRef(null);JU((()=>{i&&g.current&&g.current.focus()}),[i]);const y=$C({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return $C({},n,vY({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},zX,n))})(y),b=iY(g,t);return tW.jsx(PX.Provider,{value:m,children:tW.jsx($X,$C({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:kU(v.focusVisible,u),ownerState:y,className:kU(v.root,f)},h,{classes:v,children:a}))})}));function VX(e){return CU("MuiListItemIcon",e)}EU("MuiListItemIcon",["root","alignItemsFlexStart"]);const BX=["className"],WX=eG("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})=>$C({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),UX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=QC(n,BX),o=$C({},n,{alignItems:US.useContext(PX).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return vY({root:["root","flex-start"===t&&"alignItemsFlexStart"]},VX,n)})(o);return tW.jsx(WX,$C({className:kU(a.root,r),ownerState:o,ref:t},i))}));function YX(e){return CU("MuiListItemText",e)}const KX=EU("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),GX=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],XX=eG("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${KX.primary}`]:t.primary},{[`& .${KX.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>$C({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),JX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=QC(n,GX),{dense:f}=US.useContext(PX);let h=null!=s?s:r,p=c;const m=$C({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return vY({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},YX,t)})(m);return null==h||h.type===HG||o||(h=tW.jsx(HG,$C({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===HG||o||(p=tW.jsx(HG,$C({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),tW.jsxs(XX,$C({className:kU(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function ZX(e){return CU("MuiPopover",e)}EU("MuiPopover",["root","paper"]);const QX=["onEntering"],eJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],tJ=["slotProps"];function nJ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function rJ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function iJ(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function oJ(e){return"function"==typeof e?e():e}const aJ=eG(kX,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sJ=eG(hG,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lJ=US.forwardRef((function(e,t){var n,r,i;const o=SK({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=OX,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:C=!1}=o,E=QC(o.TransitionProps,QX),M=QC(o,eJ),_=null!=(n=null==b?void 0:b.paper)?n:y,q=US.useRef(),D=iY(q,_.ref),R=$C({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:x,TransitionComponent:w,transitionDuration:k,TransitionProps:E}),T=(e=>{const{classes:t}=e;return vY({root:["root"],paper:["paper"]},ZX,t)})(R),O=US.useCallback((()=>{if("anchorPosition"===u)return c;const e=oJ(s),t=(e&&1===e.nodeType?e:eY(q.current).body).getBoundingClientRect();return{top:t.top+nJ(t,l.vertical),left:t.left+rJ(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),P=US.useCallback((e=>({vertical:nJ(e,x.vertical),horizontal:rJ(e,x.horizontal)})),[x.horizontal,x.vertical]),N=US.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===u)return{top:null,left:null,transformOrigin:iJ(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=tY(oJ(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:iJ(n)}}),[s,u,O,P,m]),[A,I]=US.useState(g),L=US.useCallback((()=>{const e=q.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);US.useEffect((()=>(C&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L))),[s,C,L]);US.useEffect((()=>{g&&L()})),US.useImperativeHandle(a,(()=>g?{updatePosition:()=>{L()}}:null),[g,L]),US.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{L()})),t=tY(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,L]);let z=k;"auto"!==k||w.muiSupportAuto||(z=void 0);const F=h||(s?eY(oJ(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:aJ,$=null!=(i=null==v?void 0:v.paper)?i:sJ,H=vG({elementType:$,externalSlotProps:$C({},_,{style:A?_.style:$C({},_.style,{opacity:0})}),additionalProps:{elevation:p,ref:D},ownerState:R,className:kU(T.paper,null==_?void 0:_.className)}),V=vG({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:R,className:kU(T.root,f)}),{slotProps:B}=V,W=QC(V,tJ);return tW.jsx(j,$C({},W,!pG(j)&&{slotProps:B,disableScrollLock:C},{children:tW.jsx(w,$C({appear:!0,in:g,onEntering:(e,t)=>{S&&S(e,t),L()},onExited:()=>{I(!1)},timeout:z},E,{children:tW.jsx($,$C({},H,{children:d}))}))}))}));function cJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uJ(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function dJ(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,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fJ(){return fJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fJ.apply(null,arguments)}function hJ(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 pJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hJ(Object(n),!0).forEach((function(t){dJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mJ(){mJ=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new D(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=v.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;q(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function gJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||bJ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yJ(e){return function(e){if(Array.isArray(e))return cJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bJ(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 vJ(e){return vJ="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},vJ(e)}function bJ(e,t){if(e){if("string"==typeof e)return cJ(e,t);var n={}.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)?cJ(e,t):void 0}}var xJ=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return YS.createElement(sG,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},YS.createElement("path",{d:r}),n?YS.createElement("title",null,n):void 0,i?YS.createElement("use",{fillRule:i}):void 0)},wJ={STYLE:{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)"}}}},kJ={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},SJ=function(e){return kJ.R.test(e)||kJ.AL.test(e)};function CJ(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],kJ.L.test(n))return"ltr";if(SJ(t))return"rtl"}return"ltr"}var EJ,MJ,_J=eG(yX,{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:"0px",maxWidth:"640px",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}}})),qJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{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:wJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),DJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:wJ.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),RJ=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.index,p=l.isCyclic,m=l.isLocked,g=i.resources.translator,y=i.services.focus,v=i.settings.isDisabled,b=i.state.inSelections,x=!(!c.change||!u),w=!(!c.reload||!p),k=(x||w)&&!b&&!v(),S={pointerEvents:k?"auto":"none"},C=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:x,canReload:w,direction:s,hasCyclic:d,hasMultiple:f,isLocked:m}),E=dJ(dJ({},"rtl"===s?"endIcon":"startIcon",m&&YS.createElement(qJ,{height:12})),"rtl"===s?"startIcon":"endIcon",(x||w)&&YS.createElement(DJ,{className:"".concat(b||v()?"disabled":"")})),M=US.useRef(),_=US.useRef();US.useEffect((function(){t||y.shouldFor(h)&&(M.current.focus(),_.current.focusVisible())}));var q=CJ(a),D="Accessibility.".concat(k?"Alternative":"Normal",".Instructions");return YS.createElement(_J,fJ({action:_,"aria-describedby":r,"aria-label":g.get(D),color:"inherit",direction:s,disabled:!k||v()||b,onClick:function(e){k&&n(e)},padding:C,ref:M,style:S,styling:o.title,title:a},E),YS.createElement("span",{dir:q,style:wJ.STYLE.ELLIPSIS},a))},TJ=function(e){var t=e.className,n=e.title;return YS.createElement(xJ,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},OJ=eG(yX,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),PJ=eG(TJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:wJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),NJ=eG((function(e){var t=e.className,n=e.title;return YS.createElement(xJ,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:wJ.STYLE.ICONS.COLOR.DISABLED}}})),AJ=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=gJ(US.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return US.useEffect((function(){r&&i(!1)}),[l]),f.reload?YS.createElement(OJ,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},YS.createElement(NJ,{className:"".concat(r||g||m()?"disabled":"")})):YS.createElement(PJ,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},IJ=function(e){var t=e.className,n=e.title;return YS.createElement(xJ,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},LJ=eG(yX,{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}}})),zJ={color:wJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:wJ.STYLE.ICONS.COLOR.DISABLED}},FJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return zJ})),jJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return zJ})),$J=eG(IJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:wJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),HJ=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=dJ({},"rtl"===s?"startIcon":"endIcon","rtl"===s?YS.createElement(jJ,{className:h}):YS.createElement(FJ,{className:h})),m=o.map((function(e,t){var i=CJ(e);return YS.createElement(LJ,fJ({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),YS.createElement("span",{dir:i,style:wJ.STYLE.ELLIPSIS},e))}));return YS.createElement(YS.Fragment,null,"rtl"===s?m.reverse():void 0,YS.createElement($J,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},VJ=eG(HX,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":pJ({},wJ.STYLE.FOCUS)}})),BJ=eG(UX)((function(){return{marginRight:0,justifyContent:"center"}})),WJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY}})),UJ=eG(TJ)((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY}})),YJ=eG(IJ)((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),KJ=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=pJ({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},wJ.STYLE.ELLIPSIS),d=CJ(s),f=YS.createElement(BJ,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?YS.createElement(WJ,{height:12}):null!=t&&t.isCyclic?YS.createElement(UJ,{height:12}):null!=t&&t.isDrillDown?YS.createElement(YJ,{height:12}):void 0}({meta:n,selected:o}));return YS.createElement(YS.Fragment,{key:t},YS.createElement(VJ,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,YS.createElement(JX,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},GJ=eG(_X)((function(){return{marginTop:"-1px"}})),XJ=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,x=o.resources.translator,w=o.services.focus,k={isChanging:!1},S=US.useRef(),C=function(){var e,t=document.activeElement;null!=S&&null!==(e=S.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},E=v||b,M=YS.createElement(KJ,{id:h,key:h,meta:o.meta,onClick:C,selected:!E,source:o,text:E?f.name:p}),_=E&&f.items.map((function(e){return YS.createElement(KJ,{id:e.id,nested:!0,onClick:function(t){return function(e,t){k.isChanging||(k.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||w.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:o,text:e.text})})),q=m.map((function(e,t){return YS.createElement(YS.Fragment,{key:e.id},YS.createElement(KJ,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(k.isChanging||(k.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||w.queueFor(y),s({id:r})));var n,r},source:o,text:e.text}),t<m.length-1&&YS.createElement(GJ,{key:"divider-".concat(e.id)}))}));return YS.createElement(lJ,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:C,open:i,ref:S,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},YS.createElement(LX,{"aria-label":x.get("Accessibility.Popover.Instructions"),dense:!0},M,_,YS.createElement(GJ,{key:"divider-".concat(h)}),q))},JJ=function(e){var t=e.source,n=gJ(US.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){i(null)};US.useEffect((function(){o.isOpen&&c()}),[t.info.key]);var u=YS.createElement(AJ,{source:t}),d=YS.createElement(HJ,{source:t});return YS.createElement(YS.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,YS.createElement(RJ,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),YS.createElement(XJ,{anchor:r,id:o.id,onClose:c,open:o.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var ZJ=function(){if(MJ)return EJ;MJ=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return EJ=function e(){var t,n,r,l,c,u,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=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},EJ}(),QJ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ZJ);function eZ(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function tZ(e){return Array.isArray(e)}function nZ(e){return null!=e&&!Array.isArray(e)&&"object"===vJ(e)}function rZ(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function iZ(e){return void 0===e}function oZ(e,t){if(nZ(e)&&nZ(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!oZ(e[n[r]],t[n[r]]))return!1;return!0}if(tZ(e)&&tZ(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!oZ(e[o],t[o]))return!1;return!0}return e===t}function aZ(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?QJ(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);oZ(t,r)||rZ(i,e)||(iZ(r)?s.push({op:"add",path:o,value:t}):nZ(t)&&nZ(r)?s.push.apply(s,yJ(aZ({oldData:r,newData:t,basePath:o}))):tZ(t)&&tZ(r)?s.push.apply(s,yJ(function(e){var t=e.newArray,n=e.basePath,r=[];return oZ(t,e.oldArray.slice())||(!iZ(t[0])&&iZ(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){iZ(i[e])&&!rZ(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function sZ(e){var t=e.model,n=aZ({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function lZ(e){return cZ.apply(this,arguments)}function cZ(){return(cZ=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){uJ(o,r,i,a,s,"next",e)}function s(e){uJ(o,r,i,a,s,"throw",e)}a(void 0)}))}}(mJ().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return mJ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,i){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,i.getEffectiveProperties();case 5:return l=e.sent,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=QJ(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.next=19,eZ({model:i,properties:d});case 19:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),sZ({model:i,oldProperties:l,newProperties:d});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return lZ({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function dZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return lZ({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function fZ(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,i,o=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==o||!o.focus||(null==o?void 0:o.index)!==e);return a&&(null==t||null===(i=t.set)||void 0===i||i.call(t,n,{focus:!1})),a}}}({cache:f,key:i}),x=("dimension"===y?uZ:dZ)({callbacks:t,data:n,resources:o,settings:a});"rtl"===v&&x.reverse();var w={allowed:{change:(!(null==h||!h.modifiers||null==h||!h.colorSupport)||p)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return pJ(pJ({data:n,layout:{direction:v},resources:{translator:o.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:pJ(pJ(pJ({},w),e.meta),{},{index:t,isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return YS.createElement("div",{style:u},d.map((function(e){return YS.createElement(YS.Fragment,{key:e.info.id},YS.createElement(JJ,{source:e}),!e.meta.isLast&&YS.createElement("span",{dir:e.layout.direction,style:pJ(pJ({},c.title),{},{lineHeight:"normal"})},", "))})))}var hZ,pZ='"Source Sans Pro", "Arial", "sans-serif"',mZ="12px",gZ=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return fZ({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},yZ={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:pZ,fontSize:mZ},popover:{color:"#595959CC",fontFamily:pZ,fontSize:mZ}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(gZ(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return gZ(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},vZ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return YS.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},bZ={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 YS.createElement("div",{dir:o,style:a},YS.createElement(vZ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},xZ={},wZ=function(){if(hZ)return xZ;hZ=1;var e=zj;return xZ.createRoot=e.createRoot,xZ.hydrateRoot=e.hydrateRoot,xZ}(),kZ=xK({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:"16px",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")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},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 SZ(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 CZ(){var e={rendererBox:SZ(),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=SZ(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=wZ.createRoot(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 YS.createElement(YS.StrictMode,null,YS.createElement(nG,{theme:kZ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function EZ(e){return Ry(e).l<70}function MZ(e,t){const n=Ry(e).l/100,r=Ry(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function _Z(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var qZ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(MZ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=_Z({r:s,a:e},n),o=_Z({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:EZ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function DZ(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 RZ(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:DZ(s)}}var TZ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=RZ({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function OZ(){const e=vp();return e.use(ag),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",cg(e))};e.interaction("hammer",cg(Hammer))}(a)),e.use((function(e){e.renderer("react",xH()),e.component("data-title",yH(e.renderer("svg")()))})),e.renderer("react-qcm",CZ),e.component("axis-title",yZ),e.component("disclaimer",bZ),e.component("pie-dividers",qZ),e.component("negative-indicators",TZ),e}var PZ={};function NZ(){NZ.init.call(this)}PZ.isObject=function(e){return"object"==typeof e&&null!==e},PZ.isNumber=function(e){return"number"==typeof e},PZ.isUndefined=function(e){return void 0===e},PZ.isFunction=function(e){return"function"==typeof e};var AZ=NZ;NZ.EventEmitter=NZ,NZ.prototype._events=void 0,NZ.prototype._maxListeners=void 0,NZ.defaultMaxListeners=10,NZ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},NZ.prototype.setMaxListeners=function(e){if(!PZ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},NZ.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],PZ.isUndefined(n))return!1;if(PZ.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(PZ.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},NZ.prototype.addListener=function(e,t){var n;if(!PZ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,PZ.isFunction(t.listener)?t.listener:t),this._events[e]?PZ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,PZ.isObject(this._events[e])&&!this._events[e].warned)&&((n=PZ.isUndefined(this._maxListeners)?NZ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,PZ.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),PZ.isFunction(console.trace)&&console.trace()));return this},NZ.prototype.on=NZ.prototype.addListener,NZ.prototype.once=function(e,t){if(!PZ.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},NZ.prototype.removeListener=function(e,t){var n,r,i,o;if(!PZ.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||PZ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(PZ.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},NZ.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],PZ.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},NZ.prototype.listeners=function(e){return this._events&&this._events[e]?PZ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},NZ.listenerCount=function(e,t){return e._events&&e._events[t]?PZ.isFunction(e._events[t])?1:e._events[t].length:0};var IZ=r(AZ);function LZ(){const e={};var t;return t=e,Object.keys(IZ.prototype).forEach((e=>{t[e]=IZ.prototype[e]})),IZ.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}function zZ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=LZ(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{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"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=xk({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=rv({},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}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=hx();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const FZ={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 jZ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const $Z={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,c=o[t]*(n>l?1:n/l),u=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(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},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 HZ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;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 u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.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 c=void 0!==i.secure?i.secure:i.isSecure,o=c?"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 $Z.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function VZ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.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=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return HZ(u,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&&jZ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await $Z.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 $Z.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,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(jZ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await $Z.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 BZ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(VZ(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}},WZ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await BZ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>BZ.checkIfPromisesExist({customTooltipModel:e})};const UZ=(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:FZ.CHART.CHART_PARENT_TYPE,qId:FZ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},YZ=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:FZ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const KZ={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=FZ.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:FZ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(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 KZ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=FZ.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=FZ.CHART.STATE,a=UZ(t,o),s=await e.createSessionObject(a),l=YZ(t);if(s.id!==FZ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.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(FZ.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 KZ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(KZ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(FZ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=FZ.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 GZ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function XZ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=FZ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function JZ(e){const t=XZ();return e.filter((e=>t[e.id]))}const ZZ={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 c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||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===c.value&&r.label===c.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}=ZZ.getAttrExprData(a);o.length||n.length?WZ.handlePromises({customTooltipModel:i,nodes:ZZ.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&&KZ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>WZ.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[FZ.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[FZ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[FZ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(JZ(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[FZ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[FZ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=GZ(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===JZ(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=void 0){let r=[];const i=GZ(e)||[];[...i,t].forEach((e=>{const t=JZ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=XZ(),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:Tg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Tg.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 QZ(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 FZ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case FZ.CUSTOM.TITLE:case FZ.CUSTOM.DESCRIPTION:case FZ.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 eQ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>QZ(t,e,r,n)}}};const tQ={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={[FZ.CUSTOM.TITLE]:!0,[FZ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=ZZ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===FZ.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===FZ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Og.getMeasure(e,t))),e,i)}};function nQ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(tQ.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 rQ(e){const t=FZ.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 iQ(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const oQ={migrateProperties(e){var t,n;const r=bg(!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=iQ(r);return o=function(e,t){return t.concat(e.map((e=>rQ(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=rQ(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}(iQ(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 aQ={attrExpr:oQ};const{CUSTOM:sQ}=FZ;function lQ({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=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:ZZ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&ux(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=nQ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===sQ.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===sQ.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>ZZ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>ZZ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=ZZ.getDataNodes(o,r),{attrExps:a}=ZZ.getAttrExprData(t);return WZ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>KZ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>ZZ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>KZ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>KZ.hide({app:n,customTooltipModel:d}),destroy:()=>KZ.destroyVisualization({customTooltipModel:d})}}}function cQ(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function uQ({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=ev(ov().mark((function e(t){var o,a,s,l,c,u,d;return ov().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.properties,!i.initialized){e.next=3;break}return e.abrupt("return");case 3:return s=[Cv(a={app:n,translator:r,properties:o}),_v(a)],e.next=7,Promise.all(s);case 7:l=e.sent,c=av(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:sv(i.dimensions),measures:sv(i.measures)}}}}({app:o,translator:a}),l=ix({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),y=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 ev(ov().mark((function e(){var r,a,s,l;return ov().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=ev(ov().mark((function e(n){var r;return ov().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(rv({},i));case 4:if("object"===lv(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(rv({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,sv(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=av(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Rv(!0,{},n.brush);Rv(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===lv(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=mx({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=mx({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:cQ(u)}),v=lQ({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),b=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,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:_k(a),styles:void 0};return d.styles=Dk({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Dk({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),x=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return oS({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:b,colorService:l,custom:v}),w=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("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:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("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:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||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:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||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:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("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:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("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:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("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:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("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:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("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:r.legend.label.color}}}}}}({layout:u,themeService:b,flags:t}),k=function({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return cx({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=Mg.getValue(e,"qHyperCube.qSize.qcy");return Mg.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const i=t({ds:e,encodings:r});return 0===n({rows:i,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i});return 0===r({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i}),s=a,l=r({rows:a,encodings:i});return s.length!==l.length}}}}})}({layout:u});c({alternativeService:e,colorService:l,disclaimerService:k,pluginService:y,themeService:b,tooltipService:x,styleService:w})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}const dQ=e=>"[object Object]"===Object.prototype.toString.call(e),fQ=e=>Array.isArray(e);function hQ(e,t){if(e===t)return!0;if(fQ(e)){if(!fQ(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hQ(e[n],t[n]))return!1;return!0}if(dQ(e)){if(!dQ(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(!hQ(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function pQ({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=bg(!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=bg(!0,{},e),l=bg(!0,{},t);return a.exclude=!hQ(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=!hQ(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}function mQ({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const gQ=.8,yQ=.55,vQ={CORNER_RADIUS:0,INNER_RADIUS:yQ,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},bQ=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=gQ,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:yQ;e.donut.showAsDonut&&(o=gQ-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:gQ,xQ=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:yQ;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=gQ-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},wQ=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Mg.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?eQ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:xQ({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?vQ.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:vQ.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:vQ.STROKE.COLOR,outerRadius:bQ({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function kQ({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:yQ,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=gQ-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function SQ(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function CQ({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function EQ(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function MQ(e){return e.node.data.num.label}function _Q(e){return e.node.data.radius.label}function qQ(e,t,n){if(e.dataPoint.auto)return n?MQ:EQ;if("share"===e.dataPoint.labelMode)return EQ;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?_Q:MQ}return null}function DQ({data:e}){return e?e.label:""}function RQ(e){const t=parseInt(e,10);if(!isNaN(t))return t}function TQ(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:yQ)>.3}function OQ({node:e,data:t}){return bg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function PQ(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:RQ(r.fontSize),fontFamily:r.fontFamily,label:DQ,linkData:({node:e,data:t})=>bg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(qQ(e,t,!1)){const r=function(e,t,n){return{label:qQ(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&TQ(e)?"inside":"into",onBackground:e.donut.showAsDonut&&TQ(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Ag(bg(t,r),n.theme);o.linkData=OQ,i.push(o)}return{key:"pie-labels",type:"labels",renderer:cS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function NQ({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=qQ(e,t,!0),i=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:cS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:RQ(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:DQ,linkData:({data:e})=>e},{fontSize:RQ(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):PQ(e,n,t))}const AQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function IQ(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}}function LQ(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=IQ(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*gQ;return(o-r)**2+(a-i)**2<=s**2}const zQ=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=IQ(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),FQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),jQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function $Q(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&LQ(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!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,e))}n&&t.preventDefault()}}}}const HQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&LQ(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),VQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),BQ=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[HQ(e,{}),zQ(e,t,{}),...n]:[AQ(e,{}),jQ(e,{}),HQ(e,{}),FQ(e,{}),VQ(e,{}),zQ(e,t,{}),...n]});function WQ(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[BQ(t,r,o.gestures),$Q(t),o.native]}function UQ({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function YQ({layout:e},t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function KQ({layout:e},t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.alternativeService.getAlternatives(),o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:o.color,fontFamily:o.fontFamily,fontSize:o.fontSize}}}}function GQ({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return bg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&bg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:i}=e,{fontFamily:o}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:o}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[wQ({layout:e},r),kQ({layout:e},r),SQ(r),CQ({layout:e},r),YQ({layout:e},r,t),KQ({layout:e},r,t),...c.components,mQ({scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},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}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},NQ({layout:{components:e.components,dataPoint:bg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:WQ(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:UQ({settings:o},r),strategy:Sg(0,r)}}function XQ({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),p=pQ({enable:u&&!u.snapshotData}),[m]=e.usePromise((()=>{if(!n)return Promise.resolve();aQ.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async t=>Promise.all([n.colorService.initialize({createConfig:e}),Promise.resolve(t),n.pluginService.initialize(),n.alternativeService.initialize({properties:t})])))}),[n,p]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!m)return;const{chart:e,viewState:p,interactions:g,viewCache:y}=t,{alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,tooltipService:S,styleService:C}=n,E=o.viewState||{};u.snapshotData||(p.preventSet("legendScrollOffset",E.legendScrollOffset||0),p.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,p),S.expando.set("properties",m[1]);const M=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),_=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...b.getData()],q={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(q.slice.outerRadius="qMeasureInfo/1"),x.initialize({args:{ds:M,encodings:q}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),q),R=d?()=>{const t=e.brush("selection");ag.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},T=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,O=e=>t.selectionService.getIsSelectionLocked(e),P=()=>GQ({layout:u,context:{rtl:"rtl"===o.direction,theme:c,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:M,model:a,app:s,chart:e,onSelect:R,isLocked:O,interactions:g,constraints:f,translator:l,viewState:p,dataRowCount:D,encodings:q,alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,styleService:C,tooltipService:S,debouncer:px,properties:m[1],selections:d,logicalSize:T,flags:i,viewCache:y,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!lS.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:p,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=P;const N=P();e.update({data:_,settings:N}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),lS.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:q}):u.effectPath||e.brush("highlight").end()}),[t,m,o.direction,o.effectProperties,f,c.name(),l.language()])}function JQ({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:_g(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:_g(t.chart,"legend-cat")})})),[t])}var ZQ={exports:{}};!function(e){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,c,u,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)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,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,c,u,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)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,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:()=>Te});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 c(e){return s+e+l}function u(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 c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(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 k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(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 u=p(0);return"If(Count(".concat(u,") > 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:u,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:c,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 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 C(e){return C="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},C(e)}var E=t().bind(null,!0),M={},_=Array.isArray;function q(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(e){return void 0===e}function R(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(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]=D(e[n||t])?o:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(q(e)&&q(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}M.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);O(o,a)||R(t,i)||(D(a)?r.push({op:"add",path:s,value:o}):q(o)&&q(a)?r=r.concat(M.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&D(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(O(t,i))return r;if(!D(t[0])&&D(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(M.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;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){D(t[i])&&!R(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},M.apply=function(e,t){t.forEach((function(t){var n,r,i=T(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(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||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 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}}(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(q(a)&&q(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!R(n,e)&&delete n[e]})),E(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 u=T(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},M.clone=function(e){return E({},e)},M.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},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):E(e,t)};const P=M,N=function(e,n,r){if(!e)return Promise.resolve();var i=P.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 A="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===A)return n[r]}function L(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===A)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:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.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=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.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!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(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(L(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(L(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(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(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=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(A))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(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 B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.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 c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.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!k.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=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(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 k.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=$(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:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.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!k.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 k.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 Z(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 Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.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=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.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(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.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=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,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),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,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!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var 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){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,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 k.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:ce};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",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",Me="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Ee)&&o(e,Me)&&n(e,Ee,o(e,Me)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const qe=_e;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Re={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Te={modifiers:Re,apply:Pe,applyModifiers:Ne,cleanUpMeasure:Ae,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:qe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Re[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Re[e]&&Re[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||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Oe={};function Pe(){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;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return Ne({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){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:u,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:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(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"===De(e)&&!e.disabled){if(n++,"object"!==De(Re[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=Re[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ne({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"===De(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ae(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ne(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).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(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Ae(e)})),Promise.resolve();var l=a?void 0:Qe(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;qe.isValid(n)||qe.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===De(e)&&!e.disabled){if(s++,"object"!==De(Re[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)");Re[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.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:Re[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 Re[r.type].updateModifier&&Re[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Re[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)):Ae(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ae(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Re[e.type]}))}(e)?qe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(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 Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Re[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Re[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 $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!qe.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"===De(t)&&(t.disabled||!Re[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(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"!==De(e)||e.disabled||!Re[e.type])&&(void 0===i[e.type]&&(i[e.type]=Re[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):N(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Re[e.type]&&Re[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(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||Ze({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)?(Oe[t.id].masterItemSubscriber=Oe[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 c(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 u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),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(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[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 c(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 c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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:u};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),k=n.n(w);function S(e,t){var n=k()(!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 C(e,t){return k()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var M=Math.pow(2,53)-1;function _(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 q(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 D=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},R=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},N=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=S(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 c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},A=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=C(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 c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=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=E(a.max,i.dimensions.length,M),l=E(a.min,i.dimensions.length,0);return{maxDimensions:E(o.max,s,M),minDimensions:E(o.min,l,0),maxMeasures:s,minMeasures:l}},L=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=k()(!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=k()(!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=[]))},$=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)}(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,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,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 q(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 q(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)?q(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 B(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,c=e.hypercubePath,u=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:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,E=void 0===C?O():C,M=l.defaultMeasure,_=void 0===M?P():M;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),N({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:E}),A({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),R("qMaxStackedCells",y,v),R("qNoOfLeftDims",y,v),T("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",y,v,"S"),T("qReductionMode",y,v,"N"),T("qSortbyYValue",y,v),T("qIndentMode",y,v),T("qShowTotalsAbove",y,v),D(g,t,r),m.qProperty=g;var q=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:q}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(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=u(e,r,n),o=u(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}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,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 c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.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:c,isDimension:n,qNumFormat:u,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:c,isDimension:n,qNumFormat:u,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=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:s,key: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)}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)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[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},ue=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,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),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,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.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=ce(d,f),y=ue({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),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(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]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(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}}},ke={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,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.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=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}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,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ee(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=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Me="qHyperCubeDef.qMeasures",_e="conditionalColoring",qe="measures",De="qDef.conditionalColoring";const Re={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:_e,arrayName:qe,itemPath:De})},unquarantine:function(e){Ee({properties:e,arrayPath:Me,itemPath:De,arrayName:qe,quarantineName:_e})}};var Te="qHyperCubeDef.qMeasures",Oe="measures",Pe="qHyperCubeDef.qDimensions",Ne="dimensions",Ae="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},unquarantine:function(e){Ee({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ee({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Ee,conditionalColoring:Re,conditionalShow:$e}})(),r.default})()}(ZQ);var QQ=r(ZQ.exports);const e0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},t0={getDimensions:e=>e0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>e0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>e0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>e0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=e0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=e0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const n0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>t0.getNumMeasures(e)>=1},showLegend:e=>{const t=e0.getValue(e,"color.auto"),n=e0.getValue(e,"color.expressionIsColor"),r=e0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!e0.getValue(e,"color.auto")&&"byDimension"===e0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===e0.getValue(e,"color.useDimColVal")&&e0.setValue(e,"color.useDimColVal",!1),!e0.getValue(e,"color.auto")&&"byDimension"===e0.getValue(e,"color.mode")&&"libraryItem"===e0.getValue(e,"color.byDimDef.type"))},r0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=n0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),r.push({value:"primary",translation:"properties.colorMode.primary"}),r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!e0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=e0.getValue(e,"color.auto");return e0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===e0.getValue(e,"color.mode")&&!0===e0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>e0.getValue(e,"legend.show")&&i(e)}}};function i0(e){return new r0(e)}const o0={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},a0=(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.pieChart",e,"color")})}}}}},s0=(e,t,n,r)=>{const i=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,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=xv({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,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 c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:a0("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:a0("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:a0("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:a0("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:a0("legend.label",i,r)}}}:void 0}}},l0=i0("hard");const c0=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(fx(e,"color.mode","byDimension"),fx(e,"color.byDimDef.activeDimensionIndex",0),fx(e,"color.persistent",!1))},u0=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},d0=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:c0},colorMode:{options:u0}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||fx(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:o0,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:{sliceStyling:s0(o,n,r,i),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:l0.color.colorMode.options},persistentColors:{show:l0.color.persistentColors.show}}},simpleColors:a,legend:{show:l0.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:l0.legend.showTitle.show},dock:{show:l0.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},f0={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},h0={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},p0={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function m0(e){return{type:"items",component:"accordion",items:{data:f0,sorting:h0,addons:p0,settings:d0(e)}}}const g0=i0("explore"),y0=m0();var v0={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:y0.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:y0.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:g0.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&g0.color.useDimColVal.show(e))}}}}}}};const b0="slices";function x0(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function w0(e){return e.data.num.label}function k0(e){return e.data.radius.label}function S0(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?w0:x0;if("share"===e.dataPoint.labelMode)return x0;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?k0:w0;return w0}(n,r)(e,t)}function C0(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class E0{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:C0(n),label:S0(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=bg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=bg(e.options,{effect:null}),n?t.getProperties().then((e=>bg(e,{effectPath:null,effectProperties:null,dataPoint:bg(!0,{},e.originalModelSettings.dataPoint),legend:bg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class M0 extends E0{init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(b0).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class _0 extends E0{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(b0).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(b0).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===b0)).map(((n,r)=>{const i=S0(n,this.chart.formatter,e,t);return{text:`${C0(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const q0="/effects/highlight-value",D0="/effects/maxmin";var R0={isCompatible:({effectPath:e})=>e===D0||e===q0,create:e=>e.effectPath===D0?new M0(e):e.effectPath===q0?new _0(e):null};function T0(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function O0(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))}function P0(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function N0({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){P0(e),O0(t),ZZ.addCallbackCustomTooltip(t)},move(e,t){P0(e),O0(t),ZZ.moveCallbackCustomTooltip(t,e)},remove(e,t){ZZ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){P0(e),O0(r),ZZ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){O0(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const A0=e=>e.qMax<=0,I0=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(A0));function L0(e){return{definition:m0(e),softDefinition:v0,support:{snapshot:I0,export:I0,exportData:!0,sharing:I0,viewData:!0,effects:!0},effects:R0,extendMetrics:T0,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=QQ.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:N0(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>QQ.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function z0(e){return{properties:{version:"1.28.4",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:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:vQ.STROKE.COLOR},cornerRadius:vQ.CORNER_RADIUS,innerRadius:vQ.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[N0(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=QQ.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:N0(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>QQ.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=OZ();return{qae:z0(t),ext:L0(t),component(){const t=zZ({picasso:i}),n=uQ({flags:r,picasso:i,instance:t});XQ({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),JQ({instance:t,services:n})}}}}));
|
|
122
|
+
`),bG.rippleVisible,MG,550,(({theme:e})=>e.transitions.easing.easeInOut),bG.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),bG.child,bG.childLeaving,_G,550,(({theme:e})=>e.transitions.easing.easeInOut),bG.childPulsate,qG,(({theme:e})=>e.transitions.easing.easeInOut)),TG=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=QC(n,xG),[s,l]=US.useState([]),c=US.useRef(0),u=US.useRef(null);US.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=US.useRef(!1),f=lY(),h=US.useRef(null),p=US.useRef(null),m=US.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,tW.jsx(RG,{classes:{ripple:kU(i.ripple,bG.ripple),rippleVisible:kU(i.rippleVisible,bG.rippleVisible),ripplePulsate:kU(i.ripplePulsate,bG.ripplePulsate),child:kU(i.child,bG.child),childLeaving:kU(i.childLeaving,bG.childLeaving),childPulsate:kU(i.childPulsate,bG.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=US.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 c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=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)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=US.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=US.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)),u.current=t}),[f]);return US.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),tW.jsx(DG,$C({className:kU(bG.root,i.root,o),ref:p},a,{children:tW.jsx(l$,{component:null,exit:!0,children:s})}))}));function OG(e){return CU("MuiButtonBase",e)}const PG=EU("MuiButtonBase",["root","disabled","focusVisible"]),NG=["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"],AG=eG("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"},[`&.${PG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IG=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!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:k,onMouseUp:S,onTouchEnd:C,onTouchMove:E,onTouchStart:M,tabIndex:_=0,TouchRippleProps:q,touchRippleRef:D,type:R}=n,T=QC(n,NG),O=US.useRef(null),P=US.useRef(null),N=iY(P,D),{isFocusVisibleRef:A,onFocus:I,onBlur:L,ref:z}=yY(),[F,j]=US.useState(!1);l&&F&&j(!1),US.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),O.current.focus()}})),[]);const[$,H]=US.useState(!1);US.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return rY((r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0}))}US.useEffect((()=>{F&&d&&!c&&$&&P.current.pulsate()}),[c,d,F,$]);const W=B("start",w),U=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",M),J=B("stop",C),Z=B("stop",E),Q=B("stop",(e=>{L(e),!1===A.current&&j(!1),h&&h(e)}),!1),ee=rY((e=>{O.current||(O.current=e.currentTarget),I(e),!0===A.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=US.useRef(!1),re=rY((e=>{d&&!ne.current&&F&&P.current&&" "===e.key&&(ne.current=!0,P.current.stop(e,(()=>{P.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=rY((e=>{d&&" "===e.key&&P.current&&F&&!e.defaultPrevented&&(ne.current=!1,P.current.stop(e,(()=>{P.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(T.href||T.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===R?"button":R,ae.disabled=l):(T.href||T.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=iY(t,z,O),le=$C({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=vY({root:["root",t&&"disabled",n&&"focusVisible"]},OG,i);return n&&r&&(o.root+=` ${r}`),o})(le);return tW.jsxs(AG,$C({as:oe,className:kU(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:R},ae,T,{children:[o,V?tW.jsx(TG,$C({ref:N,center:i},q)):null]}))}));function LG(e){return CU("MuiTypography",e)}EU("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zG=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],FG=eG("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${mW(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$C({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),jG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$G={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HG=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiTypography"}),r=(e=>$G[e]||e)(n.color),i=yU($C({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=jG}=i,h=QC(i,zG),p=$C({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||jG[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return vY({root:["root",o,"inherit"!==e.align&&`align${mW(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},LG,a)})(p);return tW.jsx(FG,$C({as:m,ref:t,ownerState:p,className:kU(g.root,a)},h))})),VG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BG(e){const t=[],n=[];return Array.from(e.querySelectorAll(VG)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function WG(){return!0}function UG(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=BG,isEnabled:a=WG,open:s}=e,l=US.useRef(!1),c=US.useRef(null),u=US.useRef(null),d=US.useRef(null),f=US.useRef(null),h=US.useRef(!1),p=US.useRef(null),m=iY(t.ref,p),g=US.useRef(null);US.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),US.useEffect((()=>{if(!s||!p.current)return;const e=eY(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),US.useEffect((()=>{if(!s||!p.current)return;const e=eY(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return tW.jsxs(US.Fragment,{children:[tW.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),US.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),tW.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const YG=US.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=US.useState(null),s=iY(US.isValidElement(n)?n.ref:null,t);if(JU((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),JU((()=>{if(o&&!i)return nY(t,o),()=>{nY(t,null)}}),[t,o,i]),i){if(US.isValidElement(n)){const e={ref:s};return US.cloneElement(n,e)}return tW.jsx(US.Fragment,{children:n})}return tW.jsx(US.Fragment,{children:o?Lj.createPortal(n,o):o})}));function KG(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GG(e){return parseInt(tY(e).getComputedStyle(e).paddingRight,10)||0}function XG(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&KG(e,i)}))}function JG(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ZG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=eY(e);return t.body===e?tY(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(eY(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GG(r)+e}px`;const t=eY(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${GG(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=eY(r).body;else{const t=r.parentElement,n=tY(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const QG=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&KG(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);XG(t,e.mount,e.modalRef,r,!0);const i=JG(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=JG(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ZG(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=JG(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&KG(e.modalRef,t),XG(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&KG(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function eX(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=QG,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=US.useRef({}),h=US.useRef(null),p=US.useRef(null),m=iY(p,d),[g,y]=US.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=rY((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||eY(h.current).body;i.add(x(),e),p.current&&w()})),S=US.useCallback((()=>i.isTopModal(x())),[i]),C=rY((e=>{h.current=e,e&&(u&&S()?w():p.current&&KG(p.current,b))})),E=US.useCallback((()=>{i.remove(x(),b)}),[b,i]);US.useEffect((()=>()=>{E()}),[E]),US.useEffect((()=>{u?k():v&&o||E()}),[u,E,v,o,k]);const M=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=mG(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=$C({},n,t);return $C({role:"presentation"},r,{onKeyDown:M(r),ref:m})},getBackdropProps:(e={})=>$C({"aria-hidden":!0},e,{onClick:_(e),open:u}),getTransitionProps:()=>({onEnter:QU((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:QU((()=>{y(!0),s&&s(),o&&E()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:C,isTopModal:S,exited:g,hasTransition:v}}const tX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nX={entering:{opacity:1},entered:{opacity:1}},rX=US.forwardRef((function(e,t){const n=kK(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=n$}=e,v=QC(e,tX),b=US.useRef(null),x=iY(b,a.ref,t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},k=w(d),S=w(((e,t)=>{lG(e);const r=cG({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),E=w(p),M=w((e=>{const t=cG({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),_=w(h);return tW.jsx(y,$C({appear:o,in:l,nodeRef:b,onEnter:S,onEntered:C,onEntering:k,onExit:M,onExited:_,onExiting:E,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>US.cloneElement(a,$C({style:$C({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},nX[e],m,a.props.style),ref:x},t))}))}));function iX(e){return CU("MuiBackdrop",e)}EU("MuiBackdrop",["root","invisible"]);const oX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aX=eG("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>$C({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),sX=US.forwardRef((function(e,t){var n,r,i;const o=SK({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=rX,transitionDuration:g}=o,y=QC(o,oX),v=$C({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return vY({root:["root",n&&"invisible"]},iX,t)})(v),x=null!=(n=h.root)?n:u.root;return tW.jsx(m,$C({in:f,timeout:g},y,{children:tW.jsx(aX,$C({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:kU(b.root,s,null==x?void 0:x.className),ownerState:$C({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function lX(e){return CU("MuiButton",e)}const cX=EU("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"]),uX=US.createContext({}),dX=US.createContext(void 0),fX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],hX=e=>$C({},"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}}),pX=eG(IG,{shouldForwardProp:e=>QK(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${mW(n.color)}`],t[`size${mW(n.size)}`],t[`${n.variant}Size${mW(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 $C({},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":$C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:LY(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})`:LY(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})`:LY(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":$C({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${cX.focusVisible}`]:$C({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${cX.disabled}`]:$C({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 ${LY(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"},[`&.${cX.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cX.disabled}`]:{boxShadow:"none"}})),mX=eG("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${mW(n.size)}`]]}})((({ownerState:e})=>$C({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},hX(e)))),gX=eG("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${mW(n.size)}`]]}})((({ownerState:e})=>$C({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},hX(e)))),yX=US.forwardRef((function(e,t){const n=US.useContext(uX),r=US.useContext(dX),i=SK({props:GU(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=QC(i,fX),x=$C({},i,{color:a,component:s,disabled:c,disableElevation:u,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 $C({},a,vY({root:["root",o,`${o}${mW(t)}`,`size${mW(i)}`,`${o}Size${mW(i)}`,`color${mW(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${mW(i)}`],endIcon:["icon","endIcon",`iconSize${mW(i)}`]},lX,a))})(x),k=g&&tW.jsx(mX,{className:w.startIcon,ownerState:x,children:g}),S=f&&tW.jsx(gX,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return tW.jsxs(pX,$C({ownerState:x,className:kU(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:kU(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));function vX(e){return CU("MuiModal",e)}EU("MuiModal",["root","hidden","backdrop"]);const bX=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],xX=eG("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>$C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),wX=eG(sX,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kX=US.forwardRef((function(e,t){var n,r,i,o,a,s;const l=SK({name:"MuiModal",props:e}),{BackdropComponent:c=wX,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:E=!1,onBackdropClick:M,open:_,slotProps:q,slots:D}=l,R=QC(l,bX),T=$C({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:C,keepMounted:E}),{getRootProps:O,getBackdropProps:P,getTransitionProps:N,portalRef:A,isTopModal:I,exited:L,hasTransition:z}=eX($C({},T,{rootRef:t})),F=$C({},T,{exited:L}),j=(e=>{const{open:t,exited:n,classes:r}=e;return vY({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vX,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=N();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:xX,V=null!=(i=null!=(o=null==D?void 0:D.backdrop)?o:g.Backdrop)?i:c,B=null!=(a=null==q?void 0:q.root)?a:y.root,W=null!=(s=null==q?void 0:q.backdrop)?s:y.backdrop,U=vG({elementType:H,externalSlotProps:B,externalForwardedProps:R,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:kU(d,null==B?void 0:B.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=vG({elementType:V,externalSlotProps:W,additionalProps:u,getSlotProps:e=>P($C({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:kU(null==W?void 0:W.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return E||_||z&&!L?tW.jsx(YG,{ref:A,container:p,disablePortal:w,children:tW.jsxs(H,$C({},U,{children:[!C&&c?tW.jsx(V,$C({},Y)):null,tW.jsx(UG,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:k,isEnabled:I,open:_,children:US.cloneElement(h,$)})]}))}):null}));function SX(e){return CU("MuiDivider",e)}EU("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const CX=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],EX=eG("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>$C({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:LY(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>$C({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$C({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$C({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$C({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),MX=eG("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$C({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),_X=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=QC(n,CX),p=$C({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return vY({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},SX,r)})(p);return tW.jsx(EX,$C({as:a,className:kU(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?tW.jsx(MX,{className:m.wrapper,ownerState:p,children:i}):null}))}));_X.muiSkipListHighlight=!0;const qX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function DX(e){return`scale(${e}, ${e**2})`}const RX={entering:{opacity:1,transform:DX(1)},entered:{opacity:1,transform:"none"}},TX="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),OX=US.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=n$}=e,g=QC(e,qX),y=lY(),v=US.useRef(),b=kK(),x=US.useRef(null),w=iY(x,i.ref,t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=k(c),C=k(((e,t)=>{lG(e);const{duration:n,delay:r,easing:i}=cG({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:TX?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),E=k(l),M=k(f),_=k((e=>{const{duration:t,delay:n,easing:r}=cG({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:TX?i:.666*i,delay:TX?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=DX(.75),u&&u(e)})),q=k(d);return tW.jsx(m,$C({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:E,onEntering:S,onExit:_,onExited:q,onExiting:M,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>US.cloneElement(i,$C({style:$C({opacity:0,transform:DX(.75),visibility:"exited"!==e||a?void 0:"hidden"},RX[e],h,i.props.style),ref:w},t))}))}));OX.muiSupportAuto=!0;const PX=US.createContext({});function NX(e){return CU("MuiList",e)}EU("MuiList",["root","padding","dense","subheader"]);const AX=["children","className","component","dense","disablePadding","subheader"],IX=eG("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>$C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),LX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=QC(n,AX),u=US.useMemo((()=>({dense:a})),[a]),d=$C({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return vY({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},NX,t)})(d);return tW.jsx(PX.Provider,{value:u,children:tW.jsxs(IX,$C({as:o,className:kU(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function zX(e){return CU("MuiListItemButton",e)}const FX=EU("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),jX=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],$X=eG(IG,{shouldForwardProp:e=>QK(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})=>$C({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"}},[`&.${FX.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:LY(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${FX.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:LY(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${FX.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:LY(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})`:LY(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${FX.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${FX.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}))),HX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=QC(n,jX),p=US.useContext(PX),m=US.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=US.useRef(null);JU((()=>{i&&g.current&&g.current.focus()}),[i]);const y=$C({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return $C({},n,vY({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},zX,n))})(y),b=iY(g,t);return tW.jsx(PX.Provider,{value:m,children:tW.jsx($X,$C({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:kU(v.focusVisible,u),ownerState:y,className:kU(v.root,f)},h,{classes:v,children:a}))})}));function VX(e){return CU("MuiListItemIcon",e)}EU("MuiListItemIcon",["root","alignItemsFlexStart"]);const BX=["className"],WX=eG("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})=>$C({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),UX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=QC(n,BX),o=$C({},n,{alignItems:US.useContext(PX).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return vY({root:["root","flex-start"===t&&"alignItemsFlexStart"]},VX,n)})(o);return tW.jsx(WX,$C({className:kU(a.root,r),ownerState:o,ref:t},i))}));function YX(e){return CU("MuiListItemText",e)}const KX=EU("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),GX=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],XX=eG("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${KX.primary}`]:t.primary},{[`& .${KX.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>$C({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),JX=US.forwardRef((function(e,t){const n=SK({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=QC(n,GX),{dense:f}=US.useContext(PX);let h=null!=s?s:r,p=c;const m=$C({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return vY({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},YX,t)})(m);return null==h||h.type===HG||o||(h=tW.jsx(HG,$C({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===HG||o||(p=tW.jsx(HG,$C({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),tW.jsxs(XX,$C({className:kU(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function ZX(e){return CU("MuiPopover",e)}EU("MuiPopover",["root","paper"]);const QX=["onEntering"],eJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],tJ=["slotProps"];function nJ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function rJ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function iJ(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function oJ(e){return"function"==typeof e?e():e}const aJ=eG(kX,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sJ=eG(hG,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lJ=US.forwardRef((function(e,t){var n,r,i;const o=SK({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=OX,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:C=!1}=o,E=QC(o.TransitionProps,QX),M=QC(o,eJ),_=null!=(n=null==b?void 0:b.paper)?n:y,q=US.useRef(),D=iY(q,_.ref),R=$C({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:x,TransitionComponent:w,transitionDuration:k,TransitionProps:E}),T=(e=>{const{classes:t}=e;return vY({root:["root"],paper:["paper"]},ZX,t)})(R),O=US.useCallback((()=>{if("anchorPosition"===u)return c;const e=oJ(s),t=(e&&1===e.nodeType?e:eY(q.current).body).getBoundingClientRect();return{top:t.top+nJ(t,l.vertical),left:t.left+rJ(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),P=US.useCallback((e=>({vertical:nJ(e,x.vertical),horizontal:rJ(e,x.horizontal)})),[x.horizontal,x.vertical]),N=US.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===u)return{top:null,left:null,transformOrigin:iJ(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=tY(oJ(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:iJ(n)}}),[s,u,O,P,m]),[A,I]=US.useState(g),L=US.useCallback((()=>{const e=q.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);US.useEffect((()=>(C&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L))),[s,C,L]);US.useEffect((()=>{g&&L()})),US.useImperativeHandle(a,(()=>g?{updatePosition:()=>{L()}}:null),[g,L]),US.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{L()})),t=tY(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,L]);let z=k;"auto"!==k||w.muiSupportAuto||(z=void 0);const F=h||(s?eY(oJ(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:aJ,$=null!=(i=null==v?void 0:v.paper)?i:sJ,H=vG({elementType:$,externalSlotProps:$C({},_,{style:A?_.style:$C({},_.style,{opacity:0})}),additionalProps:{elevation:p,ref:D},ownerState:R,className:kU(T.paper,null==_?void 0:_.className)}),V=vG({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:R,className:kU(T.root,f)}),{slotProps:B}=V,W=QC(V,tJ);return tW.jsx(j,$C({},W,!pG(j)&&{slotProps:B,disableScrollLock:C},{children:tW.jsx(w,$C({appear:!0,in:g,onEntering:(e,t)=>{S&&S(e,t),L()},onExited:()=>{I(!1)},timeout:z},E,{children:tW.jsx($,$C({},H,{children:d}))}))}))}));function cJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uJ(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function dJ(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,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fJ(){return fJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fJ.apply(null,arguments)}function hJ(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 pJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hJ(Object(n),!0).forEach((function(t){dJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mJ(){mJ=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new D(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=v.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;q(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function gJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||bJ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yJ(e){return function(e){if(Array.isArray(e))return cJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bJ(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 vJ(e){return vJ="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},vJ(e)}function bJ(e,t){if(e){if("string"==typeof e)return cJ(e,t);var n={}.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)?cJ(e,t):void 0}}var xJ=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return YS.createElement(sG,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},YS.createElement("path",{d:r}),n?YS.createElement("title",null,n):void 0,i?YS.createElement("use",{fillRule:i}):void 0)},wJ={STYLE:{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)"}}}},kJ={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},SJ=function(e){return kJ.R.test(e)||kJ.AL.test(e)};function CJ(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],kJ.L.test(n))return"ltr";if(SJ(t))return"rtl"}return"ltr"}var EJ,MJ,_J=eG(yX,{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:"0px",maxWidth:"640px",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}}})),qJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{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:wJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),DJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:wJ.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),RJ=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.index,p=l.isCyclic,m=l.isLocked,g=i.resources.translator,y=i.services.focus,v=i.settings.isDisabled,b=i.state.inSelections,x=!(!c.change||!u),w=!(!c.reload||!p),k=(x||w)&&!b&&!v(),S={pointerEvents:k?"auto":"none"},C=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:x,canReload:w,direction:s,hasCyclic:d,hasMultiple:f,isLocked:m}),E=dJ(dJ({},"rtl"===s?"endIcon":"startIcon",m&&YS.createElement(qJ,{height:12})),"rtl"===s?"startIcon":"endIcon",(x||w)&&YS.createElement(DJ,{className:"".concat(b||v()?"disabled":"")})),M=US.useRef(),_=US.useRef();US.useEffect((function(){t||y.shouldFor(h)&&(M.current.focus(),_.current.focusVisible())}));var q=CJ(a),D="Accessibility.".concat(k?"Alternative":"Normal",".Instructions");return YS.createElement(_J,fJ({action:_,"aria-describedby":r,"aria-label":g.get(D),color:"inherit",direction:s,disabled:!k||v()||b,onClick:function(e){k&&n(e)},padding:C,ref:M,style:S,styling:o.title,title:a},E),YS.createElement("span",{dir:q,style:wJ.STYLE.ELLIPSIS},a))},TJ=function(e){var t=e.className,n=e.title;return YS.createElement(xJ,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},OJ=eG(yX,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),PJ=eG(TJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:wJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),NJ=eG((function(e){var t=e.className,n=e.title;return YS.createElement(xJ,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:wJ.STYLE.ICONS.COLOR.DISABLED}}})),AJ=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=gJ(US.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return US.useEffect((function(){r&&i(!1)}),[l]),f.reload?YS.createElement(OJ,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},YS.createElement(NJ,{className:"".concat(r||g||m()?"disabled":"")})):YS.createElement(PJ,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},IJ=function(e){var t=e.className,n=e.title;return YS.createElement(xJ,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},LJ=eG(yX,{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}}})),zJ={color:wJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:wJ.STYLE.ICONS.COLOR.DISABLED}},FJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return zJ})),jJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return zJ})),$J=eG(IJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:wJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),HJ=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=dJ({},"rtl"===s?"startIcon":"endIcon","rtl"===s?YS.createElement(jJ,{className:h}):YS.createElement(FJ,{className:h})),m=o.map((function(e,t){var i=CJ(e);return YS.createElement(LJ,fJ({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),YS.createElement("span",{dir:i,style:wJ.STYLE.ELLIPSIS},e))}));return YS.createElement(YS.Fragment,null,"rtl"===s?m.reverse():void 0,YS.createElement($J,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},VJ=eG(HX,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":pJ({},wJ.STYLE.FOCUS)}})),BJ=eG(UX)((function(){return{marginRight:0,justifyContent:"center"}})),WJ=eG((function(e){var t=e.className;return YS.createElement(xJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY}})),UJ=eG(TJ)((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY}})),YJ=eG(IJ)((function(){return{color:wJ.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),KJ=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=pJ({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},wJ.STYLE.ELLIPSIS),d=CJ(s),f=YS.createElement(BJ,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?YS.createElement(WJ,{height:12}):null!=t&&t.isCyclic?YS.createElement(UJ,{height:12}):null!=t&&t.isDrillDown?YS.createElement(YJ,{height:12}):void 0}({meta:n,selected:o}));return YS.createElement(YS.Fragment,{key:t},YS.createElement(VJ,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,YS.createElement(JX,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},GJ=eG(_X)((function(){return{marginTop:"-1px"}})),XJ=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,x=o.resources.translator,w=o.services.focus,k={isChanging:!1},S=US.useRef(),C=function(){var e,t=document.activeElement;null!=S&&null!==(e=S.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},E=v||b,M=YS.createElement(KJ,{id:h,key:h,meta:o.meta,onClick:C,selected:!E,source:o,text:E?f.name:p}),_=E&&f.items.map((function(e){return YS.createElement(KJ,{id:e.id,nested:!0,onClick:function(t){return function(e,t){k.isChanging||(k.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||w.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:o,text:e.text})})),q=m.map((function(e,t){return YS.createElement(YS.Fragment,{key:e.id},YS.createElement(KJ,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(k.isChanging||(k.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||w.queueFor(y),s({id:r})));var n,r},source:o,text:e.text}),t<m.length-1&&YS.createElement(GJ,{key:"divider-".concat(e.id)}))}));return YS.createElement(lJ,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:C,open:i,ref:S,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},YS.createElement(LX,{"aria-label":x.get("Accessibility.Popover.Instructions"),dense:!0},M,_,YS.createElement(GJ,{key:"divider-".concat(h)}),q))},JJ=function(e){var t=e.source,n=gJ(US.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){i(null)};US.useEffect((function(){o.isOpen&&c()}),[t.info.key]);var u=YS.createElement(AJ,{source:t}),d=YS.createElement(HJ,{source:t});return YS.createElement(YS.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,YS.createElement(RJ,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),YS.createElement(XJ,{anchor:r,id:o.id,onClose:c,open:o.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var ZJ=function(){if(MJ)return EJ;MJ=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return EJ=function e(){var t,n,r,l,c,u,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=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},EJ}(),QJ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ZJ);function eZ(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function tZ(e){return Array.isArray(e)}function nZ(e){return null!=e&&!Array.isArray(e)&&"object"===vJ(e)}function rZ(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function iZ(e){return void 0===e}function oZ(e,t){if(nZ(e)&&nZ(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!oZ(e[n[r]],t[n[r]]))return!1;return!0}if(tZ(e)&&tZ(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!oZ(e[o],t[o]))return!1;return!0}return e===t}function aZ(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?QJ(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);oZ(t,r)||rZ(i,e)||(iZ(r)?s.push({op:"add",path:o,value:t}):nZ(t)&&nZ(r)?s.push.apply(s,yJ(aZ({oldData:r,newData:t,basePath:o}))):tZ(t)&&tZ(r)?s.push.apply(s,yJ(function(e){var t=e.newArray,n=e.basePath,r=[];return oZ(t,e.oldArray.slice())||(!iZ(t[0])&&iZ(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){iZ(i[e])&&!rZ(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function sZ(e){var t=e.model,n=aZ({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function lZ(e){return cZ.apply(this,arguments)}function cZ(){return(cZ=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){uJ(o,r,i,a,s,"next",e)}function s(e){uJ(o,r,i,a,s,"throw",e)}a(void 0)}))}}(mJ().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return mJ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,i){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,i.getEffectiveProperties();case 5:return l=e.sent,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=QJ(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.next=19,eZ({model:i,properties:d});case 19:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),sZ({model:i,oldProperties:l,newProperties:d});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return lZ({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function dZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return lZ({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function fZ(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,i,o=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==o||!o.focus||(null==o?void 0:o.index)!==e);return a&&(null==t||null===(i=t.set)||void 0===i||i.call(t,n,{focus:!1})),a}}}({cache:f,key:i}),x=("dimension"===y?uZ:dZ)({callbacks:t,data:n,resources:o,settings:a});"rtl"===v&&x.reverse();var w={allowed:{change:(!(null==h||!h.modifiers||null==h||!h.colorSupport)||p)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return pJ(pJ({data:n,layout:{direction:v},resources:{translator:o.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:pJ(pJ(pJ({},w),e.meta),{},{index:t,isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return YS.createElement("div",{style:u},d.map((function(e){return YS.createElement(YS.Fragment,{key:e.info.id},YS.createElement(JJ,{source:e}),!e.meta.isLast&&YS.createElement("span",{dir:e.layout.direction,style:pJ(pJ({},c.title),{},{lineHeight:"normal"})},", "))})))}var hZ,pZ='"Source Sans Pro", "Arial", "sans-serif"',mZ="12px",gZ=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return fZ({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},yZ={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:pZ,fontSize:mZ},popover:{color:"#595959CC",fontFamily:pZ,fontSize:mZ}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(gZ(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return gZ(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},vZ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return YS.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},bZ={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 YS.createElement("div",{dir:o,style:a},YS.createElement(vZ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},xZ={},wZ=function(){if(hZ)return xZ;hZ=1;var e=zj;return xZ.createRoot=e.createRoot,xZ.hydrateRoot=e.hydrateRoot,xZ}(),kZ=xK({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:"16px",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")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},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 SZ(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 CZ(){var e={rendererBox:SZ(),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=SZ(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=wZ.createRoot(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 YS.createElement(YS.StrictMode,null,YS.createElement(nG,{theme:kZ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function EZ(e){return Ry(e).l<70}function MZ(e,t){const n=Ry(e).l/100,r=Ry(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function _Z(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var qZ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(MZ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=_Z({r:s,a:e},n),o=_Z({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:EZ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function DZ(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 RZ(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:DZ(s)}}var TZ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=RZ({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function OZ(){const e=vp();return e.use(ag),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",cg(e))};e.interaction("hammer",cg(Hammer))}(a)),e.use((function(e){e.renderer("react",xH()),e.component("data-title",yH(e.renderer("svg")()))})),e.renderer("react-qcm",CZ),e.component("axis-title",yZ),e.component("disclaimer",bZ),e.component("pie-dividers",qZ),e.component("negative-indicators",TZ),e}var PZ={};function NZ(){NZ.init.call(this)}PZ.isObject=function(e){return"object"==typeof e&&null!==e},PZ.isNumber=function(e){return"number"==typeof e},PZ.isUndefined=function(e){return void 0===e},PZ.isFunction=function(e){return"function"==typeof e};var AZ=NZ;NZ.EventEmitter=NZ,NZ.prototype._events=void 0,NZ.prototype._maxListeners=void 0,NZ.defaultMaxListeners=10,NZ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},NZ.prototype.setMaxListeners=function(e){if(!PZ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},NZ.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],PZ.isUndefined(n))return!1;if(PZ.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(PZ.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},NZ.prototype.addListener=function(e,t){var n;if(!PZ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,PZ.isFunction(t.listener)?t.listener:t),this._events[e]?PZ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,PZ.isObject(this._events[e])&&!this._events[e].warned)&&((n=PZ.isUndefined(this._maxListeners)?NZ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,PZ.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),PZ.isFunction(console.trace)&&console.trace()));return this},NZ.prototype.on=NZ.prototype.addListener,NZ.prototype.once=function(e,t){if(!PZ.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},NZ.prototype.removeListener=function(e,t){var n,r,i,o;if(!PZ.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||PZ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(PZ.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},NZ.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],PZ.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},NZ.prototype.listeners=function(e){return this._events&&this._events[e]?PZ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},NZ.listenerCount=function(e,t){return e._events&&e._events[t]?PZ.isFunction(e._events[t])?1:e._events[t].length:0};var IZ=r(AZ);function LZ(){const e={};var t;return t=e,Object.keys(IZ.prototype).forEach((e=>{t[e]=IZ.prototype[e]})),IZ.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}function zZ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=LZ(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{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"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=xk({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=rv({},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}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=hx();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const FZ={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 jZ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const $Z={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,c=o[t]*(n>l?1:n/l),u=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(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},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 HZ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;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 u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.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 c=void 0!==i.secure?i.secure:i.isSecure,o=c?"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 $Z.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function VZ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.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=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return HZ(u,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&&jZ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await $Z.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 $Z.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,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(jZ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await $Z.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 BZ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(VZ(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}},WZ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await BZ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>BZ.checkIfPromisesExist({customTooltipModel:e})};const UZ=(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:FZ.CHART.CHART_PARENT_TYPE,qId:FZ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},YZ=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:FZ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const KZ={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=FZ.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:FZ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(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 KZ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=FZ.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=FZ.CHART.STATE,a=UZ(t,o),s=await e.createSessionObject(a),l=YZ(t);if(s.id!==FZ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.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(FZ.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 KZ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(KZ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(FZ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=FZ.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 GZ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function XZ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=FZ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function JZ(e){const t=XZ();return e.filter((e=>t[e.id]))}const ZZ={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 c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||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===c.value&&r.label===c.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}=ZZ.getAttrExprData(a);o.length||n.length?WZ.handlePromises({customTooltipModel:i,nodes:ZZ.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&&KZ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>WZ.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[FZ.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[FZ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[FZ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(JZ(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[FZ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[FZ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=GZ(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===JZ(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=void 0){let r=[];const i=GZ(e)||[];[...i,t].forEach((e=>{const t=JZ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=XZ(),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:Tg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Tg.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 QZ(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 FZ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case FZ.CUSTOM.TITLE:case FZ.CUSTOM.DESCRIPTION:case FZ.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 eQ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>QZ(t,e,r,n)}}};const tQ={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={[FZ.CUSTOM.TITLE]:!0,[FZ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=ZZ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===FZ.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===FZ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Og.getMeasure(e,t))),e,i)}};function nQ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(tQ.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 rQ(e){const t=FZ.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 iQ(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const oQ={migrateProperties(e){var t,n;const r=bg(!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=iQ(r);return o=function(e,t){return t.concat(e.map((e=>rQ(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=rQ(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}(iQ(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 aQ={attrExpr:oQ};const{CUSTOM:sQ}=FZ;function lQ({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=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:ZZ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&ux(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=nQ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===sQ.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===sQ.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>ZZ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>ZZ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=ZZ.getDataNodes(o,r),{attrExps:a}=ZZ.getAttrExprData(t);return WZ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>KZ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>ZZ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>KZ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>KZ.hide({app:n,customTooltipModel:d}),destroy:()=>KZ.destroyVisualization({customTooltipModel:d})}}}function cQ(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function uQ({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=ev(ov().mark((function e(t){var o,a,s,l,c,u,d;return ov().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.properties,!i.initialized){e.next=3;break}return e.abrupt("return");case 3:return s=[Cv(a={app:n,translator:r,properties:o}),_v(a)],e.next=7,Promise.all(s);case 7:l=e.sent,c=av(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:sv(i.dimensions),measures:sv(i.measures)}}}}({app:o,translator:a}),l=ix({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),y=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 ev(ov().mark((function e(){var r,a,s,l;return ov().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=ev(ov().mark((function e(n){var r;return ov().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(rv({},i));case 4:if("object"===lv(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(rv({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,sv(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=av(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Rv(!0,{},n.brush);Rv(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===lv(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=mx({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=mx({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:cQ(u)}),v=lQ({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),b=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,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:_k(a),styles:void 0};return d.styles=Dk({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Dk({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),x=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return oS({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:b,colorService:l,custom:v}),w=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("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:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("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:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||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:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||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:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("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:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("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:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("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:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("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:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("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:r.legend.label.color}}}}}}({layout:u,themeService:b,flags:t}),k=function({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return cx({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=Mg.getValue(e,"qHyperCube.qSize.qcy");return Mg.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const i=t({ds:e,encodings:r});return 0===n({rows:i,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i});return 0===r({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i}),s=a,l=r({rows:a,encodings:i});return s.length!==l.length}}}}})}({layout:u});c({alternativeService:e,colorService:l,disclaimerService:k,pluginService:y,themeService:b,tooltipService:x,styleService:w})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}const dQ=e=>"[object Object]"===Object.prototype.toString.call(e),fQ=e=>Array.isArray(e);function hQ(e,t){if(e===t)return!0;if(fQ(e)){if(!fQ(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hQ(e[n],t[n]))return!1;return!0}if(dQ(e)){if(!dQ(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(!hQ(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function pQ({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=bg(!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=bg(!0,{},e),l=bg(!0,{},t);return a.exclude=!hQ(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=!hQ(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}function mQ({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const gQ=.8,yQ=.55,vQ={CORNER_RADIUS:0,INNER_RADIUS:yQ,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},bQ=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=gQ,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:yQ;e.donut.showAsDonut&&(o=gQ-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:gQ,xQ=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:yQ;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=gQ-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},wQ=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Mg.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?eQ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:xQ({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?vQ.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:vQ.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:vQ.STROKE.COLOR,outerRadius:bQ({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function kQ({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:yQ,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=gQ-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function SQ(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function CQ({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function EQ(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function MQ(e){return e.node.data.num.label}function _Q(e){return e.node.data.radius.label}function qQ(e,t,n){if(e.dataPoint.auto)return n?MQ:EQ;if("share"===e.dataPoint.labelMode)return EQ;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?_Q:MQ}return null}function DQ({data:e}){return e?e.label:""}function RQ(e){const t=parseInt(e,10);if(!isNaN(t))return t}function TQ(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:yQ)>.3}function OQ({node:e,data:t}){return bg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function PQ(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:RQ(r.fontSize),fontFamily:r.fontFamily,label:DQ,linkData:({node:e,data:t})=>bg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(qQ(e,t,!1)){const r=function(e,t,n){return{label:qQ(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&TQ(e)?"inside":"into",onBackground:e.donut.showAsDonut&&TQ(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Ag(bg(t,r),n.theme);o.linkData=OQ,i.push(o)}return{key:"pie-labels",type:"labels",renderer:cS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function NQ({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=qQ(e,t,!0),i=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:cS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:RQ(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:DQ,linkData:({data:e})=>e},{fontSize:RQ(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):PQ(e,n,t))}const AQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function IQ(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}}function LQ(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=IQ(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*gQ;return(o-r)**2+(a-i)**2<=s**2}const zQ=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=IQ(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),FQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),jQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function $Q(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&LQ(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!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,e))}n&&t.preventDefault()}}}}const HQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&LQ(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),VQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),BQ=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[HQ(e,{}),zQ(e,t,{}),...n]:[AQ(e,{}),jQ(e,{}),HQ(e,{}),FQ(e,{}),VQ(e,{}),zQ(e,t,{}),...n]});function WQ(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[BQ(t,r,o.gestures),$Q(t),o.native]}function UQ({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function YQ({layout:e},t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function KQ({layout:e},t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.alternativeService.getAlternatives(),o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:o.color,fontFamily:o.fontFamily,fontSize:o.fontSize}}}}function GQ({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return bg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&bg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:i}=e,{fontFamily:o}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:o}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[wQ({layout:e},r),kQ({layout:e},r),SQ(r),CQ({layout:e},r),YQ({layout:e},r,t),KQ({layout:e},r,t),...c.components,mQ({scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},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}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},NQ({layout:{components:e.components,dataPoint:bg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:WQ(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:UQ({settings:o},r),strategy:Sg(0,r)}}function XQ({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),p=pQ({enable:u&&!u.snapshotData}),[m]=e.usePromise((()=>{if(!n)return Promise.resolve();aQ.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async t=>Promise.all([n.colorService.initialize({createConfig:e}),Promise.resolve(t),n.pluginService.initialize(),n.alternativeService.initialize({properties:t})])))}),[n,p]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!m)return;const{chart:e,viewState:p,interactions:g,viewCache:y}=t,{alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,tooltipService:S,styleService:C}=n,E=o.viewState||{};u.snapshotData||(p.preventSet("legendScrollOffset",E.legendScrollOffset||0),p.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,p),S.expando.set("properties",m[1]);const M=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),_=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...b.getData()],q={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(q.slice.outerRadius="qMeasureInfo/1"),x.initialize({args:{ds:M,encodings:q}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),q),R=d?()=>{const t=e.brush("selection");ag.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},T=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,O=e=>t.selectionService.getIsSelectionLocked(e),P=()=>GQ({layout:u,context:{rtl:"rtl"===o.direction,theme:c,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:M,model:a,app:s,chart:e,onSelect:R,isLocked:O,interactions:g,constraints:f,translator:l,viewState:p,dataRowCount:D,encodings:q,alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,styleService:C,tooltipService:S,debouncer:px,properties:m[1],selections:d,logicalSize:T,flags:i,viewCache:y,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!lS.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:p,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=P;const N=P();e.update({data:_,settings:N}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),lS.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:q}):u.effectPath||e.brush("highlight").end()}),[t,m,o.direction,o.effectProperties,f,c.name(),l.language()])}function JQ({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:_g(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:_g(t.chart,"legend-cat")})})),[t])}var ZQ={exports:{}};!function(e){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,c,u,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)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,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,c,u,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)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,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:()=>Te});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 c(e){return s+e+l}function u(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 c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(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 k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(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 u=p(0);return"If(Count(".concat(u,") > 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:u,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:c,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 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 C(e){return C="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},C(e)}var E=t().bind(null,!0),M={},_=Array.isArray;function q(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(e){return void 0===e}function R(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(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]=D(e[n||t])?o:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(q(e)&&q(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}M.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);O(o,a)||R(t,i)||(D(a)?r.push({op:"add",path:s,value:o}):q(o)&&q(a)?r=r.concat(M.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&D(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(O(t,i))return r;if(!D(t[0])&&D(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(M.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;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){D(t[i])&&!R(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},M.apply=function(e,t){t.forEach((function(t){var n,r,i=T(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(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||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 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}}(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(q(a)&&q(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!R(n,e)&&delete n[e]})),E(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 u=T(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},M.clone=function(e){return E({},e)},M.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},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):E(e,t)};const P=M,N=function(e,n,r){if(!e)return Promise.resolve();var i=P.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 A="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===A)return n[r]}function L(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===A)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:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.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=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.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!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(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(L(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(L(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(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(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=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(A))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(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 B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.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 c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.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!k.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=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(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 k.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=$(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:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.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!k.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 k.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 Z(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 Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.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=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.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(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.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=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,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),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,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!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var 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){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,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 k.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:ce};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",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",Me="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Ee)&&o(e,Me)&&n(e,Ee,o(e,Me)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const qe=_e;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Re={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Te={modifiers:Re,apply:Pe,applyModifiers:Ne,cleanUpMeasure:Ae,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:qe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Re[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Re[e]&&Re[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||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Oe={};function Pe(){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;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return Ne({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){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:u,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:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(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"===De(e)&&!e.disabled){if(n++,"object"!==De(Re[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=Re[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ne({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"===De(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ae(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ne(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).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(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Ae(e)})),Promise.resolve();var l=a?void 0:Qe(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;qe.isValid(n)||qe.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===De(e)&&!e.disabled){if(s++,"object"!==De(Re[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)");Re[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.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:Re[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 Re[r.type].updateModifier&&Re[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Re[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)):Ae(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ae(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Re[e.type]}))}(e)?qe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(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 Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Re[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Re[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 $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!qe.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"===De(t)&&(t.disabled||!Re[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(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"!==De(e)||e.disabled||!Re[e.type])&&(void 0===i[e.type]&&(i[e.type]=Re[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):N(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Re[e.type]&&Re[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(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||Ze({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)?(Oe[t.id].masterItemSubscriber=Oe[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 c(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 u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),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(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[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 c(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 c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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:u};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),k=n.n(w);function S(e,t){var n=k()(!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 C(e,t){return k()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var M=Math.pow(2,53)-1;function _(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 q(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 D=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},R=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},N=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=S(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 c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},A=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=C(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 c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=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=E(a.max,i.dimensions.length,M),l=E(a.min,i.dimensions.length,0);return{maxDimensions:E(o.max,s,M),minDimensions:E(o.min,l,0),maxMeasures:s,minMeasures:l}},L=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=k()(!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=k()(!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=[]))},$=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)}(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,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,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 q(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 q(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)?q(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 B(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,c=e.hypercubePath,u=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:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,E=void 0===C?O():C,M=l.defaultMeasure,_=void 0===M?P():M;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),N({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:E}),A({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),R("qMaxStackedCells",y,v),R("qNoOfLeftDims",y,v),T("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",y,v,"S"),T("qReductionMode",y,v,"N"),T("qSortbyYValue",y,v),T("qIndentMode",y,v),T("qShowTotalsAbove",y,v),D(g,t,r),m.qProperty=g;var q=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:q}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(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=u(e,r,n),o=u(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}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,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 c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.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:c,isDimension:n,qNumFormat:u,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:c,isDimension:n,qNumFormat:u,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=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:s,key: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)}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)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[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},ue=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,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),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,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.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=ce(d,f),y=ue({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),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(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]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(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}}},ke={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,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.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=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}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,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ee(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=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Me="qHyperCubeDef.qMeasures",_e="conditionalColoring",qe="measures",De="qDef.conditionalColoring";const Re={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:_e,arrayName:qe,itemPath:De})},unquarantine:function(e){Ee({properties:e,arrayPath:Me,itemPath:De,arrayName:qe,quarantineName:_e})}};var Te="qHyperCubeDef.qMeasures",Oe="measures",Pe="qHyperCubeDef.qDimensions",Ne="dimensions",Ae="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},unquarantine:function(e){Ee({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ee({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Ee,conditionalColoring:Re,conditionalShow:$e}})(),r.default})()}(ZQ);var QQ=r(ZQ.exports);const e0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},t0={getDimensions:e=>e0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>e0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>e0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>e0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=e0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=e0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const n0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>t0.getNumMeasures(e)>=1},showLegend:e=>{const t=e0.getValue(e,"color.auto"),n=e0.getValue(e,"color.expressionIsColor"),r=e0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!e0.getValue(e,"color.auto")&&"byDimension"===e0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===e0.getValue(e,"color.useDimColVal")&&e0.setValue(e,"color.useDimColVal",!1),!e0.getValue(e,"color.auto")&&"byDimension"===e0.getValue(e,"color.mode")&&"libraryItem"===e0.getValue(e,"color.byDimDef.type"))},r0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=n0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),r.push({value:"primary",translation:"properties.colorMode.primary"}),r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!e0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=e0.getValue(e,"color.auto");return e0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===e0.getValue(e,"color.mode")&&!0===e0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>e0.getValue(e,"legend.show")&&i(e)}}};function i0(e){return new r0(e)}const o0={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},a0=(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.pieChart",e,"color")})}}}}},s0=(e,t,n,r)=>{const i=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,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=xv({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,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 c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:a0("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:a0("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:a0("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:a0("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:a0("legend.label",i,r)}}}:void 0}}},l0=i0("hard");const c0=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(fx(e,"color.mode","byDimension"),fx(e,"color.byDimDef.activeDimensionIndex",0),fx(e,"color.persistent",!1))},u0=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},d0=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:c0},colorMode:{options:u0}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||fx(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:o0,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:{sliceStyling:s0(o,n,r,i),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:l0.color.colorMode.options},persistentColors:{show:l0.color.persistentColors.show}}},simpleColors:a,legend:{show:l0.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:l0.legend.showTitle.show},dock:{show:l0.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},f0={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},h0={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},p0={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function m0(e){return{type:"items",component:"accordion",items:{data:f0,sorting:h0,addons:p0,settings:d0(e)}}}const g0=i0("explore"),y0=m0();var v0={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:y0.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:y0.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:g0.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&g0.color.useDimColVal.show(e))}}}}}}};const b0="slices";function x0(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function w0(e){return e.data.num.label}function k0(e){return e.data.radius.label}function S0(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?w0:x0;if("share"===e.dataPoint.labelMode)return x0;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?k0:w0;return w0}(n,r)(e,t)}function C0(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class E0{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:C0(n),label:S0(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=bg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=bg(e.options,{effect:null}),n?t.getProperties().then((e=>bg(e,{effectPath:null,effectProperties:null,dataPoint:bg(!0,{},e.originalModelSettings.dataPoint),legend:bg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class M0 extends E0{init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(b0).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class _0 extends E0{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(b0).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(b0).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===b0)).map(((n,r)=>{const i=S0(n,this.chart.formatter,e,t);return{text:`${C0(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const q0="/effects/highlight-value",D0="/effects/maxmin";var R0={isCompatible:({effectPath:e})=>e===D0||e===q0,create:e=>e.effectPath===D0?new M0(e):e.effectPath===q0?new _0(e):null};function T0(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function O0(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))}function P0(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function N0({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){P0(e),O0(t),ZZ.addCallbackCustomTooltip(t)},move(e,t){P0(e),O0(t),ZZ.moveCallbackCustomTooltip(t,e)},remove(e,t){ZZ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){P0(e),O0(r),ZZ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){O0(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const A0=e=>e.qMax<=0,I0=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(A0));function L0(e){return{definition:m0(e),softDefinition:v0,support:{snapshot:I0,export:I0,exportData:!0,sharing:I0,viewData:!0,effects:!0},effects:R0,extendMetrics:T0,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=QQ.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:N0(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>QQ.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function z0(e){return{properties:{version:"1.28.5",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:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:vQ.STROKE.COLOR},cornerRadius:vQ.CORNER_RADIUS,innerRadius:vQ.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[N0(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=QQ.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:N0(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>QQ.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=OZ();return{qae:z0(t),ext:L0(t),component(){const t=zZ({picasso:i}),n=uQ({flags:r,picasso:i,instance:t});XQ({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),JQ({instance:t,services:n})}}}}));
|