@nebula.js/sn-pivot-table 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sn-pivot-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v6.0.
|
|
2
|
+
* @nebula.js/sn-pivot-table v6.0.3
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/function cn(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 dn=new Set,pn={};function fn(e,t){hn(e,t),hn(e+"Capture",t)}function hn(e,t){for(pn[e]=t,e=0;e<t.length;e++)dn.add(t[e])}var mn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),gn=Object.prototype.hasOwnProperty,bn=/^[: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]*$/,yn={},vn={};function xn(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var _n={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_n[e]=new xn(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_n[t]=new xn(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_n[e]=new xn(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_n[e]=new xn(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){_n[e]=new xn(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_n[e]=new xn(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){_n[e]=new xn(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){_n[e]=new xn(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){_n[e]=new xn(e,5,!1,e.toLowerCase(),null,!1,!1)}));var wn=/[\-:]([a-z])/g;function Sn(e){return e[1].toUpperCase()}function Cn(e,t,n,r){var o=_n.hasOwnProperty(t)?_n[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!gn.call(vn,e)||!gn.call(yn,e)&&(bn.test(e)?vn[e]=!0:(yn[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(wn,Sn);_n[t]=new xn(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(wn,Sn);_n[t]=new xn(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(wn,Sn);_n[t]=new xn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){_n[e]=new xn(e,1,!1,e.toLowerCase(),null,!1,!1)})),_n.xlinkHref=new xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){_n[e]=new xn(e,1,!1,e.toLowerCase(),null,!0,!0)}));var En=ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kn=Symbol.for("react.element"),Rn=Symbol.for("react.portal"),Mn=Symbol.for("react.fragment"),An=Symbol.for("react.strict_mode"),Ln=Symbol.for("react.profiler"),In=Symbol.for("react.provider"),Pn=Symbol.for("react.context"),Tn=Symbol.for("react.forward_ref"),Dn=Symbol.for("react.suspense"),On=Symbol.for("react.suspense_list"),zn=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),qn=Symbol.for("react.offscreen"),jn=Symbol.iterator;function Fn(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=jn&&e[jn]||e["@@iterator"])?e:null}var Bn,$n=Object.assign;function Wn(e){if(void 0===Bn)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Bn=t&&t[1]||""}return"\n"+Bn+e}var Hn=!1;function Gn(e,t){if(!e||Hn)return"";Hn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[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{Hn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function Vn(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=Gn(e.type,!1);case 11:return e=Gn(e.type.render,!1);case 1:return e=Gn(e.type,!0);default:return""}}function Un(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 Mn:return"Fragment";case Rn:return"Portal";case Ln:return"Profiler";case An:return"StrictMode";case Dn:return"Suspense";case On:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Pn:return(e.displayName||"Context")+".Consumer";case In:return(e._context.displayName||"Context")+".Provider";case Tn:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case zn:return null!==(t=e.displayName||null)?t:Un(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return Un(e(t))}catch(e){}}return null}function Yn(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 Un(t);case 8:return t===An?"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 Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Xn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Qn(e){e._valueTracker||(e._valueTracker=function(e){var t=Xn(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Jn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Zn(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 er(e,t){var n=t.checked;return $n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function tr(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Kn(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 nr(e,t){null!=(t=t.checked)&&Cn(e,"checked",t,!1)}function rr(e,t){nr(e,t);var n=Kn(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,Kn(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function or(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&&Zn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function sr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function lr(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(cn(91));return $n({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ur(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(cn(92));if(ar(n)){if(1<n.length)throw Error(cn(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Kn(n)}}function cr(e,t){var n=Kn(t.value),r=Kn(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 dr(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function pr(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 fr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var hr,mr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((hr=hr||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function gr(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 br={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},yr=["Webkit","ms","Moz","O"];function vr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function xr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=vr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(br).forEach((function(e){yr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]}))}));var _r=$n({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 wr(e,t){if(t){if(_r[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(cn(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(cn(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(cn(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(cn(62))}}function Sr(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 Cr=null;function Er(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var kr=null,Rr=null,Mr=null;function Ar(e){if(e=Ss(e)){if("function"!=typeof kr)throw Error(cn(280));var t=e.stateNode;t&&(t=Es(t),kr(e.stateNode,e.type,t))}}function Lr(e){Rr?Mr?Mr.push(e):Mr=[e]:Rr=e}function Ir(){if(Rr){var e=Rr,t=Mr;if(Mr=Rr=null,Ar(e),t)for(e=0;e<t.length;e++)Ar(t[e])}}function Pr(e,t){return e(t)}function Tr(){}var Dr=!1;function Or(e,t,n){if(Dr)return e(t,n);Dr=!0;try{return Pr(e,t,n)}finally{Dr=!1,(null!==Rr||null!==Mr)&&(Tr(),Ir())}}function zr(e,t){var n=e.stateNode;if(null===n)return null;var r=Es(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(cn(231,t,typeof n));return n}var Nr=!1;if(mn)try{var qr={};Object.defineProperty(qr,"passive",{get:function(){Nr=!0}}),window.addEventListener("test",qr,qr),window.removeEventListener("test",qr,qr)}catch(tse){Nr=!1}function jr(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Fr=!1,Br=null,$r=!1,Wr=null,Hr={onError:function(e){Fr=!0,Br=e}};function Gr(e,t,n,r,o,i,a,s,l){Fr=!1,Br=null,jr.apply(Hr,arguments)}function Vr(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 Ur(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 Yr(e){if(Vr(e)!==e)throw Error(cn(188))}function Kr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Vr(e)))throw Error(cn(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Yr(o),e;if(i===r)return Yr(o),t;i=i.sibling}throw Error(cn(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,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){for(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)throw Error(cn(189))}}if(n.alternate!==r)throw Error(cn(190))}if(3!==n.tag)throw Error(cn(188));return n.stateNode.current===n?e:t}(e),null!==e?Xr(e):null}function Xr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Xr(e);if(null!==t)return t;e=e.sibling}return null}var Qr=un.unstable_scheduleCallback,Jr=un.unstable_cancelCallback,Zr=un.unstable_shouldYield,eo=un.unstable_requestPaint,to=un.unstable_now,no=un.unstable_getCurrentPriorityLevel,ro=un.unstable_ImmediatePriority,oo=un.unstable_UserBlockingPriority,io=un.unstable_NormalPriority,ao=un.unstable_LowPriority,so=un.unstable_IdlePriority,lo=null,uo=null;var co=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(po(e)/fo|0)|0},po=Math.log,fo=Math.LN2;var ho=64,mo=4194304;function go(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 bo(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=go(s):0!==(i&=a)&&(r=go(i))}else 0!==(a=n&~o)?r=go(a):0!==i&&(r=go(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-co(t)),r|=e[n],t&=~o;return r}function yo(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 vo(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function xo(){var e=ho;return!(4194240&(ho<<=1))&&(ho=64),e}function _o(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wo(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-co(t)]=n}function So(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-co(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Co=0;function Eo(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var ko,Ro,Mo,Ao,Lo,Io=!1,Po=[],To=null,Do=null,Oo=null,zo=new Map,No=new Map,qo=[],jo="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 Fo(e,t){switch(e){case"focusin":case"focusout":To=null;break;case"dragenter":case"dragleave":Do=null;break;case"mouseover":case"mouseout":Oo=null;break;case"pointerover":case"pointerout":zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":No.delete(t.pointerId)}}function Bo(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ss(t))&&Ro(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $o(e){var t=ws(e.target);if(null!==t){var n=Vr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ur(n)))return e.blockedOn=t,void Lo(e.priority,(function(){Mo(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 Wo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ei(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ss(n))&&Ro(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Cr=r,n.target.dispatchEvent(r),Cr=null,t.shift()}return!0}function Ho(e,t,n){Wo(e)&&n.delete(t)}function Go(){Io=!1,null!==To&&Wo(To)&&(To=null),null!==Do&&Wo(Do)&&(Do=null),null!==Oo&&Wo(Oo)&&(Oo=null),zo.forEach(Ho),No.forEach(Ho)}function Vo(e,t){e.blockedOn===t&&(e.blockedOn=null,Io||(Io=!0,un.unstable_scheduleCallback(un.unstable_NormalPriority,Go)))}function Uo(e){function t(t){return Vo(t,e)}if(0<Po.length){Vo(Po[0],e);for(var n=1;n<Po.length;n++){var r=Po[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==To&&Vo(To,e),null!==Do&&Vo(Do,e),null!==Oo&&Vo(Oo,e),zo.forEach(t),No.forEach(t),n=0;n<qo.length;n++)(r=qo[n]).blockedOn===e&&(r.blockedOn=null);for(;0<qo.length&&null===(n=qo[0]).blockedOn;)$o(n),null===n.blockedOn&&qo.shift()}var Yo=En.ReactCurrentBatchConfig,Ko=!0;function Xo(e,t,n,r){var o=Co,i=Yo.transition;Yo.transition=null;try{Co=1,Jo(e,t,n,r)}finally{Co=o,Yo.transition=i}}function Qo(e,t,n,r){var o=Co,i=Yo.transition;Yo.transition=null;try{Co=4,Jo(e,t,n,r)}finally{Co=o,Yo.transition=i}}function Jo(e,t,n,r){if(Ko){var o=ei(e,t,n,r);if(null===o)Ya(e,t,r,Zo,n),Fo(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return To=Bo(To,e,t,n,r,o),!0;case"dragenter":return Do=Bo(Do,e,t,n,r,o),!0;case"mouseover":return Oo=Bo(Oo,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return zo.set(i,Bo(zo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,No.set(i,Bo(No.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Fo(e,r),4&t&&-1<jo.indexOf(e)){for(;null!==o;){var i=Ss(o);if(null!==i&&ko(i),null===(i=ei(e,t,n,r))&&Ya(e,t,r,Zo,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ya(e,t,r,null,n)}}var Zo=null;function ei(e,t,n,r){if(Zo=null,null!==(e=ws(e=Er(r))))if(null===(t=Vr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ur(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 Zo=e,null}function ti(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(no()){case ro:return 1;case oo:return 4;case io:case ao:return 16;case so:return 536870912;default:return 16}default:return 16}}var ni=null,ri=null,oi=null;function ii(){if(oi)return oi;var e,t,n=ri,r=n.length,o="value"in ni?ni.value:ni.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return oi=o.slice(e,1<t?1-t:void 0)}function ai(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 si(){return!0}function li(){return!1}function ui(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?si:li,this.isPropagationStopped=li,this}return $n(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=si)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),t}var ci,di,pi,fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hi=ui(fi),mi=$n({},fi,{view:0,detail:0}),gi=ui(mi),bi=$n({},mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ai,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!==pi&&(pi&&"mousemove"===e.type?(ci=e.screenX-pi.screenX,di=e.screenY-pi.screenY):di=ci=0,pi=e),ci)},movementY:function(e){return"movementY"in e?e.movementY:di}}),yi=ui(bi),vi=ui($n({},bi,{dataTransfer:0})),xi=ui($n({},mi,{relatedTarget:0})),_i=ui($n({},fi,{animationName:0,elapsedTime:0,pseudoElement:0})),wi=$n({},fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Si=ui(wi),Ci=ui($n({},fi,{data:0})),Ei={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ki={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"},Ri={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mi(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ri[e])&&!!t[e]}function Ai(){return Mi}var Li=$n({},mi,{key:function(e){if(e.key){var t=Ei[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ai(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ki[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ai,charCode:function(e){return"keypress"===e.type?ai(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ai(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ii=ui(Li),Pi=ui($n({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ti=ui($n({},mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ai})),Di=ui($n({},fi,{propertyName:0,elapsedTime:0,pseudoElement:0})),Oi=$n({},bi,{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}),zi=ui(Oi),Ni=[9,13,27,32],qi=mn&&"CompositionEvent"in window,ji=null;mn&&"documentMode"in document&&(ji=document.documentMode);var Fi=mn&&"TextEvent"in window&&!ji,Bi=mn&&(!qi||ji&&8<ji&&11>=ji),$i=String.fromCharCode(32),Wi=!1;function Hi(e,t){switch(e){case"keyup":return-1!==Ni.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gi(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vi=!1;var Ui={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 Yi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ui[e.type]:"textarea"===t}function Ki(e,t,n,r){Lr(r),0<(t=Xa(t,"onChange")).length&&(n=new hi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xi=null,Qi=null;function Ji(e){$a(e,0)}function Zi(e){if(Jn(Cs(e)))return e}function ea(e,t){if("change"===e)return t}var ta=!1;if(mn){var na;if(mn){var ra="oninput"in document;if(!ra){var oa=document.createElement("div");oa.setAttribute("oninput","return;"),ra="function"==typeof oa.oninput}na=ra}else na=!1;ta=na&&(!document.documentMode||9<document.documentMode)}function ia(){Xi&&(Xi.detachEvent("onpropertychange",aa),Qi=Xi=null)}function aa(e){if("value"===e.propertyName&&Zi(Qi)){var t=[];Ki(t,Qi,e,Er(e)),Or(Ji,t)}}function sa(e,t,n){"focusin"===e?(ia(),Qi=n,(Xi=t).attachEvent("onpropertychange",aa)):"focusout"===e&&ia()}function la(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zi(Qi)}function ua(e,t){if("click"===e)return Zi(t)}function ca(e,t){if("input"===e||"change"===e)return Zi(t)}var da="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function pa(e,t){if(da(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!gn.call(t,o)||!da(e[o],t[o]))return!1}return!0}function fa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ha(e,t){var n,r=fa(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=fa(r)}}function ma(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ma(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ga(){for(var e=window,t=Zn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Zn((e=t.contentWindow).document)}return t}function ba(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 ya(e){var t=ga(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ma(n.ownerDocument.documentElement,n)){if(null!==r&&ba(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ha(n,i);var a=ha(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var va=mn&&"documentMode"in document&&11>=document.documentMode,xa=null,_a=null,wa=null,Sa=!1;function Ca(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Sa||null==xa||xa!==Zn(r)||("selectionStart"in(r=xa)&&ba(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},wa&&pa(wa,r)||(wa=r,0<(r=Xa(_a,"onSelect")).length&&(t=new hi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xa)))}function Ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ka={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionend:Ea("Transition","TransitionEnd")},Ra={},Ma={};function Aa(e){if(Ra[e])return Ra[e];if(!ka[e])return e;var t,n=ka[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ma)return Ra[e]=n[t];return e}mn&&(Ma=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);var La=Aa("animationend"),Ia=Aa("animationiteration"),Pa=Aa("animationstart"),Ta=Aa("transitionend"),Da=new Map,Oa="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 za(e,t){Da.set(e,t),fn(t,[e])}for(var Na=0;Na<Oa.length;Na++){var qa=Oa[Na];za(qa.toLowerCase(),"on"+(qa[0].toUpperCase()+qa.slice(1)))}za(La,"onAnimationEnd"),za(Ia,"onAnimationIteration"),za(Pa,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(Ta,"onTransitionEnd"),hn("onMouseEnter",["mouseout","mouseover"]),hn("onMouseLeave",["mouseout","mouseover"]),hn("onPointerEnter",["pointerout","pointerover"]),hn("onPointerLeave",["pointerout","pointerover"]),fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fn("onBeforeInput",["compositionend","keypress","textInput","paste"]),fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ja="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(" "),Fa=new Set("cancel close invalid load scroll toggle".split(" ").concat(ja));function Ba(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,s,l){if(Gr.apply(this,arguments),Fr){if(!Fr)throw Error(cn(198));var u=Br;Fr=!1,Br=null,$r||($r=!0,Wr=u)}}(r,t,void 0,e),e.currentTarget=null}function $a(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ba(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ba(o,s,u),i=l}}}if($r)throw e=Wr,$r=!1,Wr=null,e}function Wa(e,t){var n=t[vs];void 0===n&&(n=t[vs]=new Set);var r=e+"__bubble";n.has(r)||(Ua(t,e,2,!1),n.add(r))}function Ha(e,t,n){var r=0;t&&(r|=4),Ua(n,e,r,t)}var Ga="_reactListening"+Math.random().toString(36).slice(2);function Va(e){if(!e[Ga]){e[Ga]=!0,dn.forEach((function(t){"selectionchange"!==t&&(Fa.has(t)||Ha(t,!1,e),Ha(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ga]||(t[Ga]=!0,Ha("selectionchange",!1,t))}}function Ua(e,t,n,r){switch(ti(t)){case 1:var o=Xo;break;case 4:o=Qo;break;default:o=Jo}n=o.bind(null,t,n,e),o=void 0,!Nr||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ya(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=ws(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Or((function(){var r=i,o=Er(n),a=[];e:{var s=Da.get(e);if(void 0!==s){var l=hi,u=e;switch(e){case"keypress":if(0===ai(n))break e;case"keydown":case"keyup":l=Ii;break;case"focusin":u="focus",l=xi;break;case"focusout":u="blur",l=xi;break;case"beforeblur":case"afterblur":l=xi;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=yi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ti;break;case La:case Ia:case Pa:l=_i;break;case Ta:l=Di;break;case"scroll":l=gi;break;case"wheel":l=zi;break;case"copy":case"cut":case"paste":l=Si;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pi}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=zr(h,p))&&c.push(Ka(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Cr||!(u=n.relatedTarget||n.fromElement)||!ws(u)&&!u[ys])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ws(u):null)&&(u!==(d=Vr(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=yi,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pi,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:Cs(l),f=null==u?s:Cs(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,ws(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=Qa(f))h++;for(f=0,m=p;m;m=Qa(m))f++;for(;0<h-f;)c=Qa(c),h--;for(;0<f-h;)p=Qa(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Qa(c),p=Qa(p)}c=null}else c=null;null!==l&&Ja(a,s,l,c,!1),null!==u&&null!==d&&Ja(a,d,u,c,!0)}if("select"===(l=(s=r?Cs(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=ea;else if(Yi(s))if(ta)g=ca;else{g=la;var b=sa}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ua);switch(g&&(g=g(e,r))?Ki(a,g,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ir(s,"number",s.value)),b=r?Cs(r):window,e){case"focusin":(Yi(b)||"true"===b.contentEditable)&&(xa=b,_a=r,wa=null);break;case"focusout":wa=_a=xa=null;break;case"mousedown":Sa=!0;break;case"contextmenu":case"mouseup":case"dragend":Sa=!1,Ca(a,n,o);break;case"selectionchange":if(va)break;case"keydown":case"keyup":Ca(a,n,o)}var y;if(qi)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Vi?Hi(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Bi&&"ko"!==n.locale&&(Vi||"onCompositionStart"!==v?"onCompositionEnd"===v&&Vi&&(y=ii()):(ri="value"in(ni=o)?ni.value:ni.textContent,Vi=!0)),0<(b=Xa(r,v)).length&&(v=new Ci(v,e,null,n,o),a.push({event:v,listeners:b}),y?v.data=y:null!==(y=Gi(n))&&(v.data=y))),(y=Fi?function(e,t){switch(e){case"compositionend":return Gi(t);case"keypress":return 32!==t.which?null:(Wi=!0,$i);case"textInput":return(e=t.data)===$i&&Wi?null:e;default:return null}}(e,n):function(e,t){if(Vi)return"compositionend"===e||!qi&&Hi(e,t)?(e=ii(),oi=ri=ni=null,Vi=!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 Bi&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Xa(r,"onBeforeInput")).length&&(o=new Ci("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}$a(a,t)}))}function Ka(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xa(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=zr(e,n))&&r.unshift(Ka(e,i,o)),null!=(i=zr(e,t))&&r.push(Ka(e,i,o))),e=e.return}return r}function Qa(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ja(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=zr(n,i))&&a.unshift(Ka(n,l,s)):o||null!=(l=zr(n,i))&&a.push(Ka(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Za=/\r\n?/g,es=/\u0000|\uFFFD/g;function ts(e){return("string"==typeof e?e:""+e).replace(Za,"\n").replace(es,"")}function ns(e,t,n){if(t=ts(t),ts(e)!==t&&n)throw Error(cn(425))}function rs(){}var os=null,is=null;function as(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 ss="function"==typeof setTimeout?setTimeout:void 0,ls="function"==typeof clearTimeout?clearTimeout:void 0,us="function"==typeof Promise?Promise:void 0,cs="function"==typeof queueMicrotask?queueMicrotask:void 0!==us?function(e){return us.resolve(null).then(e).catch(ds)}:ss;function ds(e){setTimeout((function(){throw e}))}function ps(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Uo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Uo(t)}function fs(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 hs(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 ms=Math.random().toString(36).slice(2),gs="__reactFiber$"+ms,bs="__reactProps$"+ms,ys="__reactContainer$"+ms,vs="__reactEvents$"+ms,xs="__reactListeners$"+ms,_s="__reactHandles$"+ms;function ws(e){var t=e[gs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ys]||n[gs]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=hs(e);null!==e;){if(n=e[gs])return n;e=hs(e)}return t}n=(e=n).parentNode}return null}function Ss(e){return!(e=e[gs]||e[ys])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Cs(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(cn(33))}function Es(e){return e[bs]||null}var ks=[],Rs=-1;function Ms(e){return{current:e}}function As(e){0>Rs||(e.current=ks[Rs],ks[Rs]=null,Rs--)}function Ls(e,t){Rs++,ks[Rs]=e.current,e.current=t}var Is={},Ps=Ms(Is),Ts=Ms(!1),Ds=Is;function Os(e,t){var n=e.type.contextTypes;if(!n)return Is;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zs(e){return null!=(e=e.childContextTypes)}function Ns(){As(Ts),As(Ps)}function qs(e,t,n){if(Ps.current!==Is)throw Error(cn(168));Ls(Ps,t),Ls(Ts,n)}function js(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(cn(108,Yn(e)||"Unknown",o));return $n({},n,r)}function Fs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Is,Ds=Ps.current,Ls(Ps,e),Ls(Ts,Ts.current),!0}function Bs(e,t,n){var r=e.stateNode;if(!r)throw Error(cn(169));n?(e=js(e,t,Ds),r.__reactInternalMemoizedMergedChildContext=e,As(Ts),As(Ps),Ls(Ps,e)):As(Ts),Ls(Ts,n)}var $s=null,Ws=!1,Hs=!1;function Gs(e){null===$s?$s=[e]:$s.push(e)}function Vs(){if(!Hs&&null!==$s){Hs=!0;var e=0,t=Co;try{var n=$s;for(Co=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$s=null,Ws=!1}catch(t){throw null!==$s&&($s=$s.slice(e+1)),Qr(ro,Vs),t}finally{Co=t,Hs=!1}}return null}var Us=[],Ys=0,Ks=null,Xs=0,Qs=[],Js=0,Zs=null,el=1,tl="";function nl(e,t){Us[Ys++]=Xs,Us[Ys++]=Ks,Ks=e,Xs=t}function rl(e,t,n){Qs[Js++]=el,Qs[Js++]=tl,Qs[Js++]=Zs,Zs=e;var r=el;e=tl;var o=32-co(r)-1;r&=~(1<<o),n+=1;var i=32-co(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,el=1<<32-co(t)+o|n<<o|r,tl=i+e}else el=1<<i|n<<o|r,tl=e}function ol(e){null!==e.return&&(nl(e,1),rl(e,1,0))}function il(e){for(;e===Ks;)Ks=Us[--Ys],Us[Ys]=null,Xs=Us[--Ys],Us[Ys]=null;for(;e===Zs;)Zs=Qs[--Js],Qs[Js]=null,tl=Qs[--Js],Qs[Js]=null,el=Qs[--Js],Qs[Js]=null}var al=null,sl=null,ll=!1,ul=null;function cl(e,t){var n=Dp(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 dl(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,al=e,sl=fs(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,al=e,sl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zs?{id:el,overflow:tl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Dp(18,null,null,0)).stateNode=t,n.return=e,e.child=n,al=e,sl=null,!0);default:return!1}}function pl(e){return!(!(1&e.mode)||128&e.flags)}function fl(e){if(ll){var t=sl;if(t){var n=t;if(!dl(e,t)){if(pl(e))throw Error(cn(418));t=fs(n.nextSibling);var r=al;t&&dl(e,t)?cl(r,n):(e.flags=-4097&e.flags|2,ll=!1,al=e)}}else{if(pl(e))throw Error(cn(418));e.flags=-4097&e.flags|2,ll=!1,al=e}}}function hl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;al=e}function ml(e){if(e!==al)return!1;if(!ll)return hl(e),ll=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!as(e.type,e.memoizedProps)),t&&(t=sl)){if(pl(e))throw gl(),Error(cn(418));for(;t;)cl(e,t),t=fs(t.nextSibling)}if(hl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(cn(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){sl=fs(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}sl=null}}else sl=al?fs(e.stateNode.nextSibling):null;return!0}function gl(){for(var e=sl;e;)e=fs(e.nextSibling)}function bl(){sl=al=null,ll=!1}function yl(e){null===ul?ul=[e]:ul.push(e)}var vl=En.ReactCurrentBatchConfig;function xl(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(cn(309));var r=n.stateNode}if(!r)throw Error(cn(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(cn(284));if(!n._owner)throw Error(cn(290,e))}return e}function _l(e,t){throw e=Object.prototype.toString.call(t),Error(cn(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wl(e){return(0,e._init)(e._payload)}function Sl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=zp(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fp(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===Mn?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Nn&&wl(i)===t.type)?((r=o(t,n.props)).ref=xl(e,t,n),r.return=e,r):((r=Np(n.type,n.key,n.props,null,e.mode,r)).ref=xl(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bp(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=qp(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fp(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case kn:return(n=Np(t.type,t.key,t.props,null,e.mode,n)).ref=xl(e,null,t),n.return=e,n;case Rn:return(t=Bp(t,e.mode,n)).return=e,t;case Nn:return d(e,(0,t._init)(t._payload),n)}if(ar(t)||Fn(t))return(t=qp(t,e.mode,n,null)).return=e,t;_l(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case kn:return n.key===o?l(e,t,n,r):null;case Rn:return n.key===o?u(e,t,n,r):null;case Nn:return p(e,t,(o=n._init)(n._payload),r)}if(ar(n)||Fn(n))return null!==o?null:c(e,t,n,r,null);_l(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case kn:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Rn:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Nn:return f(e,t,n,(0,r._init)(r._payload),o)}if(ar(r)||Fn(r))return c(t,e=e.get(n)||null,r,o,null);_l(t,r)}return null}function h(o,a,s,l){for(var u=null,c=null,h=a,m=a=0,g=null;null!==h&&m<s.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,s[m],l);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b,h=g}if(m===s.length)return n(o,h),ll&&nl(o,m),u;if(null===h){for(;m<s.length;m++)null!==(h=d(o,s[m],l))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return ll&&nl(o,m),u}for(h=r(o,h);m<s.length;m++)null!==(g=f(h,o,m,s[m],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),ll&&nl(o,m),u}function m(o,a,s,l){var u=Fn(s);if("function"!=typeof u)throw Error(cn(150));if(null==(s=u.call(s)))throw Error(cn(151));for(var c=u=null,h=a,m=a=0,g=null,b=s.next();null!==h&&!b.done;m++,b=s.next()){h.index>m?(g=h,h=null):g=h.sibling;var y=p(o,h,b.value,l);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(o,h),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y,h=g}if(b.done)return n(o,h),ll&&nl(o,m),u;if(null===h){for(;!b.done;m++,b=s.next())null!==(b=d(o,b.value,l))&&(a=i(b,a,m),null===c?u=b:c.sibling=b,c=b);return ll&&nl(o,m),u}for(h=r(o,h);!b.done;m++,b=s.next())null!==(b=f(h,o,m,b.value,l))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b);return e&&h.forEach((function(e){return t(o,e)})),ll&&nl(o,m),u}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===Mn&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case kn:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===Mn){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Nn&&wl(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=xl(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===Mn?((i=qp(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Np(s.type,s.key,s.props,null,r.mode,l)).ref=xl(r,i,s),l.return=r,r=l)}return a(r);case Rn:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Bp(s,r.mode,l)).return=r,r=i}return a(r);case Nn:return e(r,i,(c=s._init)(s._payload),l)}if(ar(s))return h(r,i,s,l);if(Fn(s))return m(r,i,s,l);_l(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Fp(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var Cl=Sl(!0),El=Sl(!1),kl=Ms(null),Rl=null,Ml=null,Al=null;function Ll(){Al=Ml=Rl=null}function Il(e){var t=kl.current;As(kl),e._currentValue=t}function Pl(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 Tl(e,t){Rl=e,Al=Ml=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(wc=!0),e.firstContext=null)}function Dl(e){var t=e._currentValue;if(Al!==e)if(e={context:e,memoizedValue:t,next:null},null===Ml){if(null===Rl)throw Error(cn(308));Ml=e,Rl.dependencies={lanes:0,firstContext:e}}else Ml=Ml.next=e;return t}var Ol=null;function zl(e){null===Ol?Ol=[e]:Ol.push(e)}function Nl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,zl(t)):(n.next=o.next,o.next=n),t.interleaved=n,ql(e,r)}function ql(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 jl=!1;function Fl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bl(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 $l(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Id){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ql(e,n)}return null===(o=r.interleaved)?(t.next=t,zl(r)):(t.next=o.next,o.next=t),r.interleaved=t,ql(e,n)}function Hl(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,So(e,n)}}function Gl(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vl(e,t,n,r){var o=e.updateQueue;jl=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=$n({},d,p);break e;case 2:jl=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jd|=a,e.lanes=a,e.memoizedState=d}}function Ul(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(cn(191,o));o.call(r)}}}var Yl={},Kl=Ms(Yl),Xl=Ms(Yl),Ql=Ms(Yl);function Jl(e){if(e===Yl)throw Error(cn(174));return e}function Zl(e,t){switch(Ls(Ql,t),Ls(Xl,e),Ls(Kl,Yl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fr(null,"");break;default:t=fr(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}As(Kl),Ls(Kl,t)}function eu(){As(Kl),As(Xl),As(Ql)}function tu(e){Jl(Ql.current);var t=Jl(Kl.current),n=fr(t,e.type);t!==n&&(Ls(Xl,e),Ls(Kl,n))}function nu(e){Xl.current===e&&(As(Kl),As(Xl))}var ru=Ms(0);function ou(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 iu=[];function au(){for(var e=0;e<iu.length;e++)iu[e]._workInProgressVersionPrimary=null;iu.length=0}var su=En.ReactCurrentDispatcher,lu=En.ReactCurrentBatchConfig,uu=0,cu=null,du=null,pu=null,fu=!1,hu=!1,mu=0,gu=0;function bu(){throw Error(cn(321))}function yu(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!da(e[n],t[n]))return!1;return!0}function vu(e,t,n,r,o,i){if(uu=i,cu=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,su.current=null===e||null===e.memoizedState?nc:rc,e=n(r,o),hu){i=0;do{if(hu=!1,mu=0,25<=i)throw Error(cn(301));i+=1,pu=du=null,t.updateQueue=null,su.current=oc,e=n(r,o)}while(hu)}if(su.current=tc,t=null!==du&&null!==du.next,uu=0,pu=du=cu=null,fu=!1,t)throw Error(cn(300));return e}function xu(){var e=0!==mu;return mu=0,e}function _u(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===pu?cu.memoizedState=pu=e:pu=pu.next=e,pu}function wu(){if(null===du){var e=cu.alternate;e=null!==e?e.memoizedState:null}else e=du.next;var t=null===pu?cu.memoizedState:pu.next;if(null!==t)pu=t,du=e;else{if(null===e)throw Error(cn(310));e={memoizedState:(du=e).memoizedState,baseState:du.baseState,baseQueue:du.baseQueue,queue:du.queue,next:null},null===pu?cu.memoizedState=pu=e:pu=pu.next=e}return pu}function Su(e,t){return"function"==typeof t?t(e):t}function Cu(e){var t=wu(),n=t.queue;if(null===n)throw Error(cn(311));n.lastRenderedReducer=e;var r=du,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var c=u.lane;if((uu&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,cu.lanes|=c,jd|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=s,da(r,t.memoizedState)||(wc=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,cu.lanes|=i,jd|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Eu(e){var t=wu(),n=t.queue;if(null===n)throw Error(cn(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);da(i,t.memoizedState)||(wc=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ku(){}function Ru(e,t){var n=cu,r=wu(),o=t(),i=!da(r.memoizedState,o);if(i&&(r.memoizedState=o,wc=!0),r=r.queue,ju(Lu.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==pu&&1&pu.memoizedState.tag){if(n.flags|=2048,Du(9,Au.bind(null,n,r,o,t),void 0,null),null===Pd)throw Error(cn(349));30&uu||Mu(n,t,o)}return o}function Mu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=cu.updateQueue)?(t={lastEffect:null,stores:null},cu.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Au(e,t,n,r){t.value=n,t.getSnapshot=r,Iu(t)&&Pu(e)}function Lu(e,t,n){return n((function(){Iu(t)&&Pu(e)}))}function Iu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!da(e,n)}catch(e){return!0}}function Pu(e){var t=ql(e,1);null!==t&&ip(t,e,1,-1)}function Tu(e){var t=_u();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Su,lastRenderedState:e},t.queue=e,e=e.dispatch=Qu.bind(null,cu,e),[t.memoizedState,e]}function Du(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=cu.updateQueue)?(t={lastEffect:null,stores:null},cu.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 Ou(){return wu().memoizedState}function zu(e,t,n,r){var o=_u();cu.flags|=e,o.memoizedState=Du(1|t,n,void 0,void 0===r?null:r)}function Nu(e,t,n,r){var o=wu();r=void 0===r?null:r;var i=void 0;if(null!==du){var a=du.memoizedState;if(i=a.destroy,null!==r&&yu(r,a.deps))return void(o.memoizedState=Du(t,n,i,r))}cu.flags|=e,o.memoizedState=Du(1|t,n,i,r)}function qu(e,t){return zu(8390656,8,e,t)}function ju(e,t){return Nu(2048,8,e,t)}function Fu(e,t){return Nu(4,2,e,t)}function Bu(e,t){return Nu(4,4,e,t)}function $u(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 Wu(e,t,n){return n=null!=n?n.concat([e]):null,Nu(4,4,$u.bind(null,t,e),n)}function Hu(){}function Gu(e,t){var n=wu();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vu(e,t){var n=wu();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Uu(e,t,n){return 21&uu?(da(n,t)||(n=xo(),cu.lanes|=n,jd|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wc=!0),e.memoizedState=n)}function Yu(e,t){var n=Co;Co=0!==n&&4>n?n:4,e(!0);var r=lu.transition;lu.transition={};try{e(!1),t()}finally{Co=n,lu.transition=r}}function Ku(){return wu().memoizedState}function Xu(e,t,n){var r=op(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ju(e))Zu(t,n);else if(null!==(n=Nl(e,t,n,r))){ip(n,e,r,rp()),ec(n,t,r)}}function Qu(e,t,n){var r=op(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ju(e))Zu(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,da(s,a)){var l=t.interleaved;return null===l?(o.next=o,zl(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Nl(e,t,o,r))&&(ip(n,e,r,o=rp()),ec(n,t,r))}}function Ju(e){var t=e.alternate;return e===cu||null!==t&&t===cu}function Zu(e,t){hu=fu=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ec(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,So(e,n)}}var tc={readContext:Dl,useCallback:bu,useContext:bu,useEffect:bu,useImperativeHandle:bu,useInsertionEffect:bu,useLayoutEffect:bu,useMemo:bu,useReducer:bu,useRef:bu,useState:bu,useDebugValue:bu,useDeferredValue:bu,useTransition:bu,useMutableSource:bu,useSyncExternalStore:bu,useId:bu,unstable_isNewReconciler:!1},nc={readContext:Dl,useCallback:function(e,t){return _u().memoizedState=[e,void 0===t?null:t],e},useContext:Dl,useEffect:qu,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zu(4194308,4,$u.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zu(4194308,4,e,t)},useInsertionEffect:function(e,t){return zu(4,2,e,t)},useMemo:function(e,t){var n=_u();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_u();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=Xu.bind(null,cu,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_u().memoizedState=e},useState:Tu,useDebugValue:Hu,useDeferredValue:function(e){return _u().memoizedState=e},useTransition:function(){var e=Tu(!1),t=e[0];return e=Yu.bind(null,e[1]),_u().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=cu,o=_u();if(ll){if(void 0===n)throw Error(cn(407));n=n()}else{if(n=t(),null===Pd)throw Error(cn(349));30&uu||Mu(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qu(Lu.bind(null,r,i,e),[e]),r.flags|=2048,Du(9,Au.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_u(),t=Pd.identifierPrefix;if(ll){var n=tl;t=":"+t+"R"+(n=(el&~(1<<32-co(el)-1)).toString(32)+n),0<(n=mu++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=gu++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rc={readContext:Dl,useCallback:Gu,useContext:Dl,useEffect:ju,useImperativeHandle:Wu,useInsertionEffect:Fu,useLayoutEffect:Bu,useMemo:Vu,useReducer:Cu,useRef:Ou,useState:function(){return Cu(Su)},useDebugValue:Hu,useDeferredValue:function(e){return Uu(wu(),du.memoizedState,e)},useTransition:function(){return[Cu(Su)[0],wu().memoizedState]},useMutableSource:ku,useSyncExternalStore:Ru,useId:Ku,unstable_isNewReconciler:!1},oc={readContext:Dl,useCallback:Gu,useContext:Dl,useEffect:ju,useImperativeHandle:Wu,useInsertionEffect:Fu,useLayoutEffect:Bu,useMemo:Vu,useReducer:Eu,useRef:Ou,useState:function(){return Eu(Su)},useDebugValue:Hu,useDeferredValue:function(e){var t=wu();return null===du?t.memoizedState=e:Uu(t,du.memoizedState,e)},useTransition:function(){return[Eu(Su)[0],wu().memoizedState]},useMutableSource:ku,useSyncExternalStore:Ru,useId:Ku,unstable_isNewReconciler:!1};function ic(e,t){if(e&&e.defaultProps){for(var n in t=$n({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ac(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:$n({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var sc={isMounted:function(e){return!!(e=e._reactInternals)&&Vr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rp(),o=op(e),i=$l(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Wl(e,i,o))&&(ip(t,e,o,r),Hl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rp(),o=op(e),i=$l(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Wl(e,i,o))&&(ip(t,e,o,r),Hl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rp(),r=op(e),o=$l(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Wl(e,o,r))&&(ip(t,e,r,n),Hl(t,e,r))}};function lc(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!pa(n,r)||!pa(o,i))}function uc(e,t,n){var r=!1,o=Is,i=t.contextType;return"object"==typeof i&&null!==i?i=Dl(i):(o=zs(t)?Ds:Ps.current,i=(r=null!=(r=t.contextTypes))?Os(e,o):Is),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sc,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function cc(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&&sc.enqueueReplaceState(t,t.state,null)}function dc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Fl(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Dl(i):(i=zs(t)?Ds:Ps.current,o.context=Os(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ac(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&sc.enqueueReplaceState(o,o.state,null),Vl(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function pc(e,t){try{var n="",r=t;do{n+=Vn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var mc="function"==typeof WeakMap?WeakMap:Map;function gc(e,t,n){(n=$l(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ud||(Ud=!0,Yd=r),hc(0,t)},n}function bc(e,t,n){(n=$l(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){hc(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){hc(0,t),"function"!=typeof r&&(null===Kd?Kd=new Set([this]):Kd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new mc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Mp.bind(null,e,t,n),t.then(e,e))}function vc(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 xc(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$l(-1,1)).tag=2,Wl(n,t,1))),n.lanes|=1),e)}var _c=En.ReactCurrentOwner,wc=!1;function Sc(e,t,n,r){t.child=null===e?El(t,null,n,r):Cl(t,e.child,n,r)}function Cc(e,t,n,r,o){n=n.render;var i=t.ref;return Tl(t,o),r=vu(e,t,n,r,i,o),n=xu(),null===e||wc?(ll&&n&&ol(t),t.flags|=1,Sc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Uc(e,t,o))}function Ec(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Op(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Np(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kc(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:pa)(a,r)&&e.ref===t.ref)return Uc(e,t,o)}return t.flags|=1,(e=zp(i,r)).ref=t.ref,e.return=t,t.child=e}function kc(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(pa(i,r)&&e.ref===t.ref){if(wc=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Uc(e,t,o);131072&e.flags&&(wc=!0)}}return Ac(e,t,n,r,o)}function Rc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ls(zd,Od),Od|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ls(zd,Od),Od|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ls(zd,Od),Od|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ls(zd,Od),Od|=r;return Sc(e,t,o,n),t.child}function Mc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ac(e,t,n,r,o){var i=zs(n)?Ds:Ps.current;return i=Os(t,i),Tl(t,o),n=vu(e,t,n,r,i,o),r=xu(),null===e||wc?(ll&&r&&ol(t),t.flags|=1,Sc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Uc(e,t,o))}function Lc(e,t,n,r,o){if(zs(n)){var i=!0;Fs(t)}else i=!1;if(Tl(t,o),null===t.stateNode)Vc(e,t),uc(t,n,r),dc(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Dl(u):u=Os(t,u=zs(n)?Ds:Ps.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&cc(t,a,r,u),jl=!1;var p=t.memoizedState;a.state=p,Vl(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Ts.current||jl?("function"==typeof c&&(ac(t,n,c,r),l=t.memoizedState),(s=jl||lc(t,n,s,r,p,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Bl(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ic(t.type,s),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Dl(l):l=Os(t,l=zs(n)?Ds:Ps.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&cc(t,a,r,l),jl=!1,p=t.memoizedState,a.state=p,Vl(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||Ts.current||jl?("function"==typeof f&&(ac(t,n,f,r),h=t.memoizedState),(u=jl||lc(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ic(e,t,n,r,i,o)}function Ic(e,t,n,r,o,i){Mc(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Bs(t,n,!1),Uc(e,t,i);r=t.stateNode,_c.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Cl(t,e.child,null,i),t.child=Cl(t,null,s,i)):Sc(e,t,s,i),t.memoizedState=r.state,o&&Bs(t,n,!0),t.child}function Pc(e){var t=e.stateNode;t.pendingContext?qs(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qs(0,t.context,!1),Zl(e,t.containerInfo)}function Tc(e,t,n,r,o){return bl(),yl(o),t.flags|=256,Sc(e,t,n,r),t.child}var Dc,Oc,zc,Nc,qc={dehydrated:null,treeContext:null,retryLane:0};function jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fc(e,t,n){var r,o=t.pendingProps,i=ru.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ls(ru,1&i),null===e)return fl(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=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},1&o||null===a?a=jp(s,o,0,null):(a.childLanes=0,a.pendingProps=s),e=qp(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=jc(n),t.memoizedState=qc,e):Bc(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,$c(e,t,a,r=fc(Error(cn(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=jp({mode:"visible",children:r.children},o,0,null),(i=qp(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Cl(t,e.child,null,a),t.child.memoizedState=jc(a),t.memoizedState=qc,i);if(!(1&t.mode))return $c(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,$c(e,t,a,r=fc(i=Error(cn(419)),r,void 0))}if(s=!!(a&e.childLanes),wc||s){if(null!==(r=Pd)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,ql(e,o),ip(r,e,o,-1))}return yp(),$c(e,t,a,r=fc(Error(cn(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Lp.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,sl=fs(o.nextSibling),al=t,ll=!0,ul=null,null!==e&&(Qs[Js++]=el,Qs[Js++]=tl,Qs[Js++]=Zs,el=e.id,tl=e.overflow,Zs=t),t=Bc(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(a){a=o.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=zp(i,l)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?a=zp(r,a):(a=qp(a,s,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=null===(s=e.child.memoizedState)?jc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=qc,o}return e=(a=e.child).sibling,o=zp(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bc(e,t){return(t=jp({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function $c(e,t,n,r){return null!==r&&yl(r),Cl(t,e.child,null,n),(e=Bc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Wc(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pl(e.return,t,n)}function Hc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Gc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Sc(e,t,r.children,n),2&(r=ru.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&&Wc(e,n,t);else if(19===e.tag)Wc(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(Ls(ru,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ou(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ou(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hc(t,!0,n,null,i);break;case"together":Hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vc(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Uc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jd|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(cn(153));if(null!==t.child){for(n=zp(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zp(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Yc(e,t){if(!ll)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 Kc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xc(e,t,n){var r=t.pendingProps;switch(il(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kc(t),null;case 1:case 17:return zs(t.type)&&Ns(),Kc(t),null;case 3:return r=t.stateNode,eu(),As(Ts),As(Ps),au(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ml(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ul&&(up(ul),ul=null))),Oc(e,t),Kc(t),null;case 5:nu(t);var o=Jl(Ql.current);if(n=t.type,null!==e&&null!=t.stateNode)zc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(cn(166));return Kc(t),null}if(e=Jl(Kl.current),ml(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[gs]=t,r[bs]=i,e=!!(1&t.mode),n){case"dialog":Wa("cancel",r),Wa("close",r);break;case"iframe":case"object":case"embed":Wa("load",r);break;case"video":case"audio":for(o=0;o<ja.length;o++)Wa(ja[o],r);break;case"source":Wa("error",r);break;case"img":case"image":case"link":Wa("error",r),Wa("load",r);break;case"details":Wa("toggle",r);break;case"input":tr(r,i),Wa("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Wa("invalid",r);break;case"textarea":ur(r,i),Wa("invalid",r)}for(var a in wr(n,i),o=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&ns(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&ns(r.textContent,s,e),o=["children",""+s]):pn.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&Wa("scroll",r)}switch(n){case"input":Qn(r),or(r,i,!0);break;case"textarea":Qn(r),dr(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=rs)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=pr(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[gs]=t,e[bs]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sr(n,r),n){case"dialog":Wa("cancel",e),Wa("close",e),o=r;break;case"iframe":case"object":case"embed":Wa("load",e),o=r;break;case"video":case"audio":for(o=0;o<ja.length;o++)Wa(ja[o],e);o=r;break;case"source":Wa("error",e),o=r;break;case"img":case"image":case"link":Wa("error",e),Wa("load",e),o=r;break;case"details":Wa("toggle",e),o=r;break;case"input":tr(e,r),o=er(e,r),Wa("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$n({},r,{value:void 0}),Wa("invalid",e);break;case"textarea":ur(e,r),o=lr(e,r),Wa("invalid",e)}for(i in wr(n,o),s=o)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?xr(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&mr(e,l):"children"===i?"string"==typeof l?("textarea"!==n||""!==l)&&gr(e,l):"number"==typeof l&&gr(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(pn.hasOwnProperty(i)?null!=l&&"onScroll"===i&&Wa("scroll",e):null!=l&&Cn(e,i,l,a))}switch(n){case"input":Qn(e),or(e,r,!1);break;case"textarea":Qn(e),dr(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Kn(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?sr(e,!!r.multiple,i,!1):null!=r.defaultValue&&sr(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=rs)}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 Kc(t),null;case 6:if(e&&null!=t.stateNode)Nc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(cn(166));if(n=Jl(Ql.current),Jl(Kl.current),ml(t)){if(r=t.stateNode,n=t.memoizedProps,r[gs]=t,(i=r.nodeValue!==n)&&null!==(e=al))switch(e.tag){case 3:ns(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ns(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[gs]=t,t.stateNode=r}return Kc(t),null;case 13:if(As(ru),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ll&&null!==sl&&1&t.mode&&!(128&t.flags))gl(),bl(),t.flags|=98560,i=!1;else if(i=ml(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(cn(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(cn(317));i[gs]=t}else bl(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kc(t),i=!1}else null!==ul&&(up(ul),ul=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ru.current?0===Nd&&(Nd=3):yp())),null!==t.updateQueue&&(t.flags|=4),Kc(t),null);case 4:return eu(),Oc(e,t),null===e&&Va(t.stateNode.containerInfo),Kc(t),null;case 10:return Il(t.type._context),Kc(t),null;case 19:if(As(ru),null===(i=t.memoizedState))return Kc(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Yc(i,!1);else{if(0!==Nd||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=ou(e))){for(t.flags|=128,Yc(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ls(ru,1&ru.current|2),t.child}e=e.sibling}null!==i.tail&&to()>Gd&&(t.flags|=128,r=!0,Yc(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ou(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Yc(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!ll)return Kc(t),null}else 2*to()-i.renderingStartTime>Gd&&1073741824!==n&&(t.flags|=128,r=!0,Yc(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=to(),t.sibling=null,n=ru.current,Ls(ru,r?1&n|2:1&n),t):(Kc(t),null);case 22:case 23:return hp(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Od)&&(Kc(t),6&t.subtreeFlags&&(t.flags|=8192)):Kc(t),null;case 24:case 25:return null}throw Error(cn(156,t.tag))}function Qc(e,t){switch(il(t),t.tag){case 1:return zs(t.type)&&Ns(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return eu(),As(Ts),As(Ps),au(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return nu(t),null;case 13:if(As(ru),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(cn(340));bl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return As(ru),null;case 4:return eu(),null;case 10:return Il(t.type._context),null;case 22:case 23:return hp(),null;default:return null}}Dc=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}},Oc=function(){},zc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Jl(Kl.current);var i,a=null;switch(n){case"input":o=er(e,o),r=er(e,r),a=[];break;case"select":o=$n({},o,{value:void 0}),r=$n({},r,{value:void 0}),a=[];break;case"textarea":o=lr(e,o),r=lr(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=rs)}for(u in wr(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(pn.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(pn.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Wa("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Nc=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jc=!1,Zc=!1,ed="function"==typeof WeakSet?WeakSet:Set,td=null;function nd(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Rp(e,t,n)}else n.current=null}function rd(e,t,n){try{n()}catch(n){Rp(e,t,n)}}var od=!1;function id(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&rd(t,n,i)}o=o.next}while(o!==r)}}function ad(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 sd(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 ld(e){var t=e.alternate;null!==t&&(e.alternate=null,ld(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[gs],delete t[bs],delete t[vs],delete t[xs],delete t[_s])),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 ud(e){return 5===e.tag||3===e.tag||4===e.tag}function cd(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ud(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 dd(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=rs));else if(4!==r&&null!==(e=e.child))for(dd(e,t,n),e=e.sibling;null!==e;)dd(e,t,n),e=e.sibling}function pd(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(pd(e,t,n),e=e.sibling;null!==e;)pd(e,t,n),e=e.sibling}var fd=null,hd=!1;function md(e,t,n){for(n=n.child;null!==n;)gd(e,t,n),n=n.sibling}function gd(e,t,n){if(uo&&"function"==typeof uo.onCommitFiberUnmount)try{uo.onCommitFiberUnmount(lo,n)}catch(e){}switch(n.tag){case 5:Zc||nd(n,t);case 6:var r=fd,o=hd;fd=null,md(e,t,n),hd=o,null!==(fd=r)&&(hd?(e=fd,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fd.removeChild(n.stateNode));break;case 18:null!==fd&&(hd?(e=fd,n=n.stateNode,8===e.nodeType?ps(e.parentNode,n):1===e.nodeType&&ps(e,n),Uo(e)):ps(fd,n.stateNode));break;case 4:r=fd,o=hd,fd=n.stateNode.containerInfo,hd=!0,md(e,t,n),fd=r,hd=o;break;case 0:case 11:case 14:case 15:if(!Zc&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&rd(n,t,a),o=o.next}while(o!==r)}md(e,t,n);break;case 1:if(!Zc&&(nd(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rp(n,t,e)}md(e,t,n);break;case 21:md(e,t,n);break;case 22:1&n.mode?(Zc=(r=Zc)||null!==n.memoizedState,md(e,t,n),Zc=r):md(e,t,n);break;default:md(e,t,n)}}function bd(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ed),t.forEach((function(t){var r=Ip.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function yd(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:fd=s.stateNode,hd=!1;break e;case 3:case 4:fd=s.stateNode.containerInfo,hd=!0;break e}s=s.return}if(null===fd)throw Error(cn(160));gd(i,a,o),fd=null,hd=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){Rp(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vd(t,e),t=t.sibling}function vd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yd(t,e),xd(e),4&r){try{id(3,e,e.return),ad(3,e)}catch(t){Rp(e,e.return,t)}try{id(5,e,e.return)}catch(t){Rp(e,e.return,t)}}break;case 1:yd(t,e),xd(e),512&r&&null!==n&&nd(n,n.return);break;case 5:if(yd(t,e),xd(e),512&r&&null!==n&&nd(n,n.return),32&e.flags){var o=e.stateNode;try{gr(o,"")}catch(t){Rp(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&nr(o,i),Sr(s,a);var u=Sr(s,i);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?xr(o,d):"dangerouslySetInnerHTML"===c?mr(o,d):"children"===c?gr(o,d):Cn(o,c,d,u)}switch(s){case"input":rr(o,i);break;case"textarea":cr(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?sr(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?sr(o,!!i.multiple,i.defaultValue,!0):sr(o,!!i.multiple,i.multiple?[]:"",!1))}o[bs]=i}catch(t){Rp(e,e.return,t)}}break;case 6:if(yd(t,e),xd(e),4&r){if(null===e.stateNode)throw Error(cn(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Rp(e,e.return,t)}}break;case 3:if(yd(t,e),xd(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Uo(t.containerInfo)}catch(t){Rp(e,e.return,t)}break;case 4:default:yd(t,e),xd(e);break;case 13:yd(t,e),xd(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Hd=to())),4&r&&bd(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Zc=(u=Zc)||c,yd(t,e),Zc=u):yd(t,e),xd(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(td=e,c=e.child;null!==c;){for(d=td=c;null!==td;){switch(f=(p=td).child,p.tag){case 0:case 11:case 14:case 15:id(4,p,p.return);break;case 1:nd(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Rp(r,n,e)}}break;case 5:nd(p,p.return);break;case 22:if(null!==p.memoizedState){Cd(d);continue}}null!==f?(f.return=p,td=f):Cd(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=vr("display",a))}catch(t){Rp(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Rp(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yd(t,e),xd(e),4&r&&bd(e);case 21:}}function xd(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ud(n)){var r=n;break e}n=n.return}throw Error(cn(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(gr(o,""),r.flags&=-33),pd(e,cd(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;dd(e,cd(e),i);break;default:throw Error(cn(161))}}catch(t){Rp(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function _d(e,t,n){td=e,wd(e)}function wd(e,t,n){for(var r=!!(1&e.mode);null!==td;){var o=td,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Jc;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zc;s=Jc;var u=Zc;if(Jc=a,(Zc=l)&&!u)for(td=o;null!==td;)l=(a=td).child,22===a.tag&&null!==a.memoizedState?Ed(o):null!==l?(l.return=a,td=l):Ed(o);for(;null!==i;)td=i,wd(i),i=i.sibling;td=o,Jc=s,Zc=u}Sd(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,td=i):Sd(e)}}function Sd(e){for(;null!==td;){var t=td;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Zc||ad(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zc)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ic(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ul(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ul(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Uo(d)}}}break;default:throw Error(cn(163))}Zc||512&t.flags&&sd(t)}catch(e){Rp(t,t.return,e)}}if(t===e){td=null;break}if(null!==(n=t.sibling)){n.return=t.return,td=n;break}td=t.return}}function Cd(e){for(;null!==td;){var t=td;if(t===e){td=null;break}var n=t.sibling;if(null!==n){n.return=t.return,td=n;break}td=t.return}}function Ed(e){for(;null!==td;){var t=td;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ad(4,t)}catch(e){Rp(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Rp(t,o,e)}}var i=t.return;try{sd(t)}catch(e){Rp(t,i,e)}break;case 5:var a=t.return;try{sd(t)}catch(e){Rp(t,a,e)}}}catch(e){Rp(t,t.return,e)}if(t===e){td=null;break}var s=t.sibling;if(null!==s){s.return=t.return,td=s;break}td=t.return}}var kd,Rd=Math.ceil,Md=En.ReactCurrentDispatcher,Ad=En.ReactCurrentOwner,Ld=En.ReactCurrentBatchConfig,Id=0,Pd=null,Td=null,Dd=0,Od=0,zd=Ms(0),Nd=0,qd=null,jd=0,Fd=0,Bd=0,$d=null,Wd=null,Hd=0,Gd=1/0,Vd=null,Ud=!1,Yd=null,Kd=null,Xd=!1,Qd=null,Jd=0,Zd=0,ep=null,tp=-1,np=0;function rp(){return 6&Id?to():-1!==tp?tp:tp=to()}function op(e){return 1&e.mode?2&Id&&0!==Dd?Dd&-Dd:null!==vl.transition?(0===np&&(np=xo()),np):0!==(e=Co)?e:e=void 0===(e=window.event)?16:ti(e.type):1}function ip(e,t,n,r){if(50<Zd)throw Zd=0,ep=null,Error(cn(185));wo(e,n,r),2&Id&&e===Pd||(e===Pd&&(!(2&Id)&&(Fd|=n),4===Nd&&cp(e,Dd)),ap(e,r),1===n&&0===Id&&!(1&t.mode)&&(Gd=to()+500,Ws&&Vs()))}function ap(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-co(i),s=1<<a,l=o[a];-1===l?s&n&&!(s&r)||(o[a]=yo(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=bo(e,e===Pd?Dd:0);if(0===r)null!==n&&Jr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Jr(n),1===t)0===e.tag?function(e){Ws=!0,Gs(e)}(dp.bind(null,e)):Gs(dp.bind(null,e)),cs((function(){!(6&Id)&&Vs()})),n=null;else{switch(Eo(r)){case 1:n=ro;break;case 4:n=oo;break;case 16:default:n=io;break;case 536870912:n=so}n=Pp(n,sp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sp(e,t){if(tp=-1,np=0,6&Id)throw Error(cn(327));var n=e.callbackNode;if(Ep()&&e.callbackNode!==n)return null;var r=bo(e,e===Pd?Dd:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=vp(e,r);else{t=r;var o=Id;Id|=2;var i=bp();for(Pd===e&&Dd===t||(Vd=null,Gd=to()+500,mp(e,t));;)try{_p();break}catch(t){gp(e,t)}Ll(),Md.current=i,Id=o,null!==Td?t=0:(Pd=null,Dd=0,t=Nd)}if(0!==t){if(2===t&&(0!==(o=vo(e))&&(r=o,t=lp(e,o))),1===t)throw n=qd,mp(e,0),cp(e,r),ap(e,to()),n;if(6===t)cp(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!da(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vp(e,r),2===t&&(i=vo(e),0!==i&&(r=i,t=lp(e,i))),1!==t)))throw n=qd,mp(e,0),cp(e,r),ap(e,to()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(cn(345));case 2:case 5:Cp(e,Wd,Vd);break;case 3:if(cp(e,r),(130023424&r)===r&&10<(t=Hd+500-to())){if(0!==bo(e,0))break;if(((o=e.suspendedLanes)&r)!==r){rp(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ss(Cp.bind(null,e,Wd,Vd),t);break}Cp(e,Wd,Vd);break;case 4:if(cp(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-co(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=to()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rd(r/1960))-r)){e.timeoutHandle=ss(Cp.bind(null,e,Wd,Vd),r);break}Cp(e,Wd,Vd);break;default:throw Error(cn(329))}}}return ap(e,to()),e.callbackNode===n?sp.bind(null,e):null}function lp(e,t){var n=$d;return e.current.memoizedState.isDehydrated&&(mp(e,t).flags|=256),2!==(e=vp(e,t))&&(t=Wd,Wd=n,null!==t&&up(t)),e}function up(e){null===Wd?Wd=e:Wd.push.apply(Wd,e)}function cp(e,t){for(t&=~Bd,t&=~Fd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-co(t),r=1<<n;e[n]=-1,t&=~r}}function dp(e){if(6&Id)throw Error(cn(327));Ep();var t=bo(e,0);if(!(1&t))return ap(e,to()),null;var n=vp(e,t);if(0!==e.tag&&2===n){var r=vo(e);0!==r&&(t=r,n=lp(e,r))}if(1===n)throw n=qd,mp(e,0),cp(e,t),ap(e,to()),n;if(6===n)throw Error(cn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cp(e,Wd,Vd),ap(e,to()),null}function pp(e,t){var n=Id;Id|=1;try{return e(t)}finally{0===(Id=n)&&(Gd=to()+500,Ws&&Vs())}}function fp(e){null!==Qd&&0===Qd.tag&&!(6&Id)&&Ep();var t=Id;Id|=1;var n=Ld.transition,r=Co;try{if(Ld.transition=null,Co=1,e)return e()}finally{Co=r,Ld.transition=n,!(6&(Id=t))&&Vs()}}function hp(){Od=zd.current,As(zd)}function mp(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ls(n)),null!==Td)for(n=Td.return;null!==n;){var r=n;switch(il(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ns();break;case 3:eu(),As(Ts),As(Ps),au();break;case 5:nu(r);break;case 4:eu();break;case 13:case 19:As(ru);break;case 10:Il(r.type._context);break;case 22:case 23:hp()}n=n.return}if(Pd=e,Td=e=zp(e.current,null),Dd=Od=t,Nd=0,qd=null,Bd=Fd=jd=0,Wd=$d=null,null!==Ol){for(t=0;t<Ol.length;t++)if(null!==(r=(n=Ol[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ol=null}return e}function gp(e,t){for(;;){var n=Td;try{if(Ll(),su.current=tc,fu){for(var r=cu.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}fu=!1}if(uu=0,pu=du=cu=null,hu=!1,mu=0,Ad.current=null,null===n||null===n.return){Nd=1,qd=t,Td=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Dd,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=vc(a);if(null!==f){f.flags&=-257,xc(f,a,s,0,t),1&f.mode&&yc(i,u,t),l=u;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}if(!(1&t)){yc(i,u,t),yp();break e}l=Error(cn(426))}else if(ll&&1&s.mode){var g=vc(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),xc(g,a,s,0,t),yl(pc(l,s));break e}}i=l=pc(l,s),4!==Nd&&(Nd=2),null===$d?$d=[i]:$d.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Gl(i,gc(0,l,t));break e;case 1:s=l;var b=i.type,y=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Kd&&Kd.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Gl(i,bc(i,s,t));break e}}i=i.return}while(null!==i)}Sp(n)}catch(e){t=e,Td===n&&null!==n&&(Td=n=n.return);continue}break}}function bp(){var e=Md.current;return Md.current=tc,null===e?tc:e}function yp(){0!==Nd&&3!==Nd&&2!==Nd||(Nd=4),null===Pd||!(268435455&jd)&&!(268435455&Fd)||cp(Pd,Dd)}function vp(e,t){var n=Id;Id|=2;var r=bp();for(Pd===e&&Dd===t||(Vd=null,mp(e,t));;)try{xp();break}catch(t){gp(e,t)}if(Ll(),Id=n,Md.current=r,null!==Td)throw Error(cn(261));return Pd=null,Dd=0,Nd}function xp(){for(;null!==Td;)wp(Td)}function _p(){for(;null!==Td&&!Zr();)wp(Td)}function wp(e){var t=kd(e.alternate,e,Od);e.memoizedProps=e.pendingProps,null===t?Sp(e):Td=t,Ad.current=null}function Sp(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qc(n,t)))return n.flags&=32767,void(Td=n);if(null===e)return Nd=6,void(Td=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Xc(n,t,Od)))return void(Td=n);if(null!==(t=t.sibling))return void(Td=t);Td=t=e}while(null!==t);0===Nd&&(Nd=5)}function Cp(e,t,n){var r=Co,o=Ld.transition;try{Ld.transition=null,Co=1,function(e,t,n,r){do{Ep()}while(null!==Qd);if(6&Id)throw Error(cn(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(cn(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-co(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Pd&&(Td=Pd=null,Dd=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Xd||(Xd=!0,Pp(io,(function(){return Ep(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Ld.transition,Ld.transition=null;var a=Co;Co=1;var s=Id;Id|=4,Ad.current=null,function(e,t){if(os=Ko,ba(e=ga())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(s=a+o),d!==i||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(is={focusedElem:e,selectionRange:n},Ko=!1,td=t;null!==td;)if(e=(t=td).child,1028&t.subtreeFlags&&null!==e)e.return=t,td=e;else for(;null!==td;){t=td;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ic(t.type,m),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;1===v.nodeType?v.textContent="":9===v.nodeType&&v.documentElement&&v.removeChild(v.documentElement);break;default:throw Error(cn(163))}}catch(e){Rp(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,td=e;break}td=t.return}h=od,od=!1}(e,n),vd(n,e),ya(is),Ko=!!os,is=os=null,e.current=n,_d(n),eo(),Id=s,Co=a,Ld.transition=i}else e.current=n;if(Xd&&(Xd=!1,Qd=e,Jd=o),i=e.pendingLanes,0===i&&(Kd=null),function(e){if(uo&&"function"==typeof uo.onCommitFiberRoot)try{uo.onCommitFiberRoot(lo,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ap(e,to()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ud)throw Ud=!1,e=Yd,Yd=null,e;!!(1&Jd)&&0!==e.tag&&Ep(),i=e.pendingLanes,1&i?e===ep?Zd++:(Zd=0,ep=e):Zd=0,Vs()}(e,t,n,r)}finally{Ld.transition=o,Co=r}return null}function Ep(){if(null!==Qd){var e=Eo(Jd),t=Ld.transition,n=Co;try{if(Ld.transition=null,Co=16>e?16:e,null===Qd)var r=!1;else{if(e=Qd,Qd=null,Jd=0,6&Id)throw Error(cn(331));var o=Id;for(Id|=4,td=e.current;null!==td;){var i=td,a=i.child;if(16&td.flags){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(td=u;null!==td;){var c=td;switch(c.tag){case 0:case 11:case 15:id(8,c,i)}var d=c.child;if(null!==d)d.return=c,td=d;else for(;null!==td;){var p=(c=td).sibling,f=c.return;if(ld(c),c===u){td=null;break}if(null!==p){p.return=f,td=p;break}td=f}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}td=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,td=a;else e:for(;null!==td;){if(2048&(i=td).flags)switch(i.tag){case 0:case 11:case 15:id(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,td=b;break e}td=i.return}}var y=e.current;for(td=y;null!==td;){var v=(a=td).child;if(2064&a.subtreeFlags&&null!==v)v.return=a,td=v;else e:for(a=y;null!==td;){if(2048&(s=td).flags)try{switch(s.tag){case 0:case 11:case 15:ad(9,s)}}catch(e){Rp(s,s.return,e)}if(s===a){td=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,td=x;break e}td=s.return}}if(Id=o,Vs(),uo&&"function"==typeof uo.onPostCommitFiberRoot)try{uo.onPostCommitFiberRoot(lo,e)}catch(e){}r=!0}return r}finally{Co=n,Ld.transition=t}}return!1}function kp(e,t,n){e=Wl(e,t=gc(0,t=pc(n,t),1),1),t=rp(),null!==e&&(wo(e,1,t),ap(e,t))}function Rp(e,t,n){if(3===e.tag)kp(e,e,n);else for(;null!==t;){if(3===t.tag){kp(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Kd||!Kd.has(r))){t=Wl(t,e=bc(t,e=pc(n,e),1),1),e=rp(),null!==t&&(wo(t,1,e),ap(t,e));break}}t=t.return}}function Mp(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=rp(),e.pingedLanes|=e.suspendedLanes&n,Pd===e&&(Dd&n)===n&&(4===Nd||3===Nd&&(130023424&Dd)===Dd&&500>to()-Hd?mp(e,0):Bd|=n),ap(e,t)}function Ap(e,t){0===t&&(1&e.mode?(t=mo,!(130023424&(mo<<=1))&&(mo=4194304)):t=1);var n=rp();null!==(e=ql(e,t))&&(wo(e,t,n),ap(e,n))}function Lp(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ap(e,n)}function Ip(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(cn(314))}null!==r&&r.delete(t),Ap(e,n)}function Pp(e,t){return Qr(e,t)}function Tp(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 Dp(e,t,n,r){return new Tp(e,t,n,r)}function Op(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zp(e,t){var n=e.alternate;return null===n?((n=Dp(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 Np(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Op(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Mn:return qp(n.children,o,i,t);case An:a=8,o|=8;break;case Ln:return(e=Dp(12,n,t,2|o)).elementType=Ln,e.lanes=i,e;case Dn:return(e=Dp(13,n,t,o)).elementType=Dn,e.lanes=i,e;case On:return(e=Dp(19,n,t,o)).elementType=On,e.lanes=i,e;case qn:return jp(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case In:a=10;break e;case Pn:a=9;break e;case Tn:a=11;break e;case zn:a=14;break e;case Nn:a=16,r=null;break e}throw Error(cn(130,null==e?e:typeof e,""))}return(t=Dp(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function qp(e,t,n,r){return(e=Dp(7,e,r,t)).lanes=n,e}function jp(e,t,n,r){return(e=Dp(22,e,r,t)).elementType=qn,e.lanes=n,e.stateNode={isHidden:!1},e}function Fp(e,t,n){return(e=Dp(6,e,null,t)).lanes=n,e}function Bp(e,t,n){return(t=Dp(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $p(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_o(0),this.expirationTimes=_o(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_o(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wp(e,t,n,r,o,i,a,s,l){return e=new $p(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Dp(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fl(i),e}function Hp(e){if(!e)return Is;e:{if(Vr(e=e._reactInternals)!==e||1!==e.tag)throw Error(cn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zs(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(cn(171))}if(1===e.tag){var n=e.type;if(zs(n))return js(e,n,t)}return t}function Gp(e,t,n,r,o,i,a,s,l){return(e=Wp(n,r,!0,e,0,i,0,s,l)).context=Hp(null),n=e.current,(i=$l(r=rp(),o=op(n))).callback=null!=t?t:null,Wl(n,i,o),e.current.lanes=o,wo(e,o,r),ap(e,r),e}function Vp(e,t,n,r){var o=t.current,i=rp(),a=op(o);return n=Hp(n),null===t.context?t.context=n:t.pendingContext=n,(t=$l(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Wl(o,t,a))&&(ip(e,o,a,i),Hl(e,o,a)),a}function Up(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kp(e,t){Yp(e,t),(e=e.alternate)&&Yp(e,t)}kd=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ts.current)wc=!0;else{if(!(e.lanes&n||128&t.flags))return wc=!1,function(e,t,n){switch(t.tag){case 3:Pc(t),bl();break;case 5:tu(t);break;case 1:zs(t.type)&&Fs(t);break;case 4:Zl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ls(kl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ls(ru,1&ru.current),t.flags|=128,null):n&t.child.childLanes?Fc(e,t,n):(Ls(ru,1&ru.current),null!==(e=Uc(e,t,n))?e.sibling:null);Ls(ru,1&ru.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Gc(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ls(ru,ru.current),r)break;return null;case 22:case 23:return t.lanes=0,Rc(e,t,n)}return Uc(e,t,n)}(e,t,n);wc=!!(131072&e.flags)}else wc=!1,ll&&1048576&t.flags&&rl(t,Xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vc(e,t),e=t.pendingProps;var o=Os(t,Ps.current);Tl(t,n),o=vu(null,t,r,e,o,n);var i=xu();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zs(r)?(i=!0,Fs(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Fl(t),o.updater=sc,t.stateNode=o,o._reactInternals=t,dc(t,r,e,n),t=Ic(null,t,r,!0,i,n)):(t.tag=0,ll&&i&&ol(t),Sc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vc(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Op(e)?1:0;if(null!=e){if((e=e.$$typeof)===Tn)return 11;if(e===zn)return 14}return 2}(r),e=ic(r,e),o){case 0:t=Ac(null,t,r,e,n);break e;case 1:t=Lc(null,t,r,e,n);break e;case 11:t=Cc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,ic(r.type,e),n);break e}throw Error(cn(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ac(e,t,r,o=t.elementType===r?o:ic(r,o),n);case 1:return r=t.type,o=t.pendingProps,Lc(e,t,r,o=t.elementType===r?o:ic(r,o),n);case 3:e:{if(Pc(t),null===e)throw Error(cn(387));r=t.pendingProps,o=(i=t.memoizedState).element,Bl(e,t),Vl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Tc(e,t,r,n,o=pc(Error(cn(423)),t));break e}if(r!==o){t=Tc(e,t,r,n,o=pc(Error(cn(424)),t));break e}for(sl=fs(t.stateNode.containerInfo.firstChild),al=t,ll=!0,ul=null,n=El(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(bl(),r===o){t=Uc(e,t,n);break e}Sc(e,t,r,n)}t=t.child}return t;case 5:return tu(t),null===e&&fl(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,as(r,o)?a=null:null!==i&&as(r,i)&&(t.flags|=32),Mc(e,t),Sc(e,t,a,n),t.child;case 6:return null===e&&fl(t),null;case 13:return Fc(e,t,n);case 4:return Zl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Cl(t,null,r,n):Sc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Cc(e,t,r,o=t.elementType===r?o:ic(r,o),n);case 7:return Sc(e,t,t.pendingProps,n),t.child;case 8:case 12:return Sc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ls(kl,r._currentValue),r._currentValue=a,null!==i)if(da(i.value,a)){if(i.children===o.children&&!Ts.current){t=Uc(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){a=i.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=$l(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Pl(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(cn(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Pl(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Sc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Tl(t,n),r=r(o=Dl(o)),t.flags|=1,Sc(e,t,r,n),t.child;case 14:return o=ic(r=t.type,t.pendingProps),Ec(e,t,r,o=ic(r.type,o),n);case 15:return kc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ic(r,o),Vc(e,t),t.tag=1,zs(r)?(e=!0,Fs(t)):e=!1,Tl(t,n),uc(t,r,o),dc(t,r,o,n),Ic(null,t,r,!0,e,n);case 19:return Gc(e,t,n);case 22:return Rc(e,t,n)}throw Error(cn(156,t.tag))};var Xp="function"==typeof reportError?reportError:function(e){console.error(e)};function Qp(e){this._internalRoot=e}function Jp(e){this._internalRoot=e}function Zp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ef(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tf(){}function nf(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Up(a);s.call(e)}}Vp(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Up(a);i.call(e)}}var a=Gp(t,r,e,0,null,!1,0,"",tf);return e._reactRootContainer=a,e[ys]=a.current,Va(8===e.nodeType?e.parentNode:e),fp(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Up(l);s.call(e)}}var l=Wp(e,0,!1,null,0,!1,0,"",tf);return e._reactRootContainer=l,e[ys]=l.current,Va(8===e.nodeType?e.parentNode:e),fp((function(){Vp(t,l,n,r)})),l}(n,t,e,o,r);return Up(a)}Jp.prototype.render=Qp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(cn(409));Vp(e,t,null,null)},Jp.prototype.unmount=Qp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fp((function(){Vp(null,e,null,null)})),t[ys]=null}},Jp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ao();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qo.length&&0!==t&&t<qo[n].priority;n++);qo.splice(n,0,e),0===n&&$o(e)}},ko=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=go(t.pendingLanes);0!==n&&(So(t,1|n),ap(t,to()),!(6&Id)&&(Gd=to()+500,Vs()))}break;case 13:fp((function(){var t=ql(e,1);if(null!==t){var n=rp();ip(t,e,1,n)}})),Kp(e,1)}},Ro=function(e){if(13===e.tag){var t=ql(e,134217728);if(null!==t)ip(t,e,134217728,rp());Kp(e,134217728)}},Mo=function(e){if(13===e.tag){var t=op(e),n=ql(e,t);if(null!==n)ip(n,e,t,rp());Kp(e,t)}},Ao=function(){return Co},Lo=function(e,t){var n=Co;try{return Co=e,t()}finally{Co=n}},kr=function(e,t,n){switch(t){case"input":if(rr(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Es(r);if(!o)throw Error(cn(90));Jn(r),rr(r,o)}}}break;case"textarea":cr(e,n);break;case"select":null!=(t=n.value)&&sr(e,!!n.multiple,t,!1)}},Pr=pp,Tr=fp;var rf={usingClientEntryPoint:!1,Events:[Ss,Cs,Es,Lr,Ir,pp]},of={findFiberByHostInstance:ws,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},af={bundleType:of.bundleType,version:of.version,rendererPackageName:of.rendererPackageName,rendererConfig:of.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Kr(e))?null:e.stateNode},findFiberByHostInstance:of.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 sf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sf.isDisabled&&sf.supportsFiber)try{lo=sf.inject(af),uo=sf}catch(tse){}}rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rf,rn.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zp(t))throw Error(cn(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Rn,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},rn.createRoot=function(e,t){if(!Zp(e))throw Error(cn(299));var n=!1,r="",o=Xp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Wp(e,1,!1,null,0,n,0,r,o),e[ys]=t.current,Va(8===e.nodeType?e.parentNode:e),new Qp(t)},rn.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(cn(188));throw e=Object.keys(e).join(","),Error(cn(268,e))}return e=null===(e=Kr(t))?null:e.stateNode},rn.flushSync=function(e){return fp(e)},rn.hydrate=function(e,t,n){if(!ef(t))throw Error(cn(200));return nf(null,e,t,!0,n)},rn.hydrateRoot=function(e,t,n){if(!Zp(e))throw Error(cn(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Xp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Gp(t,null,e,1,null!=n?n:null,o,0,i,a),e[ys]=t.current,Va(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Jp(t)},rn.render=function(e,t,n){if(!ef(t))throw Error(cn(200));return nf(null,e,t,!1,n)},rn.unmountComponentAtNode=function(e){if(!ef(e))throw Error(cn(40));return!!e._reactRootContainer&&(fp((function(){nf(null,null,e,!1,(function(){e._reactRootContainer=null,e[ys]=null}))})),!0)},rn.unstable_batchedUpdates=pp,rn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ef(n))throw Error(cn(200));if(null==e||void 0===e._reactInternals)throw Error(cn(38));return nf(e,t,n,!1,r)},rn.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)}}(),nn.exports=rn;var lf=nn.exports,uf=n(lf);function cf(e,t,n){let{reference:r,floating:o}=e;const i=st(t),a=lt(t),s=it(a),l=rt(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ot(t)){case"start":f[a]-=p*(n&&u?-1:1);break;case"end":f[a]+=p*(n&&u?-1:1)}return f}async function df(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=nt(t,e),h=gt(f),m=s[p?"floating"===d?"reference":"floating":d],g=bt(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-x.top+h.top)/v.y,bottom:(x.bottom-g.bottom+h.bottom)/v.y,left:(g.left-x.left+h.left)/v.x,right:(x.right-g.right+h.right)/v.x}}const pf=new Set(["left","top"]);function ff(e){const t=We(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Qe(n)!==i||Qe(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function hf(e){return Re(e)?e:e.contextElement}function mf(e){const t=hf(e);if(!Me(t))return Ze(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ff(t);let a=(i?Qe(n.width):n.width)/r,s=(i?Qe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const gf=Ze(0);function bf(e){const t=Ce(e);return Fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gf}function yf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=hf(e);let a=Ze(1);t&&(r?Re(r)&&(a=mf(r)):a=mf(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ce(e))&&t}(i,n,r)?bf(i):Ze(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=Ce(i),t=r&&Re(r)?Ce(r):r;let n=e,o=Ye(n);for(;o&&r&&t!==n;){const e=mf(o),t=o.getBoundingClientRect(),r=We(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=Ce(o),o=Ye(n)}}return bt({width:c,height:d,x:l,y:u})}function vf(e,t){const n=He(e).scrollLeft;return t?t.left+n:yf(Ee(e)).left+n}function xf(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:vf(e,r)),y:r.top+t.scrollTop}}const _f=new Set(["absolute","fixed"]);function wf(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ce(e),r=Ee(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Fe();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ee(e),n=He(e),r=e.ownerDocument.body,o=Xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+vf(e);const s=-n.scrollTop;return"rtl"===We(r).direction&&(a+=Xe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ee(e));else if(Re(t))r=function(e,t){const n=yf(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Me(e)?mf(e):Ze(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=bf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bt(r)}function Sf(e,t){const n=Ge(e);return!(n===t||!Re(n)||$e(n))&&("fixed"===We(n).position||Sf(n,t))}function Cf(e,t,n){const r=Me(t),o=Ee(t),i="fixed"===n,a=yf(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ze(0);function u(){l.x=vf(o)}if(r||!r&&!i)if(("body"!==Se(t)||Ie(o))&&(s=He(t)),r){const e=yf(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=!o||r||i?Ze(0):xf(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Ef(e){return"static"===We(e).position}function kf(e,t){if(!Me(e)||"fixed"===We(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ee(e)===n&&(n=n.ownerDocument.body),n}function Rf(e,t){const n=Ce(e);if(Oe(e))return n;if(!Me(e)){let t=Ge(e);for(;t&&!$e(t);){if(Re(t)&&!Ef(t))return t;t=Ge(t)}return n}let r=kf(e,t);for(;r&&Te(r)&&Ef(r);)r=kf(r,t);return r&&$e(r)&&Ef(r)&&!je(r)?n:r||function(e){let t=Ge(e);for(;Me(t)&&!$e(t);){if(je(t))return t;if(Oe(t))return null;t=Ge(t)}return null}(e)||n}const Mf={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ee(r),s=!!t&&Oe(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Ze(1);const c=Ze(0),d=Me(r);if((d||!d&&!i)&&(("body"!==Se(r)||Ie(a))&&(l=He(r)),Me(r))){const e=yf(r);u=mf(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const p=!a||d||i?Ze(0):xf(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}},getDocumentElement:Ee,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Oe(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ue(e,[],!1).filter((e=>Re(e)&&"body"!==Se(e))),o=null;const i="fixed"===We(e).position;let a=i?Ge(e):e;for(;Re(a)&&!$e(a);){const t=We(a),n=je(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&_f.has(o.position)||Ie(a)&&!n&&Sf(e,a))?r=r.filter((e=>e!==a)):o=t,a=Ge(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=wf(t,n,o);return e.top=Xe(r.top,e.top),e.right=Ke(r.right,e.right),e.bottom=Ke(r.bottom,e.bottom),e.left=Xe(r.left,e.left),e}),wf(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Rf,getElementRects:async function(e){const t=this.getOffsetParent||Rf,n=this.getDimensions,r=await n(e.floating);return{reference:Cf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ff(e);return{width:t,height:n}},getScale:mf,isElement:Re,isRTL:function(e){return"rtl"===We(e).direction}};function Af(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lf(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=hf(e),c=o||i?[...u?Ue(u):[],...Ue(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=Ee(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(s||t(),!p||!f)return;const h={rootMargin:-Je(d)+"px "+-Je(o.clientWidth-(c+p))+"px "+-Je(o.clientHeight-(d+f))+"px "+-Je(c)+"px",threshold:Xe(0,Ke(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||Af(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(u,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?yf(e):null;return l&&function t(){const r=yf(e);m&&!Af(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const If=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=rt(n),s=ot(n),l="y"===st(n),u=pf.has(a)?-1:1,c=i&&l?-1:1,d=nt(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=nt(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=rt(o),y=st(s),v=rt(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(u.floating)),_=p||(v||!m?[mt(s)]:function(e){const t=mt(e);return[ut(e),t,ut(t)]}(s)),w="none"!==h;!p&&w&&_.push(...ht(s,m,h,x));const S=[s,..._],C=await df(t,g),E=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&E.push(C[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ot(e),o=lt(e),i=it(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=mt(a)),[a,mt(a)]}(o,a,x);E.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:E}],!E.every((e=>e<=0))){var R,M;const e=((null==(R=i.flip)?void 0:R.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&y!==st(t))||k.every((e=>st(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}}}let n=null==(M=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(f){case"bestFit":{var A;const e=null==(A=k.filter((e=>{if(w){const t=st(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Tf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=nt(e,t),c=await df(t,u),d=rt(o),p=ot(o),f="y"===st(o),{width:h,height:m}=i.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,g="end"===p?"top":"bottom");const y=m-c.top-c.bottom,v=h-c.left-c.right,x=Ke(m-c[g],y),_=Ke(h-c[b],v),w=!t.middlewareData.shift;let S=x,C=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),w&&!p){const e=Xe(c.left,0),t=Xe(c.right,0),n=Xe(c.top,0),r=Xe(c.bottom,0);f?C=h-2*(0!==e||0!==t?e+t:Xe(c.left,c.right)):S=m-2*(0!==n||0!==r?n+r:Xe(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:S});const E=await a.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},Df=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=nt(e,t)||{};if(null==u)return{};const d=gt(c),p={x:n,y:r},f=lt(o),h=it(f),m=await a.getDimensions(u),g="y"===f,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[f]-p[f]-i.floating[h],_=p[f]-i.reference[f],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=w?w[v]:0;S&&await(null==a.isElement?void 0:a.isElement(w))||(S=s.floating[v]||i.floating[h]);const C=x/2-_/2,E=S/2-m[h]/2-1,k=Ke(d[b],E),R=Ke(d[y],E),M=k,A=S-m[h]-R,L=S/2-m[h]/2+C,I=function(e,t,n){return Xe(e,Ke(t,n))}(M,L,A),P=!l.arrow&&null!=ot(o)&&L!==I&&i.reference[h]/2-(L<M?k:R)-m[h]/2<0,T=P?L<M?L-M:L-A:0;return{[f]:p[f]+T,data:{[f]:I,centerOffset:L-I-T,...P&&{alignmentOffset:T}},reset:P}}}),Of=(e,t,n)=>{const r=new Map,o={platform:Mf,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=cf(u,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:b,data:y,reset:v}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,f={...f,[i]:{...f[i],...y}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(u=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:c,y:d}=cf(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var zf="undefined"!=typeof document?F.useLayoutEffect:function(){};function Nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Nf(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Nf(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function qf(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jf(e,t){const n=qf(e);return Math.round(t*n)/n}function Ff(e){const t=F.useRef(e);return zf((()=>{t.current=e})),t}const Bf=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?Df({element:n.current,padding:r}).fn(t):{}:n?Df({element:n,padding:r}).fn(t):{}}});const $f="data-floating-ui-focusable",Wf="active",Hf="selected",Gf={...$};let Vf=!1,Uf=0;const Yf=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Uf++;const Kf=Gf.useId||function(){const[e,t]=F.useState((()=>Vf?Yf():void 0));return Ut((()=>{null==e&&t(Yf())}),[]),F.useEffect((()=>{Vf=!0}),[]),e},Xf=F.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:p,style:{transform:f,...h}={},...m}=e,g=Kf(),[b,y]=F.useState(!1);if(Ut((()=>{if(!r)return;"rtl"===We(r).direction&&y(!0)}),[r]),!r)return null;const[v,x]=n.split("-"),_="top"===v||"bottom"===v;let w=c;(_&&null!=i&&i.x||!_&&null!=i&&i.y)&&(w=null);const S=2*u,C=S/2,E=a/2*(l/-8+1),k=s/2*l/4,R=!!p,M=w&&"end"===x?"bottom":"top";let A=w&&"end"===x?"right":"left";w&&b&&(A="end"===x?"left":"right");const L=null!=(null==o?void 0:o.x)?w||o.x:"",I=null!=(null==o?void 0:o.y)?w||o.y:"",P=p||"M0,0 H"+a+" L"+(a-E)+","+(s-k)+" Q"+a/2+","+s+" "+E+","+(s-k)+" Z",T={top:R?"rotate(180deg)":"",left:R?"rotate(90deg)":"rotate(-90deg)",bottom:R?"":"rotate(180deg)",right:R?"rotate(-90deg)":"rotate(90deg)"}[v];return ae.jsxs("svg",{...m,"aria-hidden":!0,ref:t,width:R?a:a+S,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[A]:L,[M]:I,[v]:_||R?"100%":"calc(100% - "+S/2+"px)",transform:[T,f].filter((e=>!!e)).join(" "),...h},children:[S>0&&ae.jsx("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(p?0:1),d:P}),ae.jsx("path",{stroke:S&&!p?m.fill:"none",d:P}),ae.jsx("clipPath",{id:g,children:ae.jsx("rect",{x:-C,y:C*(R?-1:1),width:a+S,height:a})})]})}));const Qf=F.createContext(null),Jf=F.createContext(null),Zf=()=>{var e;return(null==(e=F.useContext(Qf))?void 0:e.id)||null},eh=()=>F.useContext(Jf);function th(e){const{children:t,id:n}=e,r=Zf();return ae.jsx(Qf.Provider,{value:F.useMemo((()=>({id:n,parentId:r})),[n,r]),children:t})}function nh(e){return"data-floating-ui-"+e}function rh(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const oh=nh("safe-polygon");function ih(e,t,n){if(n&&!Vt(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function ah(e){return"function"==typeof e?e():e}function sh(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ae(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const lh={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},uh=F.forwardRef((function(e,t){const[n,r]=F.useState();Ut((()=>{zt()&&r("button")}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[nh("focus-guard")]:"",style:lh};return ae.jsx("span",{...e,...o})})),ch=F.createContext(null),dh=nh("portal");function ph(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Kf(),o=fh(),[i,a]=F.useState(null),s=F.useRef(null);return Ut((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Ut((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(dh,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Ut((()=>{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!ke(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(dh,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=F.useState(null),l=F.useRef(null),u=F.useRef(null),c=F.useRef(null),d=F.useRef(null),p=null==a?void 0:a.modal,f=null==a?void 0:a.open,h=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return F.useEffect((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Zt(e)){("focusin"===e.type?tn:en)(i)}}}),[i,o,p]),F.useEffect((()=>{i&&(f||tn(i))}),[f,i]),ae.jsxs(ch.Provider,{value:F.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i]),children:[h&&i&&ae.jsx(uh,{"data-type":"outside",ref:l,onFocus:e=>{if(Zt(e,i)){var t;null==(t=c.current)||t.focus()}else{const e=a?a.domReference:null,t=Jt(Wt(n=e).body,-1)||n;null==t||t.focus()}var n}}),h&&i&&ae.jsx("span",{"aria-owns":i.id,style:lh}),i&&lf.createPortal(t,i),h&&i&&ae.jsx(uh,{"data-type":"outside",ref:u,onFocus:e=>{if(Zt(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=a?a.domReference:null,r=Jt(Wt(n=t).body,1)||n;null==r||r.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}var n}})]})}const fh=()=>F.useContext(ch);function hh(e){return Me(e.target)&&"BUTTON"===e.target.tagName}function mh(e){return Ht(e)}function gh(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0,stickIfOpen:d=!0}=t,p=F.useRef(),f=F.useRef(!1),h=F.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&(Vt(t,!0)&&u||(!n||!l||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===s&&p.current?p.current=void 0:Vt(t,!0)&&u||(!n||!l||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!c||hh(e)||(" "!==e.key||mh(i)||(e.preventDefault(),f.current=!0),function(e){return Me(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!c||hh(e)||mh(i)||" "===e.key&&f.current&&(f.current=!1,r(!n||!l,e.nativeEvent,"click"))}})),[o,i,s,u,c,r,n,d,l]);return F.useMemo((()=>a?{reference:h}:{}),[a,h])}const bh={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},yh={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},vh=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function xh(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Kf(),i=F.useRef({}),[a]=F.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),s=null!=Zf(),[l,u]=F.useState(r.reference),c=Xt(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=F.useMemo((()=>({setPositionReference:u})),[]),p=F.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return F.useMemo((()=>({dataRef:i,open:t,onOpenChange:c,elements:p,events:a,floatingId:o,refs:d})),[t,c,p,a,o,d])}function _h(e){void 0===e&&(e={});const{nodeId:t}=e,n=xh({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=F.useState(null),[s,l]=F.useState(null),u=(null==o?void 0:o.domReference)||i,c=F.useRef(null),d=eh();Ut((()=>{u&&(c.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=F.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=F.useState(r);Nf(p,r)||f(r);const[h,m]=F.useState(null),[g,b]=F.useState(null),y=F.useCallback((e=>{e!==w.current&&(w.current=e,m(e))}),[]),v=F.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),x=i||h,_=a||g,w=F.useRef(null),S=F.useRef(null),C=F.useRef(c),E=null!=l,k=Ff(l),R=Ff(o),M=Ff(u),A=F.useCallback((()=>{if(!w.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),Of(w.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==M.current};L.current&&!Nf(C.current,t)&&(C.current=t,lf.flushSync((()=>{d(t)})))}))}),[p,t,n,R,M]);zf((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const L=F.useRef(!1);zf((()=>(L.current=!0,()=>{L.current=!1})),[]),zf((()=>{if(x&&(w.current=x),_&&(S.current=_),x&&_){if(k.current)return k.current(x,_,A);A()}}),[x,_,A,k,E]);const I=F.useMemo((()=>({reference:w,floating:S,setReference:y,setFloating:v})),[y,v]),P=F.useMemo((()=>({reference:x,floating:_})),[x,_]),T=F.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=jf(P.floating,c.x),r=jf(P.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...qf(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,P.floating,c.x,c.y]);return F.useMemo((()=>({...c,update:A,refs:I,elements:P,floatingStyles:T})),[c,A,I,P,T])}({...e,elements:{...o,...s&&{reference:s}}}),f=F.useCallback((e=>{const t=Re(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),h=F.useCallback((e=>{(Re(e)||null===e)&&(c.current=e,a(e)),(Re(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Re(e))&&p.refs.setReference(e)}),[p.refs]),m=F.useMemo((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:c})),[p.refs,h,f]),g=F.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),b=F.useMemo((()=>({...p,...r,refs:m,elements:g,nodeId:t})),[p,m,g,t,r]);return Ut((()=>{r.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),F.useMemo((()=>({...p,context:b,refs:m,elements:g})),[p,m,g,b])}function wh(){return Nt()&&zt()}function Sh(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=F.useRef(!1),c=F.useRef(-1),d=F.useRef(!0);F.useEffect((()=>{if(!s)return;const e=Ce(a.domReference);function t(){!n&&Me(a.domReference)&&a.domReference===jt(Wt(a.domReference))&&(u.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),wh()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),wh()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}}),[a.domReference,n,s]),F.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,s]),F.useEffect((()=>()=>{rh(c)}),[]);const p=F.useMemo((()=>({onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Bt(e.nativeEvent);if(l&&Re(t))if(wh()&&!e.relatedTarget){if(!d.current&&!Ht(t))return}else if(!function(e){if(!e||qt())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Re(t)&&t.hasAttribute(nh("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout((()=>{var e;const s=jt(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Ft(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Ft(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,l]);return F.useMemo((()=>s?{reference:p}:{}),[s,p])}function Ch(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Wf]:t,[Hf]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[$f]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[Wf,Hf].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function Eh(e,t,n){void 0===n&&(n=!0);const r=e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}));return r.flatMap((t=>[t,...Eh(e,t.id,n)]))}function kh(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,u]=t[a]||[0,0];s>=r!=u>=r&&n<=(l-i)*(r-s)/(u-s)+i&&(o=!o)}return o}function Rh(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1};let i=!1,a=null,s=null,l="undefined"!=typeof performance?performance.now():0;const u=e=>{let{x:n,y:u,placement:c,elements:d,onClose:p,nodeId:f,tree:h}=e;return function(e){function m(){rh(o),p()}if(rh(o),!d.domReference||!d.floating||null==c||null==n||null==u)return;const{clientX:g,clientY:b}=e,y=[g,b],v=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),x="mouseleave"===e.type,_=sh(d.floating,v),w=sh(d.domReference,v),S=d.domReference.getBoundingClientRect(),C=d.floating.getBoundingClientRect(),E=c.split("-")[0],k=n>C.right-C.width/2,R=u>C.bottom-C.height/2,M=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,S),A=C.width>S.width,L=C.height>S.height,I=(A?S:C).left,P=(A?S:C).right,T=(L?S:C).top,D=(L?S:C).bottom;if(_&&(i=!0,!x))return;if(w&&(i=!1),w&&!x)return void(i=!0);if(x&&Re(e.relatedTarget)&&sh(d.floating,e.relatedTarget))return;if(h&&Eh(h.nodesRef.current,f).length)return;if("top"===E&&u>=S.bottom-1||"bottom"===E&&u<=S.top+1||"left"===E&&n>=S.right-1||"right"===E&&n<=S.left+1)return m();let O=[];switch(E){case"top":O=[[I,S.top+1],[I,C.bottom-1],[P,C.bottom-1],[P,S.top+1]];break;case"bottom":O=[[I,C.top+1],[I,S.bottom-1],[P,S.bottom-1],[P,C.top+1]];break;case"left":O=[[C.right-1,D],[C.right-1,T],[S.left+1,T],[S.left+1,D]];break;case"right":O=[[S.right-1,D],[S.right-1,T],[C.left+1,T],[C.left+1,D]]}if(!kh([g,b],O)){if(i&&!M)return m();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,u=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}kh([g,b],function(e){let[n,r]=e;switch(E){case"top":return[[A?n+t/2:k?n+4*t:n-4*t,r+t+1],[A?n-t/2:k?n+4*t:n-4*t,r+t+1],...[[C.left,k||A?C.bottom-t:C.top],[C.right,k?A?C.bottom-t:C.top:C.bottom-t]]];case"bottom":return[[A?n+t/2:k?n+4*t:n-4*t,r-t],[A?n-t/2:k?n+4*t:n-4*t,r-t],...[[C.left,k||A?C.top+t:C.bottom],[C.right,k?A?C.top+t:C.bottom:C.top+t]]];case"left":{const e=[n+t+1,L?r+t/2:R?r+4*t:r-4*t],o=[n+t+1,L?r-t/2:R?r+4*t:r-4*t];return[...[[R||L?C.right-t:C.left,C.top],[R?L?C.right-t:C.left:C.right-t,C.bottom]],e,o]}case"right":return[[n-t,L?r+t/2:R?r+4*t:r-4*t],[n-t,L?r-t/2:R?r+4*t:r-4*t],...[[R||L?C.left+t:C.right,C.top],[R?L?C.left+t:C.right:C.left+t,C.bottom]]]}}([n,u]))?!i&&r&&(o.current=window.setTimeout(m,40)):m()}}};return u.__options={blockPointerEvents:n},u}!function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-qlik-appearance=qlik-dark]{--sprout-common-foreground-color-default: #ffffff;--sprout-common-foreground-color-weak: rgb(100% 100% 100% / .76);--sprout-common-foreground-color-disabled: rgb(100% 100% 100% / .55);--sprout-common-background-color-default: #333333;--sprout-common-background-color-weak: #262626;--sprout-common-background-color-moderate: #1a1a1a;--sprout-common-background-color-strong: #0e0e0e;--sprout-common-background-color-enabled: rgb( 100% 100% 100% / .08 );--sprout-common-background-color-hover: rgb( 100% 100% 100% / .2 );--sprout-common-background-color-pressed: rgb( 100% 100% 100% / .1 );--sprout-common-background-color-toggled: rgb( 100% 100% 100% / .3 );--sprout-common-background-color-disabled: rgb( 100% 100% 100% / .15 );--sprout-common-border-default-color: rgb(100% 100% 100% / .15);--sprout-common-border-default-width: 1px;--sprout-common-border-default-style: solid;--sprout-common-border-weak-color: rgb(100% 100% 100% / .1);--sprout-common-border-weak-width: 1px;--sprout-common-border-weak-style: solid;--sprout-common-border-moderate-color: rgb(100% 100% 100% / .3);--sprout-common-border-moderate-width: 1px;--sprout-common-border-moderate-style: solid;--sprout-common-border-strong-color: rgb(100% 100% 100% / .42);--sprout-common-border-strong-width: 1px;--sprout-common-border-strong-style: solid;--sprout-common-border-extra-strong-color: rgb( 100% 100% 100% / .55 );--sprout-common-border-extra-strong-width: 1px;--sprout-common-border-extra-strong-style: solid;--sprout-common-elevation-default: 0 2px 4px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-elevation-weak: 0 1px 2px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-elevation-moderate: 0 4px 10px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-elevation-strong: 0 6px 20px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-divider-default-color: #808080;--sprout-common-divider-default-width: 1px;--sprout-common-divider-default-style: solid;--sprout-common-divider-subtle-color: #808080;--sprout-common-divider-subtle-width: 1px;--sprout-common-divider-subtle-style: dashed;--sprout-common-divider-subtle-weak-color: rgb( 41.137% 41.137% 41.137% );--sprout-common-divider-subtle-weak-width: 1px;--sprout-common-divider-subtle-weak-style: dashed;--sprout-common-divider-weak-color: rgb(41.137% 41.137% 41.137%);--sprout-common-divider-weak-width: 1px;--sprout-common-divider-weak-style: solid;--sprout-common-divider-moderate-color: rgb(65.137% 65.137% 65.137%);--sprout-common-divider-moderate-width: 1px;--sprout-common-divider-moderate-style: solid;--sprout-common-divider-strong-color: rgb(72.608% 72.608% 72.608%);--sprout-common-divider-strong-width: 1px;--sprout-common-divider-strong-style: solid;--sprout-common-divider-extra-strong-color: rgb( 82.569% 82.569% 82.569% );--sprout-common-divider-extra-strong-width: 2px;--sprout-common-divider-extra-strong-style: solid;--sprout-inverse-foreground-color-default: var(--sprout-common-background-color-default);--sprout-inverse-foreground-color-disabled: rgb(20% 20% 20% / .3);--sprout-inverse-background-color-default: var( --sprout-common-foreground-color-default );--sprout-inverse-border-default-color: var( --sprout-inverse-foreground-color-default );--sprout-inverse-border-default-width: 1px;--sprout-inverse-border-default-style: solid;--sprout-inverse-border-weak-color: var( --sprout-inverse-foreground-color-disabled );--sprout-inverse-border-weak-width: 1px;--sprout-inverse-border-weak-style: solid;--sprout-brand-primary-color-default: #4ec574;--sprout-brand-primary-color-weak: rgb(30.588% 77.255% 45.49% / .05);--sprout-brand-primary-color-hover: rgb(44.471% 81.804% 56.392%);--sprout-brand-primary-color-pressed: rgb(61.13% 87.263% 69.474%);--sprout-brand-primary-color-toggled: rgb(72.791% 91.084% 78.632%);--sprout-brand-primary-color-disabled: rgb(100% 100% 100% / .15);--sprout-brand-primary-color-focus: rgb(44.471% 81.804% 56.392%);--sprout-brand-primary-color-inverse: #333333;--sprout-danger-color-default: #f15a81;--sprout-danger-color-weak: rgb(94.51% 35.294% 50.588% / .05);--sprout-danger-color-hover: rgb(95.608% 48.235% 60.471%);--sprout-danger-color-pressed: rgb(96.926% 63.765% 72.33%);--sprout-danger-color-toggled: rgb(97.848% 74.636% 80.631%);--sprout-danger-color-disabled: rgb(100% 100% 100% / .15);--sprout-danger-color-focus: rgb(94.675% 37.235% 52.071%);--sprout-danger-color-inverse: #333333;--sprout-link-foreground-color-default: #5daef1;--sprout-focus-background-color-default: rgb( 100% 100% 100% / .2 );--sprout-focus-color-default: #5daef1;--sprout-focus-border-default-color: var(--sprout-focus-color-default);--sprout-focus-border-default-width: 2px;--sprout-focus-border-default-style: solid;--sprout-success-color-default: #4ec574;--sprout-success-color-weak: rgb(30.588% 77.255% 45.49% / .05);--sprout-success-color-inverse: #333333;--sprout-warning-color-default: #ff9800;--sprout-warning-color-weak: rgb(100% 59.608% 0% / .05);--sprout-warning-color-inverse: #333333;--sprout-info-color-default: #5daef1;--sprout-info-color-weak: rgb(36.471% 68.235% 94.51% / .05);--sprout-info-color-inverse: #333333;--sprout-favorite-color-default: #ffb84d;--sprout-favorite-color-inverse: #333333;--sprout-overlay-background-color-default: rgb( 20% 20% 20% / .6 );--sprout-overlay-background-color-inverse: rgb( 100% 100% 100% / .08 );--sprout-curtain-background-color-default: rgb( 0% 0% 0% / .6 );--sprout-input-background-color-default: rgb( 100% 100% 100% / .06 );--sprout-script-color-default: #ffffff;--sprout-script-color-comment: rgb(76% 76% 76%);--sprout-script-color-function: rgb(45.098% 73.098% 95.608%);--sprout-script-color-keyword: rgb(45.098% 73.098% 95.608%);--sprout-script-color-bracket-match: rgb(94.353% 48.471% 10%);--sprout-script-color-variable: rgb(97.529% 67.882% 75.02%);--sprout-script-color-field: rgb(100% 71.725% 30%);--sprout-script-color-string: rgb(47.529% 83.765% 61.176%);--sprout-script-color-measure: rgb(68.235% 66.353% 88.706%);--sprout-script-color-table: rgb(88.078% 31.922% 62.039%);--sprout-selected-border-default-color: #4ec574;--sprout-selected-border-default-width: 2px;--sprout-selected-border-default-style: solid;--sprout-selected-color-default: #4ec574;--sprout-selected-color-inverse: #333333;--sprout-selected-background-color-default: rgb(100% 100% 100% / .1);--sprout-illustration-color-palette-0: #ffffff;--sprout-illustration-color-palette-1: #cccccc;--sprout-illustration-color-palette-2: #4ec574;--sprout-illustration-color-palette-3: #f15a81;--sprout-illustration-color-palette-4: #5daef1;--sprout-illustration-color-palette-5: #ed60a9;--sprout-illustration-color-palette-6: #ffb84d;--sprout-data-color-others: #b3b3b3;--sprout-data-color-null: #666666;--sprout-data-color-support: #a6a6a6;--sprout-data-color-support-weak: #666666;--sprout-data-color-categorical-0-0: #5daef1;--sprout-data-color-categorical-0-1: #6694a8;--sprout-data-color-categorical-0-2: #8bc5f5;--sprout-data-color-categorical-0-3: #00b5aa;--sprout-data-color-categorical-0-4: #00873d;--sprout-data-color-categorical-0-5: #ffb84d;--sprout-data-color-categorical-0-6: #ffcd80;--sprout-data-color-categorical-0-7: #870063;--sprout-data-color-categorical-0-8: #f15a81;--sprout-data-color-categorical-0-9: #e74096;--sprout-data-color-categorical-0-10: #ae006d;--sprout-data-color-categorical-0-11: #d92686;--sprout-data-color-sequential-0-0: #ffcd80;--sprout-data-color-sequential-0-1: #ffb84d;--sprout-data-color-sequential-0-2: #ff9800;--sprout-data-color-sequential-0-3: #ef6d00;--sprout-data-color-sequential-0-4: #e65200;--sprout-data-color-sequential-0-5: #bf3900;--sprout-data-color-sequential-0-6: #8e2200;--sprout-data-color-sequential-0-7: #611100;--sprout-data-color-sequential-1-0: #b8dbf9;--sprout-data-color-sequential-1-1: #8bc5f5;--sprout-data-color-sequential-1-2: #379def;--sprout-data-color-sequential-1-3: #0275d9;--sprout-data-color-sequential-1-4: #005db9;--sprout-data-color-sequential-1-5: #0047ad;--sprout-data-color-sequential-1-6: #003a8f;--sprout-data-color-sequential-1-7: #002d6d;--sprout-data-color-diverging-0-0: #ff9800;--sprout-data-color-diverging-0-1: #f57d00;--sprout-data-color-diverging-0-2: #bf3900;--sprout-data-color-diverging-0-3: #8e2200;--sprout-data-color-diverging-0-4: rgb(19.02% 12.157% 21.373%);--sprout-data-color-diverging-0-5: #0047ad;--sprout-data-color-diverging-0-6: #0275d9;--sprout-data-color-diverging-0-7: #379def;--sprout-data-color-diverging-0-8: #8bc5f5;--sprout-alternative-color-default: #e6e6e6;--sprout-alternative-color-inverse: #404040;--sprout-excluded-color-default: #b3b3b3;--sprout-excluded-color-inverse: #404040}[data-qlik-appearance=qlik-light]{--sprout-common-foreground-color-default: #404040;--sprout-common-foreground-color-weak: rgb( 25.098% 25.098% 25.098% / .76 );--sprout-common-foreground-color-disabled: rgb(25.098% 25.098% 25.098% / .55);--sprout-common-background-color-default: #ffffff;--sprout-common-background-color-weak: #fafafa;--sprout-common-background-color-moderate: #f2f2f2;--sprout-common-background-color-strong: #e6e6e6;--sprout-common-background-color-enabled: #ffffff;--sprout-common-background-color-hover: rgb(0% 0% 0% / .03);--sprout-common-background-color-pressed: rgb( 0% 0% 0% / .05 );--sprout-common-background-color-toggled: rgb( 0% 0% 0% / .08 );--sprout-common-background-color-disabled: rgb( 0% 0% 0% / .03 );--sprout-common-border-default-color: rgb(0% 0% 0% / .15);--sprout-common-border-default-width: 1px;--sprout-common-border-default-style: solid;--sprout-common-border-weak-color: rgb(0% 0% 0% / .1);--sprout-common-border-weak-width: 1px;--sprout-common-border-weak-style: solid;--sprout-common-border-moderate-color: rgb(0% 0% 0% / .3);--sprout-common-border-moderate-width: 1px;--sprout-common-border-moderate-style: solid;--sprout-common-border-strong-color: rgb(0% 0% 0% / .42);--sprout-common-border-strong-width: 1px;--sprout-common-border-strong-style: solid;--sprout-common-border-extra-strong-color: rgb(0% 0% 0% / .55);--sprout-common-border-extra-strong-width: 1px;--sprout-common-border-extra-strong-style: solid;--sprout-common-elevation-default: 0 2px 4px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-elevation-weak: 0 1px 2px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-elevation-moderate: 0 4px 10px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-elevation-strong: 0 6px 20px 0 #00000026, 0 0 0 1px #0000000d;--sprout-common-divider-default-color: #d9d9d9;--sprout-common-divider-default-width: 1px;--sprout-common-divider-default-style: solid;--sprout-common-divider-subtle-color: #d9d9d9;--sprout-common-divider-subtle-width: 1px;--sprout-common-divider-subtle-style: dashed;--sprout-common-divider-subtle-weak-color: rgb( 89.569% 89.569% 89.569% );--sprout-common-divider-subtle-weak-width: 1px;--sprout-common-divider-subtle-weak-style: dashed;--sprout-common-divider-weak-color: rgb(89.569% 89.569% 89.569%);--sprout-common-divider-weak-width: 1px;--sprout-common-divider-weak-style: solid;--sprout-common-divider-moderate-color: rgb(67.098% 67.098% 67.098%);--sprout-common-divider-moderate-width: 1px;--sprout-common-divider-moderate-style: solid;--sprout-common-divider-strong-color: rgb(58.098% 58.098% 58.098%);--sprout-common-divider-strong-width: 1px;--sprout-common-divider-strong-style: solid;--sprout-common-divider-extra-strong-color: rgb( 46.098% 46.098% 46.098% );--sprout-common-divider-extra-strong-width: 2px;--sprout-common-divider-extra-strong-style: solid;--sprout-inverse-foreground-color-default: var(--sprout-common-background-color-default);--sprout-inverse-foreground-color-disabled: rgb(100% 100% 100% / .3);--sprout-inverse-background-color-default: var( --sprout-common-foreground-color-default );--sprout-inverse-border-default-color: var( --sprout-inverse-foreground-color-default );--sprout-inverse-border-default-width: 1px;--sprout-inverse-border-default-style: solid;--sprout-inverse-border-weak-color: var( --sprout-inverse-foreground-color-disabled );--sprout-inverse-border-weak-width: 1px;--sprout-inverse-border-weak-style: solid;--sprout-brand-primary-color-default: #00873d;--sprout-brand-primary-color-weak: rgb(0% 52.941% 23.922% / .05);--sprout-brand-primary-color-hover: rgb(0% 42.353% 19.137%);--sprout-brand-primary-color-pressed: rgb(0% 29.647% 13.396%);--sprout-brand-primary-color-toggled: rgb(0% 20.753% 9.3772%);--sprout-brand-primary-color-disabled: rgb(0% 0% 0% / .15);--sprout-brand-primary-color-focus: rgb(0% 42.353% 19.137%);--sprout-brand-primary-color-inverse: #ffffff;--sprout-danger-color-default: #d7004b;--sprout-danger-color-weak: rgb(84.314% 0% 29.412% / .05);--sprout-danger-color-hover: rgb(67.451% 0% 23.529%);--sprout-danger-color-pressed: rgb(47.216% 0% 16.47%);--sprout-danger-color-toggled: rgb(33.051% 0% 11.529%);--sprout-danger-color-disabled: rgb(0% 0% 0% / .15);--sprout-danger-color-focus: rgb(81.784% 0% 28.529%);--sprout-danger-color-inverse: #ffffff;--sprout-link-foreground-color-default: #005db9;--sprout-focus-background-color-default: rgb(0% 0% 0% / .03);--sprout-focus-color-default: #005db9;--sprout-focus-border-default-color: var(--sprout-focus-color-default);--sprout-focus-border-default-width: 2px;--sprout-focus-border-default-style: solid;--sprout-success-color-default: #00873d;--sprout-success-color-weak: rgb(0% 52.941% 23.922% / .05);--sprout-success-color-inverse: #ffffff;--sprout-warning-color-default: #ef6d00;--sprout-warning-color-weak: rgb(93.725% 42.745% 0% / .05);--sprout-warning-color-inverse: #ffffff;--sprout-info-color-default: #005db9;--sprout-info-color-weak: rgb(0% 36.471% 72.549% / .05);--sprout-info-color-inverse: #ffffff;--sprout-favorite-color-default: #ffb84d;--sprout-favorite-color-inverse: #ffffff;--sprout-overlay-background-color-default: rgb( 100% 100% 100% / .6 );--sprout-overlay-background-color-inverse: rgb( 0% 0% 0% / .05 );--sprout-curtain-background-color-default: rgb( 0% 0% 0% / .6 );--sprout-input-background-color-default: #ffffff;--sprout-script-color-default: #404040;--sprout-script-color-comment: rgb(47.569% 47.569% 47.569%);--sprout-script-color-function: rgb(22.627% 50.627% 73.137%);--sprout-script-color-keyword: rgb(22.627% 50.627% 73.137%);--sprout-script-color-bracket-match: rgb(86.863% 40.98% 2.5098%);--sprout-script-color-variable: rgb(75.059% 45.412% 52.549%);--sprout-script-color-field: rgb(77.529% 49.255% 7.5294%);--sprout-script-color-string: rgb(17.569% 53.804% 31.216%);--sprout-script-color-measure: rgb(38.275% 36.392% 58.745%);--sprout-script-color-table: rgb(73.098% 16.941% 47.059%);--sprout-selected-border-default-color: #00873d;--sprout-selected-border-default-width: 2px;--sprout-selected-border-default-style: solid;--sprout-selected-color-default: #00873d;--sprout-selected-color-inverse: #ffffff;--sprout-selected-background-color-default: rgb(0% 0% 0% / .05);--sprout-illustration-color-palette-0: #595959;--sprout-illustration-color-palette-1: #999999;--sprout-illustration-color-palette-2: #009844;--sprout-illustration-color-palette-3: #d7004b;--sprout-illustration-color-palette-4: #005db9;--sprout-illustration-color-palette-5: #870063;--sprout-illustration-color-palette-6: #ef6d00;--sprout-data-color-others: #a6a6a6;--sprout-data-color-null: #d9d9d9;--sprout-data-color-support: #b3b3b3;--sprout-data-color-support-weak: #e6e6e6;--sprout-data-color-categorical-0-0: #0047ad;--sprout-data-color-categorical-0-1: #6694a8;--sprout-data-color-categorical-0-2: #8bc5f5;--sprout-data-color-categorical-0-3: #00b5aa;--sprout-data-color-categorical-0-4: #00873d;--sprout-data-color-categorical-0-5: #ffb84d;--sprout-data-color-categorical-0-6: #ffcd80;--sprout-data-color-categorical-0-7: #870063;--sprout-data-color-categorical-0-8: #f15a81;--sprout-data-color-categorical-0-9: #e74096;--sprout-data-color-categorical-0-10: #ae006d;--sprout-data-color-categorical-0-11: #d92686;--sprout-data-color-sequential-0-0: #611100;--sprout-data-color-sequential-0-1: #8e2200;--sprout-data-color-sequential-0-2: #bf3900;--sprout-data-color-sequential-0-3: #e65200;--sprout-data-color-sequential-0-4: #ef6d00;--sprout-data-color-sequential-0-5: #ff9800;--sprout-data-color-sequential-0-6: #ffb84d;--sprout-data-color-sequential-0-7: #ffcd80;--sprout-data-color-sequential-1-0: #002d6d;--sprout-data-color-sequential-1-1: #003a8f;--sprout-data-color-sequential-1-2: #0047ad;--sprout-data-color-sequential-1-3: #005db9;--sprout-data-color-sequential-1-4: #0275d9;--sprout-data-color-sequential-1-5: #379def;--sprout-data-color-sequential-1-6: #8bc5f5;--sprout-data-color-sequential-1-7: #b8dbf9;--sprout-data-color-diverging-0-0: #8e2200;--sprout-data-color-diverging-0-1: #bf3900;--sprout-data-color-diverging-0-2: #f57d00;--sprout-data-color-diverging-0-3: #ff9800;--sprout-data-color-diverging-0-4: #edf7fc;--sprout-data-color-diverging-0-5: #8bc5f5;--sprout-data-color-diverging-0-6: #379def;--sprout-data-color-diverging-0-7: #0275d9;--sprout-data-color-diverging-0-8: #0047ad;--sprout-alternative-color-default: #e6e6e6;--sprout-alternative-color-inverse: #404040;--sprout-excluded-color-default: #b3b3b3;--sprout-excluded-color-inverse: #404040}:root{--sprout-container-breakpoint-xs: 480px;--sprout-container-breakpoint-s: 768px;--sprout-container-breakpoint-m: 1280px;--sprout-container-breakpoint-l: 1768px;--sprout-container-breakpoint-xl: 2160px;--sprout-container-layer-stacked: 1000;--sprout-container-layer-floating: 1100;--sprout-container-layer-overlay: 1300;--sprout-container-layer-context: 1350;--sprout-container-layer-time-sensitive: 1400;--sprout-container-layer-cursor: 1500}[data-qlik-density=comfortable]{--sprout-common-spacing-xs: 2px;--sprout-common-spacing-s: 4px;--sprout-common-spacing-m: 8px;--sprout-common-spacing-l: 12px;--sprout-common-spacing-xl: 16px;--sprout-common-spacing-xxl: 24px;--sprout-common-spacing-3xl: 32px;--sprout-common-density-xs: 2px;--sprout-common-density-s: 4px;--sprout-common-density-m: 8px;--sprout-common-density-l: 12px;--sprout-common-density-xl: 16px;--sprout-common-density-xxl: 24px;--sprout-common-density-3xl: 32px;--sprout-common-scale-spacing: 1;--sprout-common-scale-density: 1}[data-qlik-density=dense]{--sprout-common-spacing-xs: 1px;--sprout-common-spacing-s: 2px;--sprout-common-spacing-m: 4px;--sprout-common-spacing-l: 8px;--sprout-common-spacing-xl: 12px;--sprout-common-spacing-xxl: 20px;--sprout-common-spacing-3xl: 24px;--sprout-common-density-xs: 1px;--sprout-common-density-s: 2px;--sprout-common-density-m: 4px;--sprout-common-density-l: 8px;--sprout-common-density-xl: 12px;--sprout-common-density-xxl: 20px;--sprout-common-density-3xl: 24px;--sprout-common-scale-spacing: 1;--sprout-common-scale-density: 1}[data-qlik-density=spacious]{--sprout-common-spacing-xs: 4px;--sprout-common-spacing-s: 8px;--sprout-common-spacing-m: 12px;--sprout-common-spacing-l: 16px;--sprout-common-spacing-xl: 24px;--sprout-common-spacing-xxl: 32px;--sprout-common-spacing-3xl: 40px;--sprout-common-density-xs: 4px;--sprout-common-density-s: 8px;--sprout-common-density-m: 12px;--sprout-common-density-l: 16px;--sprout-common-density-xl: 24px;--sprout-common-density-xxl: 32px;--sprout-common-density-3xl: 40px;--sprout-common-scale-spacing: 1;--sprout-common-scale-density: 1}[data-qlik-roundness=rounded]{--sprout-common-border-radius-subtle: 8px;--sprout-common-border-radius-soft: 12px;--sprout-common-border-radius-cushiony: 20px;--sprout-common-border-radius-pill: 2000px;--sprout-common-border-radius-round: 2000px;--sprout-common-nested-border-radius-subtle-xs: 6px;--sprout-common-nested-border-radius-soft-xs: 10px;--sprout-common-nested-border-radius-soft-s: 8px;--sprout-common-nested-border-radius-cushiony-xs: 18px;--sprout-common-nested-border-radius-cushiony-s: 16px;--sprout-common-nested-border-radius-cushiony-m: 12px;--sprout-common-twice-nested-border-radius-soft-s-xs: 6px;--sprout-common-twice-nested-border-radius-cushiony-s-xs: 14px;--sprout-common-twice-nested-border-radius-cushiony-m-s: 8px;--sprout-common-scale-roundness: 1}[data-qlik-roundness=sharp]{--sprout-common-border-radius-subtle: 0px;--sprout-common-border-radius-soft: 0px;--sprout-common-border-radius-cushiony: 0px;--sprout-common-border-radius-pill: 0px;--sprout-common-border-radius-round: 2000px;--sprout-common-nested-border-radius-subtle-xs: -2px;--sprout-common-nested-border-radius-soft-xs: -2px;--sprout-common-nested-border-radius-soft-s: -4px;--sprout-common-nested-border-radius-cushiony-xs: -2px;--sprout-common-nested-border-radius-cushiony-s: -4px;--sprout-common-nested-border-radius-cushiony-m: -8px;--sprout-common-twice-nested-border-radius-soft-s-xs: -6px;--sprout-common-twice-nested-border-radius-cushiony-s-xs: -6px;--sprout-common-twice-nested-border-radius-cushiony-m-s: -12px;--sprout-common-scale-roundness: 1}[data-qlik-roundness=soft]{--sprout-common-border-radius-subtle: 4px;--sprout-common-border-radius-soft: 8px;--sprout-common-border-radius-cushiony: 16px;--sprout-common-border-radius-pill: 4px;--sprout-common-border-radius-round: 2000px;--sprout-common-nested-border-radius-subtle-xs: 2px;--sprout-common-nested-border-radius-soft-xs: 6px;--sprout-common-nested-border-radius-soft-s: 4px;--sprout-common-nested-border-radius-cushiony-xs: 14px;--sprout-common-nested-border-radius-cushiony-s: 12px;--sprout-common-nested-border-radius-cushiony-m: 8px;--sprout-common-twice-nested-border-radius-soft-s-xs: 2px;--sprout-common-twice-nested-border-radius-cushiony-s-xs: 10px;--sprout-common-twice-nested-border-radius-cushiony-m-s: 4px;--sprout-common-scale-roundness: 1}[data-qlik-appearance=qlik-dark]{--sprout-common-border-default: 1px solid rgb(100% 100% 100% / .15);--sprout-common-border-weak: 1px solid rgb(100% 100% 100% / .1);--sprout-common-border-moderate: 1px solid rgb(100% 100% 100% / .3);--sprout-common-border-strong: 1px solid rgb(100% 100% 100% / .42);--sprout-common-border-extra-strong: 1px solid rgb(100% 100% 100% / .55);--sprout-common-divider-default: 1px solid #808080;--sprout-common-divider-subtle: 1px dashed #808080;--sprout-common-divider-subtle-weak: 1px dashed rgb(41.137% 41.137% 41.137%);--sprout-common-divider-weak: 1px solid rgb(41.137% 41.137% 41.137%);--sprout-common-divider-moderate: 1px solid rgb(65.137% 65.137% 65.137%);--sprout-common-divider-strong: 1px solid rgb(72.608% 72.608% 72.608%);--sprout-common-divider-extra-strong: 2px solid rgb(82.569% 82.569% 82.569%);--sprout-inverse-border-default: 1px solid var(--sprout-common-background-color-default);--sprout-inverse-border-weak: 1px solid rgb(20% 20% 20% / .3);--sprout-focus-border-default: 2px solid #5daef1;--sprout-selected-border-default: 2px solid #4ec574}[data-qlik-appearance=qlik-light]{--sprout-common-border-default: 1px solid rgb(0% 0% 0% / .15);--sprout-common-border-weak: 1px solid rgb(0% 0% 0% / .1);--sprout-common-border-moderate: 1px solid rgb(0% 0% 0% / .3);--sprout-common-border-strong: 1px solid rgb(0% 0% 0% / .42);--sprout-common-border-extra-strong: 1px solid rgb(0% 0% 0% / .55);--sprout-common-divider-default: 1px solid #d9d9d9;--sprout-common-divider-subtle: 1px dashed #d9d9d9;--sprout-common-divider-subtle-weak: 1px dashed rgb(89.569% 89.569% 89.569%);--sprout-common-divider-weak: 1px solid rgb(89.569% 89.569% 89.569%);--sprout-common-divider-moderate: 1px solid rgb(67.098% 67.098% 67.098%);--sprout-common-divider-strong: 1px solid rgb(58.098% 58.098% 58.098%);--sprout-common-divider-extra-strong: 2px solid rgb(46.098% 46.098% 46.098%);--sprout-inverse-border-default: 1px solid var(--sprout-common-background-color-default);--sprout-inverse-border-weak: 1px solid rgb(100% 100% 100% / .3);--sprout-focus-border-default: 2px solid #005db9;--sprout-selected-border-default: 2px solid #00873d}[data-qlik-typography=inter]{--sprout-heading-font-xs: 600 12px/130% Inter;--sprout-heading-font-s: 600 16px/130% Inter;--sprout-heading-font-m: 600 20px/130% Inter;--sprout-heading-font-l: 600 24px/130% Inter;--sprout-heading-font-xl: 600 32px/130% Inter;--sprout-heading-font-xxl: 600 40px/130% Inter;--sprout-body-font-xs: 400 12px/150% Inter;--sprout-body-font-s: 400 14px/150% Inter;--sprout-body-font-m: 400 16px/150% Inter;--sprout-body-font-l: 400 20px/150% Inter;--sprout-body-font-xl: 400 24px/150% Inter;--sprout-body-font-xxl: 400 28px/150% Inter;--sprout-label-font-xs: 400 12px/16px Inter;--sprout-label-font-xs-emphasized: 600 12px/16px Inter;--sprout-label-font-s: 400 14px/16px Inter;--sprout-label-font-s-emphasized: 600 14px/16px Inter;--sprout-label-font-m: 400 16px/20px Inter;--sprout-label-font-m-emphasized: 600 16px/20px Inter;--sprout-label-font-l: 400 20px/24px Inter;--sprout-label-font-l-emphasized: 600 20px/24px Inter;--sprout-script-font-m: 400 16px/150% Source Code Pro;--sprout-script-font-s: 400 14px/150% Source Code Pro;--sprout-script-font-m-emphasized: 600 16px/150% Source Code Pro;--sprout-script-font-s-emphasized: 600 14px/150% Source Code Pro;--sprout-data-font-tabular-m: 400 16px/150% Source Code Pro;--sprout-data-font-tabular-s: 400 14px/150% Source Code Pro;--sprout-data-font-tabular-xs: 400 12px/150% Source Code Pro;--sprout-data-font-tabular-m-emphasized: 600 16px/150% Source Code Pro;--sprout-data-font-tabular-s-emphasized: 600 14px/150% Source Code Pro;--sprout-data-font-tabular-xs-emphasized: 600 12px/150% Source Code Pro}[data-qlik-typography=source-sans]{--sprout-heading-font-xs: 600 12px/130% Source Sans Pro;--sprout-heading-font-s: 600 16px/130% Source Sans Pro;--sprout-heading-font-m: 600 20px/130% Source Sans Pro;--sprout-heading-font-l: 600 24px/130% Source Sans Pro;--sprout-heading-font-xl: 600 32px/130% Source Sans Pro;--sprout-heading-font-xxl: 600 40px/130% Source Sans Pro;--sprout-body-font-xs: 400 12px/150% Source Sans Pro;--sprout-body-font-s: 400 14px/150% Source Sans Pro;--sprout-body-font-m: 400 16px/150% Source Sans Pro;--sprout-body-font-l: 400 20px/150% Source Sans Pro;--sprout-body-font-xl: 400 24px/150% Source Sans Pro;--sprout-body-font-xxl: 400 28px/150% Source Sans Pro;--sprout-label-font-xs: 400 12px/16px Source Sans Pro;--sprout-label-font-xs-emphasized: 600 12px/16px Source Sans Pro;--sprout-label-font-s: 400 14px/16px Source Sans Pro;--sprout-label-font-s-emphasized: 600 14px/16px Source Sans Pro;--sprout-label-font-m: 400 16px/20px Source Sans Pro;--sprout-label-font-m-emphasized: 600 16px/20px Source Sans Pro;--sprout-label-font-l: 400 20px/24px Source Sans Pro;--sprout-label-font-l-emphasized: 600 20px/24px Source Sans Pro;--sprout-script-font-m: 400 16px/150% Source Code Pro;--sprout-script-font-s: 400 14px/150% Source Code Pro;--sprout-script-font-m-emphasized: 600 16px/150% Source Code Pro;--sprout-script-font-s-emphasized: 600 14px/150% Source Code Pro;--sprout-data-font-tabular-m: 400 16px/150% Source Code Pro;--sprout-data-font-tabular-s: 400 14px/150% Source Code Pro;--sprout-data-font-tabular-xs: 400 12px/150% Source Code Pro;--sprout-data-font-tabular-m-emphasized: 600 16px/150% Source Code Pro;--sprout-data-font-tabular-s-emphasized: 600 14px/150% Source Code Pro;--sprout-data-font-tabular-xs-emphasized: 600 12px/150% Source Code Pro}[data-qlik-sizing=mid-sized]{--sprout-common-sizing-s: 4px;--sprout-common-sizing-m: 8px;--sprout-common-sizing-l: 12px;--sprout-common-sizing-xl: 16px;--sprout-common-sizing-xxl: 24px;--sprout-common-sizing-3xl: 32px;--sprout-common-sizing-4xl: 40px;--sprout-common-sizing-5xl: 48px;--sprout-common-sizing-6xl: 56px;--sprout-common-sizing-7xl: 64px;--sprout-container-sizing-xxs: 256px;--sprout-container-sizing-xs: 320px;--sprout-container-sizing-s: 400px;--sprout-container-sizing-m: 512px;--sprout-container-sizing-l: 640px;--sprout-container-sizing-xl: 768px;--sprout-container-sizing-xxl: 960px;--sprout-container-sizing-3xl: 1024px;--sprout-container-sizing-4xl: 1280px}[data-qlik-typography=inter]{--sprout-heading-font-xs-font-family: Inter;--sprout-heading-font-xs-font-weight: 600;--sprout-heading-font-xs-line-height: 130%;--sprout-heading-font-xs-font-size: 12px;--sprout-heading-font-xs-letter-spacing: ;--sprout-heading-font-xs-paragraph-spacing: ;--sprout-heading-font-xs-paragraph-indent: ;--sprout-heading-font-xs-text-case: ;--sprout-heading-font-xs-text-decoration: ;--sprout-heading-font-s-font-family: Inter;--sprout-heading-font-s-font-weight: 600;--sprout-heading-font-s-line-height: 130%;--sprout-heading-font-s-font-size: 16px;--sprout-heading-font-s-letter-spacing: ;--sprout-heading-font-s-paragraph-spacing: ;--sprout-heading-font-s-paragraph-indent: ;--sprout-heading-font-s-text-case: ;--sprout-heading-font-s-text-decoration: ;--sprout-heading-font-m-font-family: Inter;--sprout-heading-font-m-font-weight: 600;--sprout-heading-font-m-line-height: 130%;--sprout-heading-font-m-font-size: 20px;--sprout-heading-font-m-letter-spacing: ;--sprout-heading-font-m-paragraph-spacing: ;--sprout-heading-font-m-paragraph-indent: ;--sprout-heading-font-m-text-case: ;--sprout-heading-font-m-text-decoration: ;--sprout-heading-font-l-font-family: Inter;--sprout-heading-font-l-font-weight: 600;--sprout-heading-font-l-line-height: 130%;--sprout-heading-font-l-font-size: 24px;--sprout-heading-font-l-letter-spacing: ;--sprout-heading-font-l-paragraph-spacing: ;--sprout-heading-font-l-paragraph-indent: ;--sprout-heading-font-l-text-case: ;--sprout-heading-font-l-text-decoration: ;--sprout-heading-font-xl-font-family: Inter;--sprout-heading-font-xl-font-weight: 600;--sprout-heading-font-xl-line-height: 130%;--sprout-heading-font-xl-font-size: 32px;--sprout-heading-font-xl-letter-spacing: ;--sprout-heading-font-xl-paragraph-spacing: ;--sprout-heading-font-xl-paragraph-indent: ;--sprout-heading-font-xl-text-case: ;--sprout-heading-font-xl-text-decoration: ;--sprout-heading-font-xxl-font-family: Inter;--sprout-heading-font-xxl-font-weight: 600;--sprout-heading-font-xxl-line-height: 130%;--sprout-heading-font-xxl-font-size: 40px;--sprout-heading-font-xxl-letter-spacing: ;--sprout-heading-font-xxl-paragraph-spacing: ;--sprout-heading-font-xxl-paragraph-indent: ;--sprout-heading-font-xxl-text-case: ;--sprout-heading-font-xxl-text-decoration: ;--sprout-body-font-xs-font-family: Inter;--sprout-body-font-xs-font-weight: 400;--sprout-body-font-xs-line-height: 150%;--sprout-body-font-xs-font-size: 12px;--sprout-body-font-xs-letter-spacing: ;--sprout-body-font-xs-paragraph-spacing: ;--sprout-body-font-xs-paragraph-indent: ;--sprout-body-font-xs-text-case: ;--sprout-body-font-xs-text-decoration: ;--sprout-body-font-s-font-family: Inter;--sprout-body-font-s-font-weight: 400;--sprout-body-font-s-line-height: 150%;--sprout-body-font-s-font-size: 14px;--sprout-body-font-s-letter-spacing: ;--sprout-body-font-s-paragraph-spacing: ;--sprout-body-font-s-paragraph-indent: ;--sprout-body-font-s-text-case: ;--sprout-body-font-s-text-decoration: ;--sprout-body-font-m-font-family: Inter;--sprout-body-font-m-font-weight: 400;--sprout-body-font-m-line-height: 150%;--sprout-body-font-m-font-size: 16px;--sprout-body-font-m-letter-spacing: ;--sprout-body-font-m-paragraph-spacing: ;--sprout-body-font-m-paragraph-indent: ;--sprout-body-font-m-text-case: ;--sprout-body-font-m-text-decoration: ;--sprout-body-font-l-font-family: Inter;--sprout-body-font-l-font-weight: 400;--sprout-body-font-l-line-height: 150%;--sprout-body-font-l-font-size: 20px;--sprout-body-font-l-letter-spacing: ;--sprout-body-font-l-paragraph-spacing: ;--sprout-body-font-l-paragraph-indent: ;--sprout-body-font-l-text-case: ;--sprout-body-font-l-text-decoration: ;--sprout-body-font-xl-font-family: Inter;--sprout-body-font-xl-font-weight: 400;--sprout-body-font-xl-line-height: 150%;--sprout-body-font-xl-font-size: 24px;--sprout-body-font-xl-letter-spacing: ;--sprout-body-font-xl-paragraph-spacing: ;--sprout-body-font-xl-paragraph-indent: ;--sprout-body-font-xl-text-case: ;--sprout-body-font-xl-text-decoration: ;--sprout-body-font-xxl-font-family: Inter;--sprout-body-font-xxl-font-weight: 400;--sprout-body-font-xxl-line-height: 150%;--sprout-body-font-xxl-font-size: 28px;--sprout-body-font-xxl-letter-spacing: ;--sprout-body-font-xxl-paragraph-spacing: ;--sprout-body-font-xxl-paragraph-indent: ;--sprout-body-font-xxl-text-case: ;--sprout-body-font-xxl-text-decoration: ;--sprout-label-font-xs-font-family: Inter;--sprout-label-font-xs-font-weight: 400;--sprout-label-font-xs-line-height: 16px;--sprout-label-font-xs-font-size: 12px;--sprout-label-font-xs-letter-spacing: ;--sprout-label-font-xs-paragraph-spacing: ;--sprout-label-font-xs-paragraph-indent: ;--sprout-label-font-xs-text-case: ;--sprout-label-font-xs-text-decoration: ;--sprout-label-font-xs-emphasized-font-family: Inter;--sprout-label-font-xs-emphasized-font-weight: 600;--sprout-label-font-xs-emphasized-line-height: 16px;--sprout-label-font-xs-emphasized-font-size: 12px;--sprout-label-font-xs-emphasized-letter-spacing: ;--sprout-label-font-xs-emphasized-paragraph-spacing: ;--sprout-label-font-xs-emphasized-paragraph-indent: ;--sprout-label-font-xs-emphasized-text-case: ;--sprout-label-font-xs-emphasized-text-decoration: ;--sprout-label-font-s-font-family: Inter;--sprout-label-font-s-font-weight: 400;--sprout-label-font-s-line-height: 16px;--sprout-label-font-s-font-size: 14px;--sprout-label-font-s-letter-spacing: ;--sprout-label-font-s-paragraph-spacing: ;--sprout-label-font-s-paragraph-indent: ;--sprout-label-font-s-text-case: ;--sprout-label-font-s-text-decoration: ;--sprout-label-font-s-emphasized-font-family: Inter;--sprout-label-font-s-emphasized-font-weight: 600;--sprout-label-font-s-emphasized-line-height: 16px;--sprout-label-font-s-emphasized-font-size: 14px;--sprout-label-font-s-emphasized-letter-spacing: ;--sprout-label-font-s-emphasized-paragraph-spacing: ;--sprout-label-font-s-emphasized-paragraph-indent: ;--sprout-label-font-s-emphasized-text-case: ;--sprout-label-font-s-emphasized-text-decoration: ;--sprout-label-font-m-font-family: Inter;--sprout-label-font-m-font-weight: 400;--sprout-label-font-m-line-height: 20px;--sprout-label-font-m-font-size: 16px;--sprout-label-font-m-letter-spacing: ;--sprout-label-font-m-paragraph-spacing: ;--sprout-label-font-m-paragraph-indent: ;--sprout-label-font-m-text-case: ;--sprout-label-font-m-text-decoration: ;--sprout-label-font-m-emphasized-font-family: Inter;--sprout-label-font-m-emphasized-font-weight: 600;--sprout-label-font-m-emphasized-line-height: 20px;--sprout-label-font-m-emphasized-font-size: 16px;--sprout-label-font-m-emphasized-letter-spacing: ;--sprout-label-font-m-emphasized-paragraph-spacing: ;--sprout-label-font-m-emphasized-paragraph-indent: ;--sprout-label-font-m-emphasized-text-case: ;--sprout-label-font-m-emphasized-text-decoration: ;--sprout-label-font-l-font-family: Inter;--sprout-label-font-l-font-weight: 400;--sprout-label-font-l-line-height: 24px;--sprout-label-font-l-font-size: 20px;--sprout-label-font-l-letter-spacing: ;--sprout-label-font-l-paragraph-spacing: ;--sprout-label-font-l-paragraph-indent: ;--sprout-label-font-l-text-case: ;--sprout-label-font-l-text-decoration: ;--sprout-label-font-l-emphasized-font-family: Inter;--sprout-label-font-l-emphasized-font-weight: 600;--sprout-label-font-l-emphasized-line-height: 24px;--sprout-label-font-l-emphasized-font-size: 20px;--sprout-label-font-l-emphasized-letter-spacing: ;--sprout-label-font-l-emphasized-paragraph-spacing: ;--sprout-label-font-l-emphasized-paragraph-indent: ;--sprout-label-font-l-emphasized-text-case: ;--sprout-label-font-l-emphasized-text-decoration: ;--sprout-script-font-m-font-family: Source Code Pro;--sprout-script-font-m-font-weight: 400;--sprout-script-font-m-line-height: 150%;--sprout-script-font-m-font-size: 16px;--sprout-script-font-m-letter-spacing: ;--sprout-script-font-m-paragraph-spacing: ;--sprout-script-font-m-paragraph-indent: ;--sprout-script-font-m-text-case: ;--sprout-script-font-m-text-decoration: ;--sprout-script-font-s-font-family: Source Code Pro;--sprout-script-font-s-font-weight: 400;--sprout-script-font-s-line-height: 150%;--sprout-script-font-s-font-size: 14px;--sprout-script-font-s-letter-spacing: ;--sprout-script-font-s-paragraph-spacing: ;--sprout-script-font-s-paragraph-indent: ;--sprout-script-font-s-text-case: ;--sprout-script-font-s-text-decoration: ;--sprout-script-font-m-emphasized-font-family: Source Code Pro;--sprout-script-font-m-emphasized-font-weight: 600;--sprout-script-font-m-emphasized-line-height: 150%;--sprout-script-font-m-emphasized-font-size: 16px;--sprout-script-font-m-emphasized-letter-spacing: ;--sprout-script-font-m-emphasized-paragraph-spacing: ;--sprout-script-font-m-emphasized-paragraph-indent: ;--sprout-script-font-m-emphasized-text-case: ;--sprout-script-font-m-emphasized-text-decoration: ;--sprout-script-font-s-emphasized-font-family: Source Code Pro;--sprout-script-font-s-emphasized-font-weight: 600;--sprout-script-font-s-emphasized-line-height: 150%;--sprout-script-font-s-emphasized-font-size: 14px;--sprout-script-font-s-emphasized-letter-spacing: ;--sprout-script-font-s-emphasized-paragraph-spacing: ;--sprout-script-font-s-emphasized-paragraph-indent: ;--sprout-script-font-s-emphasized-text-case: ;--sprout-script-font-s-emphasized-text-decoration: ;--sprout-common-scale-font-size: 1;--sprout-data-font-tabular-m-font-family: Source Code Pro;--sprout-data-font-tabular-m-font-weight: 400;--sprout-data-font-tabular-m-line-height: 150%;--sprout-data-font-tabular-m-font-size: 16px;--sprout-data-font-tabular-m-letter-spacing: ;--sprout-data-font-tabular-m-paragraph-spacing: ;--sprout-data-font-tabular-m-paragraph-indent: ;--sprout-data-font-tabular-m-text-case: ;--sprout-data-font-tabular-m-text-decoration: ;--sprout-data-font-tabular-s-font-family: Source Code Pro;--sprout-data-font-tabular-s-font-weight: 400;--sprout-data-font-tabular-s-line-height: 150%;--sprout-data-font-tabular-s-font-size: 14px;--sprout-data-font-tabular-s-letter-spacing: ;--sprout-data-font-tabular-s-paragraph-spacing: ;--sprout-data-font-tabular-s-paragraph-indent: ;--sprout-data-font-tabular-s-text-case: ;--sprout-data-font-tabular-s-text-decoration: ;--sprout-data-font-tabular-xs-font-family: Source Code Pro;--sprout-data-font-tabular-xs-font-weight: 400;--sprout-data-font-tabular-xs-line-height: 150%;--sprout-data-font-tabular-xs-font-size: 12px;--sprout-data-font-tabular-xs-letter-spacing: ;--sprout-data-font-tabular-xs-paragraph-spacing: ;--sprout-data-font-tabular-xs-paragraph-indent: ;--sprout-data-font-tabular-xs-text-case: ;--sprout-data-font-tabular-xs-text-decoration: ;--sprout-data-font-tabular-m-emphasized-font-family: Source Code Pro;--sprout-data-font-tabular-m-emphasized-font-weight: 600;--sprout-data-font-tabular-m-emphasized-line-height: 150%;--sprout-data-font-tabular-m-emphasized-font-size: 16px;--sprout-data-font-tabular-m-emphasized-letter-spacing: ;--sprout-data-font-tabular-m-emphasized-paragraph-spacing: ;--sprout-data-font-tabular-m-emphasized-paragraph-indent: ;--sprout-data-font-tabular-m-emphasized-text-case: ;--sprout-data-font-tabular-m-emphasized-text-decoration: ;--sprout-data-font-tabular-s-emphasized-font-family: Source Code Pro;--sprout-data-font-tabular-s-emphasized-font-weight: 600;--sprout-data-font-tabular-s-emphasized-line-height: 150%;--sprout-data-font-tabular-s-emphasized-font-size: 14px;--sprout-data-font-tabular-s-emphasized-letter-spacing: ;--sprout-data-font-tabular-s-emphasized-paragraph-spacing: ;--sprout-data-font-tabular-s-emphasized-paragraph-indent: ;--sprout-data-font-tabular-s-emphasized-text-case: ;--sprout-data-font-tabular-s-emphasized-text-decoration: ;--sprout-data-font-tabular-xs-emphasized-font-family: Source Code Pro;--sprout-data-font-tabular-xs-emphasized-font-weight: 600;--sprout-data-font-tabular-xs-emphasized-line-height: 150%;--sprout-data-font-tabular-xs-emphasized-font-size: 12px;--sprout-data-font-tabular-xs-emphasized-letter-spacing: ;--sprout-data-font-tabular-xs-emphasized-paragraph-spacing: ;--sprout-data-font-tabular-xs-emphasized-paragraph-indent: ;--sprout-data-font-tabular-xs-emphasized-text-case: ;--sprout-data-font-tabular-xs-emphasized-text-decoration: }[data-qlik-typography=source-sans]{--sprout-heading-font-xs-font-family: Source Sans Pro;--sprout-heading-font-xs-font-weight: 600;--sprout-heading-font-xs-line-height: 130%;--sprout-heading-font-xs-font-size: 12px;--sprout-heading-font-xs-letter-spacing: ;--sprout-heading-font-xs-paragraph-spacing: ;--sprout-heading-font-xs-paragraph-indent: ;--sprout-heading-font-xs-text-case: ;--sprout-heading-font-xs-text-decoration: ;--sprout-heading-font-s-font-family: Source Sans Pro;--sprout-heading-font-s-font-weight: 600;--sprout-heading-font-s-line-height: 130%;--sprout-heading-font-s-font-size: 16px;--sprout-heading-font-s-letter-spacing: ;--sprout-heading-font-s-paragraph-spacing: ;--sprout-heading-font-s-paragraph-indent: ;--sprout-heading-font-s-text-case: ;--sprout-heading-font-s-text-decoration: ;--sprout-heading-font-m-font-family: Source Sans Pro;--sprout-heading-font-m-font-weight: 600;--sprout-heading-font-m-line-height: 130%;--sprout-heading-font-m-font-size: 20px;--sprout-heading-font-m-letter-spacing: ;--sprout-heading-font-m-paragraph-spacing: ;--sprout-heading-font-m-paragraph-indent: ;--sprout-heading-font-m-text-case: ;--sprout-heading-font-m-text-decoration: ;--sprout-heading-font-l-font-family: Source Sans Pro;--sprout-heading-font-l-font-weight: 600;--sprout-heading-font-l-line-height: 130%;--sprout-heading-font-l-font-size: 24px;--sprout-heading-font-l-letter-spacing: ;--sprout-heading-font-l-paragraph-spacing: ;--sprout-heading-font-l-paragraph-indent: ;--sprout-heading-font-l-text-case: ;--sprout-heading-font-l-text-decoration: ;--sprout-heading-font-xl-font-family: Source Sans Pro;--sprout-heading-font-xl-font-weight: 600;--sprout-heading-font-xl-line-height: 130%;--sprout-heading-font-xl-font-size: 32px;--sprout-heading-font-xl-letter-spacing: ;--sprout-heading-font-xl-paragraph-spacing: ;--sprout-heading-font-xl-paragraph-indent: ;--sprout-heading-font-xl-text-case: ;--sprout-heading-font-xl-text-decoration: ;--sprout-heading-font-xxl-font-family: Source Sans Pro;--sprout-heading-font-xxl-font-weight: 600;--sprout-heading-font-xxl-line-height: 130%;--sprout-heading-font-xxl-font-size: 40px;--sprout-heading-font-xxl-letter-spacing: ;--sprout-heading-font-xxl-paragraph-spacing: ;--sprout-heading-font-xxl-paragraph-indent: ;--sprout-heading-font-xxl-text-case: ;--sprout-heading-font-xxl-text-decoration: ;--sprout-body-font-xs-font-family: Source Sans Pro;--sprout-body-font-xs-font-weight: 400;--sprout-body-font-xs-line-height: 150%;--sprout-body-font-xs-font-size: 12px;--sprout-body-font-xs-letter-spacing: ;--sprout-body-font-xs-paragraph-spacing: ;--sprout-body-font-xs-paragraph-indent: ;--sprout-body-font-xs-text-case: ;--sprout-body-font-xs-text-decoration: ;--sprout-body-font-s-font-family: Source Sans Pro;--sprout-body-font-s-font-weight: 400;--sprout-body-font-s-line-height: 150%;--sprout-body-font-s-font-size: 14px;--sprout-body-font-s-letter-spacing: ;--sprout-body-font-s-paragraph-spacing: ;--sprout-body-font-s-paragraph-indent: ;--sprout-body-font-s-text-case: ;--sprout-body-font-s-text-decoration: ;--sprout-body-font-m-font-family: Source Sans Pro;--sprout-body-font-m-font-weight: 400;--sprout-body-font-m-line-height: 150%;--sprout-body-font-m-font-size: 16px;--sprout-body-font-m-letter-spacing: ;--sprout-body-font-m-paragraph-spacing: ;--sprout-body-font-m-paragraph-indent: ;--sprout-body-font-m-text-case: ;--sprout-body-font-m-text-decoration: ;--sprout-body-font-l-font-family: Source Sans Pro;--sprout-body-font-l-font-weight: 400;--sprout-body-font-l-line-height: 150%;--sprout-body-font-l-font-size: 20px;--sprout-body-font-l-letter-spacing: ;--sprout-body-font-l-paragraph-spacing: ;--sprout-body-font-l-paragraph-indent: ;--sprout-body-font-l-text-case: ;--sprout-body-font-l-text-decoration: ;--sprout-body-font-xl-font-family: Source Sans Pro;--sprout-body-font-xl-font-weight: 400;--sprout-body-font-xl-line-height: 150%;--sprout-body-font-xl-font-size: 24px;--sprout-body-font-xl-letter-spacing: ;--sprout-body-font-xl-paragraph-spacing: ;--sprout-body-font-xl-paragraph-indent: ;--sprout-body-font-xl-text-case: ;--sprout-body-font-xl-text-decoration: ;--sprout-body-font-xxl-font-family: Source Sans Pro;--sprout-body-font-xxl-font-weight: 400;--sprout-body-font-xxl-line-height: 150%;--sprout-body-font-xxl-font-size: 28px;--sprout-body-font-xxl-letter-spacing: ;--sprout-body-font-xxl-paragraph-spacing: ;--sprout-body-font-xxl-paragraph-indent: ;--sprout-body-font-xxl-text-case: ;--sprout-body-font-xxl-text-decoration: ;--sprout-label-font-xs-font-family: Source Sans Pro;--sprout-label-font-xs-font-weight: 400;--sprout-label-font-xs-line-height: 16px;--sprout-label-font-xs-font-size: 12px;--sprout-label-font-xs-letter-spacing: ;--sprout-label-font-xs-paragraph-spacing: ;--sprout-label-font-xs-paragraph-indent: ;--sprout-label-font-xs-text-case: ;--sprout-label-font-xs-text-decoration: ;--sprout-label-font-xs-emphasized-font-family: Source Sans Pro;--sprout-label-font-xs-emphasized-font-weight: 600;--sprout-label-font-xs-emphasized-line-height: 16px;--sprout-label-font-xs-emphasized-font-size: 12px;--sprout-label-font-xs-emphasized-letter-spacing: ;--sprout-label-font-xs-emphasized-paragraph-spacing: ;--sprout-label-font-xs-emphasized-paragraph-indent: ;--sprout-label-font-xs-emphasized-text-case: ;--sprout-label-font-xs-emphasized-text-decoration: ;--sprout-label-font-s-font-family: Source Sans Pro;--sprout-label-font-s-font-weight: 400;--sprout-label-font-s-line-height: 16px;--sprout-label-font-s-font-size: 14px;--sprout-label-font-s-letter-spacing: ;--sprout-label-font-s-paragraph-spacing: ;--sprout-label-font-s-paragraph-indent: ;--sprout-label-font-s-text-case: ;--sprout-label-font-s-text-decoration: ;--sprout-label-font-s-emphasized-font-family: Source Sans Pro;--sprout-label-font-s-emphasized-font-weight: 600;--sprout-label-font-s-emphasized-line-height: 16px;--sprout-label-font-s-emphasized-font-size: 14px;--sprout-label-font-s-emphasized-letter-spacing: ;--sprout-label-font-s-emphasized-paragraph-spacing: ;--sprout-label-font-s-emphasized-paragraph-indent: ;--sprout-label-font-s-emphasized-text-case: ;--sprout-label-font-s-emphasized-text-decoration: ;--sprout-label-font-m-font-family: Source Sans Pro;--sprout-label-font-m-font-weight: 400;--sprout-label-font-m-line-height: 20px;--sprout-label-font-m-font-size: 16px;--sprout-label-font-m-letter-spacing: ;--sprout-label-font-m-paragraph-spacing: ;--sprout-label-font-m-paragraph-indent: ;--sprout-label-font-m-text-case: ;--sprout-label-font-m-text-decoration: ;--sprout-label-font-m-emphasized-font-family: Source Sans Pro;--sprout-label-font-m-emphasized-font-weight: 600;--sprout-label-font-m-emphasized-line-height: 20px;--sprout-label-font-m-emphasized-font-size: 16px;--sprout-label-font-m-emphasized-letter-spacing: ;--sprout-label-font-m-emphasized-paragraph-spacing: ;--sprout-label-font-m-emphasized-paragraph-indent: ;--sprout-label-font-m-emphasized-text-case: ;--sprout-label-font-m-emphasized-text-decoration: ;--sprout-label-font-l-font-family: Source Sans Pro;--sprout-label-font-l-font-weight: 400;--sprout-label-font-l-line-height: 24px;--sprout-label-font-l-font-size: 20px;--sprout-label-font-l-letter-spacing: ;--sprout-label-font-l-paragraph-spacing: ;--sprout-label-font-l-paragraph-indent: ;--sprout-label-font-l-text-case: ;--sprout-label-font-l-text-decoration: ;--sprout-label-font-l-emphasized-font-family: Source Sans Pro;--sprout-label-font-l-emphasized-font-weight: 600;--sprout-label-font-l-emphasized-line-height: 24px;--sprout-label-font-l-emphasized-font-size: 20px;--sprout-label-font-l-emphasized-letter-spacing: ;--sprout-label-font-l-emphasized-paragraph-spacing: ;--sprout-label-font-l-emphasized-paragraph-indent: ;--sprout-label-font-l-emphasized-text-case: ;--sprout-label-font-l-emphasized-text-decoration: ;--sprout-script-font-m-font-family: Source Code Pro;--sprout-script-font-m-font-weight: 400;--sprout-script-font-m-line-height: 150%;--sprout-script-font-m-font-size: 16px;--sprout-script-font-m-letter-spacing: ;--sprout-script-font-m-paragraph-spacing: ;--sprout-script-font-m-paragraph-indent: ;--sprout-script-font-m-text-case: ;--sprout-script-font-m-text-decoration: ;--sprout-script-font-s-font-family: Source Code Pro;--sprout-script-font-s-font-weight: 400;--sprout-script-font-s-line-height: 150%;--sprout-script-font-s-font-size: 14px;--sprout-script-font-s-letter-spacing: ;--sprout-script-font-s-paragraph-spacing: ;--sprout-script-font-s-paragraph-indent: ;--sprout-script-font-s-text-case: ;--sprout-script-font-s-text-decoration: ;--sprout-script-font-m-emphasized-font-family: Source Code Pro;--sprout-script-font-m-emphasized-font-weight: 600;--sprout-script-font-m-emphasized-line-height: 150%;--sprout-script-font-m-emphasized-font-size: 16px;--sprout-script-font-m-emphasized-letter-spacing: ;--sprout-script-font-m-emphasized-paragraph-spacing: ;--sprout-script-font-m-emphasized-paragraph-indent: ;--sprout-script-font-m-emphasized-text-case: ;--sprout-script-font-m-emphasized-text-decoration: ;--sprout-script-font-s-emphasized-font-family: Source Code Pro;--sprout-script-font-s-emphasized-font-weight: 600;--sprout-script-font-s-emphasized-line-height: 150%;--sprout-script-font-s-emphasized-font-size: 14px;--sprout-script-font-s-emphasized-letter-spacing: ;--sprout-script-font-s-emphasized-paragraph-spacing: ;--sprout-script-font-s-emphasized-paragraph-indent: ;--sprout-script-font-s-emphasized-text-case: ;--sprout-script-font-s-emphasized-text-decoration: ;--sprout-common-scale-font-size: 1;--sprout-data-font-tabular-m-font-family: Source Code Pro;--sprout-data-font-tabular-m-font-weight: 400;--sprout-data-font-tabular-m-line-height: 150%;--sprout-data-font-tabular-m-font-size: 16px;--sprout-data-font-tabular-m-letter-spacing: ;--sprout-data-font-tabular-m-paragraph-spacing: ;--sprout-data-font-tabular-m-paragraph-indent: ;--sprout-data-font-tabular-m-text-case: ;--sprout-data-font-tabular-m-text-decoration: ;--sprout-data-font-tabular-s-font-family: Source Code Pro;--sprout-data-font-tabular-s-font-weight: 400;--sprout-data-font-tabular-s-line-height: 150%;--sprout-data-font-tabular-s-font-size: 14px;--sprout-data-font-tabular-s-letter-spacing: ;--sprout-data-font-tabular-s-paragraph-spacing: ;--sprout-data-font-tabular-s-paragraph-indent: ;--sprout-data-font-tabular-s-text-case: ;--sprout-data-font-tabular-s-text-decoration: ;--sprout-data-font-tabular-xs-font-family: Source Code Pro;--sprout-data-font-tabular-xs-font-weight: 400;--sprout-data-font-tabular-xs-line-height: 150%;--sprout-data-font-tabular-xs-font-size: 12px;--sprout-data-font-tabular-xs-letter-spacing: ;--sprout-data-font-tabular-xs-paragraph-spacing: ;--sprout-data-font-tabular-xs-paragraph-indent: ;--sprout-data-font-tabular-xs-text-case: ;--sprout-data-font-tabular-xs-text-decoration: ;--sprout-data-font-tabular-m-emphasized-font-family: Source Code Pro;--sprout-data-font-tabular-m-emphasized-font-weight: 600;--sprout-data-font-tabular-m-emphasized-line-height: 150%;--sprout-data-font-tabular-m-emphasized-font-size: 16px;--sprout-data-font-tabular-m-emphasized-letter-spacing: ;--sprout-data-font-tabular-m-emphasized-paragraph-spacing: ;--sprout-data-font-tabular-m-emphasized-paragraph-indent: ;--sprout-data-font-tabular-m-emphasized-text-case: ;--sprout-data-font-tabular-m-emphasized-text-decoration: ;--sprout-data-font-tabular-s-emphasized-font-family: Source Code Pro;--sprout-data-font-tabular-s-emphasized-font-weight: 600;--sprout-data-font-tabular-s-emphasized-line-height: 150%;--sprout-data-font-tabular-s-emphasized-font-size: 14px;--sprout-data-font-tabular-s-emphasized-letter-spacing: ;--sprout-data-font-tabular-s-emphasized-paragraph-spacing: ;--sprout-data-font-tabular-s-emphasized-paragraph-indent: ;--sprout-data-font-tabular-s-emphasized-text-case: ;--sprout-data-font-tabular-s-emphasized-text-decoration: ;--sprout-data-font-tabular-xs-emphasized-font-family: Source Code Pro;--sprout-data-font-tabular-xs-emphasized-font-weight: 600;--sprout-data-font-tabular-xs-emphasized-line-height: 150%;--sprout-data-font-tabular-xs-emphasized-font-size: 12px;--sprout-data-font-tabular-xs-emphasized-letter-spacing: ;--sprout-data-font-tabular-xs-emphasized-paragraph-spacing: ;--sprout-data-font-tabular-xs-emphasized-paragraph-indent: ;--sprout-data-font-tabular-xs-emphasized-text-case: ;--sprout-data-font-tabular-xs-emphasized-text-decoration: }")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const Mh="qlik-light",Ah="comfortable",Lh="soft",Ih="mid-sized",Ph="source-sans";function Th(e,t){var n,r;return(null==(r=null==(n=e.parentElement)?void 0:n.closest(`[data-qlik-${t}]`))?void 0:r.getAttribute(`data-qlik-${t}`))||void 0}const Dh=F.createContext({});const Oh=F.forwardRef(((e,t)=>{const[n,r]=F.useState(null),{theme:o,asDiv:i,onLoad:a,children:s,...l}=e,u=F.useContext(Dh),c=function(e,t){let n={};const r=!!t&&-1!==t.indexOf("dark");let o;return e&&(n={theme:Th(e,"theme"),appearance:Th(e,"appearance"),density:Th(e,"density"),roundness:Th(e,"roundness"),sizing:Th(e,"sizing"),typography:Th(e,"typography")}),o=t?r?"qlik-dark":"qlik-light":n.appearance||Mh,{theme:t||n.theme||"qlik-light",appearance:o,density:n.density||Ah,roundness:n.roundness||Lh,sizing:n.sizing||Ih,typography:n.typography||Ph}}(n||void 0,o),d={...c,theme:o||u.theme||c.theme},p=function(e){return Object.keys(e).reduce(((t,n)=>(t[`data-qlik-${n}`]=e[n],t)),{})}(d);return F.useEffect((()=>{a&&a(function(e){return{qlikTheme:e.theme,qlikAppearance:e.appearance,qlikDensity:e.density,qlikRoundness:e.roundness,qlikSizing:e.sizing,qlikTypography:e.typography}}(d))}),[d]),i?ae.jsx(Dh.Provider,{value:d,children:ae.jsx("div",{...p,...l,ref:e=>{r(e),t&&("function"==typeof t?t(e):t.current=e)},children:s})}):ae.jsx(Dh.Provider,{value:d,children:s})}));Oh.displayName="ThemeProvider";function zh(e){return e.querySelectorAll('a[href], button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), [tabindex]:not([tabindex="-1"])')}const Nh=F.createContext(void 0);function qh(e){const t=eh(),n=function(){const e=Kf(),t=eh(),n=Zf();return Ut((()=>{if(!e)return;const r={id:e,parentId:n};return null==t||t.addNode(r),()=>{null==t||t.removeNode(r)}}),[t,e,n]),e}(),r=Zf(),o=F.useMemo((()=>({nodeId:n||"invalid",parentId:r,closeAll:()=>{null!=e&&e.tree&&(null==t||t.events.emit("closeallfloating",{nodeId:n,parentId:r}))}})),[n,r]);return F.useEffect((()=>{if(null!=e&&e.tree)return null!=e&&e.onCloseAll&&(null==t||t.events.on("closeallfloating",e.onCloseAll)),()=>{null!=e&&e.onCloseAll&&(null==t||t.events.off("closeallfloating",e.onCloseAll))}}),[null==e?void 0:e.onCloseAll,null==e?void 0:e.tree,t]),null!=e&&e.tree&&null===r&&(o.Provider=Nh.Provider),o}function jh(e,t){switch(e){case"reference":return`${t}px`;case"xxs":return"var(--sprout-container-sizing-xxs)";case"xs":return"var(--sprout-container-sizing-xs)";case"s":return"var(--sprout-container-sizing-s)";case"m":return"var(--sprout-container-sizing-m)";case"l":return"var(--sprout-container-sizing-l)";case"xl":return"var(--sprout-container-sizing-xl)";default:return e}}const Fh={default:{mainAxis:!0,crossAxis:!0,fallbackAxisSideDirection:"end",flipAlignment:!0,padding:4},dropdown:{mainAxis:!0,crossAxis:!0,fallbackAxisSideDirection:"none",flipAlignment:!0,padding:4}};function Bh(e,t){return Object.keys(e).reduce(((n,r)=>(r.startsWith("on")?n[r]=(...n)=>{e[r]&&"function"==typeof e[r]&&e[r](...n),t[r]&&t[r](...n)}:t[r]&&(n[r]=t[r]),n)),{...t})}const $h=F.forwardRef((({id:e,className:t,children:n,anchorEl:r,anchorPosition:o,content:i,initialOpen:a,placement:s="bottom-start",placementUpdate:l,trigger:u,arrowProps:c,forceMount:d,onMount:p,width:f,minHeight:h,minWidth:m,maxWidth:g,viewportPadding:b=0,open:y,onOpenChange:v,offsetCross:x,offsetMain:_,"data-testid":w,tree:S,...C},E)=>{const k=H(e),R=u||"click",M=F.useRef(null),A=F.useMemo((()=>!r&&o?{isConnected:!0,getBoundingClientRect:()=>({width:0,height:0,x:o.left,y:o.top-4,top:o.top-4,right:o.left,bottom:o.top-4,left:o.left})}:r),[r,o]),L=_||("hover"===u?6:0)+4,I=F.useMemo((()=>{const e=[(t={mainAxis:L,crossAxis:x||0},{...If(t),options:[t,n]})];var t,n;return e.push(((e,t)=>({...Tf(e),options:[e,t]}))({apply({rects:e,elements:t,availableHeight:n}){const r=h||0;Object.assign(t.floating.style,{maxHeight:`${Math.floor(Math.max(r,n-b))}px`,width:jh(f,e.reference.width),minWidth:jh(m,e.reference.width),maxWidth:jh(g,e.reference.width)})}})),l&&e.push(((e,t)=>({...Pf(e),options:[e,t]}))(Fh[!0===l?"default":l])),c&&e.push(((e,t)=>({...Bf(e),options:[e,t]}))({element:M})),e}),[x,_,s,l,f,m,g]),P=W({open:y,onOpenChange:v,initialOpen:null!=a&&a},{defaultValueKey:"initialOpen",valueKey:"open",onChangeKey:"onOpenChange",selector:e=>e}),T=qh({tree:S,onCloseAll:()=>P.onChange(!1)}),D=_h({nodeId:T.nodeId,placement:s,open:!!P.value,onOpenChange:(e,t,n)=>{let r;"outside-press"===n?r="click-outside":"escape-key"===n&&(r="keypress-escape"),P.onChange(e,r)},elements:{reference:A},middleware:I});F.useEffect((()=>{if(P.value&&D.elements.reference&&D.elements.floating){return Lf(D.elements.reference,D.elements.floating,D.update)}}),[P.value,D.elements,D.update]);const O=function(e){const t=F.useRef(null);return F.useEffect((()=>{if(!e.active)return;const n=n=>{if(t.current){if("Tab"===n.key){const e=zh(t.current),r=n.shiftKey?0:e.length-1,o=n.shiftKey?e.length-1:0;e.length>0&&document.activeElement===e[r]&&(e[o].focus(),n.preventDefault()),0===e.length&&n.preventDefault()}"Escape"!==n.key||e.preventEscaping||e.onClose&&e.onClose("escape")}};return document.addEventListener("keydown",n),()=>{var t;document.removeEventListener("keydown",n),e.trigger&&(null===(t=e.trigger.current)||void 0===t||t.focus())}}),[e.active,e.open]),F.useCallback((n=>{if(t.current=n,e.active&&e.open&&n){const e=zh(n);e.length>0?e[0].focus():-1!==n.tabIndex&&n.focus()}}),[e.active,e.open])}({active:"dialog"===C.role,open:!!P.value,onClose:e=>{P.onChange(!1,e)},trigger:D.refs.reference});F.useEffect((()=>{if(P.value&&A){(null==A?void 0:A.isConnected)||!1?A&&(D.refs.setReference(A),D.update()):(D.refs.setReference(null),P.onChange(!1),null==v||v(!1))}}),[P.value,A,D]);const z=gh(D.context,{enabled:null==P.value&&"click"===R}),N=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:p=!0}=t,f=eh(),h=Zf(),m=Yt(u),g=Yt(l),b=Yt(n),y=Yt(d),v=F.useRef(),x=F.useRef(-1),_=F.useRef(),w=F.useRef(-1),S=F.useRef(!0),C=F.useRef(!1),E=F.useRef((()=>{})),k=F.useRef(!1),R=Xt((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}));F.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(rh(x),rh(w),S.current=!0,k.current=!1)}}),[s,i]),F.useEffect((()=>{if(!s)return;if(!m.current)return;if(!n)return;function e(e){R()&&r(!1,e,"hover")}const t=Wt(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,m,R]);const M=F.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=ih(g.current,"close",v.current);o&&!_.current?(rh(x),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(rh(x),r(!1,e,n))}),[g,r]),A=Xt((()=>{E.current(),_.current=void 0})),L=Xt((()=>{if(C.current){const e=Wt(a.floating).body;e.style.pointerEvents="",e.removeAttribute(oh),C.current=!1}})),I=Xt((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));F.useEffect((()=>{if(s&&Re(a.domReference)){const r=a.domReference,o=a.floating;return n&&r.addEventListener("mouseleave",i),p&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",l),o.addEventListener("mouseleave",u)),()=>{n&&r.removeEventListener("mouseleave",i),p&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",l),o.removeEventListener("mouseleave",u))}}function e(e){if(rh(x),S.current=!1,c&&!Vt(v.current)||ah(y.current)>0&&!ih(g.current,"open"))return;const t=ih(g.current,"open",v.current);t?x.current=window.setTimeout((()=>{b.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function t(e){if(I())return void L();E.current();const t=Wt(a.floating);if(rh(w),k.current=!1,m.current&&o.current.floatingContext){n||rh(x),_.current=m.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){L(),A(),I()||M(e,!0,"safe-polygon")}});const r=_.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==v.current||!Ft(a.floating,e.relatedTarget))&&M(e)}function i(e){I()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){L(),A(),I()||M(e)}})(e))}function l(){rh(x)}function u(e){I()||M(e,!1)}}),[a,s,e,c,p,M,A,L,r,n,b,f,g,m,o,I,y]),Ut((()=>{var e;if(s&&n&&null!=(e=m.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&R()){C.current=!0;const e=a.floating;if(Re(a.domReference)&&e){var t;const n=Wt(a.floating).body;n.setAttribute(oh,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,h,a,f,m,R]),Ut((()=>{n||(v.current=void 0,k.current=!1,A(),L())}),[n,A,L]),F.useEffect((()=>()=>{A(),rh(x),rh(w),L()}),[s,a.domReference,A,L]);const P=F.useMemo((()=>{function e(e){v.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||b.current||r(!0,t,"hover")}c&&!Vt(v.current)||n||0===ah(y.current)||k.current&&e.movementX**2+e.movementY**2<2||(rh(w),"touch"===v.current?o():(k.current=!0,w.current=window.setTimeout(o,ah(y.current))))}}}),[c,r,n,b,y]);return F.useMemo((()=>s?{reference:P}:{}),[s,P])}(D.context,{enabled:null==P.value&&"hover"===R,move:!1,handleClose:Rh()}),q=Sh(D.context),j=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=t,m=eh(),g=Xt("function"==typeof l?l:()=>!1),b="function"==typeof l?g:l,y=F.useRef(!1),{escapeKey:v,outsidePress:x}=vh(f),{escapeKey:_,outsidePress:w}=vh(h),S=F.useRef(!1),C=Xt((e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=m?Gt(m.nodesRef.current,o):[];if(!v&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),E=Xt((e=>{var t;const n=()=>{var t;C(e),null==(t=Bt(e))||t.removeEventListener("keydown",n)};null==(t=Bt(e))||t.addEventListener("keydown",n)})),k=Xt((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const a=y.current;if(y.current=!1,"click"===u&&a)return;if(n)return;if("function"==typeof b&&!b(e))return;const s=Bt(e),l="["+nh("inert")+"]",c=Wt(o.floating).querySelectorAll(l);let d=Re(s)?s:null;for(;d&&!$e(d);){const e=Ge(d);if($e(e)||!Re(e))break;d=e}if(c.length&&Re(s)&&!s.matches("html,body")&&!Ft(s,o.floating)&&Array.from(c).every((e=>!Ft(d,e))))return;if(Me(s)&&A){const t=$e(s),n=We(s),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),a=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,l=i&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,u="rtl"===n.direction,c=l&&(u?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=a&&e.offsetY>s.clientHeight;if(c||d)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=m&&Gt(m.nodesRef.current,p).some((t=>{var n;return $t(e,null==(n=t.context)?void 0:n.elements.floating)}));if($t(e,o.floating)||$t(e,o.domReference)||f)return;const h=m?Gt(m.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),R=Xt((e=>{var t;const n=()=>{var t;k(e),null==(t=Bt(e))||t.removeEventListener(u,n)};null==(t=Bt(e))||t.addEventListener(u,n)}));F.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=v,i.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout((()=>{S.current=!1}),Fe()?5:0)}const d=Wt(o.floating);s&&(d.addEventListener("keydown",_?E:C,_),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",c)),b&&d.addEventListener(u,w?R:k,w);let f=[];return p&&(Re(o.domReference)&&(f=Ue(o.domReference)),Re(o.floating)&&(f=f.concat(Ue(o.floating))),!Re(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(Ue(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",_?E:C,_),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",c)),b&&d.removeEventListener(u,w?R:k,w),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,b,u,n,r,p,a,v,x,C,_,E,k,w,R]),F.useEffect((()=>{i.current.insideReactTree=!1}),[i,b,u]);const M=F.useMemo((()=>({onKeyDown:C,...c&&{[bh[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[C,r,c,d]),A=F.useMemo((()=>({onKeyDown:C,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[yh[u]]:()=>{i.current.insideReactTree=!0}})),[C,u,i]);return F.useMemo((()=>a?{reference:M,floating:A}:{}),[a,M,A])}(D.context,{capture:{escapeKey:!0},ancestorScroll:!0}),B=[];"click"===R?B.push(z):(B.push(N),B.push(q)),B.push(j);const{getReferenceProps:$,getFloatingProps:G}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=F.useCallback((t=>Ch(t,e,"reference")),t),i=F.useCallback((t=>Ch(t,e,"floating")),n),a=F.useCallback((t=>Ch(t,e,"item")),r);return F.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}(B);let V=null;const U=G(),Y=function(e){const t=F.useRef(void 0),n=F.useCallback((t=>{const n=e.map((e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),e);return F.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}([E,D.refs.setFloating,O]);var K;(d||P.value)&&(V=ae.jsx(ph,{children:ae.jsxs(Oh,{asDiv:!0,"data-testid":w||"sprout-floating","data-placement":(null===(K=D.context.middlewareData.offset)||void 0===K?void 0:K.placement)||"top",ref:e=>{Y&&Y(e),e&&e.isConnected&&p&&setTimeout((()=>{p(D.refs.reference.current,e)}),0)},...Bh(U,C),style:P.value?D.floatingStyles:{display:"none"},className:t,id:k,children:[c?ae.jsx(Xf,{ref:M,context:D.context,...c}):null,i]})}));S&&(V=ae.jsx(th,{id:T.nodeId,children:V}));const X=n&&F.isValidElement(n)?n:ae.jsx("span",{}),Q=$(),J={};return"click"===R?J.onClick=()=>{P.onChange(!P.value,T)}:"hover"===R&&(J.onMouseEnter=()=>{P.onChange(!0,T)},J.onMouseLeave=()=>{P.onChange(!1,T)}),ae.jsxs(ae.Fragment,{children:[n&&be(X,{"data-state":P.value?"open":"closed",...Q,...J},D.refs.setReference),V]})}));$h.displayName="FloatingPrimitive";var Wh="Tooltip-module_container__rrs2C",Hh="Tooltip-module_arrow__wkpNu";ue('/** Note:\n* this css has been built to follow https://floating-ui.com/ library which is framework agnostic\n * This library is the current reference as positioning engine.\n * It is the official replacement of https://popper.js.org/\n */\n.Tooltip-module_container__rrs2C {\n box-sizing: border-box;\n padding: var(--sprout-common-spacing-s) var(--sprout-common-spacing-m);\n max-width: var(--sprout-container-sizing-xxs);\n font: var(--sprout-label-font-xs);\n color: var(--sprout-inverse-foreground-color-default);\n background: var(--sprout-inverse-background-color-default);\n border-radius: var(--sprout-common-border-radius-subtle);\n z-index: var(--sprout-container-layer-context, 1350); /* over modal */\n transition-property: opacity;\n word-wrap: break-word;\n}\n\n.Tooltip-module_container__rrs2C[data-displayed="false"] {\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n visibility: hidden;\n opacity: 0;\n}\n\n.Tooltip-module_container__rrs2C[data-displayed="true"] {\n transition-duration: 200ms;\n transition-timing-function: ease-in;\n visibility: visible;\n opacity: 1;\n}\n\n.Tooltip-module_arrow__wkpNu {\n fill: var(--sprout-inverse-background-color-default);\n}\n\n.Tooltip-module_arrow__wkpNu .stroke {\n display: none;\n}\n');const Gh={delay:1200,hovered:!1},Vh=F.forwardRef((({children:e,title:t,open:n,onOpenChange:r,initialOpen:o,isDisplayedForTesting:i,placement:a="top",...s},l)=>{const[u,c]=F.useState(i||o),[d,p]=F.useState(i||o),f=W({open:n,onOpenChange:r,initialOpen:o||i||!1},{defaultValueKey:"initialOpen",valueKey:"open",onChangeKey:"onOpenChange",selector:e=>e});return F.useEffect((()=>(u&&!Gh.hovered?setTimeout((()=>{Gh.hovered=!0,p(!0)}),Gh.delay):u&&Gh.hovered?(clearTimeout(Gh.timeout),Gh.timeout=void 0,p(!0)):(p(!1),Gh.hovered&&(Gh.timeout=setTimeout((()=>{Gh.hovered=!1}),Gh.delay))),()=>{clearTimeout(Gh.timeout),Gh.timeout=void 0})),[u,d]),t?ae.jsx($h,{trigger:"hover",placement:a,placementUpdate:!0,arrowProps:{className:Hh},role:"tooltip",className:Wh,"data-displayed":d,content:t,open:u,onOpenChange:e=>{c(e),f.onChange(e),r&&r(e)},...s,children:e&&be(e,{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)}},l)}):be(e,{},l)}));function Uh({percent:e}){return"determined"===("number"==typeof e?"determined":"undetermined")?{role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100}:{role:"status","aria-busy":!0}}Vh.displayName="Tooltip";var Yh="ProgressCircular-module_container__xp6QG",Kh="ProgressCircular-module_background__PVZ1f",Xh="ProgressCircular-module_progress__PYZvE";ue('/**\n * https://www.figma.com/file/HmokLgpDo4ogI5l5hpNApf/Sprout-Core-Components?type=design&node-id=6586-47016&mode=design&t=VANxYdwF4hUzJj6n-4\n * FIXME: need tokens\n */\n\n.ProgressCircular-module_container__xp6QG > .ProgressCircular-module_background__PVZ1f {\n stroke: var(--sprout-common-border-weak-color);\n stroke-dasharray: 47;\n stroke-dashoffset: 0;\n stroke-width: var(--sprout-focus-border-default-width);\n}\n\n.ProgressCircular-module_container__xp6QG > .ProgressCircular-module_progress__PYZvE {\n stroke: var(--sprout-brand-primary-color-default);\n stroke-dasharray: 47;\n stroke-dashoffset: 0;\n stroke-width: var(--sprout-focus-border-default-width);\n}\n\n.ProgressCircular-module_container__xp6QG[data-animate="true"] > .ProgressCircular-module_progress__PYZvE {\n animation: ProgressCircular-module_progress-circular-animation__S444S 1.3s ease-in-out infinite;\n stroke: var(--sprout-brand-primary-color-default);\n\n /* 20 is the radius of the circle */\n stroke-dasharray: calc(pi * 20 * 2 / 10);\n stroke-dashoffset: -35;\n}\n\n@keyframes ProgressCircular-module_progress-circular-animation__S444S {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}\n\n.ProgressCircular-module_container__xp6QG[data-size="s"] {\n width: var(--sprout-common-sizing-l);\n height: var(--sprout-common-sizing-l);\n}\n\n.ProgressCircular-module_container__xp6QG[data-size="m"] {\n width: var(--sprout-common-sizing-xl);\n height: var(--sprout-common-sizing-xl);\n}\n\n.ProgressCircular-module_container__xp6QG[data-size="l"] {\n width: var(--sprout-common-sizing-3xl);\n height: var(--sprout-common-sizing-3xl);\n}\n');const Qh={s:"0 0 12 12",m:"0 0 16 16",l:"0 0 32 32"},Jh={s:5,m:7,l:15},Zh={s:Math.PI*(2*Jh.s),m:Math.PI*(2*Jh.m),l:Math.PI*(2*Jh.l)};function em(e,t="m"){return e?{strokeDasharray:Zh[t],strokeDashoffset:(100-e)/100*Zh[t]}:{strokeDasharray:Zh[t]/10,strokeDashoffset:0}}const tm=({size:e="m",percent:t,"aria-label":n,...r})=>{const o=K()("progress.circular.loading");return ae.jsxs("svg",{focusable:"false",className:Yh,"data-size":e,viewBox:Qh[e],"data-testid":"progress-circular","data-animate":t?"false":"true","aria-label":n||o,...Uh({percent:t}),...r,children:[ae.jsx("circle",{className:Kh,r:Jh[e],cx:Jh[e]+1,cy:Jh[e]+1,fill:"none",style:em(100,e)}),ae.jsx("circle",{className:Xh,r:Jh[e],cx:Jh[e]+1,cy:Jh[e]+1,fill:"none",style:em(t,e)})]})};var nm="Button-module_button__NddSO",rm="Button-module_content__lkiFP",om="Button-module_nolabel__wQIf9",im="Button-module_badge__1HFM-",am="Button-module_borderless__tgCsn";ue('.Button-module_button__NddSO {\n /* reset outline */\n outline: none;\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n font: var(--sprout-label-font-s-emphasized);\n\n /* common value */\n width: fit-content;\n border-radius: var(--sprout-common-border-radius-pill);\n position: relative;\n padding: var(--sprout-common-spacing-m);\n}\n\n.Button-module_button__NddSO [data-type="icon"] {\n width: var(--sprout-common-sizing-xl);\n height: var(--sprout-common-sizing-xl);\n}\n\n.Button-module_button__NddSO[data-justified="false"] {\n /* button should not go beyond 256px and make label ellipsis */\n max-width: var(--sprout-container-sizing-xxs);\n}\n\n.Button-module_button__NddSO[data-justified="true"] {\n width: 100%;\n}\n\n.Button-module_button__NddSO > span > svg {\n fill: currentcolor;\n width: var(--sprout-common-sizing-xl);\n height: var(--sprout-common-sizing-xl);\n flex-shrink: 0;\n}\n\n.Button-module_button__NddSO:enabled {\n cursor: pointer;\n}\n\n.Button-module_button__NddSO [data-label] {\n padding: 0 var(--sprout-common-spacing-m);\n white-space: nowrap;\n overflow: hidden;\n max-width: 100%;\n text-overflow: ellipsis;\n}\n\n.Button-module_button__NddSO[data-variant="default"] {\n background-color: var(--sprout-common-background-color-enabled);\n color: var(--sprout-common-foreground-color-default);\n border: var(--sprout-common-border-moderate);\n}\n\n.Button-module_button__NddSO[data-variant="default"]:focus-visible {\n outline: var(--sprout-focus-border-default);\n outline-offset: calc(var(--sprout-focus-border-default-width) / -2);\n border-color: transparent;\n background-color: var(--sprout-focus-background-color-default);\n}\n\n.Button-module_button__NddSO[data-variant="default"]:disabled,\n.Button-module_button__NddSO[data-variant="default"][data-loading="true"] {\n background-color: var(--sprout-common-background-color-disabled);\n color: var(--sprout-common-foreground-color-disabled);\n border: var(--sprout-common-border-weak);\n}\n\n.Button-module_button__NddSO[data-variant="default"]:hover:enabled {\n background-color: var(--sprout-common-background-color-hover);\n}\n\n.Button-module_button__NddSO[data-variant="default"]:active:enabled {\n background-color: var(--sprout-common-background-color-pressed);\n}\n\n.Button-module_button__NddSO[data-variant="primary"] {\n background-color: var(--sprout-brand-primary-color-default);\n color: var(--sprout-brand-primary-color-inverse);\n border: var(--sprout-common-border-default);\n border-color: transparent;\n}\n\n.Button-module_button__NddSO[data-variant="primary"]:focus-visible {\n background-color: var(--sprout-brand-primary-color-focus);\n\n /* need some tokens here */\n outline: var(--sprout-focus-border-default);\n outline-offset: var(--sprout-focus-border-default-width);\n}\n\n.Button-module_button__NddSO[data-variant="primary"]:disabled {\n background-color: var(--sprout-brand-primary-color-disabled);\n color: var(--sprout-common-foreground-color-disabled);\n}\n\n.Button-module_button__NddSO[data-variant="primary"]:hover:enabled {\n background-color: var(--sprout-brand-primary-color-hover);\n}\n\n.Button-module_button__NddSO[data-variant="primary"]:active:enabled {\n background-color: var(--sprout-brand-primary-color-pressed);\n}\n\n.Button-module_button__NddSO[data-variant="secondary"] {\n background-color: var(--sprout-common-background-color-enabled);\n color: var(--sprout-brand-primary-color-default);\n border: var(--sprout-common-border-default);\n border-color: var(--sprout-brand-primary-color-default);\n}\n\n.Button-module_button__NddSO[data-variant="secondary"]:focus-visible {\n background-color: var(--sprout-focus-background-color-default);\n color: var(--sprout-brand-primary-color-focus);\n\n /* focus ring centered */\n outline: var(--sprout-focus-border-default);\n outline-offset: calc(var(--sprout-focus-border-default-width) / -2);\n border-color: transparent;\n}\n\n.Button-module_button__NddSO[data-variant="secondary"]:disabled {\n background-color: var(--sprout-common-background-color-disabled);\n color: var(--sprout-common-foreground-color-disabled);\n border: var(--sprout-common-border-default);\n}\n\n.Button-module_button__NddSO[data-variant="secondary"]:hover:enabled {\n background-color: var(--sprout-common-background-color-hover);\n color: var(--sprout-brand-primary-color-hover);\n}\n\n.Button-module_button__NddSO[data-variant="secondary"]:active:enabled {\n background-color: var(--sprout-common-background-color-pressed);\n color: var(--sprout-brand-primary-color-pressed);\n}\n\n.Button-module_button__NddSO[data-variant="quiet"] {\n border: var(--sprout-common-border-default);\n border-color: transparent;\n background-color: transparent;\n color: var(--sprout-common-foreground-color-default);\n}\n\n.Button-module_button__NddSO[data-variant="quiet"]:focus-visible {\n background-color: var(--sprout-focus-background-color-default);\n outline: var(--sprout-focus-border-default);\n outline-offset: calc(var(--sprout-focus-border-default-width) / -2);\n}\n\n.Button-module_button__NddSO[data-variant="quiet"]:disabled {\n color: var(--sprout-common-foreground-color-disabled);\n}\n\n.Button-module_button__NddSO[data-variant="quiet"]:hover:enabled {\n background-color: var(--sprout-common-background-color-hover);\n}\n\n.Button-module_button__NddSO[data-variant="quiet"]:active:enabled {\n background-color: var(--sprout-common-background-color-pressed);\n}\n\n.Button-module_button__NddSO[data-variant="destructive"] {\n background-color: var(--sprout-danger-color-default);\n color: var(--sprout-danger-color-inverse);\n border: var(--sprout-common-border-default);\n border-color: transparent;\n}\n\n.Button-module_button__NddSO[data-variant="destructive"]:focus-visible {\n background-color: var(--sprout-danger-color-focus);\n outline: var(--sprout-focus-border-default);\n outline-offset: var(--sprout-focus-border-default-width);\n}\n\n.Button-module_button__NddSO[data-variant="destructive"]:disabled {\n background-color: var(--sprout-danger-color-disabled);\n color: var(--sprout-common-foreground-color-disabled);\n}\n\n.Button-module_button__NddSO[data-variant="destructive"]:hover:enabled {\n background-color: var(--sprout-danger-color-hover);\n}\n\n.Button-module_button__NddSO[data-variant="destructive"]:active:enabled {\n background-color: var(--sprout-danger-color-pressed);\n}\n\n.Button-module_button__NddSO[data-size="default"] {\n padding: calc(\n var(--sprout-common-spacing-m) - var(--sprout-common-border-default-width)\n );\n}\n\n.Button-module_button__NddSO[data-size="small"] {\n font: var(--sprout-label-font-xs-emphasized);\n padding: calc(\n var(--sprout-common-spacing-s) - var(--sprout-common-border-default-width)\n );\n}\n\n.Button-module_button__NddSO[data-size="small"] [data-label] {\n padding: 0 var(--sprout-common-spacing-s);\n}\n\n.Button-module_content__lkiFP {\n display: inline-flex;\n padding: 0;\n align-items: center;\n overflow: hidden;\n pointer-events: none;\n}\n\n.Button-module_button__NddSO[data-size="small"] > .Button-module_content__lkiFP {\n padding: 0 var(--sprout-common-spacing-s);\n gap: var(--sprout-common-spacing-xs);\n}\n\n.Button-module_button__NddSO.Button-module_nolabel__wQIf9[data-size="small"] {\n padding: calc(\n var(--sprout-common-spacing-s) - var(--sprout-common-border-default-width)\n );\n}\n\n.Button-module_button__NddSO.Button-module_nolabel__wQIf9[data-size="small"] .Button-module_content__lkiFP {\n padding: var(--sprout-common-spacing-xs);\n gap: var(--sprout-common-spacing-s);\n}\n\n.Button-module_button__NddSO[data-size="small"] [data-type="icon"] {\n width: var(--sprout-common-sizing-l);\n height: var(--sprout-common-sizing-l);\n}\n\n.Button-module_badge__1HFM- {\n display: inline-flex;\n padding-inline-end: var(--sprout-common-spacing-s);\n}\n\n.Button-module_nolabel__wQIf9 .Button-module_badge__1HFM- {\n padding-inline-end: 0;\n}\n\n/* loading state should keep existing width of the button and hide the label.\n * ProgressCircular Icon is placed in the middle of the button\n */\n.Button-module_button__NddSO[data-loading="true"] [data-label],\n.Button-module_button__NddSO[data-loading="true"] [data-type="icon"],\n.Button-module_button__NddSO[data-loading="true"] .Button-module_badge__1HFM- {\n visibility: hidden;\n}\n\n.Button-module_button__NddSO [data-loader] {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%);\n}\n\n/* state toggle */\n.Button-module_toggle__m91UO[aria-pressed="true"] {\n background-color: var(--sprout-common-background-color-toggled);\n color: var(--sprout-common-foreground-color-default);\n border: var(--sprout-common-border-extra-strong);\n}\n\n/* ButtonGroup integration when borderless to avoid !important. We inject a divider */\n[role="group"] > .Button-module_borderless__tgCsn:not(:first-child)::before {\n content: "";\n width: var(--sprout-common-border-moderate-width);\n height: calc(100% + var(--sprout-common-border-moderate-width) * 2);\n position: absolute;\n background-color: var(--sprout-common-divider-moderate-color);\n inset-block: calc(var(--sprout-common-border-moderate-width) * -1);\n inset-inline-start: calc(var(--sprout-common-border-moderate-width) * -1);\n}\n');const sm=({variant:e="default",badge:t,asDropdown:n,justified:r,size:o="default",disabled:i,loading:a,label:s,type:l="button",icon:u,title:c,...d},p)=>ae.jsx("button",{ref:p,type:l,"data-surface":"button",className:pe({[nm]:!0,[om]:!s,[am]:"quiet"===e||"destructive"===e||"primary"===e}),"data-variant":e||"default","data-size":o,disabled:i||a,"data-loading":a,"data-justified":r||!1,title:c||(s&&s.length>20?s:void 0),...d,children:ae.jsxs("span",{className:rm,children:[u&&ae.jsx("svg",{"data-type":"icon",children:u}),s&&ae.jsx("span",{"data-label":!0,children:s}),t&&ae.jsx("span",{className:im,children:ae.jsx(_e,{...t})}),n&&ae.jsx(ve,{"data-dropdown":!0,"data-type":"icon"}),a&&ae.jsx(tm,{"data-loader":!0,size:"small"===o?"s":"m"})]})});sm.displayName="Button";const lm=F.forwardRef(sm);function um(e){if(e.font)return;const{family:t,size:n,emphasized:r}=e;if(t)switch(t){case"heading":case"body":return`${t}_${n||"m"}`;case"label":case"script":return`${t}_${n||"m"}${r?"_emphasized":""}`;default:return}}function cm(e){if(e.font){const{font:t,color:n,ellipsis:r}=e;return de.classNames(`font_${t}`,{ellipsis:!!r,[`text_${n||"default"}`]:!!n})}let t=um(e);return t||(t=um({...e,family:e.familly})),t&&void 0!==de[`font_${t}`]?de[`font_${t}`]:""}const dm=["border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderRadius"],pm={border:e=>({border_none:"none"===e,border_default:"default"===e,border_weak:"weak"===e,border_moderate:"moderate"===e,border_strong:"strong"===e,border_extra_strong:"extra-strong"===e}),borderTop:e=>({border_t_none:"none"===e,border_t_default:"default"===e,border_t_weak:"weak"===e,border_t_moderate:"moderate"===e,border_t_strong:"strong"===e,border_t_extra_strong:"extra-strong"===e}),borderRight:e=>({border_r_none:"none"===e,border_r_default:"default"===e,border_r_weak:"weak"===e,border_r_moderate:"moderate"===e,border_r_strong:"strong"===e,border_r_extra_strong:"extra-strong"===e}),borderBottom:e=>({border_b_none:"none"===e,border_b_default:"default"===e,border_b_weak:"weak"===e,border_b_moderate:"moderate"===e,border_b_strong:"strong"===e,border_b_extra_strong:"extra-strong"===e}),borderLeft:e=>({border_l_none:"none"===e,border_l_default:"default"===e,border_l_weak:"weak"===e,border_l_moderate:"moderate"===e,border_l_strong:"strong"===e,border_l_extra_strong:"extra-strong"===e}),borderWidth:e=>({border_width_0:"0"===e,border_width_default:"default"===e,border_width_strong:"strong"===e}),borderRadius:e=>({radius_subtle:"subtle"===e,radius_soft:"soft"===e,radius_cushiony:"cushiony"===e,radius_pill:"pill"===e,radius_round:"round"===e,radius_nested_subtle_xs:"nested-subtle-xs"===e,radius_nested_soft_xs:"nested-soft-xs"===e,radius_nested_soft_s:"nested-soft-s"===e,radius_nested_cushiony_xs:"nested-cushiony-xs"===e,radius_nested_cushiony_s:"nested-cushiony-s"===e,radius_nested_cushiony_m:"nested-cushiony-m"===e,radius_twice_soft_xs:"twice-soft-xs"===e,radius_twice_cushiony_s_xs:"twice-cushiony-s-xs"===e,radius_twice_cushiony_m_s:"twice-cushiony-m-s"===e})};const fm={gap:e=>({gap_0:"0"===e,gap_xs:"xs"===e,gap_s:"s"===e,gap_m:"m"===e,gap_l:"l"===e,gap_xl:"xl"===e,gap_xxl:"xxl"===e,gap_3xl:"3xl"===e,gap_density_xs:"density-xs"===e,gap_density_s:"density-s"===e,gap_density_m:"density-m"===e,gap_density_l:"density-l"===e,gap_density_xl:"density-xl"===e,gap_density_xxl:"density-xxl"===e,gap_density_3xl:"density-3xl"===e}),rowGap:e=>({row_gap_0:"0"===e,row_gap_xs:"xs"===e,row_gap_s:"s"===e,row_gap_m:"m"===e,row_gap_l:"l"===e,row_gap_xl:"xl"===e,row_gap_xxl:"xxl"===e,row_gap_3xl:"3xl"===e}),columnGap:e=>({col_gap_0:"0"===e,col_gap_xs:"xs"===e,col_gap_s:"s"===e,col_gap_m:"m"===e,col_gap_l:"l"===e,col_gap_xl:"xl"===e,col_gap_xxl:"xxl"===e,col_gap_3xl:"3xl"===e}),boxSizing:(e,t={apply:!0})=>({content_box:"content-box"===e,border_box:"content-box"!==e&&t.apply}),wrap:e=>({wrap:"wrap"===e,wrap_reverse:"wrap-reverse"===e,no_wrap:"nowrap"===e}),direction:(e,t={apply:!0})=>({row:"row"===e||t.apply&&!e,row_reverse:"row-reverse"===e,col:"col"===e,col_reverse:"col-reverse"===e}),noShrink:e=>({shrink_0:e}),alignContent:e=>({ac_center:"center"===e,ac_stretch:"stretch"===e,ac_start:"start"===e,ac_end:"end"===e,ac_between:"between"===e,ac_around:"around"===e}),alignItems:e=>({ai_center:"center"===e,ai_stretch:"stretch"===e,ai_start:"start"===e,ai_end:"end"===e,ai_baseline:"baseline"===e}),alignSelf:e=>({as_center:"center"===e,as_stretch:"stretch"===e,as_start:"start"===e,as_end:"end"===e}),justify:e=>({j_around:"around"===e,j_between:"between"===e,j_center:"center"===e,j_end:"end"===e,j_start:"start"===e,j_evenly:"evenly"===e})},hm=["boxSizing","wrap","direction","alignContent","alignItems","alignSelf","gap","columnGap","rowGap","justify","noShrink"];const mm=["xxs","xs","s","m","l","xl","xxl","3xl","4xl","full","fit","min","max"];const gm={overflow:e=>({overflow_auto:"auto"===e,overflow_hidden:"hidden"===e,overflow_scroll:"scroll"===e,overflow_visible:"visible"===e}),overflowX:e=>({overflow_x_auto:"auto"===e,overflow_x_hidden:"hidden"===e,overflow_x_scroll:"scroll"===e,overflow_x_visible:"visible"===e}),overflowY:e=>({overflow_y_auto:"auto"===e,overflow_y_hidden:"hidden"===e,overflow_y_scroll:"scroll"===e,overflow_y_visible:"visible"===e})},bm=["overflow","overflowX","overflowY"];const ym={p:e=>({p_0:"0"===e,p_xs:"xs"===e,p_s:"s"===e,p_m:"m"===e,p_l:"l"===e,p_xl:"xl"===e,p_xxl:"xxl"===e,p_3xl:"3xl"===e}),px:e=>({px_0:"0"===e,px_xs:"xs"===e,px_s:"s"===e,px_m:"m"===e,px_l:"l"===e,px_xl:"xl"===e,px_xxl:"xxl"===e,px_3xl:"3xl"===e}),py:e=>({py_0:"0"===e,py_xs:"xs"===e,py_s:"s"===e,py_m:"m"===e,py_l:"l"===e,py_xl:"xl"===e,py_xxl:"xxl"===e,py_3xl:"3xl"===e,py_density_xs:"density-xs"===e,py_density_s:"density-s"===e,py_density_m:"density-m"===e,py_density_l:"density-l"===e,py_density_xl:"density-xl"===e,py_density_xxl:"density-xxl"===e,py_density_3xl:"density-3xl"===e}),pt:e=>({pt_0:"0"===e,pt_xs:"xs"===e,pt_s:"s"===e,pt_m:"m"===e,pt_l:"l"===e,pt_xl:"xl"===e,pt_xxl:"xxl"===e,pt_3xl:"3xl"===e}),pr:e=>({pr_0:"0"===e,pr_xs:"xs"===e,pr_s:"s"===e,pr_m:"m"===e,pr_l:"l"===e,pr_xl:"xl"===e,pr_xxl:"xxl"===e,pr_3xl:"3xl"===e}),pb:e=>({pb_0:"0"===e,pb_xs:"xs"===e,pb_s:"s"===e,pb_m:"m"===e,pb_l:"l"===e,pb_xl:"xl"===e,pb_xxl:"xxl"===e,pb_3xl:"3xl"===e}),pl:e=>({pl_0:"0"===e,pl_xs:"xs"===e,pl_s:"s"===e,pl_m:"m"===e,pl_l:"l"===e,pl_xl:"xl"===e,pl_xxl:"xxl"===e,pl_3xl:"3xl"===e})},vm=["p","px","py","pt","pr","pb","pl"];function xm(e){const{className:t,...n}=e,r=vm.reduce(((t,r)=>(r in e&&(Object.assign(t,ym[r](e[r])),delete n[r]),t)),{[t||""]:!!t});return{className:pe(r),...n}}const _m=F.forwardRef((({children:e,...t},n)=>ae.jsx("div",{...wm(t),ref:n,children:e})));function wm({typography:e,...t},n={apply:!0}){const{className:r,...o}=function(e){const{className:t,...n}=e,r=bm.reduce(((t,r)=>(r in e&&(Object.assign(t,gm[r](e[r])),delete n[r]),t)),{[t||""]:!!t});return{className:de.classNames(r),...n}}(function({boxShadow:e,zIndex:t,className:n,...r}){return{className:pe({[n||""]:!!n,[`box_shadow_${e||"default"}`]:!!e,[`z_${t||"context"}`]:!!t}),...r}}(function({bgColor:e,className:t,...n}){return{className:pe({[t||"not_existing"]:!!t,[`bg_${e||"default"}`]:!!e}),...n}}(function(e){const{className:t,...n}=e,r=dm.reduce(((t,r)=>(r in e&&(Object.assign(t,pm[r](e[r])),delete n[r]),t)),{[null!=t?t:""]:!!t});return{className:pe(r),...n}}(function(e,t={apply:!0}){const{className:n,...r}=e,o=hm.reduce(((n,o)=>(o in e?(Object.assign(n,fm[o](e[o],t)),delete r[o]):("direction"===o&&t.apply&&Object.assign(n,fm.direction(void 0,t)),"boxSizing"===o&&t.apply&&Object.assign(n,fm.boxSizing(void 0,t))),n)),{flex:t.apply});return{className:pe(n,o),...r}}(xm(function(e){const{shrink:t,basis:n,grow:r,style:o,width:i,height:a,maxHeight:s,maxWidth:l,minWidth:u,minHeight:c,className:d,...p}=e,f={},h={...o||{}};return h.containerType="normal",i&&(mm.includes(i)?f[`w_${i}`]=!0:h.width=i),a&&(mm.includes(a)?f[`h_${a}`]=!0:h.height=a),u&&(mm.includes(u)?h.minWidth=`var(--sprout-container-sizing-${u})`:h.minWidth=u),l&&(mm.includes(l)?h.maxWidth=`var(--sprout-container-sizing-${l})`:h.maxWidth=l),c&&(h.minHeight=c),s&&(h.maxHeight=s),r&&(h.flexGrow="number"==typeof r?r:1),void 0!==t&&(h.flexShrink=t),void 0!==n&&(h.flexBasis=n),{style:h,className:pe(f,{[d||""]:!!d}),...p}}(t)),n)))));return{...o,className:pe({[`${e&&cm(e)}`]:!!e,[r]:!0})}}_m.displayName="Box";const Sm=(e,t)=>ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ae.jsx("path",{d:"m7.647 1.168-6.48 6.479-.706-.708L6.94.462a1.5 1.5 0 0 1 2.12 0l6.48 6.479a1.5 1.5 0 0 1 0 2.12l-6.48 6.48a1.5 1.5 0 0 1-2.12 0L.46 9.06a1.5 1.5 0 0 1 0-2.12l.708.707a.5.5 0 0 0 0 .707l6.479 6.478a.5.5 0 0 0 .707 0l6.478-6.478a.5.5 0 0 0 0-.707l-6.478-6.48a.5.5 0 0 0-.707 0M8.75 11a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M7.5 4h1v5h-1z"})}),Cm=F.forwardRef(Sm),Em=(e,t)=>ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ae.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m.5 5.5V11h1v1h-3v-1h1V7.5h-1v-1zm-.75-3a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5"})}),km=F.forwardRef(Em);var Rm="Divider-module_divider__7TE4l";ue('.Divider-module_divider__7TE4l {\n border: none;\n}\n\n.Divider-module_divider__7TE4l[aria-orientation="horizontal"] {\n border-block-start: var(--sprout-common-divider-default);\n}\n\n.Divider-module_divider__7TE4l[aria-orientation="vertical"] {\n display: inline-block;\n min-height: 2ch;\n border-inline-start: var(--sprout-common-divider-default);\n}\n');const Mm=F.forwardRef(((e,t)=>{const{orientation:n="horizontal",height:r="auto",width:o="100%",...i}=e;return ae.jsx("hr",{...i,"aria-orientation":n,ref:t,className:de.classNames("m_0",{[Rm]:!0,w_full:"horizontal"===n&&"100%"===o,w_auto:"horizontal"===n&&"auto"===o,h_full:"vertical"===n&&"100%"===r,h_auto:"vertical"===n&&"auto"===r})})}));Mm.displayName="Divider";var Am="HelperText-module_helper__X5kQ-";ue(".HelperText-module_helper__X5kQ- {\n word-break: normal;\n}\n");const Lm=({isError:e,helpText:t,...n})=>ae.jsx("div",{...n,className:pe("font_label_xs","text_default","text_wrap","break_words",{[Am]:!0,text_danger:!!e}),children:t});function Im(e,{defaultValueKey:t="defaultValue",valueKey:n="value",onChangeKey:r="onChange",selector:o=e=>e.target.value}={}){const i=void 0!==e[n],a=e[t],s=void 0!==a,[l,u]=F.useState(s?a:""),c=i?e[n]:l,d=e[r],p=F.useCallback(((e,...t)=>{d&&d(e,...t),i||u(o(e))}),[i,d]);return i?{[n]:c,[r]:p}:{[t]:a,[r]:p}}const Pm=({currentCount:e,maxCount:t=100,...n})=>{const r=de.classNames("text_danger");return ae.jsx("div",{className:de.classNames("text_weak","font_body_s","font_label_xs",{[r]:e>t||!1}),children:ae.jsxs("span",{...n,children:[e," / ",t]})})};Pm.displayName="CharacterCount";var Tm="Popover-module_popover__MjWcv";ue(".Popover-module_popover__MjWcv {\n outline: none;\n background-color: var(--sprout-common-background-color-default);\n border-radius: var(--sprout-common-border-radius-subtle);\n border: var(--sprout-common-border-moderate);\n box-shadow: var(--sprout-common-elevation-moderate);\n box-sizing: border-box;\n color: var(--sprout-common-foreground-color-default);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--sprout-common-spacing-m);\n overflow: auto;\n z-index: var(--sprout-container-layer-overlay, 1300);\n}\n\n.Popover-module_popover__MjWcv .Popover-module_header__99heY h4 {\n margin: 0;\n}\n\n.Popover-module_popover__MjWcv .Popover-module_header__99heY span {\n color: var(--sprout-common-foreground-color-weak);\n}\n");const Dm=({"data-testid":e,children:t,width:n,minWidth:r,maxWidth:o,...i})=>{const{className:a,...s}=xm(i);return ae.jsx($h,{role:"dialog","aria-label":"popover",tabIndex:0,...s,className:pe({[a||""]:!!a,[Tm]:!0}),"data-testid":e||"popover.wrapper",width:n||"fit-content",maxWidth:o||"s",minWidth:r||void 0,children:t})};Dm.displayName="Popover";var Om="Clickable-module_clickable__yRF7D";ue(".Clickable-module_clickable__yRF7D {\n color: currentColor;\n}\n\n.Clickable-module_clickable__yRF7D:focus-visible {\n outline: var(--sprout-focus-border-default);\n border-radius: var(--sprout-common-border-radius-subtle);\n}\n");const zm=F.forwardRef((({className:e,...t},n)=>ae.jsx("button",{ref:n,...t,className:pe("p_0","m_0","border_box","border_none","bg_transparent","cursor_pointer","outline_none",{[e||""]:!!e,[Om]:!0})})));zm.displayName="Clickable";const Nm=e=>{const{content:t,...n}=e;return ae.jsx(Dm,{content:ae.jsx("div",{className:pe("p_l"),children:t}),"data-testid":"info-popover-content",children:ae.jsx(zm,{...n,className:pe("inline_flex","size_l"),type:"button","data-test":"info-popover-button",children:ae.jsx(km,{width:void 0,height:void 0,className:pe("shrink_0","fill_current")})})})};Nm.displayName="InfoPopoverPrimitive";const qm=e=>{const{title:t,className:n,...r}=e;return ae.jsx(Vh,{title:t,placement:"top",children:ae.jsx(zm,{...r,"data-testid":"info-icon",className:pe("inline_flex","size_l",{[n||""]:!!n}),type:"button",children:ae.jsx(km,{width:void 0,height:void 0,className:pe("shrink_0","fill_current")})})})};qm.displayName="InfoTooltipPrimitive";const jm=({children:e,label:t,infoIconTooltip:n,infoIconPopover:r,optional:o,htmlFor:i,disabled:a,...s})=>{const l=K();return ae.jsxs("label",{...s,htmlFor:i,className:pe("flex_noreset","gap_s","ai_center","font_label_xs_emphasized",{text_default:!a,text_disabled:!!a}),children:[e,t,o?ae.jsxs("span",{className:pe("font_label_xs",{text_weak:!a,text_disabled:!!a}),children:["(",l("fieldlabel.optional"),")"]}):null,n?ae.jsx(qm,{title:n}):null,r&&ae.jsx(Nm,{content:r})]})};jm.displayName="FieldLabel";var Fm="Field-module_field__QP6B-";ue(".Field-module_field__QP6B- {\n display: flex;\n width: 100%;\n max-height: 100%;\n flex-direction: column;\n gap: var(--sprout-common-spacing-s);\n align-items: flex-start;\n}\n");const Bm=({children:e,htmlFor:t,optional:n,label:r,labelId:o,helpText:i,helpTextId:a,errorMessages:s,isError:l,disabled:u,maxCharacterCount:c,infoIconTooltip:d,currentCount:p=0,...f})=>ae.jsxs("div",{className:Fm,...f,children:[r&&ae.jsx(jm,{optional:n,htmlFor:t,id:o,label:r,disabled:u,infoIconTooltip:d}),e,(c||i||(s||[]).length>0)&&ae.jsxs("div",{className:de.classNames("flex","row","w_full"),children:[ae.jsxs("div",{className:de.classNames("w_full","flex_auto"),children:[i&&0===(s||[]).length&&ae.jsx(Lm,{helpText:i,isError:l,id:a}),(s||[]).map(((e,t)=>ae.jsx(Lm,{isError:!0,helpText:e,id:0===t?a:void 0},e)))]}),c&&ae.jsx("div",{className:de.classNames("flex_none","ml_xl"),children:ae.jsx(Pm,{maxCount:c,currentCount:p})})]})]});function $m(e){const{id:t,label:n,helpText:r,errorMessages:o,maxCharacterCount:i,infoIconTooltip:a,optional:s,useField:l,...u}=e,c=H(t),{fieldProps:d,ariaProps:p}=function({label:e,helpText:t,errorMessages:n}){const r=H(),o=H(),i={},a={};return e&&(i.labelId=r,a["aria-labelledby"]=r),(t||(n||[]).length>0)&&(i.helpTextId=o,a["aria-describedby"]=o),{fieldProps:i,ariaProps:a}}({label:n,helpText:r,errorMessages:o}),f=u.hasError||(o||[]).length>0,h=e.disabled||!1;return{fieldProps:{...d,htmlFor:c,label:n,optional:s,infoIconTooltip:a,helpText:r,errorMessages:o,maxCharacterCount:i,disabled:h},useField:!!n||!!r||!!o||l,inputProps:{...u,id:c,hasError:f,disabled:h,...p}}}var Wm="InputButton-module_input_button__II1eT";ue('.InputButton-module_input_button__II1eT {\n border: 0;\n}\n\n.InputButton-module_input_button__II1eT:focus-visible {\n outline: var(--sprout-focus-border-default);\n outline-offset: calc(var(--sprout-focus-border-default-width) / -2);\n}\n\n.InputButton-module_input_button__II1eT:disabled {\n color: var(--sprout-common-foreground-color-disabled);\n pointer-events: none;\n}\n\n.InputButton-module_input_button__II1eT:hover {\n background-color: var(--sprout-common-background-color-hover);\n}\n\n.InputButton-module_input_button__II1eT:active {\n background-color: var(--sprout-common-background-color-pressed);\n}\n\n.InputButton-module_input_button__II1eT > span {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--sprout-common-spacing-xs);\n pointer-events: none;\n}\n\n.InputButton-module_input_button__II1eT svg {\n width: var(--sprout-common-sizing-l);\n height: var(--sprout-common-sizing-l);\n color: currentcolor;\n}\n\n.InputButton-module_input_button__II1eT[data-size="xs"] {\n padding: var(--sprout-common-spacing-xs);\n}\n');const Hm=F.forwardRef((({onClick:e,disabled:t,loading:n,initialLoading:r,onLoadingChange:o,"aria-label":i,size:a,...s},l)=>{const u=W({loading:n,initialLoading:r,onLoadingChange:o},{valueKey:"loading",defaultValueKey:"initialLoading",onChangeKey:"onLoadingChange",selector:e=>e});return ae.jsx("button",{ref:l,onClick:()=>{const t=e();t instanceof Promise&&(u.onChange(!0),t.then((()=>{u.onChange(!1)})).catch((e=>{console.error(e),u.onChange(!1)})))},"data-size":a,disabled:t||n,type:"button",className:de.classNames("ai_center","bg_transparent","cursor_pointer","inline_flex","j_center","m_0","p_s","radius_pill","text_default",{[Wm]:!0}),"aria-label":i,...s,children:ae.jsx("span",{children:n?ae.jsx(tm,{size:"s"}):ae.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ae.jsx("g",{children:ae.jsxs("g",{children:[ae.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1464 13.8536L2.14642 2.85355L2.85353 2.14645L13.8535 13.1464L13.1464 13.8536Z",fill:"currentColor"}),ae.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8535 2.85355L2.85353 13.8536L2.14642 13.1464L13.1464 2.14645L13.8535 2.85355Z",fill:"currentColor"})]})})})})})}));Hm.displayName="InputButton";const Gm=de.classNames("flex","ai_center","m_s"),Vm=de.classNames("flex","bg_moderate","radius_pill"),Um=({children:e,...t})=>ae.jsx("span",{className:Vm,...t,children:e}),Ym=e=>{if(F.isValidElement(e.affix))return ae.jsx("span",{className:Gm,children:e.affix});const t=e.affix;return t.icon&&F.isValidElement(t.icon)&&(t.icon=F.cloneElement(t.icon,{height:void 0,width:void 0})),ae.jsx("span",{className:Gm,children:ae.jsx(Um,{children:ae.jsx(lm,{...t,variant:"quiet",size:"small"})})})},Km=()=>ae.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ae.jsx("g",{clipPath:"url(#clip0_21219_5739)",children:ae.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.58757 11.4149C7.80411 11.79 6.92658 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6C12 6.92597 11.7902 7.80296 11.4156 8.58602L15.5173 12.586C16.1156 13.1695 16.1217 14.1296 15.5307 14.7205L14.8238 15.4274C14.2432 16.008 13.3037 16.0139 12.7159 15.4407L8.58757 11.4149ZM11 6C11 3.23858 8.76142 1 6 1C3.23858 1 1 3.23858 1 6C1 8.76142 3.23858 11 6 11C8.76142 11 11 8.76142 11 6ZM9.47992 10.8883L13.4141 14.7247C13.61 14.9158 13.9232 14.9138 14.1167 14.7203L14.8236 14.0134C15.0206 13.8164 15.0185 13.4964 14.8191 13.3019L10.8931 9.47323C10.5043 10.02 10.0261 10.4988 9.47992 10.8883Z",fill:"currentColor"})}),ae.jsx("defs",{children:ae.jsx("clipPath",{id:"clip0_21219_5739",children:ae.jsx("rect",{width:"16",height:"16",fill:"white"})})})]});var Xm="Input-module_input__MGdxg",Qm="Input-module_field__2OLRl",Jm="Input-module_fieldcontent__Kcsbu",Zm="Input-module_small__KhTVm",eg="Input-module_field_disabled__krC1y",tg="Input-module_field_error__xVe6G";ue('/* support dark mode of input */\n[data-qlik-appearance$="dark"] .Input-module_input__MGdxg {\n color-scheme: dark;\n}\n\n.Input-module_field__2OLRl {\n box-shadow: 0 0 0 0 transparent;\n background: var(--sprout-input-background-color-default);\n}\n\n.Input-module_field__2OLRl :has(input:read-only) {\n background: var(--sprout-common-background-color-moderate);\n}\n\n.Input-module_fieldcontent__Kcsbu {\n display: flex;\n flex-flow: row;\n padding-inline: calc(\n var(--sprout-common-spacing-m) - var(--sprout-common-border-default-width)\n )\n var(--sprout-common-spacing-s);\n}\n\n.Input-module_field__2OLRl.Input-module_small__KhTVm .Input-module_fieldcontent__Kcsbu {\n padding-inline: calc(\n var(--sprout-common-spacing-m) - var(--sprout-common-border-default-width)\n )\n var(--sprout-common-spacing-xs);\n}\n\n.Input-module_field__2OLRl:hover {\n border: var(--sprout-common-border-strong);\n}\n\n.Input-module_field_disabled__krC1y,\n.Input-module_field_disabled__krC1y:hover {\n background: var(--sprout-common-background-color-disabled);\n border: var(--sprout-common-border-weak);\n}\n\n.Input-module_field_error__xVe6G,\n.Input-module_field_error__xVe6G:hover {\n border-color: var(--sprout-danger-color-default);\n}\n\n.Input-module_input__MGdxg:disabled {\n color: var(--sprout-common-foreground-color-disabled);\n cursor: not-allowed;\n}\n\n.Input-module_input__MGdxg:disabled::placeholder {\n color: var(--sprout-common-foreground-color-disabled);\n}\n\n.Input-module_input__MGdxg[readonly] {\n color: var(--sprout-common-foreground-color-default);\n}\n\n.Input-module_input__MGdxg:focus {\n outline: 0;\n}\n\n.Input-module_input__MGdxg::placeholder {\n color: var(--sprout-common-foreground-color-weak);\n}\n\n.Input-module_field__2OLRl:has(.Input-module_input__MGdxg:focus-within),\n.Input-module_field__2OLRl:has(.Input-module_input__MGdxg:focus) {\n z-index: 1;\n outline: var(--sprout-focus-border-default);\n outline-offset: calc(var(--sprout-focus-border-default-width) / -2);\n}\n\n/* icon alongside the content */\n.Input-module_fieldcontent__Kcsbu > svg {\n background: transparent;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n/* error icon bring some colors */\n.Input-module_fieldcontent__Kcsbu > svg[data-icon="error"] {\n color: var(--sprout-danger-color-default);\n align-self: center;\n width: var(--sprout-common-sizing-xl);\n flex-shrink: 0;\n height: var(--sprout-common-sizing-xl);\n margin-inline-end: var(--sprout-common-spacing-m);\n}\n\n.Input-module_small__KhTVm .Input-module_fieldcontent__Kcsbu > svg[data-icon="error"] {\n width: var(--sprout-common-sizing-l);\n height: var(--sprout-common-sizing-l);\n}\n\n/* affix buttons */\n.Input-module_field__2OLRl > button[data-variant] {\n border-radius: 0;\n border-block-start: transparent;\n border-block-end: transparent;\n}\n\n.Input-module_field__2OLRl > button[data-variant]:first-child {\n border-inline-start: transparent;\n border-start-start-radius: var(--sprout-common-border-radius-pill);\n border-end-start-radius: var(--sprout-common-border-radius-pill);\n margin-inline-start: var(--sprout-common-border-default-width);\n}\n\n.Input-module_field__2OLRl > button[data-variant]:last-child {\n border-inline-end: transparent;\n border-start-end-radius: var(--sprout-common-border-radius-pill);\n border-end-end-radius: var(--sprout-common-border-radius-pill);\n margin-inline-end: var(--sprout-common-border-default-width);\n}\n\n/* duplicate the wrapper class to increase the weight of the css selector to override the button one */\n.Input-module_field__2OLRl.Input-module_field__2OLRl > button[data-variant]:focus-visible {\n outline-offset: 0;\n}\n\n.Input-module_field__2OLRl.Input-module_small__KhTVm > span {\n font: var(--sprout-label-font-xs);\n}\n\n.Input-module_field__2OLRl:has(.Input-module_input__MGdxg:placeholder-shown)\n > button[data-feature="input-search-clear"] {\n visibility: hidden;\n}\n\n/* Only unsets for Chromium */\n.Input-module_input__MGdxg::-webkit-calendar-picker-indicator {\n padding: unset;\n margin: unset;\n color: inherit;\n}\n');const ng=pe("font_label_s","text_weak","bg_transparent","h_full","flex","j_center","ai_center","as_center");const rg=F.forwardRef(((e,t)=>{const{id:n,font:r,labelClear:o,leftAffix:i,leftIcon:a,rightAffix:s,leftAdornment:l,rightAdornment:u,readOnly:c=!1,disabled:d=!1,type:p,hasError:f,designSize:h,value:m,onChange:g,defaultValue:b,placeholder:y,...v}=e,x=K(),_=F.useRef(null),w=x("input.clear"),S="small"!==h||r?r||"label_s":"label_xs",C=function(e,t){const[n,r]=e.split("_");return`calc(var(--sprout-${n}-font-${r}-line-height) - 2 * var(--sprout-common-border-default-width) + 2 * ${"small"===t?"var(--sprout-common-spacing-s)":"var(--sprout-common-spacing-m)"})`}(S,h),E=Im({defaultValue:b,value:m,onChange:g});let k=p||"text";return"search"===p&&(k="text"),ae.jsxs("div",{className:pe("flex","border_box","border_moderate","radius_pill","w_full","row","ai_center","overflow_hidden",{[Qm]:!0,[tg]:!!f,[eg]:d,[Zm]:"small"===h}),children:[i&&ae.jsx(Ym,{affix:i}),ae.jsxs("div",{className:pe("w_full","overflow_hidden",{[Jm]:!0,gap_m:"small"!==h,gap_s:"small"===h}),children:[ae.jsxs("div",{className:pe("w_full","flex","row","pr_s","ai_center","gap_m","text_default"),children:[l&&ae.jsx("span",{className:ng,children:l}),"search"===p?ae.jsx(Km,{}):a,ae.jsx("input",{...v,...E,placeholder:void 0!==y?y:"search"===p?"":void 0,id:n,type:k,ref:ge([t,_]),disabled:d,readOnly:c,className:pe("flex","row","ai_center","m_0","p_0","bg_transparent","border_box","text_default","flex_1","border_none","block","w_full",{[`font_${S||"label_s"}`]:!!S,[Xm]:!0}),"aria-invalid":f?"true":void 0,"data-size":h,style:{height:C}}),u&&ae.jsx("span",{className:ng,children:u})]}),f&&ae.jsx(Cm,{"data-icon":"error","data-testid":"input-error-icon",width:void 0,height:void 0})]}),"search"===p&&ae.jsx(Hm,{"data-feature":"input-search-clear",onClick:()=>{_&&_.current&&(_.current.value=""),E.onChange&&E.onChange({target:{value:""}},"clear")},"aria-label":o||w,size:"small"===h?"xs":"s"}),s&&ae.jsx(Ym,{affix:s})]})}));rg.displayName="Input";const og=F.forwardRef((({value:e,onChange:t,defaultValue:n,...r},o)=>{const{fieldProps:i,inputProps:a,useField:s}=$m(r),l=Im({defaultValue:n,value:e,onChange:t}),u=!(!i.maxCharacterCount||!l.value)&&String(l.value).length>i.maxCharacterCount;let c=ae.jsx(rg,{ref:o,...l,...a,hasError:u||a.hasError});return s&&(c=ae.jsx(Bm,{...i,maxCharacterCount:"string"==typeof l.value?i.maxCharacterCount:void 0,currentCount:i.maxCharacterCount&&l.value?String(l.value).length:0,children:c})),c}));og.displayName="TextField";const ig=F.createContext({useGesture:!1,hasPadding:!0});var ag="List-module_list__JZuMW",sg="List-module_item__n-u9u",lg="List-module_item_padding__Z-RT5",ug="List-module_item_interactive__JQDIQ",cg="List-module_item_selected__MKTkN",dg="List-module_item_disabled__zs9PF";ue('.List-module_list__JZuMW {\n margin: 0;\n padding: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n}\n\n.List-module_item__n-u9u {\n outline: none;\n margin: 0;\n display: flex;\n box-sizing: border-box;\n flex-direction: row;\n align-items: center;\n gap: var(--sprout-common-spacing-m);\n position: relative;\n border-radius: var(--sprout-common-border-radius-subtle);\n font: var(--sprout-label-font-s);\n color: var(--sprout-common-foreground-color-default);\n}\n\n.List-module_item_padding__Z-RT5 {\n padding: var(--sprout-common-density-m) var(--sprout-common-spacing-m)\n var(--sprout-common-density-m) var(--sprout-common-spacing-xl);\n}\n\n/* ensure children interactive elements receive this to let them on top of the button.item_interactive and let other elements under it */\n.List-module_item__n-u9u button:not(.List-module_item_interactive__JQDIQ),\n.List-module_item__n-u9u input {\n z-index: 1;\n}\n\n.List-module_item_divider__3s3Xq {\n display: flex;\n}\n\n.List-module_item__n-u9u .List-module_item_interactive__JQDIQ {\n position: absolute;\n inset-inline-start: 0;\n inset-block-start: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n background: transparent;\n border: none;\n}\n\n.List-module_item__n-u9u.List-module_item_interactive__JQDIQ {\n cursor: pointer;\n}\n\n.List-module_item__n-u9u.List-module_item_interactive__JQDIQ:hover,\n.List-module_item__n-u9u:has(.List-module_item_interactive__JQDIQ:not(:disabled):hover) {\n background-color: var(--sprout-common-background-color-hover);\n}\n\n.List-module_item__n-u9u:has(.List-module_item_interactive__JQDIQ:not(:disabled):active) {\n background-color: var(--sprout-common-background-color-pressed);\n}\n\n.List-module_item__n-u9u:has(.List-module_item_interactive__JQDIQ:not(:disabled):focus-visible) {\n outline: var(--sprout-focus-border-default);\n}\n\n.List-module_item_selected__MKTkN {\n position: relative;\n background-color: var(--sprout-selected-background-color-default);\n}\n\n.List-module_item_selected__MKTkN::before {\n content: "";\n position: absolute;\n inset-inline-start: 0;\n height: calc(100% - 2 * var(--sprout-common-density-m));\n background-color: var(--sprout-brand-primary-color-default);\n\n /* FIXME: wait for sizing-xs token */\n width: calc(var(--sprout-common-sizing-s) / 2);\n}\n\n.List-module_item_disabled__zs9PF {\n color: var(--sprout-common-foreground-color-disabled);\n}\n');const pg=F.forwardRef((({id:e,selected:t,onClick:n,interactive:r,disabled:o,children:i,hasPadding:a,...s},l)=>{const u=H(e),c=F.useContext(ig);let d=a;return void 0===a&&(d=void 0===(null==c?void 0:c.hasPadding)||(null==c?void 0:c.hasPadding)),ae.jsxs("li",{...s,id:u,ref:l,"data-selected":t,className:pe({[sg]:!0,[cg]:!!t,[dg]:!!o,[lg]:!!d,[ug]:!!r}),children:[i,n&&ae.jsx("button",{type:"button",onClick:n,className:pe("outline_none",{[ug]:!0}),disabled:o,"aria-labelledby":u,tabIndex:null!=c&&c.useGesture?t?0:-1:0})]})}));function fg(e){return e.querySelectorAll(`li > button.${ug}:not(:disabled)`)}function hg(e){return e.querySelectorAll(`li[aria-selected="true"] > button.${ug}:not(:disabled)`)}pg.displayName="ListItem";const mg=({children:e,dense:t,gap:n,useGesture:r,hasPadding:o,...i})=>{const a=F.useRef(null),s=function(e){const[t,n]=F.useState();return F.useMemo((()=>{if(t)return t.getAllItems!==e.getAllItems&&(t.getAllItems=e.getAllItems),t.getSelectedItems!==e.getSelectedItems&&(t.getSelectedItems=e.getSelectedItems),t.loop!==e.loop&&void 0!==e.loop&&(t.loop=e.loop),t;const r=new me(e);return n(r),r}),[e.getAllItems,e.getSelectedItems,e.loop])}({getAllItems:fg,getSelectedItems:hg,orientation:"vertical"}),l=F.useMemo((()=>({useGesture:!!r,hasPadding:void 0===o||!!o})),[o,r]);return F.useEffect((()=>(a&&a.current&&r&&s.setElement(a.current),()=>{s.setElement()})),[r]),ae.jsx(ig.Provider,{value:l,children:ae.jsx("ul",{ref:a,...i,className:pe({[`gap_${null==n?void 0:n.replace("-","_")}`]:!!n,[ag]:!0}),"data-dense":t?"true":void 0,children:e})})};mg.displayName="List";const gg=Object.assign(mg,{Item:pg}),bg=(e,t)=>ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ae.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}),yg=F.forwardRef(bg),vg=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,xg=e=>"init"in e,_g=e=>!!e.write,wg=e=>"v"in e||"e"in e,Sg=e=>{if("e"in e)throw e.e;if(!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},Cg=new WeakMap,Eg=e=>{var t;return Rg(e)&&!!(null==(t=Cg.get(e))?void 0:t[0])},kg=(e,t)=>{let n=Cg.get(e);if(!n){n=[!0,new Set],Cg.set(e,n);const t=()=>{n[0]=!1};e.then(t,t)}n[1].add(t)},Rg=e=>"function"==typeof(null==e?void 0:e.then),Mg=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then((()=>{n.p.delete(e)}),(()=>{n.p.delete(e)})))},Ag=(e,t,n)=>{const r=n(e),o="v"in r,i=r.v;if(Rg(t))for(const o of r.d.keys())Mg(e,t,n(o));r.v=t,delete r.e,o&&Object.is(i,r.v)||(++r.n,Rg(i)&&(e=>{const t=Cg.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))})(i))},Lg=(e,t,n)=>{var r;const o=new Set;for(const t of(null==(r=n.get(e))?void 0:r.t)||[])n.has(t)&&o.add(t);for(const e of t.p)o.add(e);return o},Ig=Symbol(),Pg=(e=new WeakMap,t=new WeakMap,n=new WeakMap,r=new Set,o=new Set,i=new Set,a={},s=(e,...t)=>e.read(...t),l=(e,...t)=>e.write(...t),u=(e,t)=>{var n;return null==(n=e.unstable_onInit)?void 0:n.call(e,t)},c=(e,t)=>{var n;return null==(n=e.onMount)?void 0:n.call(e,t)},...d)=>{const p=d[0]||(t=>{if(!t)throw new Error("Atom is undefined or null");let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n),null==u||u(t,w)),n}),f=d[1]||(()=>{const e=[],n=t=>{try{t()}catch(t){e.push(t)}};do{a.f&&n(a.f);const e=new Set,s=e.add.bind(e);r.forEach((e=>{var n;return null==(n=t.get(e))?void 0:n.l.forEach(s)})),r.clear(),i.forEach(s),i.clear(),o.forEach(s),o.clear(),e.forEach(n),r.size&&h()}while(r.size||i.size||o.size);if(e.length)throw new AggregateError(e)}),h=d[2]||(()=>{const e=[],o=new WeakSet,i=new WeakSet,a=Array.from(r);for(;a.length;){const r=a[a.length-1],s=p(r);if(i.has(r))a.pop();else if(o.has(r)){if(n.get(r)===s.n)e.push([r,s]);else if(n.has(r))throw new Error("[Bug] invalidated atom exists");i.add(r),a.pop()}else{o.add(r);for(const e of Lg(r,s,t))o.has(e)||a.push(e)}}for(let t=e.length-1;t>=0;--t){const[o,i]=e[t];let a=!1;for(const e of i.d.keys())if(e!==o&&r.has(e)){a=!0;break}a&&(m(o),y(o)),n.delete(o)}}),m=d[3]||(e=>{var o;const i=p(e);if(wg(i)){if(t.has(e)&&n.get(e)!==i.n)return i;if(Array.from(i.d).every((([e,t])=>m(e).n===t)))return i}i.d.clear();let l=!0;const u=()=>{t.has(e)&&(y(e),h(),f())},c=n=>{var r;if(vg(e,n)){const e=p(n);if(!wg(e)){if(!xg(n))throw new Error("no atom init");Ag(n,n.init,p)}return Sg(e)}const o=m(n);try{return Sg(o)}finally{i.d.set(n,o.n),Eg(i.v)&&Mg(e,i.v,o),null==(r=t.get(n))||r.t.add(e),l||u()}};let d,g;const v={get signal(){return d||(d=new AbortController),d.signal},get setSelf(){return _g(e)||console.warn("setSelf function cannot be used with read-only atom"),!g&&_g(e)&&(g=(...t)=>{if(l&&console.warn("setSelf function cannot be called in sync"),!l)try{return b(e,...t)}finally{h(),f()}}),g}},x=i.n;try{const t=s(e,c,v);return Ag(e,t,p),Rg(t)&&(kg(t,(()=>null==d?void 0:d.abort())),t.then(u,u)),i}catch(e){return delete i.v,i.e=e,++i.n,i}finally{l=!1,x!==i.n&&n.get(e)===x&&(n.set(e,i.n),r.add(e),null==(o=a.c)||o.call(a,e))}}),g=d[4]||(e=>{const r=[e];for(;r.length;){const e=r.pop(),o=p(e);for(const i of Lg(e,o,t)){const e=p(i);n.set(i,e.n),r.push(i)}}}),b=d[5]||((e,...t)=>{let n=!0;const o=e=>Sg(m(e)),i=(t,...o)=>{var i;const s=p(t);try{if(vg(e,t)){if(!xg(t))throw new Error("atom not writable");const e=s.n,n=o[0];return Ag(t,n,p),y(t),void(e!==s.n&&(r.add(t),null==(i=a.c)||i.call(a,t),g(t)))}return b(t,...o)}finally{n||(h(),f())}};try{return l(e,o,i,...t)}finally{n=!1}}),y=d[6]||(e=>{var n;const o=p(e),i=t.get(e);if(i&&!Eg(o.v)){for(const[t,s]of o.d)if(!i.d.has(t)){const o=p(t);v(t).t.add(e),i.d.add(t),s!==o.n&&(r.add(t),null==(n=a.c)||n.call(a,t),g(t))}for(const t of i.d||[])if(!o.d.has(t)){i.d.delete(t);const n=x(t);null==n||n.t.delete(e)}}}),v=d[7]||(e=>{var n;const r=p(e);let i=t.get(e);if(!i){m(e);for(const t of r.d.keys()){v(t).t.add(e)}if(i={l:new Set,d:new Set(r.d.keys()),t:new Set},t.set(e,i),null==(n=a.m)||n.call(a,e),_g(e)){const t=()=>{let t=!0;const n=(...n)=>{try{return b(e,...n)}finally{t||(h(),f())}};try{const r=c(e,n);r&&(i.u=()=>{t=!0;try{r()}finally{t=!1}})}finally{t=!1}};o.add(t)}}return i}),x=d[8]||(e=>{var n;const r=p(e);let o=t.get(e);if(!o||o.l.size||Array.from(o.t).some((n=>{var r;return null==(r=t.get(n))?void 0:r.d.has(e)})))return o;o.u&&i.add(o.u),o=void 0,t.delete(e),null==(n=a.u)||n.call(a,e);for(const t of r.d.keys()){const n=x(t);null==n||n.t.delete(e)}}),_=[e,t,n,r,o,i,a,s,l,u,c,p,f,h,m,g,b,y,v,x],w={get:e=>Sg(m(e)),set:(e,...t)=>{try{return b(e,...t)}finally{h(),f()}},sub:(e,t)=>{const n=v(e).l;return n.add(t),f(),()=>{n.delete(t),x(e),f()}}};return Object.defineProperty(w,Ig,{value:_}),w},Tg=kg;let Dg,Og=0;function zg(e,t){const n="atom"+ ++Og,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=Ng,r.write=qg),r}function Ng(e){return e(this)}function qg(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function jg(){return Pg()}const Fg=F.createContext(void 0);function Bg(e){return F.useContext(Fg)||(Dg||(Dg=jg(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Dg),globalThis.__JOTAI_DEFAULT_STORE__!==Dg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),Dg)}function $g({children:e,store:t}){const n=F.useRef(void 0);return t||n.current||(n.current=jg()),F.createElement(Fg.Provider,{value:t||n.current},e)}const Wg=e=>"function"==typeof(null==e?void 0:e.then),Hg=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},Gg=B.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Hg(e),e)}),Vg=new WeakMap,Ug=(e,t)=>{let n=Vg.get(e);return n||(n=new Promise(((r,o)=>{let i=e;const a=e=>t=>{i===e&&r(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();Wg(e)?(Vg.set(e,n),i=e,e.then(a(e),s(e)),Tg(e,l)):r(e)}catch(e){o(e)}};e.then(a(e),s(e)),Tg(e,l)})),Vg.set(e,n)),n};function Yg(e,t){const{delay:n,unstable_promiseStatus:r=!B.use}={},o=Bg(),[[i,a,s],l]=F.useReducer((t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]}),void 0,(()=>[o.get(e),o,e]));let u=i;if(a===o&&s===e||(l(),u=o.get(e)),F.useEffect((()=>{const t=o.sub(e,(()=>{if(r)try{const t=o.get(e);Wg(t)&&Hg(Ug(t,(()=>o.get(e))))}catch(e){}"number"!=typeof n?l():setTimeout(l,n)}));return l(),t}),[o,e,n,r]),F.useDebugValue(u),Wg(u)){const t=Ug(u,(()=>o.get(e)));return r&&Hg(t),Gg(t)}return u}const Kg=({itemIndex:e,sectionIndex:t})=>e?`${t}-${e}`:`${t}`,Xg=zg(),Qg=zg((e=>{var t,n;return null!==(t=null===(n=e(Xg))||void 0===n?void 0:n.numberOfSections)&&void 0!==t?t:0})),Jg=zg((e=>{var t,n;return null!==(t=null===(n=e(Xg))||void 0===n?void 0:n.numberOfItemsInSection)&&void 0!==t?t:()=>0})),Zg=zg((e=>{var t,n;return null!==(t=null===(n=e(Xg))||void 0===n?void 0:n.keyExtractor)&&void 0!==t?t:Kg})),eb=zg((e=>{var t;const n=null===(t=e(Xg))||void 0===t?void 0:t.children;return Array.isArray(n)?n[1]:n})),tb=zg((e=>{var t;const n=null===(t=e(Xg))||void 0===t?void 0:t.children;if(Array.isArray(n))return n[0]})),nb=zg((e=>{var t;return null===(t=e(Xg))||void 0===t?void 0:t.onClick})),rb=({id:e,sectionIndex:t})=>{const n=Yg(tb);if(void 0===n)return null;const r=B.memo(n,((e,t)=>e.id===t.id));return B.createElement(B.Fragment,null,B.createElement(Mm,null),B.createElement(pg,null,B.createElement(r,{id:e,sectionIndex:t})),B.createElement(Mm,null))},ob=({id:e,itemIndex:t,sectionIndex:n})=>B.createElement("div",null,`${n}:${t} - ${e}`),ib=({id:e,itemIndex:t,sectionIndex:n})=>{const r=Yg(nb),o=Yg(eb),i=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,a=B.memo(null!=o?o:ob,((e,t)=>e.id===t.id));return B.createElement(pg,{onClick:i},B.createElement(a,{id:e,itemIndex:t,sectionIndex:n}))},ab=e=>({map:t=>{const n=[];for(let r=0;r<e;r++)n.push(t(r));return n}}),sb=()=>{const e=Yg(Qg),t=Yg(Jg),n=Yg(Zg);return ab(e).map((e=>{const r=n({sectionIndex:e});return B.createElement(gg,{key:r},B.createElement(rb,{id:r,sectionIndex:e}),ab(t(e)).map((t=>{const r=n({sectionIndex:e,itemIndex:t});return B.createElement(ib,{key:r,id:r,itemIndex:t,sectionIndex:e})})))}))},lb=e=>{const t=jg();return t.set(Xg,e),B.createElement($g,{store:t},B.createElement(sb,null))},ub="12px",cb="nebula-table-utils-head-menu-button",db="sn-copy-cell";let pb=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const fb="nebula-table-utils-column-adjuster";let hb=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),mb=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const gb={darker:.15,brighter:.3,opacity:.03},bb={darker:.3,brighter:.5,opacity:.05};let yb=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const vb=({args:e,noOfLeftDims:t})=>{const n=(({handler:e,model:t,apis:n})=>{const r=F.useCallback((e=>e.qFieldLabels&&e.qFieldLabels.length>0&&""!==e.qFieldLabels[0]?e.qFieldLabels[0]:e.qFieldDefs&&e.qFieldDefs[0]?e.qFieldDefs[0]:n.translate("properties.MissingTitle")),[n]);return F.useMemo((()=>t.layout.qHyperCube.qEffectiveInterColumnSortOrder.map((t=>{if(-1===t)return{id:"PSEUDO-DIM",title:n.translate("Common.Values")};const o=e.getDimensions()[t];return{id:o.qDef.cId,title:r(o.qDef),visible:!0}}))),[t.layout.qHyperCube.qEffectiveInterColumnSortOrder,e,n,r])})(e),r=F.useMemo((()=>n.slice(0,t)),[n,t]),o=F.useMemo((()=>n.slice(t)),[n,t]),i=F.useMemo((()=>[{id:"rows",title:e.apis.translate("Common.Rows"),items:r},{id:"columns",title:e.apis.translate("Common.Columns"),items:o}]),[r,o,e.apis]),a=(e=>({sectionIndex:t})=>B.createElement("b",null,e[t].title))(i),s=(e=>({sectionIndex:t,itemIndex:n})=>B.createElement(B.Fragment,null,B.createElement(yg,null),e[t].items[n].title))(i),l=F.useCallback((({sectionIndex:e,itemIndex:t})=>t?i[e].items[t].id:i[e].id),[i]);return B.createElement(lb,{numberOfSections:i.length,numberOfItemsInSection:e=>i[e].items.length,keyExtractor:l},a,s)},xb=(e,t)=>ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ae.jsx("path",{d:"M1.5.5A.5.5 0 0 0 1 1v13.5a.5.5 0 0 0 .5.5H15a.5.5 0 0 0 .5-.5v-6A.5.5 0 0 0 15 8H8V1a.5.5 0 0 0-.5-.5zm.5 4v-3h5v6.793l-5 5V9.5h1.5v-1H2v-3h1.5v-1zm.707 9.5 5-5H14.5v5h-3v-1.5h-1V14h-3v-1.5h-1V14z"})}),_b=F.forwardRef(xb),wb=({args:e})=>{const t=(({handler:e,apis:t})=>{const n=F.useCallback((e=>e.title||e.qFallbackTitle||t.translate("properties.MissingTitle")),[t]);return F.useMemo((()=>e.getMeasures().map((e=>({id:e.qDef.cId,title:n(e),visible:!0})))),[e,n])})(e),n=(r=e.apis.translate,()=>B.createElement("b",null,r("Common.Values")));var r;const o=(e=>({itemIndex:t})=>B.createElement(B.Fragment,null,B.createElement(_b,null),e[t].title))(t),i=F.useCallback((({itemIndex:e})=>e?t[e].id:"measures"),[t]);return B.createElement(lb,{numberOfSections:1,numberOfItemsInSection:()=>t.length,keyExtractor:i},n,o)},Sb=e=>{var t;const[n,r]=F.useState(""),{args:o}=e,{apis:i,model:a}=o,s=F.useCallback((e=>{r(e.target.value)}),[r]);return B.createElement(_m,{direction:"col",height:"100%"},B.createElement(_m,{pt:"s",pr:"m",pl:"m",pb:"m"},B.createElement(og,{"data-testid":"chart-exploration-search-input",type:"search",defaultValue:n,placeholder:i.translate("Common.Search"),onChange:s})),B.createElement(vb,{args:o,noOfLeftDims:null!==(t=a.layout.qHyperCube.qNoOfLeftDims)&&void 0!==t?t:-1}),B.createElement(_m,{height:"100%",direction:"col-reverse"},B.createElement(wb,{args:o})))},Cb=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:Sb,classification:{tags:["exploration"],exclusive:!0}}};var Eb={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},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(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},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(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Ie});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)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 p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function v(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=y(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=y(d,f),b=y(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function _(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:_,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var s=v({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:v,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===_({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=_({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function 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),k={},R=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function A(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function I(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=A(e[n||t])?i:e[t],e=e[n||t]}})),e}function P(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){P(e[r],t[r])||(n=!1)})),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!P(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?E({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);P(i,a)||L(t,o)||(A(a)?r.push({op:"add",path:s,value:i}):M(i)&&M(a)?r=r.concat(k.generate(a,i,s)):R(i)&&R(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&A(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(P(t,o))return r;if(!A(t[0])&&A(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(k.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){A(t[o])&&!L(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=I(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(R(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(R(a)&&R(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return 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(M(a)&&M(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!L(n,e)&&delete n[e]})),E(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=I(e,t.from);R(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(R(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return E({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):E(e,t)};const T=k,D=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function z(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var q={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,q)},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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=z(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=z(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=z(t,e);return i&&!i.disabled}};return n}};var F="movingAverage";function B(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===F)return n[r]}function $(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===F)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const H={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:r,properties:o,layout:a})){var y=w.getDimComp(c,1),v=w.getDimComp(c,0),x=w.getAggrComp(b,y,v);b=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,W)},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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(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($(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($(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($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=B(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ye="qDef.base.qDef",ve="qLibraryId",xe="qDef.base.qLibraryId",_e="qDef.qLabel",we="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Re={initBase:function(e,t){(t||Re.isValid(e))&&(n(e,ye,i(e,be)),n(e,xe,i(e,ve)),n(e,Se,i(e,_e)),n(e,Ce,i(e,we)))},restoreBase:function(e){Re.isValid(e)&&(n(e,be,i(e,ye)),n(e,ve,i(e,xe)),n(e,_e,i(e,Se)),n(e,we,i(e,Ce)),i(e,Ee)&&i(e,ke)&&n(e,Ee,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ye),n=i(e,xe);return void 0!==t||void 0!==n}};const Me=Re;function Ae(e){return Ae="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},Ae(e)}var Le={accumulation:j,movingAverage:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ie={modifiers:Le,apply:Te,applyModifiers:De,cleanUpMeasure:Oe,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:ze,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Fe(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:qe};var Pe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Pe[n.id]=Pe[n.id]||{isFirstTime:!0};var u=Pe[n.id].isFirstTime;if(Pe[n.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[n.id].lastReloadTime;if(Pe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),ze({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:Fe(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);$e(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return h&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(Le[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=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),De({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ae(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return je(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function De(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),$e(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=je(r)),!n.length)return Promise.resolve();if(!ze({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(n)||Me.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(s++,"object"!==Ae(Le[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)");Le[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});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:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});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=i(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),We(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&!Le[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(e)}function ze(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:Fe(e),properties:n,layout:r})}))}function Ne(e){var t=Fe(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Le[r.type]&&!r.disabled)return r}}function qe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function We(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ae(t)&&(t.disabled||!Le[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:Fe(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ae(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.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 Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):D(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=je(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=Fe(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=l(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>$e});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var s,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,l(r.qMeasures));var a,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.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 o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},y=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},v=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(r=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var _=n(909),w=n.n(_);function S(e,t){var n=w()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return w()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const A=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},L=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},I=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},P=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},D=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=S(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=C(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},z=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},s=E(a.max,o.dimensions.length,k),l=E(a.min,o.dimensions.length,0);return{maxDimensions:E(i.max,s,k),minDimensions:E(i.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},q=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},n,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=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>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(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 R(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)?R(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)}))}},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},W=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function H(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:o,properties:a}),r||v(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=q({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,y=i.getValue(g,u||"").qHyperCubeDef,v=z({exportFormat:t,dataDefinition:a}),x=v.maxDimensions,_=v.minDimensions,w=v.maxMeasures,S=v.minMeasures,C=l.defaultDimension,E=void 0===C?P():C,k=l.defaultMeasure,R=void 0===k?T():k;y.qDimensions.length=0,y.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:_,maxMeasures:w,minMeasures:S})&&F({exportFormat:t,maxDimensions:x,minDimensions:_,maxMeasures:w,minMeasures:S,newHyperCubeDef:y}),D({exportFormat:t,maxDimensions:x,minDimensions:_,newHyperCubeDef:y,defaultDimension:E}),O({exportFormat:t,maxMeasures:w,minMeasures:S,newHyperCubeDef:y,defaultMeasure:R}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:y}),L("qMaxStackedCells",b,y),L("qNoOfLeftDims",b,y),I("qInitialDataFetch",b,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),I("qMode",b,y,"S"),I("qReductionMode",b,y,"N"),I("qSortbyYValue",b,y),I("qIndentMode",b,y),I("qShowTotalsAbove",b,y),A(g,t,r),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return W({measures:y.qMeasures,modifierTypes:M}),p&&H(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&H(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],s=t.length;if(U(a,t,r,o),Y(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 i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(r,o);var l=r[r.length-1];if(l){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,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":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(s.expression=i)):(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 ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(ne(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(n={auto:o,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,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ye=["bar","marker","line"];const ve=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):H(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var 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,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},_e=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}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return i?(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,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ve({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),_e(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};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,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Se(n,r,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Se(n,r,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Re="conditionalColoring",Me="measures",Ae="qDef.conditionalColoring";const Le={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Re,arrayName:Me,itemPath:Ae})},unquarantine:function(e){Ee({properties:e,arrayPath:ke,itemPath:Ae,arrayName:Me,quarantineName:Re})}};var Ie="qHyperCubeDef.qMeasures",Pe="measures",Te="qHyperCubeDef.qDimensions",De="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",ze="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",qe="alternativeDimensions",je="qCalcCondition",Fe="conditionalShowHide";const Be={quarantine:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:Fe,arrayName:Pe,itemPath:je}),Ce({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:De,itemPath:je})},unquarantine:function(e){Ee({properties:e,arrayPath:Ie,quarantineName:Fe,arrayName:Pe,itemPath:je}),Ee({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:De,itemPath:je})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:ze,itemPath:je}),Ce({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:qe,itemPath:je})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:ze,itemPath:je}),Ee({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:qe,itemPath:je})}},$e={hypercube:G,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:Ce,unquarantineArrayProp:Ee,conditionalColoring:Le,conditionalShow:Be}})(),r.default})()}(Eb);var kb=n(Eb.exports);const Rb="qHyperCubeDef.qMeasures",Mb="measures",Ab="qHyperCubeDef.qDimensions",Lb="dimensions",Ib="qDef.representation",Pb="tableRepresentation",Tb="qDef.conditionalColoring",Db="conditionalColoring",Ob="qMiniChartDef",zb="miniChartDef";function Nb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function qb(e){if("object"==typeof e&&Nb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const jb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function Fb(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Nb(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in jb}(e)){const t=jb[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function Bb(e){let t,n,r=0;const o="string"==typeof e?Fb(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function $b(e){let t,n,r=0;const o="string"==typeof e?Fb(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,r=0;else{switch(n=l-u,t=0===n?0:n/c,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}function Wb(e){if(Nb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?qb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Hb(e,t){return Nb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Hb(Fb(e))}function Gb(e){return Nb(e)?1===e.a?Wb(e):Hb(e):Gb(Fb(e))}const Vb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Ub(...e){const t=Fb(...e);return t.invalid||function(e){return.2126*Vb(e.r)+.7152*Vb(e.g)+.0722*Vb(e.b)}(t)<.4}function Yb(...e){const t=Fb(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Bb(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Fb(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>Ub(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Wb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Hb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Gb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Nb(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?qb(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Fb(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,r=0;else{switch(n=l-u,t=c>.5?n/(2-l-u):n/(l+u),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*c})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=Bb(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=$b(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=$b(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Yb(o(18*e)),getDarkenedColor:(e=1)=>Yb(o(18*-e))}}function Kb(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}var Xb,Qb,Jb,Zb="top",ey="top-right",ty="right",ny="bottom-right",ry="bottom",oy="bottom-left",iy="left",ay="top-left";Kb(Kb(Kb(Kb(Kb(Kb(Kb(Kb(Kb(Kb(Xb={},"equal-equal",[Zb,ry]),"equal-higher",[ry,ny]),"equal-lower",[Zb,ey]),"equal-void",[Zb,ry]),"higher-equal",[iy,oy,Zb,ey]),"higher-higher-acute",[ry,oy,iy,ey]),"higher-higher-obtuse",[ry,Zb]),"higher-lower-negative",[Zb,ey,ty]),"higher-lower-positive",[ry,oy,iy]),"higher-void",[Zb]),Kb(Kb(Kb(Kb(Kb(Kb(Kb(Kb(Kb(Kb(Xb,"lower-equal",[Zb]),"lower-higher-negative",[Zb,ay]),"lower-higher-positive",[ny]),"lower-lower-acute",[Zb,ay,iy,ey,ty]),"lower-lower-obtuse",[Zb,ry]),"lower-void",[Zb]),"void-equal",[Zb]),"void-higher",[Zb,ry]),"void-lower",[Zb,ry,iy]),"void-void",[Zb]),Kb(Xb,"unclassified",[Zb,ry,ty,iy,ey,ny,oy,ay]);var sy=function(){if(Jb)return Qb;Jb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Qb=function e(){var t,n,r,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Qb}();function ly(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cy(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(sy);var dy=1/.7,py="\\s*([+-]?\\d+)\\s*",fy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",my=/^#([0-9a-f]{3,8})$/,gy=new RegExp(`^rgb\\(${py},${py},${py}\\)$`),by=new RegExp(`^rgb\\(${hy},${hy},${hy}\\)$`),yy=new RegExp(`^rgba\\(${py},${py},${py},${fy}\\)$`),vy=new RegExp(`^rgba\\(${hy},${hy},${hy},${fy}\\)$`),xy=new RegExp(`^hsl\\(${fy},${hy},${hy}\\)$`),_y=new RegExp(`^hsla\\(${fy},${hy},${hy},${fy}\\)$`),wy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Sy(){return this.rgb().formatHex()}function Cy(){return this.rgb().formatRgb()}function Ey(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=my.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ky(t):3===n?new Ly(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ry(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ry(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=gy.exec(e))?new Ly(t[1],t[2],t[3],1):(t=by.exec(e))?new Ly(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=yy.exec(e))?Ry(t[1],t[2],t[3],t[4]):(t=vy.exec(e))?Ry(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xy.exec(e))?zy(t[1],t[2]/100,t[3]/100,1):(t=_y.exec(e))?zy(t[1],t[2]/100,t[3]/100,t[4]):wy.hasOwnProperty(e)?ky(wy[e]):"transparent"===e?new Ly(NaN,NaN,NaN,0):null}function ky(e){return new Ly(e>>16&255,e>>8&255,255&e,1)}function Ry(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ly(e,t,n,r)}function My(e){return e instanceof cy||(e=Ey(e)),e?new Ly((e=e.rgb()).r,e.g,e.b,e.opacity):new Ly}function Ay(e,t,n,r){return 1===arguments.length?My(e):new Ly(e,t,n,null==r?1:r)}function Ly(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Iy(){return`#${Oy(this.r)}${Oy(this.g)}${Oy(this.b)}`}function Py(){const e=Ty(this.opacity);return`${1===e?"rgb(":"rgba("}${Dy(this.r)}, ${Dy(this.g)}, ${Dy(this.b)}${1===e?")":`, ${e})`}`}function Ty(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oy(e){return((e=Dy(e))<16?"0":"")+e.toString(16)}function zy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qy(e,t,n,r)}function Ny(e){if(e instanceof qy)return new qy(e.h,e.s,e.l,e.opacity);if(e instanceof cy||(e=Ey(e)),!e)return new qy;if(e instanceof qy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new qy(a,s,l,e.opacity)}function qy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function jy(e){return(e=(e||0)%360)<0?e+360:e}function Fy(e){return Math.max(0,Math.min(1,e||0))}function By(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ly(cy,Ey,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sy,formatHex:Sy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ny(this).formatHsl()},formatRgb:Cy,toString:Cy}),ly(Ly,Ay,uy(cy,{brighter(e){return e=null==e?dy:Math.pow(dy,e),new Ly(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ly(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ly(Dy(this.r),Dy(this.g),Dy(this.b),Ty(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Iy,formatHex:Iy,formatHex8:function(){return`#${Oy(this.r)}${Oy(this.g)}${Oy(this.b)}${Oy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Py,toString:Py})),ly(qy,(function(e,t,n,r){return 1===arguments.length?Ny(e):new qy(e,t,n,null==r?1:r)}),uy(cy,{brighter(e){return e=null==e?dy:Math.pow(dy,e),new qy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new qy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ly(By(e>=240?e-240:e+120,o,r),By(e,o,r),By(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qy(jy(this.h),Fy(this.s),Fy(this.l),Ty(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ty(this.opacity);return`${1===e?"hsl(":"hsla("}${jy(this.h)}, ${100*Fy(this.s)}%, ${100*Fy(this.l)}%${1===e?")":`, ${e})`}`}}));const $y=Math.PI/180,Wy=180/Math.PI,Hy=4/29,Gy=6/29,Vy=3*Gy*Gy;function Uy(e){if(e instanceof Yy)return new Yy(e.l,e.a,e.b,e.opacity);if(e instanceof Zy)return ev(e);e instanceof Ly||(e=My(e));var t,n,r=Jy(e.r),o=Jy(e.g),i=Jy(e.b),a=Ky((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ky((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ky((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Yy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Yy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ky(e){return e>.008856451679035631?Math.pow(e,1/3):e/Vy+Hy}function Xy(e){return e>Gy?e*e*e:Vy*(e-Hy)}function Qy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Jy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ev(e){if(isNaN(e.h))return new Yy(e.l,0,0,e.opacity);var t=e.h*$y;return new Yy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ly(Yy,(function(e,t,n,r){return 1===arguments.length?Uy(e):new Yy(e,t,n,null==r?1:r)}),uy(cy,{brighter(e){return new Yy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Yy(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ly(Qy(3.1338561*(t=.96422*Xy(t))-1.6168667*(e=1*Xy(e))-.4906146*(n=.82521*Xy(n))),Qy(-.9787684*t+1.9161415*e+.033454*n),Qy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ly(Zy,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Zy)return new Zy(e.h,e.c,e.l,e.opacity);if(e instanceof Yy||(e=Uy(e)),0===e.a&&0===e.b)return new Zy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Wy;return new Zy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Zy(e,t,n,null==r?1:r)}),uy(cy,{brighter(e){return new Zy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Zy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ev(this).rgb()}}));var tv=e=>()=>e;function nv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):tv(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?nv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):tv(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ay(e)).r,(t=Ay(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=nv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var rv="center",ov="bottom";[{key:"NoDataExist",alignment:rv,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:rv,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:rv,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:rv},{key:"DataRangeIncludingZero",alignment:ov},{key:"LimitedData",alignment:ov},{key:"NegativeOrZeroValues",alignment:ov}].reduce((function(e,t){return e[t.key]=t,e}),{});var iv,av=["__proto__","constructor"];function sv(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!av.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function lv(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function uv(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dv)):void 0===t&&(t=cv);for(var n,r,o,i,a,s=new hv(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new hv(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(fv)}function cv(e){return e.children}function dv(e){return Array.isArray(e)?e[1]:null}function pv(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function fv(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function hv(e){this.data=e,this.depth=this.height=0,this.parent=null}function mv(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o="rows"===(null==r?void 0:r.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}hv.prototype=uv.prototype={constructor:hv,count:function(){return this.eachAfter(lv)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return uv(this).eachBefore(pv)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},iv=function(e){
|
|
37
37
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
38
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},iv({exports:{}});const gv="qHyperCubeDef.qDimensions",bv="dimensions",yv="qOtherTotalSpec.qTotalMode",vv="totalMode",xv={quarantine(e){kb.quarantineArrayProp({properties:e,arrayPath:gv,quarantineName:vv,arrayName:bv,itemPath:yv})},unquarantine(e){kb.unquarantineArrayProp({properties:e,arrayPath:gv,quarantineName:vv,arrayName:bv,itemPath:yv})}};function _v(e){const t=mv(e);return(e,n,r,o)=>{var i,a,s;const l=kb.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),u=l.qProperty.qHyperCubeDef.qDimensions.length,c=l.qProperty.qHyperCubeDef.qMeasures.length;let d,p=l.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&sv(l,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const h=null===(i=l.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;h?(p=h,d=[...h],sv(l,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),l.qProperty.qLayoutExclude.quarantine&&delete l.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const m=+(p.indexOf(-1)>-1),g=u+m;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-m);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=l.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&sv(l,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(s=d)||void 0===s?void 0:s.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&(kb.unquarantineProperty(l.qProperty,"noOfLeftDims"),kb.unquarantineProperty(l.qProperty,"exludedNoOfLeftDims"))}return kb.conditionalShow.unquarantine(l.qProperty),xv.unquarantine(l.qProperty),(e=>{kb.unquarantineArrayProp({properties:e,arrayPath:Ab,itemPath:Ib,arrayName:Lb,quarantineName:Pb}),kb.unquarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ib,arrayName:Mb,quarantineName:Pb}),kb.unquarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Tb,arrayName:Mb,quarantineName:Db}),kb.unquarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ob,arrayName:Mb,quarantineName:zb})})(l.qProperty),kb.unquarantineProperty(l.qProperty,"pivotTableIndentMode"),l}}function wv(e,t){var n;const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=r.slice(),i=r.indexOf(-1);i>-1&&r.splice(i,1);const a=kb.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),s=a.properties.qHyperCubeDef,l=s.qDimensions.length,u=s.qMeasures.length;let c=s.qInterColumnSortOrder;sv(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),kb.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(n=a.properties.qLayoutExclude.quarantine)||void 0===n?void 0:n.interColSortOrder;d&&(c=d,sv(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),sv(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<l+u;e++)c.length<=e&&c.push(e);return kb.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),kb.quarantineProperty(a.properties,"qHyperCubeDef.exludedNoOfLeftDims","exludedNoOfLeftDims"),kb.conditionalShow.quarantine(a.properties),xv.quarantine(a.properties),(e=>{kb.quarantineArrayProp({properties:e,arrayPath:Ab,itemPath:Ib,arrayName:Lb,quarantineName:Pb}),kb.quarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ib,arrayName:Mb,quarantineName:Pb}),kb.quarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Tb,arrayName:Mb,quarantineName:Db}),kb.quarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ob,arrayName:Mb,quarantineName:zb})})(a.properties),a}const Sv={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Cv=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),Ev=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const kv=e=>{switch(null==e?void 0:e.type){case"url":return Cv.Link;case"image":return Cv.Image;case"indicator":return Cv.Indicator;case"miniChart":return Cv.MiniChart;default:return Cv.Text}},Rv=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isImagesSupportedInIndentMode:n}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",options(t,r,o){const{qIndentMode:i}=o.properties.qHyperCubeDef,a=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i&&n)&&a.push({value:"image",translation:"Object.Table.Representation.Image"}),a}}},Mv=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>kv(e.qDef.representation)===Cv.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{var r,o;if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:s,qIndentMode:l}=n.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(r=null==s?void 0:s.indexOf(e))&&void 0!==r?r:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&l}}}}}}},Av=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:Rv({isImagesEnabled:a,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:i}}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>kv(e.qDef.representation)===Cv.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>{var t;return kv(e.qDef.representation)===Cv.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===Ev.Dimension}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>{var t;return kv(e.qDef.representation)===Cv.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===Ev.Attribute}},...Mv(a,i)}},Lv=(e,t)=>{var n;const{anything:r}=e,o=null===(n=r.sense)||void 0===n?void 0:n.isUnsupportedFeature,i=!(null!=o&&o("tableImages"))&&t[Cv.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[Cv.MiniChart],s=!(null!=o&&o("tableIndicators"))&&t[Cv.Indicator],l=i&&t[Cv.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{var t;const{qIndentMode:n}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!n&&i||n&&l)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),a&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(n)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>kv(e.qDef.representation)===Cv.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:a?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Iv,Pv,Tv,Dv;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Iv||(Iv={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Pv||(Pv={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(Tv||(Tv={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Dv||(Dv={}));const Ov="image",zv=(e,t,n)=>{var r,o,i;if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(r=null===(o=n.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==r?r:-1;let s=null!==(i=n.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<s&&(s-=1);const l=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===l||l>=s},Nv=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:mb.Auto,translation:"Common.Auto"},{value:mb.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:mb.Pixels,translation:"Object.Table.Column.Pixels"},{value:mb.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:mb.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:hb.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===mb.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(hb.PixelsMin,Math.min(hb.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:hb.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===mb.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(hb.PercentageMin,Math.min(hb.PercentageMax,e.qDef.columnWidth.percentage)))}}}),qv=({key:e,translation:t,env:n})=>{var r,o;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;return!i||"labelTextAlign"===e||(null===(n=t.qDef.representation)||void 0===n?void 0:n.type)!==Ov}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(n=t.qDef.representation)||void 0===n?void 0:n.type)!==Ov)}}}},jv="TOTAL_OFF",Fv={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Pv.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Pv.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Bv="TOTAL_OFF",$v={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Pv.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Pv.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Wv=e=>{var t,n,r;const{translator:o,anything:i,flags:a}=e,s=(e=>{var t,n;const{translator:r,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:jv,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:jv,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&zv},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==jv&&zv(e,0,n)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Fv,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Av(e),...Nv()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Fv,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lv(e,{[Cv.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Cv.Indicator]:e.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}),...Nv()}}}}}}})(e),l=(null===(t=a.isPreviewToggleEnabled)||void 0===t?void 0:t.call(a,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1;return a.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?s:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Bv,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Bv,translation:"properties.off"},show:(null===(n=i.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r||!r.call(n,"totals"))&&zv},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>o.get("Object.Table.Totals"),show(e,t,n){var r,o,a;return!(null!==(r=i.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Bv&&zv(e,0,n)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:$v,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Av(e),...Nv()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:$v,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lv(e,{[Cv.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Cv.Indicator]:e.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR"),[Cv.ImagesInIndentMode]:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")}),...Nv()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function Hv(e,t){return function(){return null}}function Gv(){return Gv=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},Gv.apply(null,arguments)}function Vv(e){return Vv="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},Vv(e)}function Uv(e){return e&&"object"===Vv(e)&&e.constructor===Object}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Gv({},e):e;return Uv(e)&&Uv(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Uv(t[o])&&o in e?r[o]=Yv(e[o],t[o],n):r[o]=t[o])})),r}var Kv={exports:{}};function Xv(){}function Qv(){}Qv.resetWarningCache=Xv;Kv.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qv,resetWarningCache:Xv};return n.PropTypes=n,n}();var Jv=n(Kv.exports),Zv=(Jv.element,function(){return null});Zv.isRequired=(Jv.element.isRequired,function(){return null});var ex=function(){return null};function tx(e){var t=function(e,t){if("object"!=Vv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Vv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Vv(t)?t:t+""}function nx(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var rx={exports:{}},ox={},ix=60103,ax=60106,sx=60107,lx=60108,ux=60114,cx=60109,dx=60110,px=60112,fx=60113,hx=60120,mx=60115,gx=60116,bx=60121,yx=60122,vx=60117,xx=60129,_x=60131;if("function"==typeof Symbol&&Symbol.for){var wx=Symbol.for;ix=wx("react.element"),ax=wx("react.portal"),sx=wx("react.fragment"),lx=wx("react.strict_mode"),ux=wx("react.profiler"),cx=wx("react.provider"),dx=wx("react.context"),px=wx("react.forward_ref"),fx=wx("react.suspense"),hx=wx("react.suspense_list"),mx=wx("react.memo"),gx=wx("react.lazy"),bx=wx("react.block"),yx=wx("react.server.block"),vx=wx("react.fundamental"),xx=wx("react.debug_trace_mode"),_x=wx("react.legacy_hidden")}function Sx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ix:switch(e=e.type){case sx:case ux:case lx:case fx:case hx:return e;default:switch(e=e&&e.$$typeof){case dx:case px:case gx:case mx:case cx:return e;default:return t}}case ax:return t}}}var Cx=cx,Ex=ix,kx=px,Rx=sx,Mx=gx,Ax=mx,Lx=ax,Ix=ux,Px=lx,Tx=fx;ox.ContextConsumer=dx,ox.ContextProvider=Cx,ox.Element=Ex,ox.ForwardRef=kx,ox.Fragment=Rx,ox.Lazy=Mx,ox.Memo=Ax,ox.Portal=Lx,ox.Profiler=Ix,ox.StrictMode=Px,ox.Suspense=Tx,ox.isAsyncMode=function(){return!1},ox.isConcurrentMode=function(){return!1},ox.isContextConsumer=function(e){return Sx(e)===dx},ox.isContextProvider=function(e){return Sx(e)===cx},ox.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ix},ox.isForwardRef=function(e){return Sx(e)===px},ox.isFragment=function(e){return Sx(e)===sx},ox.isLazy=function(e){return Sx(e)===gx},ox.isMemo=function(e){return Sx(e)===mx},ox.isPortal=function(e){return Sx(e)===ax},ox.isProfiler=function(e){return Sx(e)===ux},ox.isStrictMode=function(e){return Sx(e)===lx},ox.isSuspense=function(e){return Sx(e)===fx},ox.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===sx||e===ux||e===xx||e===lx||e===fx||e===hx||e===_x||"object"==typeof e&&null!==e&&(e.$$typeof===gx||e.$$typeof===mx||e.$$typeof===cx||e.$$typeof===dx||e.$$typeof===px||e.$$typeof===vx||e.$$typeof===bx||e[0]===yx)},ox.typeOf=Sx,rx.exports=ox;var Dx=rx.exports,Ox=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Ox);return t&&t[1]||""}(e)||t}function Nx(e,t,n){var r=zx(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var qx="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),jx=Jv.oneOfType([Jv.func,Jv.object]),Fx=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Hv,deepmerge:Yv,elementAcceptingRef:Zv,elementTypeAcceptingRef:ex,exactProp:function(e){return e},formatMuiErrorMessage:nx,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return zx(e,"Component");if("object"===Vv(e))switch(e.$$typeof){case Dx.ForwardRef:return Nx(e,e.render,"ForwardRef");case Dx.Memo:return Nx(e,e.type,"memo");default:return}}},ponyfillGlobal:qx,refType:jx});function Bx(e){if(e.type)return e;if("#"===e.charAt(0))return Bx(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(nx(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function $x(e,t){return e=Bx(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Wx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Hx(e,t){if(null==e)return{};var n,r,o=Wx(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gx(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 Vx(e,t){if(e){if("string"==typeof e)return Gx(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)?Gx(e,t):void 0}}function Ux(e){return function(e){if(Array.isArray(e))return Gx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vx(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 Yx(e,t){return t?Yv(e,t,{clone:!1}):e}var Kx={xs:0,sm:600,md:960,lg:1280,xl:1920},Xx={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Kx[e],"px)")}};function Qx(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Xx;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Vv(t)){var o=e.theme.breakpoints||Xx;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function Jx(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Zx(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Jx(e.theme,o)||{};return Qx(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Jx(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=tx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function e_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Yx(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function t_(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var n_=Zx({prop:"border",themeKey:"borders",transform:t_}),r_=Zx({prop:"borderTop",themeKey:"borders",transform:t_}),o_=Zx({prop:"borderRight",themeKey:"borders",transform:t_}),i_=Zx({prop:"borderBottom",themeKey:"borders",transform:t_}),a_=Zx({prop:"borderLeft",themeKey:"borders",transform:t_}),s_=Zx({prop:"borderColor",themeKey:"palette"}),l_=Zx({prop:"borderRadius",themeKey:"shape"}),u_=e_(n_,r_,o_,i_,a_,s_,l_);function c_(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function d_(e){var t=function(t){var n=e(t);return t.css?Gv({},Yx(n,e(Gv({theme:t.theme},t.css))),c_(t.css,[e.filterProps])):t.sx?Gv({},Yx(n,e(Gv({theme:t.theme},t.sx))),c_(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Ux(e.filterProps)),t}var p_=Zx({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),f_=e_(p_,Zx({prop:"display"}),Zx({prop:"overflow"}),Zx({prop:"textOverflow"}),Zx({prop:"visibility"}),Zx({prop:"whiteSpace"})),h_=Zx({prop:"flexBasis"}),m_=Zx({prop:"flexDirection"}),g_=Zx({prop:"flexWrap"}),b_=Zx({prop:"justifyContent"}),y_=Zx({prop:"alignItems"}),v_=Zx({prop:"alignContent"}),x_=Zx({prop:"order"}),__=Zx({prop:"flex"}),w_=Zx({prop:"flexGrow"}),S_=Zx({prop:"flexShrink"}),C_=Zx({prop:"alignSelf"}),E_=Zx({prop:"justifyItems"}),k_=Zx({prop:"justifySelf"}),R_=e_(h_,m_,g_,b_,y_,v_,x_,__,w_,S_,C_,E_,k_),M_=Zx({prop:"gridGap"}),A_=Zx({prop:"gridColumnGap"}),L_=Zx({prop:"gridRowGap"}),I_=Zx({prop:"gridColumn"}),P_=Zx({prop:"gridRow"}),T_=Zx({prop:"gridAutoFlow"}),D_=Zx({prop:"gridAutoColumns"}),O_=Zx({prop:"gridAutoRows"}),z_=Zx({prop:"gridTemplateColumns"}),N_=Zx({prop:"gridTemplateRows"}),q_=Zx({prop:"gridTemplateAreas"}),j_=Zx({prop:"gridArea"}),F_=e_(M_,A_,L_,I_,P_,T_,D_,O_,z_,N_,q_,j_),B_=Zx({prop:"color",themeKey:"palette"}),$_=Zx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),W_=e_(B_,$_),H_=Zx({prop:"position"}),G_=Zx({prop:"zIndex",themeKey:"zIndex"}),V_=Zx({prop:"top"}),U_=Zx({prop:"right"}),Y_=Zx({prop:"bottom"}),K_=Zx({prop:"left"}),X_=e_(H_,G_,V_,U_,Y_,K_),Q_=Zx({prop:"boxShadow",themeKey:"shadows"});function J_(e){return e<=1?"".concat(100*e,"%"):e}var Z_=Zx({prop:"width",transform:J_}),ew=Zx({prop:"maxWidth",transform:J_}),tw=Zx({prop:"minWidth",transform:J_}),nw=Zx({prop:"height",transform:J_}),rw=Zx({prop:"maxHeight",transform:J_}),ow=Zx({prop:"minHeight",transform:J_}),iw=Zx({prop:"size",cssProperty:"width",transform:J_}),aw=Zx({prop:"size",cssProperty:"height",transform:J_}),sw=Zx({prop:"boxSizing"}),lw=e_(Z_,ew,tw,nw,rw,ow,sw);function uw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Vx(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.")}()}var cw={m:"margin",p:"padding"},dw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fw=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!pw[e])return[e];e=pw[e]}var t=uw(e.split(""),2),n=t[0],r=t[1],o=cw[n],i=dw[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),hw=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function mw(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function gw(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function bw(e){var t=mw(e.theme);return Object.keys(e).map((function(n){if(-1===hw.indexOf(n))return null;var r=gw(fw(n),t),o=e[n];return Qx(e,o,r)})).reduce(Yx,{})}bw.propTypes={},bw.filterProps=hw;var yw=Zx({prop:"fontFamily",themeKey:"typography"}),vw=Zx({prop:"fontSize",themeKey:"typography"}),xw=Zx({prop:"fontStyle",themeKey:"typography"}),_w=Zx({prop:"fontWeight",themeKey:"typography"}),ww=Zx({prop:"letterSpacing"}),Sw=Zx({prop:"lineHeight"}),Cw=Zx({prop:"textAlign"}),Ew=e_(yw,vw,xw,_w,ww,Sw,Cw),kw=Object.freeze({__proto__:null,alignContent:v_,alignItems:y_,alignSelf:C_,bgcolor:$_,border:n_,borderBottom:i_,borderColor:s_,borderLeft:a_,borderRadius:l_,borderRight:o_,borderTop:r_,borders:u_,bottom:Y_,boxSizing:sw,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||Xx,o=r.keys.reduce((function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(Gv({theme:t.theme},t[o]))),n}),null);return Yx(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Ux(e.filterProps)),t},color:B_,compose:e_,createUnarySpacing:mw,css:function(e){return d_(e)},display:f_,flex:__,flexBasis:h_,flexDirection:m_,flexGrow:w_,flexShrink:S_,flexWrap:g_,flexbox:R_,fontFamily:yw,fontSize:vw,fontStyle:xw,fontWeight:_w,grid:F_,gridArea:j_,gridAutoColumns:D_,gridAutoFlow:T_,gridAutoRows:O_,gridColumn:I_,gridColumnGap:A_,gridGap:M_,gridRow:P_,gridRowGap:L_,gridTemplateAreas:q_,gridTemplateColumns:z_,gridTemplateRows:N_,height:nw,justifyContent:b_,justifyItems:E_,justifySelf:k_,left:K_,letterSpacing:ww,lineHeight:Sw,maxHeight:rw,maxWidth:ew,minHeight:ow,minWidth:tw,order:x_,palette:W_,position:H_,positions:X_,right:U_,shadows:Q_,sizeHeight:aw,sizeWidth:iw,sizing:lw,spacing:bw,style:Zx,styleFunctionSx:d_,textAlign:Cw,top:V_,typography:Ew,width:Z_,zIndex:G_}),Rw="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Mw=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Aw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Mw.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Rw]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function Lw(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Iw="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},Pw="object"===("undefined"==typeof window?"undefined":Iw(window))&&"object"===("undefined"==typeof document?"undefined":Iw(document))&&9===document.nodeType;function Tw(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tx(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dw(e,t){return Dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dw(e,t)}function Ow(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dw(e,t)}function zw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Nw={}.constructor;function qw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(qw);if(e.constructor!==Nw)return e;var t={};for(var n in e)t[n]=qw(e[n]);return t}function jw(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=qw(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Fw=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Bw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Fw(e[n]," ");else t=Fw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function $w(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ww(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Hw(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=$w(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Ww(p+":"+u+Bw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Ww(h+":"+u+Bw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(r&&(r+=l),r+=Ww(g+":"+u+Bw(b)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ww(""+e+u+"{"+r,--i)+Ww("}",i)):r}var Gw=/([[\].#*$><+~=|^:(),"'`\s])/g,Vw="undefined"!=typeof CSS&&CSS.escape,Uw=function(e){return Vw?Vw(e):e.replace(Gw,"\\$1")},Yw=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Kw=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(zw(zw(o)),s),o.selectorText="."+Uw(o.id)),o}Ow(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Bw(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Gv({},e,{allowEmpty:!0}):e;return Hw(this.selectorText,this.style,n)},Tw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Yw),Xw={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Kw(e,t,n)}},Qw={indent:1,children:!0},Jw=/@([\w-]+)/,Zw=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Jw);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new SS(Gv({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Qw);var t=$w(e).linebreak;if(null==e.indent&&(e.indent=Qw.indent),null==e.children&&(e.children=Qw.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),eS=/@container|@media|@supports\s+/,tS={onCreateRule:function(e,t,n){return eS.test(e)?new Zw(e,t,n):null}},nS={indent:1,children:!0},rS=/@keyframes\s+([\w-]+)/,oS=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(rS);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Uw(a(this,i)),this.rules=new SS(Gv({},n,{parent:this})),t)this.rules.add(s,t[s],Gv({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=nS);var t=$w(e).linebreak;if(null==e.indent&&(e.indent=nS.indent),null==e.children&&(e.children=nS.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),iS=/@keyframes\s+/,aS=/\$([\w-]+)/g,sS=function(e,t){return"string"==typeof e?e.replace(aS,(function(e,n){return n in t?t[n]:e})):e},lS=function(e,t,n){var r=e[t],o=sS(r,n);o!==r&&(e[t]=o)},uS={onCreateRule:function(e,t,n){return"string"==typeof e&&iS.test(e)?new oS(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&lS(e,"animation-name",n.keyframes),"animation"in e&&lS(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return sS(e,r.keyframes);default:return e}}},cS=function(e){function t(){return e.apply(this,arguments)||this}return Ow(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Gv({},e,{allowEmpty:!0}):e;return Hw(this.key,this.style,n)},t}(Yw),dS={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new cS(e,t,n):null}},pS=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=$w(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Hw(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Hw(this.at,this.style,e)},e}(),fS=/@font-face/,hS={onCreateRule:function(e,t,n){return fS.test(e)?new pS(e,t,n):null}},mS=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Hw(this.key,this.style,e)},e}(),gS={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mS(e,t,n):null}},bS=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),yS={"@charset":!0,"@import":!0,"@namespace":!0},vS={onCreateRule:function(e,t,n){return e in yS?new bS(e,t,n):null}},xS=[Xw,tS,uS,dS,hS,gS,vS],_S={process:!0},wS={force:!0,process:!0},SS=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=Gv({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Uw(this.classes[d]));var p=jw(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Gv({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Kw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof oS&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Kw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof oS&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=_S);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,wS)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,wS)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=$w(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),CS=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Gv({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new SS(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ES=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),kS=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Wx(t,["attached"]),o=$w(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Tw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),RS=new kS,MS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),AS="2f1acc6c3a606b082e5eef5e54414ffb";null==MS[AS]&&(MS[AS]=0);var LS=MS[AS]++,IS=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+LS+o+t:i+n.key+"-"+LS+(o?"-"+o:"")+"-"+t}},PS=function(e){var t;return function(){return t||(t=e()),t}},TS=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},DS=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Bw(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},OS=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},zS=function(e,t){return e.selectorText=t,e.selectorText===t},NS=PS((function(){return document.querySelector("head")}));function qS(e){var t=RS.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=NS(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var jS=PS((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),FS=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},BS=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},$S=function(){function e(e){this.getPropertyValue=TS,this.setProperty=DS,this.removeProperty=OS,this.setSelector=zS,this.hasInsertedRules=!1,this.cssRules=[],e&&RS.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=jS();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=qS(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else NS().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=BS(n,t);if(!1===(o=FS(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=BS(n,t),l=FS(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof CS&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),WS=0,HS=function(){function e(e){this.id=WS++,this.version="10.10.0",this.plugins=new ES,this.options={id:{minify:!1},createGenerateId:IS,Renderer:Pw?$S:null,plugins:[]},this.generateId=IS({minify:!1});for(var t=0;t<xS.length;t++)this.plugins.use(xS[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Gv({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===RS.index?0:RS.index+1);var r=new CS(e,Gv({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),RS.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Gv({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=jw(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),GS=function(e){return new HS(e)},VS="object"==typeof CSS&&null!=CSS&&"number"in CSS;function US(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=US(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
38
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},iv({exports:{}});const gv="qHyperCubeDef.qDimensions",bv="dimensions",yv="qOtherTotalSpec.qTotalMode",vv="totalMode",xv={quarantine(e){kb.quarantineArrayProp({properties:e,arrayPath:gv,quarantineName:vv,arrayName:bv,itemPath:yv})},unquarantine(e){kb.unquarantineArrayProp({properties:e,arrayPath:gv,quarantineName:vv,arrayName:bv,itemPath:yv})}};function _v(e){const t=mv(e);return(e,n,r,o)=>{var i,a,s;const l=kb.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),u=l.qProperty.qHyperCubeDef.qDimensions.length,c=l.qProperty.qHyperCubeDef.qMeasures.length;let d,p=l.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&sv(l,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const h=null===(i=l.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;h?(p=h,d=[...h],sv(l,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),l.qProperty.qLayoutExclude.quarantine&&delete l.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const m=+(p.indexOf(-1)>-1),g=u+m;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-m);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=l.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&sv(l,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(s=d)||void 0===s?void 0:s.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&(kb.unquarantineProperty(l.qProperty,"noOfLeftDims"),kb.unquarantineProperty(l.qProperty,"exludedNoOfLeftDims"))}return kb.conditionalShow.unquarantine(l.qProperty),xv.unquarantine(l.qProperty),(e=>{kb.unquarantineArrayProp({properties:e,arrayPath:Ab,itemPath:Ib,arrayName:Lb,quarantineName:Pb}),kb.unquarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ib,arrayName:Mb,quarantineName:Pb}),kb.unquarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Tb,arrayName:Mb,quarantineName:Db}),kb.unquarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ob,arrayName:Mb,quarantineName:zb})})(l.qProperty),kb.unquarantineProperty(l.qProperty,"pivotTableIndentMode"),l}}function wv(e,t){var n;const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=r.slice(),i=r.indexOf(-1);i>-1&&r.splice(i,1);const a=kb.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),s=a.properties.qHyperCubeDef,l=s.qDimensions.length,u=s.qMeasures.length;let c=s.qInterColumnSortOrder;sv(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),kb.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(n=a.properties.qLayoutExclude.quarantine)||void 0===n?void 0:n.interColSortOrder;d&&(c=d,sv(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),sv(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<l+u;e++)c.length<=e&&c.push(e);return kb.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),kb.quarantineProperty(a.properties,"qHyperCubeDef.exludedNoOfLeftDims","exludedNoOfLeftDims"),kb.conditionalShow.quarantine(a.properties),xv.quarantine(a.properties),(e=>{kb.quarantineArrayProp({properties:e,arrayPath:Ab,itemPath:Ib,arrayName:Lb,quarantineName:Pb}),kb.quarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ib,arrayName:Mb,quarantineName:Pb}),kb.quarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Tb,arrayName:Mb,quarantineName:Db}),kb.quarantineArrayProp({properties:e,arrayPath:Rb,itemPath:Ob,arrayName:Mb,quarantineName:zb})})(a.properties),a}const Sv={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Cv=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),Ev=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const kv=e=>{switch(null==e?void 0:e.type){case"url":return Cv.Link;case"image":return Cv.Image;case"indicator":return Cv.Indicator;case"miniChart":return Cv.MiniChart;default:return Cv.Text}},Rv=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isImagesSupportedInIndentMode:n}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",options(t,r,o){const{qIndentMode:i}=o.properties.qHyperCubeDef,a=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i&&n)&&a.push({value:"image",translation:"Object.Table.Representation.Image"}),a}}},Mv=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>kv(e.qDef.representation)===Cv.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{var r,o;if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:s,qIndentMode:l}=n.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(r=null==s?void 0:s.indexOf(e))&&void 0!==r?r:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&l}}}}}}},Av=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:Rv({isImagesEnabled:a,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:i}}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>kv(e.qDef.representation)===Cv.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>{var t;return kv(e.qDef.representation)===Cv.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===Ev.Dimension}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>{var t;return kv(e.qDef.representation)===Cv.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===Ev.Attribute}},...Mv(a,i)}},Lv=(e,t)=>{var n;const{anything:r}=e,o=null===(n=r.sense)||void 0===n?void 0:n.isUnsupportedFeature,i=!(null!=o&&o("tableImages"))&&t[Cv.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[Cv.MiniChart],s=!(null!=o&&o("tableIndicators"))&&t[Cv.Indicator],l=i&&t[Cv.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{var t;const{qIndentMode:n}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!n&&i||n&&l)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),a&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(n)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>kv(e.qDef.representation)===Cv.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:a?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Iv,Pv,Tv,Dv;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Iv||(Iv={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Pv||(Pv={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(Tv||(Tv={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Dv||(Dv={}));const Ov="image",zv=(e,t,n)=>{var r,o,i;if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(r=null===(o=n.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==r?r:-1;let s=null!==(i=n.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<s&&(s-=1);const l=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===l||l>=s},Nv=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:mb.Auto,translation:"Common.Auto"},{value:mb.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:mb.Pixels,translation:"Object.Table.Column.Pixels"},{value:mb.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:mb.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:hb.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===mb.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(hb.PixelsMin,Math.min(hb.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:hb.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===mb.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(hb.PercentageMin,Math.min(hb.PercentageMax,e.qDef.columnWidth.percentage)))}}}),qv=({key:e,translation:t,env:n})=>{var r,o;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;return!i||"labelTextAlign"===e||(null===(n=t.qDef.representation)||void 0===n?void 0:n.type)!==Ov}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(n=t.qDef.representation)||void 0===n?void 0:n.type)!==Ov)}}}},jv="TOTAL_OFF",Fv={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Pv.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Pv.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Bv="TOTAL_OFF",$v={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Pv.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Pv.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Pv.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Wv=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:jv,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:jv,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&zv},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==jv&&zv(e,0,n)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Fv,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Av(e),...Nv()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Fv,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lv(e,{[Cv.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Cv.Indicator]:e.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}),...Nv()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Bv,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Bv,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&zv},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Bv&&zv(e,0,n)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:$v,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Av(e),...Nv()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:$v,...qv({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...qv({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lv(e,{[Cv.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Cv.Indicator]:e.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR"),[Cv.ImagesInIndentMode]:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")}),...Nv()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function Hv(e,t){return function(){return null}}function Gv(){return Gv=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},Gv.apply(null,arguments)}function Vv(e){return Vv="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},Vv(e)}function Uv(e){return e&&"object"===Vv(e)&&e.constructor===Object}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Gv({},e):e;return Uv(e)&&Uv(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Uv(t[o])&&o in e?r[o]=Yv(e[o],t[o],n):r[o]=t[o])})),r}var Kv={exports:{}};function Xv(){}function Qv(){}Qv.resetWarningCache=Xv;Kv.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qv,resetWarningCache:Xv};return n.PropTypes=n,n}();var Jv=n(Kv.exports),Zv=(Jv.element,function(){return null});Zv.isRequired=(Jv.element.isRequired,function(){return null});var ex=function(){return null};function tx(e){var t=function(e,t){if("object"!=Vv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Vv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Vv(t)?t:t+""}function nx(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var rx={exports:{}},ox={},ix=60103,ax=60106,sx=60107,lx=60108,ux=60114,cx=60109,dx=60110,px=60112,fx=60113,hx=60120,mx=60115,gx=60116,bx=60121,yx=60122,vx=60117,xx=60129,_x=60131;if("function"==typeof Symbol&&Symbol.for){var wx=Symbol.for;ix=wx("react.element"),ax=wx("react.portal"),sx=wx("react.fragment"),lx=wx("react.strict_mode"),ux=wx("react.profiler"),cx=wx("react.provider"),dx=wx("react.context"),px=wx("react.forward_ref"),fx=wx("react.suspense"),hx=wx("react.suspense_list"),mx=wx("react.memo"),gx=wx("react.lazy"),bx=wx("react.block"),yx=wx("react.server.block"),vx=wx("react.fundamental"),xx=wx("react.debug_trace_mode"),_x=wx("react.legacy_hidden")}function Sx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ix:switch(e=e.type){case sx:case ux:case lx:case fx:case hx:return e;default:switch(e=e&&e.$$typeof){case dx:case px:case gx:case mx:case cx:return e;default:return t}}case ax:return t}}}var Cx=cx,Ex=ix,kx=px,Rx=sx,Mx=gx,Ax=mx,Lx=ax,Ix=ux,Px=lx,Tx=fx;ox.ContextConsumer=dx,ox.ContextProvider=Cx,ox.Element=Ex,ox.ForwardRef=kx,ox.Fragment=Rx,ox.Lazy=Mx,ox.Memo=Ax,ox.Portal=Lx,ox.Profiler=Ix,ox.StrictMode=Px,ox.Suspense=Tx,ox.isAsyncMode=function(){return!1},ox.isConcurrentMode=function(){return!1},ox.isContextConsumer=function(e){return Sx(e)===dx},ox.isContextProvider=function(e){return Sx(e)===cx},ox.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ix},ox.isForwardRef=function(e){return Sx(e)===px},ox.isFragment=function(e){return Sx(e)===sx},ox.isLazy=function(e){return Sx(e)===gx},ox.isMemo=function(e){return Sx(e)===mx},ox.isPortal=function(e){return Sx(e)===ax},ox.isProfiler=function(e){return Sx(e)===ux},ox.isStrictMode=function(e){return Sx(e)===lx},ox.isSuspense=function(e){return Sx(e)===fx},ox.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===sx||e===ux||e===xx||e===lx||e===fx||e===hx||e===_x||"object"==typeof e&&null!==e&&(e.$$typeof===gx||e.$$typeof===mx||e.$$typeof===cx||e.$$typeof===dx||e.$$typeof===px||e.$$typeof===vx||e.$$typeof===bx||e[0]===yx)},ox.typeOf=Sx,rx.exports=ox;var Dx=rx.exports,Ox=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Ox);return t&&t[1]||""}(e)||t}function Nx(e,t,n){var r=zx(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var qx="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),jx=Jv.oneOfType([Jv.func,Jv.object]),Fx=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Hv,deepmerge:Yv,elementAcceptingRef:Zv,elementTypeAcceptingRef:ex,exactProp:function(e){return e},formatMuiErrorMessage:nx,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return zx(e,"Component");if("object"===Vv(e))switch(e.$$typeof){case Dx.ForwardRef:return Nx(e,e.render,"ForwardRef");case Dx.Memo:return Nx(e,e.type,"memo");default:return}}},ponyfillGlobal:qx,refType:jx});function Bx(e){if(e.type)return e;if("#"===e.charAt(0))return Bx(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(nx(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function $x(e,t){return e=Bx(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Wx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Hx(e,t){if(null==e)return{};var n,r,o=Wx(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gx(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 Vx(e,t){if(e){if("string"==typeof e)return Gx(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)?Gx(e,t):void 0}}function Ux(e){return function(e){if(Array.isArray(e))return Gx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vx(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 Yx(e,t){return t?Yv(e,t,{clone:!1}):e}var Kx={xs:0,sm:600,md:960,lg:1280,xl:1920},Xx={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Kx[e],"px)")}};function Qx(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Xx;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Vv(t)){var o=e.theme.breakpoints||Xx;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function Jx(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Zx(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Jx(e.theme,o)||{};return Qx(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Jx(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=tx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function e_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Yx(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function t_(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var n_=Zx({prop:"border",themeKey:"borders",transform:t_}),r_=Zx({prop:"borderTop",themeKey:"borders",transform:t_}),o_=Zx({prop:"borderRight",themeKey:"borders",transform:t_}),i_=Zx({prop:"borderBottom",themeKey:"borders",transform:t_}),a_=Zx({prop:"borderLeft",themeKey:"borders",transform:t_}),s_=Zx({prop:"borderColor",themeKey:"palette"}),l_=Zx({prop:"borderRadius",themeKey:"shape"}),u_=e_(n_,r_,o_,i_,a_,s_,l_);function c_(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function d_(e){var t=function(t){var n=e(t);return t.css?Gv({},Yx(n,e(Gv({theme:t.theme},t.css))),c_(t.css,[e.filterProps])):t.sx?Gv({},Yx(n,e(Gv({theme:t.theme},t.sx))),c_(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Ux(e.filterProps)),t}var p_=Zx({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),f_=e_(p_,Zx({prop:"display"}),Zx({prop:"overflow"}),Zx({prop:"textOverflow"}),Zx({prop:"visibility"}),Zx({prop:"whiteSpace"})),h_=Zx({prop:"flexBasis"}),m_=Zx({prop:"flexDirection"}),g_=Zx({prop:"flexWrap"}),b_=Zx({prop:"justifyContent"}),y_=Zx({prop:"alignItems"}),v_=Zx({prop:"alignContent"}),x_=Zx({prop:"order"}),__=Zx({prop:"flex"}),w_=Zx({prop:"flexGrow"}),S_=Zx({prop:"flexShrink"}),C_=Zx({prop:"alignSelf"}),E_=Zx({prop:"justifyItems"}),k_=Zx({prop:"justifySelf"}),R_=e_(h_,m_,g_,b_,y_,v_,x_,__,w_,S_,C_,E_,k_),M_=Zx({prop:"gridGap"}),A_=Zx({prop:"gridColumnGap"}),L_=Zx({prop:"gridRowGap"}),I_=Zx({prop:"gridColumn"}),P_=Zx({prop:"gridRow"}),T_=Zx({prop:"gridAutoFlow"}),D_=Zx({prop:"gridAutoColumns"}),O_=Zx({prop:"gridAutoRows"}),z_=Zx({prop:"gridTemplateColumns"}),N_=Zx({prop:"gridTemplateRows"}),q_=Zx({prop:"gridTemplateAreas"}),j_=Zx({prop:"gridArea"}),F_=e_(M_,A_,L_,I_,P_,T_,D_,O_,z_,N_,q_,j_),B_=Zx({prop:"color",themeKey:"palette"}),$_=Zx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),W_=e_(B_,$_),H_=Zx({prop:"position"}),G_=Zx({prop:"zIndex",themeKey:"zIndex"}),V_=Zx({prop:"top"}),U_=Zx({prop:"right"}),Y_=Zx({prop:"bottom"}),K_=Zx({prop:"left"}),X_=e_(H_,G_,V_,U_,Y_,K_),Q_=Zx({prop:"boxShadow",themeKey:"shadows"});function J_(e){return e<=1?"".concat(100*e,"%"):e}var Z_=Zx({prop:"width",transform:J_}),ew=Zx({prop:"maxWidth",transform:J_}),tw=Zx({prop:"minWidth",transform:J_}),nw=Zx({prop:"height",transform:J_}),rw=Zx({prop:"maxHeight",transform:J_}),ow=Zx({prop:"minHeight",transform:J_}),iw=Zx({prop:"size",cssProperty:"width",transform:J_}),aw=Zx({prop:"size",cssProperty:"height",transform:J_}),sw=Zx({prop:"boxSizing"}),lw=e_(Z_,ew,tw,nw,rw,ow,sw);function uw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Vx(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.")}()}var cw={m:"margin",p:"padding"},dw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fw=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!pw[e])return[e];e=pw[e]}var t=uw(e.split(""),2),n=t[0],r=t[1],o=cw[n],i=dw[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),hw=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function mw(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function gw(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function bw(e){var t=mw(e.theme);return Object.keys(e).map((function(n){if(-1===hw.indexOf(n))return null;var r=gw(fw(n),t),o=e[n];return Qx(e,o,r)})).reduce(Yx,{})}bw.propTypes={},bw.filterProps=hw;var yw=Zx({prop:"fontFamily",themeKey:"typography"}),vw=Zx({prop:"fontSize",themeKey:"typography"}),xw=Zx({prop:"fontStyle",themeKey:"typography"}),_w=Zx({prop:"fontWeight",themeKey:"typography"}),ww=Zx({prop:"letterSpacing"}),Sw=Zx({prop:"lineHeight"}),Cw=Zx({prop:"textAlign"}),Ew=e_(yw,vw,xw,_w,ww,Sw,Cw),kw=Object.freeze({__proto__:null,alignContent:v_,alignItems:y_,alignSelf:C_,bgcolor:$_,border:n_,borderBottom:i_,borderColor:s_,borderLeft:a_,borderRadius:l_,borderRight:o_,borderTop:r_,borders:u_,bottom:Y_,boxSizing:sw,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||Xx,o=r.keys.reduce((function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(Gv({theme:t.theme},t[o]))),n}),null);return Yx(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Ux(e.filterProps)),t},color:B_,compose:e_,createUnarySpacing:mw,css:function(e){return d_(e)},display:f_,flex:__,flexBasis:h_,flexDirection:m_,flexGrow:w_,flexShrink:S_,flexWrap:g_,flexbox:R_,fontFamily:yw,fontSize:vw,fontStyle:xw,fontWeight:_w,grid:F_,gridArea:j_,gridAutoColumns:D_,gridAutoFlow:T_,gridAutoRows:O_,gridColumn:I_,gridColumnGap:A_,gridGap:M_,gridRow:P_,gridRowGap:L_,gridTemplateAreas:q_,gridTemplateColumns:z_,gridTemplateRows:N_,height:nw,justifyContent:b_,justifyItems:E_,justifySelf:k_,left:K_,letterSpacing:ww,lineHeight:Sw,maxHeight:rw,maxWidth:ew,minHeight:ow,minWidth:tw,order:x_,palette:W_,position:H_,positions:X_,right:U_,shadows:Q_,sizeHeight:aw,sizeWidth:iw,sizing:lw,spacing:bw,style:Zx,styleFunctionSx:d_,textAlign:Cw,top:V_,typography:Ew,width:Z_,zIndex:G_}),Rw="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Mw=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Aw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Mw.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Rw]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function Lw(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Iw="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},Pw="object"===("undefined"==typeof window?"undefined":Iw(window))&&"object"===("undefined"==typeof document?"undefined":Iw(document))&&9===document.nodeType;function Tw(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tx(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dw(e,t){return Dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dw(e,t)}function Ow(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dw(e,t)}function zw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Nw={}.constructor;function qw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(qw);if(e.constructor!==Nw)return e;var t={};for(var n in e)t[n]=qw(e[n]);return t}function jw(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=qw(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Fw=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Bw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Fw(e[n]," ");else t=Fw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function $w(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ww(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Hw(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=$w(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Ww(p+":"+u+Bw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Ww(h+":"+u+Bw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(r&&(r+=l),r+=Ww(g+":"+u+Bw(b)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ww(""+e+u+"{"+r,--i)+Ww("}",i)):r}var Gw=/([[\].#*$><+~=|^:(),"'`\s])/g,Vw="undefined"!=typeof CSS&&CSS.escape,Uw=function(e){return Vw?Vw(e):e.replace(Gw,"\\$1")},Yw=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Kw=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(zw(zw(o)),s),o.selectorText="."+Uw(o.id)),o}Ow(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Bw(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Gv({},e,{allowEmpty:!0}):e;return Hw(this.selectorText,this.style,n)},Tw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Yw),Xw={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Kw(e,t,n)}},Qw={indent:1,children:!0},Jw=/@([\w-]+)/,Zw=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Jw);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new SS(Gv({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Qw);var t=$w(e).linebreak;if(null==e.indent&&(e.indent=Qw.indent),null==e.children&&(e.children=Qw.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),eS=/@container|@media|@supports\s+/,tS={onCreateRule:function(e,t,n){return eS.test(e)?new Zw(e,t,n):null}},nS={indent:1,children:!0},rS=/@keyframes\s+([\w-]+)/,oS=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(rS);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Uw(a(this,i)),this.rules=new SS(Gv({},n,{parent:this})),t)this.rules.add(s,t[s],Gv({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=nS);var t=$w(e).linebreak;if(null==e.indent&&(e.indent=nS.indent),null==e.children&&(e.children=nS.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),iS=/@keyframes\s+/,aS=/\$([\w-]+)/g,sS=function(e,t){return"string"==typeof e?e.replace(aS,(function(e,n){return n in t?t[n]:e})):e},lS=function(e,t,n){var r=e[t],o=sS(r,n);o!==r&&(e[t]=o)},uS={onCreateRule:function(e,t,n){return"string"==typeof e&&iS.test(e)?new oS(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&lS(e,"animation-name",n.keyframes),"animation"in e&&lS(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return sS(e,r.keyframes);default:return e}}},cS=function(e){function t(){return e.apply(this,arguments)||this}return Ow(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Gv({},e,{allowEmpty:!0}):e;return Hw(this.key,this.style,n)},t}(Yw),dS={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new cS(e,t,n):null}},pS=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=$w(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Hw(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Hw(this.at,this.style,e)},e}(),fS=/@font-face/,hS={onCreateRule:function(e,t,n){return fS.test(e)?new pS(e,t,n):null}},mS=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Hw(this.key,this.style,e)},e}(),gS={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mS(e,t,n):null}},bS=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),yS={"@charset":!0,"@import":!0,"@namespace":!0},vS={onCreateRule:function(e,t,n){return e in yS?new bS(e,t,n):null}},xS=[Xw,tS,uS,dS,hS,gS,vS],_S={process:!0},wS={force:!0,process:!0},SS=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=Gv({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Uw(this.classes[d]));var p=jw(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Gv({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Kw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof oS&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Kw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof oS&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=_S);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,wS)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,wS)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=$w(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),CS=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Gv({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new SS(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ES=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),kS=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Wx(t,["attached"]),o=$w(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Tw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),RS=new kS,MS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),AS="2f1acc6c3a606b082e5eef5e54414ffb";null==MS[AS]&&(MS[AS]=0);var LS=MS[AS]++,IS=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+LS+o+t:i+n.key+"-"+LS+(o?"-"+o:"")+"-"+t}},PS=function(e){var t;return function(){return t||(t=e()),t}},TS=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},DS=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Bw(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},OS=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},zS=function(e,t){return e.selectorText=t,e.selectorText===t},NS=PS((function(){return document.querySelector("head")}));function qS(e){var t=RS.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=NS(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var jS=PS((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),FS=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},BS=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},$S=function(){function e(e){this.getPropertyValue=TS,this.setProperty=DS,this.removeProperty=OS,this.setSelector=zS,this.hasInsertedRules=!1,this.cssRules=[],e&&RS.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=jS();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=qS(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else NS().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=BS(n,t);if(!1===(o=FS(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=BS(n,t),l=FS(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof CS&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),WS=0,HS=function(){function e(e){this.id=WS++,this.version="10.10.0",this.plugins=new ES,this.options={id:{minify:!1},createGenerateId:IS,Renderer:Pw?$S:null,plugins:[]},this.generateId=IS({minify:!1});for(var t=0;t<xS.length;t++)this.plugins.use(xS[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Gv({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===RS.index?0:RS.index+1);var r=new CS(e,Gv({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),RS.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Gv({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=jw(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),GS=function(e){return new HS(e)},VS="object"==typeof CSS&&null!=CSS&&"number"in CSS;function US(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=US(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
39
39
|
/**
|
|
40
40
|
* A better abstraction over CSS.
|
|
41
41
|
*
|
|
@@ -205,4 +205,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.le
|
|
|
205
205
|
}
|
|
206
206
|
`),JQ.rippleVisible,iJ,550,(({theme:e})=>e.transitions.easing.easeInOut),JQ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),JQ.child,JQ.childLeaving,aJ,550,(({theme:e})=>e.transitions.easing.easeInOut),JQ.childPulsate,sJ,(({theme:e})=>e.transitions.easing.easeInOut)),cJ=F.forwardRef((function(e,t){const n=GQ({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Wx(n,ZQ),[s,l]=F.useState([]),u=F.useRef(0),c=F.useRef(null);F.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=F.useRef(!1),p=zP(),f=F.useRef(null),h=F.useRef(null),m=F.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,ae.jsx(uJ,{classes:{ripple:$I(o.ripple,JQ.ripple),rippleVisible:$I(o.rippleVisible,JQ.rippleVisible),ripplePulsate:$I(o.ripplePulsate,JQ.ripplePulsate),child:$I(o.child,JQ.child),childLeaving:$I(o.childLeaving,JQ.childLeaving),childPulsate:$I(o.childPulsate,JQ.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=F.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=F.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=F.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{y(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return F.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:y})),[b,g,y]),ae.jsx(lJ,Gv({className:$I(JQ.root,o.root,i),ref:h},a,{children:ae.jsx(tO,{component:null,exit:!0,children:s})}))}));function dJ(e){return GI("MuiButtonBase",e)}const pJ=VI("MuiButtonBase",["root","disabled","focusVisible"]),fJ=["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"],hJ=zH("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"},[`&.${pJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mJ=F.forwardRef((function(e,t){const n=GQ({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:y,onKeyDown:v,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:S,onTouchEnd:C,onTouchMove:E,onTouchStart:k,tabIndex:R=0,TouchRippleProps:M,touchRippleRef:A,type:L}=n,I=Wx(n,fJ),P=F.useRef(null),T=F.useRef(null),D=PP(T,A),{isFocusVisibleRef:O,onFocus:z,onBlur:N,ref:q}=GP(),[j,B]=F.useState(!1);l&&j&&B(!1),F.useImperativeHandle(r,(()=>({focusVisible:()=>{B(!0),P.current.focus()}})),[]);const[$,W]=F.useState(!1);F.useEffect((()=>{W(!0)}),[]);const H=$&&!u&&!l;function G(e,t,n=c){return IP((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}F.useEffect((()=>{j&&d&&!u&&$&&T.current.pulsate()}),[u,d,j,$]);const V=G("start",_),U=G("stop",m),Y=G("stop",g),K=G("stop",S),X=G("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=G("start",k),J=G("stop",C),Z=G("stop",E),ee=G("stop",(e=>{N(e),!1===O.current&&B(!1),f&&f(e)}),!1),te=IP((e=>{P.current||(P.current=e.currentTarget),z(e),!0===O.current&&(B(!0),y&&y(e)),b&&b(e)})),ne=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=F.useRef(!1),oe=IP((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),v&&v(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=IP((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let se=s;"button"===se&&(I.href||I.to)&&(se=p);const le={};"button"===se?(le.type=void 0===L?"button":L,le.disabled=l):(I.href||I.to||(le.role="button"),l&&(le["aria-disabled"]=l));const ue=PP(t,q,P),ce=Gv({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:R,focusVisible:j}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=UP({root:["root",t&&"disabled",n&&"focusVisible"]},dJ,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return ae.jsxs(hJ,Gv({as:se,className:$I(de.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:Q,ref:ue,tabIndex:l?-1:R,type:L},le,I,{children:[i,H?ae.jsx(cJ,Gv({ref:D,center:o},M)):null]}))}));function gJ(e){return GI("MuiTypography",e)}VI("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yJ=zH("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${DL(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Gv({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}))),vJ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_J=F.forwardRef((function(e,t){const n=GQ({props:e,name:"MuiTypography"}),r=(e=>xJ[e]||e)(n.color),o=L$(Gv({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=vJ}=o,f=Wx(o,bJ),h=Gv({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||vJ[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return UP({root:["root",i,"inherit"!==e.align&&`align${DL(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gJ,a)})(h);return ae.jsx(yJ,Gv({as:m,ref:t,ownerState:h,className:$I(g.root,a)},f))}));const wJ=F.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=F.useState(null),s=PP(F.isValidElement(n)?ZP(n):null,t);if(bP((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),bP((()=>{if(i&&!o)return kP(t,i),()=>{kP(t,null)}}),[t,i,o]),o){if(F.isValidElement(n)){const e={ref:s};return F.cloneElement(n,e)}return ae.jsx(F.Fragment,{children:n})}return ae.jsx(F.Fragment,{children:i?lf.createPortal(n,i):i})})),SJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],CJ={entering:{opacity:1},entered:{opacity:1}},EJ=F.forwardRef((function(e,t){const n=pH(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=KD}=e,y=Wx(e,SJ),v=F.useRef(null),x=PP(v,ZP(a),t),_=e=>t=>{if(e){const n=v.current;void 0===t?e(n):e(n,t)}},w=_(d),S=_(((e,t)=>{VQ(e);const r=UQ({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=_(c),E=_(h),k=_((e=>{const t=UQ({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),R=_(f);return ae.jsx(b,Gv({appear:i,in:l,nodeRef:v,onEnter:S,onEntered:C,onEntering:w,onExit:k,onExited:R,onExiting:E,addEndListener:e=>{o&&o(v.current,e)},timeout:g},y,{children:(e,t)=>F.cloneElement(a,Gv({style:Gv({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},CJ[e],m,a.props.style),ref:x},t))}))}));function kJ(e){return GI("MuiBackdrop",e)}VI("MuiBackdrop",["root","invisible"]);const RJ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],MJ=zH("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Gv({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"}))),AJ=F.forwardRef((function(e,t){var n,r,o;const i=GQ({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=EJ,transitionDuration:g}=i,b=Wx(i,RJ),y=Gv({},i,{component:l,invisible:d}),v=(e=>{const{classes:t,invisible:n}=e;return UP({root:["root",n&&"invisible"]},kJ,t)})(y),x=null!=(n=f.root)?n:c.root;return ae.jsx(m,Gv({in:p,timeout:g},b,{children:ae.jsx(MJ,Gv({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:l,className:$I(v.root,s,null==x?void 0:x.className),ownerState:Gv({},y,null==x?void 0:x.ownerState),classes:v,ref:t,children:a}))}))})),LJ=VI("MuiBox",["root"]),IJ=cH(),PJ=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=vL("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(v$),a=F.forwardRef((function(e,a){const s=k$(n),l=L$(e),{className:u,component:c="div"}=l,d=Wx(l,P$);return ae.jsx(i,Gv({as:c,ref:a,className:$I(u,o?o(r):r),theme:t&&s[t]||s},d))}));return a}({themeId:vB,defaultTheme:IJ,defaultClassName:LJ.root,generateClassName:FI.generate});function TJ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function DJ(e){return parseInt(EP(e).getComputedStyle(e).paddingRight,10)||0}function OJ(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&TJ(e,o)}))}function zJ(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function NJ(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CP(e);return t.body===e?EP(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=VP(CP(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${DJ(r)+e}px`;const t=CP(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${DJ(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CP(r).body;else{const t=r.parentElement,n=EP(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 qJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jJ(e){const t=[],n=[];return Array.from(e.querySelectorAll(qJ)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function FJ(){return!0}function BJ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=jJ,isEnabled:a=FJ,open:s}=e,l=F.useRef(!1),u=F.useRef(null),c=F.useRef(null),d=F.useRef(null),p=F.useRef(null),f=F.useRef(!1),h=F.useRef(null),m=PP(ZP(t),h),g=F.useRef(null);F.useEffect((()=>{s&&h.current&&(f.current=!n)}),[n,s]),F.useEffect((()=>{if(!s||!h.current)return;const e=CP(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),F.useEffect((()=>{if(!s||!h.current)return;const e=CP(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.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!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.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 o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ae.jsxs(F.Fragment,{children:[ae.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),F.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ae.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const $J=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&&TJ(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);OJ(t,e.mount,e.modalRef,r,!0);const o=zJ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=zJ(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=NJ(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=zJ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&TJ(e.modalRef,t),OJ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&TJ(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function WJ(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=$J,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=F.useRef({}),f=F.useRef(null),h=F.useRef(null),m=PP(h,d),[g,b]=F.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),_=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=IP((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CP(f.current).body;o.add(x(),e),h.current&&_()})),S=F.useCallback((()=>o.isTopModal(x())),[o]),C=IP((e=>{f.current=e,e&&(c&&S()?_():h.current&&TJ(h.current,v))})),E=F.useCallback((()=>{o.remove(x(),v)}),[v,o]);F.useEffect((()=>()=>{E()}),[E]),F.useEffect((()=>{c?w():y&&i||E()}),[c,E,y,i,w]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},R=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=KP(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Gv({},n,t);return Gv({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>Gv({"aria-hidden":!0},e,{onClick:R(e),open:c}),getTransitionProps:()=>({onEnter:wP((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:wP((()=>{b(!0),s&&s(),i&&E()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:C,isTopModal:S,exited:g,hasTransition:y}}function HJ(e){return GI("MuiModal",e)}VI("MuiModal",["root","hidden","backdrop"]);const GJ=["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"],VJ=zH("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})=>Gv({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),UJ=zH(AJ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),YJ=F.forwardRef((function(e,t){var n,r,o,i,a,s;const l=GQ({name:"MuiModal",props:e}),{BackdropComponent:u=UJ,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:x=!1,disablePortal:_=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:E=!1,onBackdropClick:k,open:R,slotProps:M,slots:A}=l,L=Wx(l,GJ),I=Gv({},l,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:v,disableEscapeKeyDown:x,disablePortal:_,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:C,keepMounted:E}),{getRootProps:P,getBackdropProps:T,getTransitionProps:D,portalRef:O,isTopModal:z,exited:N,hasTransition:q}=WJ(Gv({},I,{rootRef:t})),j=Gv({},I,{exited:N}),B=(e=>{const{open:t,exited:n,classes:r}=e;return UP({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},HJ,r)})(j),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),q){const{onEnter:e,onExited:t}=D();$.onEnter=e,$.onExited=t}const W=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:VJ,H=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,U=JP({elementType:W,externalSlotProps:G,externalForwardedProps:L,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:$I(d,null==G?void 0:G.className,null==B?void 0:B.root,!j.open&&j.exited&&(null==B?void 0:B.hidden))}),Y=JP({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Gv({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:$I(null==V?void 0:V.className,null==c?void 0:c.className,null==B?void 0:B.backdrop),ownerState:j});return E||R||q&&!N?ae.jsx(wJ,{ref:O,container:h,disablePortal:_,children:ae.jsxs(W,Gv({},U,{children:[!C&&u?ae.jsx(H,Gv({},Y)):null,ae.jsx(BJ,{disableEnforceFocus:v,disableAutoFocus:y,disableRestoreFocus:w,isEnabled:z,open:R,children:F.cloneElement(f,$)})]}))}):null})),KJ=VI("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),XJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function QJ(e){return`scale(${e}, ${e**2})`}const JJ={entering:{opacity:1,transform:QJ(1)},entered:{opacity:1,transform:"none"}},ZJ="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),eZ=F.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=KD}=e,g=Wx(e,XJ),b=zP(),y=F.useRef(),v=pH(),x=F.useRef(null),_=PP(x,ZP(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=w(u),C=w(((e,t)=>{VQ(e);const{duration:n,delay:r,easing:o}=UQ({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:ZJ?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),E=w(l),k=w(p),R=w((e=>{const{duration:t,delay:n,easing:r}=UQ({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:ZJ?o:.666*o,delay:ZJ?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=QJ(.75),c&&c(e)})),M=w(d);return ae.jsx(m,Gv({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:E,onEntering:S,onExit:R,onExited:M,onExiting:k,addEndListener:e=>{"auto"===h&&b.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>F.cloneElement(o,Gv({style:Gv({opacity:0,transform:QJ(.75),visibility:"exited"!==e||a?void 0:"hidden"},JJ[e],f,o.props.style),ref:_},t))}))}));function tZ(e){return GI("MuiLink",e)}eZ.muiSupportAuto=!0;const nZ=VI("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),rZ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},oZ=({theme:e,ownerState:t})=>{const n=(e=>rZ[e]||e)(t.color),r=MB(e,`palette.${n}`,!1)||t.color,o=MB(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:U$(r,.4)},iZ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],aZ=zH(_J,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${DL(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Gv({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Gv({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:oZ({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nZ.focusVisible}`]:{outline:"auto"}}))),sZ=F.forwardRef((function(e,t){const n=GQ({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=n,p=Wx(n,iZ),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=GP(),[b,y]=F.useState(!1),v=PP(t,g),x=Gv({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),_=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return UP({root:["root",`underline${DL(o)}`,"button"===n&&"button",r&&"focusVisible"]},tZ,t)})(x);return ae.jsx(aZ,Gv({color:o,className:$I(_.root,r),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&y(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&y(!0),s&&s(e)},ref:v,ownerState:x,variant:c,sx:[...Object.keys(rZ).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),lZ=F.createContext({});function uZ(e){return GI("MuiList",e)}VI("MuiList",["root","padding","dense","subheader"]);const cZ=["children","className","component","dense","disablePadding","subheader"],dZ=zH("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})=>Gv({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),pZ=F.forwardRef((function(e,t){const n=GQ({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=Wx(n,cZ),c=F.useMemo((()=>({dense:a})),[a]),d=Gv({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return UP({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},uZ,t)})(d);return ae.jsx(lZ.Provider,{value:c,children:ae.jsxs(dZ,Gv({as:i,className:$I(p.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})})),fZ=VI("MuiListItemIcon",["root","alignItemsFlexStart"]),hZ=VI("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),mZ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gZ(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bZ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function yZ(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function vZ(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&yZ(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const xZ=F.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Wx(e,mZ),p=F.useRef(null),f=F.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bP((()=>{r&&p.current.focus()}),[r]),F.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${VP(CP(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=PP(p,t);let m=-1;F.Children.forEach(i,((e,t)=>{F.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=F.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),F.cloneElement(e,t)}return e}));return ae.jsx(pZ,Gv({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=CP(t).activeElement;if("ArrowDown"===n)e.preventDefault(),vZ(t,r,l,s,gZ);else if("ArrowUp"===n)e.preventDefault(),vZ(t,r,l,s,bZ);else if("Home"===n)e.preventDefault(),vZ(t,null,l,s,gZ);else if("End"===n)e.preventDefault(),vZ(t,null,l,s,bZ);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&yZ(r,o);o.previousKeyMatched&&(l||vZ(t,r,!1,s,gZ,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function _Z(e){return GI("MuiPopover",e)}VI("MuiPopover",["root","paper"]);const wZ=["onEntering"],SZ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],CZ=["slotProps"];function EZ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kZ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function RZ(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function MZ(e){return"function"==typeof e?e():e}const AZ=zH(YJ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LZ=zH(QQ,{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}),IZ=F.forwardRef((function(e,t){var n,r,o;const i=GQ({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:y,slotProps:v,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:_=eZ,transitionDuration:w="auto",TransitionProps:{onEntering:S}={},disableScrollLock:C=!1}=i,E=Wx(i.TransitionProps,wZ),k=Wx(i,SZ),R=null!=(n=null==v?void 0:v.paper)?n:b,M=F.useRef(),A=PP(M,R.ref),L=Gv({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:R,transformOrigin:x,TransitionComponent:_,transitionDuration:w,TransitionProps:E}),I=(e=>{const{classes:t}=e;return UP({root:["root"],paper:["paper"]},_Z,t)})(L),P=F.useCallback((()=>{if("anchorPosition"===c)return u;const e=MZ(s),t=(e&&1===e.nodeType?e:CP(M.current).body).getBoundingClientRect();return{top:t.top+EZ(t,l.vertical),left:t.left+kZ(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),T=F.useCallback((e=>({vertical:EZ(e,x.vertical),horizontal:kZ(e,x.horizontal)})),[x.horizontal,x.vertical]),D=F.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:RZ(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=EP(MZ(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:RZ(n)}}),[s,c,P,T,m]),[O,z]=F.useState(g),N=F.useCallback((()=>{const e=M.current;if(!e)return;const t=D(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[D]);F.useEffect((()=>(C&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[s,C,N]);F.useEffect((()=>{g&&N()})),F.useImperativeHandle(a,(()=>g?{updatePosition:()=>{N()}}:null),[g,N]),F.useEffect((()=>{if(!g)return;const e=SP((()=>{N()})),t=EP(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,N]);let q=w;"auto"!==w||_.muiSupportAuto||(q=void 0);const j=f||(s?CP(MZ(s)).body:void 0),B=null!=(r=null==y?void 0:y.root)?r:AZ,$=null!=(o=null==y?void 0:y.paper)?o:LZ,W=JP({elementType:$,externalSlotProps:Gv({},R,{style:O?R.style:Gv({},R.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:L,className:$I(I.paper,null==R?void 0:R.className)}),H=JP({elementType:B,externalSlotProps:(null==v?void 0:v.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:L,className:$I(I.root,p)}),{slotProps:G}=H,V=Wx(H,CZ);return ae.jsx(B,Gv({},V,!YP(B)&&{slotProps:G,disableScrollLock:C},{children:ae.jsx(_,Gv({appear:!0,in:g,onEntering:(e,t)=>{S&&S(e,t),N()},onExited:()=>{z(!1)},timeout:q},E,{children:ae.jsx($,Gv({},W,{children:d}))}))}))}));function PZ(e){return GI("MuiMenu",e)}VI("MuiMenu",["root","paper","list"]);const TZ=["onEntering"],DZ=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],OZ={vertical:"top",horizontal:"right"},zZ={vertical:"top",horizontal:"left"},NZ=zH(IZ,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qZ=zH(LZ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jZ=zH(xZ,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),FZ=F.forwardRef((function(e,t){var n,r;const o=GQ({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:y={}}=o,v=Wx(o.TransitionProps,TZ),x=Wx(o,DZ),_=(()=>{const e=F.useContext(z$);return null!=e&&e})(),w=Gv({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:v,variant:g}),S=(e=>{const{classes:t}=e;return UP({root:["root"],paper:["paper"],list:["list"]},PZ,t)})(w),C=i&&!l&&d,E=F.useRef(null);let k=-1;F.Children.map(a,((e,t)=>{F.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const R=null!=(n=b.paper)?n:qZ,M=null!=(r=y.paper)?r:p,A=JP({elementType:b.root,externalSlotProps:y.root,ownerState:w,className:[S.root,s]}),L=JP({elementType:R,externalSlotProps:M,ownerState:w,className:S.paper});return ae.jsx(NZ,Gv({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?OZ:zZ,slots:{paper:R,root:b.root},slotProps:{root:A,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:Gv({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),m&&m(e,t)}},v),ownerState:w},x,{classes:f,children:ae.jsx(jZ,Gv({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:E,autoFocus:i&&(-1===k||l),autoFocusItem:C,variant:g},u,{className:$I(S.list,u.className),children:a}))}))}));function BZ(e){return GI("MuiMenuItem",e)}const $Z=VI("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),WZ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],HZ=zH(mJ,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Gv({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$Z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:U$(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:U$(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$Z.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:U$(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})`:U$(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${KJ.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${KJ.inset}`]:{marginLeft:52},[`& .${hZ.root}`]:{marginTop:0,marginBottom:0},[`& .${hZ.inset}`]:{paddingLeft:36},[`& .${fZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Gv({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fZ.root} svg`]:{fontSize:"1.25rem"}})))),GZ=F.forwardRef((function(e,t){const n=GQ({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,p=Wx(n,WZ),f=F.useContext(lZ),h=F.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=F.useRef(null);bP((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Gv({},n,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Gv({},a,UP({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},BZ,a))})(n),y=PP(m,t);let v;return n.disabled||(v=void 0!==c?c:-1),ae.jsx(lZ.Provider,{value:h,children:ae.jsx(HZ,Gv({ref:y,role:u,tabIndex:v,component:o,focusVisibleClassName:$I(b.focusVisible,l),className:$I(b.root,d)},p,{ownerState:g,classes:b}))})})),VZ=zH(PJ,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),UZ=zH("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),YZ=zH("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...zF,justifyContent:null!=e?e:zF.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),KZ=zH("div")((()=>({...zF}))),XZ=zH("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),QZ=zH(FZ)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),JZ=zH(GZ,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),ZZ=zH("span")({textOverflow:"ellipsis",overflow:"hidden"}),e0=zH("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),t0=zH("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));var n0;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(n0||(n0={}));const r0=(e,t)=>({qExcludeList:t===n0.Expand,qPos:{qDimName:e,qElemNo:[]}}),o0=`${qV}/qExpansionState`,i0=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=null==t?void 0:t.findIndex((t=>{var n;return(null===(n=t.qPos)||void 0===n?void 0:n.qDimName)===e}));return{expansionData:r0(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:o}=t;try{let t,n=o0,i="Add";void 0===r?t=JSON.stringify([o]):-1===r?(n=`${o0}/-`,t=JSON.stringify(o)):(n=`${o0}/${r}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:n,qOp:i,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${r} dimension`})},a0=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:i0({...r,action:n0.Expand}),collapseCallback:i0({...r,action:n0.Collapse})}},s0={[$G.Sorting]:!0,[$G.Selections]:!0,[$G.Searching]:!0},l0=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:u,tableWidth:c})=>{var d;const p=F.useRef(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=OV(),{app:g,interactions:b,embed:y,translator:v,model:x}=PV(),{fontSize:_,fontFamily:w,fontStyle:S,fontWeight:C,textDecoration:E,color:k,background:R,hoverBackground:M,activeBackground:A}=f.header,L=F.useRef(null),{shouldShowLockIcon:I,shouldShowMenuIcon:P}=a,{open:T,setOpen:D,handleOpenMenu:O,setIsAdjustingWidth:z}=$Q(),{direction:N}=AV(),q={sortFromMenu:async(t,n)=>{t.stopPropagation(),await i(e,n)}},j={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},B={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=null!==(d=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==d?d:{},W=wQ($,"flex-start",N);return ae.jsxs(VZ,{className:db,title:e.label,interactions:b,background:T?A:R,hoverBackground:M,shouldShowMenuIcon:P,isDimension:e.isDim,style:{...t,...qF,...WF(e,o,n,r,f.grid.border,N),color:k},"data-testid":"title-cell",onClick:O,children:[ae.jsxs(YZ,{children:[I?ae.jsx(KZ,{children:ae.jsx(FQ,{height:12})}):null,ae.jsx(XZ,{fontFamily:w,fontSize:_,fontStyle:S,fontWeight:C,textDecoration:E,justifyContent:W,children:ae.jsx("span",{style:jF,children:e.label})})]}),e.isDim?ae.jsxs(ae.Fragment,{children:[ae.jsx(GG,{headerData:e,translator:v,anchorRef:L,open:T,setOpen:D,interactions:b,menuAvailabilityFlags:s0,sortRelatedArgs:q,searchRelatedArgs:j,selectionRelatedArgs:B,expandOrCollapseArgs:a0({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:P,model:x&&"setActiveField"in x?x:void 0,direction:N}),ae.jsx(UZ,{ref:p,direction:N}),ae.jsx(UZ,{ref:L,direction:N})]}):null,ae.jsx(HQ,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:l,setIsAdjustingWidth:z,shouldApplyIndentModeColumnWidth:u,tableWidth:c})]})},u0=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=OV(),{direction:r}=AV();return e>0&&t>0?ae.jsx("div",{style:{...NF,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},c0=(e,t)=>ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ae.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),d0=F.forwardRef(c0),p0=(e,t)=>ae.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ae.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),ae.jsx("use",{fillRule:"evenodd"})]}),f0=F.forwardRef(p0),h0=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=AV(),{styleService:o}=OV(),{interactions:i,translator:a}=PV(),{isActive:s}=QX(),{dataModel:l}=_Y(),{setIsAdjustingWidth:u}=BQ([l]);if(!(!!i.active&&!s))return null;const c=WQ(o,{isLeftColumn:!0});return ae.jsx(WH,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*CY))},confirmWidthCallback:r=>{var o;if(r.type===mb.FitToContent)return void l.applyIndentModeColumnWidth({type:mb.Auto});const i=Math.min(null!==(o=r.pixels)&&void 0!==o?o:t,e*CY);n(i),l.applyIndentModeColumnWidth({type:mb.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},m0=(e,t)=>ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ae.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}),g0=F.forwardRef(m0),b0=({cell:e,changeSortOrder:t})=>{const n=F.useRef(null),r=F.useRef(null),{app:o,interactions:i,embed:a,translator:s,model:l}=PV(),{layoutService:u,effectivePropertiesService:c}=OV(),{open:d,setOpen:p,handleOpenMenu:f}=$Q();return ae.jsxs(JZ,{onClick:f,isActive:d,children:[ae.jsx(ZZ,{children:e.label}),ae.jsxs(e0,{className:"indent-mode-dropdown-more",visible:d,children:[ae.jsx(g0,{}),e.isDim?ae.jsxs(ae.Fragment,{children:[ae.jsx(GG,{headerData:e,translator:s,anchorRef:n,open:d,setOpen:p,interactions:i,menuAvailabilityFlags:s0,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},expandOrCollapseArgs:a0({model:l,effectivePropertiesService:c,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),ae.jsx(UZ,{ref:r}),ae.jsx(UZ,{ref:n})]}):null]})]})},y0=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===FV,s=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===FV;return!(r&&a&&s)&&((null==t?void 0:t.id)!==FV&&e<n.length-1)},v0=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:n,leftGridWidth:r,tableWidth:o})=>{const{styleService:i}=OV(),{interactions:a,translator:s}=PV(),{dataModel:l,gridSectionsData:{headersData:u}}=_Y(),[c,d]=F.useState(!1),p=F.useRef(null),{headerCellHeight:f}=i,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:y,fontSize:v,fontStyle:x,fontWeight:_,textDecoration:w}=i.header,{isAdjustingWidth:S}=BQ([l]),C=e=>{e.stopPropagation()},E={height:f,gridColumn:`1 / span ${u.size.x}`,gridRow:u.size.y,zIndex:u.size.x-0};return ae.jsxs(VZ,{isDimension:!0,background:c?b:m,interactions:a,hoverBackground:g,style:{...E,...qF,color:h},onClick:e=>{!a.active||UX(e)||S||d(!c)},"data-testid":"indentModeHeaderCellWrapper",children:[ae.jsxs(YZ,{justifyContent:"flex-start",children:[ae.jsx(XZ,{fontFamily:y,fontSize:v,fontStyle:x,fontWeight:_,textDecoration:w,justifyContent:"flex-start",children:ae.jsx("span",{style:jF,children:s.get("SNPivotTable.IndentMode.Rows")})}),c?ae.jsx(f0,{}):ae.jsx(d0,{}),ae.jsx(UZ,{ref:p})]}),ae.jsx(QZ,{open:c,anchorEl:p.current,disableEnforceFocus:!0,children:e.map(((n,r)=>[n&&n.id!==FV&&ae.jsx("li",{role:"presentation",onClick:C,onKeyDown:C,children:ae.jsx(b0,{cell:n,changeSortOrder:t})}),y0({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===u.size.y})&&ae.jsx(KH,{"data-testid":"group-divider",variant:"middle"})]))}),ae.jsx(h0,{tableWidth:o,leftGridWidth:r,overrideLeftGridWidth:n})]})},x0=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,_0={display:"grid",width:"fit-content"},w0=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=OV(),{gridSectionsData:{headersData:u}}=_Y();return ae.jsxs("div",{"data-testid":"HEADER_GRID",style:{..._0,gridTemplateColumns:n.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${r}px`)).join(" "),height:a},children:[u.size.y>1&&ae.jsx(u0,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(x0({layoutService:l,headersData:u,topRowIndex:c})){const n=a.at(0);var p;if(Array.isArray(n))d.push(ae.jsx(v0,{menuItems:n,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},null===(p=n.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(ae.jsx(l0,{style:{width:n[d],height:r,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var S0=F.memo(w0);const C0=(e,t,n,r)=>{const{layoutService:o}=OV();F.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},E0=(e,t)=>{gB((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},k0=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},R0=(e,t,n,r,o)=>{var i,a;if(o)return;const s=e.representation,l=kY({isLeftColumn:n,layoutService:t,representation:s}),u=n?"flex-start":"center",c=null===(i=e.representation.resolvedImagePosition)||void 0===i?void 0:i.horizontal;if(e.representation.type===Cv.Image)return l&&c&&"center"!==c&&"rtl"===r?FX(c):null!=c?c:u;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var d;const{labelTextAlign:n}=null!==(d=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==d?d:{};return wQ(n,u,r)}const{textAlign:p}=null!==(a=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==a?a:{};return wQ(p,u,r)},M0=()=>{},A0=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=OV(),{interactions:h}=PV(),{direction:m}=AV(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:y}=QX(),{showLastBorder:v}=r,x=g(n)||n.isLockedByDimension,_=!(x||!h.active||!h.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),w=_?b(c,(e=>k0(e,r))):void 0,S=_?y(c):void 0,C=kY({isLeftColumn:s,layoutService:f,representation:n.representation});return ae.jsx("div",{className:db,title:h.passive?n.representation.text:void 0,style:{...t,...$F(i,a,p.grid.border,m,v),...HF({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:p.grid.divider}),...qF,padding:"rtl"===m?"0px 0px 0px 4px":"0px 4px",cursor:uQ(_),background:oQ({styleService:p,isCellSelected:l,cell:n,isCellLocked:x}),zIndex:s?void 0:f.size.x-n.x,justifyContent:R0(n,f,s,m,C),display:"flex",...f.isIndentModeEnabled&&s&&{["rtl"===m?"paddingRight":"paddingLeft"]:Math.max(4,24*(null!==(d=n.indentLevel)&&void 0!==d?d:0))},textAlign:SQ(n,f)},"aria-hidden":"true",onMouseDown:w,onMouseOver:S,onKeyUp:M0,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},L0=e=>{e.stopPropagation()},I0=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:L0,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}}),P0=({href:e,text:t,interactions:n,color:r})=>B.createElement(fN,I0({href:e,text:t,interactions:n,color:r}),t);function T0(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"===t?String:Number)(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 D0(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 O0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D0(Object(n),!0).forEach((function(t){T0(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z0=Object.prototype.hasOwnProperty,N0=Object.prototype.toString,q0=Object.defineProperty,j0=Object.getOwnPropertyDescriptor,F0=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===N0.call(e)},B0=function(e){if(!e||"[object Object]"!==N0.call(e))return!1;var t,n=z0.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&z0.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||z0.call(e,t)},$0=function(e,t){q0&&"__proto__"===t.name?q0(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},W0=function(e,t){if("__proto__"===t){if(!z0.call(e,t))return;if(j0)return j0(e,t).value}return e[t]},H0=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=W0(s,n),s!==(o=W0(t,n))&&(c&&o&&(B0(o)||(i=F0(o)))?(i?(i=!1,a=r&&F0(r)?r:[]):a=r&&B0(r)?r:{},$0(s,{name:n,newValue:e(c,a,o)})):void 0!==o&&$0(s,{name:n,newValue:o}));return s};function G0(e,t,n,r){if(!e)return-1;const o=n.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=o.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function V0(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function U0(e){let{cache:t,f:n,mainCell:r,p:o,page:i,rowIdx:a,row:s,sourceKey:l,target:u,targetProp:c,columnOrder:d}=e,p=r;if(o.field&&o.field!==n){const e=G0(o.field,i,{cache:t},d);if(-1===e)return;p=H0({qRow:a},e(s))}u[c]=V0(o,p,{key:l})}function Y0(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),s=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:u,main:c}=r.normalizeConfig(o[e],t),d=Object.keys(u),p=!!o[e].trackBy,f=typeof o[e].trackBy,h={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const i=G0(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==i)for(let b=0;b<a.qDataPages[t].qMatrix.length;b++){const y=a.qDataPages[t].qArea.qTop+b,v=H0({qRow:y},i(a.qDataPages[t].qMatrix[b])),x=V0(c,v,{key:s});if(!(c.filter&&!c.filter(v))){for(let e=0;e<d.length;e++){const r=u[d[e]];let o=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let i=0;i<o.length;i++)U0({cache:n,f:l,mainCell:v,p:o[i],prop:d[e],page:a.qDataPages[t],rowIdx:y,row:a.qDataPages[t].qMatrix[b],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?i:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}p&&r.track({cfg:o[e],itemData:v,obj:x,target:m,tracker:h,trackType:f}),g.push(x)}}}const b=p?r.collect(m,{main:c,propsArr:d,props:u}):g;i=[...i,...b]}return i}function K0(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function X0(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=J0)):void 0===t&&(t=Q0);for(var n,r,o,i,a,s=new t1(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new t1(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(e1)}function Q0(e){return e.children}function J0(e){return Array.isArray(e)?e[1]:null}function Z0(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function e1(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function t1(e){this.data=e,this.depth=this.height=0,this.parent=null}function n1(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}t1.prototype=X0.prototype={constructor:t1,count:function(){return this.eachAfter(K0)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;e=n.pop(),t=r.pop();for(;e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return X0(this).eachBefore(Z0)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var r1={depth:-1},o1={},i1={};function a1(e){return e.id}function s1(e){return e.parentId}function l1(){var e,t=a1,n=s1;function r(r){var o,i,a,s,l,u,c,d,p=Array.from(r),f=t,h=n,m=new Map;if(null!=e){const t=p.map(((t,n)=>function(e){e=`${e}`;let t=e.length;c1(e,t-1)&&!c1(e,t-2)&&(e=e.slice(0,-1));return"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(u1),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(u1(e)),p.push(i1));f=(e,n)=>t[n],h=(e,t)=>n[t]}for(a=0,o=p.length;a<o;++a)i=p[a],u=p[a]=new t1(i),null!=(c=f(i,a,r))&&(c+="")&&(d=u.id=c,m.set(d,m.has(d)?o1:u)),null!=(c=h(i,a,r))&&(c+="")&&(u.parent=c);for(a=0;a<o;++a)if(c=(u=p[a]).parent){if(!(l=m.get(c)))throw new Error("missing: "+c);if(l===o1)throw new Error("ambiguous: "+c);l.children?l.children.push(u):l.children=[u],u.parent=l}else{if(s)throw new Error("multiple roots");s=u}if(!s)throw new Error("no root");if(null!=e){for(;s.data===i1&&1===s.children.length;)s=s.children[0],--o;for(let e=p.length-1;e>=0&&(u=p[e]).data===i1;--e)u.data=null}if(s.parent=r1,s.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(e1),s.parent=null,o>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=n1(e),r):t},r.parentId=function(e){return arguments.length?(n=n1(e),r):n},r.path=function(t){return arguments.length?(e=n1(t),r):e},r}function u1(e){let t=e.length;if(t<2)return"";for(;--t>1&&!c1(e,t););return e.slice(0,t)}function c1(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function d1(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=d1(r,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=d1(r,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function p1(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(r=[...r,...p1(e[o].children,t-1,n)]);return r}function f1(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>p1(e.children,r-1,n)}return!1}const h1=/^qDimensionInfo(?:\/(\d+))?/,m1=/^\/?qMeasureInfo\/(\d+)/,g1=/\/qAttrExprInfo\/(\d+)/,b1=/\/qAttrDimInfo\/(\d+)/;function y1(e){const t=e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t));return t.filter((t=>t<e.qDimensionInfo.length))}function v1(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,s=-1,l=-1,u=-1,c=-1,d=r;const p=n.qEffectiveInterColumnSortOrder,f=y1(n);return h1.test(d)&&(o=!0,i=+h1.exec(d)[1],d=r.replace(h1,"")),m1.test(d)&&("K"===n.qMode?u=+m1.exec(d)[1]:p&&-1!==p.indexOf(-1)?(u=+m1.exec(d)[1],c=0):c=+m1.exec(d)[1],d=d.replace(m1,"")),d&&(b1.exec(d)?s=+b1.exec(d)[1]:g1.exec(d)&&(a=+g1.exec(d)[1])),l=o?"S"===n.qMode?f[i]:p?p.indexOf(i):i:p&&-1!==p.indexOf(-1)?p.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:u,measureIdx:c,attrDimIdx:s,attrIdx:a}}function x1(e,t){let n,r,o=f1(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:r,valueFn:n}}function _1(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function w1(e){let{propsArr:t,props:n,item:r,itemData:o,ret:i,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let u,c;s.fields&&(u=[],c=[]);for(let n=0;n<l.length;n++){const d=l[n];let p,f,h,m,g,b;if("primitive"===d.type?(h=d.value,b=String(d.value)):("function"==typeof d.value&&(p=e=>d.value(e,r)),"function"==typeof d.label&&(f=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),p&&(h=g.map(p),p=null),f&&(b=g.map(f),f=null),h=d.reduce?d.reduce(h):h,b=d.reduceLabel?d.reduceLabel(b,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),b=h)):(h=o,b=o)),s.fields){const e=p?p(h):h;u.push(e),c.push(f&&null!=b?f(b):null!=b?b:String(e))}else{const n=p?p(h):h;i[t[e]]={value:n,label:f?f(b):null!=b?b:String(n)},d.field&&(i[t[e]].source={field:d.field.key(),key:a})}}u&&(i[t[e]]={value:"function"==typeof s.value?s.value(u,r):u,label:"function"==typeof s.label?s.label(c,r):c})}}const S1=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=d1(r,e);return i&&i[0]?(t.tree=X0(i[0],n.children||(e=>e[o])),t.tree):null};const C1=e=>{let{propsArr:t,props:n,cube:r,cache:o,itemDepthObject:i,f:a}=e;for(let e=0;e<t.length;e++){const o=n[t[e]],s=o.fields?o.fields:[o];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=x1(i,v1(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function E1(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o=t.raw(),i=t.key(),a="S"===o.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),o=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),i=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<o.length;e++){var s;const t=n[o[e]],i="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[i]||(a[i]=O0({__id:i,__parent:r,qValues:[]},t),l=!0),r=i}if(l)for(let e=0;e<i.length;e++){const t=n[i[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e])),u=l1().id((e=>e.__id)).parentId((e=>e.__parent))(l);return u}(t):S1(o,n,e);if(!a)return null;const s=a.height,l=[];for(let i=0;i<=s;i++){let a=null;if(i>0)if("S"===o.qMode){let e=y1(o)[i-1];a=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[i-1];i>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:u}=r.normalizeConfig(O0(O0({},e),{},{field:a?a.key():void 0}),t),c=Object.keys(s);l[i]={propsArr:c,props:s,main:u};const d=a?v1(a,{cube:o}):{fieldDepth:0};C1({propsArr:c,props:s,cube:o,cache:n,itemDepthObject:d,f:a})}const u=a.copy().descendants(),c=a.descendants();for(let e=0;e<c.length;e++){const t=l[c[e].depth].propsArr,n=l[c[e].depth].props,r=l[c[e].depth].main,o=u[e],a=o.data,s=_1(r,a,{key:i});w1({propsArr:t,props:n,item:o,itemData:a,ret:s,sourceKey:i}),c[e].data=s}return a}function k1(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const s=t.raw(),l=t.key();if(!S1(s,n,e))continue;const u="object"==typeof o[a].field?o[a].field:t.field(o[a].field),{props:c,main:d}=r.normalizeConfig(o[a],t),p=Object.keys(c),f=v1(u,{cube:s}),{nodeFn:h,attrFn:m,valueFn:g}=x1({fieldDepth:0},f);C1({propsArr:p,props:c,cube:s,cache:n,itemDepthObject:f,f:u});const b=!!o[a].trackBy,y=typeof o[a].trackBy,v={},x=[],_=h(n.tree),w=[];for(let e=0;e<_.length;e++){const t=_[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const i=_1(d,n,{key:l});w1({propsArr:p,props:c,item:t,itemData:n,ret:i,sourceKey:l}),b&&r.track({cfg:o[a],itemData:n,obj:i,target:x,tracker:v,trackType:y}),w.push(i)}const S=b?r.collect(x,{main:d,propsArr:p,props:c}):w;i=[...i,...S]}return i}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var R1=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){
|
|
207
207
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
208
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}}));function M1(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const A1={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},L1=/%\)?$/,I1=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,P1=/^\(oct\)/i,T1=/^\(dec\)/i,D1=/^\(hex\)/i,O1=/^\(bin\)/i,z1=/^\(rom\)/i,N1=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,q1=/#|0/g;function j1(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function F1(e,t,n){let r;return I1.test(t)?e=j1(e,Number(/\d{2}/.exec(t)[0]),t,n):P1.test(t)?e=j1(e,8,t,n):T1.test(t)?e=j1(e,10,t,n):D1.test(t)?e=j1(e,16,t,n):O1.test(t)?e=j1(e,2,t,n):z1.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=s[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function B1(e,t,n){const r=M1(e);return n?r:new RegExp(r||"",t)}function $1(e,t,n,r){let o,i,a,s,l,u,c,d,p,f=e.pattern;var h,m;r&&(e.abbreviate=!0),h=t,(m=n)&&(m=M1(m)),h&&(h=M1(h)),p=new RegExp("(?:[#0]+".concat(h,")?[#0]+(?:").concat(m,"[#0]+)?")),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),u=t,t=/,/.test(n)?"¤":",",u&&(a=a.replace(B1(u,"g"),t)),c=n,n=".",c&&(a=a.replace(B1(c,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=f.split(c);let b;g[1]&&(b=g[1].match(q1)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=b?b.length:2,e.percentage=L1.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(B1(t,null,!0),"|").concat(B1(n,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=n,e.temp=d}class W1{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return A1;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new W1(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],N1.test(e[0])&&(r.positive.isFunctional=!0),e[1]?N1.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?N1.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||$1(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&$1(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&$1(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,s,l,u,c=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,i=c.d,a=c.t,c.isFunctional)e=F1(e,c.pattern,i);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,o,i=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&s<t.length;)s++,i=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=c.maxPrecision?o=i:r<=n&&!(i>0&&-n<=c.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,u||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let n=l.split(i)[0];if(n+=i,e=R1(n,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),n=u.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<n;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=R1(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===i?c.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+p+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function H1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:o=e=>e}=t;let i,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return i=r?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(u>=n&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),i.get=e=>s[e],i.has=e=>e in s,i.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},i.size=()=>u,i}function G1(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new W1(...t)}(o,e,t,n,r),a=H1(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const V1="D",U1="T",Y1="TS",K1="IV",X1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Q1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],J1=["January","February","March","April","May","June","July","August","September","October","November","December"],Z1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function e2(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function t2(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function n2(e,t){let n,r=function(e){const t=e,n=24*t2(t),r=60*t2(n),o=60*t2(r),i=1e3*t2(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,s=r.s,l=r.f,u=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=n?n.getDay()-1:0,u<0&&(u=6));let c="";return n&&(c=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:o,h:i,m:a,s:s,f:l,t:c}}class r2{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:X1,qDayNames:Q1,qLongMonthNames:J1,qMonthNames:Z1}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[U1]:r.qTimeFmt||"hh:mm:ss",[V1]:r.qDateFmt||"YYYY-MM-DD",[Y1]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new r2(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=n2(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:e2("".concat(t.year).slice(-2),2),YYY:e2("".concat(t.year).slice(-3),3),def:e=>e2("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:e2("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:e2("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>e2("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>e2("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>e2("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>e2("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function o2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new r2(...t)}function i2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=o2(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=H1(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==K1?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=o2(o,e,t),r=H1(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function a2(){let e,{meta:t,id:n,key:r,localeInfo:o,fieldExtractor:i,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return i2(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),G1(n,r,o,i,t)}(t,o),p="dimension"===s?"first":(e,t)=>d(t),f={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=i(f)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:p,formatter:()=>d,tags:()=>t.qTags};return f}function s2(e,t,n,r,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),s={instance:a2(H0({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=s2("qAttrDimInfo",t,n,a,H0({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=s2("qAttrExprInfo",t,n,a,H0({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=s2("qMeasureInfo",t,n,a,H0({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function l2(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const i=l2.util,a={cache:r,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,i),hierarchy:e=>a.hierarchy(e,s,r,i),_cache:()=>r};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(a.extractor=k1,a.hierarchy=E1,a.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(a.extractor=Y0,a.pages=o.qDataPages,a.hierarchy=E1):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,i);const l="S"===o.qMode?e=>e.qElemNumber:void 0,u="S"===o.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...s2("qDimensionInfo",o,e,"",H0({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...s2("qMeasureInfo",o,e,"",H0({},a,{value:u,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const c=e=>{e.forEach((e=>{r.allFields.push(e.instance),c(e.measures),c(e.attrDims),c(e.attrExps)}))};return c(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),o=a2(O0({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,i),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(o)})),r.allFields.push(...r.virtualFields),s}const u2=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],c2=/\/qDimensionInfo(?:\/(\d+))?/,d2=/\/qMeasureInfo\/(\d+)/,p2=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,f2=/\/qAttrExprInfo\/(\d+)/,h2=/\/?qHyperCube/,m2=/\/?qTreeData/,g2=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),b2=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function y2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;h2.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=g2):m2.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=b2);let s=!0;if(c2.test(e)&&(r=+c2.exec(e)[1]),d2.test(e)&&(o=+d2.exec(e)[1]),p2.test(e)){o=-1,r=0;const e=+p2.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(f2.test(e)){const e=o;if(t){o=0;const a=d1(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),r=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+f2.exec(n)[1]}else r>-1?(r=-1,o=+f2.exec(n)[1]):o+=+f2.exec(n)[1]+1}return u2.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||s>=i)&&i>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var u;a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]});return a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i}function v2(e){l2.util=e.data("matrix").util,e.data("q",l2),e.formatter("q-number",G1),e.formatter("q-time",i2)}v2.qBrushHelper=y2,v2.selections=y2;var x2=Object.prototype.hasOwnProperty,_2=Object.prototype.toString,w2=Object.defineProperty,S2=Object.getOwnPropertyDescriptor,C2=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_2.call(e)},E2=function(e){if(!e||"[object Object]"!==_2.call(e))return!1;var t,n=x2.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&x2.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||x2.call(e,t)},k2=function(e,t){w2&&"__proto__"===t.name?w2(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},R2=function(e,t){if("__proto__"===t){if(!x2.call(e,t))return;if(S2)return S2(e,t).value}return e[t]},M2=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=R2(s,n),s!==(o=R2(t,n))&&(c&&o&&(E2(o)||(i=C2(o)))?(i?(i=!1,a=r&&C2(r)?r:[]):a=r&&E2(r)?r:{},k2(s,{name:n,newValue:e(c,a,o)})):void 0!==o&&k2(s,{name:n,newValue:o}));return s},A2="2.8.2";function L2(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"===t?String:Number)(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 I2(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 P2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I2(Object(n),!0).forEach((function(t){L2(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T2(e){return!!e.changedTouches}function D2(e){return"number"==typeof e&&!isNaN(e)}function O2(e){return"number"!=typeof e||isNaN(e)}function z2(e){const t=e.length;let n=NaN,r=NaN,o=NaN,i=NaN;for(let a=0;a<t;a++)n=isNaN(n)?e[a].x:Math.min(n,e[a].x),r=isNaN(r)?e[a].x:Math.max(r,e[a].x),o=isNaN(o)?e[a].y:Math.min(o,e[a].y),i=isNaN(i)?e[a].y:Math.max(i,e[a].y);return[n,o,r,i]}function N2(e){return[{x:e.x1||0,y:e.y1||0},{x:e.x2||0,y:e.y2||0}]}function q2(e){return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}]}function j2(e){const[t,n,r,o]=z2(e);return{x:t,y:n,width:r-t,height:o-n}}function F2(e){return{x1:e[0].x,y1:e[0].y,x2:e[1].x,y2:e[1].y}}function B2(e){const{x:t,y:n,width:r,height:o,x1:i,x2:a,y1:s,y2:l,cx:u,cy:c,r:d,vertices:p}=e||{};return D2(u)&&D2(c)&&D2(d)?"circle":D2(i)&&D2(a)&&D2(s)&&D2(l)?"line":D2(t)&&D2(n)&&D2(r)&&D2(o)?"rect":D2(t)&&D2(n)?"point":Array.isArray(p)?p.every((e=>Array.isArray(e)))?"geopolygon":"polygon":null}function $2(e,t){return{x:t.x-e,y:t.y-e,width:t.width+e,height:t.height+e}}var W2=Math.PI,H2=2*W2,G2=1e-6,V2=H2-G2;function U2(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Y2(){return new U2}function K2(e){return function(){return e}}U2.prototype=Y2.prototype={constructor:U2,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>G2)if(Math.abs(c*s-l*u)>G2&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,g=Math.sqrt(h),b=Math.sqrt(d),y=o*Math.tan((W2-Math.acos((h+d-m)/(2*g*b)))/2),v=y/b,x=y/g;Math.abs(v-1)>G2&&(this._+="L"+(e+v*u)+","+(t+v*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*f)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>G2||Math.abs(this._y1-u)>G2)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%H2+H2),d>V2?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>G2&&(this._+="A"+n+","+n+",0,"+ +(d>=W2)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var X2=Math.abs,Q2=Math.atan2,J2=Math.cos,Z2=Math.max,e5=Math.min,t5=Math.sin,n5=Math.sqrt,r5=1e-12,o5=Math.PI,i5=o5/2,a5=2*o5;function s5(e){return e>=1?i5:e<=-1?-i5:Math.asin(e)}function l5(e){return e.innerRadius}function u5(e){return e.outerRadius}function c5(e){return e.startAngle}function d5(e){return e.endAngle}function p5(e){return e&&e.padAngle}function f5(e,t,n,r,o,i,a){var s=e-n,l=t-r,u=(a?i:-i)/n5(s*s+l*l),c=u*l,d=-u*s,p=e+c,f=t+d,h=n+c,m=r+d,g=(p+h)/2,b=(f+m)/2,y=h-p,v=m-f,x=y*y+v*v,_=o-i,w=p*m-h*f,S=(v<0?-1:1)*n5(Z2(0,_*_*x-w*w)),C=(w*v-y*S)/x,E=(-w*y-v*S)/x,k=(w*v+y*S)/x,R=(-w*y+v*S)/x,M=C-g,A=E-b,L=k-g,I=R-b;return M*M+A*A>L*L+I*I&&(C=k,E=R),{cx:C,cy:E,x01:-c,y01:-d,x11:C*(o/_-1),y11:E*(o/_-1)}}function h5(){var e=l5,t=u5,n=K2(0),r=null,o=c5,i=d5,a=p5,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),p=o.apply(this,arguments)-i5,f=i.apply(this,arguments)-i5,h=X2(f-p),m=f>p;if(s||(s=l=Y2()),d<c&&(u=d,d=c,c=u),d>r5)if(h>a5-r5)s.moveTo(d*J2(p),d*t5(p)),s.arc(0,0,d,p,f,!m),c>r5&&(s.moveTo(c*J2(f),c*t5(f)),s.arc(0,0,c,f,p,m));else{var g,b,y=p,v=f,x=p,_=f,w=h,S=h,C=a.apply(this,arguments)/2,E=C>r5&&(r?+r.apply(this,arguments):n5(c*c+d*d)),k=e5(X2(d-c)/2,+n.apply(this,arguments)),R=k,M=k;if(E>r5){var A=s5(E/c*t5(C)),L=s5(E/d*t5(C));(w-=2*A)>r5?(x+=A*=m?1:-1,_-=A):(w=0,x=_=(p+f)/2),(S-=2*L)>r5?(y+=L*=m?1:-1,v-=L):(S=0,y=v=(p+f)/2)}var I=d*J2(y),P=d*t5(y),T=c*J2(_),D=c*t5(_);if(k>r5){var O,z=d*J2(v),N=d*t5(v),q=c*J2(x),j=c*t5(x);if(h<o5&&(O=function(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,p=d*l-c*u;if(!(p*p<r5))return[e+(p=(c*(t-i)-d*(e-o))/p)*l,t+p*u]}(I,P,q,j,z,N,T,D))){var F=I-O[0],B=P-O[1],$=z-O[0],W=N-O[1],H=1/t5(function(e){return e>1?0:e<-1?o5:Math.acos(e)}((F*$+B*W)/(n5(F*F+B*B)*n5($*$+W*W)))/2),G=n5(O[0]*O[0]+O[1]*O[1]);R=e5(k,(c-G)/(H-1)),M=e5(k,(d-G)/(H+1))}}S>r5?M>r5?(g=f5(q,j,I,P,d,M,m),b=f5(z,N,T,D,d,M,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),M<k?s.arc(g.cx,g.cy,M,Q2(g.y01,g.x01),Q2(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,M,Q2(g.y01,g.x01),Q2(g.y11,g.x11),!m),s.arc(0,0,d,Q2(g.cy+g.y11,g.cx+g.x11),Q2(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,M,Q2(b.y11,b.x11),Q2(b.y01,b.x01),!m))):(s.moveTo(I,P),s.arc(0,0,d,y,v,!m)):s.moveTo(I,P),c>r5&&w>r5?R>r5?(g=f5(T,D,z,N,c,-R,m),b=f5(I,P,q,j,c,-R,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),R<k?s.arc(g.cx,g.cy,R,Q2(g.y01,g.x01),Q2(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,R,Q2(g.y01,g.x01),Q2(g.y11,g.x11),!m),s.arc(0,0,c,Q2(g.cy+g.y11,g.cx+g.x11),Q2(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,R,Q2(b.y11,b.x11),Q2(b.y01,b.x01),!m))):s.arc(0,0,c,_,x,m):s.lineTo(T,D)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-o5/2;return[J2(r)*n,t5(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:K2(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:K2(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:K2(+e),l):r},l.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:K2(+e),l):o},l.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:K2(+e),l):i},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:K2(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function m5(e){this._context=e}function g5(e){return new m5(e)}function b5(e){return e[0]}function y5(e){return e[1]}function v5(){var e=b5,t=null,n=K2(0),r=y5,o=K2(!0),i=null,a=g5,s=null;function l(l){var u,c,d,p,f,h=l.length,m=!1,g=new Array(h),b=new Array(h);for(null==i&&(s=a(f=Y2())),u=0;u<=h;++u){if(!(u<h&&o(p=l[u],u,l))===m)if(m=!m)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(g[d],b[d]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+e(p,u,l),b[u]=+n(p,u,l),s.point(t?+t(p,u,l):g[u],r?+r(p,u,l):b[u]))}if(f)return s=null,f+""||null}function u(){return function(){var e=b5,t=y5,n=K2(!0),r=null,o=g5,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=Y2())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,s,a),+t(l,s,a));if(u)return i=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:K2(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:K2(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:K2(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:K2(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:K2(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:K2(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:K2(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:K2(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}function x5(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function _5(e){return e}m5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var w5=Array.prototype.slice;function S5(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function C5(e){this._context=e}function E5(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function k5(e,t){this._context=e,this._k=(1-t)/6}C5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:S5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:S5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:E5(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:E5(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R5=function e(t){function n(e){return new k5(e,t)}return n.tension=function(t){return e(+t)},n}(0);function M5(e,t){this._context=e,this._alpha=t}M5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>r5){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>r5){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var A5=function e(t){function n(e){return t?new M5(e,t):new k5(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function L5(e){return e<0?-1:1}function I5(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(L5(i)+L5(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function P5(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function T5(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function D5(e){this._context=e}function O5(e){this._context=new z5(e)}function z5(e){this._context=e}function N5(e){this._context=e}function q5(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function j5(e,t){this._context=e,this._t=t}function F5(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function B5(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $5(e,t){return e[t]}function W5(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function H5(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}function G5(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unspecified",r=arguments.length>2?arguments[2]:void 0;const o={},i=e||{get:()=>{},has:()=>!1,default:()=>{}};function a(e,t){if(!e||"string"!=typeof e)throw new TypeError("Invalid argument: key must be a non-empty string");return!(e in o)&&(o[e]=t,!0)}function s(e){return o[e]||i.get(e)}function l(e,o){if(void 0!==o)return a(e,o);const i=s(e);return r&&void 0===i&&r.warn("".concat(e," does not exist in ").concat(n," registry")),i||s(t)}return t=i.default(),l.add=a,l.get=s,l.has=function(e){return!!o[e]||i.has(e)},l.remove=function(e){const t=o[e];return delete o[e],t},l.getKeys=function(){return Object.keys(o)},l.getValues=function(){return Object.keys(o).map((e=>o[e]))},l.default=function(e){return void 0!==e&&(t=e),t},l.register=a,l}function V5(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function U5(e){return(e=V5(Math.abs(e)))?e[1]:NaN}D5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:T5(this,this._t0,P5(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,T5(this,P5(this,n=I5(this,e,t)),n);break;default:T5(this,this._t0,n=I5(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(O5.prototype=Object.create(D5.prototype)).point=function(e,t){D5.prototype.point.call(this,t,e)},z5.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},N5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=q5(e),o=q5(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},j5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Y5,K5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function X5(e){if(!(t=K5.exec(e)))throw new Error("invalid format: "+e);var t;return new Q5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Q5(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function J5(e,t){var n=V5(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}X5.prototype=Q5.prototype,Q5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Z5={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>J5(100*e,t),r:J5,s:function(e,t){var n=V5(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Y5=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+V5(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function e3(e){return e}var t3,n3,r3,o3=Array.prototype.map,i3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function a3(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?e3:(t=o3.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?e3:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(o3.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=X5(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Z5[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===p?i:/[%p]/.test(y)?l:"",_=Z5[y],w=/[defgprs%]/.test(y);function S(e){var o,i,l,p=v,S=x;if("c"===y)S=_(e)+S,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),p=(C?"("===d?d:u:"-"===d||"("===d?"":d)+p,S=("s"===y?i3[8+Y5/3]:"")+S+(C&&"("===d?")":""),w)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var E=p.length+e.length+S.length,k=E<h?new Array(h-E+1).join(t):"";switch(m&&f&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=p+e+S+k;break;case"=":e=p+k+e+S;break;case"^":e=k.slice(0,E=k.length>>1)+p+e+S+k.slice(E);break;default:e=k+p+e+S}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=X5(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(U5(t)/3))),o=Math.pow(10,-r),i=i3[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){t3=a3(e),n3=t3.format,r3=t3.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const s3=new Date,l3=new Date;function u3(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>u3((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(s3.setTime(+t),l3.setTime(+r),e(s3),e(l3),Math.floor(n(s3,l3))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const c3=6e4,d3=864e5,p3=6048e5,f3=u3((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*c3)/d3),(e=>e.getDate()-1));f3.range;const h3=u3((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/d3),(e=>e.getUTCDate()-1));h3.range;const m3=u3((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/d3),(e=>Math.floor(e/d3)));function g3(e){return u3((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*c3)/p3))}m3.range;const b3=g3(0),y3=g3(1),v3=g3(2),x3=g3(3),_3=g3(4),w3=g3(5),S3=g3(6);function C3(e){return u3((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/p3))}b3.range,y3.range,v3.range,x3.range,_3.range,w3.range,S3.range;const E3=C3(0),k3=C3(1),R3=C3(2),M3=C3(3),A3=C3(4),L3=C3(5),I3=C3(6);E3.range,k3.range,R3.range,M3.range,A3.range,L3.range,I3.range;const P3=u3((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));P3.every=e=>isFinite(e=Math.floor(e))&&e>0?u3((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,P3.range;const T3=u3((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function D3(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function O3(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function z3(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=D3,n=(t,n)=>D3(e(t),n),r=(t,n)=>e(t)-n):(t=e===D3||e===O3?e:N3,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function N3(){return 0}T3.every=e=>isFinite(e=Math.floor(e))&&e>0?u3((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,T3.range;const q3=z3(D3).right;z3((function(e){return null===e?NaN:+e})).center;var j3=q3;class F3 extends Map{constructor(e,t=$3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(B3(this,e))}has(e){return super.has(B3(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function B3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $3(e){return null!==e&&"object"==typeof e?e.valueOf():e}const W3=Math.sqrt(50),H3=Math.sqrt(10),G3=Math.sqrt(2);function V3(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=W3?10:i>=H3?5:i>=G3?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?V3(e,t,2*n):[s,l,u]}function U3(e,t,n){return V3(e=+e,t=+t,n=+n)[2]}function Y3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function K3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function X3(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Q3(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=o6(o),c=i6(o),d=o6(i),p=i6(i),f=o6(a),h=i6(a),m=o6(s),g=i6(s),b=o6(l),y=i6(l),v={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:k6,e:k6,f:I6,g:$6,G:H6,H:R6,I:M6,j:A6,L:L6,m:P6,M:T6,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:f4,s:h4,S:D6,u:O6,U:z6,V:q6,w:j6,W:F6,x:null,X:null,y:B6,Y:W6,Z:G6,"%":p4},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:V6,e:V6,f:Q6,g:l4,G:c4,H:U6,I:Y6,j:K6,L:X6,m:J6,M:Z6,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:f4,s:h4,S:e4,u:t4,U:n4,V:o4,w:i4,W:a4,x:null,X:null,y:s4,Y:u4,Z:d4,"%":p4},_={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:g6,e:g6,f:w6,g:p6,G:d6,H:y6,I:y6,j:b6,L:_6,m:m6,M:v6,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:h6,Q:C6,s:E6,S:x6,u:s6,U:l6,V:u6,w:a6,W:c6,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:p6,Y:d6,Z:f6,"%":S6};function w(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=J3[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,o,i=X3(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=K3(X3(i.y,0,1))).getUTCDay(),r=o>4||0===o?k3.ceil(r):k3(r),r=h3.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Y3(X3(i.y,0,1))).getDay(),r=o>4||0===o?y3.ceil(r):y3(r),r=f3.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?K3(X3(i.y,0,1)).getUTCDay():Y3(X3(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,K3(i)):Y3(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=_[o in J3?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var J3={"-":"",_:" ",0:"0"},Z3=/^\s*\d+/,e6=/^%/,t6=/[\\^$*+?|[\]().{}]/g;function n6(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function r6(e){return e.replace(t6,"\\$&")}function o6(e){return new RegExp("^(?:"+e.map(r6).join("|")+")","i")}function i6(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function a6(e,t,n){var r=Z3.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function s6(e,t,n){var r=Z3.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function l6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function u6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function c6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function d6(e,t,n){var r=Z3.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function p6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function f6(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function h6(e,t,n){var r=Z3.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function m6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function g6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function b6(e,t,n){var r=Z3.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function y6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function v6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function x6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _6(e,t,n){var r=Z3.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function w6(e,t,n){var r=Z3.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function S6(e,t,n){var r=e6.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function C6(e,t,n){var r=Z3.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function E6(e,t,n){var r=Z3.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function k6(e,t){return n6(e.getDate(),t,2)}function R6(e,t){return n6(e.getHours(),t,2)}function M6(e,t){return n6(e.getHours()%12||12,t,2)}function A6(e,t){return n6(1+f3.count(P3(e),e),t,3)}function L6(e,t){return n6(e.getMilliseconds(),t,3)}function I6(e,t){return L6(e,t)+"000"}function P6(e,t){return n6(e.getMonth()+1,t,2)}function T6(e,t){return n6(e.getMinutes(),t,2)}function D6(e,t){return n6(e.getSeconds(),t,2)}function O6(e){var t=e.getDay();return 0===t?7:t}function z6(e,t){return n6(b3.count(P3(e)-1,e),t,2)}function N6(e){var t=e.getDay();return t>=4||0===t?_3(e):_3.ceil(e)}function q6(e,t){return e=N6(e),n6(_3.count(P3(e),e)+(4===P3(e).getDay()),t,2)}function j6(e){return e.getDay()}function F6(e,t){return n6(y3.count(P3(e)-1,e),t,2)}function B6(e,t){return n6(e.getFullYear()%100,t,2)}function $6(e,t){return n6((e=N6(e)).getFullYear()%100,t,2)}function W6(e,t){return n6(e.getFullYear()%1e4,t,4)}function H6(e,t){var n=e.getDay();return n6((e=n>=4||0===n?_3(e):_3.ceil(e)).getFullYear()%1e4,t,4)}function G6(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+n6(t/60|0,"0",2)+n6(t%60,"0",2)}function V6(e,t){return n6(e.getUTCDate(),t,2)}function U6(e,t){return n6(e.getUTCHours(),t,2)}function Y6(e,t){return n6(e.getUTCHours()%12||12,t,2)}function K6(e,t){return n6(1+h3.count(T3(e),e),t,3)}function X6(e,t){return n6(e.getUTCMilliseconds(),t,3)}function Q6(e,t){return X6(e,t)+"000"}function J6(e,t){return n6(e.getUTCMonth()+1,t,2)}function Z6(e,t){return n6(e.getUTCMinutes(),t,2)}function e4(e,t){return n6(e.getUTCSeconds(),t,2)}function t4(e){var t=e.getUTCDay();return 0===t?7:t}function n4(e,t){return n6(E3.count(T3(e)-1,e),t,2)}function r4(e){var t=e.getUTCDay();return t>=4||0===t?A3(e):A3.ceil(e)}function o4(e,t){return e=r4(e),n6(A3.count(T3(e),e)+(4===T3(e).getUTCDay()),t,2)}function i4(e){return e.getUTCDay()}function a4(e,t){return n6(k3.count(T3(e)-1,e),t,2)}function s4(e,t){return n6(e.getUTCFullYear()%100,t,2)}function l4(e,t){return n6((e=r4(e)).getUTCFullYear()%100,t,2)}function u4(e,t){return n6(e.getUTCFullYear()%1e4,t,4)}function c4(e,t){var n=e.getUTCDay();return n6((e=n>=4||0===n?A3(e):A3.ceil(e)).getUTCFullYear()%1e4,t,4)}function d4(){return"+0000"}function p4(){return"%"}function f4(e){return+e}function h4(e){return Math.floor(+e/1e3)}const m4=G5();m4("d3-number",(function(e,t,n){let r,o;function i(e){return o(e)}function a(){i.locale({decimal:n||".",thousands:t||",",grouping:[3],currency:["$",""]})}return i.locale=function(t){return r=a3(t),o=r.format(e),this},a(),i.format=function(e,o,i,s){return(i||s)&&(t=i,n=s,a()),r.format(e)(o)},i.pattern=function(t){return t&&(e=t,o=r.format(t)),e},i})),m4("d3-time",(function(e){let t=Q3({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n=t.format(e);function r(e){return n(e)}return r.format=function(e,n){return t.format(e)(n)},r.locale=function(){return t=Q3(...arguments),n=t.format(e),this},r.parse=function(e,n){return t.parse(e)(n)},r.parsePattern=function(e){return t.parse(e)},r}));const g4={id:e=>"".concat(e.source,"/").concat(e.key||e.title),key:e=>String(e.key||e.title),tags:e=>e.tags,min:e=>e.min,max:e=>e.max,type:e=>e.type,title:e=>String(e.title),values:e=>e.values,value:e=>e,label:e=>e,formatter:e=>(e=>{if("function"==typeof e.formatter)return e.formatter();const t=e.formatter||{};return m4(t.type||"d3-number")(t.format||"")})(e)};function b4(e){let{id:t=g4.id,key:n=g4.key,min:r=g4.min,max:o=g4.max,type:i=g4.type,tags:a=g4.tags,title:s=g4.title,values:l=g4.values,value:u=g4.value,label:c=g4.label,formatter:d=g4.formatter}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:()=>t(e),key:()=>n(e),raw:()=>e,tags:()=>a(e),type:()=>i(e),min:()=>r(e),max:()=>o(e),title:()=>s(e),items:()=>l(e),formatter:()=>d(e),value:u,label:c}}const y4=e=>e.filter((e=>"number"==typeof e&&!isNaN(e))),v4=e=>e.reduce(((e,t)=>e+t),0),x4={first:e=>e[0],last:e=>e[e.length-1],min:e=>{const t=y4(e);return t.length?Math.min.apply(null,t):NaN},max:e=>{const t=y4(e);return t.length?Math.max.apply(null,t):NaN},sum:e=>{const t=y4(e);return t.length?t.reduce(((e,t)=>e+t),0):NaN},avg:e=>{const t=y4(e),n=t.length;return n?v4(t)/n:NaN}};function _4(e,t,n,r){const o={},i=r.field||(void 0!==e.field?t.field(e.field):null);return Object.keys(n).forEach((a=>{const s=n[a],l=o[a]={};-1!==["number","string","boolean"].indexOf(typeof s)?(l.type="primitive",l.value=s):"function"==typeof s?(l.type="function",l.value=s,l.label=s,l.field=i):"object"==typeof s&&(s.fields?l.fields=s.fields.map((n=>_4(e,t,{main:n},r).main)):void 0!==s.field?(l.type="field",l.field=t.field(s.field),l.value=l.field.value,l.label=l.field.label):i&&(l.value=i.value,l.label=i.label,l.field=i),"function"==typeof s.filter&&(l.filter=s.filter),void 0!==s.value&&(l.value=s.value),void 0!==s.label&&(l.label=s.label),"function"==typeof s.reduce?l.reduce=s.reduce:s.reduce?l.reduce=x4[s.reduce]:l.field&&l.field.reduce&&(l.reduce="string"==typeof l.field.reduce?x4[l.field.reduce]:l.field.reduce),"function"==typeof s.reduceLabel?l.reduceLabel=s.reduceLabel:s.reduceLabel?l.reduceLabel=x4[s.reduceLabel]:l.field&&l.field.reduceLabel&&(l.reduceLabel="string"==typeof l.field.reduceLabel?x4[l.field.reduceLabel]:l.field.reduceLabel))})),o}function w4(e,t){const{main:n}=_4(e,t,{main:{value:e.value,label:e.label,reduce:e.reduce,filter:e.filter}},{});return{props:_4(e,t,e.props||{},n),main:n}}function S4(e,t,n,r){const o=Array(e.length),i=Array(e.length);let a;for(let t=0;t<e.length;t++)a=r?e[t][r]:e[t],o[t]=a.value,i[t]=a.label;const s=t.reduce,l=t.reduceLabel,u=s?s(o):o,c={value:u,label:l?l(i,u):n?n(u):String(u)};return r&&e[0][r].source?(c.source=e[0][r].source,c):!r&&e[0].source?(c.source=e[0].source,c):c}function C4(e,t){let{main:n,propsArr:r,props:o}=t,i=[];const a=n.field.formatter(),s={};return r.forEach((e=>{s[e]=o[e].field?o[e].field.formatter():e=>e})),i.push(...e.map((e=>{const t=S4(e.items,n,a);return r.forEach((n=>{t[n]=S4(e.items,o[n],s[n],n)})),t}))),i}function E4(e){let{cfg:t,itemData:n,obj:r,target:o,tracker:i,trackType:a}=e;const s="function"===a?t.trackBy(n):n[t.trackBy];let l=i[s];l||(l=i[s]={items:[],id:s},o.push(l)),l.items.push(r)}function k4(e){if(e.length<1e4)return Math.max(...e);let t=-1/0;const n=e.length;for(let r=0;r<n;r++)t<e[r]&&(t=e[r]);return t}function R4(e){if(e.length<1e4)return Math.min(...e);let t=1/0;const n=e.length;for(let r=0;r<n;r++)t>e[r]&&(t=e[r]);return t}const M4={diverging:function(e,t){if((s=e.length)>0)for(var n,r,o,i,a,s,l=0,u=e[t[0]].length;l<u;++l)for(i=a=0,n=0;n<s;++n)(o=(r=e[t[n]][l])[1]-r[0])>=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},none:F5,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}F5(e,t)}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}F5(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],d=c[a][1]||0,p=(d-(c[a-1][1]||0))/2,f=0;f<s;++f){var h=e[t[f]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=d,u+=p*d}n[a-1][1]+=n[a-1][0]=i,l&&(i-=u/l)}n[a-1][1]+=n[a-1][0]=i,F5(e,t)}}},A4={ascending:function(e){var t=e.map(H5);return B5(e).sort((function(e,n){return t[e]-t[n]}))},insideout:function(e){var t,n,r=e.length,o=e.map(H5),i=function(e){var t=e.map(W5);return B5(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,s=0,l=[],u=[];for(t=0;t<r;++t)n=i[t],a<s?(a+=o[n],l.push(n)):(s+=o[n],u.push(n));return u.reverse().concat(l)},none:B5,reverse:function(e){return B5(e).reverse()}};function L4(e,t,n){const r={},o=t.stackKey,i=t.value,a=t.startProp||"start",s=t.endProp||"end",l=t.offset||"none",u=t.order||"none",c=t.valueRef||"";let d=0,p={};for(let t=0;t<e.items.length;t++){let n=e.items[t],i=c?n[c]:null;if(i&&i.source){let e="".concat(i.source.key||"","/").concat(i.source.field);p[e]||(p[e]=i.source)}let a=o(n);r[a]=r[a]||{items:[]},r[a].items.push(n),d=Math.max(d,r[a].items.length)}const f=Array.apply(null,{length:d}).map(Number.call,Number),h=Object.keys(r).map((e=>r[e].items)),m=function(){var e=K2([]),t=B5,n=F5,r=$5;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,u=s.length,c=new Array(u);for(i=0;i<u;++i){for(var d,p=s[i],f=c[i]=new Array(l),h=0;h<l;++h)f[h]=d=[0,+r(o[h],p,h,o)],d.data=o[h];f.key=p}for(i=0,a=t(c);i<u;++i)c[a[i]].index=i;return n(c,a),c}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:K2(w5.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:K2(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?B5:"function"==typeof e?e:K2(w5.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?F5:e,o):n},o}().keys(f).value(((e,t)=>e[t]?i(e[t]):0)).order(A4[u]).offset(M4[l]);let g=m(h),b=[];for(let e=0;e<g.length;e++){let t=g[e];for(let e=0;e<t.length;e++){let n=t[e],r=t[e].data[t.key];r&&(r[a]={value:n[0]},r[s]={value:n[1]},b.push(n[0],n[1]))}}let y=Object.keys(p).map((e=>{let t=n(p[e].key);return t?t.field(p[e].field):null})).filter((e=>!!e));const v=b4({title:y.map((e=>e.title())).join(", "),min:R4(b),max:k4(b),type:"measure",formatter:y[0]?y[0].formatter:void 0});e.fields.push(v)}function I4(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).logger;if(Array.isArray(e))n.items=e.map((e=>({value:e,label:String(e)})));else if(e){if("collection"in e)n=P2({},t.collection(e.collection));else{const o=t.dataset?t.dataset(e.source):null;let i=e.value||(e=>e),a=e.label||(e=>e);if(e.groupBy||e.mapTo)r.warn('Deprecated "data" configuration',e),n.items=[];else if(e.hierarchy)n.root=o.hierarchy?o.hierarchy(e.hierarchy):null,n.fields=o.fields();else if(e.items)n.items=e.skipNormalize?e.items:e.items.map((e=>({value:i(e),label:String(a(e))})));else if(e.extract){const r=Array.isArray(e.extract)?e.extract:[e.extract];n.items=[];const i=[];r.forEach((e=>{const r=e.source?t.dataset(e.source):o;r&&(n.items=[...n.items,...r.extract(e)],void 0!==e.field&&i.push(r.field(e.field)))})),i.length&&(n.fields=i),e.amend&&Array.isArray(e.amend)&&(n.items=[...n.items,...e.amend])}else if(void 0!==e.field&&o){const t=o.field(e.field);t&&(n.fields||(n.fields=[]),n.fields.push(t),"value"in e||(i=t.value||(e=>e),a=t.label||(e=>e),n.value=i),n.items=t.items().map((t=>({value:i(t),label:String(a(t)),source:{field:e.field}}))))}else e.fields&&e.fields.forEach((e=>{const r="object"==typeof e&&e.source?t.dataset(e.source):o;if(!r)return;let i;i="object"==typeof e&&void 0!==e.field?r.field(e.field):r.field(e),i&&(n.fields||(n.fields=[]),n.fields.push(i))}));n.items&&e.map&&(n.items=n.items.map(e.map))}e&&e.stack&&L4(n,e.stack,t.dataset)}return e&&!Array.isArray(e)&&"function"==typeof e.filter&&n.items&&(n.items=n.items.filter(e.filter)),e&&!Array.isArray(e)&&"function"==typeof e.sort&&n.items&&(n.items=n.items.sort(e.sort)),n}function P4(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I4;if(e.data){const r=o(e.data,t,n);if(r&&r.fields&&r.fields[0])return r.fields[0].formatter()}if(r=e.formatter?"".concat(e.formatter,"-").concat(e.type||"number"):e.type||"d3-number",n.formatter.has(r)){return n.formatter.get(r)(e.format||"")}throw new Error("Formatter of type '".concat(r,"' was not found"))}function T4(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const D4=Symbol("implicit");function O4(){var e=new F3,t=[],n=[],r=D4;function o(o){let i=e.get(o);if(void 0===i){if(r!==D4)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new F3;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return O4(t,n).unknown(r)},T4.apply(o,arguments),o}function z4(){var e,t,n=O4().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<i,p=d?a:i,f=d?i:a;e=(f-p)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),p+=(f-p-e*(n-l))*c,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return z4(r(),[i,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},T4.apply(d(),arguments)}function N4(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j4(){}var F4=.7,B4=1/F4,$4="\\s*([+-]?\\d+)\\s*",W4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G4=/^#([0-9a-f]{3,8})$/,V4=new RegExp(`^rgb\\(${$4},${$4},${$4}\\)$`),U4=new RegExp(`^rgb\\(${H4},${H4},${H4}\\)$`),Y4=new RegExp(`^rgba\\(${$4},${$4},${$4},${W4}\\)$`),K4=new RegExp(`^rgba\\(${H4},${H4},${H4},${W4}\\)$`),X4=new RegExp(`^hsl\\(${W4},${H4},${H4}\\)$`),Q4=new RegExp(`^hsla\\(${W4},${H4},${H4},${W4}\\)$`),J4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Z4(){return this.rgb().formatHex()}function e8(){return this.rgb().formatRgb()}function t8(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=G4.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?n8(t):3===n?new i8(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?r8(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?r8(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=V4.exec(e))?new i8(t[1],t[2],t[3],1):(t=U4.exec(e))?new i8(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Y4.exec(e))?r8(t[1],t[2],t[3],t[4]):(t=K4.exec(e))?r8(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=X4.exec(e))?d8(t[1],t[2]/100,t[3]/100,1):(t=Q4.exec(e))?d8(t[1],t[2]/100,t[3]/100,t[4]):J4.hasOwnProperty(e)?n8(J4[e]):"transparent"===e?new i8(NaN,NaN,NaN,0):null}function n8(e){return new i8(e>>16&255,e>>8&255,255&e,1)}function r8(e,t,n,r){return r<=0&&(e=t=n=NaN),new i8(e,t,n,r)}function o8(e,t,n,r){return 1===arguments.length?function(e){return e instanceof j4||(e=t8(e)),e?new i8((e=e.rgb()).r,e.g,e.b,e.opacity):new i8}(e):new i8(e,t,n,null==r?1:r)}function i8(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function a8(){return`#${c8(this.r)}${c8(this.g)}${c8(this.b)}`}function s8(){const e=l8(this.opacity);return`${1===e?"rgb(":"rgba("}${u8(this.r)}, ${u8(this.g)}, ${u8(this.b)}${1===e?")":`, ${e})`}`}function l8(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function u8(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function c8(e){return((e=u8(e))<16?"0":"")+e.toString(16)}function d8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new f8(e,t,n,r)}function p8(e){if(e instanceof f8)return new f8(e.h,e.s,e.l,e.opacity);if(e instanceof j4||(e=t8(e)),!e)return new f8;if(e instanceof f8)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new f8(a,s,l,e.opacity)}function f8(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function h8(e){return(e=(e||0)%360)<0?e+360:e}function m8(e){return Math.max(0,Math.min(1,e||0))}function g8(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}N4(j4,t8,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Z4,formatHex:Z4,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return p8(this).formatHsl()},formatRgb:e8,toString:e8}),N4(i8,o8,q4(j4,{brighter(e){return e=null==e?B4:Math.pow(B4,e),new i8(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?F4:Math.pow(F4,e),new i8(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new i8(u8(this.r),u8(this.g),u8(this.b),l8(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:a8,formatHex:a8,formatHex8:function(){return`#${c8(this.r)}${c8(this.g)}${c8(this.b)}${c8(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:s8,toString:s8})),N4(f8,(function(e,t,n,r){return 1===arguments.length?p8(e):new f8(e,t,n,null==r?1:r)}),q4(j4,{brighter(e){return e=null==e?B4:Math.pow(B4,e),new f8(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?F4:Math.pow(F4,e),new f8(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new i8(g8(e>=240?e-240:e+120,o,r),g8(e,o,r),g8(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new f8(h8(this.h),m8(this.s),m8(this.l),l8(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=l8(this.opacity);return`${1===e?"hsl(":"hsla("}${h8(this.h)}, ${100*m8(this.s)}%, ${100*m8(this.l)}%${1===e?")":`, ${e})`}`}}));var b8=e=>()=>e;function y8(e){return 1==(e=+e)?v8:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):b8(isNaN(t)?n:t)}}function v8(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):b8(isNaN(e)?t:e)}var x8=function e(t){var n=y8(t);function r(e,t){var r=n((e=o8(e)).r,(t=o8(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=v8(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function _8(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function w8(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=A8(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function S8(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function C8(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function E8(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=A8(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var k8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,R8=new RegExp(k8.source,"g");function M8(e,t){var n,r,o,i=k8.lastIndex=R8.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=k8.exec(e))&&(r=R8.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:C8(n,r)})),i=R8.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function A8(e,t){var n,r=typeof t;return null==t||"boolean"===r?b8(t):("number"===r?C8:"string"===r?(n=t8(t))?(t=n,x8):M8:t instanceof t8?x8:t instanceof Date?S8:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?_8:Array.isArray(t)?w8:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?E8:C8)(e,t)}function L8(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function I8(e){return+e}var P8=[0,1];function T8(e){return e}function D8(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function O8(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=D8(o,r),i=n(a,i)):(r=D8(r,o),i=n(i,a)),function(e){return i(r(e))}}function z8(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=D8(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=j3(e,t,1,r)-1;return i[n](o[n](t))}}function N8(){var e,t,n,r,o,i,a=P8,s=P8,l=A8,u=T8;function c(){var e=Math.min(a.length,s.length);return u!==T8&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?z8:O8,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),C8)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,I8),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=L8,c()},d.clamp=function(e){return arguments.length?(u=!!e||T8,c()):u!==T8},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function q8(e,t,n,r){var o,i=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?U3(t,e,n):U3(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}(e,t,n);switch((r=X5(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(U5(t)/3)))-U5(Math.abs(e)))}(i,a))||(r.precision=o),r3(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,U5(t)-U5(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-U5(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return n3(r)}function j8(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,i,a]=r?V3(t,e,n):V3(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(i-e)/-a;else for(let e=0;e<s;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(o+e)/-a;else for(let e=0;e<s;++e)l[e]=(o+e)*a;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return q8(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,l=i[a],u=i[s],c=10;for(u<l&&(o=l,l=u,u=o,o=a,a=s,s=o);c-- >0;){if((o=U3(l,u,n))===r)return i[a]=l,i[s]=u,t(i);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function F8(){var e=N8()(T8,T8);return e.copy=function(){return t=e,F8().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},T4.apply(e,arguments),j8(e)}function B8(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[j3(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return B8().domain(t).range(n).unknown(e)},T4.apply(o,arguments)}function $8(e){return void 0===e?e=>e:t=>e(t)}function W8(e){return Math.max(0,Math.min(1,e))}function H8(e){return"object"==typeof e}function G8(e,t,n){const r=Math.abs(t-n)/(e+1),o=[];for(let i=1;i<=e;i++){const e=i*r;o.push(t<n?t+e:t-e)}return o}function V8(e,t,n){if(1===e.length)return e;const r=e.concat([]);for(let o=0;o<e.length;o++){let i=e[o],a=e[o+1];0===o&&i!==n.start()?(r.push(...G8(t,i,a)),i-=a-i,a=e[o],r.push(...G8(t,i,a))):o===e.length-1&&a!==n.end()?(a=i+(i-e[o-1]),r.push(...G8(t,i,a))):r.push(...G8(t,i,a))}return r.filter((e=>e>=n.min()&&e<=n.max()))}function U8(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=O2(o)||O2(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a));let l=n.ticks(s);l.length<=1&&(l=n.ticks(s+1));const u=r>0?V8(l,r,n):l;u.sort(((e,t)=>e-t));const c=u.map($8(i));return u.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:c[t],value:e,isMinor:-1===l.indexOf(e)}}))}function Y8(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=O2(o)||O2(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a)),l=s>10?10:s;n.nice(l);const u=n.ticks(s),c=r>0?V8(u,r,n):u;c.sort(((e,t)=>e-t));const d=c.map($8(i));return c.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:d[t],value:e,isMinor:-1===u.indexOf(e)}}))}function K8(e){let t,{settings:n,scale:r,distance:o,formatter:i=e=>e}=e;const a=n.minorTicks&&!O2(n.minorTicks.count)?Math.min(100,n.minorTicks.count):0;if(Array.isArray(n.ticks.values)){const e=n.ticks.values.filter((e=>"object"==typeof e?!O2(e.value):!O2(e)));t=function(e){let{values:t,scale:n,formatter:r=e=>e}=e;return t.sort(((e,t)=>(H8(e)?e.value:e)-(H8(t)?t.value:t))).filter(((e,t,r)=>{const o=H8(e)?e.value:e;return o<=n.max()&&o>=n.min()&&r.indexOf(e)===t})).map((e=>{const t=H8(e),o=t?e.value:e,i=n(o);return{position:i,value:o,label:t&&void 0!==e.label?e.label:r(o),isMinor:!!t&&!!e.isMinor,start:t&&!isNaN(e.start)?W8(n(e.start)):i,end:t&&!isNaN(e.end)?W8(n(e.end)):i}}))}({values:e,scale:r.copy(),formatter:i})}else if(O2(n.ticks.count)){t=(n.ticks.tight?Y8:U8)({distance:o,minorCount:a,unitDivider:n.ticks.distance,scale:r,formatter:i}),n.ticks.forceBounds&&function(e,t,n){const r=e.map((e=>e.position)),o=t.range();-1===r.indexOf(o[0])?e.splice(0,0,{position:o[0],start:o[0],end:o[0],label:n(t.start()),isMinor:!1,value:t.start()}):e[0]&&e[0].isMinor&&(e[0].isMinor=!1);const i=e[e.length-1];-1===r.indexOf(o[1])?e.push({position:o[1],start:o[1],end:o[1],label:n(t.end()),isMinor:!1,value:t.end()}):i&&i.isMinor&&(i.isMinor=!1)}(t,r,i)}else{t=function(e){let{count:t,minorCount:n,scale:r,formatter:o}=e;return r.ticks((t-1)*n+t).map(((e,t)=>{const i=r(e);return{position:i,start:i,end:i,label:o(e),isMinor:t%(n+1)!=0,value:e}}))}({count:Math.min(1e3,n.ticks.count),minorCount:a,scale:r.copy(),formatter:i})}return t}function X8(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={};return Object.keys(t).forEach((o=>{const i=typeof e[o];r[o]="function"===i?e[o](n):"undefined"===i?t[o]:e[o]})),r}const Q8={min:NaN,max:NaN,expand:NaN,include:[],invert:!1},J8={tight:!1,forceBounds:!1,values:void 0,count:NaN,distance:100},Z8={count:NaN};function e7(e,t){e.instance||(e.instance=t.copy(),e.instance.domain([t.start(),t.end()]),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}function t7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=F8(),o={instance:null,invert:!1},i={data:t,resources:n},a=X8(e,Q8,i);let s;function l(e){return O2(e)?NaN:r(e)}a.ticks=X8(e.ticks,J8,i),a.minorTicks=X8(e.minorTicks,Z8,i),l.data=()=>t,l.invert=function(e){return r.invert(e)},l.rangeRound=function(e){return r.rangeRound(e),l},l.clamp=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r.clamp(e),l},l.cachedTicks=function(){return s},l.clearTicksCache=function(){return s=void 0,this},l.ticks=function(e){return null!==e&&"object"==typeof e?(e.settings=e.settings||{},e.settings=M2(!0,{},a,e.settings),e.scale=l,s=K8(e),s):(s=r.ticks(e),s)},l.nice=function(e){return r.nice(e),l},l.tickFormat=function(e,t){return r.tickFormat(e,t)},l.interpolate=function(e){return r.interpolate(e),l},l.domain=function(e){return arguments.length?(r.domain(e),o.instance&&o.instance.domain([l.start(),l.end()]),l):r.domain()},l.range=function(e){return arguments.length?(r.range(e),l):r.range()},l.start=function(){return l.domain()[0]},l.end=function(){return l.domain()[this.domain().length-1]},l.min=function(){return Math.min(this.start(),this.end())},l.max=function(){return Math.max(this.start(),this.end())},l.classify=function(e){let t=(l.start()-l.end())/e,n=[l.end()],r=[],o=t/2;for(let i=0;i<e;i++){let e=n[n.length-1]||0,i=e+t,a=l(e+o);n.push(i,i),r.push(a,a)}return n.pop(),l.domain(n),l.range(r),l},l.copy=function(){const o=t7(e,t,n);return o.domain(l.domain()),o.range(l.range()),o.clamp(r.clamp()),o},l.norm=function(e){return e7(o,l),o.instance(e)},l.normInvert=function(e){return e7(o,l),o.instance.invert(e)};const{mini:u,maxi:c}=function(e,t){const n=+e.min,r=+e.max;let o=0,i=1;if(t&&t[0]){const n=t.map((e=>e.min())).filter((e=>!isNaN(e))),r=t.map((e=>e.max())).filter((e=>!isNaN(e)));if(o=n.length?Math.min(...n):Number.NaN,i=r.length?Math.max(...r):Number.NaN,isNaN(o)||isNaN(i))o=-1,i=1;else if(o===i&&0===o)o=-1,i=1;else if(o===i&&o)o-=Math.abs(.1*o),i+=Math.abs(.1*i);else if(!isNaN(e.expand)){const t=i-o;o-=t*e.expand,i+=t*e.expand}if(Array.isArray(e.include)){const t=e.include.filter((e=>!isNaN(e)));o=Math.min(...t,o),i=Math.max(...t,i)}}return{mini:isNaN(n)?o:n,maxi:isNaN(r)?i:r}}(a,t?t.fields:[]);return l.domain([u,c]),l.range(a.invert?[1,0]:[0,1]),o.invert=a.invert,l}const n7={padding:0,paddingInner:NaN,paddingOuter:NaN,align:.5,invert:!1,maxPxStep:NaN,range:[0,1]};function r7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={data:t,resources:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},r=X8(e,n7,n),o=t.items||[],i={},a=[],s=[];function l(e,n){e.data=()=>t,e.datum=e=>o[i[e]],e.start=function(){return e.domain()[0]},e.end=function(){return e.domain()[e.domain().length-1]},e.labels=()=>s,e.ticks=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.scale=e,function(e){let{scale:t}=e;const n=t.domain(),r=t.data().items,o=t.labels?t.labels():n,i=t.bandwidth();return n.map(((e,n)=>{const a=t(e);return{position:a+i/2,label:"".concat(o[n]),data:r?r[n]:void 0,start:a,end:a+i}}))}(t,n.trackBy)}}const u=z4();l(u,e),u.pxScale=function(t){const n=r.maxPxStep;if(isNaN(n))return u;const o=u.domain().length,i=Math.max(1,o-u.paddingInner()+2*u.paddingOuter());if(i*n>=t)return u;const a=u.copy();a.type=u.type,l(a,e);const s=i*n/t,c=(1-s)*u.align();return a.range(r.invert?[s+c,c]:[c,s+c]),a};const c="function"==typeof e.value?e.value:e=>e.datum.value,d="function"==typeof e.label?e.label:e=>e.datum.label;for(let e=0;e<o.length;e++){const t=M2({datum:o[e]},n),r=c(t,e);-1===a.indexOf(r)&&(a.push(r),s.push(d(t,e)),i[r]=e)}return u.domain(a),u.range(r.invert?r.range.slice().reverse():r.range),u.padding(isNaN(r.padding)?0:r.padding),isNaN(r.paddingInner)||u.paddingInner(r.paddingInner),isNaN(r.paddingOuter)||u.paddingOuter(r.paddingOuter),u.align(isNaN(r.align)?.5:r.align),u}const o7={depth:0};function i7(e,t,n){return e.ancestors().map((e=>t(M2({datum:e.data},n)))).reverse().slice(1).toString()}const a7=e=>e.min(),s7=e=>e.max();function l7(e,t){const n=e&&!isNaN(e.min),r=e&&!isNaN(e.max);let o=n?+e.min:0,i=r?+e.max:1;if(t&&t.length){if(!n){const e=t.map(a7).filter(D2);o=e.length?Math.min(...e):o}if(!r){const e=t.map(s7).filter(D2);i=e.length?Math.max(...e):i}}return[o,i]}const u7={domain:[],range:[],invert:!1,min:NaN,max:NaN};function c7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t7(e,t,n).clamp(!0).interpolate(x8),o=X8(e,u7,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length,s=r;M2(!0,s,r);const[l,u]=l7(o,t?t.fields:[]),c=i?o.domain.length:-1,d=n.theme?n.theme.palette("sequential",c>0?c:2):[],p=a?o.range:d;return s.range(o.invert?p.slice().reverse():p.slice()),s.domain(i?o.domain:function(e,t,n){const r=e.length;if(2===r)return[t,n];const o=[],i=(n-t)/(r-1);o.push(t);for(let e=1;e<r-1;e++)o.push(t+i*e);return o.push(n),o}(s.range(),l,u)),s}const d7={domain:[],range:[],invert:!1,min:NaN,max:NaN,nice:!1};function p7(e){const t=[];for(let n=0;n<e.length-1;n++)t.push((e[n]+e[n+1])/2);return t}const f7={domain:[],range:[]};const h7={domain:[],range:[],unknown:void 0},m7={domain:[],range:[],override:!1};const g7=G5();function b7(e,t,n){let r=e.data;e.source&&(n.logger.warn("Deprecated: Scale data source configuration"),r={extract:[]},(Array.isArray(e.source)?e.source:[e.source]).forEach((e=>{r.extract.push({field:e})})));const o=I4(r,t,n);let i,a=e.type||function(e){return e.root?"h-band":e.fields&&e.fields[0]?function(e){const t=e.map((e=>"dimension"===e.type()?"band":"linear"));return-1!==t.indexOf("linear")?"linear":"band"}(e.fields):"linear"}(o);return"color"===a&&(a=o.fields&&o.fields[0]&&"dimension"===o.fields[0].type()?"categorical-color":"sequential-color"),n.scale.has(a)&&(i=n.scale.get(a),i=i(e,o,{theme:n.theme,logger:n.logger}),i.type=a),i}g7("linear",t7),g7("band",r7),g7("h-band",(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={data:n,resources:r},i=X8(t,n7,o);i.ticks=X8(t.ticks,o7,o),i.value="function"==typeof t.value?t.value:e=>e.datum.value,i.label="function"==typeof t.label?t.label:e=>e.datum.value;let a=r7(i);const{values:s,labels:l,items:u,ticks:c}=function(e,t,n){const r=t.ticks.depth,o=t.value,i=t.label,a=[],s=[],l={},u=[];let c=0;if(!e)return{values:a,labels:s,items:l,ticks:u};e.eachAfter((e=>{if(e.depth>0){const t=i7(e,o,n),d=e.leaves()||[e],p=o(M2({datum:e.data},n)),f=i(M2({datum:e.data},n)),h=Array.isArray(e.children),m={key:t,count:d.length,value:p,label:f,leftEdge:i7(d[0],o,n),rightEdge:i7(d[Math.max(d.length-1,0)],o,n),node:e};h?(a.push("SPACER_".concat(c,"_SPACER")),c++):(a.push(t),s.push(f)),(r<=0&&!h||e.depth===r)&&u.push(m),l[t]=m}}));const d=e.height-1;return d>0&&a.splice(-d),{values:a,labels:s,items:l,ticks:u}}(n.root,i,o),d=function(e){const t=String(e),n=u[t];return a(n?i.invert?n.rightEdge:n.leftEdge:t)};M2(!0,d,a),d.bandwidth=function(e){const t=u[String(e)],n=a.bandwidth();if(t&&!t.isLeaf){const e=d(t.leftEdge),r=d(t.rightEdge);return Math.abs(e-r)+n}return n},d.step=function(e){const t=u[String(e)],n=t?t.count:1;let r=a.step();return r*=n,r},d.data=()=>n,d.datum=e=>{const t=u[String(e)];return t?t.node.data:null},d.copy=()=>e(t,n,r),d.labels=()=>l,d.ticks=()=>c.map((e=>{const t=d(e.key),n=d.bandwidth(e.key);return{position:t+n/2,label:e.label,data:e.node.data,start:t,end:t+n}}));const p=a.pxScale;return d.pxScale=function(e){return a=p(e),d},d.domain(s),d})),g7("sequential-color",c7),g7("threshold-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=B8(),o=X8(e,d7,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length;function s(e){return O2(e)?NaN:r(e)}Object.keys(r).forEach((e=>s[e]=r[e]));const l=t.fields,[u,c]=l7(o,l),d=i?o.domain.length:-1,p=n.theme?n.theme.palette("sequential",d>0?d:2):[];let f=a?o.range:p,h=[];return h=i?o.domain:o.nice?function(e,t,n){const r=2===e.length?10:Math.max(1,e.length),o=F8().domain([t,n]).nice(r).ticks(r);if(!e||!e.length)return o;const i=Math.max(0,e.length-1);for(;o.length>i;)o[0]-t<=n-o[o.length-1]?o.shift():o.pop();return o}(f,u,c):[u+(c-u)/2],f.length>h.length+1?h=function(e,t,n){const r=e.length;if(2===r)return[t+(n-t)/2];const o=[],i=(n-t)/r;for(let e=1;e<r;e++)o.push(t+i*e);return o}(f,u,c):f.length<h.length+1&&(f=function(e,t,n,r){n=e[0],r=e&&e.length>=2?e[e.length-1]:r;const o=c7().domain([n,r]).range(t);return[n,...p7(e),r].map((e=>o(e)))}(h,f,u,c)),s.data=()=>t,s.range(o.invert?f.slice().reverse():f),s.domain(h),s})),g7("categorical-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=O4(),o={data:t,resources:n},i=X8(e,f7,o),a="function"==typeof e.value?e.value:e=>e.datum.value,s="function"==typeof e.label?e.label:e=>e.datum.label,l=t.items||[],u={},c=[],d=[];for(let e=0;e<l.length;e++){const t=M2({datum:l[e]},o),n=a(t,e);-1===c.indexOf(n)&&(c.push(n),d.push(s(t,e)),u[n]=e)}return r.data=()=>t,r.labels=()=>d,r.label=e=>d[c.indexOf(e)],r.datum=e=>l[u[e]],r.range(i.range),Array.isArray(i.domain)&&i.domain.length?r.domain(i.domain):r.domain(c),r}(e,t,n),o=n.theme,i=X8(e,h7,{data:t,resources:n});let a;if(i.explicit=X8(e.explicit,m7,{data:t,resources:n}),a=Array.isArray(i.range)&&0!==i.range.length?i.range.slice():o?o.palette("categorical",r.domain().length).slice():[],i.unknown)r.unknown(i.unknown);else if(o&&o.palette("unknown")){let e=o.palette("unknown");r.unknown(e[0])}if(Array.isArray(i.explicit.domain)&&i.explicit.domain.length){const e=r.domain().slice(),t=i.explicit.domain,n=Array.isArray(i.explicit.range)?i.explicit.range:[],o=Math.floor(e.length/a.length);for(let e=1;e<o+1;e*=2)a=a.concat(a);if(i.explicit.override)for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);o>-1&&(a[o]=n[r])}else{const r=t.map(((t,r)=>[e.indexOf(t),t,n[r]])).sort(((e,t)=>e[0]-t[0]));r.forEach((t=>{const n=e.indexOf(t[1]);-1!==n&&a.splice(n,0,t[2])}))}a.length=e.length}return r.range(a),r}));var y7={};function v7(){v7.init.call(this)}y7.isObject=function(e){return"object"==typeof e&&null!==e},y7.isNumber=function(e){return"number"==typeof e},y7.isUndefined=function(e){return void 0===e},y7.isFunction=function(e){return"function"==typeof e};var x7=v7;v7.EventEmitter=v7,v7.prototype._events=void 0,v7.prototype._maxListeners=void 0,v7.defaultMaxListeners=10,v7.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},v7.prototype.setMaxListeners=function(e){if(!y7.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},v7.prototype.emit=function(e){var t,n,r,o,i,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],y7.isUndefined(n))return!1;if(y7.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,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(y7.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},v7.prototype.addListener=function(e,t){var n;if(!y7.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,y7.isFunction(t.listener)?t.listener:t),this._events[e]?y7.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,y7.isObject(this._events[e])&&!this._events[e].warned)&&((n=y7.isUndefined(this._maxListeners)?v7.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,y7.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),y7.isFunction(console.trace)&&console.trace()));return this},v7.prototype.on=v7.prototype.addListener,v7.prototype.once=function(e,t){if(!y7.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},v7.prototype.removeListener=function(e,t){var n,r,o,i;if(!y7.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||y7.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(y7.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},v7.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],y7.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},v7.prototype.listeners=function(e){return this._events&&this._events[e]?y7.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},v7.listenerCount=function(e,t){return e._events&&e._events[t]?y7.isFunction(e._events[t])?1:e._events[t].length:0};var _7={mixin:e=>(Object.keys(x7.prototype).forEach((t=>{e[t]=x7.prototype[t]})),x7.init(e),e)};function w7(){let e=0,t=0,n=0,r=0;n=n||e;const o={move(e){this.moveTo(n+e)},moveTo(i){const a=Math.max(e,Math.min(t-r,i));n!==a&&(n=a,o.emit("update"))},update(i){let a=!1;({min:e=e,max:t=t}=i),void 0!==i.viewSize&&i.viewSize!==r&&(r=i.viewSize,a=!0);const s=Math.max(e,Math.min(t-r,n));n!==s&&(n=s,a=!0),a&&o.emit("update")},getState:()=>({min:e,max:t,start:n,viewSize:r})};return _7.mixin(o),o}function S7(e,t){const n=e.min||0,r=e.max||0,o=e.viewSize||0,i=t||w7();return i.update({min:n,max:r,viewSize:o}),i}function C7(e,t){return e<=t}function E7(e,t){return e<t}function k7(e,t,n){let r=0;for(;r<e.length&&t>e[r];)++r;return e[r]===t&&n&&++r,r}function R7(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[];function o(){}return o.configure=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{includeMax:r=!0,includeMin:o=!0}=n;e=r?C7:E7,t=o?C7:E7},o.add=e=>{let{min:t,max:n}=e;const o=k7(r,t),i=k7(r,n,!0),a=[o,i-o];o%2==0&&a.push(t),i%2==0&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.remove=e=>{let{min:t,max:n}=e;const o=k7(r,t),i=k7(r,n,!0),a=[o,i-o];o%2==1&&a.push(t),i%2==1&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.set=e=>{const t=r.join(",");r=[],Array.isArray(e)?e.forEach(o.add):o.add(e);return t!==r.join(",")},o.clear=()=>{const e=r.length>0;return r=[],e},o.containsValue=n=>function(e,t,n,r){const o=e.length;for(let i=1;i<o;i+=2)if(n(e[i-1],t)&&r(t,e[i]))return!0;return!1}(r,n,t,e),o.containsRange=e=>{let{min:t,max:n}=e;const o=k7(r,t,!0),i=k7(r,n);return o===i&&i%2==1},o.toggle=e=>o.containsRange(e)?o.remove(e):o.add(e),o.ranges=()=>{const e=[];for(let t=1;t<r.length;t+=2)e.push({min:r[t-1],max:r[t]});return e},o.configure(n),o}function M7(){let e=[];function t(){}return t.add=t=>-1===e.indexOf(t)&&(e.push(t),!0),t.remove=t=>{const n=e.indexOf(t);return-1!==n&&(e.splice(n,1),!0)},t.contains=t=>-1!==e.indexOf(t),t.values=()=>e.slice(),t.clear=()=>e=[],t.toString=()=>e.join(";"),t}const A7={key:void 0,includeMin:!0,includeMax:!0};function L7(e){let{items:t,collection:n,vc:r}=e;const o={},i=[];let a,s;for(let e=0,i=t.length;e<i;e++){a=t[e].key,n[a]||(n[a]=r()),s=t[e].values||[t[e].value];for(let e=0;e<s.length;e++)n[a].add(s[e])&&(o[a]=o[a]||[],o[a].push(s[e]))}const l=Object.keys(o);for(let e=0,t=l.length;e<t;e++)a=l[e],i.push({id:a,values:o[a]});return i}function I7(e){let{items:t,collection:n}=e;const r={},o=[];let i,a;for(let e=0,o=t.length;e<o;e++)if(i=t[e].key,n[i]){a=t[e].values||[t[e].value];for(let e=0;e<a.length;e++)n[i].remove(a[e])&&(r[i]=r[i]||[],r[i].push(a[e]))}const s=Object.keys(r);for(let e=0,t=s.length;e<t;e++)i=s[e],o.push({id:i,values:r[i]});return o}function P7(e){const t={};let n,r;for(let o=0,i=e.length;o<i;o++){n=e[o].key,r=e[o].values||[e[o].value],t[n]||(t[n]=[]);for(let e=0;e<r.length;e++){-1===t[n].indexOf(r[e])&&t[n].push(r[e])}}return t}function T7(e){let{key:t,collection:n,obj:r,fn:o,value:i}=e;n[t]||(n[t]=o()),r[t]=r[t]||[],r[t].push(i),n[t].add(i)}function D7(e,t){const n=[],r=Object.keys(e);let o,i;const a=e=>-1===t[o].indexOf(e);for(let s=0,l=r.length;s<l;s++)o=r[s],t[o]?(i=e[o].filter(a),i.length&&n.push({id:o,values:i})):n.push({id:o,values:e[o]});return n}function O7(e,t,n){const r=function(e,t){if(!Object.keys(t).length)return e;const n=e.length,r=Array(n);for(let o=0;o<n;o++)r[o]=e[o].key in t?M2({},e[o],{key:t[e[o].key]}):e[o];return r}(t,n);return e&&e.length?e.reduce(((e,t)=>t(e)),r):r}function z7(e){return e.replace(/(-[a-z])/g,(e=>e.toUpperCase().replace("-","")))}function N7(e){return e.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase())))}function q7(e,t,n){let{ranges:r,interceptors:o,rc:i,aliases:a,rangeConfig:s}=n;const l=O7(o["".concat(t,"Ranges")],e,a);let u=!1;return l.forEach((e=>{const n=e.key;if(r[n]||(r[n]=i(s.sources[n]||s.default)),"set"===t)u=r[n][t](e.ranges||e.range)||u;else{const o=e.ranges||[e.range];for(let e=0;e<o.length;e++)u=r[n][t](o[e])||u}})),u}function j7(){let{vc:e=M7,rc:t=R7}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1,r={},o={},i={},a={sources:{},default:M2({},A7)};const s={addValues:[],removeValues:[],toggleValues:[],setValues:[],addRanges:[],setRanges:[],removeRanges:[],toggleRanges:[]},l=()=>{const e={values:{},ranges:{}};return Object.keys(o).forEach((t=>{e.values[t]=o[t].values()})),Object.keys(r).forEach((t=>{e.ranges[t]=r[t].ranges()})),e},u={ls:[],clear(){this.ls.forEach((e=>e.clear()))},start(){this.ls.forEach((e=>e.start()))},end(){this.ls.forEach((e=>e.end()))},update(){const e=l();this.ls.forEach((t=>t._state(e)))},updateValues(){const e=l();this.ls.forEach((t=>t._state({values:e.values})))},updateRanges(){const e=l();this.ls.forEach((t=>t._state({ranges:e.ranges})))}},c={configure:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e.ranges)&&e.ranges.length&&(a={sources:{},default:M2({},A7)},e.ranges.forEach((e=>{const t={};Object.keys(A7).filter((e=>"key"!==e)).forEach((n=>{t[n]=void 0!==e[n]?e[n]:A7[n]})),void 0!==e.key?a.sources[e.key]=t:a.default=t})),Object.keys(r).forEach((e=>r[e].configure(a.sources[e]||a.default))),c.emit("update",[],[]))},link:e=>{if(c===e)throw new Error("Can't link to self");u.ls.push(e),e._state(l())},_state:e=>{if(!e)return l();if(e.values){const t=[];Object.keys(e.values).forEach((n=>{o[n]&&e.values[n].join(";")===o[n].toString()||t.push({key:n,values:e.values[n]})})),Object.keys(o).forEach((n=>{e.values[n]||t.push({key:n,values:[]})})),t.length&&c.setValues(t)}if(e.ranges){const t=[];Object.keys(e.ranges).forEach((n=>{r[n]&&e.ranges[n].join(";")===r[n].toString()||t.push({key:n,ranges:e.ranges[n]})})),Object.keys(r).forEach((n=>{e.ranges[n]||t.push({key:n,ranges:[]})})),t.length&&c.setRanges(t)}},start:function(){if(!n){n=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];c.emit("start",...t),u.start()}},end:function(){if(n){n=!1,r={},o={};for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];c.emit("end",...t),u.end()}},isActive:()=>n,clear:()=>{const e=c.brushes().filter((e=>"value"===e.type&&e.brush.values().length)).map((e=>({id:e.id,values:e.brush.values()}))),t=Object.keys(r).length>0||e.length;r={},o={},t&&(c.emit("update",[],e),u.clear())},brushes:()=>{let e=[];return e=e.concat(Object.keys(r).map((e=>({type:"range",id:e,brush:r[e]})))),e=e.concat(Object.keys(o).map((e=>({type:"value",id:e,brush:o[e]})))),e},addValue:(e,t)=>{c.addValues([{key:e,value:t}])},addValues:t=>{const r=O7(s.addValues,t,i),a=L7({vc:e,collection:o,items:r});c.emit("add-values",r),a.length&&(n||(n=!0,c.emit("start")),c.emit("update",a,[]),u.updateValues())}};return c.setValues=t=>{const r=O7(s.setValues,t,i),a=function(e){let{items:t,vCollection:n,vc:r}=e;const o={},i=P7(t);let a,s=[],l=[];const u={},c=Object.keys(n);for(let e=0,t=c.length;e<t;e++)a=c[e],u[a]=n[a].values().slice(),delete n[a];const d=e=>{n[a]&&n[a].contains(e)||T7({key:a,value:e,collection:n,obj:o,fn:r})},p=Object.keys(i);for(let e=0,t=p.length;e<t;e++)a=p[e],i[a].forEach(d);return l=D7(u,o),s=D7(o,u),[s,l]}({items:r,vCollection:o,vc:e});c.emit("set-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.removeValue=(e,t)=>{c.removeValues([{key:e,value:t}])},c.removeValues=e=>{const t=O7(s.removeValues,e,i),n=I7({collection:o,items:t});c.emit("remove-values",t),n.length&&(c.emit("update",[],n),u.updateValues())},c.addAndRemoveValues=(t,r)=>{const a=O7(s.addValues,t,i),l=O7(s.removeValues,r,i),d=L7({vc:e,collection:o,items:a}),p=I7({collection:o,items:l});c.emit("add-values",a),c.emit("remove-values",l),(d.length||p.length)&&(n||(n=!0,c.emit("start")),c.emit("update",d,p),u.updateValues())},c.toggleValue=(e,t)=>{c.toggleValues([{key:e,value:t}])},c.toggleValues=t=>{const r=O7(s.toggleValues,t,i),a=function(e){let{items:t,values:n,vc:r}=e;const o={},i={},a=[],s=[],l=P7(t);let u,c,d;const p=Object.keys(l);for(let e=0,t=p.length;e<t;e++){u=p[e],d=l[u];for(let e=0,t=d.length;e<t;e++)c=d[e],n[u]&&n[u].contains(c)?n[u]&&n[u].contains(c)&&(i[u]=i[u]||[],i[u].push(c),n[u].remove(c)):T7({key:u,value:c,collection:n,obj:o,fn:r})}const f=Object.keys(o);for(let e=0,t=f.length;e<t;e++)u=f[e],a.push({id:u,values:o[u]});const h=Object.keys(i);for(let e=0,t=h.length;e<t;e++)u=h[e],s.push({id:u,values:i[u]});return[a,s]}({items:r,values:o,vc:e});c.emit("toggle-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.containsValue=(e,t)=>{let n=i[e]||e;return!!o[n]&&o[n].contains(t)},c.addRange=(e,t)=>{c.addRanges([{key:e,range:t}])},c.addRanges=e=>{q7(e,"add",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.removeRange=(e,t)=>{c.removeRanges([{key:e,range:t}])},c.removeRanges=e=>{q7(e,"remove",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.setRange=(e,t)=>{c.setRanges([{key:e,range:t}])},c.setRanges=e=>{q7(e,"set",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.toggleRange=(e,t)=>{c.toggleRanges([{key:e,range:t}])},c.toggleRanges=e=>{q7(e,"toggle",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.containsRangeValue=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsValue(t)},c.containsRange=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsRange(t)},c.containsMappedData=(e,t,n)=>{let a=[];const s=Object.keys(e);let l,u,c,d;for(let t=0,n=s.length;t<n;t++){if(l=s[t],"value"===l)u=e,a[t]={key:"",i:t,bool:!1};else{if("source"===l)continue;u=e[l],a[t]={key:l,i:t,bool:!1}}c=u.source&&u.source.field,void 0!==c&&(void 0!==u.source.key&&(c="".concat(u.source.key,"/").concat(c)),c in i&&(c=i[c]),d=u.value,r[c]?a[t].bool=Array.isArray(d)?r[c].containsRange({min:d[0],max:d[1]}):r[c].containsValue(d):o[c]&&o[c].contains(d)&&(a[t].bool=!0))}return t?(a=a.filter((e=>-1!==t.indexOf(e.key))),"and"===n?!!a.length&&!a.some((e=>!1===e.bool)):"xor"===n?!!a.length&&a.some((e=>e.bool))&&a.some((e=>!1===e.bool)):a.some((e=>e.bool))):a.some((e=>e.bool))},c.intercept=(e,t)=>{const n=z7(e);s[n]&&s[n].push(t)},c.removeInterceptor=(e,t)=>{const n=z7(e);if(!s[n])return;const r=s[n].indexOf(t);-1!==r&&s[n].splice(r,1)},c.removeAllInterceptors=e=>{const t=[];if(e){const n=z7(e);s[n]&&s[n].length&&t.push({name:e,handlers:s[n]})}else Object.keys(s).forEach((e=>{s[e].length&&t.push({name:N7(e),handlers:s[e]})}));t.forEach((e=>{e.handlers.slice().forEach((t=>c.removeInterceptor(e.name,t)))}))},c.addKeyAlias=(e,t)=>{i[e]=t},c.removeKeyAlias=e=>{delete i[e]},_7.mixin(c),c}function F7(e){return e*e*e}function B7(e){return--e*e*e+1}function $7(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}G5();const W7=["stroke","fill","color","backgroundColor","thumbColor"];function H7(e,t){const n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n);let a;for(a=0;a<r;++a)o[a]=G7(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(e){for(a=0;a<r;++a)i[a]=o[a](e);return i}}function G7(e,t,n){const r=typeof t;let o;return null==t||"boolean"===r?function(e){return()=>e}(t):("number"===r?C8:"string"===r?(o=t8(t))&&W7.includes(n)?(t=o,x8):M8:t instanceof t8?x8:t instanceof Date?S8:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?_8:Array.isArray(t)?H7:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?V7:C8)(e,t)}function V7(e,t){const n={},r={};let o;for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?n[o]=G7(e[o],t[o],o):r[o]=t[o];return function(e){for(o in n)r[o]=n[o](e);return r}}function U7(e,t){return e.data?e.data.value:"text"===e.type?e.text:t}const Y7={fontFamily:"Arial",fontSize:"13px",color:"#595959",backgroundColor:"#ffffff",stroke:"#000000",strokeWidth:0,$fill:"#333333"},K7=/^\$/;function X7(e){const t=typeof e;return"object"!==t&&"function"!==t&&"undefined"!==t}function Q7(e,t,n){const r=e[t];r&&r.scale&&r.scale.pxScale?r.scale=r.scale.pxScale(n):r&&r.pxScale&&(e[t]=r.pxScale(n))}function J7(e,t){return e.pxScale?e.pxScale(t):e}const Z7={normalizeSettings:function(e,t,n){const r=M2({},e),o=M2({},t);return Object.keys(r).forEach((e=>{o[e]={};const i=r[e],a=typeof i;if("function"==typeof i)o[e].fn=i;else if(X7(i)){let n=t[e];"string"==typeof n&&K7.test(n)&&(n=Y7[n]);const r=typeof n;o[e]="undefined"===r||r===a?i:n}else i&&"object"==typeof i&&("function"==typeof i.fn&&(o[e].fn=i.fn),void 0!==i.scale&&(o[e].scale=n.scale(i.scale)),"string"==typeof i.ref&&(o[e].ref=i.ref))})),Object.keys(t).forEach((e=>{if(e in r)return;const n=t[e];"string"===typeof n&&K7.test(n)?o[e]=Y7[n]:o[e]=n})),o},resolveForItem:function(e,t,n){const r={},o=Object.keys(t),i=o.length,a=e.datum,s=e.datum;for(let l=0;l<i;l++){const i=o[l],u=t[i],c="object"==typeof s&&void 0!==u,d=c&&"string"==typeof u.ref,p=c&&i in s,f=d?s[u.ref]:p?s[i]:a;X7(u)?r[i]=u:c&&u.fn?(u.scale&&(e.scale=u.scale),r[i]=u.fn.call(null,e,n)):c&&u.scale&&f?(r[i]=u.scale(f.value),u.scale.bandwidth&&(r[i]+=u.scale.bandwidth()/2)):d&&f?r[i]=f.value:u.fn?r[i]=u.fn.call(null,e,n):r[i]=u}return r},updateScaleSize:Q7};function e9(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>Array.isArray(t.children)?(e.push(...e9(t.children)),e):(e.push(t),e)),[])}function t9(e,t){let{context:n,data:r,style:o,filter:i,mode:a}=t;const s=e.chart.brush(n),l=r,u=o.active||{},c=o.inactive||{},d=[];Object.keys(u).forEach((e=>{d.push(e)})),Object.keys(c).forEach((e=>{-1===d.indexOf(e)&&d.push(e)}));const p=[];let f=!1;const h=()=>{let t=e9(e.nodes);return"function"==typeof i&&(t=t.filter(i)),t},m=()=>{const e=h(),t=e.length;let n,r=!1;const o="function"==typeof l?l({brush:s}):l;for(let r=0;r<t;r++){if(n=e[r].data,!n)continue;e[r].__style||(e[r].__style={},d.forEach((t=>{e[r].__style[t]=e[r][t]})));const t=s.containsMappedData(n,o,a),i=p.indexOf(e[r]);let l=!1;t&&-1===i?(p.push(e[r]),l=!0):t||-1===i||(p.splice(i,1),l=!0),e[r].needToUpdate=l||f,e[r].isActive=t}for(let o=0;o<t;o++)if(n=e[o].data,n){if(e[o].needToUpdate){const t=M2({},e[o],e[o].__style),n=e[o].isActive;d.forEach((r=>{e[o][r]=n&&r in u?"function"==typeof u[r]?u[r].call(null,t,p):u[r]:!n&&r in c?"function"==typeof c[r]?c[r].call(null,t,p):c[r]:e[o].__style[r]})),r=!0}delete e[o].needToUpdate}return f=!1,r},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].data&&(r[e].__style=r[e].__style||{},d.forEach((t=>{r[e].__style[t]=r[e][t],t in c&&(r[e][t]="function"==typeof c[t]?c[t].call(null,r[e]):c[t])})));f=!0,p.length=0,n||e.renderer.render(e.nodes)},b=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].__style&&(Object.keys(r[e].__style).forEach((t=>{r[e][t]=r[e].__style[t]})),r[e].__style=void 0);p.length=0,n||e.renderer.render(e.nodes)},y=()=>{if(m()){const t="function"==typeof e.config.sortNodes?e.config.sortNodes(e):e.nodes;"function"==typeof e.config.customRender?e.config.customRender({render:e.renderer.render,nodes:t}):e.renderer.render(t)}};return s.on("start",g),s.on("end",b),s.on("update",y),{isActive:()=>s.isActive(),update:()=>{p.length=0,f=!0,m()},cleanUp:function(){s.removeListener("start",g),s.removeListener("end",b),s.removeListener("update",y)}}}function n9(e){let{nodes:t,action:n,chart:r,trigger:o}=e;const i=[];for(let e=0;e<t.length;e++){let n=t[e].data;null!==n&&i.push(n)}!function(e){let{dataPoints:t,action:n,chart:r,trigger:o}=e;if(!o)return;const i=o.data||[""];let a={items:[],actionFn:"toggleRanges"},s={items:[],actionFn:"toggleValues"};-1!==["add","remove","set","toggle"].indexOf(n)&&(a.actionFn="".concat(n,"Ranges"),s.actionFn="".concat(n,"Values"));for(let e=0;e<t.length;e++){const n=t[e];n&&i.forEach((e=>{let t=n&&!e?n:n[e];if(t){let e={key:t.source.field};void 0!==t.source.key&&(e.key="".concat(t.source.key,"/").concat(t.source.field)),Array.isArray(t.value)?(e.range={min:t.value[0],max:t.value[1]},a.items.push(e)):(e.value=t.value,s.items.push(e))}}))}o.contexts.forEach((e=>{a.items.length?r.brush(e)[a.actionFn](a.items):r.brush(e)[s.actionFn](s.items)}))}({dataPoints:i,action:n,chart:r,trigger:o})}function r9(e){let{collisions:t,t:n,config:r,action:o}=e,i=[],a=!1;t.length>0&&(i=t,a=!0,"stop"===n.propagation&&(i=[t[t.length-1]]));const s=i.map((e=>e.node));return n9({nodes:s,action:o,chart:r.chart,data:r.data,trigger:n}),a}function o9(e,t,n){const r=n.element().getBoundingClientRect();let o=T2(e)?function(e,t){return 1!==e.changedTouches.length?null:{x:e.changedTouches[0].clientX-t.left,y:e.changedTouches[0].clientY-t.top}}(e,r):function(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}(e,r);return null===o||o.x<0||o.y<0||o.x>r.width||o.y>r.height?[]:(t.touchRadius>0&&T2(e)?o={cx:o.x,cy:o.y,r:t.touchRadius}:t.mouseRadius>0&&!T2(e)&&(o={cx:o.x,cy:o.y,r:t.mouseRadius}),n.itemsAt(o))}function i9(e,t,n){return e?"function"==typeof e?e(t):e:n}const a9={fill:"fill",stroke:"stroke",opacity:"opacity",strokeWidth:"stroke-width",strokeLinejoin:"stroke-linejoin",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",textDecoration:"text-decoration",fontWeight:"font-weight",baseline:"dominant-baseline",dominantBaseline:"dominant-baseline",anchor:"text-anchor",textAnchor:"text-anchor",maxWidth:"maxWidth",transform:"transform",strokeDasharray:"stroke-dasharray",id:"id"};function s9(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?"M".concat(r.x," ").concat(r.y):"L".concat(r.x," ").concat(r.y),n+=" "}return t&&(n+="Z"),n}function l9(e,t,n,r){const o=n/2,i=e-r/2,a=t-r/2,s=e-o,l=t-o;return[{x:i,y:a},{x:i,y:l},{x:i+r,y:l},{x:i+r,y:a},{x:s+n,y:a},{x:s+n,y:a+r},{x:i+r,y:a+r},{x:i+r,y:l+n},{x:i,y:l+n},{x:i,y:a+r},{x:s,y:a+r},{x:s,y:a}]}function u9(e){return-e/180*Math.PI}function c9(e){return function(e){let t=(.5*(Math.floor(e/Math.PI*2)+2)+.25)*Math.PI,n=Math.cos(Math.abs(t-e))*Math.sqrt(2),r=n*Math.cos(e),o=n*Math.sin(e);return{x1:r<0?1:0,y1:o<0?1:0,x2:r>=0?r:r+1,y2:o>=0?o:o+1}}(u9(e))}function d9(e,t){return{x:e.x+t.x,y:e.y+t.y}}function p9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function f9(e,t){return{x:e.x*t,y:e.y*t}}function h9(e,t){return e.x-t.x}function m9(e,t){return e.y-t.y}function g9(e,t){return h9(e,t)**2+m9(e,t)**2}function b9(e,t){return Math.sqrt(g9(e,t))}function y9(e,t){return e.x*t.x+e.y*t.y}function v9(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0};const r=Math.cos(t),o=Math.sin(t),i=p9(e,n);return d9({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}const x9={up:0,down:180,left:90,right:-90};function _9(e){let{x:t,y:n,size:r}=e;const o=r/2;return{type:"rect",x:t-o,y:n-o,width:r,height:r}}const w9=G5();w9.add("circle",(function(e){return{type:"circle",fill:"black",cx:e.x,cy:e.y,r:e.size/2}})),w9.add("diamond",(function(e){const t=e.size,n=e.x-t/2,r=e.y-t/2;return{type:"path",fill:"black",d:s9([{x:n,y:r+t/2},{x:n+t/2,y:r},{x:n+t,y:r+t/2},{x:n+t/2,y:r+t},{x:n,y:r+t/2}])}})),w9.add("saltire",(function(e){const t=u9(45),n=e.size/2,r=isNaN(e.width)?n/2:e.width,o=Math.min(r,n);let i=e.size;const a=Math.sin(Math.asin(-t))*(o/2);i+=2*(n/Math.sin(-t)-n),i-=2*a;const s={x:e.x,y:e.y},l=l9(e.x,e.y,i,o).map((e=>v9(e,t,s)));return{type:"path",fill:"black",d:s9(l)}})),w9.add("square",(function(e){const t=e.size;return{type:"rect",fill:"black",x:e.x-t/2,y:e.y-t/2,width:t,height:t}})),w9.add("triangle",(function(e){const t=e.size,n={x:e.x,y:e.y},r=x9[e.direction]||0,o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];const l=u9(r);return s=s.map((e=>v9(e,l,n))),{type:"path",fill:"black",d:s9(s)}})),w9.add("line",(function(e){const t="vertical"===e.direction,n=e.size/2,r=e.x,o=e.y;return{type:"line",stroke:"black",strokeWidth:1,x1:r-(t?0:n),y1:o-(t?n:0),x2:r+(t?0:n),y2:o+(t?n:0),collider:_9(e)}})),w9.add("star",(function(e){const t=e.size,n=[],r=t/2,o=e.points||5,i=Math.min(e.innerRadius||t/2,t)/2,a=isNaN(e.startAngle)?90:e.startAngle,s=360/o;for(let t=1;t<=o;t++){const o=s*t+a,l=u9(o),u=u9(o+s/2),c=Math.sin(l),d=Math.cos(l),p=Math.sin(u),f=Math.cos(u);n.push({x:e.x+d*r,y:e.y+c*r}),n.push({x:e.x+f*i,y:e.y+p*i})}return{type:"path",fill:"black",d:s9(n)}})),w9.add("n-polygon",(function(e){const t=[],n=e.size/2,r=Math.max(isNaN(e.sides)?6:e.sides,3),o=360/r,i=isNaN(e.startAngle)?0:e.startAngle;for(let a=1;a<=r;a++){const r=u9(o*a+i),s=Math.sin(r),l=Math.cos(r);t.push({x:e.x+l*n,y:e.y+s*n})}return{type:"path",fill:"black",d:s9(t)}})),w9.add("cross",(function(e){const t=e.x,n=e.y,r=e.size/2,o=isNaN(e.width)?r/2:e.width,i=Math.min(o,r);return{type:"path",fill:"black",d:s9(l9(t,n,e.size,i))}})),w9.add("bar",(function(e){const t={x:e.x,y:e.y},n="vertical"===e.direction,r=e.size/2,o=r/2/2;let i=[{x:t.x-r,y:t.y+o},{x:t.x-r,y:t.y-o},{x:t.x+r,y:t.y-o},{x:t.x+r,y:t.y+o}];if(n){const e=u9(90);i=i.map((n=>v9(n,e,t)))}const a=j2(i);return a.type="rect",a.fill="black",a})),w9.add("rect",(function(e){const{x:t,y:n,size:r}=e,o=void 0===e.width?r:e.width,i=void 0===e.height?r:e.height;return{type:"rect",fill:"black",x:t-o/2,y:n-i/2,width:o,height:i}}));const S9=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w9;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.get(t.type);if(n){const e=n(t);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((n=>{void 0!==a9[n]&&"transform"!==n&&(e[n]=t[n])}))}(e,t),void 0!==t.data&&(e.data=t.data),e}return n}};function C9(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dock:n="center",displayOrder:r=0,prioOrder:o=0,preferredSize:i=0,minimumLayoutMode:a,show:s=!0}=e;n=n||"center";return{computePreferredSize(e){let{inner:n,outer:r,children:o}=e;return"function"==typeof i?i({inner:n,outer:r,children:o,dock:this.dock()},t):i},dock(e){return void 0!==e?(n=e,this):"function"==typeof n?n(t):n},displayOrder(e){return void 0!==e?(r=e,this):"function"==typeof r?r(t):r},prioOrder(e){return void 0!==e?(o=e,this):"function"==typeof o?o(t):o},minimumLayoutMode(e){return void 0!==e?(a=e,this):"function"==typeof a?a(t):a},show(e){return void 0!==e?(s=e,this):"function"==typeof s?s(t):s}}}function E9(e,t,n){const{require:r=[]}=t,o=t.mediator||{},{settings:i,formatter:a,scale:s,data:l,renderer:u,chart:c,dockConfig:d,mediator:p,instance:f,rect:h,style:m,registries:g,resolver:b,update:y,_DO_NOT_USE_getInfo:v,symbol:x,isVisible:_}=n;e.emit=()=>{},_&&(e.isVisible=_),Object.defineProperty(e,"settings",{get:i}),Object.defineProperty(e,"data",{get:l}),Object.defineProperty(e,"formatter",{get:a}),Object.defineProperty(e,"scale",{get:s}),Object.defineProperty(e,"mediator",{get:p}),Object.defineProperty(e,"style",{get:m}),Object.defineProperty(e,"registries",{get:g}),h&&Object.defineProperty(e,"rect",{get:h}),v&&(e._DO_NOT_USE_getInfo=v),Object.keys(t).forEach((n=>{var r;r=n,["on","preferredSize","created","beforeMount","mounted","resize","beforeUpdate","updated","beforeRender","render","beforeUnmount","beforeDestroy","destroyed","defaultSettings","data","settings","formatter","scale","chart","dockConfig","mediator","style","resolver","registries","_DO_NOT_USE_getInfo","symbol","isVisible"].some((e=>e===r))||("function"==typeof t[n]?e[n]=t[n].bind(e):e[n]=t[n])})),r.forEach((t=>{"renderer"===t?Object.defineProperty(e,"renderer",{get:u}):"chart"===t?Object.defineProperty(e,"chart",{get:c}):"dockConfig"===t?Object.defineProperty(e,"dockConfig",{get:d}):"instance"===t?Object.defineProperty(e,"instance",{get:f}):"update"===t&&y?Object.defineProperty(e,"update",{get:y}):"resolver"===t?Object.defineProperty(e,"resolver",{get:b}):"symbol"===t&&Object.defineProperty(e,"symbol",{get:x})})),Object.keys(o).forEach((t=>{e.mediator.on(t,o[t].bind(e))}))}function k9(e,t,n){const r=t=>e[t]?(n.warn("Deprecation Warning the ".concat(t," property should be moved into layout: {} property")),e[t]):e.layout?e.layout[t]:void 0,o={};return o.displayOrder=r("displayOrder"),o.dock=r("dock"),o.prioOrder=r("prioOrder"),o.minimumLayoutMode=r("minimumLayoutMode"),e.layout=e.layout||{},e.layout.displayOrder=void 0!==o.displayOrder?o.displayOrder:e.layout.displayOrder,e.layout.prioOrder=void 0!==o.prioOrder?o.prioOrder:e.layout.prioOrder,e.layout.dock=o.dock||e.layout.dock,e.layout.minimumLayoutMode=o.minimumLayoutMode||e.layout.minimumLayoutMode,o.show=e.show,o.preferredSize=t,o}function R9(e,t,n){Object.keys(n.on||{}).forEach((r=>{e.eventListeners=e.eventListeners||[];const o=n.on[r].bind(e);e.eventListeners.push({event:r,listener:o}),t.on(r,o)})),e.emit=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.emit(e,...r)}}function M9(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultSettings:n={},_DO_NOT_USE_getInfo:r=()=>({})}=e,{chart:o,container:i,mediator:a,registries:s,theme:l,renderer:u}=t,c=_7.mixin({});let d,p,f,h,m,g=t.settings||{},b=M2(!0,{},n,g),y=[],v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z7,n={};return{resolve:function(r){let{data:o,settings:i,defaults:a={},scaled:s}=r;const l=n.norm=t.normalizeSettings(i,a,e.chart),u={scale:e.chart.scale,formatter:e.chart.formatter};s&&Object.keys(s).forEach((e=>{l[e]&&t.updateScaleSize(l,e,s[e])}));const c=[];if(!o||!Array.isArray(o.items)){const e={data:o,resources:u};let r=t.resolveForItem(e,n.norm,-1);return{settings:n.norm,item:r}}{let e;for(let r=0,i=o.items.length;r<i;r++){e={datum:o.items[r],data:o,resources:u};let i=t.resolveForItem(e,n.norm,r);i.data=o.items[r],c.push(i)}}return{settings:n.norm,items:c}}}}({chart:o}),x=!1;const _={nodes:[],chart:o,config:b.brush||{},renderer:null},w={tap:[],over:[]},S=[],C={},E=M2({},g);function k(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){const o=void 0!==e[t],i=void 0!==g[t];let a;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o&&("function"==typeof e[t]?a=e[t].call(C,...l):r&&(a=e[t])),i&&("function"==typeof g[t]?a=g[t].call(E,...l):r&&(a=g[t])),o||i||(a=n.call(C,...l)),a}}const R=k("preferredSize",(()=>0),!0),M=k("resize",(e=>{let{inner:t}=e;return t})),A=k("created"),L=k("beforeMount"),I=k("mounted"),P=k("beforeUnmount"),T=k("beforeUpdate"),D=k("updated"),O=k("beforeRender"),z=k("beforeDestroy"),N=k("destroyed"),q=e.render,j=()=>{b.brush&&(b.brush.consume||[]).forEach((e=>{e.context&&e.style&&S.push(t9(_,e))}))},F=()=>{b.brush&&(b.brush.trigger||[]).forEach((e=>{"over"===e.on?w.over.push(e):w.tap.push(e)}))};Object.defineProperty(_,"data",{get:()=>y});const B=b.renderer||e.renderer,$=B?u||s.renderer(B)():u||s.renderer()();"function"==typeof $.settings&&$.settings(b.rendererSettings),_.renderer=$;const W={resources:o.logger?{logger:o.logger()}:{}};let H=C9(k9(b,R,o.logger()),W);const G=e=>{e.key=b.key,e.element=$.element()},V=()=>{};V.dockConfig=()=>H,V.set=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.settings&&(g=e.settings,b=M2(!0,{},n,e.settings),H=C9(k9(b,R,o.logger()),W),_.config=b.brush||{}),b.scale&&(d=o.scale(b.scale)),b.data){const{rendererSettings:e}=b,t="function"==typeof(null==e?void 0:e.progressive)&&e.progressive(),n=I4(b.data,{dataset:o.dataset,collection:o.dataCollection},{logger:o.logger()},o.dataCollection);t?t.isFirst?(y=n,y.items&&(y.items=[...n.items])):y.items&&(y.items=[...y.items,...n.items||[]]):y=n}else y=d?d.data():[];"string"==typeof b.formatter||"object"==typeof b.formatter?p=o.formatter(b.formatter):d&&d.data().fields&&(p=d.data().fields[0].formatter()),m=l.style(b.style||{})},V.resize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=M({inner:e,outer:t});h=n?$.size(n):$.size(e),E.rect=M2(!0,{computedPhysical:h.computedPhysical,computedOuter:t.computed||t,computedInner:e.computed||e},e),h=M2(!0,{computedOuter:t.computed||t,computedInner:e.computed||e},h)},V.getRect=()=>E.rect;const U=()=>{const e=$.renderArgs?$.renderArgs.slice(0):[],{rendererSettings:t}=b;let n=y;const r="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();return y.items&&r&&(n=P2(P2({},y),{},{items:y.items.slice(r.start,r.end)})),e.push({data:n}),e};let Y,K,X;function Q(e){const{rendererSettings:t}=b,n="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();n?n.isFirst?_.nodes=[...e||[]]:_.nodes&&(_.nodes=[..._.nodes,...e||[]]):_.nodes=e}V.beforeMount=L,V.beforeRender=()=>{O({size:h})},V.render=()=>{const e=q.call(C,...U());Q(e),$.render(e),Y=e,K=E.rect.computed},V.hide=()=>{V.unmount(),$.size({x:0,y:0,width:0,height:0}),$.clear()},V.beforeUpdate=()=>{T({settings:b,data:y})},V.update=()=>{X&&X.stop();const{rendererSettings:e,brush:t,animations:n}=b;if("function"==typeof(null==e?void 0:e.transform)&&e.transform())return $.render(),void(Y=null);const r=q.call(C,...U());Q(r),S.forEach((e=>e.cleanUp())),S.length=0,w.tap=[],w.over=[],t&&(j(),F()),S.forEach((e=>{e.isActive()&&e.update()})),Y&&n&&("function"==typeof n.enabled?n.enabled():n.enabled)?(n.compensateForLayoutChanges&&n.compensateForLayoutChanges({currentNodes:Y,currentRect:E.rect.computed,previousRect:K}),X=function(e,t,n,r){let o,{old:i,current:a}=e,{renderer:s}=t,l=[],u={nodes:[],ips:[]},c={nodes:[],ips:[]},d={nodes:[],ips:[]},p=[],f=null;const h=n.trackBy||U7,m={start(){let e={};if(i.forEach(((t,n)=>{let r=h(t,n);e[r]=t})),a.forEach(((t,n)=>{let r=h(t,n);if(e[r]){if("path"===t.type&&t.points&&t.points.length>0&&"trend"!==t.data.source.key){const n=function(e,t){const n=e.points.filter((e=>!e.dummy)),r=t.points.filter((e=>!e.dummy)),o=r.map((e=>e.data.major.value)),i=n.filter((e=>o.includes(e.data.major.value))).map((e=>e.data.major.value)),a=n.filter((e=>i.includes(e.data.major.value))),s=r.filter((e=>i.includes(e.data.major.value)));return{old:a,current:s}}(e[r],t);d.ips.push(V7(M2({},e[r],{points:n.old}),M2({},t,{points:n.current}))),l.push(M2({},e[r],{commonPoints:n.old}))}else d.ips.push(V7(e[r],t)),l.push(e[r]);d.nodes.push(t),e[r]=!1}else u.nodes.push(t),u.ips.push(V7(M2({},t,{r:.001,opacity:0}),t))})),Object.keys(e).forEach((t=>{e[t]&&(c.nodes.push(e[t]),c.ips.push(V7(e[t],M2({},e[t],{r:1e-4,opacity:0}))))})),p.push({name:"exiting",easing:F7,duration:200,tweens:c.ips,nodes:[...l]}),p.push({name:"updating",easing:$7,duration:400,tweens:d.ips,nodes:[]}),p.push({name:"entering",easing:B7,duration:200,tweens:u.ips,nodes:[...d.nodes]}),n.isMainComponent){var t;const e=null===(t=n.isMainComponent)||void 0===t?void 0:t.filterFn,o=e?l.filter(e).length:l.length,{isInit:i,shouldBeRemoved:a}=r.getValue("animations.updatingStageMeta");!1===i?(r.setValue("animations.updatingStageMeta.shouldBeRemoved",0===o),r.setValue("animations.updatingStageMeta.isInit",!0)):r.setValue("animations.updatingStageMeta.shouldBeRemoved",a&&0===o)}p.length&&(f=s.getScene(a),p[0].started=Date.now(),"undefined"!=typeof window&&(o=window.requestAnimationFrame(m.tick)))},tick(){let e=p[0];e||m.stop(),e.started||(e.started=Date.now());let t=(Date.now()-e.started)/e.duration,i=[],a=e.tweens.map((n=>n(e.easing(Math.min(1,t)))));const{adjustTweenedNodes:l}=n;if(l&&l(a),i.push(...a),i.push(...e.nodes),s.render(i),t>=1){p.shift();const{isInit:e,shouldBeRemoved:t}=r.getValue("animations.updatingStageMeta");p.length?"updating"===p[0].name&&t&&p.shift():(!0===e&&r.setValue("animations.updatingStageMeta.isInit",!1),m.stop())}o&&(o=window.requestAnimationFrame(m.tick))},stop(){o&&(window.cancelAnimationFrame(o),o=!1)},inProgress:()=>!!o,get targetScene(){return f}};return m}({old:Y,current:r},{renderer:$},n,o.storage),X.start()):$.render(r),Y=r,K=E.rect.computed,$.setKey&&"string"==typeof g.key&&$.setKey(g.key)},V.updated=D,V.destroy=()=>{V.unmount(),z(f),$.destroy(),N(),f=null};const J=e=>{_.nodes=e,S.forEach((e=>{e.isActive()&&e.update()})),$.render(e)};return E9(C,e,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,instance:()=>E,rect:()=>E.rect,style:()=>m,update:()=>J,registries:()=>s,resolver:()=>v,symbol:()=>S9(s.symbol)}),E9(E,g,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,style:()=>m,_DO_NOT_USE_getInfo:r.bind(C),isVisible:()=>x}),V.getBrushedShapes=function(e,t,n){const r=[];if(b.brush&&b.brush.consume){const i=o.brush(e),a=$.findShapes("*");b.brush.consume.filter((t=>t.context===e)).forEach((e=>{for(let o=0;o<a.length;o++){const s=a[o];s.data&&i.containsMappedData(s.data,n||e.data,t)&&(G(s),r.push(s),a.splice(o,1),o--)}}))}return r},V.findShapes=e=>{var t;const n=(null!==(t=X)&&void 0!==t&&t.inProgress()?X.targetScene:$).findShapes(e);for(let e=0,t=n.length;e<t;e++)G(n[e]);return n},V.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$.itemsAt(e);let r;r=t&&"stop"===t.propagation&&n.length>0?[n.pop().node]:n.map((e=>e.node));for(let e=0,t=r.length;e<t;e++)G(r[e]);return r},V.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.contexts=Array.isArray(t.contexts)?t.contexts:[];n9({nodes:e,action:t.action||"toggle",trigger:t,chart:o,data:_.data})},V.mount=()=>{f=$.element&&$.element()?f:$.appendTo(i),$.setKey&&"string"==typeof g.key&&$.setKey(g.key),b.brush&&(j(),F()),R9(E,c,g),R9(C,c,e),x=!0},V.mounted=()=>I(f),V.unmount=()=>{[E,C].forEach((e=>{!function(e,t){e.eventListeners&&(e.eventListeners.forEach((e=>{let{event:n,listener:r}=e;t.removeListener(n,r)})),e.eventListeners.length=0),e.emit=()=>{}}(e,c)})),w.tap=[],w.over=[],S.forEach((e=>{e.cleanUp()})),S.length=0,P(),x=!1},V.onBrushTap=e=>{w.tap.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return r9({collisions:o9(t,n,r.renderer),t:n,config:r,action:i9(n.action,t,"toggle")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.onBrushOver=e=>{w.over.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return r9({collisions:o9(t,n,r.renderer),t:n,config:r,action:i9(n.action,t,"set")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.def=C,V.ctx=E,V.renderer=()=>$,V.set({settings:g}),A(),V}function A9(e){const t=M2(!0,{},e),n={getAll:()=>t,getValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}(t,e,n),setValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}(t,e,n)};return n}function L9(e,t,n){const r=d9(function(e,t){const n=y9(e,t)/y9(t,t)||1;return{x:t.x*n,y:t.y*n}}(p9(n,e),p9(t,e)),e);return r}function I9(e,t,n){return b9(e,n)+b9(t,n)-b9(e,t)<1e-12}function P9(e,t){return e.x>=t.x&&e.x+e.width<=t.x+t.width&&e.y>=t.y&&e.y+e.height<=t.y+t.height}function T9(e){return e.x1===e.x2&&e.y1===e.y2}function D9(e){return e.width<=0||e.height<=0}function O9(e){return e.r<=0}function z9(e){return e.edges.length<=2}function N9(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=H9(e,F2(t.edges[r])),!0===n)return!0;return!1}function q9(e,t){let n=!1;const{numPolygons:r,polygons:o}=t;for(let t=0;t<r;t++){if(n=Z9(e,o[t]),!0===n)return!0}return!1}function j9(e,t){if(O9(e))return!1;return g9({x:e.cx,y:e.cy},t)<=e.r**2}function F9(e,t){if(D9(t)||O9(e))return!1;const n=t.width/2,r=t.height/2,o=t.x+n,i=t.y+r,a=e.r,s=e.cx,l=e.cy,u=Math.abs(s-o),c=Math.abs(l-i);if(u>n+a||c>r+a)return!1;if(u<=n||c<=r)return!0;return(u-n)**2+(c-r)**2<=a**2}function B9(e,t){if(O9(e)||T9(t))return!1;const[n,r]=N2(t);if(j9(e,n)||j9(e,r))return!0;const o={x:e.cx,y:e.cy},i=L9(n,r,o);return g9(i,o)<=e.r**2&&I9(n,r,i)}function $9(e,t){if(z9(t)||O9(e))return!1;if(W9(t,{x:e.cx,y:e.cy}))return!0;const n=t.edges.length;for(let r=0;r<n;r++){if(B9(e,F2(t.edges[r])))return!0}return!1}function W9(e,t){if(z9(e)||!Y9(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.vertices;let i,a,s,l,u;for(i=!1,l=-1,a=o.length,s=a-1;++l<a;s=l){if(o[l].x===n&&o[l].y===r)return!0;if(o[l].y===o[s].y&&o[l].y===r&&(n-o[l].x)*(n-o[s].x)<=0)return!0;if(o[l].y<r&&r<=o[s].y||o[s].y<r&&r<=o[l].y){if(u=(o[s].x-o[l].x)*(r-o[l].y)/(o[s].y-o[l].y)+o[l].x,n===u)return!0;n<u&&(i=!i)}}return i}function H9(e,t){if(z9(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(X9(t,F2(e.edges[n])))return!0}const[n,r]=N2(t);return W9(e,n)||W9(e,r)}function G9(e,t){if(z9(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(K9(t,F2(e.edges[n])))return!0}const[n,r,o,i]=q2(t);return W9(e,n)||W9(e,r)||W9(e,o)||W9(e,i)}function V9(e,t){return!D9(e)&&!D9(t)&&(e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height)}function U9(e,t){if(D9(e)||D9(t))return!1;return[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}].every((t=>Y9(e,t)))}function Y9(e,t){return!D9(e)&&(t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height)}function K9(e,t){if(T9(t)||D9(e))return!1;const[n,r]=N2(t);if(Y9(e,n)||Y9(e,r))return!0;const o=q2(e);let i=o.length;for(let e=0;e<i;e++){if(X9(F2([o[e],o[3!==e?e+1:0]]),t))return!0}return!1}function X9(e,t){const[n,r]=N2(e),[o,i]=N2(t),a=h9(r,n),s=m9(r,n),l=h9(i,o),u=m9(i,o),c=h9(n,o),d=m9(n,o);let p=u*a-l*s;const f=l*d-u*c,h=a*d-s*c;let m,g;if(0===a&&0===s)return!1;if(0===l&&0===u)return!1;if(0===p){if(0===f&&0===h){if(0===a){if(0===s)return n.x===r.x&&n.y===r.y;m=m9(o,n)/s,g=m9(i,n)/s}else m=(o.x-n.x)/a,g=(i.x-n.x)/a;return!(m<0&&g<0||m>1&&g>1)}return!1}const b=f/p;return p=h/p,b>=0&&b<=1&&p>=0&&p<=1}function Q9(e,t){if(T9(e))return!1;const[n,r]=N2(e);return I9(n,r,t)}function J9(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!V9(n,r)&&(U9(n,r)?N9(e,t):N9(t,e))}function Z9(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!V9(n,r)&&(U9(r,n)?function(e,t){let n=!1;const{numPolygons:r,polygons:o}=e;for(let e=0;e<r;e++)if(n=J9(t,o[e]),!0===n)return!0;return!1}(e,t):function(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=nee(e,F2(t.edges[r])),!0===n)return!0;return!1}(e,t))}function eee(e,t){if(O9(e))return!1;if(tee(t,{x:e.cx,y:e.cy}))return!0;const{numPolygons:n,polygons:r}=t;for(let t=0;t<n;t++){const n=r[t],o=n.edges.length;for(let t=0;t<o;t++){if(B9(e,F2(n.edges[t])))return!0}}return!1}function tee(e,t){if(!Y9(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.numPolygons;let i,a,s,l,u,c,d=!1;for(a=0;a<o;a++)for(i=e.vertices[a],u=-1,s=i.length,l=s-1;++u<s;l=u){if(i[u].x===n&&i[u].y===r)return!0;if(i[u].y===i[l].y&&i[u].y===r&&(n-i[u].x)*(n-i[l].x)<=0)return!0;if(i[u].y<r&&r<=i[l].y||i[l].y<r&&r<=i[u].y){if(c=(i[l].x-i[u].x)*(r-i[u].y)/(i[l].y-i[u].y)+i[u].x,n===c)return!0;n<c&&(d=!d)}}return d}function nee(e,t){const[n,r]=N2(t);if(tee(e,n)||tee(e,r))return!0;const{numPolygons:o,polygons:i}=e;for(let e=0;e<o;e++){const n=i[e];for(let e=0,r=n.edges.length;e<r;e++){if(X9(t,F2(n.edges[e])))return!0}}return!1}function ree(e,t){const[n,r,o,i]=q2(t);if(tee(e,n)||tee(e,r)||tee(e,o)||tee(e,i))return!0;const{numPolygons:a,polygons:s}=e;for(let e=0;e<a;e++){const n=s[e];for(let e=0,r=n.edges.length;e<r;e++){if(K9(t,F2(n.edges[e])))return!0}}return!1}const oee=/^\$/,iee="@extend";function aee(e){throw new Error('Cyclical reference for "'.concat(e,'"'))}function see(e,t,n){if("string"==typeof e){let r=t[e];return-1!==n.indexOf(e)&&aee(e),oee.test(r)?(n.push(e),see(r,t,n)):r}let r=e;const o=M2(!0,{},t,e),i={};if(e[iee]){const i=e[iee];-1!==n.indexOf(i)&&aee(i);let a=n.slice();a.push(i),r=M2(!0,{},see(o[i],t,a),e)}return Object.keys(r).forEach((e=>{let t=n.slice();if(e===iee||oee.test(e))return;i[e]=r[e];let a=i[e];oee.test(a)&&a in o?(-1!==n.indexOf(a)&&aee(a),t.push(a),a=o[a],"object"==typeof a||oee.test(a)&&a in o?i[e]=see(a,o,t):i[e]=a):"object"==typeof a&&(i[e]=see(a,o,t))})),i}function lee(e,t){return see(e,t,[])}function uee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=e;const r=e=>{e.forEach((e=>{const n=Array.isArray(e.colors[0])?e.colors:[e.colors];t[e.key]={colors:n,sizes:n.map((e=>e?e.length:0))}}))},o={palette:(e,n)=>((e,n)=>{const r=t[e];if(!r)return[];const o=r.sizes;for(let e=0;e<o.length;e++)if(n<=o[e])return r.colors[e];return r.colors[o.length-1]})(e,n),setPalettes:r,style:e=>lee(e,n),setStyle:t=>{n=M2({},e,t)}};return r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),o}function cee(e){e.x=Math.floor(e.x),e.y=Math.floor(e.y),e.width=Math.floor(e.width),e.height=Math.floor(e.height)}function dee(e){const t={center:{minWidthRatio:.5,minHeightRatio:.5,minWidth:0,minHeight:0}};return M2(!0,t,e),t.center.minWidthRatio=Math.min(Math.max(t.center.minWidthRatio,0),1),t.center.minHeightRatio=Math.min(Math.max(t.center.minHeightRatio,0),1),t.center.minWidth=Math.max(t.center.minWidth,0),t.center.minHeight=Math.max(t.center.minHeight,0),t}function pee(e,t,n,r,o){return{x:isNaN(e)?0:e,y:isNaN(e)?0:t,width:isNaN(e)?0:n,height:isNaN(e)?0:r,margin:isNaN(o)?0:o}}function fee(e,t,n){if(void 0===e.cachedSize){const r=e.config.dock();let o,i=e.comp.preferredSize({inner:t,outer:n,dock:r});isNaN(i)?i&&!isNaN(i.size)&&(i.width=i.size,i.height=i.size):i={width:i,height:i},o="top"===r||"bottom"===r?i.height:"right"===r||"left"===r?i.width:Math.max(i.width,i.height),e.cachedSize=Math.ceil(o),e.edgeBleed=i.edgeBleed||0}return e.cachedSize}function hee(e,t){switch(t.config.dock()){case"top":e.y+=t.cachedSize,e.height-=t.cachedSize;break;case"bottom":e.height-=t.cachedSize;break;case"left":e.x+=t.cachedSize,e.width-=t.cachedSize;break;case"right":e.width-=t.cachedSize}}function mee(e,t){const n=t.edgeBleed;n&&(e.left=Math.max(e.left,n.left||0),e.right=Math.max(e.right,n.right||0),e.top=Math.max(e.top,n.top||0),e.bottom=Math.max(e.bottom,n.bottom||0))}function gee(e,t,n){t.x<n.left&&(t.width-=n.left-t.x,t.x=n.left);const r=e.width-(t.x+t.width);r<n.right&&(t.width-=n.right-r),t.y<n.top&&(t.height-=n.top-t.y,t.y=n.top);const o=e.height-(t.y+t.height);o<n.bottom&&(t.height-=n.bottom-o)}function bee(e,t,n,r,o){const i=M2({},t),a=M2({},n);hee(i,r),mee(a,r),gee(e,i,a);const s=function(e,t,n){const r=Math.min(n.center.minWidth,e.width)||Math.max(e.width*n.center.minWidthRatio,1),o=Math.min(n.center.minHeight,e.height)||Math.max(e.height*n.center.minHeightRatio,1);return t.width>=r&&t.height>=o}(e,i,o);return!!s&&(hee(t,r),mee(n,r),!0)}function yee(e){return{x:e.margin.left+e.x*e.scaleRatio.x,y:e.margin.top+e.y*e.scaleRatio.y,width:e.width*e.scaleRatio.x,height:e.height*e.scaleRatio.y}}function vee(e){return j2([].concat(...e.map(q2)))}function xee(e){let{visible:t,layoutRect:n,reducedRect:r,containerRect:o,translation:i}=e;const a=pee(r.x,r.y,r.width,r.height),s=pee(r.x,r.y,r.width,r.height),l={},u=t.slice(),c=u.slice().sort(((e,t)=>e.config.displayOrder()-t.config.displayOrder()));return t.sort(((e,t)=>{if(e.referencedDocks.length>0&&t.referencedDocks.length>0)return 0;if(t.referencedDocks.length>0)return-1;if(e.referencedDocks.length>0)return 1;const n=e.config.displayOrder()-t.config.displayOrder();return 0===n?u.indexOf(e)-u.indexOf(t):n})).forEach((e=>{let t={},u={};switch(e.config.dock()){case"top":t.height=u.height=e.cachedSize,t.width=n.width,u.width=a.width,t.x=n.x,u.x=a.x,t.y=u.y=a.y-e.cachedSize,a.y-=e.cachedSize,a.height+=e.cachedSize;break;case"bottom":t.x=n.x,u.x=a.x,t.y=u.y=a.y+a.height,t.width=n.width,u.width=a.width,t.height=u.height=e.cachedSize,a.height+=e.cachedSize;break;case"left":t.x=u.x=s.x-e.cachedSize,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.x-=e.cachedSize,s.width+=e.cachedSize;break;case"right":t.x=u.x=s.x+s.width,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.width+=e.cachedSize;break;case"center":t.x=u.x=r.x,t.y=u.y=r.y,t.width=u.width=r.width,t.height=u.height=r.height;break;default:if(e.referencedDocks.length>0){const n=e.referencedDocks.map((e=>l[e])).filter((e=>!!e));n.length>0&&(t=vee(n.map((e=>e.outerRect))),u=vee(n.map((e=>e.r))))}}e.key&&(l[e.key]={r:u,outerRect:t}),function(e,t,n,r){const o={x:r.width/n.width,y:r.height/n.height},i={left:0,top:0};if(n.preserveAspectRatio){const e=o.x<o.y,t=Math.min(o.x,o.y);o.x=t,o.y=t;const a=e?"height":"width",s=(r[a]-n[a]*o.x)*n.align;i.left=e?0:s,i.top=e?s:0}e.scaleRatio=o,e.margin=i,t.scaleRatio=o,t.margin=i,n.scaleRatio=o,n.margin=i}(u,t,n,o),u.edgeBleed=e.edgeBleed,u.computed=yee(u),t.edgeBleed=e.edgeBleed,t.computed=yee(t),u.x+=i.x,u.y+=i.y,t.x+=i.x,t.y+=i.y,e.comp.resize(u,t),e.cachedSize=void 0,e.edgeBleed=void 0})),c}function _ee(e,t,n){const r=e.layoutModes||{},o=t.minimumLayoutMode();let i=t.show();return i&&"object"==typeof o?i=r[o.width]&&r[o.height]&&n.width>=r[o.width].width&&n.height>=r[o.height].height:i&&void 0!==o&&(i=r[o]&&n.width>=r[o].width&&n.height>=r[o].height),i}function wee(e){if(!e.resize||"function"!=typeof e.resize)throw new Error("Component is missing resize function");if(!e.dockConfig&&!e.preferredSize)throw new Error("Component is missing preferredSize function")}function See(e){let t=dee(e);const n={};return n.layout=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.width)||isNaN(e.height))throw new Error("Invalid rect");if(!n.length)return{visible:[],hidden:[],ordered:[]};const{logicalContainerRect:r,containerRect:o}=function(e,t){const n={x:0,y:0,width:0,height:0},r={x:0,y:0,width:0,height:0};return n.width=e.width||0,n.height=e.height||0,void 0!==t.size&&(n.width=isNaN(t.size.width)?n.width:t.size.width,n.height=isNaN(t.size.height)?n.height:t.size.height),void 0!==t.logicalSize?(r.width=isNaN(t.logicalSize.width)?n.width:t.logicalSize.width,r.height=isNaN(t.logicalSize.height)?n.height:t.logicalSize.height,r.align=isNaN(t.logicalSize.align)?.5:Math.min(Math.max(t.logicalSize.align,0),1),r.preserveAspectRatio=t.logicalSize.preserveAspectRatio):(r.width=n.width,r.height=n.height,r.preserveAspectRatio=!1),cee(r),cee(n),{logicalContainerRect:r,containerRect:n}}(e,t),[i,a]=function(e,t,n){const r=[],o=[];for(let i=0;i<e.length;++i){const a=e[i];wee(a);let s=a.dockConfig;const l=a.key,u=s.dock(),c=/@/.test(u)?u.split(",").map((e=>e.replace(/^\s*@/,""))):[];_ee(t,s,n)?r.push({comp:a,key:l,config:s,referencedDocks:c}):o.push({comp:a,key:l,config:s,referencedDocks:c})}return[r,o]}(n,t,r),s=function(e){let{layoutRect:t,visible:n,hidden:r,settings:o}=e;const i=pee(t.x,t.y,t.width,t.height),a={left:0,right:0,top:0,bottom:0},s=n.slice();s.sort(((e,t)=>e.config.prioOrder()-t.config.prioOrder()));for(let e=0;e<s.length;++e){const n=s[e];fee(n,i,t),bee(t,i,a,n,o)||(r.push(s.splice(e,1)[0]),--e)}!function(e,t){if(0!==t.length)for(let n=0;n<e.length;++n){let r=e[n];if(r.referencedDocks.length){const o=r.referencedDocks.every((e=>t.some((t=>t.key===e))));o&&t.push(e.splice(n,1)[0])}}}(n,r);const l=n.filter((e=>-1!==s.indexOf(e)));return n.length=0,n.push(...l),gee(t,i,a),i}({layoutRect:r,visible:i,hidden:a,settings:t}),l=xee({visible:i,layoutRect:r,reducedRect:s,containerRect:o,translation:{x:e.x,y:e.y}});return a.forEach((e=>{e.comp.visible=!1;const t=pee();e.comp.resize(t,t)})),{visible:i.map((e=>e.comp)),hidden:a.map((e=>e.comp)),ordered:l.map((e=>e.comp))}},n.settings=function(e){t=dee(e)},n}const Cee=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.hasKey&&r.key===t)return e[n]}return null},Eee=e=>null==e?void 0:e.map((e=>{const t=e.instance.dockConfig();return{preferredSize:n=>t.computePreferredSize(P2(P2({},n),{},{children:Eee(e.children)}))}})),kee=(e,t)=>({visible:[],hidden:t,ordered:[]}),Ree=e=>(t,n)=>{var r;const o=n.map(((e,t)=>{const n=e.instance.dockConfig();return{index:t,key:e.key,dockConfig:n,resize:e.instance.resize,preferredSize:t=>n.computePreferredSize(P2(P2({},t),{},{children:Eee(e.children)}))}})),i=e=>n[e.index],{visible:a=o,hidden:s=[],ordered:l=a}=null!==(r=e(t,o))&&void 0!==r?r:{};return{visible:a.map(i),hidden:s.map(i),ordered:l.map(i)}},Mee=e=>"function"==typeof e?Ree(e):(e=>{const t=See(e);return Ree(((e,n)=>t.layout(e,n)))})(e);function Aee(e,t,n){const r=t.left-n.left,o=t.top-n.top,i=B2(e),a=M2(!0,{},e);switch(i){case"circle":a.cx+=r,a.cy+=o;break;case"polygon":for(let e=0,t=a.vertices.length;e<t;e++){const t=a.vertices[e];t.x+=r,t.y+=o}break;case"geopolygon":for(let e=0;e<a.vertices.length;e++){const t=a.vertices[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n.x+=r,n.y+=o}}break;case"line":a.x1+=r,a.y1+=o,a.x2+=r,a.y2+=o;break;case"point":case"rect":a.x+=r,a.y+=o}return a}function Lee(e,t){const n=[];let r=0;t.forEach((e=>{n.push(r),r++;const t=e.instance.def.additionalElements&&e.instance.def.additionalElements();t&&(r+=t.length)})),t.forEach(((t,r)=>((e,t,n)=>{const r=t.instance.renderer().element();if(isNaN(n)||!r||!e||!e.children)return;const o=e.children[Math.max(0,n)];if(r===o)return;const i=t.instance.def.additionalElements&&t.instance.def.additionalElements().filter(Boolean);e.insertBefore&&void 0!==o?(e.insertBefore(r,o),i&&i.forEach((t=>{e.insertBefore(t,r)}))):(i&&i.forEach((t=>{e.appendChild(t,r)})),e.appendChild(r))})(e,t,n[r])))}function Iee(e,t){let{element:n,data:r=[],settings:o={},on:i={}}=e;const a=t.registries,s=t.logger,l=uee(t.style,t.palettes),u=[],c=M2({},e),d=function(){const e={};return _7.mixin(e),e}();let p=[],f=null,h=null,m=null,g=[],b=()=>{},y=()=>{};const v={};let x=!1;const _=function(e){let{createComponent:t}=e;const n={};let r=[],o=[];const i=e=>{const n=t(e);return n&&(r.push(n),e.components&&(n.children=e.components.map((e=>i(e))).filter((e=>!!e)))),n},a=e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)},s=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n],o=t.find((e=>r.hasKey&&r.key===e.key));o?r.children&&o.components&&s(r.children,o.components):(e.splice(n,1),a(r),r.children&&s(r.children,[]),r.instance.destroy())}},l=e=>{let{compList:t,data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:s}=e;return s.map((e=>{const s=Cee(t,e.key);return r.indexOf(e.key)>-1?(delete s.updateWith,s):s?(e.rendererSettings&&"function"==typeof s.instance.renderer().settings&&s.instance.renderer().settings(e.rendererSettings),e.rendererSettings&&"function"==typeof e.rendererSettings.transform&&e.rendererSettings.transform()?(s.applyTransform=!0,s):(s.updateWith={formatters:o,scales:a,data:n,settings:e},e.components&&(s.children=l({compList:s.children||[],data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:e.components})),s)):i(e)})).filter((e=>!!e))},u=e=>{let{components:t,hidden:n,layoutFn:r,ordered:o,rect:i,visible:a}=e;const{visible:s,hidden:l,ordered:c}=r(i,t);a.push(...s),n.push(...l),o.push(...c),s.forEach((e=>{if(e.children){var t,r;const i=Mee(null!==(t=null===(r=e.settings)||void 0===r?void 0:r.strategy)&&void 0!==t?t:{});u({components:e.children,hidden:n,layoutFn:i,ordered:o,rect:e.instance.getRect(),visible:a})}})),l.forEach((e=>{e.children&&u({components:e.children,hidden:n,layoutFn:kee,ordered:o,rect:null,visible:a})}))};return n.destroy=()=>{r.forEach((e=>e.instance.destroy())),r=[],o=[]},n.findComponentByKey=e=>Cee(r,e),n.forEach=e=>{r.forEach(e)},n.layout=e=>{let{layoutSettings:t,rect:n}=e;const r=[],i=[],a=[],s=Mee(t);return u({components:o,hidden:i,layoutFn:s,ordered:a,rect:n,visible:r}),{visible:r,hidden:i,ordered:a}},n.set=e=>{let{components:t}=e;o=t.map((e=>i(e))).filter((e=>!!e))},n.update=e=>{let{components:t,data:n,excludeFromUpdate:r,formatters:i,scales:a}=e;s(o,t),o=l({compList:o,data:n,excludeFromUpdate:r,formatters:i,scales:a,settingsList:t})},n}({createComponent:e=>{if(!a.component.has(e.type))return s.warn("Unknown component: ".concat(e.type)),!1;return{instance:M9(a.component(e.type),{settings:e,chart:c,mediator:d,registries:a,theme:l,container:n}),settings:M2(!0,{},e),key:e.key,hasKey:void 0!==e.key}}});function w(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){const r="function"==typeof e[t];let o;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r?e[t].call(c,...a):n.call(c,...a),o}}const S=()=>{let e;o.dockLayout?(s.warn('Deprecation Warning: "dockLayout" property should be renamed to "strategy"'),e=o.dockLayout):e=o.strategy;const t=function(e){if("function"==typeof e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();return{x:0,y:0,width:t,height:n}}return{x:0,y:0,width:0,height:0}}(n);return _.layout({layoutSettings:e,rect:t})},C=w("created"),E=w("beforeMount"),k=w("mounted"),R=w("beforeUpdate"),M=w("updated"),A=w("beforeRender"),L=w("beforeDestroy"),I=w("destroyed"),P=function(e,t){let{partialData:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{formatters:r={},scales:o={},scroll:i={}}=t;b=function(e,t){let{types:n,logger:r}=t;const o={},i=[];return Array.isArray(e)?i.push(...e):(r.warn('Deprecated: "data-source" configuration"'),i.push(e)),i.forEach(((e,t)=>{let i=n(e.type);if(i){let n=e.key;void 0===e.key&&(r.warn("Missing key for dataset. Using index '".concat(t,"' as key.")),n=t);let a=i({key:n,data:e.data,config:e.config});o[n]=a}})),e=>e?o[e]:o[Object.keys(o)[0]]}(e,{logger:s,types:a.data}),n||Object.keys(v).forEach((e=>v[e].clear())),t.palettes&&l.setPalettes(t.palettes),t.style&&l.setStyle(t.style),y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I4;const o={};return(e||[]).forEach((e=>{if(!e.key)throw new Error('Data collection is missing "key" property');if("object"==typeof e.data&&"collection"in e.data)throw new Error("Data config for collections may not reference other collections");o[e.key]=()=>r(e.data,t,n)})),e=>{let t,n;if("string"==typeof e?t=e:"object"==typeof e&&(t=e.key,n=e),!(t in o))throw new Error("Unknown data collection: ".concat(t));"function"==typeof o[t]&&(o[t]=o[t]());let r=o[t];if(n&&n.fields&&n.fields.filter){let e=r.fields.filter(n.fields.filter);r.fields.length!==e.length&&(r=M2(r,{fields:e}))}return r}}(t.collections,{dataset:b},{logger:s});const u={theme:l,logger:s};f=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b7;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"scale"in i&&e[i.scale]&&(a=i.scale),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i,t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(o,{dataset:b,collection:y},P2(P2({},u),{},{scale:a.scale})),h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:P4;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"formatter"in i&&e[i.formatter]?a=i.formatter:"object"==typeof i&&"type"in i&&e[i.type]&&(a=i.type),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i||{},t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(r,{dataset:b,collection:y},P2(P2({},u),{},{formatter:a.formatter})),m=function(e,t){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=S7(e[r],t?t[r]:null));return n}(i,m)};function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},r=e.filter((e=>!!e.key)).map((e=>e.key));g.forEach((e=>{e.key&&-1!==r.indexOf(e.key)?t[e.key]=e:e.destroy()})),g=e.map((e=>{const r=e.key&&t[e.key]?t[e.key]:a.interaction(e.type)(c,d,n);return r.set(e),r}))}const D=e=>{const t=n.getBoundingClientRect(),r="clientX"in e?e.clientX:e.x,o="clientY"in e?e.clientY:e.y,i={x:r-t.left,y:o-t.top},a=[];return p.forEach((e=>{const t=e.instance.getRect();Y9(t.computedPhysical?t.computedPhysical:{x:t.margin.left+t.x*t.scaleRatio.x,y:t.margin.top+t.y*t.scaleRatio.y,width:t.width*t.scaleRatio.x,height:t.height*t.scaleRatio.y},i)&&a.push(e)})),a},O=()=>{if(u.length||!n)return;Object.keys(i).forEach((e=>{const t=i[e].bind(c);n.addEventListener(e,t),u.push({key:e,listener:t})}));const e={},t=t=>{t.touches?(e.x=t.touches[0].clientX,e.y=t.touches[0].clientY,e.multiTouch=t.touches.length>1):(e.x=t.clientX,e.y=t.clientY,e.multiTouch=!1),e.time=Date.now(),e.comps=D(e)},r=t=>{const n=e.comps||D(t);if(!n.every((e=>e.instance.def.disableTriggers))&&("touchend"===t.type&&t.preventDefault(),function(e,t){const n=T2(e),r=n?e.changedTouches[0]:e,o=Date.now()-t.time,i=isNaN(t.x)?0:Math.abs(r.clientX-t.x),a=isNaN(t.y)?0:Math.abs(r.clientY-t.y);return(0===e.button||n)&&!t.multiTouch&&i<=12&&a<=12&&o<=300}(t,e)))for(let e=n.length-1;e>=0;e--){if(n[e].instance.onBrushTap(t),x){x=!1;break}}},o=[];o.push({key:"mousedown",listener:t}),o.push({key:"mouseup",listener:r}),function(e){return"ontouchstart"in e&&"ontouchend"in e||navigator.maxTouchPoints>1}(n)&&(o.push({key:"touchstart",listener:t}),o.push({key:"touchend",listener:r})),o.push({key:"mousemove",listener:e=>{const t=D(e);for(let n=t.length-1;n>=0;n--){if(t[n].instance.onBrushOver(e),x){x=!1;break}}}}),o.forEach((e=>{n.addEventListener(e.key,e.listener),u.push(e)}))},z=()=>{u.forEach((e=>{let{key:t,listener:r}=e;return n.removeEventListener(t,r)})),u.length=0},N=()=>{n.innerHTML="",(()=>{const{components:e=[]}=o;A(),P(r,o),_.set({components:e});const{visible:t,hidden:i,ordered:a}=S();p=t,i.forEach((e=>{e.instance.hide(),e.visible=!1})),t.forEach((e=>e.instance.beforeMount())),t.forEach((e=>e.instance.mount())),t.forEach((e=>e.instance.beforeRender())),t.forEach((e=>e.instance.render())),t.forEach((e=>e.instance.mounted())),t.forEach((e=>{e.visible=!0})),Lee(n,a)})(),O(),T(o.interactions)};return c.layoutComponents=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{excludeFromUpdate:t=[]}=e;e.data&&(r=e.data),e.settings&&(o=e.settings,T(e.settings.interactions)),R(),P(r,o);const{formatters:n,scales:i,components:a=[]}=o;_.update({components:a,data:r,excludeFromUpdate:t,formatters:n,scales:i}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()})),S()},c.update=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{partialData:t,excludeFromUpdate:i=[]}=e;let a;e.data&&(r=e.data),e.settings&&(o=e.settings,T(e.settings.interactions)),R(),P(r,o,{partialData:t});const{formatters:s,scales:l,components:u=[]}=o;_.update({components:u,data:r,excludeFromUpdate:i,formatters:s,scales:l}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()}));const c=[],d=[];let f;if(t)_.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible&&c.push(e)})),f=c;else{const{visible:e,hidden:t,ordered:n}=S();p=e,f=e,a=n,e.forEach((e=>{e.updateWith&&e.visible?c.push(e):d.push(e)})),t.forEach((e=>{e.instance.hide(),e.visible=!1,delete e.updateWith,e.applyTransform=!1}))}d.forEach((e=>e.instance.beforeMount())),d.forEach((e=>e.instance.mount())),f.forEach((e=>e.instance.beforeRender())),f.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible?e.instance.update():e.instance.render()})),t||Lee(n,a),d.forEach((e=>e.instance.mounted())),c.forEach((e=>e.instance.updated())),p.forEach((e=>{delete e.updateWith,e.visible=!0,e.applyTransform=!1})),M()},c.destroy=()=>{L(),_.destroy(),z(),T(),delete c.update,delete c.destroy,I()},c.getAffectedShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"and",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=[];return p.filter((e=>null==r||e.key===r)).forEach((r=>{const i=r.instance.getBrushedShapes(e,t,n);o=[...o,...i]})),o},c.findShapes=e=>{let t=[];return p.forEach((n=>{const r=n.instance.findShapes(e);t=[...t,...r]})),t},c.componentsFromPoint=e=>D(e).map((e=>e.instance.ctx)),c.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const o=n.getBoundingClientRect();let i=p;if(Array.isArray(t.components)&&t.components.length>0){const e=t.components.map((e=>e.key));i=p.filter((t=>-1!==e.indexOf(t.key))).map((n=>({instance:n.instance,opts:t.components[e.indexOf(n.key)]})))}for(let n=i.length-1;n>=0;n--){const a=i[n],s=Aee(e,o,a.instance.renderer().element().getBoundingClientRect()),l=a.instance.shapesAt(s,a.opts),u=l.length>0&&"stop"===t.propagation;if(r=[...r,...l],r.length>0&&u)return r}return r},c.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{components:[]};for(let n=0;n<t.components.length;n++){const r=t.components[n].key;p.filter((e=>r===e.key)).forEach((r=>{let o=e.filter((e=>e.key===r.key));r.instance.brushFromShapes(o,t.components[n])}))}},c.scroll=function(){return function(e,t){return t[e]||(t[e]=w7()),t[e]}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",m)},c.dataset=e=>b(e),c.dataCollection=e=>y(e),c.scales=function(){return f.all()},c.formatters=function(){return h.all()},c.brush=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return v[e]||(v[e]=j7()),v[e]},c.scale=function(e){return f.get(e)},c.formatter=function(e){return h.get(e)},c.toggleBrushing=function(e){x=void 0!==e?e:!x},c.component=e=>{const t=_.findComponentByKey(e);return null==t?void 0:t.instance.ctx},c.logger=()=>s,c.theme=()=>l,c.storage=A9({animations:{updatingStageMeta:{isInit:!1,shouldBeRemoved:!1}}}),Object.defineProperty(c,"interactions",{get:()=>({instances:g,on(){O(),g.forEach((e=>e.on()))},off(){z(),g.forEach((e=>e.off()))}})}),C(),n&&(E(),N(),k(n),c.element=n),c}const Pee=e=>{let t=G5(e);return t.prio=e=>e?t.default(e[0]):[t.default()],t.types=()=>t.getKeys(),t};var Tee=G5();function Dee(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}const Oee=e=>e.filter((e=>"number"==typeof e&&!isNaN(e)));const zee=e=>{let{key:t,data:n,cache:r,config:o}=e;if(!n)return;let i=n;"string"==typeof i&&(i=(e=>{let{data:t,config:n}=e;const r=t.split("\n"),o=r[0],i=r[1];let a=",";if(n&&n.parse&&n.parse.delimiter)a=n.parse.delimiter;else if(o){const e=[/,/,/\t/,/;/];for(let t=0;t<e.length;t++){const n=e[t];if(o&&i){if(n.test(o)&&n.test(i)&&o.split(n).length===i.split(n).length){a=n;break}}else n.test(o)&&(a=n)}}return r.map((e=>e.split(a)))})({data:n,config:o})),Array.isArray(i)&&function(e){let t,{source:n,data:r,cache:o,config:i}=e,a=r;const s=i&&i.parse;Array.isArray(r[0])?s&&!1===s.headers?t=r[0].map(((e,t)=>t)):(t=r[0],a=r.slice(1)):t=Object.keys(r[0]);const l=!!s&&"function"==typeof s.row&&s.row;let u,c=t;c=s&&"function"==typeof s.fields?s.fields(c.slice()):t.map((e=>({key:e,title:e}))),Array.isArray(r[0])?u=c.map((()=>[])):(u={},c.forEach((e=>{u[e.key]=[]})));for(let e=0;e<a.length;e++){const t=l?l(a[e],e,c):a[e];if(t)if(Array.isArray(t))for(let e=0;e<c.length;e++)u[e].push(t[e]);else for(let e=0;e<c.length;e++)u[c[e].key].push(t[c[e].key])}const d=Array.isArray(u)?e=>u[e]:e=>u[c[e].key];for(let e=0;e<c.length;e++){const t=d(e),r=Oee(t),i=r.length>0,a=i?"measure":"dimension",s=i?Math.min(...r):NaN,l=i?Math.max(...r):NaN;o.fields.push(b4(M2({source:n,key:e,title:c[e].title,values:t,min:s,max:l,type:a},c[e]),{value:c[e].value,label:c[e].label}))}}({data:i,cache:r,source:t,config:o})};function Nee(){let{key:e,data:t,config:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[]},o={key:()=>e,raw:()=>t,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];for(let t=0;t<n.fields.length;t++)if(n.fields[t].key()===e)return n.fields[t];for(let t=0;t<n.fields.length;t++)if(n.fields[t].title()===e)return n.fields[t];return null}(e,{cache:r}),fields:()=>r.fields.slice(),extract:e=>function(e,t){const n=Array.isArray(e)?e:[e];let r=[];return n.forEach((e=>{if(void 0!==e.field){const n=t.field(e.field),o=t.key();if(!n)throw Error("Field '".concat(e.field,"' not found"));const{props:i,main:a}=w4(e,t),s=Object.keys(i),l=!!e.trackBy,u=typeof e.trackBy,c={},d=[],p=n.items(),f=[];for(let t=0;t<p.length;t++){const n=p[t];if(a.filter&&!a.filter(n))continue;const r=Dee(a,n,{key:o});s.forEach((e=>{const a=i[e];let s=a.field?a.field.items()[t]:n;r[e]=Dee(a,s,{key:o})})),l&&E4({cfg:e,itemData:n,obj:r,target:d,tracker:c,trackType:u}),f.push(r)}r=l?[...r,...C4(d,{main:a,propsArr:s,props:i})]:[...r,...f]}})),r}(e,o),hierarchy:()=>null};return zee({key:e,data:t,config:n,cache:r}),o}Nee.util={normalizeConfig:w4,collect:C4,track:E4};const qee=G5();qee.default("matrix"),qee("matrix",Nee),qee("default",Nee);const jee=G5();function Fee(e,t,n){return Math.max(e,Math.min(t,n))}function Bee(e){let{item:t,value:n,boxCenter:r,rendWidth:o,rendHeight:i,flipXY:a,symbol:s}=e,l="x",u="y",c=o,d=i,p=n<.5?90:-90;return a&&(l="y",u="x",c=i,d=o,p=n<.5?180:0),s(M2({},t.oob,{[l]:r*c,[u]:Math.max(t.oob.size/2,Math.min(n*d,d-t.oob.size/2)),startAngle:p}))}function $ee(e){let{item:t,boxWidth:n,boxPadding:r,rendWidth:o,rendHeight:i,flipXY:a}=e,s="x",l="y",u="width",c="height",d=o,p=i;a&&(s="y",l="x",u="height",c="width",d=i,p=o);const{actualDiff:f,actualLow:h}=function(e){let{start:t,end:n,minPx:r=.1,maxPx:o=1}=e;const i=Math.max(t,n),a=Math.min(t,n),s=Fee(-.1,1.2,i),l=Fee(-.1,1.2,a),u=s*o-l*o,c=Math.max(r,u),d=(c-u)/2;return{actualDiff:c,startModifier:d,actualLow:l*o-d}}({start:t.start,end:t.end,minPx:t.box.minHeightPx,maxPx:p});return M2({},t.box,{type:"rect",[s]:(r+t.major)*d,[l]:h,[c]:f,[u]:n*d,data:t.data||{},collider:{type:null}})}function Wee(e){let{item:t,from:n,to:r,boxCenter:o,rendWidth:i,rendHeight:a,flipXY:s}=e,l="x1",u="y1",c="x2",d="y2",p=i,f=a;return s&&(l="y1",u="x1",c="y2",d="x2",p=a,f=i),M2({},t.line,{type:"line",[d]:Math.floor(n*f),[l]:o*p,[u]:Math.floor(r*f),[c]:o*p,data:t.data||{},collider:{type:null}})}function Hee(e){let{item:t,key:n,position:r,width:o,boxCenter:i,rendWidth:a,rendHeight:s,flipXY:l}=e,u="x1",c="y1",d="x2",p="y2",f=a,h=s;l&&(u="y1",c="x1",d="y2",p="x2",f=s,h=a);const m=o/2;return M2({type:"line"},t[n],{[c]:Math.floor(r*h),[u]:(i-m)*f,[p]:Math.floor(r*h),[d]:(i+m)*f,r:m*f,cx:i*f,cy:r*h,width:o*f,data:t.data||{},collider:{type:null}})}function Gee(e,t,n){const{width:r,maxWidthPx:o,minWidthPx:i}=t.box,a=e>=0?1:-1;let s=Math.min(a*e*r,isNaN(o)?n:o/n);return s=isNaN(i)?s:Math.max(i/n,s),s*a}jee("native",(function(e,t,n){let r,o,i={chart:e,mediator:t,element:n},a=[],s=!0;function l(){"function"==typeof r.enable&&(r.enable=r.enable.bind(i)()),r.enable&&Object.keys(r.events).forEach((e=>{const t=r.events[e].bind(i);n.addEventListener(e,t),a.push({key:e,listener:t})}))}function u(){a.forEach((e=>{let{key:t,listener:r}=e;n.removeEventListener(t,r)})),a=[]}return{get key(){return o},set(e){!function(e){o=e.key,r=e,r.events=r.events||[],void 0===r.enable&&(r.enable=!0)}(e),u(),s&&l()},off(){s=!1,u()},on(){s=!0,0===a.length&&l()},destroy(){u(),i=null,r=null}}}));const Vee={oob:{show:!0,type:"n-polygon",fill:"#999",stroke:"#000",strokeWidth:0,size:10,sides:3,startAngle:-90},box:{show:!0,fill:"#fff",stroke:"#000",strokeWidth:1,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1},line:{show:!0,stroke:"#000",strokeWidth:1},median:{show:!0,stroke:"#000",strokeWidth:1},whisker:{show:!0,stroke:"#000",strokeWidth:1,fill:"",type:"line",width:1}},Uee=Object.keys(Vee),Yee={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},style:{box:"$shape",line:"$shape-guide",whisker:"$shape-guide",median:"$shape-guide--inverted"}},created(){this.state={}},render(e){let{data:t}=e;const{width:n,height:r}=this.rect,o="horizontal"===this.settings.settings.orientation,{style:i,resolver:a,symbol:s}=this,l=Uee.filter((e=>!this.settings.settings[e]||!1!==this.settings.settings[e].show)),u={};l.forEach((e=>u[e]=Vee[e]));const c=function(e){let{keys:t,data:n,defaultSettings:r,style:o,settings:i,width:a,height:s,resolver:l}=e;const u=M2(!0,{},r||{},o||{}),c={major:"horizontal"===i.orientation?s:a,minor:"horizontal"===i.orientation?a:s},d=i.major;let p;p="object"==typeof d&&"object"==typeof d.ref&&void 0!==d.ref.start&&void 0!==d.ref.end?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:M2(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof d&&void 0!==d.binStart&&void 0!==d.binEnd?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:M2(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):l.resolve({data:n,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{},h={};["start","end","min","max","med"].forEach((e=>{(f[e]||n.items&&n.items.length&&n.items[0][e])&&(h[e]={scale:f.scale,ref:e})}));let m,g={major:p,minor:l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:M2(!0,{},h,f)})};for(let e=0,r=t.length;e<r;e++)i[m]&&!1===i[m].show||(m=t[e],g[m]=l.resolve({data:n,defaults:u[m],settings:i[m],scaled:c}));return g}({keys:l,data:t,defaultSettings:u,style:i,settings:this.settings.settings,width:n,height:r,resolver:a}),{settings:d,items:p}=c,f=function(e){let{width:t,height:n,flipXY:r,resolved:o,keys:i,symbol:a}=e;const s=[],l=o.major.items;if(!l.length)return s;const u=t,c=n,d=r?n:t,p=o.major.settings,f=["start","end","min","max","med"].filter((e=>void 0!==o.minor.settings[e])),h=f.length,m=i.filter((e=>"oob"!==e));let g,b,y,v,x,_,w,S,C;const E=i?i.length:0,k=m?m.length:0,R={box:function(){y.box&&D2(y.start)&&D2(y.end)&&g.push($ee({item:y,boxWidth:v,boxPadding:x,rendWidth:u,rendHeight:c,flipXY:r}))},line:function(){D2(y.min)&&D2(y.start)&&g.push(Wee({item:y,from:y.min,to:y.start,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),D2(y.max)&&D2(y.end)&&g.push(Wee({item:y,from:y.max,to:y.end,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},median:function(){y.median&&D2(y.med)&&g.push(Hee({item:y,key:"median",position:y.med,width:v,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},whisker:function(){if(y.whisker){const e=v*y.whisker.width;D2(y.min)&&g.push(Hee({item:y,key:"whisker",position:y.min,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),D2(y.max)&&g.push(Hee({item:y,key:"whisker",position:y.max,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))}}};function M(){let e,t=-Number.MAX_VALUE,n=Number.MAX_VALUE;for(let r=0;r<h;r++)e=y[f[r]],D2(e)&&(t<e&&(t=e),n>e&&(n=e));w=t<0&&t!==-Number.MAX_VALUE,S=n>1&&n!==Number.MAX_VALUE,C=w||S}for(let e=0,t=l.length;e<t;e++){g=[],b=null;const t=l[e],n=t.data;let f=null,h=null;void 0!==p.binStart?(f=t.binStart,h=t.binEnd,b=p.binStart.scale):(b=p.major.scale,f=b?t.major:0);let A=0;b?b.bandwidth?(A=b.bandwidth(),f-=A/2):A=h-f:A=1,y=M2({},{major:f,majorEnd:h},o.minor.items[e]);for(let t=0;t<E;t++)y[i[t]]=o[i[t]].items[e];if(v=Gee(A,y,d),x=(A-v)/2,_=x+y.major+v/2,M(),C)y.oob&&(w?g.push(Bee({item:y,value:0,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})):S&&g.push(Bee({item:y,value:1,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})));else for(let e=0;e<k;e++)y[m[e]]&&!1===y[m[e]].show||R[m[e]]();const L={type:"container",data:n,collider:{type:"bounds"},children:g};s.push(L)}return s}({width:n,height:r,flipXY:o,resolved:c,keys:l,symbol:s});return f}};const Kee={shape:"saltire",width:2,size:.5,fill:"#333",stroke:"#333",strokeWidth:0},Xee=/px$/,Qee={shape:"circle",label:"",fill:"#333",stroke:"#ccc",strokeDasharray:"",strokeWidth:0,strokeLinejoin:"miter",opacity:1,x:.5,y:.5,size:1,show:!0},Jee={maxPx:1e4,minPx:1,maxRelExtent:.1,minRelExtent:.01,maxRelDiscrete:1,minRelDiscrete:.1};function Zee(e,t){return e&&"function"==typeof e.bandwidth?{isBandwidth:!0,value:Math.max(1,e.bandwidth()*t)}:{isBandwidth:!1,value:Math.max(1,t)}}function ete(e,t,n,r){let{width:o,height:i}=t;return e.filter((e=>!1!==e.show&&!isNaN(e.x+e.y))).map((e=>{let t=e,a=Xee.test(e.size)?parseInt(e.size,10):n.min+t.size*(n.max-n.min);O2(a)&&(t=Kee,a=n.min+t.size*(n.max-n.min));const[s,l]=function(e){let t=Qee.shape,n={};return"object"==typeof e.shape&&"string"==typeof e.shape.type?(t=e.shape.type,n=e.shape):"string"==typeof e.shape&&(t=e.shape),[t,n]}(t),u=P2(P2({},l),{},{type:s,label:e.label,x:e.x*o,y:e.y*i,fill:t.fill,size:Math.min(n.maxGlobal,Math.max(n.minGlobal,a)),stroke:t.stroke,strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray,opacity:t.opacity});t===e.errorShape&&(u.width=t.width);const c=r(u);return c.data=e.data,c}))}const tte={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},animations:{enabled:!1,trackBy:e=>e.data.value},style:{item:"$shape"}},render(e){let{data:t}=e;const n=this.resolver.resolve({data:t,defaults:M2({},Qee,this.style.item),settings:this.settings.settings,scaled:{x:this.rect.width,y:this.rect.height}}),{width:r,height:o}=this.rect,i=M2({},Jee,this.settings.settings.sizeLimits),a=n.items,s=function(e,t,n,r,o){const i=Zee(e?e.scale:void 0,n),a=Zee(t?t.scale:void 0,r);let s=Math.min(i.value*o[i.isBandwidth?"maxRelDiscrete":"maxRelExtent"],a.value*o[a.isBandwidth?"maxRelDiscrete":"maxRelExtent"]),l=Math.min(i.value*o[i.isBandwidth?"minRelDiscrete":"minRelExtent"],a.value*o[a.isBandwidth?"minRelDiscrete":"minRelExtent"]);return{min:Math.max(1,Math.floor(l)),max:Math.max(1,Math.floor(s)),maxGlobal:o.maxPx,minGlobal:o.minPx}}(n.settings.x,n.settings.y,r,o,i);return ete(a,this.rect,s,this.settings.shapeFn||this.symbol)}};const nte={label:"",arc:1,show:!0,fill:"#333",stroke:"#ccc",strokeWidth:1,strokeLinejoin:"round",opacity:1,innerRadius:0,outerRadius:.8,cornerRadius:0,offset:0};function rte(e,t,n,r){let{x:o,y:i,width:a,height:s}=t;const l=h5(),u={x:o+a/2,y:i+s/2},c=Math.min(a,s)/2,d=Math.min(a,s)/2,p=d/100;return e.map(((e,t)=>{const o=n[t];o.type="path";const i=d*o.outerRadius,a=c*o.innerRadius,s=p*o.cornerRadius;l.innerRadius(a),l.outerRadius(i),l.cornerRadius(s),o.arcDatum=e;const f=l.centroid(e),h=o.offset?function(e,t,n,r){let[o,i]=e;const a=Math.sqrt(o*o+i*i);o/=a,i/=a;const s=n-r;return{x:o*t*s,y:i*t*s}}(f,o.offset,i,a):{x:0,y:0};return o.transform="translate(".concat(h.x,", ").concat(h.y,") translate(").concat(u.x,", ").concat(u.y,")"),o.desc={share:e.value/r,slice:{start:e.startAngle,end:e.endAngle,innerRadius:a,outerRadius:i,cornerRadius:s,offset:{x:u.x+h.x,y:u.y+h.y}}},o}))}function ote(e,t){return e.slice&&"arc"in e.slice?t.arc:t.data.value}const ite={require:["chart","resolver"],defaultSettings:{settings:{startAngle:0,endAngle:2*Math.PI,padAngle:0,slice:{}},style:{slice:"$shape"},data:{}},render(e){let{data:t}=e;const n=[],r=[],o=this.settings.settings,{items:i}=this.resolver.resolve({data:t,defaults:M2({},nte,this.style.slice),settings:o.slice});let a=0;for(let e=0,t=i.length;e<t;e++){const t=ote(o,i[e]);t>0&&i[e].outerRadius>=i[e].innerRadius&&(n.push(t),r.push(i[e]),a+=t)}const s=function(){var e=_5,t=x5,n=null,r=K2(0),o=K2(a5),i=K2(0);function a(a){var s,l,u,c,d,p=a.length,f=0,h=new Array(p),m=new Array(p),g=+r.apply(this,arguments),b=Math.min(a5,Math.max(-a5,o.apply(this,arguments)-g)),y=Math.min(Math.abs(b)/p,i.apply(this,arguments)),v=y*(b<0?-1:1);for(s=0;s<p;++s)(d=m[h[s]=s]=+e(a[s],s,a))>0&&(f+=d);for(null!=t?h.sort((function(e,n){return t(m[e],m[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),s=0,u=f?(b-p*v)/f:0;s<p;++s,g=c)l=h[s],c=g+((d=m[l])>0?d*u:0)+v,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:K2(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:K2(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:K2(+e),a):i},a}().sortValues(null);s.startAngle(o.startAngle),s.endAngle(o.endAngle),s.padAngle(o.padAngle);return rte(s(n),M2({},this.rect,{x:0,y:0}),r,a)}};const ate=function(e){function t(t){if(e[t.type]&&e[t.type].condition(t)){const n=e[t.type],r=void 0===n.conditionAppend||n.conditionAppend(t);n.items.forEach((e=>{const n=Math.round(t[e.key]),o=t[e.key]-n;t[e.key]=n,r&&"append"===e.type&&(o>0?t[e.key]+=.5:t[e.key]-=.5)}))}}return void 0===e&&((e={}).line={append:["x1","x2","y1","y2"],round:[],condition:e=>e.x1===e.x2||e.y1===e.y2,conditionAppend:e=>e.strokeWidth%2!=0},e.rect={append:["x","y"],round:["width","height"],condition:()=>!0,conditionAppend:e=>e.strokeWidth%2!=0}),Object.keys(e).forEach((t=>{const n=e[t];n.items=[],n.append.forEach((e=>{n.items.push({key:e,type:"append"})})),n.round.forEach((e=>{n.items.push({key:e,type:"round"})}))})),t.multiple=e=>e.forEach((e=>t(e))),t}();class ste{constructor(){this.reset(),this.push(...arguments)}static evaluateKey(e,t){if(t){const t=e.substring(0,1),n=e.substring(1);if("x"===t)return"y".concat(n);if("y"===t)return"x".concat(n);if("cx"===e)return"cy";if("cy"===e)return"cx";if("width"===e)return"height";if("height"===e)return"width"}return e}transposeCoordinate(e,t,n){if("number"==typeof t&&isFinite(t)){const r=e.substring(0,1);if("x"===r||"cx"===e)return t*this.width;if("width"===e)return t*this.width;if("r"===e)return t*(n?this.height:this.width);if("y"===r||"cy"===e)return t*this.height;if("height"===e)return t*this.height}return t}push(){return this.storage.push(...arguments),this}processItem(e){let t={};const n=void 0!==e.flipXY?e.flipXY:this.flipXY,r=void 0!==e.crisp?e.crisp:this.crisp;if(e.fn&&"function"==typeof e.fn){let r=n?this.height:this.width,o=n?this.width:this.height;e=e.fn({width:r,height:o,flipXY:n});const i=Object.keys(e);for(let r=0,o=i.length;r<o;r++){let o=i[r];t[ste.evaluateKey(o,n)]=e[o]}}else{const r=Object.keys(e);for(let o=0,i=r.length;o<i;o++){let i=r[o];const a=ste.evaluateKey(i,n),s=this.transposeCoordinate(a,e[i],n);t[a]=s}}return r&&ate(t),t}output(){let e=[];for(let t=0,n=this.storage.length;t<n;t++){let n=this.processItem(this.storage[t]);e.push(n)}return e}reset(){this.storage=[],this.flipXY=!1,this.crisp=!1,this.width=0,this.height=0}}function lte(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ste(...t)}function ute(e,t){return e&&t?e.cachedTicks&&e.cachedTicks()||e.ticks({distance:t}):[]}const cte={created(){},require:["chart","renderer","resolver"],defaultSettings:{layout:{displayOrder:0},style:{ticks:"$guide-line",minorTicks:"$guide-line--minor"}},beforeRender(){this.blueprint=lte(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){if(this.x=this.settings.x?this.chart.scale(this.settings.x):null,this.y=this.settings.y?this.chart.scale(this.settings.y):null,Q7(this,"x",this.rect.width),Q7(this,"y",this.rect.height),!this.x&&!this.y)return[];this.settings.ticks=M2({show:!0},this.style.ticks,this.settings.ticks||{}),this.settings.minorTicks=M2({show:!1},this.style.minorTicks,this.settings.minorTicks||{}),this.lines={x:[],y:[]},this.lines.x=ute(this.x,this.rect.width),this.lines.y=ute(this.y,this.rect.height),this.lines.y=this.lines.y.map((e=>M2(e,{flipXY:!0})));let e=e=>{let{dir:t,isMinor:n}=e,r=this.lines[t].filter((e=>!!e.isMinor===n)),o=n?this.settings.minorTicks:this.settings.ticks;this.resolver.resolve({settings:o,data:{items:r,dir:t}}).items.forEach((e=>{let n=e.data;var r,o;e.show&&this.blueprint.push({type:"line",x1:n.position,y1:0,x2:n.position,y2:1,stroke:e.stroke||"black",strokeWidth:void 0!==e.strokeWidth?e.strokeWidth:1,strokeDasharray:void 0!==e.strokeDasharray?e.strokeDasharray:void 0,flipXY:n.flipXY||!1,value:null!==(r=n.value)&&void 0!==r?r:null===(o=n.data)||void 0===o?void 0:o.value,dir:t})}))};return e({dir:"x",isMinor:!1}),e({dir:"x",isMinor:!0}),e({dir:"y",isMinor:!1}),e({dir:"y",isMinor:!0}),this.blueprint.output()}};function dte(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.8,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e," ").concat(t-n,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?0:1,", ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return"\n M ".concat(e-n," ").concat(t,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?1:0,", ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function pte(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.75,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e+=o?1.5*n:-1.5*n," ").concat(t-n,"\n L ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return t+=o?1.5*n:-1.5*n,"\n M ".concat(e-n," ").concat(t,"\n L ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function fte(e,t,n){return e<t||e>n}function hte(e,t){if("string"==typeof e.formatter)return t.formatter(e.formatter);if("object"==typeof e.formatter)return t.formatter(e.formatter);if(void 0!==e.scale&&e.scale.data){const t=e.scale.data()&&e.scale.data().fields;return t&&t[0]?t[0].formatter():null}return null}function mte(e){if(void 0===e)return 0;if("number"==typeof e&&isFinite(e))return e;if("string"==typeof e)switch(e){case"center":case"middle":return.5;case"bottom":case"right":return 1;default:return 0}return 0}function gte(e){var t,n;let{chart:r,blueprint:o,renderer:i,p:a,settings:s,items:l,slopeLine:u}=e,c=!0,d=!1,p=!1,f=!1,h=!1,m=M2(!0,{},s.style.line,a.line||{}),g=M2(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke});if(d=u?o.processItem({type:"line",x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:!1,value:a.valueInfo?a.valueInfo.id:a.value}):o.processItem({type:"line",x1:a.position,y1:0,x2:a.position,y2:1,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:a.flipXY||!1,value:a.valueInfo?a.valueInfo.id:a.value}),a.label&&!1!==a.label.show&&(null==u||!u.slope||0===u.slope)){const e=M2(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke},a.label);let t,n={width:0,height:0},u="";t=hte(a,r),!1!==a.label.showValue&&(t?u=" (".concat(t(a.value),")"):a.scale&&(u=" (".concat(a.value,")"))),u&&(n=i.measureText({text:u,fontFamily:e.fontFamily,fontSize:e.fontSize}));let d=i.measureText({text:e.text||"",fontFamily:e.fontFamily,fontSize:e.fontSize}),g={width:d.width+n.width,height:Math.max(d.height,n.height)},b=e.padding,y=mte(a.flipXY?e.vAlign:e.align),v=mte(a.flipXY?e.align:e.vAlign),x=Math.min(1+g.width+2*b,e.maxWidth*o.width,e.maxWidthPx),_=g.height+2*b,w=a.flipXY?_:x,S=a.flipXY?x:_;if(p=o.processItem({fn:t=>{let{width:n,height:r}=t,i=a.position*n-(a.flipXY?_:x)*(1-y);i=a.flipXY?i:Math.max(i,0);return{type:"rect",x:i,y:Math.max(Math.abs(v*r-S*v),0),width:a.flipXY?w:Math.min(w,o.width-i),height:S,stroke:e.background.stroke,strokeWidth:e.background.strokeWidth,fill:e.background.fill,opacity:e.background.opacity}},flipXY:a.flipXY||!1}),p.x<-1||p.x+p.width>o.width+1||p.y<-1||p.y+p.height>o.height+1)p=void 0;else{f={type:"text",text:e.text||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:p.x+b,y:p.y+p.height/2+g.height/3,maxWidth:p.width-2*b-n.width,anchor:"start"},u&&(h={type:"text",text:u||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:f.x+3+(p.width-(n.width+2*b)),y:f.y});for(let e=0,t=l.length;e<t;e++){let t=l[e];"rect"===t.type?V9(p,t)&&(c=!1):"line"===t.type&&a.flipXY===t.flipXY&&K9(p,t)&&(c=!1)}}}if(d&&l.push(d),u&&0!==u.slope&&(!1!==(null===(t=u.label)||void 0===t?void 0:t.show)||!1!==(null===(n=u.label)||void 0===n?void 0:n.showValue))){var b,y,v;let e,t;const n=120;let s=!1!==(null===(b=u.label)||void 0===b?void 0:b.show)?null===(y=u.label)||void 0===y?void 0:y.text:"";if(!1!==(null===(v=u.label)||void 0===v?void 0:v.showValue)){var x;const t=hte(a,r),n=t?t(u.value):u.value;e="(".concat(u.slope,"x + ").concat(n,")"),s+=null!==(x=u.label)&&void 0!==x&&x.text?" ".concat(e):e}if(s.length>1){var _,w,S;const e=i.measureText({text:s,fontFamily:g.fontFamily,fontSize:g.fontSize});e.width=e.width>n?n:e.width;const a=function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});if(t>0){if(r.max()*t+n>=o.max())return!0}else if(t<0&&r.min()*t+n>=o.max())return!0;return!1}(r,u.slope,u.value)?function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});return r((o.max()-n)/t)}(r,u.slope,u.value):void 0,c=void 0===a||u.isRtl?g.padding:3*g.padding,p=void 0!==a||u.slope>0?3*g.padding:g.padding,f=function(e,t,n,r,o,i){let a=0;if(void 0!==n){if(n<.8)return a=e.slope<0||e.isRtl?3*i.padding:2*i.padding,e.isRtl,n*o.width+a;if(1===n)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding);if(n>.8)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding)}else if(e.slope>0)return t.x2-(r.width+2*i.padding);return e.isRtl?t.x1-(r.width+2*i.padding):t.x1}(u,d,a,e,o,g),h=Math.min(d.y1,d.y2);null!==(_=u.label)&&void 0!==_&&_.stroke&&(t={type:"rect",x:u.isRtl?Math.max(f,c)-2:Math.max(f,c)+2,y:Math.abs(Math.max(h,p)-e.height),rx:3,ry:3,width:e.width+g.padding,height:e.height-2,stroke:m.stroke,fill:m.stroke});const b={type:"text",text:s,fill:null!==(w=null===(S=u.label)||void 0===S?void 0:S.stroke)&&void 0!==w?w:m.stroke,opacity:g.opacity,fontFamily:g.fontFamily,fontSize:g.fontSize,x:t?t.x+2:Math.max(f,c)+2,y:t?t.y+e.height-g.padding:Math.abs(Math.max(h,p)-g.padding/2),anchor:"start",title:s,maxWidth:n,width:e.width};(function(e,t,n,r,o){for(let i=0,a=e.length;i<a;i++){const a=e[i];if("text"===(null==a?void 0:a.type)&&Math.abs(a.x-t.x)<Math.max(a.width+r,t.width+r)&&Math.abs(a.y-t.y)<n.height+o)return!0}return!1})(l,b,e,c,p)||(t&&l.push(t),l.push(b))}}c&&p&&f&&(l.push(p,f),h&&l.push(h))}function bte(e){const t={value:e.value};return e.label&&(t.label=e.label.text),t}function yte(e){return void 0!==("function"==typeof e.value?e.value():e.value)}function vte(e,t){const n=e.min();if(n===e.max()){const r=function(e){const t=e.range();return 2===(null==t?void 0:t.length)&&t[0]>t[1]}(e);if(t<n)return r?2:-1;if(t>n)return r?-1:2}return e(t)}function xte(e,t){return e&&t&&Math.abs(e.x-t.x)<1e-15&&Math.abs(e.y-t.y)<1e-15}const _te={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:0},style:{oob:{show:!0,width:10,fill:"#1A1A1A",stroke:"transparent",strokeWidth:0,opacity:1,text:{fontFamily:"Arial",stroke:"transparent",fill:"#fff",strokeWidth:0,opacity:1},triangle:{fill:"#4D4D4D",stroke:"transparent",strokeWidth:0,opacity:1},padding:{x:28,y:5}},line:{stroke:"#000"},label:{strokeWidth:0}}},preferredSize:()=>30,beforeRender(){this.blueprint=lte(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){let e=this.settings;if(this.lines={x:[],y:[]},this.lines.x=e.lines&&e.lines.x||[],this.lines.y=e.lines&&e.lines.y||[],0===this.lines.x.length&&0===this.lines.y.length)return[];const t={x0:[],x1:[],y0:[],y1:[]};this.lines.x=this.lines.x.filter(yte).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=vte(t,e.value);return M2(e,{scale:t,position:n})}return M2(e,{position:e.value})})),this.lines.y=this.lines.y.filter(yte).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=vte(t,e.value);return M2(e,{scale:t,position:n,flipXY:!0})}return M2(e,{position:e.value,flipXY:!0})})),this.lines.x=this.lines.x.filter((e=>!(e.position<0||e.position>1)||(t["x".concat(e.position>1?1:0)].push(bte(e)),!1))),this.lines.y=this.lines.y.filter((e=>!(!e.slope||0===e.slope)||(!(e.position<0||e.position>1)||(t["y".concat(e.position>1?1:0)].push(bte(e)),!1))));let n=[];return[...this.lines.x,...this.lines.y].forEach((r=>{if(!0===r.show||void 0===r.show){let o;if(r.slope&&0!==r.slope){const e=this.chart.scale({scale:"x"}),n=this.chart.scale({scale:"y"}),i=e.min(),a=e.max(),s=n.min(),l=n.max();o=P2(P2({},r),{},{x1:void 0,y1:void 0,x2:void 0,y2:void 0});const u=i*r.slope+r.value,c=a*r.slope+r.value,d=(s-r.value)/r.slope,p=(l-r.value)/r.slope;let f=[];fte(u,s,l)||(f[0]={x:vte(e,i),y:vte(n,u)}),fte(d,i,a)||(f[1]={x:vte(e,d),y:1}),fte(c,s,l)||(f[2]={x:vte(e,a),y:vte(n,c)}),fte(p,i,a)||(f[3]={x:vte(e,p),y:0});const h=f.filter((e=>!!e)).length;if(h>2&&function(e){xte(e[0],e[1])&&(e[1]=void 0),xte(e[1],e[2])&&(e[2]=void 0),xte(e[2],e[3])&&(e[3]=void 0),xte(e[3],e[0])&&(e[3]=void 0)}(f),f=f.filter((e=>!!e)),f.length<2)return void t["y".concat(u>l?0:1)].push(bte(r));o.x1=f[0].x,o.y1=f[0].y,o.x2=f[1].x,o.y2=f[1].y}else o=void 0;gte({chart:this.chart,blueprint:this.blueprint,renderer:this.renderer,p:r,settings:e,items:n,slopeLine:o})}})),e.style.oob.show&&function(e){let{blueprint:t,oob:n,settings:r,items:o}=e;const i=Object.keys(n);let a=r.style.oob||{};for(let e=0,r=i.length;e<r;e++){const r=i[e],s=n[r];if(s.length>0){let e=r.charAt(1),n="y"===r.charAt(0),i=a.padding.x+a.width,l=a.padding.y+a.width,u="bottom";u=n?"1"===e?"bottom":"top":"1"===e?"right":"left";let c=t.processItem({fn:t=>{let{width:r,height:o}=t,c=e*r+("1"===e?-i:i),d=n?l:o-l;return"arc"===a.type?{type:"path",d:dte(n?d:c,n?c:d,a.width,u),x:c,y:d,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0}:{type:"circle",cx:c,cy:d,r:a.width,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0,opacity:a.opacity,data:s}},flipXY:n}),d=c.cx||c.x,p=c.cy||c.y;const f=s.map((e=>e.label?"".concat(e.label," (").concat(e.value,")"):"(".concat(e.value,")"))),h=f.reduce(((e,t,n)=>0===n?t:"".concat(e,"\n\n").concat(t)),"");let m={type:"text",text:s.length||"",title:h,x:d-.4*a.width,y:p+.4*a.width,fontFamily:a.text.fontFamily,fontSize:"".concat(1.3*a.width,"px"),stroke:a.text.stroke,fill:a.text.fill,strokeWidth:a.text.strokeWidth||0,opacity:a.text.opacity},g={type:"path",d:pte(d,p,a.width,u),x:d,y:p,stroke:a.triangle.stroke,fill:a.triangle.fill,strokeWidth:a.triangle.strokeWidth||0,opacity:a.triangle.opacity};o.push(c,m,g)}}}({blueprint:this.blueprint,oob:t,settings:e,items:n}),n}};function wte(e){const t={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null}};return"top"===e.align||"bottom"===e.align?(t.x1=e.innerRect.x-e.outerRect.x,t.x2=t.x1+e.innerRect.width,t.y1=t.y2="top"===e.align?e.innerRect.height-e.padding:e.padding):(t.x1=t.x2="left"===e.align?e.innerRect.width-e.padding:e.padding,t.y1=e.innerRect.y-e.outerRect.y,t.y2=t.y1+e.innerRect.height),function(e,t){M2(e,t.style)}(t,e),t}function Ste(e){return"string"==typeof e||"number"==typeof e?e:"-"}function Cte(e,t,n){n.layered||!n.stepSize?function(e,t){t.collider={type:"polygon",vertices:[{x:t.boundingRect.x,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y+t.boundingRect.height},{x:t.boundingRect.x,y:t.boundingRect.y+t.boundingRect.height}]}}(0,t):n.tilted?function(e,t,n){const r=n.angle*(Math.PI/180),o=Math.max(n.stepSize/2,t.boundingRect.height/2),i="start"===t.anchor,a="end"===t.anchor&&r<0,s="start"===t.anchor&&r>=0,l=t.boundingRect.y+(s||a?t.boundingRect.height:0),u=[{x:t.x-o,y:l},{x:t.x+o,y:l}].map((e=>v9(e,r,{x:t.x,y:t.y}))),c={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y+t.boundingRect.height},d={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y},p=r>=0?[c,d]:[d,c];u.push(...p),t.collider={type:"polygon",vertices:u}}(0,t,n):function(e,t,n){if("bottom"===n.align||"top"===n.align){const r=e.position*n.innerRect.width+(n.innerRect.x-n.outerRect.x-n.stepSize/2);t.collider={type:"rect",x:r,y:0,width:r<0?n.stepSize+r:n.stepSize,height:n.innerRect.height}}else{const r=e.position*n.innerRect.height+(n.innerRect.y-n.outerRect.y-n.stepSize/2);t.collider={type:"rect",x:0,y:r,width:n.innerRect.width,height:r<0?n.stepSize+r:n.stepSize}}const r=t.collider;r.x=Math.max(r.x,0),r.y=Math.max(r.y,0);const o=r.x+r.width-(n.outerRect.x+n.outerRect.width);r.width=o>0?r.width-o:r.width;const i=r.y+r.height-(n.outerRect.y+n.outerRect.height);r.height=i>0?r.height-i:r.height}(e,t,n)}function Ete(e,t){const n=isNaN(e.style.align)?.5:Math.min(Math.max(e.style.align,0),1);let r=0;if(e.tilted)r=e.stepSize*n;else{const o=t?e.textRect.height:e.textRect.width;r=Math.max(0,e.stepSize-o)*n}return r}function kte(e,t){var n,r;const o={type:"text",text:Ste(e.label),x:0,y:0,maxWidth:t.maxWidth,maxHeight:t.maxHeight,tickValue:null!==(n=e.value)&&void 0!==n?n:null===(r=e.data)||void 0===r?void 0:r.value};return"top"===t.align||"bottom"===t.align?(o.x=e.start*t.innerRect.width+(t.innerRect.x-t.outerRect.x)+Ete(t,!1),o.y="top"===t.align?t.innerRect.height:0,o.anchor=t.stepSize?"start":"middle",o.x+=isNaN(t.style.offset)?0:+t.style.offset):(o.y=e.start*t.innerRect.height+(t.innerRect.y-t.outerRect.y)+Ete(t,!0),o.x="left"===t.align?t.innerRect.width:0,o.anchor="left"===t.align?"end":"start",o.baseline=t.stepSize?"text-before-edge":"central",o.y+=isNaN(t.style.offset)?0:+t.style.offset),function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(o,t),function(e,t){if(!t.tilted&&!t.stepSize)if("top"===t.align||"bottom"===t.align){const n=0,r=t.outerRect.width,o=Math.min(t.maxWidth/2,t.textRect.width/2),i=e.x-o,a=e.x+o;i<n?(e.anchor="start",e.x=t.innerRect.x-t.outerRect.x):a>r&&(e.anchor="end",e.x=t.innerRect.width+t.innerRect.x)}else{const n=0,r=t.outerRect.height,o=t.maxHeight/2,i=e.y-o,a=e.y+o;i<n?(e.y=t.innerRect.y-t.outerRect.y,e.baseline="text-before-edge"):a>r&&(e.y=t.innerRect.height+(t.innerRect.y-t.outerRect.y),e.baseline="text-after-edge")}}(o,t),function(e,t){"top"===t.align?e.y-=t.padding:"bottom"===t.align?e.y+=t.padding+t.maxHeight:"left"===t.align?e.x-=t.padding:"right"===t.align&&(e.x+=t.padding)}(o,t),function(e,t){if(t.tilted){const n=-t.angle,r=n*(Math.PI/180);"bottom"===t.align?(e.x-=t.maxHeight*Math.sin(r)/2,e.y-=t.maxHeight,e.y+=t.maxHeight*Math.cos(r)/2):e.x-=t.maxHeight*Math.sin(r)/3,e.transform="rotate(".concat(n,", ").concat(e.x,", ").concat(e.y,")"),e.anchor="bottom"===t.align==t.angle<0?"start":"end";const o=Math.cos(r)*t.maxWidth;if("bottom"===t.align==t.angle<0){const n=t.outerRect.width-t.paddingEnd;e.x+o>n&&(e.maxWidth=(n-e.x-10)/Math.cos(r))}else{const n=t.paddingEnd;e.x-o<n&&(e.maxWidth=(e.x-n-10)/Math.cos(r))}}}(o,t),function(e,t){e.boundingRect=t.textBounds(e)}(o,t),Cte(e,o,t),o}function Rte(e,t){const n={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null},tickValue:e.value};return"top"===t.align||"bottom"===t.align?(n.x1=n.x2=e.position*t.innerRect.width+(t.innerRect.x-t.outerRect.x),n.y1="top"===t.align?t.innerRect.height:0,n.y2="top"===t.align?n.y1-t.tickSize:n.y1+t.tickSize):(n.y1=n.y2=e.position*t.innerRect.height+(t.innerRect.y-t.outerRect.y),n.x1="left"===t.align?t.innerRect.width:0,n.x2="left"===t.align?n.x1-t.tickSize:n.x1+t.tickSize),function(e,t){M2(e,t.style)}(n,t),function(e,t){"top"===t.align?(e.y1-=t.padding,e.y2-=t.padding):"bottom"===t.align?(e.y1+=t.padding,e.y2+=t.padding):"left"===t.align?(e.x1-=t.padding,e.x2-=t.padding):"right"===t.align&&(e.x1+=t.padding,e.x2+=t.padding)}(n,t),function(e,t){const n=e.strokeWidth/2;e.x1===t.innerRect.width?(e.x1-=n,e.x2-=n):0===e.x1?(e.x1+=n,e.x2+=n):e.y1===t.innerRect.height?(e.y1-=n,e.y2-=n):0===e.y1&&(e.y1+=n,e.y2+=n)}(n,t),n}function Mte(e){return!e.isMinor&&e.position>=0&&e.position<=1}function Ate(e){let{rect:t,state:n,majorTicks:r,measure:o,horizontal:i}=e;return i?function(e){let{majorTicks:t,measureText:n,rect:r,state:o}=e;const i="layered"===o.labels.activeMode?2:1,a=r.width,s=t.map((e=>e.label)).map((e=>"".concat(e.slice(0,1)).concat(e.length>1?"…":""))).map(n).map((e=>e.width));for(let e=0;e<t.length;++e){const n=t[e];if(i*a*Math.abs(n.start-n.end)<s[e])return!0}return!1}({majorTicks:r,measureText:o,rect:t,state:n}):function(e){let{majorTicks:t,measureText:n,rect:r}=e;const o=r.height,i=n("M").height;return!(t.length<2)&&o*Math.abs(t[0].position-t[1].position)<i}({majorTicks:r,measureText:o,rect:t})}function Lte(e){let{value:t,maxValue:n,minValue:r,range:o,modifier:i}=e;return isNaN(o)||isNaN(i)||(t=o*i),t>n&&(t=n),t<r&&(t=r),t}function Ite(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const u={left:0,top:0,right:0,bottom:0},{maxLengthPx:c,minLengthPx:d}=a.labels;if(a.labels.show){const e=a.align,p="top"===e||"bottom"===e,f=p?n.inner.width:n.inner.height,h=i.ticks({settings:a,distance:f,formatter:r}).filter(Mte),m=e=>{const t=o({text:e,fontSize:a.labels.fontSize,fontFamily:a.labels.fontFamily});return t.width=Lte({value:t.width,maxValue:c,minValue:d}),t};if(t&&p&&"auto"===a.labels.mode&&(!function(e){let{majorTicks:t,measure:n,rect:r,state:o,settings:i}=e;const a=i.labels.maxGlyphCount,s="layered"===o.labels.activeMode?2:1,l=i.labels.tiltThreshold?i.labels.tiltThreshold:.7,u=n("…").width,c=r.width;let d=0,p=0;if(isNaN(a))for(let e=0;e<t.length;e++){const r=t[e],o=r.label,i=n(o).width*(o.length>1?l:1);if(p=s*c*Math.abs(r.start-r.end),i+u>p)return!0}else{const e=t.reduce(((e,t)=>Math.min(Math.abs(t.start-t.end),e)),1/0);if(p=s*c*e,d=n("M").width*l*a,d+u>p)return!0}return!1}({majorTicks:h,measure:m,rect:n.inner,state:s,settings:a})?s.labels.activeMode="horizontal":s.labels.activeMode="tilted"),!a.labels.filterOverlapping&&"tilted"!==s.labels.activeMode&&Ate({rect:n.inner,state:s,majorTicks:h,measure:m,horizontal:p})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}let g,b;if("tilted"===s.labels.activeMode){const e=Math.abs(a.labels.tiltAngle)*(Math.PI/180);g=t=>Lte({value:t.width,maxValue:c,minValue:d})*Math.sin(e)+t.height*Math.cos(e)}else g=p?e=>e.height:e=>Lte({value:e.width,maxValue:c,minValue:d});if(p&&"tilted"!==s.labels.activeMode)b=["M"];else if(isNaN(a.labels.maxGlyphCount))b=h.map((e=>e.label));else{let e="";for(let t=0;t<a.labels.maxGlyphCount;t++)e+="M";b=[e]}const y=b.map(m),v=y.map(g),x=Math.max(...v,0);if(l+=x,l+=a.labels.margin,"layered"===s.labels.activeMode&&(l*=2),"tilted"===s.labels.activeMode){const e="bottom"===a.align==a.labels.tiltAngle>=0,t=Math.abs(a.labels.tiltAngle)*(Math.PI/180),r=(x-m("M").height*Math.cos(t))/Math.sin(t),o=e=>Math.min(r,e.width)*Math.cos(t)+e.height,i=(t,r)=>{const o=h[r]?h[r].position:0;return e?t-o*n.inner.width:t-(1-o)*n.inner.width},s=Math.min(a.labels.maxEdgeBleed,Math.max(...y.map(o).map(i),0))+a.paddingEnd;if(u[e?"left":"right"]=s,!a.labels.filterOverlapping&&function(e){let{majorTicks:t,measureText:n,rect:r,bleedSize:o,angle:i}=e;if(t.length<2)return!1;if(0===i)return!0;const a=Math.abs(i),s=1/(Math.min(r.outer.width-o,r.inner.width)*Math.abs(t[0].position-t[1].position));return n("M").height>Math.sin(a*(Math.PI/180))/s}({majorTicks:h,measureText:m,rect:n,bleedSize:s,angle:a.labels.tiltAngle})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}}}return{size:l,edgeBleed:u}}const Pte=(e,t,n)=>e.width*Math.abs(t.position-n.position);function Tte(e){let{layered:t,major:n,innerRect:r,outerRect:o,tick:i,index:a}=e;const s=t?2:1,l=n[a-s],u=n[a+s],c=l?Pte(r,i,l)/2-2:1/0,d=u?Pte(r,i,u)/2-2:1/0;return n.length<2?r.width:l?u?2*Math.min(c,d):(e=>{let{innerRect:t,outerRect:n,tick:r,prevWidth:o}=e;const i=t.x-n.x,a=n.width-t.width-i,s=t.width-t.width*r.position+a,l=2*Math.min(o,s),u=1===r.position?t.width/2-2:0;return Math.max(o,l,u)})({innerRect:r,outerRect:o,tick:i,prevWidth:c}):(e=>{let{innerRect:t,outerRect:n,tick:r,nextWidth:o}=e;const i=t.x-n.x,a=t.width*r.position+i,s=2*Math.min(o,a),l=0===r.position?t.width/2-2:0;return Math.max(o,s,l)})({innerRect:r,outerRect:o,tick:i,nextWidth:d})}function Dte(e){const t=e.innerRect,n={cx:t.width/2,cy:t.height/2},r=Math.min(t.height,t.width)/2*e.radius,o=r+e.style.strokeWidth,i={visible:!0,type:"path",arcDatum:{startAngle:e.startAngle,endAngle:e.endAngle},transform:"translate(0, 0) translate(".concat(n.cx,", ").concat(n.cy,")"),desc:{share:1,slice:{cornerRadius:0,innerRadius:r,outerRadius:o}},ticks:[]};return function(e,t){M2(e,t.style)}(i,e),i}function Ote(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}function zte(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i;let u=a-e.position*l;u-=Math.PI/2;const c=Ote(r.cx,r.cy,o+s,u),d=Ote(r.cx,r.cy,o,u),p={type:"line",x1:c.x,y1:c.y,x2:d.x,y2:d.y,value:e.value};return function(e,t){const n=P2({},t.style);M2(e,n)}(p,t),p}function Nte(e){return"string"==typeof e||"number"==typeof e?e:"-"}function qte(e,t,n){let r;return r="left"===t?n.x:"right"===t?e.outerRect.width-n.x:Math.max(n.x,e.outerRect.width-n.x),r}function jte(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i,u=.2;let c,d;c="top"===t.align||"bottom"===t.align?a-e.position*l:i+e.position*l,d=c<-.2&&c>-Math.PI+u?"left":c>.2&&c<Math.PI-u?"right":"center",c-=Math.PI/2;const p=function(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}(r.cx,r.cy,o+s+6,c);let f;f="left"===d?"end":"right"===d?"start":"middle";const h={type:"text",text:Nte(e.label),align:d,x:p.x,y:p.y,maxHeight:t.maxHeight,maxWidth:qte(t,d,p),anchor:f,baseline:"middle"};return function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(h,t),function(e,t){e.boundingRect=t.textBounds(e)}(h,t),function(e,t,n){let r,o;const i=parseFloat(n.fontSize)||0;r=t.y-i/2,o=e.innerRect.height-(t.y+i/2),(r<0||o<0)&&(n.text="")}(t,p,h),h}function Fte(e){let t=0;return t+=e.paddingStart,t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function Bte(e){let t=0;return t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function $te(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=Fte(e)+e.labels.margin,t}function Wte(e,t){return e.map((e=>Rte(e,t)))}function Hte(e,t){return t?Math.abs(t.end-t.start):e.bandwidth()}function Gte(e){let{textMetrics:t,settings:n,innerRect:r,scale:o,tilted:i,layered:a,tick:s}=e;const l=t.height,u=Hte(o,s),c={width:0,height:l};if("left"===n.align||"right"===n.align)c.width=r.width-$te(n)-n.paddingEnd;else if(a)c.width=u*r.width*2;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);c.width=(r.height-$te(n)-n.paddingEnd-l*Math.cos(e))/Math.sin(e)}else c.width=u*r.width;return c.width=Lte({value:c.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),c}function Vte(e){let{textMetrics:t,settings:n,innerRect:r,outerRect:o,tilted:i,layered:a,tick:s,index:l,major:u}=e;const c=t.height,d={width:0,height:c};if("left"===n.align||"right"===n.align)d.width=r.width-$te(n)-n.paddingEnd;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);d.width=(r.height-$te(n)-n.paddingEnd-c*Math.cos(e))/Math.sin(e)}else d.width=Tte({layered:a,major:u,innerRect:r,outerRect:o,tick:s,index:l});return d.width=Lte({value:d.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),d}function Ute(e){let t;function n(){return t=Vte,n}function r(){return t=Gte,r}function o(e){let{settings:n,scale:r,innerRect:o,outerRect:i,measureText:a,ticks:s,state:l,textBounds:u}=e;const c=[],d=function(e){return e.filter((e=>!e.isMinor))}(s),p=function(e){return e.filter((e=>e.isMinor))}(s),f={innerRect:o,align:n.align,outerRect:i},h="tilted"===l.labels.activeMode,m="layered"===l.labels.activeMode;let g;if(n.arc&&(f.startAngle=n.arc.startAngle,f.endAngle=n.arc.endAngle,f.radius=n.arc.radius),n.line.show&&(f.style=n.line,f.padding=n.paddingStart,n.arc?c.push(Dte(f)):c.push(wte(f))),n.ticks.show&&(f.style=n.ticks,f.tickSize=n.ticks.tickSize,f.padding=Fte(n),n.arc?(f.padding=Bte(n),g=function(e,t){return e.map((e=>zte(e,t)))}(d,f)):g=Wte(d,f)),n.labels.show){const e=$te(n);f.style=n.labels,f.padding=e,f.tilted=h,f.layered=m,f.angle=n.labels.tiltAngle,f.paddingEnd=n.paddingEnd,f.textBounds=u;const s=(e,s)=>{f.textRect=function(e){let{style:t,measureText:n,tick:r}=e;return n({text:r.label,fontSize:t.fontSize,fontFamily:t.fontFamily})}({tick:e,measureText:a,style:f.style});const l=t({textMetrics:f.textRect,settings:n,innerRect:o,outerRect:i,scale:r,tilted:h,layered:m,tick:e,major:d,index:s});f.maxWidth=l.width,f.maxHeight=l.height,f.stepSize=function(e){let{innerRect:t,scale:n,settings:r,tick:o}=e;return("top"===r.align||"bottom"===r.align?t.width:t.height)*Hte(n,o)}({innerRect:o,scale:r,settings:n,tick:e})};let l=[];n.arc?(f.padding=function(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=Bte(e)+e.labels.margin,t}(n),l=function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=jte(e,t);return o.data=e.data,o}))}(d,f,s)):l=!m||"top"!==n.align&&"bottom"!==n.align?function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=kte(e,t);return o.data=e.data,o}))}(d,f,s):function(e,t,n,r){const o=t.padding,i=$te(n);return e.map(((e,a)=>{r(e,a);const s=i+t.maxHeight+n.labels.margin;t.layer=a%2,t.padding=a%2==0?o:s;const l=kte(e,t);return l.data=e.data,l}))}(d,f,n,s),n.labels.filterOverlapping&&function(e,t,n){let r=(t,n)=>V9($2(1,e[t].boundingRect),$2(1,e[n].boundingRect));if(n&&n.tilted){const t=Math.abs(n.angle);r=(n,r)=>{const o=1/Math.abs(e[n].x-e[r].x),i=Math.sin(t*(Math.PI/180))/o;return e[n].boundingRect.height>i}}for(let n=0;n<=e.length-1;n++)for(let o=n+1;o<=Math.min(n+5,n+(e.length-1));o++)e[n]&&e[o]&&r(n,o)&&(o===e.length-1?(e.splice(n,1),t&&t.splice(n,1)):(e.splice(o,1),t&&t.splice(o,1)),o--,n--)}(l,g,f),c.push(...l)}return n.minorTicks&&n.minorTicks.show&&p.length>0&&(f.style=n.minorTicks,f.tickSize=n.minorTicks.tickSize,f.padding=function(e){return e.line.strokeWidth+e.minorTicks.margin}(n),c.push(...Wte(p,f))),g&&c.push(...g),c}return n.build=o,r.build=o,e?r():n()}const Yte={labels:{show:!0,tiltAngle:40,tiltThreshold:.7,maxEdgeBleed:1/0,margin:4,maxLengthPx:150,minLengthPx:0,mode:"auto",maxGlyphCount:NaN,align:.5,offset:0,filterOverlapping:!1},ticks:{show:!1,margin:0,tickSize:4},line:{show:!1},paddingStart:0,paddingEnd:10,align:"auto"},Kte={labels:{show:!0,margin:4,maxLengthPx:150,minLengthPx:0,align:.5,offset:0,filterOverlapping:!0},ticks:{show:!0,margin:0,tickSize:8},minorTicks:{show:!1,tickSize:3,margin:0},line:{show:!0},paddingStart:0,paddingEnd:10,align:"auto"};const Xte={require:["chart","renderer","dockConfig"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{},style:{labels:"$label",ticks:"$guide-line",minorTicks:"$guide-line--minor",line:"$guide-line"}},created(){this.state={isDiscrete:!!this.scale.bandwidth,isHorizontal:!1,labels:{activeMode:"horizontal"},ticks:[],innerRect:{width:0,height:0,x:0,y:0},outerRect:{width:0,height:0,x:0,y:0},defaultDock:void 0,concreteNodeBuilder:void 0,settings:void 0},this.state.isDiscrete?this.state.defaultDock="bottom":this.state.defaultDock="left",this.setState(this.settings)},setState(){this.state.isDiscrete=!!this.scale.bandwidth,this.state.settings=function(e){let{state:t,style:n,settings:r}=e;const o=M2(!0,{},t.isDiscrete?Yte:Kte,n),i=M2(!0,{},o,r.settings),a=r.layout.dock||t.defaultDock;i.dock=a,i.align=function(e,t){const n=["top","bottom"],r=["left","right"];return-1!==n.indexOf(e)&&-1===r.indexOf(t)||-1!==r.indexOf(e)&&-1===n.indexOf(t)?e:t}(r.settings.align,a),i.labels.tiltAngle=Math.max(-90,Math.min(i.labels.tiltAngle,90));const{paddingStart:s,paddingEnd:l}=i;return i.paddingStart="function"==typeof s?s.call(null):s,i.paddingEnd="function"==typeof l?l.call(null):l,i}(this),this.state.concreteNodeBuilder=Ute(this.state.isDiscrete),this.dockConfig.dock(this.state.settings.dock),this.state.isHorizontal="top"===this.state.settings.align||"bottom"===this.state.settings.align,this.state.labels.activeMode=function(e,t,n){const r=t.labels.mode;return n&&e.isHorizontal?"auto"===r?e.labels.activeMode:-1!==["layered","tilted"].indexOf(t.labels.mode)&&-1!==["top","bottom"].indexOf(t.dock)?r:"horizontal":"horizontal"}(this.state,this.state.settings,this.state.isDiscrete)},preferredSize(e){const{formatter:t,state:n,scale:r}=this,o=this.state.isHorizontal?e.inner.width:e.inner.height;this.state.pxScale=J7(r,o);const i=function(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const{size:u,edgeBleed:c,isToLarge:d}=Ite({isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s});if(l+=u,d)return{size:l};if(a.ticks.show&&(l+=a.ticks.margin,l+=a.ticks.tickSize),a.minorTicks&&a.minorTicks.show){const e=a.minorTicks.margin+a.minorTicks.tickSize;e>l&&(l=e)}if(a.line.show){const e=a.line.strokeWidth/2;l+=e,c[function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left";default:return e}}(a.align)]=Math.ceil(e)}return l+=a.paddingStart,l+=a.paddingEnd,{size:l,edgeBleed:c}}({isDiscrete:this.state.isDiscrete,rect:{inner:e.inner,outer:e.outer},formatter:t,measureText:this.renderer.measureText,scale:this.state.pxScale,settings:this.state.settings,state:n});return i},beforeUpdate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{settings:t}=e;this.setState(t)},resize(e){const{inner:t,outer:n}=e,r=M2({},t,function(e){let{align:t,inner:n}=e;return"left"===t?{x:n.width+n.x}:"right"===t||"bottom"===t?n:{y:n.y+n.height}}({align:this.state.settings.align,inner:t})),o=n||r;return M2(this.state.innerRect,r),M2(this.state.outerRect,o),n},beforeRender(){const{scale:e,formatter:t}=this,n=this.state.isHorizontal?this.state.innerRect.width:this.state.innerRect.height;this.state.pxScale=J7(e,n),this.state.ticks=this.state.pxScale.ticks({distance:n,formatter:t}).filter((e=>e.position>=0&&e.position<=1))},render(){const{state:e}=this,t=[];return t.push(...this.state.concreteNodeBuilder.build({settings:this.state.settings,scale:this.state.pxScale,innerRect:this.state.innerRect,outerRect:this.state.outerRect,measureText:this.renderer.measureText,textBounds:this.renderer.textBounds,ticks:this.state.ticks,state:e})),ate.multiple(t),t}};const Qte={render:()=>[]};function Jte(e,t,n){let r="";if("function"==typeof e)r=e();else if("string"==typeof e)r=e;else if(n){const e=(n.data().fields||[]).map((e=>e.title()));r=e.join(t)}return r}function Zte(e,t){let n="middle";return"left"===e?"top"===t?n="end":"bottom"===t&&(n="start"):"right"===e?"top"===t?n="start":"bottom"===t&&(n="end"):"left"===t?n="start":"right"===t&&(n="end"),n}const ene={require:["renderer","chart"],defaultSettings:{layout:{dock:"bottom",displayOrder:0,prioOrder:0},settings:{paddingStart:5,paddingEnd:5,paddingLeft:0,paddingRight:0,anchor:"center",join:", ",maxLengthPx:NaN},style:{text:"$title"}},created(){this.definitionSettings=this.settings.settings;const e=this.settings.text,t=this.definitionSettings.join;this.title=Jte(e,t,this.scale)},preferredSize(){return this.renderer.measureText({text:this.title,fontSize:this.style.text.fontSize,fontFamily:this.style.text.fontFamily}).height+this.definitionSettings.paddingStart+this.definitionSettings.paddingEnd},render(){const{title:e,definitionSettings:t,rect:n}=this,r=[];return r.push(function(e){let{title:t,definitionSettings:n,dock:r,rect:o,measureText:i,style:a}=e;const s={type:"text",text:t,x:0,y:0,dx:0,dy:0,anchor:Zte(r,n.anchor),baseline:"alphabetical",stroke:"transparent",strokeWidth:0,fontWeight:"normal"};M2(s,a.text);const l=i(s);if("top"===r||"bottom"===r){let e=o.width/2;"left"===n.anchor?e=n.paddingLeft||0:"right"===n.anchor&&(e=o.width-(n.paddingRight||0)),s.x=e,s.y="top"===r?o.height-n.paddingStart:n.paddingStart+l.height,s.dy="top"===r?-l.height/6:-l.height/3,s.maxWidth=.8*o.width}else{let e=o.height/2;"top"===n.anchor?e=n.paddingStart:"bottom"===n.anchor&&(e=o.height-n.paddingStart),s.y=e,s.x="left"===r?o.width-n.paddingStart:n.paddingStart,s.dx="left"===r?-l.height/3:l.height/3;const t="left"===r?270:90;s.transform="rotate(".concat(t,", ").concat(s.x+s.dx,", ").concat(s.y+s.dy,")"),s.maxWidth=.8*o.height}return isNaN(n.maxLengthPx)||(s.maxWidth=Math.min(s.maxWidth,n.maxLengthPx)),s}({title:e,dock:this.settings.layout.dock,definitionSettings:t,rect:n,measureText:this.renderer.measureText,style:this.style})),r},beforeUpdate(e){e.settings&&(M2(this.settings,e.settings),this.definitionSettings=e.settings.settings);const t=this.settings.text,n=this.definitionSettings.join;this.title=Jte(t,n,this.scale)}};function tne(e,t){const n=e.settings.layout.dock,r=e.settings.settings.invert,o="top"===n||"bottom"===n,i=o?"width":"height",a=e.rect[i],s=e.chart.scroll(e.settings.scroll);let l;{let e=t[o?"x":"y"];r&&(e=a-e);const n=s.getState();l={startOffset:e,startScroll:n.start,swipe:!1};const i=e/a*(n.max-n.min)+n.min;i<n.start?l.startScroll=i:i>n.start+n.viewSize&&(l.startScroll=i-n.viewSize)}return{update:e=>{let t=e[o?"x":"y"];if(r&&(t=a-t),!l.swipe){if(Math.abs(l.startOffset-t)<=1)return;l.swipe=!0}const n=s.getState(),i=(t-l.startOffset)/a*(n.max-n.min),u=l.startScroll+i;s.moveTo(u)},end:e=>{let t=e[o?"x":"y"];r&&(t=a-t);const n=s.getState();if(l.swipe){const e=(t-l.startOffset)/a*(n.max-n.min),r=l.startScroll+e;s.moveTo(r)}else{const e=t/a*(n.max-n.min)+n.min-n.viewSize/2;s.moveTo(e)}}}}function nne(e,t){const n=t.element().getBoundingClientRect();return{x:e.center.x-n.left,y:e.center.y-n.top}}const rne={require:["chart","renderer"],on:{panStart(e){const t=nne(e,this.renderer),n={x:t.x-e.deltaX,y:t.y-e.deltaY};this.currentMove=tne(this,n),this.currentMove.update(t)},panMove(e){if(!this.currentMove)return;const t=nne(e,this.renderer);this.currentMove.update(t)},panEnd(e){if(!this.currentMove)return;const t=nne(e,this.renderer);this.currentMove.end(t),this.currentMove=null},panCancel(){this.currentMove=null},tap(e){const t=nne(e,this.renderer);tne(this,t).end(t)}},defaultSettings:{settings:{backgroundColor:"#eee",thumbColor:"#ccc",width:16}},preferredSize:function(e){const t=this.chart.scroll(this.settings.scroll).getState();if(t.viewSize>=t.max-t.min){return Math.max(e.width,e.height)}return this.settings.settings.width},render:function(e){const t=this.settings.layout.dock,n=this.settings.settings.invert,r="top"===t||"bottom"===t,o=r?"width":"height",i=this.rect[o],a=this.chart.scroll(this.settings.scroll).getState();let s=i*(a.start-a.min)/(a.max-a.min);const l=i*a.viewSize/(a.max-a.min);return n&&(s=i-s-l),e("div",{style:{position:"relative",width:"100%",height:"100%",background:this.settings.settings.backgroundColor,pointerEvents:"auto"}},[].concat(e("div",{class:"scroller",style:{position:"absolute",[r?"left":"top"]:"".concat(s,"px"),[r?"top":"left"]:"25%",[r?"height":"width"]:"50%",[o]:"".concat(Math.max(1,l),"px"),background:this.settings.settings.thumbColor}})))},renderer:"dom"};function one(e){let{h:t,isVertical:n,value:r,pos:o,align:i,borderHit:a,state:s,idx:l}=e;const u="end"!==i,c=u?{left:"0",top:"0"}:{right:"0",bottom:"0"};let d=0,p="100%",f="100%";return s.targetRect&&"start"===s.settings.bubbles.align?(p="".concat(s.targetRect.x+s.targetRect.width,"px"),f="".concat(s.targetRect.y+s.targetRect.height,"px")):s.targetRect&&"end"===s.settings.bubbles.align&&(d=n?s.targetRect.x:s.targetRect.y,p="".concat(s.rect.width-d,"px"),f="".concat(s.rect.height-d,"px")),u||(o-=a),t("div",{onmouseover(e){e.srcElement.children[0].style.backgroundColor="#000",e.srcElement.children[0].style[n?"height":"width"]="2px"},onmouseout(e){e.srcElement.children[0].style.backgroundColor=s.style.line.stroke,e.srcElement.children[0].style[n?"height":"width"]="1px"},"data-value":r,"data-key":[s.key,"edge",l].join("-"),style:{cursor:n?"ns-resize":"ew-resize",position:"absolute",left:"".concat(n?d:o,"px"),top:"".concat(n?o:d,"px"),height:n?"".concat(a,"px"):f,width:n?p:"".concat(a,"px"),pointerEvents:"auto"}},[t("div",{style:M2({backgroundColor:s.style.line.stroke,position:"absolute",height:n?"".concat(1,"px"):"100%",width:n?"100%":"".concat(1,"px"),pointerEvents:"none"},c)})])}function ine(e){let{h:t,isVertical:n,label:r,otherValue:o,rangeIdx:i,idx:a,pos:s,align:l,state:u,value:c}=e;const d="end"!==l,p="outside"===u.settings.bubbles.placement;let f,h="none";n?(f=d?"left":"right",p&&(h=d?"translate(-100%, 0px)":"translate(100%, 0px)")):(f=d?"top":"bottom",p&&(h=d?"translate(0px, -100%)":"translate(0px, 100%)"));let m=u.edit&&u.edit.rangeIdx===i&&u.edit.bubbleIdx===a;const g={position:"relative",borderRadius:"".concat(u.style.bubble.borderRadius,"px"),border:"".concat(u.style.bubble.strokeWidth,"px solid ").concat(u.style.bubble.stroke),backgroundColor:u.style.bubble.fill,color:u.style.bubble.color,fontFamily:u.style.bubble.fontFamily,fontSize:u.style.bubble.fontSize,padding:"4px 8px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px",minWidth:"50px",minHeight:"1em",pointerEvents:"auto",transform:n?"translate(0,-50%)":"translate(-50%,0)",cursor:n?"ns-resize":"ew-resize"};let b=u.style.bubble.stroke;const y=m?t("input",{type:"text",value:c,style:P2(P2({},g),{},{textAlign:"start",textOverflow:"",fontSize:"13px"}),onkeyup(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();const t=parseFloat(e.target.value);isNaN(t)?(b="rgba(230, 78, 78, 0.6)",e.target.style.border="".concat(u.style.bubble.strokeWidth,"px solid ").concat(b)):u.onEditConfirmed(i,t,o)}else"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),u.onEditCanceled())}}):t("div",{"data-key":[u.key,"bubble",i,a].join("-"),"data-other-value":o,"data-idx":i,"data-bidx":a,style:g},[r]);return t("div",{style:{position:"absolute",[f]:"0",[n?"top":"left"]:"".concat(s,"px"),transform:h}},[y])}function ane(e){let{h:t,isVertical:n,top:r,height:o,color:i,on:a,opacity:s}=e;return t("div",M2({style:{backgroundColor:i,opacity:s,position:"absolute",left:n?0:"".concat(r,"px"),top:n?"".concat(r,"px"):0,height:n?"".concat(o,"px"):"100%",width:n?"100%":"".concat(o,"px"),pointerEvents:"auto"}},a),[])}function sne(e){let{borderHit:t,els:n,isVertical:r,state:o,vStart:i,vEnd:a,idx:s}=e,l=0;o.targetRect&&(l=r?o.targetRect.y:o.targetRect.x);const u=!!o.scale,c=u?o.scale.norm(i)*o.size:i,d=u?o.scale.norm(a)*o.size:a,p=Math.abs(c-d),f=Math.min(c,d)+l,h=f+p;if(o.targetRect){const e=o.targetFillRect||o.targetRect,t=r?e.height:e.width,s=u?o.scale.norm(i)*t:i,l=u?o.scale.norm(a)*t:a,c=Math.abs(s-l),d=Math.min(s,l),p={h:o.h,isVertical:r,top:d,height:c,color:o.style.target.fill,opacity:o.style.target.opacity};o.style.target.opacity<.8&&(p.on={onmouseover(e){e.srcElement.style.opacity=o.style.target.opacity+.1},onmouseout(e){e.srcElement.style.opacity=o.style.target.opacity}}),n.push(o.h("div",{style:{position:"absolute",left:"".concat(e.x,"px"),top:"".concat(e.y,"px"),height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}},[ane(p)]))}const m=c<d?i:a,g=c<d?a:i,[b,y]=u?o.scale.domain():[Math.min(i,a),Math.max(i,a)],v=m+1e-5>=b&&m-1e-5<=y,x=g-1e-5<=y&&g+1e-5>=b;v&&n.push(one({h:o.h,isVertical:r,borderHit:t,value:m,pos:f,align:"start",state:o,idx:s})),x&&n.push(one({h:o.h,isVertical:r,borderHit:t,value:g,pos:h,align:"end",state:o,idx:s}));const _=o.settings.bubbles;if(_&&_.show){_.fontSize,_.fontFamily,_.fill;const e=[i,a];v&&n.push(ine({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:0,otherValue:g,value:m,label:"".concat(o.format(m,e)),pos:f,state:o})),x&&n.push(ine({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:1,otherValue:m,value:g,label:"".concat(o.format(g,e)),pos:h,state:o}))}}function lne(e){const t=e.active.limitHigh-e.active.end,n=e.active.limitLow-e.active.start;let r=e.current-e.start;return r=r<0?Math.max(r,n):Math.min(r,t),r}function une(e){let t=[];const n=0===e.direction;if(Array.isArray(e.ranges)&&e.ranges.forEach(((r,o)=>{e.active&&o===e.active.idx||sne({borderHit:5,els:t,isVertical:n,state:e,vStart:Math.min(r.min,r.max),vEnd:Math.max(r.min,r.max),idx:o})})),e.active){let r=e.start,o=e.current;if(-1!==e.active.idx)if("foo"===e.active.mode)r=Math.min(e.active.start,e.active.end),o=Math.max(e.active.start,e.active.end);else if("modify"===e.active.mode)r=Math.min(e.start,e.current),o=Math.max(e.start,e.current);else{const t=lne(e);r=e.active.start+t,o=e.active.end+t}sne({borderHit:5,els:t,isVertical:n,state:e,vStart:r,vEnd:o,idx:e.active.idx})}return t}function cne(e){return{min:e.scale.min(),max:e.scale.max()}}function dne(e){return{min:0,max:e.direction?e.rect.width:e.rect.height}}function pne(e,t,n){let r,o,i=e.ranges,a=-1;for(r=0;r<i.length;r++){if(i[r].min<=t&&t<=i[r].max){a=r,n.min=r?i[r-1].max:n.min,n.max=r+1<i.length?i[r+1].min:n.max;break}if(t<i[r].min){n.max=i[r].min,n.min=r?i[r-1].max:n.min;break}}-1===a&&i.length&&r>=i.length&&(n.min=i[i.length-1].max),-1!==a&&(o={idx:a,start:i[a].min,end:i[a].max,limitLow:n.min,limitHigh:n.max,mode:"foo"}),e.active=o}function fne(e){e.renderer.render(une(e))}function hne(e,t){if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}function mne(e,t){let n,r=1/0;const o=t.domain(),i=t.bandwidth()/2;for(let a=0;a<o.length;++a){const s=Math.abs(e-i-t(o[a]));s<r&&(r=s,n=o[a])}return n}function gne(e,t){return Math.min(...e)<=Math.max(...t)&&Math.max(...e)>=Math.min(...t)}function bne(e){const t=e.reduce(((e,t)=>(e.push(...q2(t.bounds)),e)),[]);return j2(t)}const yne={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{rangeStart(e){this.start(e)},rangeMove(e){this.move(e)},rangeEnd(e){this.end(e)},rangeClear(e){this.clear(e)},bubbleStart(e){this.bubbleStart(e)}},created(){this.state={key:this.settings.key||"brush-range"}},beforeRender(e){this.state.rect=e.size.computedInner},renderRanges(){this.state.started||(this.state.ranges=hne(this.state,this.state.brushInstance),this.state.active=null,fne(this.state))},render(e){const t=this.settings.settings;this.state.direction="vertical"===t.direction?0:1;const n=this.renderer.element().getBoundingClientRect(),r=this.state.rect[0===this.state.direction?"height":"width"];let o=J7(this.chart.scale(t.scale),r);const i=function(e){const t={targetRect:null,targetFillRect:null,scale:null,size:null},n=e.settings.settings,r=n.target&&(n.target.components||(n.target.component?[n.target.component]:[])).map((t=>e.chart.component(t))).filter((e=>!!e&&!!e.rect)),o=n.target&&n.target.selector?e.chart.findShapes(n.target.selector):[],i=n.target&&n.target.fillSelector?e.chart.findShapes(n.target.fillSelector):[];if(o.length>0){const r=bne(o);if(t.size=r[0===e.state.direction?"height":"width"],t.scale=J7(e.chart.scale(n.scale),t.size),t.targetRect=r,i.length>0){const e=bne(i);t.targetFillRect=e}}else if(r&&r.length>0){const n=r.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.computedInner.x),y0:Math.min(e.y0,t.rect.computedInner.y),x1:Math.max(e.x1,t.rect.computedInner.x+t.rect.computedInner.width),y1:Math.max(e.y1,t.rect.computedInner.y+t.rect.computedInner.height)})),{x0:r[0].rect.computedInner.x,y0:r[0].rect.computedInner.y,x1:r[0].rect.computedInner.x+r[0].rect.computedInner.width,y1:r[0].rect.computedInner.y+r[0].rect.computedInner.height});t.targetRect={x:n.x0-e.state.rect.x,y:n.y0-e.state.rect.y,width:n.x1-n.x0,height:n.y1-n.y0}}return t}(this);if(o=i.scale?i.scale:o,this.state.targetRect=i.targetRect,this.state.targetFillRect=i.targetFillRect,this.state.size=null===i.size?r:i.size,this.state.settings=t,this.state.style=this.style,this.state.offset=n,this.state.brush="object"==typeof t.brush?t.brush.context:t.brush,this.state.brushInstance=this.chart.brush(this.state.brush),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.onEditConfirmed=(e,t,n)=>{this.state.edit=null,function(e,t,n,r){let o=e.ranges.map((e=>({min:e.min,max:e.max})));const i=e.scale.min(),a=e.scale.max();o[t]={min:Math.max(i,Math.min(n,r)),max:Math.min(a,Math.max(n,r))},e.ranges[t]=P2({},o[t]);const s=e.scale.data();s&&s.fields&&s.fields.forEach((t=>{e.fauxBrushInstance||e.brushInstance.setRange(t.id(),o)}))}(this.state,e,t,n),this.emit("bubbleEnd"),fne(this.state)},this.state.onEditCanceled=()=>{this.state.edit=null,fne(this.state)},this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX"},this.state.format="function"==typeof t.bubbles.label&&((e,n)=>t.bubbles.label.call(void 0,{datum:e,data:n,scale:o,resources:{scale:this.chart.scale,formatter:this.chart.formatter}})),{}.hasOwnProperty.call(o,"norm")){this.state.editable=!0,this.state.observeBrush="object"==typeof t.brush&&t.brush.observe,this.state.fauxBrushInstance=null,this.state.findValues=null,this.state.scale=o;const e=this.state.scale.data();!this.state.format&&e&&e.fields&&e.fields[0]&&(this.state.format=e.fields[0].formatter())}else this.state.editable=!1,this.state.scale=t7(),this.state.scale.data=o.data,this.state.format||(this.state.format=(e,t)=>gne(o.range(),t)?function(e,t){const n=t.ticks(),r=t.domain().indexOf(mne(e,t));return-1!==r?n[r].label:"-"}(e,o):"-"),this.state.fauxBrushInstance=j7(),this.state.findValues=e=>function(e,t){const n=t.domain(),r=t.range(),o=[];return e.forEach((e=>{if(!gne(r,[e.min,e.max]))return;const i=n.indexOf(mne(e.min,t)),a=n.indexOf(mne(e.max,t));o.push.apply(o,n.slice(Math.min(i,a),Math.max(i,a)+1))})),o}(e,o);return this.state.ranges=hne(this.state,this.state.brushInstance),this.state.observeBrush||this.state.sourcedFromThisComponent?[une(this.state)]:[]},mounted(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.on("update",this.renderRanges)},beforeDestroy(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.removeListener("update",this.renderRanges)},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;t.edit=null;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=M2({},r.element().getBoundingClientRect());const c=a-t.offset.left,d=s-t.offset.top;t.offset.left+=t.targetRect?t.targetRect.x:0,t.offset.top+=t.targetRect?t.targetRect.y:0,t.ranges=o(t,t.fauxBrushInstance||t.brushInstance);const p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];u.current=t.scale.normInvert(f/t.size),u.start=t.scale.normInvert(p/t.size);let h=t.ranges;const m=cne(t);let g,b,y=-1;if(l&&l.hasAttribute("data-idx"))y=parseInt(l.getAttribute("data-idx"),10),m.min=y>0?h[y-1].max:m.min,m.max=y+1<h.length?h[y+1].min:m.max;else{for(g=0;g<h.length;g++){if(h[g].min<=u.start&&u.start<=h[g].max){y=g,m.min=g?h[g-1].max:m.min,m.max=g+1<h.length?h[g+1].min:m.max;break}if(u.start<h[g].min){m.max=h[g].min,m.min=g?h[g-1].max:m.min;break}}-1===y&&h.length&&g>=h.length&&(m.min=h[h.length-1].max)}if(-1!==y||t.multi||(u.ranges=[],m.min=t.scale.min(),m.max=t.scale.max()),-1!==y)if(b={idx:y,start:h[y].min,end:h[y].max,limitLow:m.min,limitHigh:m.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),b.mode="modify";else{let e=t.scale.norm(b.start)*t.size,n=t.scale.norm(b.end)*t.size;Math.abs(p-e)<=i?(u.start=b.end,b.mode="modify"):Math.abs(p-n)<=i&&(u.start=b.start,b.mode="modify")}else b={idx:-1,start:u.start,end:u.current,limitLow:m.min,limitHigh:m.max,mode:"current"};u.active=b,"modify"!==b.mode&&t.targetRect&&!Y9(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:hne,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e,e.fauxBrushInstance||e.brushInstance);const n=cne(e);pne(e,e.current,n)}(this.state,hne),fne(this.state),this.state.sourcedFromThisComponent=!0,this.state.active=null)},move(e){this.state.started&&(!function(e,t){const n=(t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset])/e.size,r=e.scale.normInvert(n);e.current=Math.max(Math.min(r,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){let t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=lne(e);t[e.active.idx].min+=n,t[e.active.idx].max+=n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});const n=e.scale.data();n&&n.fields&&n.fields.forEach((n=>{if(e.fauxBrushInstance){let r=hne(e,e.fauxBrushInstance),o=e.findValues(r),i=e.findValues(t),a=i.filter((e=>-1===o.indexOf(e))),s=o.filter((e=>-1===i.indexOf(e))),l=a.map((e=>({key:n.id(),value:e}))),u=s.map((e=>({key:n.id(),value:e})));e.brushInstance.addAndRemoveValues(l,u),e.fauxBrushInstance.setRange(n.id(),t)}else e.brushInstance.setRange(n.id(),t)}))}(this.state),fne(this.state))},clear(){this.state.fauxBrushInstance&&this.state.fauxBrushInstance.clear(),this.state.renderer.render([]),this.state.started=!1,this.state.active=null,this.state.sourcedFromThisComponent=!1},bubbleStart(e){if(!this.state.editable)return;const t=e.srcEvent||e,n=t.target,r={rangeIdx:parseInt(n.getAttribute("data-idx"),10),bubbleIdx:parseInt(n.getAttribute("data-bidx"),10)};if(isNaN(r.rangeIdx)||JSON.stringify(r)===JSON.stringify(this.state.edit))return;this.state.edit=r,t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault();const o=n.parentNode;fne(this.state);const i=o.querySelector("input");i.focus(),i.select()}};function vne(e){e.renderer.render(une(e))}function xne(e){return e.rc.ranges()}function _ne(e,t){const n={x:e.direction?t.min+e.rect.x:e.rect.x,y:e.direction?e.rect.y:t.min+e.rect.y,width:e.direction?t.max-t.min:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:t.max-t.min};return e.chart.shapesAt(n,e.settings.brush)}const wne={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaClear(e){this.clear(e)}},created(){this.state={key:this.settings.key||"brush-area-dir"}},render(e){this.state.rect=this.rect;const t=this.settings.settings,n="vertical"===t.direction?0:1,r=this.state.rect[0===n?"height":"width"],o=this.renderer.element().getBoundingClientRect(),i=(t.target?t.target.components||[t.target.component]:[]).map((e=>this.chart.component(e))).filter((e=>!!e&&!!e.rect)),a=i[0]?i.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.x),y0:Math.min(e.y0,t.rect.y),x1:Math.max(e.x1,t.rect.x+t.rect.width),y1:Math.max(e.y1,t.rect.y+t.rect.height)})),{x0:i[0].rect.x,y0:i[0].rect.y,x1:i[0].rect.x+i[0].rect.width,y1:i[0].rect.y+i[0].rect.height}):null;return this.state.targetRect=a?{x:a.x0-this.rect.x,y:a.y0-this.rect.y,width:a.x1-a.x0,height:a.y1-a.y0}:null,this.state.style=this.style,this.state.chart=this.chart,this.state.direction=n,this.state.settings=t,this.state.offset=o,this.state.rc=R7(),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.size=r,this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX",area:0===this.state.direction?"height":"width"},this.state.format=function(e,t){return function(e,t,n){const r=Math.min(...n),o=Math.max(...n),i={x:e.direction?r+e.rect.x:e.rect.x,y:e.direction?e.rect.y:r+e.rect.y,width:e.direction?o-r:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:o-r},a=e.chart.shapesAt(i,e.settings.brush);if(0===a.length)return"-";const s=a.reduce(((n,o)=>{const i=n.bounds,a=o.bounds;return t===r?i[e.cssCoord.coord]<=a[e.cssCoord.coord]?n:o:i[e.cssCoord.coord]+i[e.cssCoord.area]>=a[e.cssCoord.coord]+a[e.cssCoord.area]?n:o})),l=e.settings.brush.components.reduce(((e,t)=>e.key===s.key?e:t));return"function"==typeof e.settings.bubbles.label?e.settings.bubbles.label(s.data):Array.isArray(l.data)&&l.data.length?s.data[l.data[0]].label:s.data&&s.data.label?s.data.label:"-"}(this,e,t)},[]},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=r.element().getBoundingClientRect(),t.ranges=o(t);const c=a-t.offset.left,d=s-t.offset.top,p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];let h=f,m=p;u.start=p,u.current=f;let g=t.ranges;const b=dne(t);let y,v,x=-1;if(l&&l.hasAttribute("data-idx"))x=parseInt(l.getAttribute("data-idx"),10),b.min=x>0?g[x-1].max:b.min,b.max=x+1<g.length?g[x+1].min:b.max;else{for(y=0;y<g.length;y++){if(g[y].min<=m&&m<=g[y].max){x=y,b.min=y?g[y-1].max:b.min,b.max=y+1<g.length?g[y+1].min:b.max;break}if(m<g[y].min){b.max=g[y].min,b.min=y?g[y-1].max:b.min;break}}-1===x&&g.length&&y>=g.length&&(b.min=g[g.length-1].max)}if(-1!==x||t.multi||(u.ranges=[],b.min=0,b.max=t.direction?t.rect.width:t.rect.height),-1!==x)if(v={idx:x,start:g[x].min,end:g[x].max,limitLow:b.min,limitHigh:b.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),v.mode="modify";else{let e=v.start,t=v.end;Math.abs(p-e)<=i?(u.start=v.end,v.mode="modify"):Math.abs(p-t)<=i&&(u.start=v.start,v.mode="modify")}else v={idx:-1,start:m,end:h,limitLow:b.min,limitHigh:b.max,mode:"current"};u.active=v,"modify"!==v.mode&&t.targetRect&&!Y9(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:xne,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e);const n=dne(e);pne(e,e.current,n)}(this.state,xne),vne(this.state))},move(e){this.state.started&&(!function(e,t){const n=t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset];e.current=Math.max(Math.min(n,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){const t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=lne(e);t[e.active.idx].min=e.active.start+n,t[e.active.idx].max=e.active.end+n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});e.rc.set(t);let n=[];t.forEach((t=>{n=[...n,..._ne(e,t)]})),function(e,t){e.chart.brushFromShapes(t,e.settings.brush)}(e,n)}(this.state),vne(this.state))},clear(){this.state.rc&&this.state.rc.clear(),this.state.renderer.render([])}};function Sne(e){const t="vertical"===e.direction,n=e.rect[t?"height":"width"],r=e.rect[t?"width":"height"];return function(e){const t=e.brush;if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}(e).map((o=>{const i=e.scale(o.min)*n,a=e.scale(o.max)*n,s=Math.min(i,a),l=Math.abs(i-a);return{type:"rect",fill:e.fill,opacity:e.opacity,x:t?0:s,width:t?r:l,y:t?s:0,height:t?l:r}}))}function Cne(e,t,n,r){function o(){!function(e){e.renderer.render(Sne(e))}(e)}function i(){!function(e){e.renderer.render(Sne(e))}(e)}function a(){!function(e){e.renderer.render(Sne(e))}(e)}e.brush=t,t&&(t.on("start",o),t.on("update",i),t.on("end",a),e.start=o,e.update=i,e.end=a,e.brush=t,e.scale=n,e.renderer=r)}function Ene(e){e.brush&&(e.brush.removeListener("start",e.start),e.brush.removeListener("update",e.update),e.brush.removeListener("end",e.end)),e.start=void 0,e.update=void 0,e.end=void 0,e.brush=void 0,e.scale=void 0,e.renderer=void 0}const kne={require:["chart","settings","renderer"],defaultSettings:{settings:{}},preferredSize:()=>50,created(){this.state={}},render(){const e=this.settings.settings,t=this.chart.brush(e.brush),n=e.direction||"horizontal",r="horizontal"===n?this.rect.width:this.rect.height,o=J7(this.chart.scale(e.scale),r);return Ene(this.state),Cne(this.state,t,o,this.renderer),this.state.rect=this.rect,this.state.fill=e.fill||"#ccc",this.state.opacity=void 0!==e.opacity?e.opacity:1,this.state.direction=n,Sne(this.state)},beforeDestroy(){Ene(this.state)}};function Rne(e,t){const n=t.center.x,r=t.center.y;return{x:n-e.left,y:r-e.top}}function Mne(e,t,n){return g9(e,t.points[0])<n.settings.snapIndicator.threshold**2}function Ane(e,t){null==e.path.d?e.path.d="M".concat(t.x," ").concat(t.y," "):e.path.d+="L".concat(t.x," ").concat(t.y," "),e.points.push(t)}function Lne(e){let{state:t,start:n=null,end:r=null}=e;null!==n&&(t.snapIndicator.x1=n.x,t.snapIndicator.y1=n.y),null!==r&&(t.snapIndicator.x2=r.x,t.snapIndicator.y2=r.y)}function Ine(e,t){e.snapIndicator.visible=t}const Pne={require:["chart","renderer","settings"],defaultSettings:{layout:{displayOrder:0},settings:{brush:{components:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.5},lasso:{fill:"transparent",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:"20, 10"},startPoint:{r:10,fill:"green",stroke:"black",strokeWidth:1,opacity:1}}},on:{lassoStart(e){this.start(e)},lassoEnd(e){this.end(e)},lassoMove(e){this.move(e)},lassoCancel(){this.cancel()}},created(){this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}}},start(e){var t;this.state.active=!0,this.state.path={visible:!0,type:"path",d:null,fill:(t=this.settings.settings.lasso).fill,stroke:t.stroke,strokeWidth:t.strokeWidth,opacity:t.opacity,strokeDasharray:t.strokeDasharray,collider:{type:null}},this.state.snapIndicator=function(e){return{visible:!1,type:"line",x1:0,y1:0,x2:0,y2:0,strokeDasharray:e.strokeDasharray,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity,collider:{type:null}}}(this.settings.settings.snapIndicator),this.state.startPoint=function(e){return{visible:!0,type:"circle",cx:0,cy:0,r:e.r,fill:e.fill,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,collider:{type:null}}}(this.settings.settings.startPoint),this.state.rendererBounds=this.renderer.element().getBoundingClientRect(),this.state.componentDelta=function(e,t){const n=e.element.getBoundingClientRect();return{x:t.left-n.left,y:t.top-n.top}}(this.chart,this.state.rendererBounds),this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts||["lassoBrush"],data:e.data||[""],action:e.action||"add"})))}(this.settings);const n=Rne(this.state.rendererBounds,e);Ane(this.state,n),Lne({state:this.state,start:n}),function(e,t){e.startPoint.cx=t.x,e.startPoint.cy=t.y}(this.state,n)},move(e){if(!this.state.active)return;const t=Rne(this.state.rendererBounds,e);Mne(t,this.state,this.settings)?Ine(this.state,!0):Ine(this.state,!1),Ane(this.state,t),Lne({state:this.state,end:t}),function(e,t){const n=[e.startPoint,e.path,e.snapIndicator].filter((e=>e.visible));t.render(n)}(this.state,this.renderer),function(e,t){if(e.active){const n=e.points[e.points.length-2],r=e.points[e.points.length-1];e.lineBrushShape.x1=n.x+e.componentDelta.x,e.lineBrushShape.y1=n.y+e.componentDelta.y,e.lineBrushShape.x2=r.x+e.componentDelta.x,e.lineBrushShape.y2=r.y+e.componentDelta.y;const o=t.shapesAt(e.lineBrushShape,{components:e.brushConfig});t.brushFromShapes(o,{components:e.brushConfig})}}(this.state,this.chart)},end(e){if(!this.state.active)return;Ine(this.state,!1);Mne(Rne(this.state.rendererBounds,e),this.state,this.settings)&&function(e,t){if(e.active){const n=e.componentDelta.x,r=e.componentDelta.y,o=e.points.map((e=>({x:e.x+n,y:e.y+r}))),i=t.shapesAt({vertices:o},{components:e.brushConfig});t.brushFromShapes(i,{components:e.brushConfig})}}(this.state,this.chart),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([])},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([]))},render(){}};function Tne(e,t,n,r,o){let i,a=0,s=t.length-1;for(;a<s;){let l=Math.floor((a+s)/2);i=o(t[l]),i[n]+i[r]<e[n]?a=l+1:s=l}return a}function Dne(e){let{orientation:t,targetNodes:n,labels:r,container:o}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tne;const a=[],s="v"===t?"x":"y",l="v"===t?"width":"height",u=e=>e.textBounds,c=e=>e.node.localBounds;return(e,t)=>{const{textBounds:d,node:p}=r[t];if(d[s]<o[s]||d[s]+d[l]>o[s]+o[l])return!1;for(let e=i(d,a,s,l,u);e<a.length;e++)if(V9(d,a[e].textBounds))return!1;const f=i(d,n,s,l,c),h=d[s]+d[l];for(let e=f;e<n.length;e++){const t=n[e].node;if(h<t.localBounds[s])break;if(V9(d,t.localBounds)&&p!==t)return!1}return a.push(r[t]),!0}}const One=4;function zne(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function Nne(e){const t=typeof e;return("string"===t||"number"===t)&&""!==e}function qne(e){return P2(P2({type:"rect",rx:2,ry:2,fill:e.backgroundColor},e.backgroundBounds),{},{data:"".concat(e.data," ").concat(e.text),rotation:e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal"})}function jne(e,t,n){return n?e.width>=t.height:e.width>=t.width}function Fne(e,t,n){return n?e.height>=t.width:e.height>=t.height}function Bne(e,t,n,r,o){let i,a;return"v"===e?(i=r||o||jne(t,n,!0),a=Fne(t,n,!r)):(i=jne(t,n),a=o||Fne(t,n,!1)),i&&a}function $ne(e,t,n,r){return e+.5*t+(r-.5)*(t-n)-.5*n}function Wne(e,t,n){const r={type:"text",text:t,maxWidth:n.rotate?e.height:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:n.rotate?"end":"start",baseline:"central",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(!n.overflow&&!function(e,t,n){return jne(e,t,n.rotate)&&Fne(e,t,n.rotate)}(e,o,n))return!1;const i=.5*o.height;return n.rotate?(r.x=$ne(e.x,e.width,o.height,n.align)+i,r.y=$ne(e.y,e.height,o.width,n.justify),"right"===n.dock?r.transform="rotate(90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,") translate(").concat(o.width,", 0)"):r.transform="rotate(-90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,")")):(r.x=$ne(e.x,e.width,o.width,n.align),r.y=$ne(e.y,e.height,o.height,n.justify)+i),r}function Hne(e){let{bar:t,view:n,direction:r,position:o,padding:i=One,measured:a}=e;const s={};if(M2(s,t),o&&"inside"!==o)if("up"===r||"down"===r){const e=Math.max(0,Math.min(t.y,n.height)),i=Math.max(0,Math.min(t.y+t.height,n.height));"outside"===o&&"up"===r||"opposite"===o&&"down"===r?(s.y=0,s.height=e):("outside"===o&&"down"===r||"opposite"===o&&"up"===r)&&(s.y=i,s.height=n.height-i)}else{const e=Math.max(0,Math.min(t.x,n.width)),i=Math.max(0,Math.min(t.x+t.width,n.width));"outside"===o&&"left"===r||"opposite"===o&&"right"===r?(s.x=0,s.width=e):("outside"===o&&"right"===r||"opposite"===o&&"left"===r)&&(s.x=i,s.width=n.width-i)}else;return function(e,t){const n=Math.max(0,Math.min(e.y,t.height)),r=Math.max(0,Math.min(e.y+e.height,t.height)),o=Math.max(0,Math.min(e.x,t.width)),i=Math.max(0,Math.min(e.x+e.width,t.width));e.x=o,e.width=i-o,e.y=n,e.height=r-n}(s,n),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{top:r=One,bottom:o=One,left:i=One,right:a=One}=n,s="function"==typeof i?i(t):i,l="function"==typeof a?a(t):a,u="function"==typeof r?r(t):r,c="function"==typeof o?o(t):o;e.x+=s,e.width-=s+l,e.y+=u,e.height-=u+c}(s,a,i),s}function Gne(e){let t,n,r,o,i,{direction:a,fitsHorizontally:s,measured:l,node:u,orientation:c,placementSettings:d,rect:p}=e,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hne;const h=[],m="h"===c?"width":"height";for(i=0;i<d.length;i++)if(r=d[i],o=f({bar:u.localBounds,view:p,direction:a,position:r.position,padding:r.padding,measured:l}),h.push(o),t=!i||o[m]>t[m]?o:t,Bne(c,o,l,s,r.overflow)){n=o;break}return n||(n=t,i=h.indexOf(n)),r=d[i],{bounds:n,placement:r}}function Vne(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{top:i=One,bottom:a=One,left:s=One,right:l=One}=o,u="function"==typeof s?s(t):s,c="function"==typeof l?l(t):l,d="function"==typeof i?i(t):i,p="function"==typeof a?a(t):a,f=e.x+e.dx,h=e.y+e.dy,m=n?Math.min(t.width,r.height):Math.min(t.height,r.width),g=n?Math.min(t.height,r.height):Math.min(t.width,r.width),b=.5*t.height,y=1e-9;return{x:(n?f-b:f)-u-y,y:(n?h:h-b)-d-y,width:g+(u+c)-y,height:m+(d+p)-y}}function Une(e){let{chart:t,targetNodes:n,rect:r,fitsHorizontally:o,collectiveOrientation:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gne,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wne,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dne;const u=[],c={container:r,targetNodes:n,labels:[],orientation:i};let d,p,f,h,m,g,b,y,v,x,_,w,S,C;for(let e=0,l=n.length;e<l;e++){g=null,p=n[e],f=p.node,S=zne(f,t),v=p.direction,C="left"===v||"right"===v?"h":"v";for(let t=0;t<p.texts.length;t++){if(h=p.texts[t],!Nne(h))continue;x=p.labelSettings[t],y=p.measurements[t],w=x.placements;const n=a({direction:v,fitsHorizontally:o,lblStngs:x,measured:y,node:f,orientation:C,placements:w,placementSettings:p.placementSettings[t],rect:r});if(g=n.bounds,_=n.placement,g&&_){var E;m=_.justify;const t="function"==typeof x.linkData?x.linkData(S,e):void 0,n="function"==typeof _.overflow?_.overflow(S,e):_.overflow;"up"===v&&(m=1-m),"opposite"===_.position&&(m=1-m),"left"===v&&(m=1-m);const r=!("h"===i||o);if(d=s(g,h,{justify:"h"===C?_.align:m,align:"h"===C?m:_.align,fontSize:x.fontSize,fontFamily:x.fontFamily,textMetrics:y,rotate:r,overflow:!!n,dock:null!==(E=x.dock)&&void 0!==E?E:"left"}),d){const n=Vne(d,y,r,g,_.padding);b="function"==typeof _.fill?_.fill(P2(P2({},S),{},{textBounds:n}),e):_.fill,d.fill=b,void 0!==t&&(d.data=t),"object"==typeof _.background&&(d.backgroundColor="function"==typeof _.background.fill?_.background.fill(P2(P2({},S),{},{textBounds:n}),e):_.background.fill,void 0!==d.backgroundColor&&(d.backgroundBounds=Vne(d,y,r,g,_.background.padding))),u.push(d),c.labels.push({node:f,textBounds:n})}}}}const k=u.filter(l(c)),R=k.filter((e=>void 0!==e.backgroundBounds)).map(qne);return[...R,...k]}function Yne(e){const t=2*Math.PI;return(e%t+t)%t}function Kne(e,t){e.x+=t,e.width-=2*t,e.y+=t,e.height-=2*t}function Xne(e){return{x:e.x,y:e.y-e.height/2,width:e.width,height:e.height}}function Qne(e,t,n){let{x:r,y:o}=t;if(r*r+o*o>e*e)return null;let i=Math.sin(n),a=Math.cos(n),s=r*a-o*i,l=e*e-s*s;if(l<0)return null;let u=Math.sqrt(l);return{x:s*a+i*u,y:-s*i+a*u}}function Jne(e){let t,n,{radius:r,size:o,angle:i}=e,{width:a,height:s}=o,l={x:a/2,y:s/2};switch(Math.floor(i/(Math.PI/2))){case 0:if(t=Qne(r,l,i),!t)return null;t.y*=-1,n={x:-a,y:0};break;case 1:if(t=Qne(r,l,Math.PI-i),!t)return null;n={x:-a,y:-s};break;case 2:if(t=Qne(r,l,i-Math.PI),!t)return null;t.x*=-1,n={x:0,y:-s};break;case 3:if(t=Qne(r,l,2*Math.PI-i),!t)return null;t.x*=-1,t.y*=-1,n={x:0,y:0};break;default:throw new Error("invalid angle")}return{x:t.x+n.x,y:t.y+n.y,width:a,height:s}}function Zne(e){let{slice:t,measured:n,padding:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t,l=s-a-2*r,u=i-o;if(u<Math.PI){let e=(n.height/2+r)/Math.tan(u/2);e>a&&(l=s-e-2*r)}if(l<0||l<n.minReqWidth)return null;const c=Yne((o+i)/2);let d=s-r,p={x:Math.sin(c)*d,y:-Math.cos(c)*d,width:l,height:n.height};return c<Math.PI?(p.angle=c-Math.PI/2,p.anchor="end"):(p.angle=c+Math.PI/2,p.anchor="start"),p}function ere(e){let{context:t,node:n,bounds:r}=e;let{start:o,end:i}=n.desc.slice;const a=Yne((o+i)/2);switch(Math.floor(a/(Math.PI/2))){case 0:t.q1maxY=r.y-2,void 0===t.q2minY&&(t.q2minY=r.y+r.height+2);break;case 1:t.q2minY=r.y+r.height+2;break;case 2:t.q3minY=r.y+r.height+2;break;case 3:t.q4maxY=r.y-2,void 0===t.q3minY&&(t.q3minY=r.y+r.height+2)}}function tre(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function nre(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:e.x,y:e.y+("top"===e.baseline?e.height/2:0),fill:n.fill,anchor:e.anchor||"start",baseline:"middle",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily};if(!isNaN(e.angle)){let t=e.angle*(360/(2*Math.PI));r.transform="rotate(".concat(t,", ").concat(r.x,", ").concat(r.y,")")}return r}function rre(e){let t,n,{slice:r,direction:o,position:i,padding:a,measured:s,view:l,context:u,store:c}=e,{start:d,end:p,innerRadius:f,offset:h}=r;switch(i){case"into":t="rotate"===o?Zne({slice:r,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t;const l=Yne((o+i)/2);let u=Jne({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",K9(u,{x1:0,y1:0,x2:Math.sin(o)*s,y2:-Math.cos(o)*s})||K9(u,{x1:0,y1:0,x2:Math.sin(i)*s,y2:-Math.cos(i)*s})||F9({cx:0,cy:0,r:a},u)?null:(Kne(u,n),u)):null}({slice:r,measured:s,padding:a});break;case"inside":n={start:d,end:p,innerRadius:0,outerRadius:f},t="rotate"===o?Zne({slice:n,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r,store:o}=e;const{start:i,end:a,outerRadius:s}=t,l=Yne((i+a)/2);let u=Jne({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",Kne(u,n),o.insideLabelBounds.some((e=>V9(e,u)))?null:(o.insideLabelBounds.push({x:u.x-4,y:u.y,width:u.width+8,height:u.height}),u)):null}({slice:n,measured:s,padding:a,store:c});break;case"outside":t="rotate"===o?function(e){let{slice:t,measured:n,padding:r,view:o}=e,{start:i,end:a,outerRadius:s,offset:l}=t,u=s+r,c=a-i;if(c<Math.PI&&(n.height/2+r)/Math.tan(c/2)>u)return null;const d=Yne((i+a)/2);let p=Math.sin(d)*u,f=-Math.cos(d)*u,h=n.width+1,m=d%Math.PI;if(m>Math.PI/2&&(m=Math.PI-m),Math.cos(m)>.001){let e=f<0?o.y:o.y+o.height,t=Math.abs(e-l.y)/Math.cos(m)-Math.tan(m)*(n.height/2)-2*r-s;t<h&&(h=t)}if(Math.sin(m)>.001){let e=p<0?o.x:o.x+o.width,t=Math.abs(e-l.x)/Math.sin(m)-n.height/2/Math.tan(m)-2*r-s;t<h&&(h=t)}if(h<=0||h<n.minReqWidth)return null;let g={x:p,y:f,width:h,height:n.height};return d<Math.PI?(g.angle=d-Math.PI/2,g.anchor="start"):(g.angle=d+Math.PI/2,g.anchor="end"),g}({slice:r,measured:s,padding:a,view:l}):function(e){let{slice:t,measured:n,padding:r,view:o,context:i}=e,{start:a,end:s,outerRadius:l,offset:u}=t;const c=Yne((a+s)/2);if(function(e,t,n){switch(t){case 0:return e.q1maxY<0;case 1:return e.q2minY>n.height;case 2:return e.q3minY>n.height;case 3:return e.q4maxY<0;default:return!0}}(i,Math.floor(c/(Math.PI/2)),o))return null;let d=l+r+n.height/2,p=Math.sin(c)*d,f=-Math.cos(c)*d,h=n.width+1;if(c<Math.PI){let e=Math.abs(o.x+o.width-(p+u.x));e<h&&(h=e)}else{let e=Math.abs(o.x-(p+u.x));e<h&&(h=e)}if(h<n.minReqWidth)return null;let m={x:p,y:f,width:h,height:n.height};return c<Math.PI?m.anchor="start":m.anchor="end",m}({slice:r,measured:s,padding:a,view:l,context:u});break;default:throw new Error("not implemented")}return t&&(t.x+=h.x,t.y+=h.y,"outside"===i&&"rotate"!==o&&function(e,t,n){const{start:r,end:o,offset:i,outerRadius:a}=n,s=Yne((r+o)/2);switch(Math.floor(s/(Math.PI/2))){case 0:if(void 0!==t.q1maxY){let n=Math.min(e.y,t.q1maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 1:if(void 0!==t.q2minY){let n=Math.max(e.y,t.q2minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 2:if(void 0!==t.q3minY){let n=Math.max(e.y,t.q3minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 3:if(void 0!==t.q4maxY){let n=Math.min(e.y,t.q4maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}}}(t,u,r)),t}function ore(e){let{context:t,direction:n,measured:r,node:o,placementSettings:i,rect:a,store:s}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rre;for(let e=0;e<i.length;e++){let u=i[e],c=l({context:t,slice:o.desc.slice,view:a,direction:n,position:u.position,measured:r,padding:u.padding,store:s});if(c)return{bounds:c,placement:u}}return{bounds:null,placement:null}}function ire(e,t,n){const r=t.fontFamily,o="".concat(t.fontSize,"px"),i=n.measureText({text:e,fontFamily:r,fontSize:o});return i.minReqWidth=Math.min(i.width,n.measureText({text:"".concat(e[0],"…"),fontFamily:r,fontSize:o}).width),i}const are=/\n+|\r+|\r\n/,sre=/\s/,lre=/[a-zA-Z\u00C0-\u00F6\u00F8-\u00FF\u00AD]/;function ure(e){return"string"==typeof e?-1!==e.search(are):-1!==String(e).search(are)}function cre(e){return-1!==e.search(sre)}function dre(e){return-1!==e.search(lre)}function pre(e,t,n){return Math.max(t,Math.min(n,e))}function fre(){let{string:e,separator:t="",reverse:n=!1,measureText:r=e=>({width:e.length,height:1}),mandatoryBreakIdentifiers:o=[ure],noBreakAllowedIdentifiers:i=[],suppressIdentifier:a=[cre,ure,e=>""===e],hyphenationIdentifiers:s=[dre]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=String(e).split(t);!function(e){""===e[0]&&e.shift(),""===e[e.length-1]&&e.pop()}(l);const u=l.length,c=n?e=>e>=0:e=>e<u;let d=n?u:-1;function p(e){const t=pre(e,0,u-1),n=l[t],c=r(n),d=function(e,t,n,r,o){return r.some((r=>r(e,t,n)))?1:o.some((r=>r(e,t,n)))?0:2}(n,t,l,o,i);return{index:t,value:n,breakOpportunity:d,suppress:a.some((e=>e(n,t,l))),hyphenation:s.some((e=>e(n,t,l))),width:c.width,height:c.height,done:!1}}return{next:function(e){return isNaN(e)?n?d--:d++:d=pre(e,0,u-1),c(d)?p(d):{done:!0}},peek:p,length:u}}const hre="…",mre=/^\s*\d+(\.\d+)?px\s*$/i;function gre(e){return"string"===typeof e&&mre.test(e)}function bre(e){const t=e["font-size"]||e.fontSize;return gre(t)?parseFloat(t)*Math.max(isNaN(e.lineHeight)?1.2:e.lineHeight,0):19.2}function yre(e){const t=e.maxHeight,n=Math.max(e.maxLines,1)||1/0;if(isNaN(t))return n;const r=bre(e);return Math.max(1,Math.min(Math.floor(t/r),n))}function vre(e,t){return{lines:[],line:"",width:0,maxLines:yre(e),maxWidth:e.maxWidth,hyphens:{enabled:"auto"===e.hyphens,char:"‐",metrics:t("‐")}}}function xre(e){e.lines.push(e.line),e.line="",e.width=0}function _re(e,t){e.line+=t.value,e.width+=t.width}function wre(e,t,n){if(t.width>e.maxWidth)return t;const r=t.index;for(let o=1;o<5;o++){const i=n.peek(t.index-1);if(!t.hyphenation||!i.hyphenation||0===t.index)return t;if(e.width+e.hyphens.metrics.width<=e.maxWidth)return e.line+=e.hyphens.char,t;if(1===e.line.length)return t;t=n.next(r-o),e.line=e.line.slice(0,-1),e.width-=t.width}return t}function Sre(e,t,n){const r=fre({string:t.value,measureText:n});for(;e.lines.length<e.maxLines;){let t=r.next();if(t.done)break;e.width+t.width>e.maxWidth&&2===t.breakOpportunity&&e.line.length>0?(t=e.hyphens.enabled?wre(e,t,r):t,xre(e),_re(e,t)):_re(e,t)}}function Cre(e,t){const n=fre({string:e.text,separator:"",measureText:t,noBreakAllowedIdentifiers:[(e,t)=>0===t]}),r=vre(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){xre(r),o=!1;break}1===e.breakOpportunity?xre(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?r.width+=e.width:(e=r.hyphens.enabled?wre(r,e,n):e,xre(r),_re(r,e)):_re(r,e)}return{lines:r.lines,reduced:o}}function Ere(e,t){const n=fre({string:e.text,separator:/(\s|-|\u2010)/,measureText:t}),r=vre(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){xre(r),o=!1;break}1===e.breakOpportunity?xre(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?xre(r):e.width>r.maxWidth?Sre(r,e,t):(xre(r),_re(r,e)):_re(r,e)}return{lines:r.lines,reduced:o}}function kre(e){return{"break-all":Cre,"break-word":Ere}[e.wordBreak]}function Rre(e){return t=>{const n=t.node;if(function(e){return"text"===e.type&&!e._lineBreak}(n)){const r=kre(n);if(!r)return;const o=e(n);if(o.width>n.maxWidth||ure(n.text)){const i=(bre(n)-o.height)/2,a=r(n,function(e,t){return n=>t({text:n,fontSize:e.fontSize,fontFamily:e.fontFamily})}(n,e));t.node=function(e,t,n,r){const o={type:"container",children:[]};void 0!==t.id&&(o.id=t.id);let i=0;return e.lines.forEach(((a,s)=>{const l=M2({},t);l.text=a,l._lineBreak=!0,i+=n,e.reduced&&s===e.lines.length-1?l.text+=hre:delete l.maxWidth,l.dy=isNaN(l.dy)?i:l.dy+i,i+=r,i+=n,o.children.push(l)})),o}(a,n,i,o.height)}}}}function Mre(e,t){const n=e["font-family"]||e.fontFamily,r=e["font-size"]||e.fontSize,o="string"==typeof e.text?e.text:"".concat(e.text),{maxWidth:i}=e;if(void 0===i)return o;let a=t({text:o,fontSize:r,fontFamily:n}).width;if(a<=i)return o;let s=0,l=o.length-1;for(;s<=l;){let e=Math.floor((s+l)/2);a=t({text:o.substr(0,e)+hre,fontSize:r,fontFamily:n}).width,a<=i?s=e+1:l=e-1}return o.substr(0,l)+hre}function Are(e){const t=e.baseline||e["dominant-baseline"];let n=0;const r=parseInt(e.fontSize||e["font-size"],10)||0;switch(t){case"hanging":n=.75*r;break;case"text-before-edge":n=.85*r;break;case"middle":n=.25*r;break;case"central":n=.35*r;break;case"mathemetical":n=r/2;break;case"text-after-edge":case"ideographic":n=.2*-r;break;default:n=0}return n}const Lre={},Ire={},Pre={fontSize:void 0,fontFamily:void 0};let Tre;function Dre(e,t){return!e&&!t||e===t}function Ore(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;const i="".concat(t," ").concat(n," ").concat(r," ").concat(o);return"number"!=typeof Ire[i]&&(Tre=Tre||document.createElement("canvas").getContext("2d"),function(e){let{fontWeight:t,fontSize:n,fontFamily:r}=e;Dre(Pre.fontWeight,t)&&Dre(Pre.fontSize,n)&&Dre(Pre.fontFamily,r)||(Tre.font=[t,n,r].filter((e=>!!e)).join(" "),Pre.fontWeight=t,Pre.fontSize=n,Pre.fontFamily=r)}({fontWeight:n,fontSize:r,fontFamily:o}),Ire[i]=Tre.measureText(t).width),Ire[i]}function zre(e){return"number"!=typeof Lre[e]&&(Lre[e]=function(e){if(gre(e)){const t=parseFloat(e);return t+4*Math.ceil((t+1e-12)/24)}return 16}(e)),Lre[e]}function Nre(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;return{width:Ore({text:t,fontWeight:n,fontSize:r,fontFamily:o}),height:zre(r)}}function qre(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nre;const n=e["font-size"]||e.fontSize,r=e["font-family"]||e.fontFamily,o=t({text:e.text,fontFamily:r,fontSize:n}),i=Math.min(e.maxWidth||o.width,o.width),a=e.x||0,s=e.y||0,l=e.dx||0,u={x:0,y:s+((e.dy||0)+Are(e))-.75*o.height,width:i,height:o.height},c=e["text-anchor"]||e.anchor;return u.x="middle"===c?a+l-i/2:"end"===c?a+l-i:a+l,u}function jre(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nre;const n=kre(e),r=e["font-size"]||e.fontSize,o=e["font-family"]||e.fontFamily,i=t({text:e.text,fontFamily:o,fontSize:r});if(n&&(i.width>e.maxWidth||ure(e.text))){const i=n(e,(e=>t({text:e,fontFamily:o,fontSize:r}))),a=M2({},e);let s=0,l="";for(let e=0,n=i.lines.length;e<n;e++){let a=i.lines[e];a+=e===n-1&&i.reduced?hre:"";const u=t({text:a,fontSize:r,fontFamily:o}).width;u>=s&&(s=u,l=a)}a.text=l;const u=qre(a,t);return u.height=bre(e)*i.lines.length,u}return qre(e,t)}function Fre(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function Bre(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:"start",baseline:"alphabetical",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(e.width<n.fontSize)return!1;const i=Math.max(0,e.width-o.width);return r.x=e.x+n.align*i,r.y=e.y+o.height/1.2,r}function $re(e){let{cx:t,cy:n,r:r}=e;return{type:"circle",bounds:{cx:t,cy:n,r:r}}}function Wre(e){return e.desc&&e.desc.slice?function(e){let{start:t,end:n,innerRadius:r,outerRadius:o,offset:i}=e;if(Math.abs(t+2*Math.PI-n)>1e-12)return{type:null,bounds:null};let a=0!==r?r:o;return $re({cx:i.x,cy:i.y,r:a})}(e.desc.slice):"circle"===e.type?$re(e.attrs):"rect"===e.type?{type:"rect",bounds:e.bounds}:{type:null,bounds:null}}var Hre={bar:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Une;const l=M2({fontSize:12,fontFamily:"Arial",align:.5,justify:0,fill:"#333"},a.label);l.fontSize=parseInt(l.fontSize,10);const u=t.labels.map((e=>M2({},l,t,e))),c=t.labels.map((e=>e.placements.map((n=>M2({},l,t,e,n))))),{fitsHorizontally:d,hasHorizontalDirection:p,targetNodes:f}=function(e){let{nodes:t,rect:n,chart:r,labelSettings:o,placementSettings:i,settings:a,renderer:s}=e;const l={},u=[];let c,d,p,f,h,m,g,b=!0,y=!1;for(let e=0;e<t.length;e++){if(d=t[e],f=d.localBounds,!V9(f,n))continue;let v=zne(d,r);c={node:d,texts:[],measurements:[],labelSettings:[],placementSettings:[]};for(let t=0;t<o.length;t++)m=o[t],p="function"==typeof m.label?m.label(v,e):void 0,Nne(p)&&(g="function"==typeof a.direction?a.direction(v,e):a.direction||"up",y=y||"left"===g||"right"===g,l.fontFamily=m.fontFamily,l.fontSize="".concat(m.fontSize,"px"),l.text=p,h=s.measureText(l),c.measurements.push(h),c.texts.push(p),c.labelSettings.push(m),c.placementSettings.push(i[t]),c.direction=g,b=b&&h.width<=f.width-2*One);u.push(c)}return{targetNodes:u,fitsHorizontally:b,hasHorizontalDirection:y}}({nodes:r,chart:n,renderer:i,settings:t,rect:o,labelSettings:u,placementSettings:c}),h=function(e){let{orientation:t="auto",defaultOrientation:n="h"}=e;switch(t.toLocaleLowerCase()){case"vertical":return"v";case"horizontal":return"h";default:return n}}({orientation:t.orientation,defaultOrientation:p?"h":"v"}),m="h"===h?"y":"x",g="h"===h?"height":"width";return f.sort(((e,t)=>e.node.localBounds[m]+e.node.localBounds[g]-(t.node.localBounds[m]+t.node.localBounds[g]))),s({chart:n,targetNodes:f,stngs:t,rect:o,fitsHorizontally:d,collectiveOrientation:h})},slice:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ore,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nre;const u=M2({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,position:"into"},a.label);u.fontSize=parseInt(u.fontSize,10);const c=t.labels.map((e=>M2({},u,t,e))),d=t.labels.map((e=>e.placements.map((n=>M2({},u,t,e,n))))),p=[],f={insideLabelBounds:[]};r=function(e){const t=[],n=[],r=[],o=[];for(let i=0;i<e.length;++i){const{start:a,end:s}=e[i].desc.slice,l=Yne((a+s)/2);switch(Math.floor(l/(Math.PI/2))){case 0:t.push(e[i]);break;case 1:n.push(e[i]);break;case 2:r.push(e[i]);break;case 3:o.push(e[i])}}const i=(e,t)=>Yne((e.desc.slice.start+e.desc.slice.end)/2)-Yne((t.desc.slice.start+t.desc.slice.end)/2),a=(e,t)=>i(t,e);return t.sort(a),n.sort(i),r.sort(a),o.sort(i),t.concat(n,o,r)}(r);const h={};for(let e=0,t=r.length;e<t;e++){const t=r[e],a=tre(t,n);for(let n=0;n<c.length;n++){const r=c[n],u="function"==typeof r.label?r.label(a,e):"";if(!u)continue;const m="function"==typeof r.direction?r.direction(a,e):r.direction||"horizontal",g="function"==typeof r.linkData?r.linkData(a,e):void 0,b=ire(u,r,i),y=s({context:h,direction:m,lblStngs:r,measured:b,node:t,placementSettings:d[n],rect:o,store:f}),v=y.bounds,x=y.placement;if(v&&x){if("outside"===x.position&&"rotate"!==m){ere({context:h,node:t,bounds:v});if(!P9(Xne(v),o))continue}const n="function"==typeof x.fill?x.fill(a,e):x.fill,i=l(v,u,{fill:n,fontSize:r.fontSize,fontFamily:r.fontFamily,textMetrics:b});i&&(void 0!==g&&(i.data=g),p.push(i),v.line&&(v.line.stroke=n,p.push(v.line)))}}}return p},rows:function(e){let{settings:t,chart:n,nodes:r,renderer:o,style:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bre;const s=M2({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,align:.5,justify:.5},i.label);s.fontSize=parseInt(s.fontSize,10);const l=M2({},s,t),u=t.labels.map((e=>M2({},l,e))),c={},d=[];for(let e=0,t=r.length;e<t;e++){let t=r[e],i=Fre(t,n),{type:s,bounds:p}=Wre(t);if(!p)continue;let f,h=0,m=[],g=[],b="circle"===s?2*p.r*.9:p.height;for(h+=l.padding,f=0;f<u.length;f++){let t=u[f],n="function"==typeof t.label?t.label(i,e):"";c.fontFamily=t.fontFamily,c.fontSize="".concat(t.fontSize,"px"),c.text=n;let r=o.measureText(c);if(h+=r.height+t.padding,h>b)break;g.push(n),m.push(r)}const y=f,v=Math.max(0,b-h);let x;for(x="circle"===s?p.cy-.9*p.r:p.y,x+=l.justify*v+l.padding,f=0;f<y;f++){let t,n=u[f];if("circle"===s){let e=Math.max(Math.abs(x-p.cy),Math.abs(x+m[f].height-p.cy)),n=Math.sqrt(p.r*p.r-e*e);t={x:p.cx-n+l.padding,y:x,width:2*n-2*l.padding,height:m[f].height}}else t={x:p.x+l.padding,y:x,width:p.width-2*l.padding,height:m[f].height};x+=m[f].height+l.padding;let r="function"==typeof n.fill?n.fill(i,e):n.fill;const c="function"==typeof n.linkData?n.linkData(i,e):void 0;let h=a(t,g[f],{fill:r,align:n.align,fontSize:n.fontSize,fontFamily:n.fontFamily,textMetrics:m[f]});if(h){if(h.text&&h.text!==hre){const e=Mre(h,o.measureText);if(hre===e)continue;h.ellipsed=e}void 0!==c&&(h.data=c),d.push(h)}}}return d}};const Gre={require:["chart","renderer","settings"],defaultSettings:{settings:{},style:{label:"$label"}},render(){const e=this.settings.settings,t=[];return(e.sources||[]).forEach((e=>{e.strategy&&Hre[e.strategy.type]&&e.component&&t.push(...function(e,t){let{chart:n,source:r,rect:o,renderer:i,style:a}=e;if(!n.component(r.component))return[];const s=n.findShapes(r.selector).filter((e=>e.key===r.component));return t({chart:n,settings:r.strategy.settings,nodes:s,rect:{x:0,y:0,width:o.width,height:o.height},renderer:i,style:a})}({chart:this.chart,rect:this.rect,renderer:this.renderer,source:e,style:this.style},Hre[e.strategy.type]))})),t}};const Vre={layout:{size:1,direction:"ltr",scrollOffset:0},item:{show:!0,label:{fontSize:"12px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:136,lineHeight:1.2},shape:{type:"square",size:12}},title:{show:!0,text:void 0,anchor:"start",fontSize:"16px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:156,lineHeight:1.25}};function Ure(e){let{x:t=0,y:n,item:r,globalMetrics:o,createSymbol:i,direction:a="ltr"}=e,s=r.label.displayObject,l=r.label.bounds,u=r.symbol.meta;const c="rtl"===a;let d={x:c?t+o.maxLabelBounds.width:t+o.maxSymbolSize+o.spacing,y:n,width:o.maxLabelBounds.width,height:Math.max(o.maxSymbolSize,o.maxLabelBounds.height)},p=function(e,t,n){const r=Math.max(0,e.width-t),o=Math.max(0,e.height-t);return{x:e.x+t/2+n.align*r,y:e.y+t/2+n.justify*o}}({x:c?t+o.maxLabelBounds.width+o.spacing:t,y:n,width:o.maxSymbolSize,height:d.height},u.size,{align:void 0===u.align?.5:u.align,justify:void 0===u.justify?.5:u.justify});const f=i(M2({},u,p));return delete f.collider,s.anchor=c?"end":"start",function(e,t,n){const r=n.textMetrics;if(e.height<r.height)return!1;const o=Math.max(0,e.width-r.width);t.baseline="text-before-edge";const i=Math.max(0,e.height-r.height);t.x=e.x+n.align*o,t.y=e.y+n.justify*i+.175*parseInt(t.fontSize,10)}(d,s,{textMetrics:l,fontSize:parseInt(s.fontSize,10),align:0,justify:.5}),{item:{type:"container",data:r.label.displayObject.data,children:[f,s],collider:{type:"rect",x:t,y:n,width:o.maxItemBounds.width,height:o.maxItemBounds.height}},metrics:d}}function Yre(e,t){const n=e.items.length,r=Math.ceil(n/t),o="horizontal"===e.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[o]*r+(r-1)*e.layout.margin[i]}function Kre(e,t){let n,r,o,i,{onScroll:a=()=>{}}=t,s=null,l=0;const u={itemize:t=>{n=function(e,t){let n,r,{resolved:o,dock:i}=e,a=[],s=o.items.items,l=o.symbols.items,u=o.labels.items,c=0,d=0,p=0;for(let e=0;e<s.length;e++){if(!1===s[e].show)continue;const o=void 0!==u[e].text?u[e].text:u[e].data.label||"";n=M2({},u[e],{type:"text",fontSize:"".concat(parseInt(u[e].fontSize,10),"px"),text:o,title:o}),r={symbol:{meta:l[e]},label:{displayObject:n,bounds:t.textBounds(n)}},a.push(r),c=Math.max(l[e].size,c),d=Math.max(r.label.bounds.width,d),p=Math.max(r.label.bounds.height,p)}return{items:a,globalMetrics:{spacing:8,maxSymbolSize:c,maxItemBounds:{height:Math.max(c,p),width:c+8+d},maxLabelBounds:{width:d,height:p}},layout:{margin:{vertical:void 0!==o.layout.item.vertical?o.layout.item.vertical:4,horizontal:void 0!==o.layout.item.horizontal?o.layout.item.horizontal:4},mode:o.layout.item.mode,size:o.layout.item.size,orientation:"top"===i||"bottom"===i?"horizontal":"vertical",direction:o.layout.item.direction,scrollOffset:o.layout.item.scrollOffset}}}(t,e.renderer),s=isNaN(n.layout.scrollOffset)?s:n.layout.scrollOffset},getItemsToRender:t=>{o=t.viewRect,l=u.getContentOverflow(o);const a=u.extent();s=Math.max(0,Math.min(s,l)),i=M2({},o);const c="horizontal"===u.orientation()?"x":"y";return i[c]-=s,i["x"===c?"width":"height"]=a,function(e,t,n){let{viewRect:r}=e,{itemized:o,create:i=Ure,parallels:a,createSymbol:s}=n;const l=o.layout.direction,u=o.globalMetrics,c=o.items,d="horizontal"===o.layout.orientation;let p=0;const f=[],h=u.maxItemBounds.height,m=u.maxItemBounds.width,g=o.layout.margin.vertical+h,b=o.layout.margin.horizontal+m;let y=t.x,v=t.y,x=r.x-t.x;for(let e=0;e<c.length;e++){let n=i({y:v,x:"rtl"===l?r.x+x+r.width-m-(y-t.x):y,item:c[e],globalMetrics:u,direction:l,createSymbol:s});if((d&&y>=r.x-m||!d&&v>=r.y-h)&&f.push(n.item),p++,p>=a?(p=0,d?(y+=b,v=t.y):(v+=g,y=t.x)):d?v+=g:y+=b,!d&&v>r.y+r.height)break;if(d&&y>r.x+r.width)break}return f}(t,i,{itemized:n,parallels:r,createSymbol:e.symbol})},parallelize:(e,t)=>(r=function(e,t,n){const r=n.items.length,o="horizontal"===n.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical",a=n.globalMetrics.maxItemBounds[o]*r+(r-1)*n.layout.margin[i];let s=Math.ceil(a/e);if(null!=t){const e="horizontal"===n.layout.orientation?"height":"width",r="width"===e?"horizontal":"vertical",o=n.layout.margin[r]||4,i=Math.floor((t+o)/(o+n.globalMetrics.maxItemBounds[e]));s=Math.min(s,i)}const l=isNaN(n.layout.size)?1:n.layout.size;return Math.max(1,Math.min(s,l))}(e,t,n),r),hasContentOverflow:()=>{const e="horizontal"===n.layout.orientation?"width":"height";return Yre(n,r)>o[e]},getContentOverflow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;const t="horizontal"===n.layout.orientation?"width":"height";return Math.max(0,Yre(n,r)-e[t])},getNextSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},getPrevSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},hasNext:()=>"horizontal"===u.orientation()?o.x+o.width<i.x+i.width:o.y+o.height<i.y+i.height,hasPrev:()=>"horizontal"===u.orientation()?i.x<o.x:i.y<o.y,next:()=>{u.scroll(-u.getNextSize())},prev:()=>{u.scroll(u.getPrevSize())},scroll:e=>{const t=Math.max(0,Math.min(l,s-e));t!==s&&(s=t,a())},offset:()=>s,orientation:()=>n.layout.orientation,direction:()=>n.layout.direction,extent:()=>Yre(n,r),spread:()=>function(e,t){const n=t,r="horizontal"===e.layout.orientation?"height":"width",o="width"===r?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[r]*n+(n-1)*e.layout.margin[o]}(n,r)};return u}function Xre(e){return Object.keys(e).filter((t=>e[t])).join(" ")}const Qre={up:"▲",right:"▶",down:"▼",left:"◀"};function Jre(e,t){let{size:n,isActive:r,direction:o,nav:i,attrs:a}=t,s={},l="";const u=a;i&&i.button&&("function"==typeof i.button.class?s=i.button.class({direction:o}):i.button.class&&(s=i.button.class),"function"==typeof i.button.content&&(l=i.button.content(e,{direction:o})),void 0!==i.button.tabIndex&&(u.tabindex=i.button.tabIndex));const c={width:"".concat(n,"px"),minWidth:"".concat(n,"px"),height:"".concat(n,"px")};return Object.keys(s).length||(c.border="0",c.background="none"),(!r||i&&i.disabled)&&(u.disabled="disabled"),e("button",M2({class:Xre(s),style:c},u),[l||e("span",{style:{pointerEvents:"none"}},[Qre[o]])])}function Zre(e){let t;const n={itemize:e=>{t=function(e){let{dock:t,navigation:n}=e;return{layout:{orientation:"top"===t||"bottom"===t?"vertical":"horizontal"},navigation:n}}(e)},render:r=>function(e,t,n,r){let{rect:o,itemRenderer:i}=t;if(!e||!e.renderArgs)return;e.size(o);const a=e.renderArgs[0],s="vertical"===n.layout.orientation,l="rtl"===i.direction(),u=i.hasNext(),c=i.hasPrev();if(!c&&!u)return void e.render([]);const d=s?["right","left"]:["down","up"];l&&s&&d.reverse();const p=[a("div",{style:{position:"relative",display:"flex","flex-direction":s?"column":"row","justify-content":"center",height:"100%",pointerEvents:"auto"},dir:l&&!s?"rtl":"ltr"},[Jre(a,{size:32,isActive:u,direction:d[0],attrs:{"data-action":"next","data-component-key":r.settings.key},nav:n.navigation}),Jre(a,{size:32,isActive:c,direction:d[1],attrs:{"data-action":"prev","data-component-key":r.settings.key},nav:n.navigation})])];e.render(p)}(n.renderer,r,t,e),extent:()=>32,spread:()=>64};return n}function eoe(e){let t;const n={itemize:n=>{t=function(e,t){let{resolved:n}=e;if(!1===n.title.item.show)return null;const r=M2({},n.title.item,{type:"text"});if("rtl"===n.layout.item.direction&&(r.anchor&&"start"!==r.anchor?"end"===r.anchor&&(r.anchor="start"):r.anchor="end"),void 0===n.title.settings.text){const e=t.scale.data().fields;r.text=e&&e[0]?e[0].title():""}return{displayObject:r,bounds:t.renderer.textBounds(r)}}(n,e)},render:e=>{!function(e,t,n){let{rect:r}=e;if(!t)return;const o=[];if(t.size(r),n){const e={start:0,end:r.width,middle:r.width/2};o.push(M2({},n.displayObject,{x:e[n.displayObject.anchor]||0,y:0,baseline:"text-before-edge",title:n.displayObject.text}))}t.render(o)}(e,n.renderer,t)},spread:()=>t?t.bounds.height:0,extent:()=>t?t.bounds.width:0};return n}function toe(e,t,n,r){let o,i,a,{itemRenderer:s,navigationRenderer:l,titleRenderer:u,isPreliminary:c=!1}=r,d=0;const p={x:t.spacing,y:t.spacing,width:e.width-2*t.spacing,height:e.height-2*t.spacing};if(o={x:p.x,y:p.y,width:p.width,height:u.spread()},"horizontal"===n){o={x:p.x,y:p.y,width:u.extent(),height:u.spread()};const e=p.width-o.width-(o.width?t.spacing:0),n=p.height;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0,f=s.spread(),h=r?l.spread():0;i={x:o.x+o.width+(o.width?t.spacing:0),y:p.y+Math.max(0,(h-f)/2),width:p.width-r-o.width-(r?t.spacing:0)-(o.width?t.spacing:0),height:n},a={x:i.x+i.width+(r?t.spacing:0),y:p.y,width:r,height:p.height},o.y=i.y;"rtl"===s.direction()&&(a.x=p.x,i.x=a.x+a.width+(a.width?t.spacing:0),o.x=i.x+i.width+(o.width?t.spacing:0)),d=Math.max(o.height,h,s.spread())}else{const e=p.height-o.height-(o.height?t.spacing:0),n=p.width;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0;a={x:p.x,y:p.y+p.height-r,width:p.width,height:r},i={x:p.x,y:o.y+o.height+(o.height?t.spacing:0),width:p.width,height:p.height-o.height-(o.height?t.spacing:0)-a.height-(a.height?t.spacing:0)},d=Math.max(u.extent(),r?l.spread():0,s.spread())}return i=M2({},e,{x:e.x+i.x,y:e.y+i.y,width:i.width,height:i.height}),a.x+=e.x,a.y+=e.y,o.x+=e.x,o.y+=e.y,{title:M2({},e,o),content:M2({},e,i),navigation:M2({},e,a),orientation:n,preferredSize:d}}function noe(e){e.state.resolved=function(e){const t=e.scale.domain();let n={items:[]};const r=e.settings.layout.dock;if("threshold-color"===e.scale.type){const o=e.scale.data().fields[0];let i=e=>String(e);e.settings.formatter?i=e.chart.formatter(e.settings.formatter):o&&(i=o.formatter());for(let e=0;e<t.length-1;e++){const r={value:t[e],label:"".concat(i(t[e])," - < ").concat(i(t[e+1]))};o&&(r.source={field:o.id()}),n.items.push(r)}"vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")&&n.items.reverse()}else{const r=e.scale.labels?e.scale.labels():null;n.items=t.map(((t,n)=>{const o=e.scale.datum?M2({},e.scale.datum(t)):{value:t};return o.value=t,e.scale.label?o.label=e.scale.label(t):r&&(o.label=r[n]),o}))}const o=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:M2(!0,{},Vre.title,e.style.title),settings:e.settings.settings.title}),i=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:Vre.layout,settings:e.settings.settings.layout}),a=e.resolver.resolve({data:n,defaults:M2(!0,{},Vre.item.label,e.style.item.label),settings:(e.settings.settings.item||{}).label}),s=M2(!0,{},(e.settings.settings.item||{}).shape);void 0===s.fill&&e.settings.scale&&(s.fill={scale:e.settings.scale});const l=e.resolver.resolve({data:n,defaults:M2(!0,{},Vre.item.shape,e.style.item.shape),settings:s}),u=e.resolver.resolve({data:n,defaults:M2(!0,{},{show:Vre.item.show}),settings:{show:(e.settings.settings.item||{}).show}});function c(e,n){let r=e.data.value,o=t[n+1];e.data.value=[r,o]}"threshold-color"===e.scale.type&&("vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")?(u.items.reverse().forEach(c),u.items.reverse()):u.items.forEach(c));return{title:o,labels:a,symbols:l,items:u,layout:i}}(e),e.titleRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.itemRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.navigationRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center",navigation:e.settings.settings.navigation}),e.state.display={spacing:8}}function roe(e){const{rect:t,settings:n,state:r,itemRenderer:o,navigationRenderer:i,titleRenderer:a}=e,s=n.layout.dock,l="top"===s||"bottom"===s?"horizontal":"vertical",u=toe(t,r.display,l,{itemRenderer:o,navigationRenderer:i,titleRenderer:a});e.renderer.size(u.content);let c=o.getItemsToRender({viewRect:M2({},u.content,{x:0,y:0})});return i.render({rect:u.navigation,itemRenderer:o}),a.render({rect:u.title}),e.state.views={layout:u},c}const ooe={require:["chart","settings","renderer","update","resolver","registries","symbol"],defaultSettings:{settings:{},style:{item:{label:"$label",shape:"$shape"},title:"$title"}},mounted(e){e&&e.parentNode&&(this.navigationRenderer.renderer.appendTo(e.parentNode),this.titleRenderer.renderer.appendTo(e.parentNode),e.parentNode.insertBefore(this.navigationRenderer.renderer.element(),e),e.parentNode.insertBefore(this.titleRenderer.renderer.element(),e)),this.navigationRenderer.render({rect:this.state.views.layout.navigation,itemRenderer:this.itemRenderer}),this.titleRenderer.render({rect:this.state.views.layout.title})},beforeUnmount(){this.navigationRenderer.renderer.clear(),this.titleRenderer.renderer.clear()},on:{panstart(){if(this.state.interaction.started)return;this.itemRenderer.getContentOverflow()&&(this.state.interaction.started=!0,this.state.interaction.delta=0)},panmove(e){if(!this.state.interaction.started)return;const t="horizontal"===this.itemRenderer.orientation()?("rtl"===this.itemRenderer.direction()?-1:1)*e.deltaX:e.deltaY;this.itemRenderer.scroll(t-this.state.interaction.delta),this.state.interaction.delta=t},panend(){this.state.interaction.started=!1},scroll(e){this.itemRenderer.scroll(-e)},next(){this.itemRenderer.next()},prev(){this.itemRenderer.prev()}},created(){this.state={interaction:{}},this.onScroll=()=>{const e=roe(this);this.update(e)},this.itemRenderer=Kre(this,{onScroll:this.onScroll}),this.navigationRenderer=Zre(this),this.titleRenderer=eoe(this),this.navigationRenderer.renderer=this.registries.renderer("dom")(),this.titleRenderer.renderer=this.registries.renderer(this.settings.renderer)(),noe(this)},preferredSize(e){return function(e,t){let n=0;const r=e.settings.layout.dock||"center",o="top"===r||"bottom"===r?"horizontal":"vertical",i=e.state.display,a=toe(t.inner,i,o,{itemRenderer:e.itemRenderer,navigationRenderer:e.navigationRenderer,titleRenderer:e.titleRenderer,isPreliminary:!0});return n+=i.spacing,n+=a.preferredSize,n+=i.spacing,n}(this,e)},beforeUpdate(){noe(this)},render(){return roe(this)},beforeDestroy(){this.navigationRenderer.renderer.destroy(),this.titleRenderer.renderer.destroy()},additionalElements(){return[this.titleRenderer.renderer.element(),this.navigationRenderer.renderer.element()]},_DO_NOT_USE_getInfo(){return{offset:this.itemRenderer.offset()}}};function ioe(e,t){let n=0;const r=e.state.isVertical?"justify":"align",o=e.state.isVertical?"y":"x",i=e.state.isVertical?"height":"width",a=e.state.isVertical?"requiredHeight":"requiredWidth";n=e.state.rect[i]-e.state.legend.length()-e.state.title[a](),n*=Math.min(1,Math.max(e.stgns[r],0)),t[o]+=n}function aoe(e,t,n){const r=n[e];return"object"==typeof r?-1!==r.valid.indexOf(t)?t:r.default:n.default}function soe(e){return aoe(e.layout.dock,e.settings.title.anchor,{left:{valid:["top"],default:"top"},right:{valid:["top"],default:"top"},top:{valid:["left","right"],default:"left"},bottom:{valid:["left","right"],default:"left"},default:"top"})}function loe(e,t){const n={x:0,y:0,width:0,height:0},r=e.stgns.padding;return n.x=r.left,n.y=r.top,n.width=t.width-r.left-r.right,n.height=t.height-r.top-r.bottom,n}function uoe(e){const t="top"!==e.settings.layout.dock&&"bottom"!==e.settings.layout.dock,n=e.stgns.title,r=e.chart.scale(e.stgns.fill),o=e.chart.scale(e.stgns.major),i=function(e,t){const n=t.domain();let r=n,o=e.stgns.tick.label;!o&&e.formatter?o=e.formatter:!o&&t.data().fields&&(o=t.data().fields[0].formatter()),"function"==typeof o&&(r=n.map(o).map(String));const i=n.map(((n,o)=>{const i=r[o];return{value:n,label:i,pos:t.norm(parseFloat(n,10)),textMetrics:e.renderer.measureText({text:i,fontSize:e.stgns.tick.fontSize,fontFamily:e.stgns.tick.fontFamily})}}));return i}(e,o),a=function(e){return aoe(e.layout.dock,e.settings.tick.anchor,{left:{valid:["left","right"],default:"left"},right:{valid:["left","right"],default:"right"},top:{valid:["top","bottom"],default:"top"},bottom:{valid:["top","bottom"],default:"bottom"},default:"right"})}(e.settings);if(void 0===n.text){const e=o.data().fields;n.text=e&&e[0]?e[0].title():""}const s=e.renderer.measureText({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily}),l=e.renderer.textBounds({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily,maxLines:n.maxLines,maxWidth:n.maxLengthPx,wordBreak:n.wordBreak,hyphens:n.hyphens,lineHeight:n.lineHeight}),u={isVertical:t,nodes:[],title:{anchor:soe(e.settings),textMetrics:s,textBounds:l,requiredWidth:()=>{if(!n.show)return 0;let e=l.width,r=n.maxLengthPx;return t||(e+=n.padding,r+=n.padding),Math.min(e,r,u.rect.width)},requiredHeight:()=>{if(!n.show)return 0;let e=l.height;return t&&(e+=n.padding),Math.min(e,u.rect.height)}},ticks:{values:i,anchor:a,length:Math.min(Math.max(...i.map((e=>e.textMetrics.width))),e.stgns.tick.maxLengthPx),requiredHeight:()=>"top"===a?Math.max(...u.ticks.values.map((e=>e.textMetrics.height)))+e.stgns.tick.padding:0,height:Math.max(...i.map((e=>e.textMetrics.height)))},legend:{fillScale:r,majorScale:o,length:()=>{const n=t?"height":"width",r=t?"requiredHeight":"requiredWidth",o=Math.min(u.rect[n],u.rect[n]*e.stgns.length)-u.title[r]();return Math.max(0,Math.min(o,e.stgns.maxLengthPx))}}};return u}const coe={require:["chart","settings","renderer"],defaultSettings:{layout:{displayOrder:0,dock:"right"},settings:{size:15,length:.5,maxLengthPx:250,align:.5,justify:0,padding:{left:5,right:5,top:5,bottom:5},tick:{label:null,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,anchor:null,padding:5},title:{show:!0,text:void 0,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,padding:5,maxLines:2,wordBreak:"none",lineHeight:1.2,hyphens:"auto",anchor:null}}},preferredSize(e){const t=this.state;t.rect=loe(this,e.inner);let n=this.stgns.size;const r=t.isVertical?this.stgns.padding.left+this.stgns.padding.right:this.stgns.padding.top+this.stgns.padding.bottom;n+=r;const o=Math.max(e.inner.width,e.inner.height);if("left"===t.ticks.anchor||"right"===t.ticks.anchor){const e=t.ticks.values.reduce(((e,t)=>e+t.textMetrics.height),0);if(e>this.state.legend.length())return o;n+=t.ticks.length}else{if(t.ticks.length>this.state.legend.length())return o;n+=Math.max(...t.ticks.values.map((e=>e.textMetrics.height)))}return n+=this.stgns.tick.padding,this.stgns.title.show&&(n="left"===t.title.anchor||"right"===t.title.anchor?Math.max(t.title.textBounds.height+r,n):Math.max(n,t.title.requiredWidth()+r)),this.state.preferredSize=n,n},created(){this.stgns=this.settings.settings,this.state=uoe(this)},beforeUpdate(e){this.stgns=e.settings.settings,this.state=uoe(this)},beforeRender(e){if(this.state.nodes=[],this.state.rect=loe(this,e.size),this.stgns.title.show){const e=function(e){const t=e.state,n=e.stgns,r="left"===t.ticks.anchor,o="top"===t.ticks.anchor;let i=t.rect.x,a=t.rect.y,s="start";"left"===t.title.anchor?(i+=t.title.requiredWidth()-n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0,s="end"):"right"===t.title.anchor?(i+=t.legend.length(),i+=n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0):"top"===t.title.anchor&&(i+=r?t.rect.width:0,a+=t.title.textMetrics.height,s=r?"end":"start");const l={tag:"legend-title",type:"text",x:i,y:Math.min(a,t.rect.y+t.rect.height),text:n.title.text,fill:n.title.fill,fontSize:n.title.fontSize,fontFamily:n.title.fontFamily,maxWidth:n.title.maxLengthPx,maxLines:n.title.maxLines,wordBreak:n.title.wordBreak,hyphens:n.title.hyphens,lineHeight:n.title.lineHeight,anchor:s,title:n.title.text};return ioe(e,l),l}(this);this.state.nodes.push(e)}const t=function(e){const t=e.state.legend.fillScale,n=e.state.legend.majorScale,r=t.domain().map((e=>({type:"stop",color:t(e),offset:Math.min(1,Math.max(0,n.norm(e)))})));return r.sort(((e,t)=>e.offset-t.offset))}(this),n=function(e,t){const n=e.state,r=e.stgns,o=n.rect;let i=o.x,a=o.y,s=n.isVertical?r.size:n.legend.length(),l=n.isVertical?n.legend.length():r.size;"left"===n.ticks.anchor?i+=n.rect.width-r.size:"top"===n.ticks.anchor&&(a+=n.rect.height-r.size),"top"===n.title.anchor?a+=n.title.requiredHeight():"left"===n.title.anchor&&(i+=n.title.requiredWidth());const u={type:"rect",x:i,y:a,width:s,height:l,fill:{type:"gradient",stops:t,degree:n.isVertical?90:180}};return ioe(e,u),u}(this,t),r=function(e,t){const n=e.state,r=e.stgns;let o="start";const i={type:"rect",x:t.x,y:t.y,width:n.isVertical?0:t.width,height:n.isVertical?t.height:0,fill:"transparent"},a=n.ticks.values.map((a=>{let s=0,l=0,u=0,c="alphabetical";return n.isVertical?(l=t.y+t.height*a.pos,c=0===a.pos?"text-before-edge":"text-after-edge"):s=t.x+t.width*a.pos,"right"===n.ticks.anchor?(s=t.x+r.size+r.tick.padding,i.x=t.x+t.width):"left"===n.ticks.anchor?(s=t.x-r.tick.padding,o="end"):"top"===n.ticks.anchor?(l=t.y-r.tick.padding,u-=.25*a.textMetrics.height,o=0===a.pos?"start":"end"):"bottom"===n.ticks.anchor&&(l=t.y+t.height+r.tick.padding,u=.8*a.textMetrics.height,o=0===a.pos?"start":"end",i.y=t.y+t.height),{type:"text",x:s,y:l,dx:0,dy:u,text:a.label,fontSize:r.tick.fontSize,fontFamily:r.tick.fontFamily,fill:r.tick.fill,maxWidth:n.isVertical?r.tick.maxLengthPx:Math.min(r.tick.maxLengthPx,n.legend.length()/2),anchor:o,textBoundsFn:e.renderer.textBounds,title:a.label,baseline:c}}));return{type:"container",id:"legend-seq-ticks",children:[...a,i]}}(this,n),o={id:"legend-seq-target",type:"container",children:[n,r]};this.state.nodes.push(o)},render(){return this.state.nodes}};const doe={coordinates:{minor:.5,major:.5,layerId:0,defined:!0},layers:{curve:"linear",show:!0,line:{stroke:"#ccc",strokeWidth:1,strokeLinejoin:"miter",strokeDasharray:void 0,opacity:1,show:!0,showMinor0:!0},area:{fill:"#ccc",opacity:.8,show:!0}}};function poe(e,t){let{generatorType:n,item:r,data:o,major:i,minor:a,layerObj:s,stngs:l}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const c={type:"path",points:e,generatorType:n,major:i,minor:a,layerObj:s,stngs:l,opacity:r.opacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeLinejoin:r.strokeLinejoin,fill:u||r.fill,data:o};return r.strokeDasharray&&(c.strokeDasharray=r.strokeDasharray),c}function foe(e){const{metaLayers:t,coordinates:n,layers:r,lines:o,areas:i}=function(e){let{data:t,stngs:n,rect:r,resolver:o,style:i,domain:a}=e;const{width:s,height:l}=r,u=o.resolve({data:t,defaults:doe.coordinates,settings:n.coordinates||{},scaled:{major:"vertical"===n.orientation?l:s,minor:"vertical"===n.orientation?s:l}}),c=!n.connect&&a.length>2&&("function"==typeof n.coordinates.layerId||"object"==typeof n.coordinates.layerId),d={};let p=0;for(let e=0;e<u.items.length;e++){let t=u.items[e],n=t.layerId;if(c){const e=d[n]?d[n].items[d[n].items.length-1]:null,r=e?a.indexOf(e.data.major?e.data.major.value:e.data.value):null;e&&a.indexOf(t.data.major?t.data.major.value:t.data.value)-1!==r&&d[n].items.push({dummy:!0})}d[n]=d[n]||{order:p++,id:n,items:[],dataItems:[],consumableData:{}},d[n].dataItems.push(t.data),d[n].items.push(t)}const f=Object.keys(d).map((e=>(d[e].consumableData=P2({points:d[e].dataItems},d[e].dataItems[0]),d[e]))),h={items:f.map((e=>e.consumableData))},m=n.layers||{};return{coordinates:u,metaLayers:f,layers:o.resolve({data:h,defaults:{curve:doe.layers.curve,show:doe.layers.show},settings:{curve:m.curve,show:m.show}}),lines:o.resolve({data:h,defaults:M2({},doe.layers.line,i.line),settings:m.line}),areas:o.resolve({data:h,defaults:M2({},doe.layers.area,i.area),settings:m.area})}}(e),a=[];return t.forEach(((t,s)=>{const l=r.items[s];if(!1===l.show)return;l.datum=l.data,l.data=[],l.id=t.id;const u=[],c=[];let d,p;for(let r=0;r<t.items.length;r++){if(d=t.items[r],p=d.data,!d.dummy){if(isNaN(d.major))continue;e.missingMinor0&&(d.minor0=n.settings.minor.scale?n.settings.minor.scale(p.minor0?p.minor0.value:0):0),isNaN(d.minor)||u.push(d.minor),l.data.push(d.data)}c.push(d)}const f=u.sort(((e,t)=>e-t))[Math.floor((u.length-1)/2)];a.push({layerObj:l,lineObj:o.items[s],areaObj:i.items[s],median:f,points:c,consumableData:t.consumableData})})),a}const hoe={require:["chart","resolver"],defaultSettings:{style:{area:"$shape",line:"$shape-outline"}},created(){},render(e){let{data:t}=e;const{width:n,height:r}=this.rect;this.stngs=this.settings.settings||{};const o=!this.stngs.coordinates||void 0===this.stngs.coordinates.minor0,i=foe({data:t,stngs:this.stngs,rect:this.rect,resolver:this.resolver,style:this.style,missingMinor0:o,domain:this.stngs.coordinates&&this.stngs.coordinates.major&&this.stngs.coordinates.major.scale?this.chart.scale(this.stngs.coordinates.major.scale).domain():[]});if(this.stngs.layers&&this.stngs.layers.sort){const e=i.map((e=>({id:e.layerObj.id,data:e.layerObj.data}))).sort(this.stngs.layers.sort).map((e=>e.id));i.sort(((t,n)=>e.indexOf(t.layerObj.id)-e.indexOf(n.layerObj.id)))}else i.sort(((e,t)=>e.median-t.median));return function(e,t){let{width:n,height:r,missingMinor0:o,stngs:i}=t;const a=[],s=i.layers||{};return e.forEach((e=>{const{lineObj:t,layerObj:l,areaObj:u,points:c}=e;let d={size:r,p:"y"},p={size:n,p:"x"};if("vertical"===i.orientation){const e=M2(!0,{},p);p=M2(!0,{},d),d=M2(!0,{},e)}s.area&&!1!==u.show&&a.push(poe(c,{data:e.consumableData,item:u,generatorType:"area",major:p,minor:d,layerObj:l,stngs:i})),t&&!1!==t.show&&(a.push(poe(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"1"),major:p,minor:d,layerObj:l,stngs:i},"none")),!o&&s.area&&!1!==u.show&&!1!==t.showMinor0&&a.push(poe(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"0"),major:p,minor:d,layerObj:l,stngs:i},"none")))})),a}(i,{width:n,height:r,missingMinor0:o,stngs:this.stngs})}};function moe(e,t){let n,r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"object"==typeof t.center?(n=t.center.x,r=t.center.y):(n=t.clientX,r=t.clientY);const i=n-e.state.boundingRect.left,a=r-e.state.boundingRect.top;return{x:o?Math.max(0,Math.min(i,e.rect.width)):i,y:o?Math.max(0,Math.min(a,e.rect.height)):a}}function goe(e,t){return{x:t.x+e.rect.x,y:t.y+e.rect.y}}function boe(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x,t.x)-n,height:Math.max(e.y,t.y)-r}}const yoe={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:99},settings:{brush:{components:[]}},style:{area:"$selection-area-target"}},on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaCancel(){this.cancel()}},created(){this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1}},preferredSize:()=>0,render(){},start(e){this.state.boundingRect=this.renderer.element().getBoundingClientRect();const t=moe(this,e,!1);Y9({x:0,y:0,width:this.rect.width,height:this.rect.height},t)&&(this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts,data:e.data,action:e.action||"set"})))}(this.settings),this.state.start=moe(this,e),this.state.active=!0)},move(e){var t;this.state.active&&(this.state.end=moe(this,e),function(e){if(e.state.active){const t=goe(e,e.state.start),n=goe(e,e.state.end),r=e.chart.shapesAt(boe(t,n),{components:e.state.brushConfig});e.chart.brushFromShapes(r,{components:e.state.brushConfig})}}(this),(t=this).renderer.render([M2({type:"rect"},boe(t.state.start,t.state.end),t.style.area)]))},end(){this.state.active&&(this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{Array.isArray(e.contexts)&&e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))}};function voe(e,t,n){let{renderer:r,style:o,props:i,h:a}=n;const s=function(e,t){return{tooltip:"function"==typeof e.tooltipClass?e.tooltipClass({dock:t.dock}):e.tooltipClass,content:"function"==typeof e.contentClass?e.contentClass({dock:t.dock}):e.contentClass,arrow:"function"==typeof e.arrowClass?e.arrowClass({dock:t.dock}):e.arrowClass}}(i,t),l=function(e,t,n,r){return r.content({h:e,style:n,data:t})}(a,e,o,i),u=a("div",{dir:i.direction,class:Xre(M2({"pic-tooltip":!0},s.tooltip)),style:M2({position:"relative",display:"inline-block"},t.computedTooltipStyle)},a("div",{style:o.content,class:Xre(M2({"pic-tooltip-content":!0},s.content))},l),a("div",{class:Xre(M2({"pic-tooltip-arrow":!0},s.arrow)),style:M2({},o.arrow,o["arrow-".concat(t.dock)],t.computedArrowStyle)}));return r.render(u),r.element().children[0]}function xoe(e){let{defaultDuration:t,defaultDelay:n}=e,r=null,o=null,i=!1;const a=function(){const e=function(){},t={pending:[],debounced:[],active:[],cancelled:[],rejected:[],fulfilled:[]};let n;return e.set=e=>{n=e,t[n].forEach((t=>t(e)))},e.on=(e,n)=>{Array.isArray(e)?e.forEach((e=>t[e].push(n))):t[e].push(n)},e.destroy=()=>{Object.keys(t).forEach((e=>{t[e].length=0}))},e}(),s=function(){},l=()=>{r=null,o=null,i=!1,a.set("fulfilled")};return s.invoke=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;r&&(clearTimeout(r),a.set("debounced")),a.set("pending"),r=setTimeout((()=>{e(),i=!0,r=null,a.set("active")}),u),s>0&&(o&&clearTimeout(o),o=setTimeout(l,s+Math.max(u,0)))},s.clear=()=>{i?a.set("cancelled"):r&&(clearTimeout(r),a.set("rejected")),o&&clearTimeout(o),r=null,o=null,i=!1},s.on=(e,t)=>{a.on(e,t)},s.destroy=()=>{s.clear(),a.destroy()},s}function _oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{left:"translate(-100%,-50%) translateX(".concat(-e,"px)"),right:"translate(".concat(e,"px, -50%)"),top:"translate(-50%, -100%) translateY(".concat(-e,"px)"),bottom:"translate(-50%, ".concat(e,"px)"),inside:"translate(-50%, -50%)"}}function woe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{left:{x:-e-n,y:-t/2},right:{x:n,y:-t/2},top:{x:-e/2,y:-t-n},bottom:{x:-e/2,y:n},inside:{x:-e/2,y:-t/2}}}function Soe(e,t){const n=e>0?"-":"+";return e=Math.abs(e),void 0===t&&(t=e),{left:{left:"100%",top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},right:{left:"".concat(2*-e,"px"),top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},top:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"100%",borderWidth:"".concat(t,"px")},bottom:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"".concat(2*-e,"px"),borderWidth:"".concat(t,"px")},inside:{left:"0px",top:"0px",borderWidth:"0px"}}}function Coe(e,t,n,r,o,i){const a=t+i.x,s=n+i.y,l=o;return!(a<0||s<0)&&!(a+r>e.width||s+l>e.height)}function Eoe(e){let{area:t,vx:n,vy:r,width:o,height:i,offset:a}=e;const s=n+a.x,l=r+a.y,u=o,c=i;let d=s<0?-s:0,p=l<0?-l:0;return d+=s+u>t.width?-(s+u-t.width):0,p+=l+c>t.height?-(l+c-t.height):0,{x:d,y:p}}function koe(e){let{options:t,pointer:n,width:r,height:o,dockOrder:i,x:a,y:s}=e;const{targetBounds:l}=n,u=_oe(t.offset),c=u[t.dock];if(c)return{computedTooltipStyle:{left:"".concat(a,"px"),top:"".concat(s,"px"),transform:c},computedArrowStyle:Soe(t.offset)[t.dock],dock:t.dock};const d={width:"target"===t.area?l.width:window.innerWidth,height:"target"===t.area?l.height:window.innerHeight},p=woe(r,o,t.offset),f=[],h="target"===t.area?a:l.left+a,m="target"===t.area?s:l.top+s;for(let e=0;e<i.length;e+=1){const n=i[e],l=Eoe({area:d,vx:h,vy:m,width:r,height:o,offset:p[n]}),c={left:"".concat(a,"px"),top:"".concat(s,"px"),transform:u[n]},g=Soe(t.offset)[n];0!==l.x&&(c.width="".concat(r-20-Math.abs(l.x),"px"),"top"!==n&&"bottom"!==n||(c.left="".concat(a+l.x,"px"),g.left="calc(50% ".concat(l.x>0?"-":"+"," ").concat(Math.abs(l.x),"px)")));const b={computedTooltipStyle:c,computedArrowStyle:g,dock:n,rect:{width:r,height:o}};if(0===l.x&&0===l.y)return b;b.offset=l,f.push(b)}return f.sort(((e,t)=>Math.abs(e.offset.x)-Math.abs(t.offset.x))),f[0]}function Roe(e,t,n){const r=e.key?n.component(e.key):n.componentsFromPoint({x:t.clientX,y:t.clientY})[0];if(!r)return{x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1}};const o=r.rect;return M2({scaleRatio:o.scaleRatio},o.computedInner)}const Moe={bounds:function(e){let{resources:t,nodes:n,pointer:r,width:o,height:i,options:a}=e;const{targetBounds:s}=r,{x:l,y:u,width:c,height:d}=t.getNodeBoundsRelativeToTarget(n[0]),p={left:{x:l,y:u+d/2},right:{x:l+c,y:u+d/2},top:{x:l+c/2,y:u},bottom:{x:l+c/2,y:u+d},inside:{x:l+c/2,y:u+d/2}},f=_oe(a.offset),h=f[a.dock];if(h)return{computedTooltipStyle:{left:"".concat(p[a.dock].x,"px"),top:"".concat(p[a.dock].y,"px"),transform:h},computedArrowStyle:Soe(a.offset)[a.dock],dock:a.dock};const m={width:"target"===a.area?s.width:window.innerWidth,height:"target"===a.area?s.height:window.innerHeight},g=woe(o,i,a.offset),b=["top","left","right","bottom","inside"];for(let e=0;e<b.length;e+=1){const t=b[e];if(Coe(m,"target"===a.area?p[t].x:s.left+p[t].x,"target"===a.area?p[t].y:s.top+p[t].y,o,i,g[t]))return{computedTooltipStyle:{left:"".concat(p[t].x,"px"),top:"".concat(p[t].y,"px"),transform:f[t]},computedArrowStyle:Soe(a.offset)[t],dock:t}}const y=function(e){let{options:t,docks:n,dockOffsets:r,targetBounds:o,area:i,width:a}=e;const s="top",l="target"===t.area?n[s].x:o.left+n[s].x,u=("target"===t.area?n[s].y:(o.top,n[s].y),r[s]),c=l+u.x,d=(u.y,a);let p=n.top.x;return c<0&&c+d>i.width||(c<0?p-=c:c+d>i.width&&(p-=c+d-i.width)),p}({options:a,docks:p,dockOffsets:g,targetBounds:s,area:m,width:o});return{computedTooltipStyle:{left:"".concat(y,"px"),top:"".concat(p.top.y,"px"),transform:f.top},computedArrowStyle:Soe(a.offset+y-p.top.x,a.offset).top,dock:"top"}},pointer:function(e){let{options:t,pointer:n,width:r,height:o}=e;const{x:i,y:a}=n;return koe({x:i,y:a,pointer:n,width:r,height:o,options:t,dockOrder:["top","left","right","bottom"]})},slice:function(e){let{options:t,pointer:n,width:r,height:o,nodes:i,resources:a}=e;const s=i[0],{dx:l,dy:u}=n,c=a.getComponentBoundsFromNode(s),d=l+c.x+c.width/2,p=u+c.y+c.height/2,{start:f,end:h,outerRadius:m}=s.desc.slice,g=(f+h)/2-Math.PI/2,b=2*Math.PI,y=(g%b+b)%b;let v=["top","left","right","bottom"];return"auto"===t.dock&&(v=y<=Math.PI/4||y>=7*Math.PI/4?["right","top","bottom","left"]:y<=3*Math.PI/4?["bottom","left","right","top"]:y<=5*Math.PI/4?["left","top","bottom","right"]:["top","left","right","bottom"]),koe({x:d+m*c.scaleRatio.x*Math.cos(y),y:p+m*c.scaleRatio.y*Math.sin(y),pointer:n,width:r,height:o,options:t,dockOrder:v})}};function Aoe(e,t){let{width:n,height:r}=e,{chart:o,state:i,props:a}=t;const s={resources:{formatter:o.formatter,scale:o.scale,component:o.component,getComponentBoundsFromNode:e=>Roe(e,i.pointer,o),getNodeBoundsRelativeToTarget:e=>function(e,t,n){const r=Roe(e,t,n),o=e.bounds;return{x:r.x+t.dx+o.x,y:r.y+t.dy+o.y,width:o.width,height:o.height}}(e,i.pointer,o)},nodes:i.activeNodes,pointer:i.pointer,width:n,height:r},l=typeof a.placement;if("object"===l&&"function"==typeof a.placement.fn)return a.placement.fn(s);let u={type:"pointer",offset:8,dock:"auto",area:"viewport"};"function"===l&&(u=M2(u,a.placement(s))),"object"===l&&Moe[a.placement.type]?u=M2(u,a.placement):"string"===l&&Moe[a.placement]&&(u=M2(u,{type:a.placement})),s.options=u;const c=Moe[u.type](s);let{x:d,y:p,width:f,height:h}=s.resources.getComponentBoundsFromNode(s.nodes[0]);return d+=s.pointer.dx,f+=d,p+=s.pointer.dy,h+=p,c.computedTooltipStyle.left="".concat(Math.min(Math.max(0,d,parseFloat(c.computedTooltipStyle.left)),f),"px"),c.computedTooltipStyle.top="".concat(Math.min(Math.max(0,p,parseFloat(c.computedTooltipStyle.top)),h),"px"),c}let Loe;function Ioe(){Loe=null}const Poe={duration:8e3,delay:500,filter:e=>e.filter((e=>e.data&&void 0!==e.data.value)),extract:e=>e.node.data.value,content:e=>{let{h:t,data:n}=e;return n.map((e=>t("div",{},e)))},isEqual:(e,t)=>e.length&&e.length===t.length&&e.every(((e,n)=>t[n]&&JSON.stringify(e.data)===JSON.stringify(t[n].data))),placement:{type:"pointer",dock:"auto",offset:8,area:"viewport"},tooltipClass:{},contentClass:{},arrowClass:{},direction:"ltr",appendTo:void 0,beforeShow:void 0,afterShow:void 0,beforeHide:void 0,onHide:void 0,afterHide:void 0};const Toe={require:["chart","renderer"],defaultSettings:{settings:Poe,style:{tooltip:{},content:{backgroundColor:"$gray-25",color:"$font-color--inverted",fontFamily:"$font-family",fontSize:"$font-size",lineHeight:"$line-height",borderRadius:"4px",padding:"8px",opacity:.9},arrow:{position:"absolute",width:"0px",height:"0px",borderStyle:"solid",color:"$gray-25",opacity:.9},"arrow-bottom":{borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-top":{borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-right":{borderTopColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"},"arrow-left":{borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent"}}},renderer:"dom",on:{hide(){this.hide()},show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.show(e,t)},prevent(e){this.prevent(e)}},hide(){this.dispatcher.clear(),this.state.activeNodes=[],this.state.pointer={}},show(e){let t,{nodes:n,duration:r,delay:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.state.prevent&&this.state.targetElement&&(this.state.pointer=function(e,t){let{chart:n,state:r}=t,o=0,i=0;e.center?(o+=e.center.x,i+=e.center.y):(o+=e.clientX,i+=e.clientY);const a=n.element.getBoundingClientRect(),s=r.targetElement.getBoundingClientRect(),l=o,u=i,c=a.left-s.left,d=a.top-s.top,p=o-a.left,f=i-a.top;return o-=s.left,i-=s.top,{x:o,y:i,dx:c,dy:d,cx:p,cy:f,clientX:l,clientY:u,targetBounds:s,chartBounds:a}}(e,this),t=Array.isArray(n)?this.props.filter(n):this.props.filter(this.chart.shapesAt({x:this.state.pointer.cx,y:this.state.pointer.cy})),this.props.isEqual(this.state.activeNodes,t)||(this.dispatcher.clear(),this.state.activeNodes=t,this.state.activeNodes.length&&this.dispatcher.invoke((()=>this.invokeRenderer(this.state.activeNodes)),r,o)))},prevent(e){this.state.prevent=!!e},init(e){this.state={activeNodes:[],pointer:{},targetElement:null,prevent:!1},this.props=e.settings,this.dispatcher=xoe({defaultDuration:this.props.duration,defaultDelay:this.props.delay});const t=this.dispatcher.clear;this.dispatcher.on("pending",(()=>{!function(e){Loe&&Loe!==e&&Loe()}(t),Loe=t,"function"==typeof this.props.beforeShow&&this.props.beforeShow.call(void 0,{resources:{formatter:this.chart.formatter,scale:this.chart.scale}})})),this.dispatcher.on(["cancelled","fulfilled"],(()=>{const e={resources:{formatter:this.chart.formatter,scale:this.chart.scale}};"function"==typeof this.props.beforeHide&&this.props.beforeHide.call(void 0,M2({element:this.state.tooltipElm},e)),"function"==typeof this.props.onHide?this.props.onHide.call(void 0,M2({element:this.state.tooltipElm},e)):this.renderer.clear([]),"function"==typeof this.props.afterHide&&this.props.afterHide.call(void 0,e),Loe===t&&(Loe=null),this.state.tooltipElm=void 0})),this.dispatcher.on("active",(()=>{"function"==typeof this.props.afterShow&&this.props.afterShow.call(void 0,{element:this.state.tooltipElm,resources:{formatter:this.chart.formatter,scale:this.chart.scale}})}))},created(){this.init(this.settings)},beforeUpdate(e){let{settings:t}=e;this.dispatcher&&(this.dispatcher.destroy(),Ioe()),this.init(t)},render(e){return this.h=e,[]},beforeDestroy(){this.dispatcher.destroy(),Ioe()},appendTo(){if(this.props.appendTo){this.state.targetElement="function"==typeof this.props.appendTo?this.props.appendTo({resources:{formatter:this.chart.formatter,scale:this.chart.scale}}):this.props.appendTo;const{width:e,height:t}=this.state.targetElement.getBoundingClientRect();this.renderer.destroy(),this.renderer.size({width:e,height:t}),this.renderer.appendTo(this.state.targetElement)}else this.state.targetElement=this.renderer.element()},mounted(){this.appendTo()},updated(){this.appendTo()},invokeRenderer(e){const t=function(e,t){let{chart:n,scale:r,props:o,h:i}=t;const a={resources:{dataset:n.dataset,scale:n.scale,formatter:n.formatter},scale:r,h:i},s=[];return e.forEach((e=>{if("function"==typeof o.extract){const t=M2({node:e},a);s.push(o.extract(t))}})),s}(e,this),n=Aoe(voe(t,{},this).getBoundingClientRect(),this);this.state.tooltipElm=voe(t,n,this)}};const Doe={require:["renderer","chart"],defaultSettings:{settings:{target:"",selector:"*",fill:"rgba(0, 255, 0, 0.1)",stroke:"lime",opacity:1,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes(this.props.selector).filter((e=>e.key===this.props.target)),t=e.filter((e=>e.collider)).map((e=>e.collider));t.forEach((e=>{e.fill=this.props.fill,e.stroke=this.props.stroke,e.opacity=this.props.opacity,e.collider={type:null}})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var Ooe={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zoe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Noe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function qoe(e){const t=[],n=String(e).trim();return"M"!==n[0]&&"m"!==n[0]||n.replace(zoe,((e,n,r)=>{const o=function(e){const t=e.match(Noe);return t?t.map(Number):[]}(r);let i=n.toLowerCase(),a=n;if("m"===i&&o.length>2&&(t.push([a,...o.splice(0,2)]),i="l",a="m"===a?"l":"L"),o.length<Ooe[i])return"";for(t.push([a,...o.splice(0,Ooe[i])]);o.length>=Ooe[i]&&o.length&&Ooe[i];)t.push([a,...o.splice(0,Ooe[i])]);return""})),t}const joe=2*Math.PI;function Foe(e,t){return{x:.5*(e.x+t.x),y:.5*(e.y+t.y)}}function Boe(e,t,n,r,o){const i=1-e;return i**3*t+3*i**2*e*n+3*i*e**2*r+e**3*o}function $oe(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;if(i<1||function(e,t,n,r){return Math.abs(e.x+n.x-(t.x+t.x))+Math.abs(e.y+n.y-(t.y+t.y))+Math.abs(t.x+r.x-(n.x+n.x))+Math.abs(t.y+r.y-(n.y+n.y))}(e,t,n,r)<=10)return o[o.length-1]!==e&&o.push(e),o.push(r),o;const a=Foe(e,t),s=Foe(t,n),l=Foe(n,r),u={x:Boe(.5,e.x,t.x,n.x,r.x),y:Boe(.5,e.y,t.y,n.y,r.y)},c=Foe(a,s),d=Foe(s,l);return $oe(e,a,c,u,o,i-1),$oe(u,d,l,r,o,i-1),o}function Woe(e,t,n){const{cp1:r,cp2:o}=function(e,t,n){return{cp1:{x:e.x+2/3*(t.x-e.x),y:e.y+2/3*(t.y-e.y)},cp2:{x:n.x+2/3*(t.x-n.x),y:n.y+2/3*(t.y-n.y)}}}(e,t,n);return $oe(e,r,o,n)}function Hoe(e,t,n){const r=[],o=!!e[4],i=!!e[5],a=e[3];let s,l,u,c,d=e[6],p=e[7],f=e[1],h=e[2];if("a"===e[0]&&(d+=t,p+=n),t===p&&n===p)return r;if(!f||!h)return r.push({x:d,y:p}),r;({cx:s,cy:l,rx:f,ry:h,sweepAngle:u,startAngle:c}=function(e,t,n,r,o,i,a,s,l){let u,c,d,p,f,h;const m=u9(n%360),g=Math.cos(m),b=Math.sin(m),y=(s-i)/2,v=(l-a)/2,x=g*y+b*v,_=g*v-b*y;h=x**2/(e=Math.abs(e))**2+_**2/(t=Math.abs(t))**2,h>1&&(h=Math.sqrt(h),e*=h,t*=h);const w=e*_,S=t*x,C=w**2+S**2,E=(e*t)**2-C;let k=Math.sqrt(Math.max(E/C,0));r===o&&(k=-k);const R=k*(w/t),M=k*(-S/e);p=g*R-b*M+(s+i)/2,f=b*R+g*M+(l+a)/2;const A=(x-R)/e,L=(_-M)/t,I=(-x-R)/e,P=(-_-M)/t;return u=Math.atan2(L,A),u+=u<0?joe:0,c=Math.atan2(P,I),c+=c<0?joe:0,d=c-u,!o&&u<c?d-=joe:o&&c<u&&(d+=joe),d%=joe,{startAngle:u,sweepAngle:d,cx:p,cy:f,rx:e,ry:t}}(f,h,a,o,i,d,p,t,n));const m=Math.abs(u*Math.sqrt((f**2+h**2)/2)),g=Math.ceil(m/10),b=u/g;for(let e=1;e<=g;e++){const t=(c+b*e)%joe,n=Math.cos(t),o=Math.sin(t);r.push({x:s+n*f+-o*n,y:l+o*h+n*o})}return r}function Goe(e){const t=qoe(e),n=[],r=[];let o=0,i=0,a=null,s=null,l=null,u=null;for(let e=0;e<t.length;++e){const c=t[e],d=c[0];switch("S"!==d&&"s"!==d&&"C"!==d&&"c"!==d&&(a=null,s=null),"T"!==d&&"t"!==d&&"Q"!==d&&"q"!==d&&(l=null,u=null),d){case"m":r.length&&n.push(r.splice(0));case"l":o+=c[1],i+=c[2],r.push({x:o,y:i});break;case"M":r.length&&n.push(r.splice(0));case"L":o=c[1],i=c[2],r.push({x:o,y:i});break;case"H":o=c[1],r.push({x:o,y:i});break;case"h":o+=c[1],r.push({x:o,y:i});break;case"V":i=c[1],r.push({x:o,y:i});break;case"v":i+=c[1],r.push({x:o,y:i});break;case"a":r.push(...Hoe(c,o,i)),o+=c[6],i+=c[7];break;case"A":r.push(...Hoe(c,o,i)),o=c[6],i=c[7];break;case"c":r.push(...$oe({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i},{x:c[5]+o,y:c[6]+i})),a=c[3]+o,s=c[4]+i,o+=c[5],i+=c[6];break;case"C":r.push(...$oe({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]},{x:c[5],y:c[6]})),a=c[3],s=c[4],o=c[5],i=c[6];break;case"s":null!==a&&null!==a||(a=o,s=i),r.push(...$oe({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),a=c[1]+o,s=c[2]+i,o+=c[3],i+=c[4];break;case"S":null!==a&&null!==a||(a=o,s=i),r.push(...$oe({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),a=c[1],s=c[2],o=c[3],i=c[4];break;case"Q":r.push(...Woe({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),l=c[1],u=c[2],o=c[3],i=c[4];break;case"q":r.push(...Woe({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),l=c[1]+o,u=c[2]+i,o+=c[3],i+=c[4];break;case"T":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...Woe({x:o,y:i},{x:l,y:u},{x:c[1],y:c[2]})),o=c[1],i=c[2];break;case"t":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...Woe({x:o,y:i},{x:l,y:u},{x:c[1]+o,y:c[2]+i})),o+=c[1],i+=c[2];break;case"z":case"Z":r.length&&r.push({x:r[0].x,y:r[0].y})}}return function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];Math.abs(n.x-r.x)<1e-12&&Math.abs(n.y-r.y)<1e-12&&(e.splice(t,1),t--)}}(r),n.push(r.splice(0)),n}const Voe={require:["renderer","chart"],defaultSettings:{settings:{target:"",fill:"transparent",stroke:"lime",opacity:1,radius:2,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes("path").filter((e=>e.key===this.props.target)),t=[];e.forEach((e=>{Goe(e.attrs.d).forEach((e=>{e.forEach((e=>{t.push({type:"circle",cx:e.x,cy:e.y,r:this.props.radius,fill:this.props.fill,stroke:this.props.stroke,opacity:this.props.opacity,collider:{type:null}})}))}))})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var Uoe=[function(e){e.component("box",Yee),e.component("box-marker",Yee)},function(e){e.component("point",tte),e.component("point-marker",tte)},function(e){e.component("pie",ite)},function(e){e.component("grid-line",cte)},function(e){e.component("ref-line",_te)},function(e){e.component("axis",Xte)},function(e){e.component("container",Qte)},function(e){e.component("text",ene)},function(e){e.component("scrollbar",rne)},function(e){e.component("brush-range",yne),e.component("brush-area-dir",wne)},function(e){e.component("range",kne)},function(e){e.component("brush-lasso",Pne)},function(e){e.component("labels",Gre)},function(e){e.component("legend-cat",ooe)},function(e){e.component("legend-seq",coe)},function(e){e.component("line",hoe)},function(e){e.component("brush-area",yoe)},function(e){e.component("tooltip",Toe)},function(e){e.component("debug-collider",Doe)},function(e){e.component("debug-path-to-points",Voe)}];let Yoe=class{constructor(e){this._parent=null,this._children=[],this._ancestors=null,this.type=e,this.data=null}detach(){return this._parent&&this._parent.removeChild(this),this}get parent(){return this._parent}get isBranch(){return this._children&&this._children.length}get children(){return this._children}get ancestors(){return this._ancestors||(this._ancestors=[],this.parent&&this._ancestors.push(this.parent,...this.parent.ancestors)),this._ancestors}get descendants(){let e=[];const t=this.children.length;let n,r;for(n=0;n<t;n++)r=this.children[n],e.push(r),r.children.length&&(e=[...e,...r.descendants]);return e}equals(e){const t=this.children,n=e.children;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].equals(n[e]))return!1;return!0}toJSON(){return{type:this.type,children:this.children.map((e=>e.toJSON()))}}};class Koe{constructor(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x:e,y:t,width:n,height:r,minWidth:o,minHeight:i})}set(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="rect",n>=0?(this.x=e,this.width=Math.max(n,o)):(this.x=e+Math.min(n,-o),this.width=-Math.min(n,-o)),r>=0?(this.y=t,this.height=Math.max(r,i)):(this.y=t+Math.min(r,-i),this.height=-Math.min(r,-i))}containsPoint(e){return Y9(this,e)}intersectsLine(e){return K9(this,F2(e))}intersectsRect(e){return V9(this,j2(e))}intersectsCircle(e){return F9(e,this)}intersectsPolygon(e){return G9(e,this)}intersectsGeoPolygon(e){return ree(e,this)}points(){return[{x:this.x,y:this.y},{x:this.x+this.width,y:this.y},{x:this.x+this.width,y:this.y+this.height},{x:this.x,y:this.y+this.height}]}}class Xoe{constructor(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({cx:e,cy:t,r:n,minRadius:r})}set(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="circle",this.cx=e,this.cy=t,this.r=Math.max(n,r),this.vector={x:this.cx,y:this.cy}}containsPoint(e){return j9(this,e)}intersectsLine(e){return B9(this,F2(e))}intersectsRect(e){return F9(this,j2(e))}intersectsCircle(e){return n=e,!O9(t=this)&&!O9(n)&&(t.cx-n.cx)**2+(t.cy-n.cy)**2<=(t.r+n.r)**2;var t,n}intersectsPolygon(e){return $9(this,e)}intersectsGeoPolygon(e){return eee(this,e)}points(){return[{x:this.cx,y:this.cy}]}}class Qoe{constructor(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x1:e,y1:t,x2:n,y2:r,tolerance:o})}set(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="line",this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.tolerance=Math.max(0,Math.round(o)),this.vectors=this.points(),this.zeroSize=e===n&&t===r}containsPoint(e){if(this.tolerance>0){return B9({cx:e.x,cy:e.y,r:this.tolerance},this)}return Q9(this,e)}intersectsLine(e){return X9(this,F2(e))}intersectsRect(e){return K9(j2(e),this)}intersectsCircle(e){return B9(e,this)}intersectsPolygon(e){return H9(e,this)}intersectsGeoPolygon(e){return nee(e,this)}points(){return[{x:this.x1,y:this.y1},{x:this.x2,y:this.y2}]}}class Joe{constructor(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polygon",this.vertices=e.slice(),this.edges=[],function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}(this.vertices),!(this.vertices.length<=2)){!function(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}(this.vertices),this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.vertices.length;e++)e<this.vertices.length-1&&this.edges.push([this.vertices[e],this.vertices[e+1]]),this.xMin=isNaN(this.xMin)?this.vertices[e].x:Math.min(this.xMin,this.vertices[e].x),this.xMax=isNaN(this.xMax)?this.vertices[e].x:Math.max(this.xMax,this.vertices[e].x),this.yMin=isNaN(this.yMin)?this.vertices[e].y:Math.min(this.yMin,this.vertices[e].y),this.yMax=isNaN(this.yMax)?this.vertices[e].y:Math.max(this.yMax,this.vertices[e].y);this._bounds=null,this._boundingRect=null}}containsPoint(e){return W9(this,e)}intersectsCircle(e){return $9(e,this)}intersectsLine(e){return H9(this,F2(e))}intersectsRect(e){return G9(this,j2(e))}intersectsPolygon(e){return J9(this,e)}intersectsGeoPolygon(e){return Z9(e,this)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function Zoe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Joe(...t)}function eie(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}function tie(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}class nie{constructor(){let{vertices:e=[[]]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="geopolygon",this.vertices=e.slice(),this.numPolygons=this.vertices.length,this.polygons=[],this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.numPolygons;e++)tie(this.vertices[e]),this.vertices[e].length>2&&eie(this.vertices[e]),this.polygons[e]=Zoe({vertices:this.vertices[e]}),this.xMin=isNaN(this.xMin)?this.polygons[e].xMin:Math.min(this.xMin,this.polygons[e].xMin),this.xMax=isNaN(this.xMax)?this.polygons[e].xMax:Math.max(this.xMax,this.polygons[e].xMax),this.yMin=isNaN(this.yMin)?this.polygons[e].yMin:Math.min(this.yMin,this.polygons[e].yMin),this.yMax=isNaN(this.yMax)?this.polygons[e].yMax:Math.max(this.yMax,this.polygons[e].yMax);this._bounds=null,this._boundingRect=null}containsPoint(e){return tee(this,e)}intersectsCircle(e){return eee(e,this)}intersectsLine(e){return nee(this,F2(e))}intersectsRect(e){return ree(this,j2(e))}intersectsPolygon(e){return Z9(this,e)}intersectsGeoPolygon(e){return function(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!V9(n,r)&&(U9(r,n)?q9(t,e):q9(e,t))}(this,e)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function rie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new nie(...t)}class oie{constructor(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({points:e})}set(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polyline",this.segments=[],this._points=e.slice(),this._points.length>1)for(let e=0,r=this._points.length-1;e<r;e++)t=this._points[e],n=this._points[e+1],(t.x!==n.x||t.y!==n.y)&&this.segments.push({x1:this._points[e].x,y1:this._points[e].y,x2:this._points[e+1].x,y2:this._points[e+1].y});var t,n}containsPoint(e){return this.segments.some((t=>Q9(t,e)))}intersectsCircle(e){return this.segments.some((t=>B9(e,t)))}intersectsLine(e){const t=F2(e);return this.segments.some((e=>X9(e,t)))}intersectsRect(e){const t=j2(e);return this.segments.some((e=>K9(t,e)))}intersectsPolygon(e){return this.segments.some((t=>H9(e,t)))}intersectsGeoPolygon(e){return this.segments.some((t=>nee(e,t)))}points(){return this._points}}const iie=G5();function aie(e,t){return iie.get(e)(t)}iie.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Koe(...t)})),iie.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Xoe(...t)})),iie.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Qoe(...t)})),iie.add("polygon",Zoe),iie.add("geopolygon",rie),iie.add("polyline",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new oie(...t)}));class sie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.geometries=[],e.forEach((e=>{const t=aie(e.type,e);t&&this.geometries.push(t)}))}containsPoint(e){return this.geometries.some((t=>t.containsPoint(e)))}intersectsLine(e){return this.geometries.some((t=>t.intersectsLine(e)))}intersectsRect(e){return this.geometries.some((t=>t.intersectsRect(e)))}intersectsCircle(e){return this.geometries.some((t=>t.intersectsCircle(e)))}intersectsPolygon(e){return this.geometries.some((t=>t.intersectsPolygon(e)))}intersectsGeoPolygon(e){return this.geometries.some((t=>t.intersectsGeoPolygon(e)))}}class lie{constructor(){this._elements=[[1,0,0],[0,1,0],[0,0,1]],this._stack=[]}clone(){return(new lie).multiply(this)}set(e){return this._elements=e,this}save(){return this._stack.push(this.elements),this}restore(){return this._stack.length&&(this._elements=this._stack.pop()),this}add(e){let t,n;for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]+=e;return this}translate(e,t){return this.multiply([[1,0,e],[0,1,t],[0,0,1]]),this}rotate(e){let t=Math.cos(-e),n=Math.sin(-e);return this.multiply([[t,n,0],[-n,t,0],[0,0,1]]),this}multiply(e){let t,n,r,o;if(e instanceof lie&&(e=e._elements),Array.isArray(e)){for(r=[[0,0,0],[0,0,0],[0,0,0]],t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)for(o=0;o<3;o++)r[t][n]+=this._elements[t][o]*e[o][n];this._elements=r}else for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]*=e;return this}scale(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.multiply([[e,0,0],[0,t,0],[0,0,1]]),this}transform(e,t,n,r,o,i){return this.multiply([[e,n,o],[t,r,i],[0,0,1]]),this}determinant(){let e=this._elements[0][0],t=this._elements[0][1],n=this._elements[0][2],r=this._elements[1][0],o=this._elements[1][1],i=this._elements[1][2],a=this._elements[2][0],s=this._elements[2][1],l=this._elements[2][2],u=0;return u=e*o*l+t*i*a+n*r*s-n*o*a-t*r*l-e*i*s,u}invert(){let e=this.determinant(),t=this._elements[0][0],n=this._elements[0][1],r=this._elements[0][2],o=this._elements[1][0],i=this._elements[1][1],a=this._elements[1][2],s=this._elements[2][0],l=this._elements[2][1],u=this._elements[2][2];return this._elements=[[i*u-a*l,r*l-n*u,n*a-r*i],[a*s-o*u,t*u-r*s,r*o-t*a],[o*l-i*s,s*n-t*l,t*i-n*o]],this.multiply(1/e),this}transpose(){const e=Object.create(this._elements);return this._elements=[[e[0][0],e[1][0],e[2][0]],[e[0][1],e[1][1],e[2][1]],[e[0][2],e[1][2],e[2][2]]],this}identity(){return this._elements=[[1,0,0],[0,1,0],[0,0,1]],this}toString(){return"".concat(this._elements.map((e=>e.join("\t"))).join("\n"))}isIdentity(){const e=this._elements;return 1===e[0][0]&&0===e[0][1]&&0===e[0][2]&&0===e[1][0]&&1===e[1][1]&&0===e[1][2]&&0===e[2][0]&&0===e[2][1]&&1===e[2][2]}transformPoint(e){let t,n,r=[e.x,e.y,1],o=this._elements,i=[0,0,0];for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)i[t]+=r[n]*o[t][n];return{x:i[0],y:i[1]}}transformPoints(e){let t,n,r,o,i,a=this._elements,s=[];for(o=0;o<e.length;o++){for(t=[e[o].x,e[o].y,1],i=[0,0,0],n=0;n<this._elements.length;n++)for(r=0;r<this._elements[n].length;r++)i[n]+=t[r]*a[n][r];s.push({x:i[0],y:i[1]})}return s}get elements(){const e=this._elements;return[[e[0][0],e[0][1],e[0][2]],[e[1][0],e[1][1],e[1][2]],[e[2][0],e[2][1],e[2][2]]]}}const uie=/(translate|scale|rotate|matrix)\(([0-9,.eE+-\s]+)(?:,|\s?)+\)/g;function cie(e,t){const n=t.args[0]*(Math.PI/180);if(t.args.length>2){const r=t.args[1],o=t.args[2];e.translate(r,o),e.rotate(n),e.translate(-r,-o)}else 1===t.args.length&&e.rotate(n)}function die(e,t){const n=t.args[0],r=isNaN(t.args[1])?t.args[0]:t.args[1];e.scale(n,r)}function pie(e,t){const n=t.args[0],r=isNaN(t.args[1])?0:t.args[1];e.translate(n,r)}function fie(e,t){t.args.length>=6&&e.transform(...t.args)}function hie(e,t){const n=function(e){let t,n=[];for(;null!==(t=uie.exec(e));){const e=t[2].trim(),r=-1===e.indexOf(",")?e.split(" "):e.split(",");n.push({cmd:t[1],args:r.filter((e=>e.trim().length>0)).map((e=>Number(e)))})}return n}(e);let r;for(let e=0,o=n.length;e<o;e++)r=n[e],"rotate"===r.cmd?cie(t,r):"scale"===r.cmd?die(t,r):"matrix"===r.cmd?fie(t,r):"translate"===r.cmd&&pie(t,r)}const mie={type:/^\w[\w-]+/,attr:/^\[\w(?:[\w\._-]+)?(?:[!]?=['\"][\w\s*#_-]*['\"])?\]/,universal:/^(\*)/,tag:/^\.(\w+)/},gie={type:(e,t)=>t.filter((t=>{const n=t.type;return!!n&&n.toLowerCase()===e.toLowerCase()})),attr:(e,t,n,r)=>r.filter((r=>{const o=r.attrs[e];if(!t)return void 0!==o;if(void 0===o)return!1;switch(t){case"=":return n===String(o);case"!=":return n!==String(o);default:return!1}})),universal:e=>e,tag:(e,t)=>t.filter((t=>{const n=t.tag;return!!n&&-1!==n.trim().split(/\s+/).indexOf(e.replace(".",""))}))};function bie(e,t){if(!t||!t.length||!e||"function"!=typeof gie[e.type])return[];switch(e.type){case"type":case"tag":return gie[e.type](e.value,t);case"attr":return gie[e.type](e.attribute,e.operator,e.attributeValue,t);case"universal":return gie[e.type](t);default:return[]}}var yie={find:function(e,t){const n=[],r=[];let o,i;if(t.isBranch){let a;o=function(e){const t=[];let n,r,o,i;return e.split(/\s*,\s*/).forEach((e=>{e=e.trim(),n=[];const a=t=>{o=e.match(mie[t]),o&&(i=!0,e=e.slice(o[0].length),r={type:t,value:o[0]},"attr"===t&&(o=o[0].match(/\[(\w[\w\._-]+)?(?:([!]?=)['\"]([\w\s#_-]*)['\"])?\]/),r.attribute=o[1],r.operator=o[2],r.attributeValue=o[3]),n.push(r))};for(;e&&(i=!1,o=e.match(/^\s*([>+~]|\s)\s*/),o&&(i=!0,n.push({type:" ",value:o[0]}),e=e.slice(o[0].length)),Object.keys(mie).forEach(a),n&&n.length&&t.indexOf(n)<0&&t.push(n),i););})),t}(e),i=t.descendants;for(let e=0,t=o.length;e<t;e++){a=o[e];const t=[];let n=i.slice(),s=!1;a.reverse().forEach((e=>{if(" "===e.type)return t.push(n),n=i.slice(),void(s=!1);n=bie(e,n),s=!0})),s&&t.push(n);const l=t[0].filter((e=>{let n,r=e.parent;for(let e=1;e<t.length;e++){for(n=t[e].indexOf(r);r&&n<0;)r=r.parent,n=t[e].indexOf(r);if(n<0)return!1}return!0}));r.push(l)}for(let e=0,t=r.length;e<t;e++)for(let t=0,o=r[e].length;t<o;t++)n.indexOf(r[e][t])<0&&n.push(r[e][t])}return n||[]}};function vie(e,t,n){const r=e.type;let o=e.points();n&&(o=o.every((e=>Array.isArray(e)))?o.map((e=>n.transformPoints(e))):n.transformPoints(o)),function(e,t){for(let n=0,r=e.length;n<r;n++)e[n].x/=t,e[n].y/=t}(o,t);let i=null;if("rect"===r||"bounds"===r)i=j2(o),i.type=r;else if("circle"===r)i=function(e,t){return{cx:e[0].x,cy:e[0].y,r:t}}(o,e.r),i.type=r;else if("line"===r)i=F2(o),i.type=r;else if("polygon"===r||"polyline"===r){i={type:"path",d:s9(o,"polygon"===r)}}else if("geopolygon"===r){let e="";for(let t=0;t<o.length;t++)e+=s9(o[t],!0);i={type:"path",d:e}}return i}class xie{constructor(e){this._bounds=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{x:n,y:r,width:o,height:i}=e.boundingRect?e.boundingRect(t):{x:0,y:0,width:0,height:0};return{x:n,y:r,width:o,height:i}},this._attrs=e.attrs,this._type=e.type,this._data=e.data,this._dpi=e.stage?e.stage.dpi:1,this._collider=()=>function(e,t){if(e.collider){const n=e.modelViewMatrix;return"collection"===e.colliderType?{type:"container",children:e.collider.geometries.map((e=>vie(e,t,n)))}:vie(e.collider,t,n)}return null}(e,this._dpi),this._desc=e.desc,this._tag=e.tag,this._children=()=>e.children.map((e=>new xie(e))),this._parent=()=>e.parent?new xie(e.parent):null,this._cache={elementBoundingRect:null},this._getElementBoundingRect=()=>(!this._cache.elementBoundingRect&&this.element&&(this._cache.elementBoundingRect=this.element.getBoundingClientRect()),this._cache.elementBoundingRect||{left:0,top:0})}get children(){return this._children()}get parent(){return this._parent()}get type(){return this._type}get data(){return this._data}get attrs(){return this._attrs}set element(e){this._cache.elementBoundingRect=null,this._element=e}get element(){return this._element}set key(e){this._key=e}get key(){return this._key}get bounds(){const e=this._bounds();return e.x/=this._dpi,e.y/=this._dpi,e.width/=this._dpi,e.height/=this._dpi,e}get localBounds(){return this._bounds(!1)}boundsRelativeTo(e){const t=typeof e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.bounds:this.localBounds,r=this._getElementBoundingRect();let o=r.left,i=r.top;if("object"===t&&null!==e&&"function"==typeof e.getBoundingClientRect){const{left:t=0,top:n=0}=e.getBoundingClientRect();o-=t,i-=n}return n.x+=o,n.y+=i,n}get collider(){return this._collider()}get desc(){return this._desc}get tag(){return this._tag}}function _ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new xie(...t)}class wie{constructor(e){this._node=_ie(e),this._parent=null,this._input=null}get node(){return this._node}set parent(e){this._parent=e}get parent(){return this._parent}set input(e){this._input=e}get input(){return this._input}}function Sie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new wie(...t)}function Cie(e,t){const n=e.parent;if(n&&"stage"!==n.type){t.parent=Sie(n);const e=n.parent;e&&"stage"!==e.type&&Cie(e,t.parent)}}function Eie(e,t,n){if(null===e.colliderType)return null;const r=function(e,t){let n={};if(e.modelViewMatrix)if(Array.isArray(t))n=e.inverseModelViewMatrix.transformPoints(t);else if(isNaN(t.r))Array.isArray(t.vertices)?n.vertices=e.inverseModelViewMatrix.transformPoints(t.vertices):n=e.inverseModelViewMatrix.transformPoint(t);else{const r={x:t.cx,y:t.cy};({x:n.cx,y:n.cy}=e.inverseModelViewMatrix.transformPoint(r)),n.r=t.r}else n=t;return Array.isArray(n.vertices)&&(n=n.vertices.every((e=>Array.isArray(e)))?rie(n):Zoe(n)),n}(e,n);return"frontChild"===e.colliderType?function(e,t,n){for(let r=e.descendants.length-1;r>=0;r--){const o=e.descendants[r];if(null!==o.collider&&o.collider[t](n)){const e=Sie(o);return Cie(o,e),e}}return null}(e,t,r):function(e,t,n){if(e.collider[t](n)){const t=Sie(e);return Cie(e,t),t}return null}(e,t,r)}function kie(e,t,n,r){const o=e.length;for(let i=0;i<o;i++){const o=e[i],a=Eie(o,t,r);a&&n.push(a),!o.children||a||o.collider||kie(o.children,t,n,r)}}function Rie(e,t,n){const r=e.length;for(let o=0;o<r;o++){const r=e[o];if(null!==Eie(r,t,n))return!0;if(r.children&&!r.collider)return Rie(r.children,t,n)}return!1}function Mie(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;let n={};switch(B2(e)){case"circle":return n.cx=e.cx*t,n.cy=e.cy*t,n.r=e.r,["intersectsCircle",n];case"rect":return n=q2(e).map((e=>f9(e,t))),["intersectsRect",n];case"line":return n=N2(e).map((e=>f9(e,t))),["intersectsLine",n];case"point":return n=f9(e,t),["containsPoint",n];case"polygon":return n.vertices=e.vertices.map((e=>f9(e,t))),["intersectsPolygon",n];case"geopolygon":return n.vertices=e.vertices.map((e=>e.map((e=>f9(e,t))))),["intersectsGeoPolygon",n];default:return[]}}function Aie(e,t){const[n,r]=Mie(t,e.dpi),o=[];return n&&(kie([e],n,o,r),function(e,t){for(let n=0,r=t.length;n<r;n++)t[n].input=e}(t,o)),o}function Lie(e,t){const[n,r]=Mie(t,e.dpi);return Rie([e],n,r)}class Iie extends Yoe{constructor(e){super(e),this._stage=null,this._collider={type:null,definition:null,fn:null},this._attrs={},this._node=null}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.node=e;const{data:t,desc:n,tag:r,strokeReference:o,fillReference:i}=e;var a,s;a=this.attrs,s=e,Object.keys(a9).forEach((e=>{const t=s[e];void 0!==t&&(a[a9[e]]=t)})),void 0!==t&&(this.data=t),"object"==typeof n&&(this.desc=M2(!0,{},n)),"string"==typeof r&&(this.tag=r),"string"==typeof o&&(this.strokeReference=o),"string"==typeof i&&(this.fillReference=i)}findShapes(e){return yie.find(e,this).map((e=>_ie(e)))}getItemsFrom(e){return Aie(this,e)}containsPoint(e){return Lie(this,e)}intersectsLine(e){return Lie(this,e)}intersectsRect(e){return Lie(this,e)}intersectsCircle(e){return Lie(this,e)}intersectsPolygon(e){return Lie(this,e)}intersectsGeoPolygon(e){return Lie(this,e)}resolveLocalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lie;void 0!==this.attrs.transform&&hie(this.attrs.transform,e),this.modelViewMatrix=e.clone()}resolveGlobalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lie;const t=this.ancestors;if(t.length>0)for(let n=t.length-1;n>=0;n--)t[n].resolveLocalTransform(e),e=t[n].modelViewMatrix;this.resolveLocalTransform(e)}attr(e){return this.attrs[e]}equals(e){const t=this.attrs,n=Object.keys(t),r=e.attrs,o=Object.keys(r);if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){const o=n[e];if(!Object.hasOwnProperty.call(r,o))return!1;if(t[o]!==r[o])return!1}return super.equals(e)}toJSON(){const e=super.toJSON();return e.attrs=this.attrs,e}get attrs(){return this._attrs}get stage(){return this._parent&&!this._stage?this._stage=this._parent.stage:this._parent||this._stage===this||(this._stage=null),this._stage}set modelViewMatrix(e){this._mvm=e,this._imvm=null}get modelViewMatrix(){return this._mvm}get inverseModelViewMatrix(){return this._imvm=this._imvm?this._imvm:this._mvm.clone().invert(),this._imvm}set node(e){this._node=e}get node(){return this._node}set collider(e){const t=Array.isArray(e)?"collection":e&&e.type;return"string"!=typeof t?(this._collider.type=null,this._collider.definition=null,void(this._collider.fn=null)):null!==this._collider&&this._collider.type===t&&null!==this._collider.fn?(this._collider.fn.set(e),void(this._collider.definition=e)):(this._collider.type=t,void(this._collider.definition=e))}get collider(){if(null!==this._collider.fn)return this._collider.fn;switch(this._collider.type){case"collection":this._collider.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new sie(...t)}(this._collider.definition);break;case"frontChild":return!0;case"bounds":this._collider.fn=aie("rect",this.boundingRect());break;case"line":case"rect":case"circle":case"polygon":case"geopolygon":case"polyline":this._collider.fn=aie(this._collider.type,this._collider.definition);break;default:return null}return this._collider.fn}get colliderType(){return this._collider.type}}class Pie extends Yoe{addChild(e){if(!(e&&e instanceof Yoe))throw new TypeError("Expecting a Node as argument, but got ".concat(e));if(e===this)throw new Error("Can not add itself as child!");if(e._children&&e._children.length&&this.ancestors.indexOf(e)>=0)throw new Error("Can not add an ancestor as child!");return e._parent&&e._parent!==this&&e._parent.removeChild(e),this._children.push(e),e._parent=this,e._ancestors=null,this}addChildren(e){let t,n=e?e.length:0;for(t=0;t<n;t++)this.addChild(e[t]);return this}removeChild(e){const t=this._children.indexOf(e);return t>=0&&(this._children.splice(t,1),e._parent=null,e._ancestors=null),this}removeChildren(e){let t,n;if(!this._children)return this;if(e)for(n=e.length,t=0;t<n;t++)this.removeChild(e[t]);else for(;this._children.length;)this.removeChild(this._children[0]);return this}}const Tie=Pie.prototype;class Die extends Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const{collider:t}=e,n=M2({type:null},t);this.collider=n,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}appendChildRect(e,t){if(void 0!==e.bounds){const n=this.__boundingRect[t]||{},[r,,o]=e.bounds(t),{x:i,y:a}=r,{x:s,y:l}=o,u=isNaN(n.width)?s:Math.max(s,n.width+n.x),c=isNaN(n.height)?l:Math.max(l,n.height+n.y);n.x=isNaN(n.x)?i:Math.min(i,n.x),n.y=isNaN(n.y)?a:Math.min(a,n.y),n.width=u-n.x,n.height=c-n.y,this.__boundingRect[t]=n}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.children.length;for(let n=0;n<t;n++)this.appendChildRect(this.children[n],e);return this.__boundingRect[e]=M2({x:0,y:0,width:0,height:0},this.__boundingRect[e]),this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}addChild(e){const t=Tie.addChild.call(this,e);if(this._collider&&"bounds"===this._collider.type){this.appendChildRect(e,!0);const t=M2({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}addChildren(e){const t=Tie.addChildren.call(this,e),n=e.length;if(this._collider&&"bounds"===this._collider.type&&n>0){for(let t=0;t<n;t++)this.appendChildRect(e[t],!0);const t=M2({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;if(Tie.removeChild.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=M2(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}removeChildren(e){if(Tie.removeChildren.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=M2(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}}function Oie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Die(...t)}class zie extends Die{constructor(e){super("stage"),this._stage=this,this._dpiRatio=e||1}get dpi(){return this._dpiRatio}}const Nie=Pie.prototype,qie=["x1","x2","y1","y2","id","offset","style"];class jie extends Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=qie.length;r!==o;r++)n=qie[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return Nie.addChild.call(this,e)}addChildren(e){return Nie.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return Nie.removeChild.call(this,e),this}removeChildren(e){return Nie.removeChildren.call(this,e),this}}function Fie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new jie(...t)}const Bie=Pie.prototype,$ie=["patternUnits","x","y","width","height","id"];class Wie extends Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=$ie.length;r!==o;r++)n=$ie[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return Bie.addChild.call(this,e)}addChildren(e){return Bie.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return Bie.removeChild.call(this,e),this}removeChildren(e){return Bie.removeChildren.call(this,e),this}}class Hie extends Iie{constructor(){super("rect"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,width:r=0,height:o=0,rx:i=0,ry:a=0,collider:s}=e,l=M2({type:"rect",x:t,y:n,width:r,height:o},s);super.set(e),r>=0?(this.attrs.x=t,this.attrs.width=r):(this.attrs.x=t+r,this.attrs.width=-r),o>=0?(this.attrs.y=n,this.attrs.height=o):(this.attrs.y=n+o,this.attrs.height=-o),i>0&&(this.attrs.rx=i),a>0&&(this.attrs.ry=a),this.collider=l,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=q2(this.attrs),n=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(t):t,[r,o,i,a]=z2(n);return this.__boundingRect[e]={x:r,y:o,width:i-r,height:a-o},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}class Gie extends Iie{constructor(){super("circle"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cx:t=0,cy:n=0,r:r=0,collider:o}=e,i=M2({type:"circle",cx:t,cy:n,r:r},o);super.set(e),this.attrs.cx=t,this.attrs.cy=n,this.attrs.r=r,this.collider=i,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.bounds(e);return this.__boundingRect[e]={x:t[0].x,y:t[0].y,width:t[2].x-t[0].x,height:t[2].y-t[0].y},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const{cx:t,cy:n,r:r,r:o}=this.attrs,i=t-r,a=n-o;let s=2*r,l=2*o,u=[{x:i,y:a},{x:i+s,y:a},{x:i+s,y:a+l},{x:i,y:a+l}];if(e&&this.modelViewMatrix){u=this.modelViewMatrix.transformPoints(u);const[t,n,r,o]=z2(u);s=r-t,l=o-n,this.__bounds[e]=[{x:t,y:n},{x:t+s,y:n},{x:t+s,y:n+l},{x:t,y:n+l}]}else this.__bounds[e]=u;return this.__bounds[e]}}class Vie extends Iie{constructor(){super("line"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x1:t=0,y1:n=0,x2:r=0,y2:o=0,collider:i}=e;super.set(e),this.attrs.x1=t,this.attrs.y1=n,this.attrs.x2=r,this.attrs.y2=o;const a={type:"line",x1:t,y1:n,x2:r,y2:o};this.collider=M2(a,i),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];let t=N2(this.attrs);e&&this.modelViewMatrix&&(t=this.modelViewMatrix.transformPoints(t));const[n,r,o,i]=z2(t),a=n!==o||r!==i;return this.__boundingRect[e]={x:n,y:r,width:a?Math.max(1,o-n):0,height:a?Math.max(1,i-r):0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}const Uie=Math.PI/2;function Yie(e,t){const n=Math.atan2(t.y-e.y,t.x-e.x);return n<0?n+2*Math.PI:n}function Kie(e,t,n){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}const Xie={step:function(e){return new j5(e,.5)},stepAfter:function(e){return new j5(e,1)},stepBefore:function(e){return new j5(e,0)},linear:g5,basis:function(e){return new C5(e)},cardinal:R5.tension(0),catmullRom:A5,monotonex:function(e){return new D5(e)},monotoney:function(e){return new O5(e)},natural:function(e){return new N5(e)}};function Qie(e){if(e.length<2)return!1;const t=e[0],n=e[e.length-1];return Math.abs(t.x-n.x)<1e-12&&Math.abs(t.y-n.y)<1e-12}class Jie extends Iie{constructor(){super("path"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super.set(e),this.segments=[],this.points=[],e.arcDatum){const t=h5();t.innerRadius(e.desc.slice.innerRadius),t.outerRadius(e.desc.slice.outerRadius),t.cornerRadius(e.desc.slice.cornerRadius);const n=t(e.arcDatum);this.attrs.d=n}else if(e.points){const{major:t,minor:n,layerObj:r,points:o,stngs:i,generatorType:a}=e,s=v5(),l=i.coordinates?i.coordinates.defined:null;s[t.p]((e=>e.major*t.size))["".concat(n.p,"1")]((e=>e.minor*n.size))["".concat(n.p,"0")]((e=>e.minor0*n.size)).curve(Xie["monotone"===r.curve?"monotone".concat(t.p):r.curve]),l?s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)&&e.defined)):s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)));const u=i.connect?o.filter(s.defined()):o,c=("area"===a?s:s[a]())(u);this.attrs.d=c}else e.d&&(this.attrs.d=e.d);if(this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null},Array.isArray(e.collider)||"object"==typeof e.collider&&void 0!==e.collider.type)this.collider=e.collider;else if(this.attrs.d){if(this.segments=Goe(this.attrs.d),this.segments.length>1&&this.segments.every((e=>Qie(e))))return void(this.collider=M2({type:"geopolygon",vertices:this.segments},e.collider));this.segments.forEach((t=>{if(t.length<=1);else if(Qie(t))this.collider=M2({type:"polygon",vertices:t},e.collider);else if("object"==typeof e.collider&&e.collider.visual){const n=this.attrs["stroke-width"]/2;this.collider=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=[],o=[];if("h"===n.forceOrientation){const t=e[0].x<e[1].x?-1:1,n=e[e.length-1].x>e[e.length-2].x?1:-1;e.unshift({x:e[0].x+t,y:e[0].y}),e.push({x:e[e.length-1].x+n,y:e[e.length-1].y})}else if("v"===n.forceOrientation){const t=e[0].y<e[1].y?-1:1,n=e[e.length-1].y>e[e.length-2].y?1:-1;e.unshift({x:e[0].x,y:e[0].y+t}),e.push({x:e[e.length-1].x,y:e[e.length-1].y+n})}const i=e.length-1;for(let n=1;n<i;n++){const a=e[n-1],s=e[n],l=e[n+1],u=Yie(s,a),c=Yie(s,l),d=(u+c)/2,p=d+Math.PI,f=Math.max(d,p),h=Math.min(d,p),m=u>c;if(1===n){const e=Yie(a,s);r.push(Kie(a,e-Uie,t)),o.unshift(Kie(a,e+Uie,t))}const g=m?f:h,b=m?h:f;if(r.push(Kie(s,g,t)),o.unshift(Kie(s,b,t)),n===i-1){const e=Yie(l,s);r.push(Kie(l,e+Uie,t)),o.unshift(Kie(l,e-Uie,t))}}return{type:"polygon",vertices:[...r,...o]}}(t,n,e.collider)}else this.collider=M2({type:"polyline",points:t},e.collider)}))}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];this.points.length||(this.segments=this.segments.length?this.segments:Goe(this.attrs.d),this.points=function(e){const t=[];let n,r=e.length;for(let o=0;o<r;o++){n=e[o];for(let e=0;e<n.length;e++)t.push(n[e])}return t}(this.segments));const t=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(this.points):this.points,[n,r,o,i]=z2(t);return this.__boundingRect[e]={x:n||0,y:r||0,width:o-n||0,height:i-r||0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}function Zie(e){let{data:t,_boundingRect:n,_textBoundsFn:r}=e;return null!=t&&(n||r)}let eae=class extends Iie{constructor(){super("text"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,dx:r=0,dy:o=0,textBoundsFn:i,text:a,title:s,collider:l,boundingRect:u,ellipsed:c}=e;super.set(e),this.attrs.x=t,this.attrs.y=n,this.attrs.dx=r,this.attrs.dy=o,this.attrs.text=a,void 0!==s&&(this.attrs.title=String(s)),"object"==typeof u?this._textBoundsFn=()=>u:"function"==typeof i&&(this._textBoundsFn=i),"string"==typeof c&&(this.ellipsed=c),this.collider=M2({type:Zie(this)?"bounds":null},l),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[t])return this.__boundingRect[t];if("function"!=typeof this._textBoundsFn)return{x:0,y:0,width:0,height:0};e=this._textBoundsFn(this.attrs);const n=q2(e),r=t&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(n):n,[o,i,a,s]=z2(r);return this.__boundingRect[t]={x:o,y:i,width:a-o,height:s-i},this.__boundingRect[t]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}};const tae=G5();function nae(e,t){return tae.get(e)(t)}tae.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Hie(...t)})),tae.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Gie(...t)})),tae.add("text",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new eae(...t)})),tae.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Vie(...t)})),tae.add("path",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Jie(...t)})),tae.add("stage",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new zie(...t)})),tae.add("container",Oie),tae.add("defs",Oie),tae.add("linearGradient",Fie),tae.add("radialGradient",Fie),tae.add("conicGradient",Fie),tae.add("stop",Fie),tae.add("pattern",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Wie(...t)}));const rae=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[{}];function n(){return t[t.length-1]}return n.save=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=n(),i={};let a="";for(let t=0;t<e.length;t++)a=e[t],void 0!==o[a]&&(i[a]=o[a]);return M2(i,r),t.push(i),n()},n.restore=function(){t.splice(t.length-1,1)},n}(["stroke","fill","strokeWidth","opacity","fontFamily","fontSize","baseline"]);function oae(e,t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n](e)}function iae(e,t,n){e.node=n[t],e.index=t}function aae(e,t,n,r){let o=!1;const i={siblings:e,node:null,index:0};for(let a=0,s=e.length;a<s;a++){if(iae(i,a,e),oae(i,r.create),o="function"==typeof i.node.disabled?i.node.disabled():i.node.disabled,o)continue;i.node=rae.save(i.node);const s=nae(i.node.type,i.node);s&&(i.node.transform&&(n.save(),hie(i.node.transform,n)),n.isIdentity()||(s.modelViewMatrix=n.clone()),t.addChild(s),i.node.children&&aae(i.node.children,s,n,r),i.node.transform&&n.restore()),rae.restore()}}function sae(e){let{items:t,stage:n,dpi:r,on:o={}}=e;return n||(n=nae("stage",r)),aae(t,n,new lie,o),n}function lae(e,t,n){const{orientation:r,degree:o,stops:i=[]}=n;let a=null;if("radial"===r){const n=t.boundingRect();a=e.createRadialGradient(n.x+n.width/2,n.y+n.height/2,1e-5,n.x+n.width/2,n.y+n.height/2,Math.max(n.width,n.height)/2)}else if("conic"===r){const t=n.startAngle||0,r=n.x||0,o=n.y||0;a=e.createConicGradient(t,r,o)}else{const r=c9(o);["x1","x2","y1","y2"].forEach((e=>{e in n&&(r[e]=n[e])}));const i=t.boundingRect();a=e.createLinearGradient(i.x+r.x1*i.width,i.y+r.y1*i.height,i.x+r.x2*i.width,i.y+r.y2*i.height)}for(let e=0,t=i.length;e<t;e++){let t=i[e];a.addColorStop(t.offset,t.color)}return a}function uae(e,t,n){return t.width=e.width,t.height=e.height,n.save(),n.fillStyle=e.fill,e.shapes.forEach((e=>{if("rect"===e.type)n.rect(e.x,e.y,e.width,e.height)})),n.fill(),n.restore(),n.createPattern(t,"repeat")}function cae(){let{x:e,y:t,width:n,height:r,scaleRatio:o,margin:i,edgeBleed:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0},edgeBleed:{left:0,right:0,top:0,bottom:0,bool:!1}};return s.x=isNaN(e)?s.x:e,s.y=isNaN(t)?s.y:t,s.width=isNaN(n)?s.width:n,s.height=isNaN(r)?s.height:r,void 0!==o&&(s.scaleRatio.x=isNaN(o.x)?s.scaleRatio.x:o.x,s.scaleRatio.y=isNaN(o.y)?s.scaleRatio.y:o.y),void 0!==i&&(s.margin.left=isNaN(i.left)?0:i.left,s.margin.top=isNaN(i.top)?0:i.top),"object"==typeof a&&["left","right","top","bottom"].forEach((e=>{!isNaN(a[e])&&a[e]>0&&(s.edgeBleed[e]=a[e],s.edgeBleed.bool=!0)})),s.computedPhysical={x:Math.round(s.margin.left+(s.x-s.edgeBleed.left)*s.scaleRatio.x),y:Math.round(s.margin.top+(s.y-s.edgeBleed.top)*s.scaleRatio.y),width:Math.round((s.width+s.edgeBleed.left+s.edgeBleed.right)*s.scaleRatio.x),height:Math.round((s.height+s.edgeBleed.top+s.edgeBleed.bottom)*s.scaleRatio.y)},s}function dae(){const e={element:()=>{},root:()=>{},settings:()=>{},appendTo:()=>{},getScene:()=>[],render:()=>!1,itemsAt:()=>[],findShapes:()=>[],clear:()=>{},destory:()=>{},size:()=>{},measureText:Nre,textBounds:jre,setKey:t=>{e.element().setAttribute("data-key",t)}};return e}function pae(e){return t=>{let{node:n}=t;"text"!==n.type||null==n.data||n.textBoundsFn||(n.textBoundsFn=e.textBounds)}}const fae=200,hae=200;class mae{constructor(e){this.targetCanvas=e,this.bufferCanvas=e.cloneNode()}updateSize(e){let t,{rect:n,dpiRatio:r,canvasBufferSize:o}=e;t=o?"function"==typeof o?o(n):o:{width:n.computedPhysical.width+2*fae,height:n.computedPhysical.height+2*hae},this.bufferCanvas.style.width="".concat(t.width,"px"),this.bufferCanvas.style.height="".concat(t.height,"px"),this.bufferCanvas.width=Math.round(t.width*r),this.bufferCanvas.height=Math.round(t.height*r)}apply(){this.targetCanvas.getContext("2d").drawImage(this.bufferCanvas,0,0)}clear(){this.bufferCanvas.width=this.bufferCanvas.width}getContext(){return this.bufferCanvas.getContext("2d")}}const gae=G5();function bae(e){return Array.isArray(e)?e:"string"==typeof e?-1!==e.indexOf(",")?e.split(","):e.split(" "):[]}function yae(e){return("undefined"==typeof window?1:window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}function vae(e,t){t.setTransform(e[0][0],e[1][0],e[0][1],e[1][1],e[0][2],e[1][2])}function xae(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Object.keys(r);for(let o=0,i=n.length;o<i;o++){let i=n[o];const a=i[0],s=i[1],l=i[2];if(a in t.attrs&&!(s in r)&&e[s]!==t.attrs[a]){const n=l?l(t.attrs[a]):t.attrs[a];"function"==typeof e[s]?e[s](n):e[s]=n}}for(let t=0,n=o.length;t<n;t++){const n=o[t];e[n]=r[n]}}function _ae(e,t,n,r){for(let o=0,i=e.length;o<i;o++){let i=e[o],a={};t.save(),i.attrs&&(i.attrs.fill||i.attrs.stroke)&&(i.attrs.fill&&"object"==typeof i.attrs.fill&&"gradient"===i.attrs.fill.type?a.fillStyle=lae(t,i,i.attrs.fill):i.attrs.fill&&"object"==typeof i.attrs.fill&&"pattern"===i.attrs.fill.type&&(a.fillStyle=r.patterns.create(i.attrs.fill)),i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"gradient"===i.attrs.stroke.type?a.strokeStyle=lae(t,i,i.attrs.stroke):i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"pattern"===i.attrs.stroke.type&&(a.strokeStyle=r.patterns.create(i.attrs.stroke))),xae(t,i,n,a),i.modelViewMatrix&&vae(i.modelViewMatrix.elements,t),gae.has(i.type)&&gae.get(i.type)(i.attrs,{g:t,doFill:"fill"in i.attrs&&"none"!==i.attrs.fill,doStroke:"stroke"in i.attrs&&0!==i.attrs["stroke-width"],ellipsed:i.ellipsed}),i.children&&_ae(i.children,t,n,r),t.restore()}}function wae(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sae;const r={transform:void 0,canvasBufferSize:void 0,progressive:void 0};let o,i=!1,a=cae();const s=[["fill","fillStyle"],["stroke","strokeStyle"],["opacity","globalAlpha"],["globalAlpha","globalAlpha"],["stroke-width","lineWidth"],["stroke-linejoin","lineJoin"],["stroke-dasharray","setLineDash",bae]];let l;const u=dae();return u.element=()=>e,u.root=()=>e,u.settings=e=>(e&&Object.keys(r).forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r),u.appendTo=n=>(e||(e=n.ownerDocument.createElement("canvas"),e.style.position="absolute",e.style["-webkit-font-smoothing"]="antialiased",e.style["-moz-osx-font-smoothing"]="antialiased",e.style.pointerEvents="none"),"function"!=typeof r.transform||t||(t=new mae(e)),n.appendChild(e),e),u.getScene=r=>{const o=yae(t&&t.getContext()||e.getContext("2d")),i=a.scaleRatio.x,s=a.scaleRatio.y,l={type:"container",children:r,transform:a.edgeBleed.bool?"translate(".concat(a.edgeBleed.left*o*i,", ").concat(a.edgeBleed.top*o*s,")"):""};return 1===o&&1===i&&1===s||(l.transform+="scale(".concat(o*i,", ").concat(o*s,")")),n({items:[l],dpi:o,on:{create:[Rre(u.measureText),pae(u)]}})},u.render=n=>{if(!e)return!1;l||(l=function(e){const t=e.createElement("canvas"),n=t.getContext("2d");let r={};return{create(e){const o=e.key;return o?(r[o]=r[o]||uae(e,t,n),r[o]):uae(e,t,n)},clear(){r={}}}}(e.ownerDocument));const c=t&&t.getContext()||e.getContext("2d"),d=yae(c),p=t&&r.transform();if(p)return e.width=e.width,function(e){let{el:t,dpiRatio:n,transform:r}=e;if("object"==typeof r){const e=[r.horizontalScaling,r.horizontalSkewing,r.verticalSkewing,r.verticalScaling,r.horizontalMoving*n,r.verticalMoving*n];t.getContext("2d").setTransform(...e)}}({el:e,dpiRatio:d,transform:p}),t.apply(),!0;i&&(e.style.left="".concat(a.computedPhysical.x,"px"),e.style.top="".concat(a.computedPhysical.y,"px"),e.style.width="".concat(a.computedPhysical.width,"px"),e.style.height="".concat(a.computedPhysical.height,"px"),e.width=Math.round(a.computedPhysical.width*d),e.height=Math.round(a.computedPhysical.height*d),t&&t.updateSize({rect:a,dpiRatio:d,canvasBufferSize:r.canvasBufferSize}));const f=u.getScene(n),h=!o||!f.equals(o);l.clear();const m=i||h,g="function"==typeof r.progressive&&r.progressive();return m&&(g&&!g.isFirst||u.clear(),_ae(f.children,c,s,{patterns:l})),t&&(e.width=e.width,t.apply()),i=!1,g&&!g.isFirst&&f.children.unshift(...o.children),o=f,m},u.itemsAt=e=>o?o.getItemsFrom(e):[],u.findShapes=e=>o?o.findShapes(e):[],u.clear=()=>(e&&(e.width=e.width),t&&t.clear(),o=null,u),u.size=e=>{if(e){const t=cae(e);JSON.stringify(a)!==JSON.stringify(t)&&(i=!0,a=t)}return a},u.destroy=()=>{e&&(e.parentElement&&e.parentElement.removeChild(e),e=null),t&&(t=null),o=null},u}function Sae(e,t){gae.add(e,t)}function Cae(e,t){return Math.max(0,Math.min(e,t))}const Eae=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),kae=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Rae=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function Mae(e){return Eae.test(e)}function Aae(e){return kae.test(e)||Rae.test(e)}function Lae(e){let t,n,r=e?e.length:0;for(t=0;t<r;t++){if(n=e[t],Mae(n))return"ltr";if(Aae(n))return"rtl"}return"ltr"}const Iae={start:"end",end:"start",center:"center",middle:"middle"};function Pae(e,t){return"rtl"===t?Iae[e]:e}function Tae(e,t){const n=[];let r;const o=[],i=[],a=[];let s,l;const u=e=>e.id,c=(e,t)=>{let n;return n="object"==typeof e?"id"in e?e.id:t:e,{content:e,id:"".concat(n,"__").concat(e.type||"")}};e.isTree||(e=e.map(c)),t=t.map(c),s=e.map(u),l=t.map(u);for(let e=0,r=t.length;e<r;e++){-1===s.indexOf(t[e].id)?n.push(t[e]):i.push(t[e])}for(let t=0,n=e.length;t<n;t++){-1===l.indexOf(e[t].id)?o.push(e[t]):a.push(e[t])}for(let e=0,t=n.length;e<t;e++)n[e].content.children&&(n[e].diff=Tae([],n[e].content.children),n[e].children=n[e].diff.updatedNew.concat(n[e].diff.added),n[e].children.isTree=!0);for(let e=0,t=i.length;e<t;e++)i[e].diff=Tae(a[e].children||[],i[e].content.children||[]),i[e].object=a[e].object,i[e].children=i[e].diff.items;return r=i.concat(n),n.isTree=!0,o.isTree=!0,i.isTree=!0,a.isTree=!0,r.isTree=!0,{added:n,updatedNew:i,updatedOld:a,removed:o,items:r}}function Dae(e,t,n){for(let r=0,o=e.length;r<o;r++)e[r].object=n(e[r].content.type,t)}function Oae(e,t){for(let n=0,r=e.length;n<r;n++)null!==e[n].object&&void 0!==e[n].object&&(t(e[n].object),e[n].object=null)}function zae(e,t,n,r){let o;for(let i=0,a=e.length;i<a;i++)o=e[i],null!==o.object&&void 0!==o.object&&(n(o.object,o.content),o.diff&&(Dae(o.diff.added,o.object,t),Oae(o.diff.removed,r),zae(o.diff.items,t,n,r)))}function Nae(e,t,n,r,o,i){const a=Tae(e,t);return Dae(a.added,n,r),Oae(a.removed,i),zae(a.items,r,o,i),a.items}Sae("rect",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),e.rx>0||e.ry>0?function(e,t,n,r,o,i,a){i=Cae(r/2,i>0?i:a),a=Cae(o/2,a>0?a:i),e.moveTo(t,n+a),e.lineTo(t,n+o-a),e.quadraticCurveTo(t,n+o,t+i,n+o),e.lineTo(t+r-i,n+o),e.quadraticCurveTo(t+r,n+o,t+r,n+o-a),e.lineTo(t+r,n+a),e.quadraticCurveTo(t+r,n,t+r-i,n),e.lineTo(t+i,n),e.quadraticCurveTo(t,n,t,n+a)}(n,e.x,e.y,e.width,e.height,e.rx,e.ry):n.rect(e.x,e.y,e.width,e.height),r&&n.fill(),o&&n.stroke()})),Sae("circle",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),n.moveTo(e.cx+e.r,e.cy),n.arc(e.cx,e.cy,e.r,0,2*Math.PI,!1),r&&n.fill(),o&&n.stroke()})),Sae("line",(function(e,t){let{g:n,doStroke:r}=t;n.beginPath(),n.moveTo(e.x1,e.y1),n.lineTo(e.x2,e.y2),r&&n.stroke()})),Sae("path",(function(e,t){let{g:n,doStroke:r,doFill:o}=t;const i=new Path2D(e.d);o&&n.fill(i),r&&n.stroke(i)})),Sae("text",(function(e,t){let{g:n,ellipsed:r,doStroke:o}=t;const i=r||Mre(e,Nre);n.font=[e["font-style"],e["font-weight"],e["font-size"],e["font-family"]].filter((e=>!!e)).join(" ");const a=Lae(e.text);n.canvas.dir!==a&&(n.canvas.dir=a);const s=Pae("middle"===e["text-anchor"]?"center":e["text-anchor"],n.canvas.dir);s&&n.textAlign!==s&&(n.textAlign=s);const l=Are(e);n.fillText(i,e.x+e.dx,e.y+e.dy+l),o&&n.strokeText(i,e.x+e.dx,e.y+e.dy+l)}));const qae="http://www.w3.org/2000/svg",jae=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Invalid type: ".concat(e));const n=t.ownerDocument.createElementNS(qae,"container"===e?"g":e);return t.appendChild(n),n},Fae=e=>{e.parentNode&&e.parentNode.removeChild(e)},Bae=(e,t)=>{if((e=>{switch(e.type){case"circle":return!isNaN(e.attrs.cx)&&!isNaN(e.attrs.cy)&&!isNaN(e.attrs.r);case"line":return!(isNaN(e.attrs.x1)||isNaN(e.attrs.y1)||isNaN(e.attrs.x2)||isNaN(e.attrs.y2));case"rect":return!(isNaN(e.attrs.x)||isNaN(e.attrs.y)||isNaN(e.attrs.width)||isNaN(e.attrs.height));case"text":return!isNaN(e.attrs.x)&&!isNaN(e.attrs.y);default:return!0}})(t)){for(const n in t.attrs)if("stroke"===n&&t.strokeReference)e.setAttribute("stroke",t.strokeReference);else if("fill"===n&&t.fillReference)e.setAttribute("fill",t.fillReference);else if("text"===n){e.setAttribute("style","white-space: pre"),e.textContent=t.ellipsed||Mre(t.attrs,Nre);const n=Lae(t.attrs.text);"rtl"===n&&(e.setAttribute("direction","rtl"),e.setAttribute("dir","rtl"),e.setAttribute("text-anchor",Pae(e.getAttribute("text-anchor"),n)))}else if("text"!==t.type||"dy"!==n&&"dominant-baseline"!==n)if("text"===t.type&&"title"===n&&t.attrs.title){const n=e.ownerDocument.createElementNS(qae,"title");n.textContent=t.attrs.title,e.appendChild(n)}else e.setAttribute(n,t.attrs[n]);else{const r=+e.getAttribute(n)||0;let o=0;o="dominant-baseline"===n?Are(t.attrs):t.attrs[n],e.setAttribute("dy",o+r)}if("string"==typeof t.data||"number"==typeof t.data||"boolean"==typeof t.data)e.setAttribute("data",t.data);else if("object"==typeof t.data&&null!==t.data)for(const n in t.data)"string"!=typeof t.data[n]&&"number"!=typeof t.data[n]&&"boolean"!=typeof t.data[n]||e.setAttribute("data-".concat(n),t.data[n])}};class $ae{constructor(e,t,n,r){this.create=e,this.nodeCreator=t,this.nodeMaintainer=n,this.nodeDestroyer=r}render(e,t){return this.create([],e,t,this.nodeCreator,this.nodeMaintainer,this.nodeDestroyer)}}function Wae(){return new $ae(Nae,jae,Bae,Fae)}function Hae(e){let t,n,r,o=0;if(0===(e=JSON.stringify(e)).length)return o;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o&=o;return o}function Gae(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qae,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sae;const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wae)();let r,o,i,a=!1,s=cae();const l={transform:void 0,disableScreenReader:!1},u=dae(),c={type:"defs",children:[]},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hae,n={},r=Date.now();const o={onCreate(o){let i={};o.node&&"object"==typeof o.node.fill&&"pattern"===o.node.fill.type&&o.node.fill.shapes&&(i.fill=o.node.fill),o.node&&"object"==typeof o.node.stroke&&"pattern"===o.node.stroke.type&&o.node.stroke.shapes&&(i.stroke=o.node.stroke),Object.keys(i).forEach((a=>{let s="";const l=i[a],u=t(l),c="picasso-pattern-".concat(r,"-").concat(u);if("undefined"!=typeof window&&(s=window.location.href.split("#")[0]),!n[u]){const t={patternUnits:"userSpaceOnUse",x:0,y:0,width:l.width,height:l.height,type:"pattern",id:c,children:[],fill:l.fill};l.shapes.forEach((e=>{t.children.push(e)})),e.push(t),n[u]=!0}o.node["".concat(a,"Reference")]="url('".concat(s,"#").concat(c,"')")}))},clear(){n={}}};return o}(c.children),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hae,n={},r=Date.now();const o={getOrCreateGradient(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=t(o[i]),l="picasso-gradient-".concat(r,"-").concat(s);if(!n[s]){let{orientation:t,degree:r,stops:a=[]}=o[i],u={};void 0===r&&(r=90),"radial"===t?u.type="radialGradient":(u=c9(r),["x1","x2","y1","y2"].forEach((e=>{e in o[i]&&(u[e]=o[i][e])})),u.type="linearGradient"),u.id=l,u.children=a.map((e=>{let{offset:t,color:n,opacity:r}=e;return{type:"stop",offset:"".concat(100*t,"%"),style:"stop-color:".concat(n,";stop-opacity:").concat(void 0!==r?r:1)}})),e.push(u),n[s]=l}return"url('".concat(a,"#").concat(l,"')")},onCreate(e){let t="";"undefined"!=typeof window&&(t=window.location.href.split("#")[0]);const n=e.node;n.fill&&"object"==typeof n.fill&&"gradient"===n.fill.type&&(n.fillReference=o.getOrCreateGradient(n,"fill",t)),n.stroke&&"object"==typeof n.stroke&&"gradient"===n.stroke.type&&(n.strokeReference=o.getOrCreateGradient(n,"stroke",t))},clear(){n={}}};return o}(c.children);return u.element=()=>r,u.root=()=>o,u.settings=e=>(e&&Object.keys(l).forEach((t=>{void 0!==e[t]&&(l[t]=e[t])})),l),u.appendTo=t=>(r||(r=t.ownerDocument.createElementNS(e,"svg"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none",r.setAttribute("xmlns",e),o=t.ownerDocument.createElementNS(e,"g"),o.style.pointerEvents="auto",r.appendChild(o)),t.appendChild(r),r),u.getScene=e=>{const n=s.scaleRatio.x,r=s.scaleRatio.y,o={type:"container",children:Array.isArray(e)?[...e,c]:e,transform:s.edgeBleed.bool?"translate(".concat(s.edgeBleed.left*n,", ").concat(s.edgeBleed.top*r,")"):""};return 1===n&&1===r||(o.transform+="scale(".concat(n,", ").concat(r,")")),t({items:[o],on:{create:[e=>{e.node.fillReference=void 0,e.node.strokeReference=void 0},p.onCreate,d.onCreate,Rre(u.measureText),pae(u)]}})},u.render=e=>{if(!r)return!1;const t="function"==typeof l.transform&&l.transform();if(t){const{horizontalScaling:e,horizontalSkewing:n,verticalSkewing:r,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return o.style.transform="matrix(".concat(e,", ").concat(n,", ").concat(r,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}o.style.transform="";l.disableScreenReader&&r.setAttribute("aria-hidden",!0),a&&(r.style.left="".concat(s.computedPhysical.x,"px"),r.style.top="".concat(s.computedPhysical.y,"px"),r.setAttribute("width",s.computedPhysical.width),r.setAttribute("height",s.computedPhysical.height)),p.clear(),d.clear(),c.children.length=0;const f=u.getScene(e),h=!i||!f.equals(i),m=a||h;return m&&(u.clear(),n.render(f.children,o)),a=!1,i=f,m},u.itemsAt=e=>i?i.getItemsFrom(e):[],u.findShapes=e=>i?i.findShapes(e):[],u.clear=()=>{if(!o)return u;i=null;const e=o.cloneNode(!1);return r.replaceChild(e,o),o=e,u},u.destroy=()=>{r&&r.parentNode&&r.parentNode.removeChild(r),r=null,o=null},u.size=e=>{if(e){const t=cae(e);JSON.stringify(s)!==JSON.stringify(t)&&(a=!0,s=t)}return s},u}var Vae,Uae,Yae,Kae,Xae,Qae,Jae,Zae={},ese=[],tse=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function nse(e,t){for(var n in t)e[n]=t[n];return e}function rse(e){var t=e.parentNode;t&&t.removeChild(e)}function ose(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Vae.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return ise(e,a,r,o,null)}function ise(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Yae:o};return null==o&&null!=Uae.vnode&&Uae.vnode(i),i}function ase(e){return e.children}function sse(e,t){this.props=e,this.context=t}function lse(e,t){if(null==t)return e.__?lse(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?lse(e):null}function use(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return use(e)}}function cse(e){(!e.__d&&(e.__d=!0)&&Kae.push(e)&&!dse.__r++||Xae!==Uae.debounceRendering)&&((Xae=Uae.debounceRendering)||Qae)(dse)}function dse(){var e,t,n,r,o,i,a,s;for(Kae.sort(Jae);e=Kae.shift();)e.__d&&(t=Kae.length,r=void 0,o=void 0,a=(i=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=nse({},i)).__v=i.__v+1,xse(s,i,o,n.__n,void 0!==s.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?lse(i):a,i.__h),_se(r,i),i.__e!=a&&use(i)),Kae.length>t&&Kae.sort(Jae));dse.__r=0}function pse(e,t,n,r,o,i,a,s,l,u){var c,d,p,f,h,m,g,b=r&&r.__k||ese,y=b.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(f=n.__k[c]=null==(f=t[c])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?ise(null,f,null,null,f):Array.isArray(f)?ise(ase,{children:f},null,null,null):f.__b>0?ise(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=b[c])||p&&f.key==p.key&&f.type===p.type)b[c]=void 0;else for(d=0;d<y;d++){if((p=b[d])&&f.key==p.key&&f.type===p.type){b[d]=void 0;break}p=null}xse(e,f,p=p||Zae,o,i,a,s,l,u),h=f.__e,(d=f.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,f),g.push(d,f.__c||h,f)),null!=h?(null==m&&(m=h),"function"==typeof f.type&&f.__k===p.__k?f.__d=l=fse(f,l,e):l=hse(e,f,p,b,h,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=lse(p))}for(n.__e=m,c=y;c--;)null!=b[c]&&("function"==typeof n.type&&null!=b[c].__e&&b[c].__e==n.__d&&(n.__d=mse(r).nextSibling),Cse(b[c],b[c]));if(g)for(c=0;c<g.length;c++)Sse(g[c],g[++c],g[++c])}function fse(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?fse(r,t,n):hse(n,r,r,o,r.__e,t));return t}function hse(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function mse(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=mse(n)))return r;return null}function gse(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||tse.test(t)?n:n+"px"}function bse(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||gse(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||gse(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?vse:yse,i):e.removeEventListener(t,i?vse:yse,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function yse(e){return this.l[e.type+!1](Uae.event?Uae.event(e):e)}function vse(e){return this.l[e.type+!0](Uae.event?Uae.event(e):e)}function xse(e,t,n,r,o,i,a,s,l){var u,c,d,p,f,h,m,g,b,y,v,x,_,w,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=Uae.__b)&&u(t);try{e:if("function"==typeof C){if(g=t.props,b=(u=C.contextType)&&r[u.__c],y=u?b?b.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in C&&C.prototype.render?t.__c=c=new C(g,y):(t.__c=c=new sse(g,y),c.constructor=C,c.render=Ese),b&&b.sub(c),c.props=g,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=C.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=nse({},c.__s)),nse(c.__s,C.getDerivedStateFromProps(g,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==C.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),v=0;v<c._sb.length;v++)c.__h.push(c._sb[v]);c._sb=[],c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(p,f,h)}))}if(c.context=y,c.props=g,c.__P=e,x=Uae.__r,_=0,"prototype"in C&&C.prototype.render){for(c.state=c.__s,c.__d=!1,x&&x(t),u=c.render(c.props,c.state,c.context),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[]}else do{c.__d=!1,x&&x(t),u=c.render(c.props,c.state,c.context),c.state=c.__s}while(c.__d&&++_<25);c.state=c.__s,null!=c.getChildContext&&(r=nse(nse({},r),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(p,f)),S=null!=u&&u.type===ase&&null==u.key?u.props.children:u,pse(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=wse(n.__e,t,n,r,o,i,a,l);(u=Uae.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),Uae.__e(e,t,n)}}function _se(e,t){Uae.__c&&Uae.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Uae.__e(e,t.__v)}}))}function wse(e,t,n,r,o,i,a,s){var l,u,c,d=n.props,p=t.props,f=t.type,h=0;if("svg"===f&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,i[h]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),i=null,s=!1}if(null===f)d===p||s&&e.data===p||(e.data=p);else{if(i=i&&Vae.call(e.childNodes),u=(d=n.props||Zae).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||bse(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||bse(e,i,t[i],n[i],r)}(e,p,d,o,s),c)t.__k=[];else if(h=t.props.children,pse(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==f,i,a,i?i[0]:n.__k&&lse(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&rse(i[h]);s||("value"in p&&void 0!==(h=p.value)&&(h!==e.value||"progress"===f&&!h||"option"===f&&h!==d.value)&&bse(e,"value",h,d.value,!1),"checked"in p&&void 0!==(h=p.checked)&&h!==e.checked&&bse(e,"checked",h,d.checked,!1))}return e}function Sse(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Uae.__e(e,n)}}function Cse(e,t,n){var r,o;if(Uae.unmount&&Uae.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Sse(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Uae.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Cse(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||rse(e.__e),e.__=e.__e=e.__d=void 0}function Ese(e,t,n){return this.constructor(e,n)}function kse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createElement:t=document.createElement.bind(document)}=e;let n,r,o=cae();const i={transform:void 0,disableScreenReader:!1},a=dae();return a.element=()=>n,a.root=()=>n,a.settings=e=>(e&&Object.keys(i).forEach((t=>{void 0!==e[t]&&(i[t]=e[t])})),i),a.appendTo=e=>(n||(n=t("div"),n.style.position="absolute",n.style["-webkit-font-smoothing"]="antialiased",n.style["-moz-osx-font-smoothing"]="antialiased",n.style.pointerEvents="none"),e.appendChild(n),n),a.render=e=>{if(!n)return!1;const t="function"==typeof i.transform&&i.transform();if(t){const{horizontalScaling:e,horizontalSkewing:r,verticalSkewing:o,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return n.style.transform="matrix(".concat(e,", ").concat(r,", ").concat(o,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}n.style.transform="";let a;return i.disableScreenReader&&n.setAttribute("aria-hidden",!0),n.style.left="".concat(o.computedPhysical.x,"px"),n.style.top="".concat(o.computedPhysical.y,"px"),n.style.width="".concat(o.computedPhysical.width,"px"),n.style.height="".concat(o.computedPhysical.height,"px"),a=Array.isArray(e)?ose("div",null,e):e,r=function(e,t,n){var r,o,i;Uae.__&&Uae.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],xse(t,e=(!r&&n||t).__k=ose(ase,null,[e]),o||Zae,Zae,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Vae.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),_se(i,e)}(a,n,r),!0},a.renderArgs=[ose],a.clear=()=>{if(n){let e=n.firstChild;for(;e;)n.removeChild(e),e=n.firstChild;r=null}return a},a.destroy=()=>{n&&n.parentElement&&n.parentElement.removeChild(n),n=null,r=null},a.size=e=>(e&&(o=cae(e)),o),a}Vae=ese.slice,Uae={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},Yae=0,sse.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nse({},this.state),"function"==typeof e&&(e=e(nse({},n),this.props)),e&&nse(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),cse(this))},sse.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cse(this))},sse.prototype.render=ase,Kae=[],Qae="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jae=function(e,t){return e.__v.__b-t.__v.__b},dse.__r=0;var Rse=[function(e){e.renderer("svg",Gae)},function(e){e.renderer("canvas",wae)},function(e){e.renderer("dom",kse)}];const Mse={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4};const Ase=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(){let{level:e=Mse.OFF,pipe:t=console}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;const r={[Mse.OFF]:()=>{},[Mse.ERROR]:function(){return t.error(...arguments)},[Mse.WARN]:function(){return t.warn(...arguments)},[Mse.INFO]:function(){return t.info(...arguments)},[Mse.DEBUG]:function(){return t.log(...arguments)}},o=function(e){if(e&&!(n<e)){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];(r[e]||r[Mse.DEBUG])(...o)}};return{log:o,error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.ERROR,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.WARN,...t)},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.INFO,...t)},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.DEBUG,...t)},level:e=>("number"==typeof e&&(n=e),n),LOG_LEVEL:Mse}}(t.logger),o={component:G5(n.component,"component",r),data:G5(n.data,"data",r),formatter:G5(n.formatter,"formatter",r),interaction:G5(n.interaction,"interaction",r),renderer:Pee(n.renderer),scale:G5(n.scale,"scale",r),symbol:G5(n.symbol,"symbol",r),logger:r};function i(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e({palettes:t.palettes.concat(n.palettes||[]),style:M2({},t.style,n.style),logger:n.logger||t.logger,renderer:n.renderer||t.renderer},o)}return t.renderer&&t.renderer.prio&&o.renderer.default(t.renderer.prio[0]),i.use=function(e){return function(e){e(arguments.length>2?arguments[2]:void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o)},i.chart=e=>Iee(e,{registries:o,logger:r,style:t.style,palettes:t.palettes}),i.config=()=>t,Object.keys(o).forEach((e=>{i[e]=o[e]})),i.version=A2,i}({renderer:{prio:["svg","canvas"]},logger:{level:0},style:{"$font-family":"'Source Sans Pro', Arial, sans-serif","$font-size":"12px","$line-height":"16px","$font-size--l":"16px","$font-weight":"normal","$gray-100":"#ffffff","$gray-98":"#f9f9f9","$gray-95":"#f2f2f2","$gray-90":"#e6e6e6","$gray-35":"#595959","$gray-30":"#4d4d4d","$gray-25":"#404040","$gray-20":"#333333","$border-95":"rgba(255, 255, 255, 0.05)","$border-90":"rgba(255, 255, 255, 0.1)","$border-80":"rgba(255, 255, 255, 0.2)","$border-20":"rgba(0, 0, 0, 0.2)","$border-10":"rgba(0, 0, 0, 0.1)","$border-5":"rgba(0, 0, 0, 0.05)","$primary-blue":"#3F8AB3","$primary-green":"#6CB33F","$primary-red":"#DC423F","$primary-orange":"#EF960F","$spacing--s":4,$spacing:8,"$spacing--l":12,"$font-color":"$gray-35","$font-color--inverted":"$gray-90","$guide-color":"$gray-90","$guide-color--inverted":"$gray-35",$border:"$border-80","$border--inverted":"$border-10",$shape:{fill:"$primary-blue",strokeWidth:1,stroke:"$border"},"$shape-outline":{stroke:"$primary-blue",strokeWidth:2},"$shape-guide":{stroke:"$guide-color",strokeWidth:1},"$shape-guide--inverted":{"@extend":"$shape-guide",stroke:"$guide-color--inverted"},$label:{fontSize:"$font-size",fontFamily:"$font-family",fill:"$font-color"},"$label--inverted":{$extend:"$label",fill:"$font-color--inverted"},"$label-overlay":{fontSize:"$font-size--l",fontFamily:"$font-family",fill:"$gray-100",color:"$font-color",stroke:"$guide-color--inverted",strokeWidth:1,borderRadius:4},$title:{"@extend":"$label",fontSize:"$font-size--l",fontWeight:"$font-weight",stroke:"$guide-color--inverted",strokeWidth:0},"$guide-line":{strokeWidth:1,stroke:"$guide-color"},"$guide-line--minor":{strokeWidth:1,stroke:"$gray-95"},"$padding--s":{left:"$spacing--s",right:"$spacing--s",top:"$spacing--s",bottom:"$spacing--s"},$padding:{left:"$spacing",right:"$spacing",top:"$spacing",bottom:"$spacing"},"$selection-area-target":{fill:"$primary-green",strokeWidth:0,opacity:.2}},palettes:[{key:"categorical",colors:[["#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da"]]},{key:"diverging",colors:[["#3d52a1","#3a89c9","#77b7e5","#b4ddf7","#e6f5fe","#ffe3aa","#f9bd7e","#ed875e","#d24d3e","#ae1c3e"]]},{key:"sequential",colors:[["rgb(180,221,212)","rgb(34, 83, 90)"]]}]},{component:Tee,data:qee,formatter:m4,interaction:jee,renderer:Pee(),scale:g7,symbol:w9});Uoe.forEach(Ase.use),Rse.forEach(Ase.use),[].forEach(Ase.use);const Lse=Ase();Lse.use(v2),Lse.renderer.prio(["canvas"]);const Ise=(e,t)=>e&&"center"!==e&&"rtl"===t?FX(e):e,Pse=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:s}}}=OV(),{direction:l}=AV();return ae.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[ae.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:eQ(e),alignItems:Ise(r,l),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:ae.jsx(xQ,{representation:t,textStyle:n})}),ae.jsx(t0,{padding:4/(s<=2?2:1),alignSelf:eQ(e,!0),children:!!t.labelStructure&&yQ(t.labelStructure)})]})},Tse=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,Dse=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>ae.jsxs("span",{children:[ae.jsx(sZ,{...I0({href:e,text:t,interactions:r,color:o}),children:null!=n&&n.maskedValue?n.maskedValue:null==n?void 0:n.originalValue}),!!n&&Tse(n)]}),Ose=({children:e,textStyle:t,shouldEnableStickyText:n})=>ae.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),zse=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=AV(),{isActive:o}=QX(),{layoutService:i,styleService:a}=OV(),{interactions:s}=PV(),l=i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported,u=n&&l;let c=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const d=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...jF,...FF(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:iQ({cell:e,styleService:t,isCellSelected:n}),fontWeight:aQ({cell:e,styleService:t}),fontStyle:sQ({cell:e,styleService:t}),textDecoration:lQ({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n});if(e.representation.type===Cv.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?Pse:_Q;return ae.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:d,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:R0(e,i,n,r)})}if(e.representation.type===Cv.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?Dse:P0;c=ae.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return ae.jsx(Ose,{shouldEnableStickyText:u,textStyle:{...d,...e.representation.type===Cv.Image&&e.isNull?{alignSelf:eQ(e)}:{}},children:c})},Nse=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=OV(),{isSelected:i}=QX(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=BQ([n]),f=k0(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=UK(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return ae.jsx(YK,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return ae.jsxs(A0,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[ae.jsxs(KK,{verticalAlign:eQ(f),width:XK(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[ae.jsx(pQ,{isLeftColumn:a,isCellSelected:b,cell:f}),ae.jsx(zse,{isLeftColumn:a,isCellSelected:b,cell:f})]}),ae.jsx(HQ,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Iv.Measures:Iv.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var qse=B.memo(Nse,PK);const jse=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*r():!n&&a?(a.leafCount+a.distanceToNextCell)*r():r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},Fse=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},Bse=(e,t)=>n=>{e.current&&(e.current[t]=n)},$se={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...NF},Wse={overflow:"hidden",willChange:"auto",flexShrink:0},Hse=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=AV(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=OV(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=_Y();E0(e,d),C0(e,t,n,l);const f=i.rowsOnCurrentPage*l,h={...$se,borderColor:u,width:r.reduce(((e,t)=>e+t),0)};return ae.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=UV(p[u]),{itemCount:g,estimatedItemSize:b,listValues:y}=Fse(t,f,i.rowsOnCurrentPage,h),v=s.isIndentModeEnabled?()=>l:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return ae.jsx(MK,{ref:Bse(e,u),style:{...Wse,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:DQ,estimatedItemSize:b,children:qse},m)}))})};var Gse=F.memo(Hse);const Vse={overflow:"hidden",willChange:"auto"},Use=e=>({...NF,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),Yse=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=AV(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=OV(),{gridSectionsData:{headersData:c,topDimensionData:d}}=_Y(),p={...Use(a),borderColor:l,height:r};E0(e,d),C0(e,n,r,u);const f=s.size.x*i();return 0===d.rowCount?ae.jsx("div",{style:{width:n,height:r,...Use(a)}}):ae.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=Fse(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=x0({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?UV(g):`empty ${l}`;return ae.jsx(MK,{ref:Bse(e,l),style:Vse,height:t(),width:n,itemCount:p,itemSize:jse({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:DQ,estimatedItemSize:h,direction:a,children:qse},b)}))})};var Kse=F.memo(Yse);const Xse=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=OV(),n=UY(),r=(()=>{const{model:e}=PV(),t=F.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:p},scrollbarsDimensions:{verticalScrollbarWidth:f,horizontalScrollbarHeight:h,resetHorizontalScrollbarHeight:m}}=VY(),{leftGridWidth:g,leftGridFullWidth:b,leftGridColumnWidths:y,rightGridFullWidth:v,showLastRightBorder:x,getRightGridColumnWidth:_,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:S}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:o}=OV(),{gridSectionsData:{headersData:i}}=_Y(),{measureText:a}=pB(o.header),s=qY({tableWidth:e}),l=jY({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=F.useCallback(((e,t,n="")=>{let o=e;r.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(n)+SY;return t&&d+20<=l&&(c=!0,d+=20),d+20<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,r.isIndentModeEnabled,i.size.x]);return F.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()}),[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:f,resetHorizontalScrollbarHeight:m}),{gridScaffoldDimensions:C,headerGridDims:E,topGridDims:k,leftGridDims:R,dataGridDims:M,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:L}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=UY(),{pageInfo:l}=AV(),{gridSectionsData:{headersData:u,topDimensionData:c}}=_Y(),d=Math.min(s.height*CY,Math.max(s.height*CY-25,s.height-t-a)),p=s.width*CY,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,n),y=s.width-p,v=Math.max(y,s.width-b),x=Math.min(d,m,g),{availableHeight:_,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:S}=((e,t,n)=>{const r=t+1+n+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(x,b,v),C=_-d,E=Math.max(C,_-x),k=Math.min(E,f),R=Math.min(E,f),M=m+1+f,{visibilityStatus:A,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:I}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=i>t,d=a>n,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:v},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:E}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${v}px`,gridTemplateRows:`${x}px ${E}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(I?i:0),height:g},stickyWrapper:{width:v-1-i,height:-1},self:{width:Math.min(o,v)-(S?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!L&&I?a:0)},stickyWrapper:{width:b,height:E-1-a},self:{width:b,height:Math.max(t,k-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(I?i:0),height:M-g+(!I&&L?a:0)},stickyWrapper:{width:v-1-i,height:E-1-a},self:{width:Math.min(o,v)-(S?1:0)-i,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:A}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:g,leftGridOriginalWidth:b,rightGridOriginalWidth:v},scrollBarsDimensions:{verticalScrollbarWidth:f,horizontalScrollbarHeight:h}}),I=F.useCallback((()=>e),[e]),P=F.useCallback((()=>t),[t]);return(()=>{const{downloadService:e}=OV();F.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),ae.jsxs(KY,{style:C,children:[ae.jsx("div",{style:{overflow:"hidden"},ref:o,children:ae.jsx(S0,{tableWidth:n.width,leftGridWidth:g,columnWidths:y,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:E.height,changeSortOrder:r,overrideLeftGridWidth:S})}),ae.jsx(JY,{style:L.topGrid,origin:Tv.TopGrid,ref:i,children:ae.jsx(YY,{style:k.fullSizeWrapper,children:ae.jsx(ZY,{style:k.stickyWrapper,children:ae.jsx(Kse,{topGridRef:l,rowHightCallback:I,...k.self,showLastBorder:{right:x,bottom:!1},getRightGridColumnWidth:_})})})}),ae.jsx(JY,{style:L.leftGrid,origin:Tv.LeftGrid,ref:a,children:ae.jsx(YY,{style:R.fullSizeWrapper,children:ae.jsx(ZY,{style:R.stickyWrapper,children:ae.jsx(Gse,{leftGridRef:u,...R.self,columnWidths:y,showLastBorder:{right:!1,bottom:A}})})})}),ae.jsx(JY,{style:L.dataGrid,origin:Tv.DataGrid,ref:s,children:ae.jsx(YY,{style:M.fullSizeWrapper,children:ae.jsx(ZY,{style:M.stickyWrapper,children:ae.jsx(qQ,{dataGridRef:c,rowHightCallback:P,...M.self,showLastBorder:{right:x,bottom:A},getRightGridColumnWidth:_,verticalScrollDirection:d,horizontalScrollDirection:p})})})})]})},Qse=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=PV(),{pageInfo:o,updatePageInfo:i,rect:a}=AV(),{layoutService:s}=OV(),{layout:l,hasData:u}=s;return ae.jsxs(ae.Fragment,{children:[u?ae.jsx(Xse,{}):null,ae.jsx(NV,{}),ae.jsx(kV,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})},Jse={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Zse=12,ele=14,tle=16,nle=24,rle=3,ole=300,ile=400,ale=600,sle=700,lle={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var ule='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function cle(e){return ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ae.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var dle=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return ae.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function ple(e={}){return ae.jsx(dle,{...e,children:ae.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ae.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ae.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function fle(e={}){return ae.jsx(dle,{fontSize:"medium",...e,children:ae.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ae.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ae.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function hle(e){return ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ae.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function mle(e={}){return ae.jsx(dle,{...e,children:ae.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ae.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ae.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ae.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function gle(e={}){return ae.jsx(dle,{fontSize:"medium",...e,children:ae.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ae.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ae.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function ble({className:e}){return ae.jsx(dle,{fontSize:"small",className:e,children:ae.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ae.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ae.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ae.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ae.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ae.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function yle(e={}){return ae.jsx(dle,{...e,children:ae.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ae.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ae.jsx("rect",{stroke:Jse.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const vle={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rle,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var xle=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Jse.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Jse.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ae.jsx(cle,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Jse.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,borderRadius:rle,backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Jse.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Jse.WHITE,color:Jse.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:rle},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rle,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Jse.PURPLE,"&.Mui-focusVisible":{borderColor:Jse.PURPLE,boxShadow:`0 0 0 3px ${D$(Jse.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Jse.GREEN,"&.Mui-focusVisible":{borderColor:Jse.GREEN,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Jse.BLUE,"&.Mui-focusVisible":{borderColor:Jse.BLUE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Jse.ORANGE,"&.Mui-focusVisible":{borderColor:Jse.ORANGE,boxShadow:`0 0 0 3px ${D$(Jse.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Jse.RED,"&.Mui-focusVisible":{borderColor:Jse.RED,boxShadow:`0 0 0 3px ${D$(Jse.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Jse.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Jse.PURPLE_PALE},"&:active":{backgroundColor:Jse.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Jse.PURPLE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Jse.ORANGE_PALE},"&:active":{backgroundColor:Jse.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Jse.ORANGE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Jse.RED_PALE},"&:active":{backgroundColor:Jse.RED_DARK},"&.Mui-focusVisible":{borderColor:Jse.RED_PALE,boxShadow:`0 0 0 3px ${D$(Jse.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Jse.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:rle,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ae.jsx(hle,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Zse,borderRadius:rle,color:Jse.TEXT_PRIMARY,backgroundColor:Jse.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Jse.GREYSCALE_0_05,color:Jse.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Jse.GREEN,borderColor:Jse.GREEN},"&.MuiChip-outlinedInfo":{color:Jse.BLUE,borderColor:Jse.BLUE},"&.MuiChip-outlinedWarning":{color:Jse.ORANGE,borderColor:Jse.ORANGE},"&.MuiChip-outlinedError":{color:Jse.RED,borderColor:Jse.RED}},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:rle,boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Jse.GREEN,borderColor:Jse.GREEN},outlinedSecondary:{color:Jse.BLUE,borderColor:Jse.BLUE},label:{fontFamily:lle.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ae.jsx(hle,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ae.jsx(cle,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:rle},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:rle,fontSize:ele,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Jse.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Jse.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Jse.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Jse.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_05}}},popupIndicator:{borderRadius:rle,border:`solid 1px ${Jse.GREYSCALE_0_15}`,color:Jse.GREYSCALE_0_60,marginRight:0,width:nle,height:nle},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Jse.GREYSCALE_0_15}`},clearIndicator:{borderRadius:rle,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Jse.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ele}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Zse,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Jse.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Jse.GREYSCALE_25,fontSize:Zse,fontFamily:lle.FONT_FAMILY,fontWeight:ale,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Jse.TEXT_PRIMARY},"&.Mui-error":{color:Jse.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Jse.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ile,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Jse.TEXT_SECONDARY,content:"'(required)'",fontWeight:ile,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ele,lineHeight:"16px",backgroundColor:Jse.WHITE,borderRadius:rle,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderColor:Jse.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.RED}`,boxShadow:`0px 0px 0px 1px ${Jse.RED}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_10}`,borderColor:Jse.GREYSCALE_0_10,backgroundColor:Jse.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Jse.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Jse.GREYSCALE_0_15,borderRadius:rle,boxShadow:`inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ae.jsx(cle,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Jse.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Jse.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&:focus":{backgroundColor:Jse.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Jse.GREYSCALE_0_30,"&:hover":{backgroundColor:Jse.GREYSCALE_0_0,borderColor:Jse.GREYSCALE_0_15},"& ~svg":{color:Jse.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:rle}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Jse.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ele,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Zse,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Zse,fontWeight:ale,color:Jse.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ale}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ae.jsx(gle,{}),checkedIcon:ae.jsx(fle,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Jse.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Jse.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Jse.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ae.jsx(yle,{}),checkedIcon:ae.jsx(ple,{}),indeterminateIcon:ae.jsx(mle,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:rle,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Jse.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Jse.GREYSCALE_0_55,color:Jse.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Jse.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Jse.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Jse.GREYSCALE_0_55,"&:hover":{color:Jse.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Jse.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Jse.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ele,color:Jse.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ale},secondary:{fontSize:Zse,color:Jse.GREYSCALE_45,fontWeight:ile,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ele,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ele,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Jse.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Zse,borderBottom:`solid 1px ${Jse.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ele,color:Jse.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Jse.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${ule}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Jse.RED}}},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Jse.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Jse.GREEN,height:"24px","&.Mui-disabled":{color:Jse.GREYSCALE_0_15}},rail:{backgroundColor:Jse.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle,boxShadow:`inset 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.WHITE,boxShadow:`0px 1px 2px 0px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`,"&:hover":{borderRadius:rle,boxShadow:`0 2px 4px 0 ${Jse.GREYSCALE_0_30}, 0 0 0 1px ${Jse.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Jse.GREYSCALE_0_15}, 0 0 0 1px ${Jse.GREYSCALE_0_06}, 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Jse.GREYSCALE_0_15}, 0 0 0 1px ${Jse.GREYSCALE_0_06}, 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Jse.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Jse.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Jse.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15},markLabel:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Jse.WHITE,color:Jse.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Jse.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:ele,fontWeight:ale,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Jse.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,backgroundColor:Jse.GREYSCALE_0_03,borderRadius:rle},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Jse.GREYSCALE_25,"&.Mui-selected":{color:Jse.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ele,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:rle,"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Jse.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Jse.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:rle,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Jse.GREYSCALE_0_05},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderRight:`1px solid ${Jse.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ale,backgroundColor:Jse.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Jse.GREYSCALE_98,borderBottom:`1px solid ${Jse.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderTop:`1px solid ${Jse.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Jse.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Jse.GREYSCALE_0_05,"&:hover":{backgroundColor:Jse.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Jse.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ae.jsx(ble,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Jse.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ele,borderRadius:rle,padding:"7px 16px",border:`1px solid ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_60,color:Jse.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Jse.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`,border:`1px solid ${Jse.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Jse.GREYSCALE_25,backgroundColor:Jse.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Zse,height:24,width:24,padding:7},sizeLarge:{fontSize:tle,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ele,borderRadius:rle}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Jse.GREYSCALE_20},tooltip:{backgroundColor:Jse.GREYSCALE_20,fontSize:Zse,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...vle}:{}});var _le=()=>({mode:"light",primary:{ultraLight:Jse.GREEN_ULTRA_LIGHT,light:Jse.GREEN_PALE,main:Jse.GREEN,dark:Jse.GREEN_DARK,extraDark:Jse.GREEN_EXTRA_DARK,contrastText:Jse.WHITE},secondary:{ultraLight:Jse.BLUE_ULTRA_LIGHT,light:Jse.BLUE_PALE,main:Jse.BLUE,dark:Jse.BLUE_DARK,extraDark:Jse.BLUE_EXTRA_DARK,contrastText:Jse.WHITE},error:{ultraLight:Jse.RED_ULTRA_LIGHT,light:Jse.RED_PALE,main:Jse.RED,dark:Jse.RED_DARK,extraDark:Jse.RED_EXTRA_DARK,contrastText:Jse.WHITE},warning:{ultraLight:Jse.ORANGE_ULTRA_LIGHT,light:Jse.ORANGE_PALE,main:Jse.ORANGE,dark:Jse.ORANGE_DARK,extraDark:Jse.ORANGE_EXTRA_DARK,contrastText:Jse.WHITE},success:{ultraLight:Jse.GREEN_ULTRA_LIGHT,light:Jse.GREEN_PALE,main:Jse.GREEN,dark:Jse.GREEN_DARK,extraDark:Jse.GREEN_EXTRA_DARK,contrastText:Jse.WHITE},info:{ultraLight:Jse.BLUE_ULTRA_LIGHT,light:Jse.BLUE_PALE,main:Jse.BLUE,dark:Jse.BLUE_DARK,extraDark:Jse.BLUE_EXTRA_DARK,contrastText:Jse.WHITE},text:{primary:Jse.TEXT_PRIMARY,secondary:Jse.TEXT_SECONDARY,disabled:Jse.GREYSCALE_0_30},action:{hover:Jse.GREYSCALE_0_03,hoverOpacity:.03,selected:Jse.GREYSCALE_0_05,selectedOpacity:.05,focus:Jse.MISC_FOCUS_BORDER},amethyst:{ultraLight:Jse.WHITE,main:Jse.PURPLE,light:Jse.PURPLE_PALE,dark:Jse.PURPLE_DARK,extraDark:Jse.GREYSCALE_0_0,contrastText:Jse.WHITE},background:{paper:Jse.WHITE,default:Jse.GREYSCALE_95},divider:Jse.GREYSCALE_0_15});var wle=e=>_le();var Sle=(e,t=!1)=>{const n=((e,t)=>xle(t))(0,t);return{components:n,palette:wle(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:ele,fontWeightLight:ole,fontWeightRegular:ile,fontWeightMedium:ale,fontWeightBold:sle,htmlFontSize:ele,fontFamily:lle.FONT_FAMILY,button:{fontWeight:ale,fontSize:ele,textTransform:"none"},body1:{fontSize:tle,lineHeight:"24px"},body2:{fontSize:ele,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:nle,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:tle,fontWeight:ale,lineHeight:"16px"},h6:{fontSize:ele,fontWeight:ale,lineHeight:"16px"},caption:{color:Jse.TEXT_SECONDARY},subtitle1:{fontSize:ele,color:Jse.TEXT_SECONDARY},subtitle2:{fontSize:Zse,color:Jse.TEXT_SECONDARY}},shape:{borderRadius:rle}}},Cle={},Ele={exports:{}},kle={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(kle);var Rle=kle.exports;!function(e){var t=Rle.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(Ele);var Mle=Ele.exports,Ale={},Lle=r(Fx);Object.defineProperty(Ale,"__esModule",{value:!0}),Ale.hexToRgb=Tle,Ale.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Ole(e),n=t.values;return"#".concat(n.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},Ale.hslToRgb=Dle,Ale.decomposeColor=Ole,Ale.recomposeColor=zle,Ale.getContrastRatio=function(e,t){var n=Nle(e),r=Nle(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ale.getLuminance=Nle,Ale.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Nle(e)>.5?jle(e,t):Fle(e,t)},Ale.fade=function(e,t){return qle(e,t)},Ale.alpha=qle,Ale.darken=jle,Ale.lighten=Fle;var Ile=Lle;function Ple(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Tle(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function Dle(e){var t=(e=Ole(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),zle({type:s,values:l})}function Ole(e){if(e.type)return e;if("#"===e.charAt(0))return Ole(Tle(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,Ile.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function zle(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Nle(e){var t="hsl"===(e=Ole(e)).type?Ole(Dle(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qle(e,t){return e=Ole(e),t=Ple(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,zle(e)}function jle(e,t){if(e=Ole(e),t=Ple(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return zle(e)}function Fle(e,t){if(e=Ole(e),t=Ple(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return zle(e)}var Ble,$le,Wle,Hle={},Gle={exports:{}},Vle={exports:{}},Ule={exports:{}};function Yle(){return Ble||(Ble=1,function(e){var t=Rle.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ule)),Ule.exports}function Kle(){return $le||($le=1,function(e){var t=Rle.default,n=Yle();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Vle)),Vle.exports}function Xle(){return Wle||(Wle=1,function(e){var t=Kle();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Gle)),Gle.exports}var Qle,Jle={exports:{}};function Zle(){return Qle||(Qle=1,function(e){var t=aD();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Jle)),Jle.exports}var eue,tue={};var nue,rue={};var oue,iue={},aue={};var sue,lue={};var uue,cue={};var due,pue={};var fue,hue={};var mue,gue={};var bue,yue={};var vue,xue,_ue={};function wue(){if(xue)return iue;xue=1;var e=cT;Object.defineProperty(iue,"__esModule",{value:!0}),iue.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,v=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,S=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,C=e.info,E=void 0===C?{light:c.default[300],main:c.default[500],dark:c.default[700]}:C,k=e.success,R=void 0===k?{light:d.default[300],main:d.default[500],dark:d.default[700]}:k,M=e.type,A=void 0===M?"light":M,L=e.contrastThreshold,I=void 0===L?3:L,P=e.tonalOffset,T=void 0===P?.2:P,D=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=I?h.text.primary:f.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,T),m(e,"dark",i,T),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},q=(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:z(b),secondary:z(v,"A400","A200","A700"),error:z(_),warning:z(S),info:z(E),success:z(R),grey:i.default,contrastThreshold:I,getContrastText:O,augmentColor:z,tonalOffset:T},N[A]),D);return q},iue.dark=iue.light=void 0;var t=e(rD()),n=e(Zle()),r=Lle,o=e(function(){if(oue)return aue;oue=1,Object.defineProperty(aue,"__esModule",{value:!0}),aue.default=void 0;var e={black:"#000",white:"#fff"};return aue.default=e,aue}()),i=e(function(){if(sue)return lue;sue=1,Object.defineProperty(lue,"__esModule",{value:!0}),lue.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return lue.default=e,lue}()),a=e(function(){if(uue)return cue;uue=1,Object.defineProperty(cue,"__esModule",{value:!0}),cue.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return cue.default=e,cue}()),s=e(function(){if(due)return pue;due=1,Object.defineProperty(pue,"__esModule",{value:!0}),pue.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return pue.default=e,pue}()),l=e(function(){if(fue)return hue;fue=1,Object.defineProperty(hue,"__esModule",{value:!0}),hue.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return hue.default=e,hue}()),u=e(function(){if(mue)return gue;mue=1,Object.defineProperty(gue,"__esModule",{value:!0}),gue.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return gue.default=e,gue}()),c=e(function(){if(bue)return yue;bue=1,Object.defineProperty(yue,"__esModule",{value:!0}),yue.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return yue.default=e,yue}()),d=e(function(){if(vue)return _ue;vue=1,Object.defineProperty(_ue,"__esModule",{value:!0}),_ue.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return _ue.default=e,_ue}()),p=Ale,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};iue.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return iue.dark=h,iue}var Sue,Cue={};var Eue,kue={};var Rue,Mue={};var Aue,Lue={},Iue=r(kw);var Pue,Tue={};function Due(){if(Pue)return Tue;Pue=1;var e=cT;Object.defineProperty(Tue,"__esModule",{value:!0}),Tue.default=Tue.duration=Tue.easing=void 0;var t=e(Zle()),n={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)"};Tue.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Tue.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return Tue.default=i,Tue}var Oue,zue,Nue={};function que(){if(zue)return Hle;zue=1;var e=cT;Object.defineProperty(Hle,"__esModule",{value:!0}),Hle.createMuiTheme=function(){return p.apply(void 0,arguments)},Hle.default=void 0,e(Xle());var t=e(Zle()),n=Lle,r=e(function(){if(eue)return tue;eue=1;var e=cT;Object.defineProperty(tue,"__esModule",{value:!0}),tue.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},tue.keys=void 0;var t=e(rD()),n=e(Zle()),r=["xs","sm","md","lg","xl"];return tue.keys=r,tue}()),o=e(function(){if(nue)return rue;nue=1;var e=cT;Object.defineProperty(rue,"__esModule",{value:!0}),rue.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Xle()),n=e(rD());return rue}()),i=e(wue()),a=e(function(){if(Sue)return Cue;Sue=1;var e=cT;Object.defineProperty(Cue,"__esModule",{value:!0}),Cue.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,y=u.fontWeightMedium,v=void 0===y?500:y,x=u.fontWeightBold,_=void 0===x?700:x,w=u.htmlFontSize,S=void 0===w?16:w,C=u.allVariants,E=u.pxToRem,k=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,M=E||function(e){return"".concat(e/S*R,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,C)},L={h1:A(m,96,1.167,-1.5),h2:A(m,60,1.2,-.5),h3:A(b,48,1.167,0),h4:A(b,34,1.235,.25),h5:A(b,24,1.334,0),h6:A(v,20,1.6,.15),subtitle1:A(b,16,1.75,.15),subtitle2:A(v,14,1.57,.1),body1:A(b,16,1.5,.15),body2:A(b,14,1.43,.15),button:A(v,14,1.75,.4,a),caption:A(b,12,1.66,.4),overline:A(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:S,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:v,fontWeightBold:_},L),k,{clone:!1})};var t=e(rD()),n=e(Zle()),r=Lle;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Cue}()),s=e(function(){if(Eue)return kue;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Eue=1,Object.defineProperty(kue,"__esModule",{value:!0}),kue.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return kue.default=t,kue}()),l=e(function(){if(Rue)return Mue;Rue=1,Object.defineProperty(Mue,"__esModule",{value:!0}),Mue.default=void 0;var e={borderRadius:4};return Mue.default=e,Mue}()),u=e(function(){if(Aue)return Lue;Aue=1,Object.defineProperty(Lue,"__esModule",{value:!0}),Lue.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=Iue;return Lue}()),c=e(Due()),d=e(function(){if(Oue)return Nue;Oue=1,Object.defineProperty(Nue,"__esModule",{value:!0}),Nue.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Nue.default=e,Nue}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,y=e.spacing,v=e.typography,x=void 0===v?{}:v,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),S=(0,r.default)(f),C=(0,u.default)(y),E=(0,n.deepmerge)({breakpoints:S,direction:"ltr",mixins:(0,o.default)(S,C,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:C,shape:l.default,transitions:c.default,zIndex:d.default},_),k=arguments.length,R=new Array(k>1?k-1:0),M=1;M<k;M++)R[M-1]=arguments[M];return E=R.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),E)}var f=p;return Hle.default=f,Hle}var jue,Fue={};var Bue,$ue={},Wue=r(Ek);var Hue,Gue,Vue={},Uue={};function Yue(){if(Hue)return Uue;Hue=1;var e=cT;Object.defineProperty(Uue,"__esModule",{value:!0}),Uue.default=void 0;var t=(0,e(que()).default)();return Uue.default=t,Uue}var Kue,Xue,Que={},Jue={};function Zue(){if(Xue)return Que;Xue=1;var e=cT;Object.defineProperty(Que,"__esModule",{value:!0}),Que.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(rD()),n=Lle,r=function(){if(Kue)return Jue;Kue=1;var e=cT;Object.defineProperty(Jue,"__esModule",{value:!0}),Jue.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},Jue.getUnit=n,Jue.toUnitless=r,Jue.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},Jue.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},Jue.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},Jue.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach((function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(Xle());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return Jue}();return Que}var ece,tce={};var nce,rce={};var oce,ice={};var ace,sce={};!function(e){var t=cT,n=Mle;Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Ale;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=n(que()),a=t(function(){if(jue)return Fue;jue=1;var e=cT;Object.defineProperty(Fue,"__esModule",{value:!0}),Fue.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Lle,n=e(que());return Fue}()),s=t(function(){if(Bue)return $ue;Bue=1,Object.defineProperty($ue,"__esModule",{value:!0}),$ue.default=function(t){return(0,e.createStyles)(t)};var e=Wue;return $ue}()),l=t(function(){if(Gue)return Vue;Gue=1;var e=cT;Object.defineProperty(Vue,"__esModule",{value:!0}),Vue.default=void 0;var t=e(rD()),n=Wue,r=e(Yue()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return Vue.default=o,Vue}()),u=t(Zue()),c=t(function(){if(ece)return tce;ece=1;var e=cT;Object.defineProperty(tce,"__esModule",{value:!0}),tce.default=void 0;var t=e(rD()),n=Wue,r=e(Yue()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return tce.default=o,tce}()),d=Due();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var p=t(function(){if(nce)return rce;nce=1;var e=cT;Object.defineProperty(rce,"__esModule",{value:!0}),rce.default=function(){return(0,t.useTheme)()||n.default};var t=Wue;e(F);var n=e(Yue());return rce}()),f=t(function(){if(oce)return ice;oce=1;var e=cT;Object.defineProperty(ice,"__esModule",{value:!0}),ice.default=void 0;var t=e(rD()),n=Wue,r=e(Yue()),o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return ice.default=o,ice}()),h=t(function(){if(ace)return sce;ace=1;var e=cT;Object.defineProperty(sce,"__esModule",{value:!0}),sce.default=void 0;var t=Wue,n=e(Yue()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return sce.default=r,sce}()),m=Wue}(Cle);var lce=Object.defineProperty,uce=(e,t)=>{for(var n in t)lce(e,n,{get:t[n],enumerable:!0})};uce({},{light:()=>cce});const cce={root:{backgroundColor:Jse.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};uce({},{light:()=>dce});const dce={root:{backgroundColor:Jse.WHITE}};uce({},{light:()=>pce});const pce={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Jse.GREYSCALE_0_15}`,"&$focused":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,borderRadius:rle,backgroundColor:Jse.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};uce({},{light:()=>fce});const fce={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${Jse.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Jse.WHITE,color:Jse.TEXT_PRIMARY}};uce({},{light:()=>hce});const hce={inputRoot:{boxSizing:"border-box",borderRadius:rle,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:ele,height:"32px",'&[data-focus="true"]':{backgroundColor:Jse.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:rle,border:`solid 1px ${Jse.GREYSCALE_0_15}`,color:Jse.GREYSCALE_0_60,marginRight:0,width:nle,height:nle,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${Jse.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:Jse.GREYSCALE_25,width:tle,height:nle,borderRadius:rle,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:Cle.alpha(Jse.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:Jse.GREYSCALE_0_10}};uce({},{light:()=>mce});const mce={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};uce({},{light:()=>gce});const gce={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rle,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&$focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&$focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};uce({},{light:()=>bce});const bce={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:rle},groupedText:{padding:"8px 16px","&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&$focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&$focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}}};uce({},{light:()=>yce});const yce={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:Jse.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:rle,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};uce({},{light:()=>vce});const vce={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:Jse.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:Jse.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}}};uce({},{light:()=>xce});const xce={root:{height:"24px",fontSize:Zse,borderRadius:rle,color:Jse.TEXT_PRIMARY,backgroundColor:Jse.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:Jse.GREYSCALE_0_05,color:Jse.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:rle,boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:lle.FONT_FAMILY,lineHeight:"16px"}};uce({},{light:()=>_ce});const _ce={root:{padding:"8px",backgroundColor:Jse.GREYSCALE_98,borderTop:`1px ${Jse.GREYSCALE_0_15} solid`}};uce({},{light:()=>wce});const wce={root:{padding:"24px"}};uce({},{light:()=>Sce});const Sce={root:{marginBottom:0}};uce({},{light:()=>Cce});const Cce={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:Jse.GREYSCALE_98,borderBottom:`1px ${Jse.GREYSCALE_0_15} solid`}};uce({},{light:()=>Ece});const Ece={middle:{margin:"4px 8px"}};uce({},{light:()=>kce});const kce={root:{marginLeft:"-10px"},label:{fontSize:ele}};uce({},{light:()=>Rce});const Rce={root:{fontSize:Zse,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:Jse.RED}},contained:{marginLeft:0,marginRight:0}};uce({},{light:()=>Mce});const Mce={root:{color:Jse.GREYSCALE_25,fontSize:Zse,fontFamily:lle.FONT_FAMILY,fontWeight:ale,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:Jse.TEXT_PRIMARY},"&$error":{color:Jse.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Jse.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:ile,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:Jse.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:ile,marginLeft:"4px"}}};uce({},{light:()=>Ace});const Ace={root:{padding:7,borderRadius:rle,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};uce({},{light:()=>Lce});const Lce={root:{padding:"4px 8px",color:Jse.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};uce({},{light:()=>Ice});const Ice={input:{padding:"8px 12px",lineHeight:"16px"}};uce({},{light:()=>Pce});const Pce={outlined:{fontSize:`${Zse}px`,fontWeight:ale,color:Jse.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:ale}}};uce({},{light:()=>Tce});const Tce={root:{color:Jse.MISC_FOCUS_BORDER}};uce({},{light:()=>Dce});const Dce={padding:{paddingTop:"0px",paddingBottom:"0px"}};uce({},{light:()=>Oce});const Oce={root:{minHeight:"32px",fontSize:ele,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${ule}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Jse.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&:active":{backgroundColor:Jse.GREYSCALE_0_05}}};uce({},{light:()=>zce});const zce={root:{color:Jse.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};uce({},{light:()=>Nce});const Nce={root:{fontSize:"12px"},primary:{fontSize:ele,color:Jse.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:Zse,fontWeight:ole,lineHeight:"16px",color:Jse.TEXT_SECONDARY}};uce({},{light:()=>qce});const qce={root:{'&[role="option"]':{color:Jse.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Zse,borderBottom:`solid 1px ${Jse.GREYSCALE_0_15}`,pointerEvents:"none"}}};uce({},{light:()=>jce});const jce={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:Jse.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};uce({},{light:()=>Fce});const Fce={root:{fontSize:ele,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:Jse.GREYSCALE_25}}};uce({},{light:()=>Bce});const Bce={root:{fontSize:ele,lineHeight:"16px",backgroundColor:Jse.WHITE,borderRadius:rle,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderColor:Jse.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${Jse.RED}`,boxShadow:`0px 0px 0px 1px ${Jse.RED}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_10}`,borderColor:Jse.GREYSCALE_0_10,backgroundColor:Jse.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Jse.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:Jse.GREYSCALE_0_15,borderRadius:rle,boxShadow:`inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};uce({},{light:()=>$ce});const $ce={day:{"&&&:hover":{backgroundColor:Jse.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:Jse.GREEN}}};uce({},{light:()=>Wce});const Wce={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`}};uce({},{light:()=>Hce});const Hce={root:{fill:Jse.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}},"&$disabled":{color:Jse.GREYSCALE_0_20}},"&$disabled":{fill:Jse.GREYSCALE_0_20,stroke:"none"}}};uce({},{light:()=>Gce});const Gce={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:Jse.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:Jse.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&:focus":{backgroundColor:Jse.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:Jse.GREYSCALE_0_30,"&:hover":{backgroundColor:Jse.GREYSCALE_0_0,borderColor:Jse.GREYSCALE_0_15},"& ~svg":{color:Jse.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`}};uce({},{light:()=>Vce});const Vce={root:{color:Jse.GREEN,height:"24px","&$disabled":{color:Jse.GREYSCALE_0_15}},rail:{backgroundColor:Jse.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle,boxShadow:`inset 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.WHITE,boxShadow:`0px 1px 2px 0px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`,"&:hover":{borderRadius:rle,boxShadow:`0 2px 4px 0 ${Jse.GREYSCALE_0_30}, 0 0 0 1px ${Jse.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Jse.GREYSCALE_0_15}, 0 0 0 1px ${Jse.GREYSCALE_0_06}, 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Jse.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:Jse.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Jse.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15},markLabel:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};uce({},{light:()=>Uce});const Uce={root:{backgroundColor:Jse.WHITE,color:Jse.GREYSCALE_25}};uce({},{light:()=>Yce});const Yce={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:Jse.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};uce({},{light:()=>Kce});const Kce={root:{fontSize:ele,fontWeight:ale,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${Jse.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:Jse.GREYSCALE_0_03,borderRadius:rle,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:Jse.GREYSCALE_25,"&$selected":{color:Jse.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};uce({},{light:()=>Xce});const Xce={root:{borderLeft:`1px solid ${Jse.GREYSCALE_85}`}};uce({},{light:()=>Qce});const Qce={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderRight:`1px solid ${Jse.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ale,backgroundColor:Jse.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Jse.GREYSCALE_98,borderBottom:`1px solid ${Jse.GREYSCALE_85}`}};uce({},{light:()=>Jce});const Jce={root:{borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderTop:`1px solid ${Jse.GREYSCALE_85}`}};uce({},{light:()=>Zce});const Zce={root:{backgroundColor:Jse.GREYSCALE_98}};uce({},{light:()=>ede});const ede={hover:{"&$selected":{backgroundColor:Jse.GREYSCALE_0_05,"&:hover":{backgroundColor:Jse.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Jse.GREYSCALE_0_03}}};uce({},{light:()=>tde});const tde={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};uce({},{light:()=>nde});const nde={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:ele,fontWeight:"bold"},indicator:{height:2}};uce({},{light:()=>rde});const rde={root:{height:32,lineHeight:16,width:32,fontSize:ele,borderRadius:rle,padding:"7px 16px",border:`1px solid ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_60,color:Jse.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Jse.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`,border:`1px solid ${Jse.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:Jse.GREYSCALE_25,backgroundColor:Jse.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Zse,height:24,width:24,padding:7},sizeLarge:{fontSize:tle,height:40,width:40,lineHeight:20}};uce({},{light:()=>ode});const ode={root:{height:"32px",lineHeight:"16px",fontSize:ele,borderRadius:rle}};uce({},{light:()=>ide});const ide={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};uce({},{light:()=>ade});const ade={arrow:{color:Jse.GREYSCALE_20},tooltip:{backgroundColor:Jse.GREYSCALE_20,fontSize:Zse,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};function sde(e){var t;const n=((e="light",t=!1)=>Sle(e,t))();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),cH({...n,direction:e})}var lde,ude,cde,dde;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(lde||(lde={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(ude||(ude={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(cde||(cde={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(dde||(dde={}));const pde=e=>e?`${parseInt(e,10)}px`:void 0,fde=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?DF.Transparent:n}},hde=(e,t)=>+(parseInt(e,10)*TF*t+8).toFixed(2),mde=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?IF:"normal",gde=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",bde=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",yde=document.createElement("textarea");function vde(e){yde.value=e,document.body.appendChild(yde),yde.select(),yde.setSelectionRange(0,yde.value.length),document.execCommand("copy"),document.body.removeChild(yde)}yde.style.position="absolute",yde.style.left="-9999px",yde.setAttribute("readonly","");function xde(t){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,n)=>{const r=n.target,o=null==r?void 0:r.closest(`.${db}`);null!=o&&o.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>{vde(n)})):vde(n))})(o)}}),null==t||t.forEach((t=>{t(e,n,o)}))}))}const _de=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>tB(((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(qV,0,0,!0),await e.expandLeft(qV,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=r?r:""]),tid:"expand-dimension",select:i0({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:n0.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(qV,0,0,!0),await e.collapseLeft(qV,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=r?r:""]),tid:"collapse-dimension",select:i0({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:n0.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))}),[e,t,n]),wde=(t,n)=>e.useMemo((()=>(({layout:e,flags:t})=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:s,snapshotData:l}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!l,h=null!==(n=null==l||null===(r=l.content)||void 0===r?void 0:r.rowsPerPage)&&void 0!==n?n:15e3,m={x:Math.min(e.qHyperCube.qSize.qcx,PF),y:Math.min(e.qHyperCube.qSize.qcy,h)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),y=b(jV),v=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:jV,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%x.length;return t?n:d.findIndex((e=>e===x[n]))},getDimensionInfo:e=>e===jV?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=v.get(e))&&void 0!==t?t:-1},size:m,isSnapshot:f,hasLimitedData:!f&&m.x<e.qHyperCube.qSize.qcx,hasData:m.x>0&&m.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:mb.Auto,pixels:hb.PixelsDefault,percentage:hb.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:t,flags:n})),[t,n]),Sde=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=rB(e);return t.current=e,t})(mY(o));return uB((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,o,u)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:s}}=e,{qTop:l,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return l<t.page*t.rowsPerPage||u<Math.min(r,s.qcx)||c<Math.min(n,s.qcy)})(i,r,o,u))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(PF,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),n>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,n,i.qHyperCube.qSize,r,o,u);return t?e.getHyperCubePivotData(qV,gY(t)):[]}return t.qPivotDataPages}),[i,a,e,n,r.page,r.rowsPerPage,l,s])},Cde=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),Ede=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:Cde({rowsPerPage:n,totalRowCount:e,page:t})}),kde=15,Rde=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{const t=e;if(!t.snapshotData||!o||t.snapshotData.content)return t;if("getHyperCubePivotData"in o){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=n,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-kde,0),u=Math.max(s+o-kde,s,0),c=PF-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=mY(n);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(n,i,r),c=gY(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};t.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(qV,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},t.snapshotData.object.size.w=r.width,t.snapshotData.object.size.h=r.height}return t})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var Mde={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const Ade=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(Mde).forEach((t=>{e.add(Mde[t])}))}(t)}),[t]),{translator:t,language:n}},Lde=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>fB(t)),[t]);return e.useEffect((()=>()=>{n.unmount()}),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),s=e.useApp(),l=e.useEmbed(),u=e.useKeyboard(),c=oB(),d=((t,n)=>{const[r]=uB((async()=>{if(void 0!==t&&!n.snapshotData&&"getEffectiveProperties"in t)return{...await t.getEffectiveProperties()}}),[t,n]),o=e.useMemo((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r]);return o})(a,i),p=wde(i,n),f=(t=>{const n=e.useInteractionState();return{...n,select:!!n.active&&!!n.select&&!t,active:!!n.active&&!t,scroll:!!n.active}})(p.isSnapshot),h=e.useSelections(),m=lB(i,r),{translator:g,language:b}=Ade(),{pageInfo:y,updatePageInfo:v}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[s,l]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...Ede(o.qcy,e,a)}})),u=t.layout.qHyperCube.qSize.qcy;return e.useEffect((()=>{l((e=>({...e,...Ede(u,e.page,a),shouldShowPagination:u>t.size.y&&!i})))}),[u,t.size.y,l,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=Cde({...s,page:e});l({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>{l({...s,...e,rowsOnCurrentPage:Cde({...s,...e})})}}})(p,c),x=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,s,l,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(l=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==l?l:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,c),_=Rde({rect:e.useRect(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,S]=Sde({model:a,layoutService:p,viewService:x,pageInfo:y,rect:_}),C=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,s,l,u,c,d,p,f,h,m,g,b,y,v,x,_,w,S,C,E,k,R,M,A,L,I,P,T,D,O,z,N,q,j,F,B,$,W,H,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[lde.LineClamp])&&void 0!==i?i:oe(ude.Grid,cde.Grid,dde.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(s=null==re?void 0:re[lde.ColumnLineClamp])&&void 0!==s?s:oe(ude.Grid,cde.Grid,dde.ColumnLineClamp))&&void 0!==a?a:1):1,se=null!==(l=null!==(u=fde(e,null==Q?void 0:Q[lde.Background]))&&void 0!==u?u:oe(ude.Dimension,cde.LabelName,dde.BackgroundColor))&&void 0!==l?l:DF.Transparent,le={header:{fontSize:null!==(c=null!==(d=pde(null==Q?void 0:Q[lde.FontSize]))&&void 0!==d?d:oe(ude.Dimension,cde.LabelName,dde.FontSize))&&void 0!==c?c:AF,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[lde.FontFamily])&&void 0!==f?f:oe(ude.Dimension,cde.LabelName,dde.FontFamily))&&void 0!==p?p:LF,fontWeight:mde(null==Q?void 0:Q[lde.FontStyle],IF),fontStyle:gde(null==Q?void 0:Q[lde.FontStyle]),textDecoration:bde(null==Q?void 0:Q[lde.FontStyle]),color:null!==(h=null!==(m=fde(e,null==Q?void 0:Q[lde.FontColor]))&&void 0!==m?m:oe(ude.Dimension,cde.LabelName,dde.FontColor))&&void 0!==h?h:$q.TEXT,background:se,hoverBackground:bF(se,gb),activeBackground:bF(se,bb)},dimensionValues:{fontSize:null!==(g=null!==(b=pde(null==J?void 0:J[lde.FontSize]))&&void 0!==b?b:oe(ude.Dimension,cde.LabelValue,dde.FontSize))&&void 0!==g?g:AF,fontFamily:null!==(y=null!==(v=null==J?void 0:J[lde.FontFamily])&&void 0!==v?v:oe(ude.Dimension,cde.LabelValue,dde.FontFamily))&&void 0!==y?y:LF,fontWeight:mde(null==J?void 0:J[lde.FontStyle],void 0),fontStyle:gde(null==J?void 0:J[lde.FontStyle]),textDecoration:bde(null==J?void 0:J[lde.FontStyle]),color:null!==(x=null!==(_=fde(e,null==J?void 0:J[lde.FontColor]))&&void 0!==_?_:oe(ude.Dimension,cde.LabelValue,dde.FontColor))&&void 0!==x?x:$q.TEXT,background:null!==(w=null!==(S=fde(e,null==J?void 0:J[lde.Background]))&&void 0!==S?S:oe(ude.Dimension,cde.LabelValue,dde.BackgroundColor))&&void 0!==w?w:DF.Transparent},measureValues:{fontSize:null!==(C=null!==(E=pde(null==Z?void 0:Z[lde.FontSize]))&&void 0!==E?E:oe(ude.Measure,cde.LabelValue,dde.FontSize))&&void 0!==C?C:AF,fontFamily:null!==(k=null!==(R=null==Z?void 0:Z[lde.FontFamily])&&void 0!==R?R:oe(ude.Measure,cde.LabelValue,dde.FontFamily))&&void 0!==k?k:LF,fontWeight:mde(null==Z?void 0:Z[lde.FontStyle],"normal"),fontStyle:gde(null==Z?void 0:Z[lde.FontStyle]),textDecoration:bde(null==Z?void 0:Z[lde.FontStyle]),color:null!==(M=null!==(A=fde(e,null==Z?void 0:Z[lde.FontColor]))&&void 0!==A?A:oe(ude.Measure,cde.LabelValue,dde.FontColor))&&void 0!==M?M:DF.FontSecondary,background:null!==(L=null!==(I=fde(e,null==Z?void 0:Z[lde.Background]))&&void 0!==I?I:oe(ude.Measure,cde.LabelValue,dde.BackgroundColor))&&void 0!==L?L:DF.Transparent},measureLabels:{fontWeight:mde(null==ee?void 0:ee[lde.FontStyle],"normal"),fontStyle:gde(null==ee?void 0:ee[lde.FontStyle]),textDecoration:bde(null==ee?void 0:ee[lde.FontStyle]),color:null!==(P=null!==(T=fde(e,null==ee?void 0:ee[lde.FontColor]))&&void 0!==T?T:oe(ude.Measure,cde.LabelName,dde.FontColor))&&void 0!==P?P:DF.FontSecondary,background:null!==(D=null!==(O=fde(e,null==ee?void 0:ee[lde.Background]))&&void 0!==O?O:oe(ude.Measure,cde.LabelName,dde.BackgroundColor))&&void 0!==D?D:DF.Transparent},totalValues:{fontWeight:mde(null==te?void 0:te[lde.FontStyle],IF),fontStyle:gde(null==te?void 0:te[lde.FontStyle]),textDecoration:bde(null==te?void 0:te[lde.FontStyle]),color:null!==(z=null!==(N=fde(e,null==te?void 0:te[lde.FontColor]))&&void 0!==N?N:oe(ude.Total,cde.LabelValue,dde.FontColor))&&void 0!==z?z:$q.TEXT,background:null!==(q=null!==(j=fde(e,null==te?void 0:te[lde.Background]))&&void 0!==j?j:oe(ude.Total,cde.LabelValue,dde.BackgroundColor))&&void 0!==q?q:DF.Transparent},nullValues:{fontWeight:mde(null==ne?void 0:ne[lde.FontStyle],"normal"),fontStyle:gde(null==ne?void 0:ne[lde.FontStyle]),textDecoration:bde(null==ne?void 0:ne[lde.FontStyle]),color:null!==(F=null!==(B=fde(e,null==ne?void 0:ne[lde.FontColor]))&&void 0!==B?B:oe(ude.Null,cde.LabelValue,dde.FontColor))&&void 0!==F?F:$q.TEXT,background:null!==($=null!==(W=fde(e,null==ne?void 0:ne[lde.Background]))&&void 0!==W?W:oe(ude.Null,cde.LabelValue,dde.BackgroundColor))&&void 0!==$?$:DF.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(G=fde(e,null==re?void 0:re[lde.Border]))&&void 0!==G?G:oe(ude.Grid,cde.Grid,dde.BorderColor))&&void 0!==H?H:DF.DividerLight,divider:null!==(V=null!==(U=fde(e,null==re?void 0:re[lde.Divider]))&&void 0!==U?U:oe(ude.Grid,cde.Divider,dde.BorderColor))&&void 0!==V?V:DF.DividerDark,background:null!==(Y=null!==(K=fde(e,null==re?void 0:re[lde.Background]))&&void 0!==K?K:oe(ude.Grid,cde.Grid,dde.BackgroundColor))&&void 0!==Y?Y:DF.Transparent},selectedColors:gF(e)};return le.headerCellHeight=Math.max(hde(le.header.fontSize,ae),hde(le.dimensionValues.fontSize,ae),32),le.contentCellHeight=Math.max(hde(le.measureValues.fontSize,ie),hde(le.dimensionValues.fontSize,ie),24),le.dimensionValueTextHeight=hde(le.dimensionValues.fontSize,1),le})(m,p,n)),[m,p,n]),E=((e,t,n)=>{const[,r,o]=uB((async()=>{var t;const r=sj(n.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...r,...s,o,i,a,mB].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(m,i,t),k=e.useOptions(),R=t.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?k.direction:"ltr";xde([_de({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),e.useEffect((()=>{!S&&a&&!!w&&E&&((e,{selections:t,baseObjects:n,coreServices:r,nebulaObjects:o})=>{const i=sde(n.direction);e.render(ae.jsx(B.StrictMode,{children:ae.jsx(qH,{theme:i,children:ae.jsx(TV,{...o,children:ae.jsx(LV,{...n,children:ae.jsx(JX,{selections:t,children:ae.jsx(zV,{...r,children:ae.jsx(wY,{children:ae.jsx(Qse,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:_,pageInfo:y,qPivotDataPages:w,updatePageInfo:v,direction:R},nebulaObjects:{env:t,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:C,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,_,f,h,x,p,c,S,w,C,o,E,g,b,y,v,d,l,u,m,t,R])},Ide={version:"6.0.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};return function(e){return{qae:{properties:{initial:{...Ide,qHyperCubeDef:{...Ide.qHyperCubeDef,qIndentMode:!1}}},data:mv(e)},ext:ZF(e),component(){Lde(e)}}}}));
|
|
208
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}}));function M1(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const A1={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},L1=/%\)?$/,I1=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,P1=/^\(oct\)/i,T1=/^\(dec\)/i,D1=/^\(hex\)/i,O1=/^\(bin\)/i,z1=/^\(rom\)/i,N1=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,q1=/#|0/g;function j1(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function F1(e,t,n){let r;return I1.test(t)?e=j1(e,Number(/\d{2}/.exec(t)[0]),t,n):P1.test(t)?e=j1(e,8,t,n):T1.test(t)?e=j1(e,10,t,n):D1.test(t)?e=j1(e,16,t,n):O1.test(t)?e=j1(e,2,t,n):z1.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=s[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function B1(e,t,n){const r=M1(e);return n?r:new RegExp(r||"",t)}function $1(e,t,n,r){let o,i,a,s,l,u,c,d,p,f=e.pattern;var h,m;r&&(e.abbreviate=!0),h=t,(m=n)&&(m=M1(m)),h&&(h=M1(h)),p=new RegExp("(?:[#0]+".concat(h,")?[#0]+(?:").concat(m,"[#0]+)?")),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),u=t,t=/,/.test(n)?"¤":",",u&&(a=a.replace(B1(u,"g"),t)),c=n,n=".",c&&(a=a.replace(B1(c,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=f.split(c);let b;g[1]&&(b=g[1].match(q1)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=b?b.length:2,e.percentage=L1.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(B1(t,null,!0),"|").concat(B1(n,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=n,e.temp=d}class W1{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return A1;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new W1(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],N1.test(e[0])&&(r.positive.isFunctional=!0),e[1]?N1.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?N1.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||$1(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&$1(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&$1(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,s,l,u,c=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,i=c.d,a=c.t,c.isFunctional)e=F1(e,c.pattern,i);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,o,i=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&s<t.length;)s++,i=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=c.maxPrecision?o=i:r<=n&&!(i>0&&-n<=c.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,u||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let n=l.split(i)[0];if(n+=i,e=R1(n,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),n=u.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<n;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=R1(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===i?c.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+p+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function H1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:o=e=>e}=t;let i,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return i=r?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(u>=n&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),i.get=e=>s[e],i.has=e=>e in s,i.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},i.size=()=>u,i}function G1(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new W1(...t)}(o,e,t,n,r),a=H1(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const V1="D",U1="T",Y1="TS",K1="IV",X1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Q1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],J1=["January","February","March","April","May","June","July","August","September","October","November","December"],Z1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function e2(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function t2(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function n2(e,t){let n,r=function(e){const t=e,n=24*t2(t),r=60*t2(n),o=60*t2(r),i=1e3*t2(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,s=r.s,l=r.f,u=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=n?n.getDay()-1:0,u<0&&(u=6));let c="";return n&&(c=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:o,h:i,m:a,s:s,f:l,t:c}}class r2{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:X1,qDayNames:Q1,qLongMonthNames:J1,qMonthNames:Z1}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[U1]:r.qTimeFmt||"hh:mm:ss",[V1]:r.qDateFmt||"YYYY-MM-DD",[Y1]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new r2(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=n2(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:e2("".concat(t.year).slice(-2),2),YYY:e2("".concat(t.year).slice(-3),3),def:e=>e2("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:e2("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:e2("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>e2("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>e2("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>e2("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>e2("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function o2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new r2(...t)}function i2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=o2(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=H1(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==K1?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=o2(o,e,t),r=H1(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function a2(){let e,{meta:t,id:n,key:r,localeInfo:o,fieldExtractor:i,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return i2(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),G1(n,r,o,i,t)}(t,o),p="dimension"===s?"first":(e,t)=>d(t),f={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=i(f)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:p,formatter:()=>d,tags:()=>t.qTags};return f}function s2(e,t,n,r,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),s={instance:a2(H0({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=s2("qAttrDimInfo",t,n,a,H0({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=s2("qAttrExprInfo",t,n,a,H0({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=s2("qMeasureInfo",t,n,a,H0({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function l2(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const i=l2.util,a={cache:r,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,i),hierarchy:e=>a.hierarchy(e,s,r,i),_cache:()=>r};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(a.extractor=k1,a.hierarchy=E1,a.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(a.extractor=Y0,a.pages=o.qDataPages,a.hierarchy=E1):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,i);const l="S"===o.qMode?e=>e.qElemNumber:void 0,u="S"===o.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...s2("qDimensionInfo",o,e,"",H0({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...s2("qMeasureInfo",o,e,"",H0({},a,{value:u,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const c=e=>{e.forEach((e=>{r.allFields.push(e.instance),c(e.measures),c(e.attrDims),c(e.attrExps)}))};return c(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),o=a2(O0({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,i),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(o)})),r.allFields.push(...r.virtualFields),s}const u2=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],c2=/\/qDimensionInfo(?:\/(\d+))?/,d2=/\/qMeasureInfo\/(\d+)/,p2=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,f2=/\/qAttrExprInfo\/(\d+)/,h2=/\/?qHyperCube/,m2=/\/?qTreeData/,g2=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),b2=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function y2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;h2.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=g2):m2.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=b2);let s=!0;if(c2.test(e)&&(r=+c2.exec(e)[1]),d2.test(e)&&(o=+d2.exec(e)[1]),p2.test(e)){o=-1,r=0;const e=+p2.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(f2.test(e)){const e=o;if(t){o=0;const a=d1(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),r=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+f2.exec(n)[1]}else r>-1?(r=-1,o=+f2.exec(n)[1]):o+=+f2.exec(n)[1]+1}return u2.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||s>=i)&&i>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var u;a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]});return a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i}function v2(e){l2.util=e.data("matrix").util,e.data("q",l2),e.formatter("q-number",G1),e.formatter("q-time",i2)}v2.qBrushHelper=y2,v2.selections=y2;var x2=Object.prototype.hasOwnProperty,_2=Object.prototype.toString,w2=Object.defineProperty,S2=Object.getOwnPropertyDescriptor,C2=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_2.call(e)},E2=function(e){if(!e||"[object Object]"!==_2.call(e))return!1;var t,n=x2.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&x2.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||x2.call(e,t)},k2=function(e,t){w2&&"__proto__"===t.name?w2(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},R2=function(e,t){if("__proto__"===t){if(!x2.call(e,t))return;if(S2)return S2(e,t).value}return e[t]},M2=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=R2(s,n),s!==(o=R2(t,n))&&(c&&o&&(E2(o)||(i=C2(o)))?(i?(i=!1,a=r&&C2(r)?r:[]):a=r&&E2(r)?r:{},k2(s,{name:n,newValue:e(c,a,o)})):void 0!==o&&k2(s,{name:n,newValue:o}));return s},A2="2.8.2";function L2(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"===t?String:Number)(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 I2(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 P2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I2(Object(n),!0).forEach((function(t){L2(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T2(e){return!!e.changedTouches}function D2(e){return"number"==typeof e&&!isNaN(e)}function O2(e){return"number"!=typeof e||isNaN(e)}function z2(e){const t=e.length;let n=NaN,r=NaN,o=NaN,i=NaN;for(let a=0;a<t;a++)n=isNaN(n)?e[a].x:Math.min(n,e[a].x),r=isNaN(r)?e[a].x:Math.max(r,e[a].x),o=isNaN(o)?e[a].y:Math.min(o,e[a].y),i=isNaN(i)?e[a].y:Math.max(i,e[a].y);return[n,o,r,i]}function N2(e){return[{x:e.x1||0,y:e.y1||0},{x:e.x2||0,y:e.y2||0}]}function q2(e){return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}]}function j2(e){const[t,n,r,o]=z2(e);return{x:t,y:n,width:r-t,height:o-n}}function F2(e){return{x1:e[0].x,y1:e[0].y,x2:e[1].x,y2:e[1].y}}function B2(e){const{x:t,y:n,width:r,height:o,x1:i,x2:a,y1:s,y2:l,cx:u,cy:c,r:d,vertices:p}=e||{};return D2(u)&&D2(c)&&D2(d)?"circle":D2(i)&&D2(a)&&D2(s)&&D2(l)?"line":D2(t)&&D2(n)&&D2(r)&&D2(o)?"rect":D2(t)&&D2(n)?"point":Array.isArray(p)?p.every((e=>Array.isArray(e)))?"geopolygon":"polygon":null}function $2(e,t){return{x:t.x-e,y:t.y-e,width:t.width+e,height:t.height+e}}var W2=Math.PI,H2=2*W2,G2=1e-6,V2=H2-G2;function U2(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Y2(){return new U2}function K2(e){return function(){return e}}U2.prototype=Y2.prototype={constructor:U2,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>G2)if(Math.abs(c*s-l*u)>G2&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,g=Math.sqrt(h),b=Math.sqrt(d),y=o*Math.tan((W2-Math.acos((h+d-m)/(2*g*b)))/2),v=y/b,x=y/g;Math.abs(v-1)>G2&&(this._+="L"+(e+v*u)+","+(t+v*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*f)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>G2||Math.abs(this._y1-u)>G2)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%H2+H2),d>V2?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>G2&&(this._+="A"+n+","+n+",0,"+ +(d>=W2)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var X2=Math.abs,Q2=Math.atan2,J2=Math.cos,Z2=Math.max,e5=Math.min,t5=Math.sin,n5=Math.sqrt,r5=1e-12,o5=Math.PI,i5=o5/2,a5=2*o5;function s5(e){return e>=1?i5:e<=-1?-i5:Math.asin(e)}function l5(e){return e.innerRadius}function u5(e){return e.outerRadius}function c5(e){return e.startAngle}function d5(e){return e.endAngle}function p5(e){return e&&e.padAngle}function f5(e,t,n,r,o,i,a){var s=e-n,l=t-r,u=(a?i:-i)/n5(s*s+l*l),c=u*l,d=-u*s,p=e+c,f=t+d,h=n+c,m=r+d,g=(p+h)/2,b=(f+m)/2,y=h-p,v=m-f,x=y*y+v*v,_=o-i,w=p*m-h*f,S=(v<0?-1:1)*n5(Z2(0,_*_*x-w*w)),C=(w*v-y*S)/x,E=(-w*y-v*S)/x,k=(w*v+y*S)/x,R=(-w*y+v*S)/x,M=C-g,A=E-b,L=k-g,I=R-b;return M*M+A*A>L*L+I*I&&(C=k,E=R),{cx:C,cy:E,x01:-c,y01:-d,x11:C*(o/_-1),y11:E*(o/_-1)}}function h5(){var e=l5,t=u5,n=K2(0),r=null,o=c5,i=d5,a=p5,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),p=o.apply(this,arguments)-i5,f=i.apply(this,arguments)-i5,h=X2(f-p),m=f>p;if(s||(s=l=Y2()),d<c&&(u=d,d=c,c=u),d>r5)if(h>a5-r5)s.moveTo(d*J2(p),d*t5(p)),s.arc(0,0,d,p,f,!m),c>r5&&(s.moveTo(c*J2(f),c*t5(f)),s.arc(0,0,c,f,p,m));else{var g,b,y=p,v=f,x=p,_=f,w=h,S=h,C=a.apply(this,arguments)/2,E=C>r5&&(r?+r.apply(this,arguments):n5(c*c+d*d)),k=e5(X2(d-c)/2,+n.apply(this,arguments)),R=k,M=k;if(E>r5){var A=s5(E/c*t5(C)),L=s5(E/d*t5(C));(w-=2*A)>r5?(x+=A*=m?1:-1,_-=A):(w=0,x=_=(p+f)/2),(S-=2*L)>r5?(y+=L*=m?1:-1,v-=L):(S=0,y=v=(p+f)/2)}var I=d*J2(y),P=d*t5(y),T=c*J2(_),D=c*t5(_);if(k>r5){var O,z=d*J2(v),N=d*t5(v),q=c*J2(x),j=c*t5(x);if(h<o5&&(O=function(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,p=d*l-c*u;if(!(p*p<r5))return[e+(p=(c*(t-i)-d*(e-o))/p)*l,t+p*u]}(I,P,q,j,z,N,T,D))){var F=I-O[0],B=P-O[1],$=z-O[0],W=N-O[1],H=1/t5(function(e){return e>1?0:e<-1?o5:Math.acos(e)}((F*$+B*W)/(n5(F*F+B*B)*n5($*$+W*W)))/2),G=n5(O[0]*O[0]+O[1]*O[1]);R=e5(k,(c-G)/(H-1)),M=e5(k,(d-G)/(H+1))}}S>r5?M>r5?(g=f5(q,j,I,P,d,M,m),b=f5(z,N,T,D,d,M,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),M<k?s.arc(g.cx,g.cy,M,Q2(g.y01,g.x01),Q2(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,M,Q2(g.y01,g.x01),Q2(g.y11,g.x11),!m),s.arc(0,0,d,Q2(g.cy+g.y11,g.cx+g.x11),Q2(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,M,Q2(b.y11,b.x11),Q2(b.y01,b.x01),!m))):(s.moveTo(I,P),s.arc(0,0,d,y,v,!m)):s.moveTo(I,P),c>r5&&w>r5?R>r5?(g=f5(T,D,z,N,c,-R,m),b=f5(I,P,q,j,c,-R,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),R<k?s.arc(g.cx,g.cy,R,Q2(g.y01,g.x01),Q2(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,R,Q2(g.y01,g.x01),Q2(g.y11,g.x11),!m),s.arc(0,0,c,Q2(g.cy+g.y11,g.cx+g.x11),Q2(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,R,Q2(b.y11,b.x11),Q2(b.y01,b.x01),!m))):s.arc(0,0,c,_,x,m):s.lineTo(T,D)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-o5/2;return[J2(r)*n,t5(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:K2(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:K2(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:K2(+e),l):r},l.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:K2(+e),l):o},l.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:K2(+e),l):i},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:K2(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function m5(e){this._context=e}function g5(e){return new m5(e)}function b5(e){return e[0]}function y5(e){return e[1]}function v5(){var e=b5,t=null,n=K2(0),r=y5,o=K2(!0),i=null,a=g5,s=null;function l(l){var u,c,d,p,f,h=l.length,m=!1,g=new Array(h),b=new Array(h);for(null==i&&(s=a(f=Y2())),u=0;u<=h;++u){if(!(u<h&&o(p=l[u],u,l))===m)if(m=!m)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(g[d],b[d]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+e(p,u,l),b[u]=+n(p,u,l),s.point(t?+t(p,u,l):g[u],r?+r(p,u,l):b[u]))}if(f)return s=null,f+""||null}function u(){return function(){var e=b5,t=y5,n=K2(!0),r=null,o=g5,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=Y2())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,s,a),+t(l,s,a));if(u)return i=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:K2(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:K2(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:K2(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:K2(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:K2(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:K2(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:K2(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:K2(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}function x5(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function _5(e){return e}m5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var w5=Array.prototype.slice;function S5(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function C5(e){this._context=e}function E5(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function k5(e,t){this._context=e,this._k=(1-t)/6}C5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:S5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:S5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:E5(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:E5(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R5=function e(t){function n(e){return new k5(e,t)}return n.tension=function(t){return e(+t)},n}(0);function M5(e,t){this._context=e,this._alpha=t}M5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>r5){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>r5){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var A5=function e(t){function n(e){return t?new M5(e,t):new k5(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function L5(e){return e<0?-1:1}function I5(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(L5(i)+L5(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function P5(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function T5(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function D5(e){this._context=e}function O5(e){this._context=new z5(e)}function z5(e){this._context=e}function N5(e){this._context=e}function q5(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function j5(e,t){this._context=e,this._t=t}function F5(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function B5(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $5(e,t){return e[t]}function W5(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function H5(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}function G5(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unspecified",r=arguments.length>2?arguments[2]:void 0;const o={},i=e||{get:()=>{},has:()=>!1,default:()=>{}};function a(e,t){if(!e||"string"!=typeof e)throw new TypeError("Invalid argument: key must be a non-empty string");return!(e in o)&&(o[e]=t,!0)}function s(e){return o[e]||i.get(e)}function l(e,o){if(void 0!==o)return a(e,o);const i=s(e);return r&&void 0===i&&r.warn("".concat(e," does not exist in ").concat(n," registry")),i||s(t)}return t=i.default(),l.add=a,l.get=s,l.has=function(e){return!!o[e]||i.has(e)},l.remove=function(e){const t=o[e];return delete o[e],t},l.getKeys=function(){return Object.keys(o)},l.getValues=function(){return Object.keys(o).map((e=>o[e]))},l.default=function(e){return void 0!==e&&(t=e),t},l.register=a,l}function V5(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function U5(e){return(e=V5(Math.abs(e)))?e[1]:NaN}D5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:T5(this,this._t0,P5(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,T5(this,P5(this,n=I5(this,e,t)),n);break;default:T5(this,this._t0,n=I5(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(O5.prototype=Object.create(D5.prototype)).point=function(e,t){D5.prototype.point.call(this,t,e)},z5.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},N5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=q5(e),o=q5(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},j5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Y5,K5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function X5(e){if(!(t=K5.exec(e)))throw new Error("invalid format: "+e);var t;return new Q5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Q5(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function J5(e,t){var n=V5(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}X5.prototype=Q5.prototype,Q5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Z5={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>J5(100*e,t),r:J5,s:function(e,t){var n=V5(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Y5=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+V5(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function e3(e){return e}var t3,n3,r3,o3=Array.prototype.map,i3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function a3(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?e3:(t=o3.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?e3:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(o3.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=X5(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Z5[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===p?i:/[%p]/.test(y)?l:"",_=Z5[y],w=/[defgprs%]/.test(y);function S(e){var o,i,l,p=v,S=x;if("c"===y)S=_(e)+S,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),p=(C?"("===d?d:u:"-"===d||"("===d?"":d)+p,S=("s"===y?i3[8+Y5/3]:"")+S+(C&&"("===d?")":""),w)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var E=p.length+e.length+S.length,k=E<h?new Array(h-E+1).join(t):"";switch(m&&f&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=p+e+S+k;break;case"=":e=p+k+e+S;break;case"^":e=k.slice(0,E=k.length>>1)+p+e+S+k.slice(E);break;default:e=k+p+e+S}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=X5(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(U5(t)/3))),o=Math.pow(10,-r),i=i3[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){t3=a3(e),n3=t3.format,r3=t3.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const s3=new Date,l3=new Date;function u3(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>u3((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(s3.setTime(+t),l3.setTime(+r),e(s3),e(l3),Math.floor(n(s3,l3))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const c3=6e4,d3=864e5,p3=6048e5,f3=u3((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*c3)/d3),(e=>e.getDate()-1));f3.range;const h3=u3((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/d3),(e=>e.getUTCDate()-1));h3.range;const m3=u3((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/d3),(e=>Math.floor(e/d3)));function g3(e){return u3((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*c3)/p3))}m3.range;const b3=g3(0),y3=g3(1),v3=g3(2),x3=g3(3),_3=g3(4),w3=g3(5),S3=g3(6);function C3(e){return u3((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/p3))}b3.range,y3.range,v3.range,x3.range,_3.range,w3.range,S3.range;const E3=C3(0),k3=C3(1),R3=C3(2),M3=C3(3),A3=C3(4),L3=C3(5),I3=C3(6);E3.range,k3.range,R3.range,M3.range,A3.range,L3.range,I3.range;const P3=u3((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));P3.every=e=>isFinite(e=Math.floor(e))&&e>0?u3((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,P3.range;const T3=u3((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function D3(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function O3(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function z3(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=D3,n=(t,n)=>D3(e(t),n),r=(t,n)=>e(t)-n):(t=e===D3||e===O3?e:N3,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function N3(){return 0}T3.every=e=>isFinite(e=Math.floor(e))&&e>0?u3((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,T3.range;const q3=z3(D3).right;z3((function(e){return null===e?NaN:+e})).center;var j3=q3;class F3 extends Map{constructor(e,t=$3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(B3(this,e))}has(e){return super.has(B3(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function B3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $3(e){return null!==e&&"object"==typeof e?e.valueOf():e}const W3=Math.sqrt(50),H3=Math.sqrt(10),G3=Math.sqrt(2);function V3(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=W3?10:i>=H3?5:i>=G3?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?V3(e,t,2*n):[s,l,u]}function U3(e,t,n){return V3(e=+e,t=+t,n=+n)[2]}function Y3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function K3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function X3(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Q3(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=o6(o),c=i6(o),d=o6(i),p=i6(i),f=o6(a),h=i6(a),m=o6(s),g=i6(s),b=o6(l),y=i6(l),v={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:k6,e:k6,f:I6,g:$6,G:H6,H:R6,I:M6,j:A6,L:L6,m:P6,M:T6,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:f4,s:h4,S:D6,u:O6,U:z6,V:q6,w:j6,W:F6,x:null,X:null,y:B6,Y:W6,Z:G6,"%":p4},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:V6,e:V6,f:Q6,g:l4,G:c4,H:U6,I:Y6,j:K6,L:X6,m:J6,M:Z6,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:f4,s:h4,S:e4,u:t4,U:n4,V:o4,w:i4,W:a4,x:null,X:null,y:s4,Y:u4,Z:d4,"%":p4},_={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:g6,e:g6,f:w6,g:p6,G:d6,H:y6,I:y6,j:b6,L:_6,m:m6,M:v6,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:h6,Q:C6,s:E6,S:x6,u:s6,U:l6,V:u6,w:a6,W:c6,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:p6,Y:d6,Z:f6,"%":S6};function w(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=J3[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,o,i=X3(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=K3(X3(i.y,0,1))).getUTCDay(),r=o>4||0===o?k3.ceil(r):k3(r),r=h3.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Y3(X3(i.y,0,1))).getDay(),r=o>4||0===o?y3.ceil(r):y3(r),r=f3.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?K3(X3(i.y,0,1)).getUTCDay():Y3(X3(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,K3(i)):Y3(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=_[o in J3?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var J3={"-":"",_:" ",0:"0"},Z3=/^\s*\d+/,e6=/^%/,t6=/[\\^$*+?|[\]().{}]/g;function n6(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function r6(e){return e.replace(t6,"\\$&")}function o6(e){return new RegExp("^(?:"+e.map(r6).join("|")+")","i")}function i6(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function a6(e,t,n){var r=Z3.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function s6(e,t,n){var r=Z3.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function l6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function u6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function c6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function d6(e,t,n){var r=Z3.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function p6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function f6(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function h6(e,t,n){var r=Z3.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function m6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function g6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function b6(e,t,n){var r=Z3.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function y6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function v6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function x6(e,t,n){var r=Z3.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _6(e,t,n){var r=Z3.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function w6(e,t,n){var r=Z3.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function S6(e,t,n){var r=e6.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function C6(e,t,n){var r=Z3.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function E6(e,t,n){var r=Z3.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function k6(e,t){return n6(e.getDate(),t,2)}function R6(e,t){return n6(e.getHours(),t,2)}function M6(e,t){return n6(e.getHours()%12||12,t,2)}function A6(e,t){return n6(1+f3.count(P3(e),e),t,3)}function L6(e,t){return n6(e.getMilliseconds(),t,3)}function I6(e,t){return L6(e,t)+"000"}function P6(e,t){return n6(e.getMonth()+1,t,2)}function T6(e,t){return n6(e.getMinutes(),t,2)}function D6(e,t){return n6(e.getSeconds(),t,2)}function O6(e){var t=e.getDay();return 0===t?7:t}function z6(e,t){return n6(b3.count(P3(e)-1,e),t,2)}function N6(e){var t=e.getDay();return t>=4||0===t?_3(e):_3.ceil(e)}function q6(e,t){return e=N6(e),n6(_3.count(P3(e),e)+(4===P3(e).getDay()),t,2)}function j6(e){return e.getDay()}function F6(e,t){return n6(y3.count(P3(e)-1,e),t,2)}function B6(e,t){return n6(e.getFullYear()%100,t,2)}function $6(e,t){return n6((e=N6(e)).getFullYear()%100,t,2)}function W6(e,t){return n6(e.getFullYear()%1e4,t,4)}function H6(e,t){var n=e.getDay();return n6((e=n>=4||0===n?_3(e):_3.ceil(e)).getFullYear()%1e4,t,4)}function G6(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+n6(t/60|0,"0",2)+n6(t%60,"0",2)}function V6(e,t){return n6(e.getUTCDate(),t,2)}function U6(e,t){return n6(e.getUTCHours(),t,2)}function Y6(e,t){return n6(e.getUTCHours()%12||12,t,2)}function K6(e,t){return n6(1+h3.count(T3(e),e),t,3)}function X6(e,t){return n6(e.getUTCMilliseconds(),t,3)}function Q6(e,t){return X6(e,t)+"000"}function J6(e,t){return n6(e.getUTCMonth()+1,t,2)}function Z6(e,t){return n6(e.getUTCMinutes(),t,2)}function e4(e,t){return n6(e.getUTCSeconds(),t,2)}function t4(e){var t=e.getUTCDay();return 0===t?7:t}function n4(e,t){return n6(E3.count(T3(e)-1,e),t,2)}function r4(e){var t=e.getUTCDay();return t>=4||0===t?A3(e):A3.ceil(e)}function o4(e,t){return e=r4(e),n6(A3.count(T3(e),e)+(4===T3(e).getUTCDay()),t,2)}function i4(e){return e.getUTCDay()}function a4(e,t){return n6(k3.count(T3(e)-1,e),t,2)}function s4(e,t){return n6(e.getUTCFullYear()%100,t,2)}function l4(e,t){return n6((e=r4(e)).getUTCFullYear()%100,t,2)}function u4(e,t){return n6(e.getUTCFullYear()%1e4,t,4)}function c4(e,t){var n=e.getUTCDay();return n6((e=n>=4||0===n?A3(e):A3.ceil(e)).getUTCFullYear()%1e4,t,4)}function d4(){return"+0000"}function p4(){return"%"}function f4(e){return+e}function h4(e){return Math.floor(+e/1e3)}const m4=G5();m4("d3-number",(function(e,t,n){let r,o;function i(e){return o(e)}function a(){i.locale({decimal:n||".",thousands:t||",",grouping:[3],currency:["$",""]})}return i.locale=function(t){return r=a3(t),o=r.format(e),this},a(),i.format=function(e,o,i,s){return(i||s)&&(t=i,n=s,a()),r.format(e)(o)},i.pattern=function(t){return t&&(e=t,o=r.format(t)),e},i})),m4("d3-time",(function(e){let t=Q3({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n=t.format(e);function r(e){return n(e)}return r.format=function(e,n){return t.format(e)(n)},r.locale=function(){return t=Q3(...arguments),n=t.format(e),this},r.parse=function(e,n){return t.parse(e)(n)},r.parsePattern=function(e){return t.parse(e)},r}));const g4={id:e=>"".concat(e.source,"/").concat(e.key||e.title),key:e=>String(e.key||e.title),tags:e=>e.tags,min:e=>e.min,max:e=>e.max,type:e=>e.type,title:e=>String(e.title),values:e=>e.values,value:e=>e,label:e=>e,formatter:e=>(e=>{if("function"==typeof e.formatter)return e.formatter();const t=e.formatter||{};return m4(t.type||"d3-number")(t.format||"")})(e)};function b4(e){let{id:t=g4.id,key:n=g4.key,min:r=g4.min,max:o=g4.max,type:i=g4.type,tags:a=g4.tags,title:s=g4.title,values:l=g4.values,value:u=g4.value,label:c=g4.label,formatter:d=g4.formatter}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:()=>t(e),key:()=>n(e),raw:()=>e,tags:()=>a(e),type:()=>i(e),min:()=>r(e),max:()=>o(e),title:()=>s(e),items:()=>l(e),formatter:()=>d(e),value:u,label:c}}const y4=e=>e.filter((e=>"number"==typeof e&&!isNaN(e))),v4=e=>e.reduce(((e,t)=>e+t),0),x4={first:e=>e[0],last:e=>e[e.length-1],min:e=>{const t=y4(e);return t.length?Math.min.apply(null,t):NaN},max:e=>{const t=y4(e);return t.length?Math.max.apply(null,t):NaN},sum:e=>{const t=y4(e);return t.length?t.reduce(((e,t)=>e+t),0):NaN},avg:e=>{const t=y4(e),n=t.length;return n?v4(t)/n:NaN}};function _4(e,t,n,r){const o={},i=r.field||(void 0!==e.field?t.field(e.field):null);return Object.keys(n).forEach((a=>{const s=n[a],l=o[a]={};-1!==["number","string","boolean"].indexOf(typeof s)?(l.type="primitive",l.value=s):"function"==typeof s?(l.type="function",l.value=s,l.label=s,l.field=i):"object"==typeof s&&(s.fields?l.fields=s.fields.map((n=>_4(e,t,{main:n},r).main)):void 0!==s.field?(l.type="field",l.field=t.field(s.field),l.value=l.field.value,l.label=l.field.label):i&&(l.value=i.value,l.label=i.label,l.field=i),"function"==typeof s.filter&&(l.filter=s.filter),void 0!==s.value&&(l.value=s.value),void 0!==s.label&&(l.label=s.label),"function"==typeof s.reduce?l.reduce=s.reduce:s.reduce?l.reduce=x4[s.reduce]:l.field&&l.field.reduce&&(l.reduce="string"==typeof l.field.reduce?x4[l.field.reduce]:l.field.reduce),"function"==typeof s.reduceLabel?l.reduceLabel=s.reduceLabel:s.reduceLabel?l.reduceLabel=x4[s.reduceLabel]:l.field&&l.field.reduceLabel&&(l.reduceLabel="string"==typeof l.field.reduceLabel?x4[l.field.reduceLabel]:l.field.reduceLabel))})),o}function w4(e,t){const{main:n}=_4(e,t,{main:{value:e.value,label:e.label,reduce:e.reduce,filter:e.filter}},{});return{props:_4(e,t,e.props||{},n),main:n}}function S4(e,t,n,r){const o=Array(e.length),i=Array(e.length);let a;for(let t=0;t<e.length;t++)a=r?e[t][r]:e[t],o[t]=a.value,i[t]=a.label;const s=t.reduce,l=t.reduceLabel,u=s?s(o):o,c={value:u,label:l?l(i,u):n?n(u):String(u)};return r&&e[0][r].source?(c.source=e[0][r].source,c):!r&&e[0].source?(c.source=e[0].source,c):c}function C4(e,t){let{main:n,propsArr:r,props:o}=t,i=[];const a=n.field.formatter(),s={};return r.forEach((e=>{s[e]=o[e].field?o[e].field.formatter():e=>e})),i.push(...e.map((e=>{const t=S4(e.items,n,a);return r.forEach((n=>{t[n]=S4(e.items,o[n],s[n],n)})),t}))),i}function E4(e){let{cfg:t,itemData:n,obj:r,target:o,tracker:i,trackType:a}=e;const s="function"===a?t.trackBy(n):n[t.trackBy];let l=i[s];l||(l=i[s]={items:[],id:s},o.push(l)),l.items.push(r)}function k4(e){if(e.length<1e4)return Math.max(...e);let t=-1/0;const n=e.length;for(let r=0;r<n;r++)t<e[r]&&(t=e[r]);return t}function R4(e){if(e.length<1e4)return Math.min(...e);let t=1/0;const n=e.length;for(let r=0;r<n;r++)t>e[r]&&(t=e[r]);return t}const M4={diverging:function(e,t){if((s=e.length)>0)for(var n,r,o,i,a,s,l=0,u=e[t[0]].length;l<u;++l)for(i=a=0,n=0;n<s;++n)(o=(r=e[t[n]][l])[1]-r[0])>=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},none:F5,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}F5(e,t)}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}F5(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],d=c[a][1]||0,p=(d-(c[a-1][1]||0))/2,f=0;f<s;++f){var h=e[t[f]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=d,u+=p*d}n[a-1][1]+=n[a-1][0]=i,l&&(i-=u/l)}n[a-1][1]+=n[a-1][0]=i,F5(e,t)}}},A4={ascending:function(e){var t=e.map(H5);return B5(e).sort((function(e,n){return t[e]-t[n]}))},insideout:function(e){var t,n,r=e.length,o=e.map(H5),i=function(e){var t=e.map(W5);return B5(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,s=0,l=[],u=[];for(t=0;t<r;++t)n=i[t],a<s?(a+=o[n],l.push(n)):(s+=o[n],u.push(n));return u.reverse().concat(l)},none:B5,reverse:function(e){return B5(e).reverse()}};function L4(e,t,n){const r={},o=t.stackKey,i=t.value,a=t.startProp||"start",s=t.endProp||"end",l=t.offset||"none",u=t.order||"none",c=t.valueRef||"";let d=0,p={};for(let t=0;t<e.items.length;t++){let n=e.items[t],i=c?n[c]:null;if(i&&i.source){let e="".concat(i.source.key||"","/").concat(i.source.field);p[e]||(p[e]=i.source)}let a=o(n);r[a]=r[a]||{items:[]},r[a].items.push(n),d=Math.max(d,r[a].items.length)}const f=Array.apply(null,{length:d}).map(Number.call,Number),h=Object.keys(r).map((e=>r[e].items)),m=function(){var e=K2([]),t=B5,n=F5,r=$5;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,u=s.length,c=new Array(u);for(i=0;i<u;++i){for(var d,p=s[i],f=c[i]=new Array(l),h=0;h<l;++h)f[h]=d=[0,+r(o[h],p,h,o)],d.data=o[h];f.key=p}for(i=0,a=t(c);i<u;++i)c[a[i]].index=i;return n(c,a),c}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:K2(w5.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:K2(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?B5:"function"==typeof e?e:K2(w5.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?F5:e,o):n},o}().keys(f).value(((e,t)=>e[t]?i(e[t]):0)).order(A4[u]).offset(M4[l]);let g=m(h),b=[];for(let e=0;e<g.length;e++){let t=g[e];for(let e=0;e<t.length;e++){let n=t[e],r=t[e].data[t.key];r&&(r[a]={value:n[0]},r[s]={value:n[1]},b.push(n[0],n[1]))}}let y=Object.keys(p).map((e=>{let t=n(p[e].key);return t?t.field(p[e].field):null})).filter((e=>!!e));const v=b4({title:y.map((e=>e.title())).join(", "),min:R4(b),max:k4(b),type:"measure",formatter:y[0]?y[0].formatter:void 0});e.fields.push(v)}function I4(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).logger;if(Array.isArray(e))n.items=e.map((e=>({value:e,label:String(e)})));else if(e){if("collection"in e)n=P2({},t.collection(e.collection));else{const o=t.dataset?t.dataset(e.source):null;let i=e.value||(e=>e),a=e.label||(e=>e);if(e.groupBy||e.mapTo)r.warn('Deprecated "data" configuration',e),n.items=[];else if(e.hierarchy)n.root=o.hierarchy?o.hierarchy(e.hierarchy):null,n.fields=o.fields();else if(e.items)n.items=e.skipNormalize?e.items:e.items.map((e=>({value:i(e),label:String(a(e))})));else if(e.extract){const r=Array.isArray(e.extract)?e.extract:[e.extract];n.items=[];const i=[];r.forEach((e=>{const r=e.source?t.dataset(e.source):o;r&&(n.items=[...n.items,...r.extract(e)],void 0!==e.field&&i.push(r.field(e.field)))})),i.length&&(n.fields=i),e.amend&&Array.isArray(e.amend)&&(n.items=[...n.items,...e.amend])}else if(void 0!==e.field&&o){const t=o.field(e.field);t&&(n.fields||(n.fields=[]),n.fields.push(t),"value"in e||(i=t.value||(e=>e),a=t.label||(e=>e),n.value=i),n.items=t.items().map((t=>({value:i(t),label:String(a(t)),source:{field:e.field}}))))}else e.fields&&e.fields.forEach((e=>{const r="object"==typeof e&&e.source?t.dataset(e.source):o;if(!r)return;let i;i="object"==typeof e&&void 0!==e.field?r.field(e.field):r.field(e),i&&(n.fields||(n.fields=[]),n.fields.push(i))}));n.items&&e.map&&(n.items=n.items.map(e.map))}e&&e.stack&&L4(n,e.stack,t.dataset)}return e&&!Array.isArray(e)&&"function"==typeof e.filter&&n.items&&(n.items=n.items.filter(e.filter)),e&&!Array.isArray(e)&&"function"==typeof e.sort&&n.items&&(n.items=n.items.sort(e.sort)),n}function P4(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I4;if(e.data){const r=o(e.data,t,n);if(r&&r.fields&&r.fields[0])return r.fields[0].formatter()}if(r=e.formatter?"".concat(e.formatter,"-").concat(e.type||"number"):e.type||"d3-number",n.formatter.has(r)){return n.formatter.get(r)(e.format||"")}throw new Error("Formatter of type '".concat(r,"' was not found"))}function T4(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const D4=Symbol("implicit");function O4(){var e=new F3,t=[],n=[],r=D4;function o(o){let i=e.get(o);if(void 0===i){if(r!==D4)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new F3;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return O4(t,n).unknown(r)},T4.apply(o,arguments),o}function z4(){var e,t,n=O4().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<i,p=d?a:i,f=d?i:a;e=(f-p)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),p+=(f-p-e*(n-l))*c,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return z4(r(),[i,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},T4.apply(d(),arguments)}function N4(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j4(){}var F4=.7,B4=1/F4,$4="\\s*([+-]?\\d+)\\s*",W4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G4=/^#([0-9a-f]{3,8})$/,V4=new RegExp(`^rgb\\(${$4},${$4},${$4}\\)$`),U4=new RegExp(`^rgb\\(${H4},${H4},${H4}\\)$`),Y4=new RegExp(`^rgba\\(${$4},${$4},${$4},${W4}\\)$`),K4=new RegExp(`^rgba\\(${H4},${H4},${H4},${W4}\\)$`),X4=new RegExp(`^hsl\\(${W4},${H4},${H4}\\)$`),Q4=new RegExp(`^hsla\\(${W4},${H4},${H4},${W4}\\)$`),J4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Z4(){return this.rgb().formatHex()}function e8(){return this.rgb().formatRgb()}function t8(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=G4.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?n8(t):3===n?new i8(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?r8(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?r8(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=V4.exec(e))?new i8(t[1],t[2],t[3],1):(t=U4.exec(e))?new i8(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Y4.exec(e))?r8(t[1],t[2],t[3],t[4]):(t=K4.exec(e))?r8(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=X4.exec(e))?d8(t[1],t[2]/100,t[3]/100,1):(t=Q4.exec(e))?d8(t[1],t[2]/100,t[3]/100,t[4]):J4.hasOwnProperty(e)?n8(J4[e]):"transparent"===e?new i8(NaN,NaN,NaN,0):null}function n8(e){return new i8(e>>16&255,e>>8&255,255&e,1)}function r8(e,t,n,r){return r<=0&&(e=t=n=NaN),new i8(e,t,n,r)}function o8(e,t,n,r){return 1===arguments.length?function(e){return e instanceof j4||(e=t8(e)),e?new i8((e=e.rgb()).r,e.g,e.b,e.opacity):new i8}(e):new i8(e,t,n,null==r?1:r)}function i8(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function a8(){return`#${c8(this.r)}${c8(this.g)}${c8(this.b)}`}function s8(){const e=l8(this.opacity);return`${1===e?"rgb(":"rgba("}${u8(this.r)}, ${u8(this.g)}, ${u8(this.b)}${1===e?")":`, ${e})`}`}function l8(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function u8(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function c8(e){return((e=u8(e))<16?"0":"")+e.toString(16)}function d8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new f8(e,t,n,r)}function p8(e){if(e instanceof f8)return new f8(e.h,e.s,e.l,e.opacity);if(e instanceof j4||(e=t8(e)),!e)return new f8;if(e instanceof f8)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new f8(a,s,l,e.opacity)}function f8(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function h8(e){return(e=(e||0)%360)<0?e+360:e}function m8(e){return Math.max(0,Math.min(1,e||0))}function g8(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}N4(j4,t8,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Z4,formatHex:Z4,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return p8(this).formatHsl()},formatRgb:e8,toString:e8}),N4(i8,o8,q4(j4,{brighter(e){return e=null==e?B4:Math.pow(B4,e),new i8(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?F4:Math.pow(F4,e),new i8(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new i8(u8(this.r),u8(this.g),u8(this.b),l8(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:a8,formatHex:a8,formatHex8:function(){return`#${c8(this.r)}${c8(this.g)}${c8(this.b)}${c8(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:s8,toString:s8})),N4(f8,(function(e,t,n,r){return 1===arguments.length?p8(e):new f8(e,t,n,null==r?1:r)}),q4(j4,{brighter(e){return e=null==e?B4:Math.pow(B4,e),new f8(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?F4:Math.pow(F4,e),new f8(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new i8(g8(e>=240?e-240:e+120,o,r),g8(e,o,r),g8(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new f8(h8(this.h),m8(this.s),m8(this.l),l8(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=l8(this.opacity);return`${1===e?"hsl(":"hsla("}${h8(this.h)}, ${100*m8(this.s)}%, ${100*m8(this.l)}%${1===e?")":`, ${e})`}`}}));var b8=e=>()=>e;function y8(e){return 1==(e=+e)?v8:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):b8(isNaN(t)?n:t)}}function v8(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):b8(isNaN(e)?t:e)}var x8=function e(t){var n=y8(t);function r(e,t){var r=n((e=o8(e)).r,(t=o8(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=v8(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function _8(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function w8(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=A8(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function S8(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function C8(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function E8(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=A8(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var k8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,R8=new RegExp(k8.source,"g");function M8(e,t){var n,r,o,i=k8.lastIndex=R8.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=k8.exec(e))&&(r=R8.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:C8(n,r)})),i=R8.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function A8(e,t){var n,r=typeof t;return null==t||"boolean"===r?b8(t):("number"===r?C8:"string"===r?(n=t8(t))?(t=n,x8):M8:t instanceof t8?x8:t instanceof Date?S8:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?_8:Array.isArray(t)?w8:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?E8:C8)(e,t)}function L8(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function I8(e){return+e}var P8=[0,1];function T8(e){return e}function D8(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function O8(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=D8(o,r),i=n(a,i)):(r=D8(r,o),i=n(i,a)),function(e){return i(r(e))}}function z8(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=D8(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=j3(e,t,1,r)-1;return i[n](o[n](t))}}function N8(){var e,t,n,r,o,i,a=P8,s=P8,l=A8,u=T8;function c(){var e=Math.min(a.length,s.length);return u!==T8&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?z8:O8,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),C8)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,I8),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=L8,c()},d.clamp=function(e){return arguments.length?(u=!!e||T8,c()):u!==T8},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function q8(e,t,n,r){var o,i=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?U3(t,e,n):U3(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}(e,t,n);switch((r=X5(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(U5(t)/3)))-U5(Math.abs(e)))}(i,a))||(r.precision=o),r3(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,U5(t)-U5(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-U5(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return n3(r)}function j8(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,i,a]=r?V3(t,e,n):V3(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(i-e)/-a;else for(let e=0;e<s;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(o+e)/-a;else for(let e=0;e<s;++e)l[e]=(o+e)*a;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return q8(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,l=i[a],u=i[s],c=10;for(u<l&&(o=l,l=u,u=o,o=a,a=s,s=o);c-- >0;){if((o=U3(l,u,n))===r)return i[a]=l,i[s]=u,t(i);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function F8(){var e=N8()(T8,T8);return e.copy=function(){return t=e,F8().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},T4.apply(e,arguments),j8(e)}function B8(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[j3(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return B8().domain(t).range(n).unknown(e)},T4.apply(o,arguments)}function $8(e){return void 0===e?e=>e:t=>e(t)}function W8(e){return Math.max(0,Math.min(1,e))}function H8(e){return"object"==typeof e}function G8(e,t,n){const r=Math.abs(t-n)/(e+1),o=[];for(let i=1;i<=e;i++){const e=i*r;o.push(t<n?t+e:t-e)}return o}function V8(e,t,n){if(1===e.length)return e;const r=e.concat([]);for(let o=0;o<e.length;o++){let i=e[o],a=e[o+1];0===o&&i!==n.start()?(r.push(...G8(t,i,a)),i-=a-i,a=e[o],r.push(...G8(t,i,a))):o===e.length-1&&a!==n.end()?(a=i+(i-e[o-1]),r.push(...G8(t,i,a))):r.push(...G8(t,i,a))}return r.filter((e=>e>=n.min()&&e<=n.max()))}function U8(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=O2(o)||O2(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a));let l=n.ticks(s);l.length<=1&&(l=n.ticks(s+1));const u=r>0?V8(l,r,n):l;u.sort(((e,t)=>e-t));const c=u.map($8(i));return u.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:c[t],value:e,isMinor:-1===l.indexOf(e)}}))}function Y8(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=O2(o)||O2(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a)),l=s>10?10:s;n.nice(l);const u=n.ticks(s),c=r>0?V8(u,r,n):u;c.sort(((e,t)=>e-t));const d=c.map($8(i));return c.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:d[t],value:e,isMinor:-1===u.indexOf(e)}}))}function K8(e){let t,{settings:n,scale:r,distance:o,formatter:i=e=>e}=e;const a=n.minorTicks&&!O2(n.minorTicks.count)?Math.min(100,n.minorTicks.count):0;if(Array.isArray(n.ticks.values)){const e=n.ticks.values.filter((e=>"object"==typeof e?!O2(e.value):!O2(e)));t=function(e){let{values:t,scale:n,formatter:r=e=>e}=e;return t.sort(((e,t)=>(H8(e)?e.value:e)-(H8(t)?t.value:t))).filter(((e,t,r)=>{const o=H8(e)?e.value:e;return o<=n.max()&&o>=n.min()&&r.indexOf(e)===t})).map((e=>{const t=H8(e),o=t?e.value:e,i=n(o);return{position:i,value:o,label:t&&void 0!==e.label?e.label:r(o),isMinor:!!t&&!!e.isMinor,start:t&&!isNaN(e.start)?W8(n(e.start)):i,end:t&&!isNaN(e.end)?W8(n(e.end)):i}}))}({values:e,scale:r.copy(),formatter:i})}else if(O2(n.ticks.count)){t=(n.ticks.tight?Y8:U8)({distance:o,minorCount:a,unitDivider:n.ticks.distance,scale:r,formatter:i}),n.ticks.forceBounds&&function(e,t,n){const r=e.map((e=>e.position)),o=t.range();-1===r.indexOf(o[0])?e.splice(0,0,{position:o[0],start:o[0],end:o[0],label:n(t.start()),isMinor:!1,value:t.start()}):e[0]&&e[0].isMinor&&(e[0].isMinor=!1);const i=e[e.length-1];-1===r.indexOf(o[1])?e.push({position:o[1],start:o[1],end:o[1],label:n(t.end()),isMinor:!1,value:t.end()}):i&&i.isMinor&&(i.isMinor=!1)}(t,r,i)}else{t=function(e){let{count:t,minorCount:n,scale:r,formatter:o}=e;return r.ticks((t-1)*n+t).map(((e,t)=>{const i=r(e);return{position:i,start:i,end:i,label:o(e),isMinor:t%(n+1)!=0,value:e}}))}({count:Math.min(1e3,n.ticks.count),minorCount:a,scale:r.copy(),formatter:i})}return t}function X8(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={};return Object.keys(t).forEach((o=>{const i=typeof e[o];r[o]="function"===i?e[o](n):"undefined"===i?t[o]:e[o]})),r}const Q8={min:NaN,max:NaN,expand:NaN,include:[],invert:!1},J8={tight:!1,forceBounds:!1,values:void 0,count:NaN,distance:100},Z8={count:NaN};function e7(e,t){e.instance||(e.instance=t.copy(),e.instance.domain([t.start(),t.end()]),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}function t7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=F8(),o={instance:null,invert:!1},i={data:t,resources:n},a=X8(e,Q8,i);let s;function l(e){return O2(e)?NaN:r(e)}a.ticks=X8(e.ticks,J8,i),a.minorTicks=X8(e.minorTicks,Z8,i),l.data=()=>t,l.invert=function(e){return r.invert(e)},l.rangeRound=function(e){return r.rangeRound(e),l},l.clamp=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r.clamp(e),l},l.cachedTicks=function(){return s},l.clearTicksCache=function(){return s=void 0,this},l.ticks=function(e){return null!==e&&"object"==typeof e?(e.settings=e.settings||{},e.settings=M2(!0,{},a,e.settings),e.scale=l,s=K8(e),s):(s=r.ticks(e),s)},l.nice=function(e){return r.nice(e),l},l.tickFormat=function(e,t){return r.tickFormat(e,t)},l.interpolate=function(e){return r.interpolate(e),l},l.domain=function(e){return arguments.length?(r.domain(e),o.instance&&o.instance.domain([l.start(),l.end()]),l):r.domain()},l.range=function(e){return arguments.length?(r.range(e),l):r.range()},l.start=function(){return l.domain()[0]},l.end=function(){return l.domain()[this.domain().length-1]},l.min=function(){return Math.min(this.start(),this.end())},l.max=function(){return Math.max(this.start(),this.end())},l.classify=function(e){let t=(l.start()-l.end())/e,n=[l.end()],r=[],o=t/2;for(let i=0;i<e;i++){let e=n[n.length-1]||0,i=e+t,a=l(e+o);n.push(i,i),r.push(a,a)}return n.pop(),l.domain(n),l.range(r),l},l.copy=function(){const o=t7(e,t,n);return o.domain(l.domain()),o.range(l.range()),o.clamp(r.clamp()),o},l.norm=function(e){return e7(o,l),o.instance(e)},l.normInvert=function(e){return e7(o,l),o.instance.invert(e)};const{mini:u,maxi:c}=function(e,t){const n=+e.min,r=+e.max;let o=0,i=1;if(t&&t[0]){const n=t.map((e=>e.min())).filter((e=>!isNaN(e))),r=t.map((e=>e.max())).filter((e=>!isNaN(e)));if(o=n.length?Math.min(...n):Number.NaN,i=r.length?Math.max(...r):Number.NaN,isNaN(o)||isNaN(i))o=-1,i=1;else if(o===i&&0===o)o=-1,i=1;else if(o===i&&o)o-=Math.abs(.1*o),i+=Math.abs(.1*i);else if(!isNaN(e.expand)){const t=i-o;o-=t*e.expand,i+=t*e.expand}if(Array.isArray(e.include)){const t=e.include.filter((e=>!isNaN(e)));o=Math.min(...t,o),i=Math.max(...t,i)}}return{mini:isNaN(n)?o:n,maxi:isNaN(r)?i:r}}(a,t?t.fields:[]);return l.domain([u,c]),l.range(a.invert?[1,0]:[0,1]),o.invert=a.invert,l}const n7={padding:0,paddingInner:NaN,paddingOuter:NaN,align:.5,invert:!1,maxPxStep:NaN,range:[0,1]};function r7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={data:t,resources:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},r=X8(e,n7,n),o=t.items||[],i={},a=[],s=[];function l(e,n){e.data=()=>t,e.datum=e=>o[i[e]],e.start=function(){return e.domain()[0]},e.end=function(){return e.domain()[e.domain().length-1]},e.labels=()=>s,e.ticks=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.scale=e,function(e){let{scale:t}=e;const n=t.domain(),r=t.data().items,o=t.labels?t.labels():n,i=t.bandwidth();return n.map(((e,n)=>{const a=t(e);return{position:a+i/2,label:"".concat(o[n]),data:r?r[n]:void 0,start:a,end:a+i}}))}(t,n.trackBy)}}const u=z4();l(u,e),u.pxScale=function(t){const n=r.maxPxStep;if(isNaN(n))return u;const o=u.domain().length,i=Math.max(1,o-u.paddingInner()+2*u.paddingOuter());if(i*n>=t)return u;const a=u.copy();a.type=u.type,l(a,e);const s=i*n/t,c=(1-s)*u.align();return a.range(r.invert?[s+c,c]:[c,s+c]),a};const c="function"==typeof e.value?e.value:e=>e.datum.value,d="function"==typeof e.label?e.label:e=>e.datum.label;for(let e=0;e<o.length;e++){const t=M2({datum:o[e]},n),r=c(t,e);-1===a.indexOf(r)&&(a.push(r),s.push(d(t,e)),i[r]=e)}return u.domain(a),u.range(r.invert?r.range.slice().reverse():r.range),u.padding(isNaN(r.padding)?0:r.padding),isNaN(r.paddingInner)||u.paddingInner(r.paddingInner),isNaN(r.paddingOuter)||u.paddingOuter(r.paddingOuter),u.align(isNaN(r.align)?.5:r.align),u}const o7={depth:0};function i7(e,t,n){return e.ancestors().map((e=>t(M2({datum:e.data},n)))).reverse().slice(1).toString()}const a7=e=>e.min(),s7=e=>e.max();function l7(e,t){const n=e&&!isNaN(e.min),r=e&&!isNaN(e.max);let o=n?+e.min:0,i=r?+e.max:1;if(t&&t.length){if(!n){const e=t.map(a7).filter(D2);o=e.length?Math.min(...e):o}if(!r){const e=t.map(s7).filter(D2);i=e.length?Math.max(...e):i}}return[o,i]}const u7={domain:[],range:[],invert:!1,min:NaN,max:NaN};function c7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t7(e,t,n).clamp(!0).interpolate(x8),o=X8(e,u7,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length,s=r;M2(!0,s,r);const[l,u]=l7(o,t?t.fields:[]),c=i?o.domain.length:-1,d=n.theme?n.theme.palette("sequential",c>0?c:2):[],p=a?o.range:d;return s.range(o.invert?p.slice().reverse():p.slice()),s.domain(i?o.domain:function(e,t,n){const r=e.length;if(2===r)return[t,n];const o=[],i=(n-t)/(r-1);o.push(t);for(let e=1;e<r-1;e++)o.push(t+i*e);return o.push(n),o}(s.range(),l,u)),s}const d7={domain:[],range:[],invert:!1,min:NaN,max:NaN,nice:!1};function p7(e){const t=[];for(let n=0;n<e.length-1;n++)t.push((e[n]+e[n+1])/2);return t}const f7={domain:[],range:[]};const h7={domain:[],range:[],unknown:void 0},m7={domain:[],range:[],override:!1};const g7=G5();function b7(e,t,n){let r=e.data;e.source&&(n.logger.warn("Deprecated: Scale data source configuration"),r={extract:[]},(Array.isArray(e.source)?e.source:[e.source]).forEach((e=>{r.extract.push({field:e})})));const o=I4(r,t,n);let i,a=e.type||function(e){return e.root?"h-band":e.fields&&e.fields[0]?function(e){const t=e.map((e=>"dimension"===e.type()?"band":"linear"));return-1!==t.indexOf("linear")?"linear":"band"}(e.fields):"linear"}(o);return"color"===a&&(a=o.fields&&o.fields[0]&&"dimension"===o.fields[0].type()?"categorical-color":"sequential-color"),n.scale.has(a)&&(i=n.scale.get(a),i=i(e,o,{theme:n.theme,logger:n.logger}),i.type=a),i}g7("linear",t7),g7("band",r7),g7("h-band",(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={data:n,resources:r},i=X8(t,n7,o);i.ticks=X8(t.ticks,o7,o),i.value="function"==typeof t.value?t.value:e=>e.datum.value,i.label="function"==typeof t.label?t.label:e=>e.datum.value;let a=r7(i);const{values:s,labels:l,items:u,ticks:c}=function(e,t,n){const r=t.ticks.depth,o=t.value,i=t.label,a=[],s=[],l={},u=[];let c=0;if(!e)return{values:a,labels:s,items:l,ticks:u};e.eachAfter((e=>{if(e.depth>0){const t=i7(e,o,n),d=e.leaves()||[e],p=o(M2({datum:e.data},n)),f=i(M2({datum:e.data},n)),h=Array.isArray(e.children),m={key:t,count:d.length,value:p,label:f,leftEdge:i7(d[0],o,n),rightEdge:i7(d[Math.max(d.length-1,0)],o,n),node:e};h?(a.push("SPACER_".concat(c,"_SPACER")),c++):(a.push(t),s.push(f)),(r<=0&&!h||e.depth===r)&&u.push(m),l[t]=m}}));const d=e.height-1;return d>0&&a.splice(-d),{values:a,labels:s,items:l,ticks:u}}(n.root,i,o),d=function(e){const t=String(e),n=u[t];return a(n?i.invert?n.rightEdge:n.leftEdge:t)};M2(!0,d,a),d.bandwidth=function(e){const t=u[String(e)],n=a.bandwidth();if(t&&!t.isLeaf){const e=d(t.leftEdge),r=d(t.rightEdge);return Math.abs(e-r)+n}return n},d.step=function(e){const t=u[String(e)],n=t?t.count:1;let r=a.step();return r*=n,r},d.data=()=>n,d.datum=e=>{const t=u[String(e)];return t?t.node.data:null},d.copy=()=>e(t,n,r),d.labels=()=>l,d.ticks=()=>c.map((e=>{const t=d(e.key),n=d.bandwidth(e.key);return{position:t+n/2,label:e.label,data:e.node.data,start:t,end:t+n}}));const p=a.pxScale;return d.pxScale=function(e){return a=p(e),d},d.domain(s),d})),g7("sequential-color",c7),g7("threshold-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=B8(),o=X8(e,d7,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length;function s(e){return O2(e)?NaN:r(e)}Object.keys(r).forEach((e=>s[e]=r[e]));const l=t.fields,[u,c]=l7(o,l),d=i?o.domain.length:-1,p=n.theme?n.theme.palette("sequential",d>0?d:2):[];let f=a?o.range:p,h=[];return h=i?o.domain:o.nice?function(e,t,n){const r=2===e.length?10:Math.max(1,e.length),o=F8().domain([t,n]).nice(r).ticks(r);if(!e||!e.length)return o;const i=Math.max(0,e.length-1);for(;o.length>i;)o[0]-t<=n-o[o.length-1]?o.shift():o.pop();return o}(f,u,c):[u+(c-u)/2],f.length>h.length+1?h=function(e,t,n){const r=e.length;if(2===r)return[t+(n-t)/2];const o=[],i=(n-t)/r;for(let e=1;e<r;e++)o.push(t+i*e);return o}(f,u,c):f.length<h.length+1&&(f=function(e,t,n,r){n=e[0],r=e&&e.length>=2?e[e.length-1]:r;const o=c7().domain([n,r]).range(t);return[n,...p7(e),r].map((e=>o(e)))}(h,f,u,c)),s.data=()=>t,s.range(o.invert?f.slice().reverse():f),s.domain(h),s})),g7("categorical-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=O4(),o={data:t,resources:n},i=X8(e,f7,o),a="function"==typeof e.value?e.value:e=>e.datum.value,s="function"==typeof e.label?e.label:e=>e.datum.label,l=t.items||[],u={},c=[],d=[];for(let e=0;e<l.length;e++){const t=M2({datum:l[e]},o),n=a(t,e);-1===c.indexOf(n)&&(c.push(n),d.push(s(t,e)),u[n]=e)}return r.data=()=>t,r.labels=()=>d,r.label=e=>d[c.indexOf(e)],r.datum=e=>l[u[e]],r.range(i.range),Array.isArray(i.domain)&&i.domain.length?r.domain(i.domain):r.domain(c),r}(e,t,n),o=n.theme,i=X8(e,h7,{data:t,resources:n});let a;if(i.explicit=X8(e.explicit,m7,{data:t,resources:n}),a=Array.isArray(i.range)&&0!==i.range.length?i.range.slice():o?o.palette("categorical",r.domain().length).slice():[],i.unknown)r.unknown(i.unknown);else if(o&&o.palette("unknown")){let e=o.palette("unknown");r.unknown(e[0])}if(Array.isArray(i.explicit.domain)&&i.explicit.domain.length){const e=r.domain().slice(),t=i.explicit.domain,n=Array.isArray(i.explicit.range)?i.explicit.range:[],o=Math.floor(e.length/a.length);for(let e=1;e<o+1;e*=2)a=a.concat(a);if(i.explicit.override)for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);o>-1&&(a[o]=n[r])}else{const r=t.map(((t,r)=>[e.indexOf(t),t,n[r]])).sort(((e,t)=>e[0]-t[0]));r.forEach((t=>{const n=e.indexOf(t[1]);-1!==n&&a.splice(n,0,t[2])}))}a.length=e.length}return r.range(a),r}));var y7={};function v7(){v7.init.call(this)}y7.isObject=function(e){return"object"==typeof e&&null!==e},y7.isNumber=function(e){return"number"==typeof e},y7.isUndefined=function(e){return void 0===e},y7.isFunction=function(e){return"function"==typeof e};var x7=v7;v7.EventEmitter=v7,v7.prototype._events=void 0,v7.prototype._maxListeners=void 0,v7.defaultMaxListeners=10,v7.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},v7.prototype.setMaxListeners=function(e){if(!y7.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},v7.prototype.emit=function(e){var t,n,r,o,i,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],y7.isUndefined(n))return!1;if(y7.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,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(y7.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},v7.prototype.addListener=function(e,t){var n;if(!y7.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,y7.isFunction(t.listener)?t.listener:t),this._events[e]?y7.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,y7.isObject(this._events[e])&&!this._events[e].warned)&&((n=y7.isUndefined(this._maxListeners)?v7.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,y7.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),y7.isFunction(console.trace)&&console.trace()));return this},v7.prototype.on=v7.prototype.addListener,v7.prototype.once=function(e,t){if(!y7.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},v7.prototype.removeListener=function(e,t){var n,r,o,i;if(!y7.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||y7.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(y7.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},v7.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],y7.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},v7.prototype.listeners=function(e){return this._events&&this._events[e]?y7.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},v7.listenerCount=function(e,t){return e._events&&e._events[t]?y7.isFunction(e._events[t])?1:e._events[t].length:0};var _7={mixin:e=>(Object.keys(x7.prototype).forEach((t=>{e[t]=x7.prototype[t]})),x7.init(e),e)};function w7(){let e=0,t=0,n=0,r=0;n=n||e;const o={move(e){this.moveTo(n+e)},moveTo(i){const a=Math.max(e,Math.min(t-r,i));n!==a&&(n=a,o.emit("update"))},update(i){let a=!1;({min:e=e,max:t=t}=i),void 0!==i.viewSize&&i.viewSize!==r&&(r=i.viewSize,a=!0);const s=Math.max(e,Math.min(t-r,n));n!==s&&(n=s,a=!0),a&&o.emit("update")},getState:()=>({min:e,max:t,start:n,viewSize:r})};return _7.mixin(o),o}function S7(e,t){const n=e.min||0,r=e.max||0,o=e.viewSize||0,i=t||w7();return i.update({min:n,max:r,viewSize:o}),i}function C7(e,t){return e<=t}function E7(e,t){return e<t}function k7(e,t,n){let r=0;for(;r<e.length&&t>e[r];)++r;return e[r]===t&&n&&++r,r}function R7(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[];function o(){}return o.configure=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{includeMax:r=!0,includeMin:o=!0}=n;e=r?C7:E7,t=o?C7:E7},o.add=e=>{let{min:t,max:n}=e;const o=k7(r,t),i=k7(r,n,!0),a=[o,i-o];o%2==0&&a.push(t),i%2==0&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.remove=e=>{let{min:t,max:n}=e;const o=k7(r,t),i=k7(r,n,!0),a=[o,i-o];o%2==1&&a.push(t),i%2==1&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.set=e=>{const t=r.join(",");r=[],Array.isArray(e)?e.forEach(o.add):o.add(e);return t!==r.join(",")},o.clear=()=>{const e=r.length>0;return r=[],e},o.containsValue=n=>function(e,t,n,r){const o=e.length;for(let i=1;i<o;i+=2)if(n(e[i-1],t)&&r(t,e[i]))return!0;return!1}(r,n,t,e),o.containsRange=e=>{let{min:t,max:n}=e;const o=k7(r,t,!0),i=k7(r,n);return o===i&&i%2==1},o.toggle=e=>o.containsRange(e)?o.remove(e):o.add(e),o.ranges=()=>{const e=[];for(let t=1;t<r.length;t+=2)e.push({min:r[t-1],max:r[t]});return e},o.configure(n),o}function M7(){let e=[];function t(){}return t.add=t=>-1===e.indexOf(t)&&(e.push(t),!0),t.remove=t=>{const n=e.indexOf(t);return-1!==n&&(e.splice(n,1),!0)},t.contains=t=>-1!==e.indexOf(t),t.values=()=>e.slice(),t.clear=()=>e=[],t.toString=()=>e.join(";"),t}const A7={key:void 0,includeMin:!0,includeMax:!0};function L7(e){let{items:t,collection:n,vc:r}=e;const o={},i=[];let a,s;for(let e=0,i=t.length;e<i;e++){a=t[e].key,n[a]||(n[a]=r()),s=t[e].values||[t[e].value];for(let e=0;e<s.length;e++)n[a].add(s[e])&&(o[a]=o[a]||[],o[a].push(s[e]))}const l=Object.keys(o);for(let e=0,t=l.length;e<t;e++)a=l[e],i.push({id:a,values:o[a]});return i}function I7(e){let{items:t,collection:n}=e;const r={},o=[];let i,a;for(let e=0,o=t.length;e<o;e++)if(i=t[e].key,n[i]){a=t[e].values||[t[e].value];for(let e=0;e<a.length;e++)n[i].remove(a[e])&&(r[i]=r[i]||[],r[i].push(a[e]))}const s=Object.keys(r);for(let e=0,t=s.length;e<t;e++)i=s[e],o.push({id:i,values:r[i]});return o}function P7(e){const t={};let n,r;for(let o=0,i=e.length;o<i;o++){n=e[o].key,r=e[o].values||[e[o].value],t[n]||(t[n]=[]);for(let e=0;e<r.length;e++){-1===t[n].indexOf(r[e])&&t[n].push(r[e])}}return t}function T7(e){let{key:t,collection:n,obj:r,fn:o,value:i}=e;n[t]||(n[t]=o()),r[t]=r[t]||[],r[t].push(i),n[t].add(i)}function D7(e,t){const n=[],r=Object.keys(e);let o,i;const a=e=>-1===t[o].indexOf(e);for(let s=0,l=r.length;s<l;s++)o=r[s],t[o]?(i=e[o].filter(a),i.length&&n.push({id:o,values:i})):n.push({id:o,values:e[o]});return n}function O7(e,t,n){const r=function(e,t){if(!Object.keys(t).length)return e;const n=e.length,r=Array(n);for(let o=0;o<n;o++)r[o]=e[o].key in t?M2({},e[o],{key:t[e[o].key]}):e[o];return r}(t,n);return e&&e.length?e.reduce(((e,t)=>t(e)),r):r}function z7(e){return e.replace(/(-[a-z])/g,(e=>e.toUpperCase().replace("-","")))}function N7(e){return e.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase())))}function q7(e,t,n){let{ranges:r,interceptors:o,rc:i,aliases:a,rangeConfig:s}=n;const l=O7(o["".concat(t,"Ranges")],e,a);let u=!1;return l.forEach((e=>{const n=e.key;if(r[n]||(r[n]=i(s.sources[n]||s.default)),"set"===t)u=r[n][t](e.ranges||e.range)||u;else{const o=e.ranges||[e.range];for(let e=0;e<o.length;e++)u=r[n][t](o[e])||u}})),u}function j7(){let{vc:e=M7,rc:t=R7}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1,r={},o={},i={},a={sources:{},default:M2({},A7)};const s={addValues:[],removeValues:[],toggleValues:[],setValues:[],addRanges:[],setRanges:[],removeRanges:[],toggleRanges:[]},l=()=>{const e={values:{},ranges:{}};return Object.keys(o).forEach((t=>{e.values[t]=o[t].values()})),Object.keys(r).forEach((t=>{e.ranges[t]=r[t].ranges()})),e},u={ls:[],clear(){this.ls.forEach((e=>e.clear()))},start(){this.ls.forEach((e=>e.start()))},end(){this.ls.forEach((e=>e.end()))},update(){const e=l();this.ls.forEach((t=>t._state(e)))},updateValues(){const e=l();this.ls.forEach((t=>t._state({values:e.values})))},updateRanges(){const e=l();this.ls.forEach((t=>t._state({ranges:e.ranges})))}},c={configure:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e.ranges)&&e.ranges.length&&(a={sources:{},default:M2({},A7)},e.ranges.forEach((e=>{const t={};Object.keys(A7).filter((e=>"key"!==e)).forEach((n=>{t[n]=void 0!==e[n]?e[n]:A7[n]})),void 0!==e.key?a.sources[e.key]=t:a.default=t})),Object.keys(r).forEach((e=>r[e].configure(a.sources[e]||a.default))),c.emit("update",[],[]))},link:e=>{if(c===e)throw new Error("Can't link to self");u.ls.push(e),e._state(l())},_state:e=>{if(!e)return l();if(e.values){const t=[];Object.keys(e.values).forEach((n=>{o[n]&&e.values[n].join(";")===o[n].toString()||t.push({key:n,values:e.values[n]})})),Object.keys(o).forEach((n=>{e.values[n]||t.push({key:n,values:[]})})),t.length&&c.setValues(t)}if(e.ranges){const t=[];Object.keys(e.ranges).forEach((n=>{r[n]&&e.ranges[n].join(";")===r[n].toString()||t.push({key:n,ranges:e.ranges[n]})})),Object.keys(r).forEach((n=>{e.ranges[n]||t.push({key:n,ranges:[]})})),t.length&&c.setRanges(t)}},start:function(){if(!n){n=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];c.emit("start",...t),u.start()}},end:function(){if(n){n=!1,r={},o={};for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];c.emit("end",...t),u.end()}},isActive:()=>n,clear:()=>{const e=c.brushes().filter((e=>"value"===e.type&&e.brush.values().length)).map((e=>({id:e.id,values:e.brush.values()}))),t=Object.keys(r).length>0||e.length;r={},o={},t&&(c.emit("update",[],e),u.clear())},brushes:()=>{let e=[];return e=e.concat(Object.keys(r).map((e=>({type:"range",id:e,brush:r[e]})))),e=e.concat(Object.keys(o).map((e=>({type:"value",id:e,brush:o[e]})))),e},addValue:(e,t)=>{c.addValues([{key:e,value:t}])},addValues:t=>{const r=O7(s.addValues,t,i),a=L7({vc:e,collection:o,items:r});c.emit("add-values",r),a.length&&(n||(n=!0,c.emit("start")),c.emit("update",a,[]),u.updateValues())}};return c.setValues=t=>{const r=O7(s.setValues,t,i),a=function(e){let{items:t,vCollection:n,vc:r}=e;const o={},i=P7(t);let a,s=[],l=[];const u={},c=Object.keys(n);for(let e=0,t=c.length;e<t;e++)a=c[e],u[a]=n[a].values().slice(),delete n[a];const d=e=>{n[a]&&n[a].contains(e)||T7({key:a,value:e,collection:n,obj:o,fn:r})},p=Object.keys(i);for(let e=0,t=p.length;e<t;e++)a=p[e],i[a].forEach(d);return l=D7(u,o),s=D7(o,u),[s,l]}({items:r,vCollection:o,vc:e});c.emit("set-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.removeValue=(e,t)=>{c.removeValues([{key:e,value:t}])},c.removeValues=e=>{const t=O7(s.removeValues,e,i),n=I7({collection:o,items:t});c.emit("remove-values",t),n.length&&(c.emit("update",[],n),u.updateValues())},c.addAndRemoveValues=(t,r)=>{const a=O7(s.addValues,t,i),l=O7(s.removeValues,r,i),d=L7({vc:e,collection:o,items:a}),p=I7({collection:o,items:l});c.emit("add-values",a),c.emit("remove-values",l),(d.length||p.length)&&(n||(n=!0,c.emit("start")),c.emit("update",d,p),u.updateValues())},c.toggleValue=(e,t)=>{c.toggleValues([{key:e,value:t}])},c.toggleValues=t=>{const r=O7(s.toggleValues,t,i),a=function(e){let{items:t,values:n,vc:r}=e;const o={},i={},a=[],s=[],l=P7(t);let u,c,d;const p=Object.keys(l);for(let e=0,t=p.length;e<t;e++){u=p[e],d=l[u];for(let e=0,t=d.length;e<t;e++)c=d[e],n[u]&&n[u].contains(c)?n[u]&&n[u].contains(c)&&(i[u]=i[u]||[],i[u].push(c),n[u].remove(c)):T7({key:u,value:c,collection:n,obj:o,fn:r})}const f=Object.keys(o);for(let e=0,t=f.length;e<t;e++)u=f[e],a.push({id:u,values:o[u]});const h=Object.keys(i);for(let e=0,t=h.length;e<t;e++)u=h[e],s.push({id:u,values:i[u]});return[a,s]}({items:r,values:o,vc:e});c.emit("toggle-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.containsValue=(e,t)=>{let n=i[e]||e;return!!o[n]&&o[n].contains(t)},c.addRange=(e,t)=>{c.addRanges([{key:e,range:t}])},c.addRanges=e=>{q7(e,"add",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.removeRange=(e,t)=>{c.removeRanges([{key:e,range:t}])},c.removeRanges=e=>{q7(e,"remove",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.setRange=(e,t)=>{c.setRanges([{key:e,range:t}])},c.setRanges=e=>{q7(e,"set",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.toggleRange=(e,t)=>{c.toggleRanges([{key:e,range:t}])},c.toggleRanges=e=>{q7(e,"toggle",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.containsRangeValue=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsValue(t)},c.containsRange=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsRange(t)},c.containsMappedData=(e,t,n)=>{let a=[];const s=Object.keys(e);let l,u,c,d;for(let t=0,n=s.length;t<n;t++){if(l=s[t],"value"===l)u=e,a[t]={key:"",i:t,bool:!1};else{if("source"===l)continue;u=e[l],a[t]={key:l,i:t,bool:!1}}c=u.source&&u.source.field,void 0!==c&&(void 0!==u.source.key&&(c="".concat(u.source.key,"/").concat(c)),c in i&&(c=i[c]),d=u.value,r[c]?a[t].bool=Array.isArray(d)?r[c].containsRange({min:d[0],max:d[1]}):r[c].containsValue(d):o[c]&&o[c].contains(d)&&(a[t].bool=!0))}return t?(a=a.filter((e=>-1!==t.indexOf(e.key))),"and"===n?!!a.length&&!a.some((e=>!1===e.bool)):"xor"===n?!!a.length&&a.some((e=>e.bool))&&a.some((e=>!1===e.bool)):a.some((e=>e.bool))):a.some((e=>e.bool))},c.intercept=(e,t)=>{const n=z7(e);s[n]&&s[n].push(t)},c.removeInterceptor=(e,t)=>{const n=z7(e);if(!s[n])return;const r=s[n].indexOf(t);-1!==r&&s[n].splice(r,1)},c.removeAllInterceptors=e=>{const t=[];if(e){const n=z7(e);s[n]&&s[n].length&&t.push({name:e,handlers:s[n]})}else Object.keys(s).forEach((e=>{s[e].length&&t.push({name:N7(e),handlers:s[e]})}));t.forEach((e=>{e.handlers.slice().forEach((t=>c.removeInterceptor(e.name,t)))}))},c.addKeyAlias=(e,t)=>{i[e]=t},c.removeKeyAlias=e=>{delete i[e]},_7.mixin(c),c}function F7(e){return e*e*e}function B7(e){return--e*e*e+1}function $7(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}G5();const W7=["stroke","fill","color","backgroundColor","thumbColor"];function H7(e,t){const n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n);let a;for(a=0;a<r;++a)o[a]=G7(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(e){for(a=0;a<r;++a)i[a]=o[a](e);return i}}function G7(e,t,n){const r=typeof t;let o;return null==t||"boolean"===r?function(e){return()=>e}(t):("number"===r?C8:"string"===r?(o=t8(t))&&W7.includes(n)?(t=o,x8):M8:t instanceof t8?x8:t instanceof Date?S8:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?_8:Array.isArray(t)?H7:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?V7:C8)(e,t)}function V7(e,t){const n={},r={};let o;for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?n[o]=G7(e[o],t[o],o):r[o]=t[o];return function(e){for(o in n)r[o]=n[o](e);return r}}function U7(e,t){return e.data?e.data.value:"text"===e.type?e.text:t}const Y7={fontFamily:"Arial",fontSize:"13px",color:"#595959",backgroundColor:"#ffffff",stroke:"#000000",strokeWidth:0,$fill:"#333333"},K7=/^\$/;function X7(e){const t=typeof e;return"object"!==t&&"function"!==t&&"undefined"!==t}function Q7(e,t,n){const r=e[t];r&&r.scale&&r.scale.pxScale?r.scale=r.scale.pxScale(n):r&&r.pxScale&&(e[t]=r.pxScale(n))}function J7(e,t){return e.pxScale?e.pxScale(t):e}const Z7={normalizeSettings:function(e,t,n){const r=M2({},e),o=M2({},t);return Object.keys(r).forEach((e=>{o[e]={};const i=r[e],a=typeof i;if("function"==typeof i)o[e].fn=i;else if(X7(i)){let n=t[e];"string"==typeof n&&K7.test(n)&&(n=Y7[n]);const r=typeof n;o[e]="undefined"===r||r===a?i:n}else i&&"object"==typeof i&&("function"==typeof i.fn&&(o[e].fn=i.fn),void 0!==i.scale&&(o[e].scale=n.scale(i.scale)),"string"==typeof i.ref&&(o[e].ref=i.ref))})),Object.keys(t).forEach((e=>{if(e in r)return;const n=t[e];"string"===typeof n&&K7.test(n)?o[e]=Y7[n]:o[e]=n})),o},resolveForItem:function(e,t,n){const r={},o=Object.keys(t),i=o.length,a=e.datum,s=e.datum;for(let l=0;l<i;l++){const i=o[l],u=t[i],c="object"==typeof s&&void 0!==u,d=c&&"string"==typeof u.ref,p=c&&i in s,f=d?s[u.ref]:p?s[i]:a;X7(u)?r[i]=u:c&&u.fn?(u.scale&&(e.scale=u.scale),r[i]=u.fn.call(null,e,n)):c&&u.scale&&f?(r[i]=u.scale(f.value),u.scale.bandwidth&&(r[i]+=u.scale.bandwidth()/2)):d&&f?r[i]=f.value:u.fn?r[i]=u.fn.call(null,e,n):r[i]=u}return r},updateScaleSize:Q7};function e9(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>Array.isArray(t.children)?(e.push(...e9(t.children)),e):(e.push(t),e)),[])}function t9(e,t){let{context:n,data:r,style:o,filter:i,mode:a}=t;const s=e.chart.brush(n),l=r,u=o.active||{},c=o.inactive||{},d=[];Object.keys(u).forEach((e=>{d.push(e)})),Object.keys(c).forEach((e=>{-1===d.indexOf(e)&&d.push(e)}));const p=[];let f=!1;const h=()=>{let t=e9(e.nodes);return"function"==typeof i&&(t=t.filter(i)),t},m=()=>{const e=h(),t=e.length;let n,r=!1;const o="function"==typeof l?l({brush:s}):l;for(let r=0;r<t;r++){if(n=e[r].data,!n)continue;e[r].__style||(e[r].__style={},d.forEach((t=>{e[r].__style[t]=e[r][t]})));const t=s.containsMappedData(n,o,a),i=p.indexOf(e[r]);let l=!1;t&&-1===i?(p.push(e[r]),l=!0):t||-1===i||(p.splice(i,1),l=!0),e[r].needToUpdate=l||f,e[r].isActive=t}for(let o=0;o<t;o++)if(n=e[o].data,n){if(e[o].needToUpdate){const t=M2({},e[o],e[o].__style),n=e[o].isActive;d.forEach((r=>{e[o][r]=n&&r in u?"function"==typeof u[r]?u[r].call(null,t,p):u[r]:!n&&r in c?"function"==typeof c[r]?c[r].call(null,t,p):c[r]:e[o].__style[r]})),r=!0}delete e[o].needToUpdate}return f=!1,r},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].data&&(r[e].__style=r[e].__style||{},d.forEach((t=>{r[e].__style[t]=r[e][t],t in c&&(r[e][t]="function"==typeof c[t]?c[t].call(null,r[e]):c[t])})));f=!0,p.length=0,n||e.renderer.render(e.nodes)},b=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].__style&&(Object.keys(r[e].__style).forEach((t=>{r[e][t]=r[e].__style[t]})),r[e].__style=void 0);p.length=0,n||e.renderer.render(e.nodes)},y=()=>{if(m()){const t="function"==typeof e.config.sortNodes?e.config.sortNodes(e):e.nodes;"function"==typeof e.config.customRender?e.config.customRender({render:e.renderer.render,nodes:t}):e.renderer.render(t)}};return s.on("start",g),s.on("end",b),s.on("update",y),{isActive:()=>s.isActive(),update:()=>{p.length=0,f=!0,m()},cleanUp:function(){s.removeListener("start",g),s.removeListener("end",b),s.removeListener("update",y)}}}function n9(e){let{nodes:t,action:n,chart:r,trigger:o}=e;const i=[];for(let e=0;e<t.length;e++){let n=t[e].data;null!==n&&i.push(n)}!function(e){let{dataPoints:t,action:n,chart:r,trigger:o}=e;if(!o)return;const i=o.data||[""];let a={items:[],actionFn:"toggleRanges"},s={items:[],actionFn:"toggleValues"};-1!==["add","remove","set","toggle"].indexOf(n)&&(a.actionFn="".concat(n,"Ranges"),s.actionFn="".concat(n,"Values"));for(let e=0;e<t.length;e++){const n=t[e];n&&i.forEach((e=>{let t=n&&!e?n:n[e];if(t){let e={key:t.source.field};void 0!==t.source.key&&(e.key="".concat(t.source.key,"/").concat(t.source.field)),Array.isArray(t.value)?(e.range={min:t.value[0],max:t.value[1]},a.items.push(e)):(e.value=t.value,s.items.push(e))}}))}o.contexts.forEach((e=>{a.items.length?r.brush(e)[a.actionFn](a.items):r.brush(e)[s.actionFn](s.items)}))}({dataPoints:i,action:n,chart:r,trigger:o})}function r9(e){let{collisions:t,t:n,config:r,action:o}=e,i=[],a=!1;t.length>0&&(i=t,a=!0,"stop"===n.propagation&&(i=[t[t.length-1]]));const s=i.map((e=>e.node));return n9({nodes:s,action:o,chart:r.chart,data:r.data,trigger:n}),a}function o9(e,t,n){const r=n.element().getBoundingClientRect();let o=T2(e)?function(e,t){return 1!==e.changedTouches.length?null:{x:e.changedTouches[0].clientX-t.left,y:e.changedTouches[0].clientY-t.top}}(e,r):function(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}(e,r);return null===o||o.x<0||o.y<0||o.x>r.width||o.y>r.height?[]:(t.touchRadius>0&&T2(e)?o={cx:o.x,cy:o.y,r:t.touchRadius}:t.mouseRadius>0&&!T2(e)&&(o={cx:o.x,cy:o.y,r:t.mouseRadius}),n.itemsAt(o))}function i9(e,t,n){return e?"function"==typeof e?e(t):e:n}const a9={fill:"fill",stroke:"stroke",opacity:"opacity",strokeWidth:"stroke-width",strokeLinejoin:"stroke-linejoin",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",textDecoration:"text-decoration",fontWeight:"font-weight",baseline:"dominant-baseline",dominantBaseline:"dominant-baseline",anchor:"text-anchor",textAnchor:"text-anchor",maxWidth:"maxWidth",transform:"transform",strokeDasharray:"stroke-dasharray",id:"id"};function s9(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?"M".concat(r.x," ").concat(r.y):"L".concat(r.x," ").concat(r.y),n+=" "}return t&&(n+="Z"),n}function l9(e,t,n,r){const o=n/2,i=e-r/2,a=t-r/2,s=e-o,l=t-o;return[{x:i,y:a},{x:i,y:l},{x:i+r,y:l},{x:i+r,y:a},{x:s+n,y:a},{x:s+n,y:a+r},{x:i+r,y:a+r},{x:i+r,y:l+n},{x:i,y:l+n},{x:i,y:a+r},{x:s,y:a+r},{x:s,y:a}]}function u9(e){return-e/180*Math.PI}function c9(e){return function(e){let t=(.5*(Math.floor(e/Math.PI*2)+2)+.25)*Math.PI,n=Math.cos(Math.abs(t-e))*Math.sqrt(2),r=n*Math.cos(e),o=n*Math.sin(e);return{x1:r<0?1:0,y1:o<0?1:0,x2:r>=0?r:r+1,y2:o>=0?o:o+1}}(u9(e))}function d9(e,t){return{x:e.x+t.x,y:e.y+t.y}}function p9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function f9(e,t){return{x:e.x*t,y:e.y*t}}function h9(e,t){return e.x-t.x}function m9(e,t){return e.y-t.y}function g9(e,t){return h9(e,t)**2+m9(e,t)**2}function b9(e,t){return Math.sqrt(g9(e,t))}function y9(e,t){return e.x*t.x+e.y*t.y}function v9(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0};const r=Math.cos(t),o=Math.sin(t),i=p9(e,n);return d9({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}const x9={up:0,down:180,left:90,right:-90};function _9(e){let{x:t,y:n,size:r}=e;const o=r/2;return{type:"rect",x:t-o,y:n-o,width:r,height:r}}const w9=G5();w9.add("circle",(function(e){return{type:"circle",fill:"black",cx:e.x,cy:e.y,r:e.size/2}})),w9.add("diamond",(function(e){const t=e.size,n=e.x-t/2,r=e.y-t/2;return{type:"path",fill:"black",d:s9([{x:n,y:r+t/2},{x:n+t/2,y:r},{x:n+t,y:r+t/2},{x:n+t/2,y:r+t},{x:n,y:r+t/2}])}})),w9.add("saltire",(function(e){const t=u9(45),n=e.size/2,r=isNaN(e.width)?n/2:e.width,o=Math.min(r,n);let i=e.size;const a=Math.sin(Math.asin(-t))*(o/2);i+=2*(n/Math.sin(-t)-n),i-=2*a;const s={x:e.x,y:e.y},l=l9(e.x,e.y,i,o).map((e=>v9(e,t,s)));return{type:"path",fill:"black",d:s9(l)}})),w9.add("square",(function(e){const t=e.size;return{type:"rect",fill:"black",x:e.x-t/2,y:e.y-t/2,width:t,height:t}})),w9.add("triangle",(function(e){const t=e.size,n={x:e.x,y:e.y},r=x9[e.direction]||0,o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];const l=u9(r);return s=s.map((e=>v9(e,l,n))),{type:"path",fill:"black",d:s9(s)}})),w9.add("line",(function(e){const t="vertical"===e.direction,n=e.size/2,r=e.x,o=e.y;return{type:"line",stroke:"black",strokeWidth:1,x1:r-(t?0:n),y1:o-(t?n:0),x2:r+(t?0:n),y2:o+(t?n:0),collider:_9(e)}})),w9.add("star",(function(e){const t=e.size,n=[],r=t/2,o=e.points||5,i=Math.min(e.innerRadius||t/2,t)/2,a=isNaN(e.startAngle)?90:e.startAngle,s=360/o;for(let t=1;t<=o;t++){const o=s*t+a,l=u9(o),u=u9(o+s/2),c=Math.sin(l),d=Math.cos(l),p=Math.sin(u),f=Math.cos(u);n.push({x:e.x+d*r,y:e.y+c*r}),n.push({x:e.x+f*i,y:e.y+p*i})}return{type:"path",fill:"black",d:s9(n)}})),w9.add("n-polygon",(function(e){const t=[],n=e.size/2,r=Math.max(isNaN(e.sides)?6:e.sides,3),o=360/r,i=isNaN(e.startAngle)?0:e.startAngle;for(let a=1;a<=r;a++){const r=u9(o*a+i),s=Math.sin(r),l=Math.cos(r);t.push({x:e.x+l*n,y:e.y+s*n})}return{type:"path",fill:"black",d:s9(t)}})),w9.add("cross",(function(e){const t=e.x,n=e.y,r=e.size/2,o=isNaN(e.width)?r/2:e.width,i=Math.min(o,r);return{type:"path",fill:"black",d:s9(l9(t,n,e.size,i))}})),w9.add("bar",(function(e){const t={x:e.x,y:e.y},n="vertical"===e.direction,r=e.size/2,o=r/2/2;let i=[{x:t.x-r,y:t.y+o},{x:t.x-r,y:t.y-o},{x:t.x+r,y:t.y-o},{x:t.x+r,y:t.y+o}];if(n){const e=u9(90);i=i.map((n=>v9(n,e,t)))}const a=j2(i);return a.type="rect",a.fill="black",a})),w9.add("rect",(function(e){const{x:t,y:n,size:r}=e,o=void 0===e.width?r:e.width,i=void 0===e.height?r:e.height;return{type:"rect",fill:"black",x:t-o/2,y:n-i/2,width:o,height:i}}));const S9=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w9;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.get(t.type);if(n){const e=n(t);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((n=>{void 0!==a9[n]&&"transform"!==n&&(e[n]=t[n])}))}(e,t),void 0!==t.data&&(e.data=t.data),e}return n}};function C9(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dock:n="center",displayOrder:r=0,prioOrder:o=0,preferredSize:i=0,minimumLayoutMode:a,show:s=!0}=e;n=n||"center";return{computePreferredSize(e){let{inner:n,outer:r,children:o}=e;return"function"==typeof i?i({inner:n,outer:r,children:o,dock:this.dock()},t):i},dock(e){return void 0!==e?(n=e,this):"function"==typeof n?n(t):n},displayOrder(e){return void 0!==e?(r=e,this):"function"==typeof r?r(t):r},prioOrder(e){return void 0!==e?(o=e,this):"function"==typeof o?o(t):o},minimumLayoutMode(e){return void 0!==e?(a=e,this):"function"==typeof a?a(t):a},show(e){return void 0!==e?(s=e,this):"function"==typeof s?s(t):s}}}function E9(e,t,n){const{require:r=[]}=t,o=t.mediator||{},{settings:i,formatter:a,scale:s,data:l,renderer:u,chart:c,dockConfig:d,mediator:p,instance:f,rect:h,style:m,registries:g,resolver:b,update:y,_DO_NOT_USE_getInfo:v,symbol:x,isVisible:_}=n;e.emit=()=>{},_&&(e.isVisible=_),Object.defineProperty(e,"settings",{get:i}),Object.defineProperty(e,"data",{get:l}),Object.defineProperty(e,"formatter",{get:a}),Object.defineProperty(e,"scale",{get:s}),Object.defineProperty(e,"mediator",{get:p}),Object.defineProperty(e,"style",{get:m}),Object.defineProperty(e,"registries",{get:g}),h&&Object.defineProperty(e,"rect",{get:h}),v&&(e._DO_NOT_USE_getInfo=v),Object.keys(t).forEach((n=>{var r;r=n,["on","preferredSize","created","beforeMount","mounted","resize","beforeUpdate","updated","beforeRender","render","beforeUnmount","beforeDestroy","destroyed","defaultSettings","data","settings","formatter","scale","chart","dockConfig","mediator","style","resolver","registries","_DO_NOT_USE_getInfo","symbol","isVisible"].some((e=>e===r))||("function"==typeof t[n]?e[n]=t[n].bind(e):e[n]=t[n])})),r.forEach((t=>{"renderer"===t?Object.defineProperty(e,"renderer",{get:u}):"chart"===t?Object.defineProperty(e,"chart",{get:c}):"dockConfig"===t?Object.defineProperty(e,"dockConfig",{get:d}):"instance"===t?Object.defineProperty(e,"instance",{get:f}):"update"===t&&y?Object.defineProperty(e,"update",{get:y}):"resolver"===t?Object.defineProperty(e,"resolver",{get:b}):"symbol"===t&&Object.defineProperty(e,"symbol",{get:x})})),Object.keys(o).forEach((t=>{e.mediator.on(t,o[t].bind(e))}))}function k9(e,t,n){const r=t=>e[t]?(n.warn("Deprecation Warning the ".concat(t," property should be moved into layout: {} property")),e[t]):e.layout?e.layout[t]:void 0,o={};return o.displayOrder=r("displayOrder"),o.dock=r("dock"),o.prioOrder=r("prioOrder"),o.minimumLayoutMode=r("minimumLayoutMode"),e.layout=e.layout||{},e.layout.displayOrder=void 0!==o.displayOrder?o.displayOrder:e.layout.displayOrder,e.layout.prioOrder=void 0!==o.prioOrder?o.prioOrder:e.layout.prioOrder,e.layout.dock=o.dock||e.layout.dock,e.layout.minimumLayoutMode=o.minimumLayoutMode||e.layout.minimumLayoutMode,o.show=e.show,o.preferredSize=t,o}function R9(e,t,n){Object.keys(n.on||{}).forEach((r=>{e.eventListeners=e.eventListeners||[];const o=n.on[r].bind(e);e.eventListeners.push({event:r,listener:o}),t.on(r,o)})),e.emit=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.emit(e,...r)}}function M9(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultSettings:n={},_DO_NOT_USE_getInfo:r=()=>({})}=e,{chart:o,container:i,mediator:a,registries:s,theme:l,renderer:u}=t,c=_7.mixin({});let d,p,f,h,m,g=t.settings||{},b=M2(!0,{},n,g),y=[],v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z7,n={};return{resolve:function(r){let{data:o,settings:i,defaults:a={},scaled:s}=r;const l=n.norm=t.normalizeSettings(i,a,e.chart),u={scale:e.chart.scale,formatter:e.chart.formatter};s&&Object.keys(s).forEach((e=>{l[e]&&t.updateScaleSize(l,e,s[e])}));const c=[];if(!o||!Array.isArray(o.items)){const e={data:o,resources:u};let r=t.resolveForItem(e,n.norm,-1);return{settings:n.norm,item:r}}{let e;for(let r=0,i=o.items.length;r<i;r++){e={datum:o.items[r],data:o,resources:u};let i=t.resolveForItem(e,n.norm,r);i.data=o.items[r],c.push(i)}}return{settings:n.norm,items:c}}}}({chart:o}),x=!1;const _={nodes:[],chart:o,config:b.brush||{},renderer:null},w={tap:[],over:[]},S=[],C={},E=M2({},g);function k(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){const o=void 0!==e[t],i=void 0!==g[t];let a;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o&&("function"==typeof e[t]?a=e[t].call(C,...l):r&&(a=e[t])),i&&("function"==typeof g[t]?a=g[t].call(E,...l):r&&(a=g[t])),o||i||(a=n.call(C,...l)),a}}const R=k("preferredSize",(()=>0),!0),M=k("resize",(e=>{let{inner:t}=e;return t})),A=k("created"),L=k("beforeMount"),I=k("mounted"),P=k("beforeUnmount"),T=k("beforeUpdate"),D=k("updated"),O=k("beforeRender"),z=k("beforeDestroy"),N=k("destroyed"),q=e.render,j=()=>{b.brush&&(b.brush.consume||[]).forEach((e=>{e.context&&e.style&&S.push(t9(_,e))}))},F=()=>{b.brush&&(b.brush.trigger||[]).forEach((e=>{"over"===e.on?w.over.push(e):w.tap.push(e)}))};Object.defineProperty(_,"data",{get:()=>y});const B=b.renderer||e.renderer,$=B?u||s.renderer(B)():u||s.renderer()();"function"==typeof $.settings&&$.settings(b.rendererSettings),_.renderer=$;const W={resources:o.logger?{logger:o.logger()}:{}};let H=C9(k9(b,R,o.logger()),W);const G=e=>{e.key=b.key,e.element=$.element()},V=()=>{};V.dockConfig=()=>H,V.set=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.settings&&(g=e.settings,b=M2(!0,{},n,e.settings),H=C9(k9(b,R,o.logger()),W),_.config=b.brush||{}),b.scale&&(d=o.scale(b.scale)),b.data){const{rendererSettings:e}=b,t="function"==typeof(null==e?void 0:e.progressive)&&e.progressive(),n=I4(b.data,{dataset:o.dataset,collection:o.dataCollection},{logger:o.logger()},o.dataCollection);t?t.isFirst?(y=n,y.items&&(y.items=[...n.items])):y.items&&(y.items=[...y.items,...n.items||[]]):y=n}else y=d?d.data():[];"string"==typeof b.formatter||"object"==typeof b.formatter?p=o.formatter(b.formatter):d&&d.data().fields&&(p=d.data().fields[0].formatter()),m=l.style(b.style||{})},V.resize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=M({inner:e,outer:t});h=n?$.size(n):$.size(e),E.rect=M2(!0,{computedPhysical:h.computedPhysical,computedOuter:t.computed||t,computedInner:e.computed||e},e),h=M2(!0,{computedOuter:t.computed||t,computedInner:e.computed||e},h)},V.getRect=()=>E.rect;const U=()=>{const e=$.renderArgs?$.renderArgs.slice(0):[],{rendererSettings:t}=b;let n=y;const r="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();return y.items&&r&&(n=P2(P2({},y),{},{items:y.items.slice(r.start,r.end)})),e.push({data:n}),e};let Y,K,X;function Q(e){const{rendererSettings:t}=b,n="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();n?n.isFirst?_.nodes=[...e||[]]:_.nodes&&(_.nodes=[..._.nodes,...e||[]]):_.nodes=e}V.beforeMount=L,V.beforeRender=()=>{O({size:h})},V.render=()=>{const e=q.call(C,...U());Q(e),$.render(e),Y=e,K=E.rect.computed},V.hide=()=>{V.unmount(),$.size({x:0,y:0,width:0,height:0}),$.clear()},V.beforeUpdate=()=>{T({settings:b,data:y})},V.update=()=>{X&&X.stop();const{rendererSettings:e,brush:t,animations:n}=b;if("function"==typeof(null==e?void 0:e.transform)&&e.transform())return $.render(),void(Y=null);const r=q.call(C,...U());Q(r),S.forEach((e=>e.cleanUp())),S.length=0,w.tap=[],w.over=[],t&&(j(),F()),S.forEach((e=>{e.isActive()&&e.update()})),Y&&n&&("function"==typeof n.enabled?n.enabled():n.enabled)?(n.compensateForLayoutChanges&&n.compensateForLayoutChanges({currentNodes:Y,currentRect:E.rect.computed,previousRect:K}),X=function(e,t,n,r){let o,{old:i,current:a}=e,{renderer:s}=t,l=[],u={nodes:[],ips:[]},c={nodes:[],ips:[]},d={nodes:[],ips:[]},p=[],f=null;const h=n.trackBy||U7,m={start(){let e={};if(i.forEach(((t,n)=>{let r=h(t,n);e[r]=t})),a.forEach(((t,n)=>{let r=h(t,n);if(e[r]){if("path"===t.type&&t.points&&t.points.length>0&&"trend"!==t.data.source.key){const n=function(e,t){const n=e.points.filter((e=>!e.dummy)),r=t.points.filter((e=>!e.dummy)),o=r.map((e=>e.data.major.value)),i=n.filter((e=>o.includes(e.data.major.value))).map((e=>e.data.major.value)),a=n.filter((e=>i.includes(e.data.major.value))),s=r.filter((e=>i.includes(e.data.major.value)));return{old:a,current:s}}(e[r],t);d.ips.push(V7(M2({},e[r],{points:n.old}),M2({},t,{points:n.current}))),l.push(M2({},e[r],{commonPoints:n.old}))}else d.ips.push(V7(e[r],t)),l.push(e[r]);d.nodes.push(t),e[r]=!1}else u.nodes.push(t),u.ips.push(V7(M2({},t,{r:.001,opacity:0}),t))})),Object.keys(e).forEach((t=>{e[t]&&(c.nodes.push(e[t]),c.ips.push(V7(e[t],M2({},e[t],{r:1e-4,opacity:0}))))})),p.push({name:"exiting",easing:F7,duration:200,tweens:c.ips,nodes:[...l]}),p.push({name:"updating",easing:$7,duration:400,tweens:d.ips,nodes:[]}),p.push({name:"entering",easing:B7,duration:200,tweens:u.ips,nodes:[...d.nodes]}),n.isMainComponent){var t;const e=null===(t=n.isMainComponent)||void 0===t?void 0:t.filterFn,o=e?l.filter(e).length:l.length,{isInit:i,shouldBeRemoved:a}=r.getValue("animations.updatingStageMeta");!1===i?(r.setValue("animations.updatingStageMeta.shouldBeRemoved",0===o),r.setValue("animations.updatingStageMeta.isInit",!0)):r.setValue("animations.updatingStageMeta.shouldBeRemoved",a&&0===o)}p.length&&(f=s.getScene(a),p[0].started=Date.now(),"undefined"!=typeof window&&(o=window.requestAnimationFrame(m.tick)))},tick(){let e=p[0];e||m.stop(),e.started||(e.started=Date.now());let t=(Date.now()-e.started)/e.duration,i=[],a=e.tweens.map((n=>n(e.easing(Math.min(1,t)))));const{adjustTweenedNodes:l}=n;if(l&&l(a),i.push(...a),i.push(...e.nodes),s.render(i),t>=1){p.shift();const{isInit:e,shouldBeRemoved:t}=r.getValue("animations.updatingStageMeta");p.length?"updating"===p[0].name&&t&&p.shift():(!0===e&&r.setValue("animations.updatingStageMeta.isInit",!1),m.stop())}o&&(o=window.requestAnimationFrame(m.tick))},stop(){o&&(window.cancelAnimationFrame(o),o=!1)},inProgress:()=>!!o,get targetScene(){return f}};return m}({old:Y,current:r},{renderer:$},n,o.storage),X.start()):$.render(r),Y=r,K=E.rect.computed,$.setKey&&"string"==typeof g.key&&$.setKey(g.key)},V.updated=D,V.destroy=()=>{V.unmount(),z(f),$.destroy(),N(),f=null};const J=e=>{_.nodes=e,S.forEach((e=>{e.isActive()&&e.update()})),$.render(e)};return E9(C,e,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,instance:()=>E,rect:()=>E.rect,style:()=>m,update:()=>J,registries:()=>s,resolver:()=>v,symbol:()=>S9(s.symbol)}),E9(E,g,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,style:()=>m,_DO_NOT_USE_getInfo:r.bind(C),isVisible:()=>x}),V.getBrushedShapes=function(e,t,n){const r=[];if(b.brush&&b.brush.consume){const i=o.brush(e),a=$.findShapes("*");b.brush.consume.filter((t=>t.context===e)).forEach((e=>{for(let o=0;o<a.length;o++){const s=a[o];s.data&&i.containsMappedData(s.data,n||e.data,t)&&(G(s),r.push(s),a.splice(o,1),o--)}}))}return r},V.findShapes=e=>{var t;const n=(null!==(t=X)&&void 0!==t&&t.inProgress()?X.targetScene:$).findShapes(e);for(let e=0,t=n.length;e<t;e++)G(n[e]);return n},V.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$.itemsAt(e);let r;r=t&&"stop"===t.propagation&&n.length>0?[n.pop().node]:n.map((e=>e.node));for(let e=0,t=r.length;e<t;e++)G(r[e]);return r},V.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.contexts=Array.isArray(t.contexts)?t.contexts:[];n9({nodes:e,action:t.action||"toggle",trigger:t,chart:o,data:_.data})},V.mount=()=>{f=$.element&&$.element()?f:$.appendTo(i),$.setKey&&"string"==typeof g.key&&$.setKey(g.key),b.brush&&(j(),F()),R9(E,c,g),R9(C,c,e),x=!0},V.mounted=()=>I(f),V.unmount=()=>{[E,C].forEach((e=>{!function(e,t){e.eventListeners&&(e.eventListeners.forEach((e=>{let{event:n,listener:r}=e;t.removeListener(n,r)})),e.eventListeners.length=0),e.emit=()=>{}}(e,c)})),w.tap=[],w.over=[],S.forEach((e=>{e.cleanUp()})),S.length=0,P(),x=!1},V.onBrushTap=e=>{w.tap.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return r9({collisions:o9(t,n,r.renderer),t:n,config:r,action:i9(n.action,t,"toggle")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.onBrushOver=e=>{w.over.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return r9({collisions:o9(t,n,r.renderer),t:n,config:r,action:i9(n.action,t,"set")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.def=C,V.ctx=E,V.renderer=()=>$,V.set({settings:g}),A(),V}function A9(e){const t=M2(!0,{},e),n={getAll:()=>t,getValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}(t,e,n),setValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}(t,e,n)};return n}function L9(e,t,n){const r=d9(function(e,t){const n=y9(e,t)/y9(t,t)||1;return{x:t.x*n,y:t.y*n}}(p9(n,e),p9(t,e)),e);return r}function I9(e,t,n){return b9(e,n)+b9(t,n)-b9(e,t)<1e-12}function P9(e,t){return e.x>=t.x&&e.x+e.width<=t.x+t.width&&e.y>=t.y&&e.y+e.height<=t.y+t.height}function T9(e){return e.x1===e.x2&&e.y1===e.y2}function D9(e){return e.width<=0||e.height<=0}function O9(e){return e.r<=0}function z9(e){return e.edges.length<=2}function N9(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=H9(e,F2(t.edges[r])),!0===n)return!0;return!1}function q9(e,t){let n=!1;const{numPolygons:r,polygons:o}=t;for(let t=0;t<r;t++){if(n=Z9(e,o[t]),!0===n)return!0}return!1}function j9(e,t){if(O9(e))return!1;return g9({x:e.cx,y:e.cy},t)<=e.r**2}function F9(e,t){if(D9(t)||O9(e))return!1;const n=t.width/2,r=t.height/2,o=t.x+n,i=t.y+r,a=e.r,s=e.cx,l=e.cy,u=Math.abs(s-o),c=Math.abs(l-i);if(u>n+a||c>r+a)return!1;if(u<=n||c<=r)return!0;return(u-n)**2+(c-r)**2<=a**2}function B9(e,t){if(O9(e)||T9(t))return!1;const[n,r]=N2(t);if(j9(e,n)||j9(e,r))return!0;const o={x:e.cx,y:e.cy},i=L9(n,r,o);return g9(i,o)<=e.r**2&&I9(n,r,i)}function $9(e,t){if(z9(t)||O9(e))return!1;if(W9(t,{x:e.cx,y:e.cy}))return!0;const n=t.edges.length;for(let r=0;r<n;r++){if(B9(e,F2(t.edges[r])))return!0}return!1}function W9(e,t){if(z9(e)||!Y9(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.vertices;let i,a,s,l,u;for(i=!1,l=-1,a=o.length,s=a-1;++l<a;s=l){if(o[l].x===n&&o[l].y===r)return!0;if(o[l].y===o[s].y&&o[l].y===r&&(n-o[l].x)*(n-o[s].x)<=0)return!0;if(o[l].y<r&&r<=o[s].y||o[s].y<r&&r<=o[l].y){if(u=(o[s].x-o[l].x)*(r-o[l].y)/(o[s].y-o[l].y)+o[l].x,n===u)return!0;n<u&&(i=!i)}}return i}function H9(e,t){if(z9(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(X9(t,F2(e.edges[n])))return!0}const[n,r]=N2(t);return W9(e,n)||W9(e,r)}function G9(e,t){if(z9(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(K9(t,F2(e.edges[n])))return!0}const[n,r,o,i]=q2(t);return W9(e,n)||W9(e,r)||W9(e,o)||W9(e,i)}function V9(e,t){return!D9(e)&&!D9(t)&&(e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height)}function U9(e,t){if(D9(e)||D9(t))return!1;return[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}].every((t=>Y9(e,t)))}function Y9(e,t){return!D9(e)&&(t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height)}function K9(e,t){if(T9(t)||D9(e))return!1;const[n,r]=N2(t);if(Y9(e,n)||Y9(e,r))return!0;const o=q2(e);let i=o.length;for(let e=0;e<i;e++){if(X9(F2([o[e],o[3!==e?e+1:0]]),t))return!0}return!1}function X9(e,t){const[n,r]=N2(e),[o,i]=N2(t),a=h9(r,n),s=m9(r,n),l=h9(i,o),u=m9(i,o),c=h9(n,o),d=m9(n,o);let p=u*a-l*s;const f=l*d-u*c,h=a*d-s*c;let m,g;if(0===a&&0===s)return!1;if(0===l&&0===u)return!1;if(0===p){if(0===f&&0===h){if(0===a){if(0===s)return n.x===r.x&&n.y===r.y;m=m9(o,n)/s,g=m9(i,n)/s}else m=(o.x-n.x)/a,g=(i.x-n.x)/a;return!(m<0&&g<0||m>1&&g>1)}return!1}const b=f/p;return p=h/p,b>=0&&b<=1&&p>=0&&p<=1}function Q9(e,t){if(T9(e))return!1;const[n,r]=N2(e);return I9(n,r,t)}function J9(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!V9(n,r)&&(U9(n,r)?N9(e,t):N9(t,e))}function Z9(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!V9(n,r)&&(U9(r,n)?function(e,t){let n=!1;const{numPolygons:r,polygons:o}=e;for(let e=0;e<r;e++)if(n=J9(t,o[e]),!0===n)return!0;return!1}(e,t):function(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=nee(e,F2(t.edges[r])),!0===n)return!0;return!1}(e,t))}function eee(e,t){if(O9(e))return!1;if(tee(t,{x:e.cx,y:e.cy}))return!0;const{numPolygons:n,polygons:r}=t;for(let t=0;t<n;t++){const n=r[t],o=n.edges.length;for(let t=0;t<o;t++){if(B9(e,F2(n.edges[t])))return!0}}return!1}function tee(e,t){if(!Y9(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.numPolygons;let i,a,s,l,u,c,d=!1;for(a=0;a<o;a++)for(i=e.vertices[a],u=-1,s=i.length,l=s-1;++u<s;l=u){if(i[u].x===n&&i[u].y===r)return!0;if(i[u].y===i[l].y&&i[u].y===r&&(n-i[u].x)*(n-i[l].x)<=0)return!0;if(i[u].y<r&&r<=i[l].y||i[l].y<r&&r<=i[u].y){if(c=(i[l].x-i[u].x)*(r-i[u].y)/(i[l].y-i[u].y)+i[u].x,n===c)return!0;n<c&&(d=!d)}}return d}function nee(e,t){const[n,r]=N2(t);if(tee(e,n)||tee(e,r))return!0;const{numPolygons:o,polygons:i}=e;for(let e=0;e<o;e++){const n=i[e];for(let e=0,r=n.edges.length;e<r;e++){if(X9(t,F2(n.edges[e])))return!0}}return!1}function ree(e,t){const[n,r,o,i]=q2(t);if(tee(e,n)||tee(e,r)||tee(e,o)||tee(e,i))return!0;const{numPolygons:a,polygons:s}=e;for(let e=0;e<a;e++){const n=s[e];for(let e=0,r=n.edges.length;e<r;e++){if(K9(t,F2(n.edges[e])))return!0}}return!1}const oee=/^\$/,iee="@extend";function aee(e){throw new Error('Cyclical reference for "'.concat(e,'"'))}function see(e,t,n){if("string"==typeof e){let r=t[e];return-1!==n.indexOf(e)&&aee(e),oee.test(r)?(n.push(e),see(r,t,n)):r}let r=e;const o=M2(!0,{},t,e),i={};if(e[iee]){const i=e[iee];-1!==n.indexOf(i)&&aee(i);let a=n.slice();a.push(i),r=M2(!0,{},see(o[i],t,a),e)}return Object.keys(r).forEach((e=>{let t=n.slice();if(e===iee||oee.test(e))return;i[e]=r[e];let a=i[e];oee.test(a)&&a in o?(-1!==n.indexOf(a)&&aee(a),t.push(a),a=o[a],"object"==typeof a||oee.test(a)&&a in o?i[e]=see(a,o,t):i[e]=a):"object"==typeof a&&(i[e]=see(a,o,t))})),i}function lee(e,t){return see(e,t,[])}function uee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=e;const r=e=>{e.forEach((e=>{const n=Array.isArray(e.colors[0])?e.colors:[e.colors];t[e.key]={colors:n,sizes:n.map((e=>e?e.length:0))}}))},o={palette:(e,n)=>((e,n)=>{const r=t[e];if(!r)return[];const o=r.sizes;for(let e=0;e<o.length;e++)if(n<=o[e])return r.colors[e];return r.colors[o.length-1]})(e,n),setPalettes:r,style:e=>lee(e,n),setStyle:t=>{n=M2({},e,t)}};return r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),o}function cee(e){e.x=Math.floor(e.x),e.y=Math.floor(e.y),e.width=Math.floor(e.width),e.height=Math.floor(e.height)}function dee(e){const t={center:{minWidthRatio:.5,minHeightRatio:.5,minWidth:0,minHeight:0}};return M2(!0,t,e),t.center.minWidthRatio=Math.min(Math.max(t.center.minWidthRatio,0),1),t.center.minHeightRatio=Math.min(Math.max(t.center.minHeightRatio,0),1),t.center.minWidth=Math.max(t.center.minWidth,0),t.center.minHeight=Math.max(t.center.minHeight,0),t}function pee(e,t,n,r,o){return{x:isNaN(e)?0:e,y:isNaN(e)?0:t,width:isNaN(e)?0:n,height:isNaN(e)?0:r,margin:isNaN(o)?0:o}}function fee(e,t,n){if(void 0===e.cachedSize){const r=e.config.dock();let o,i=e.comp.preferredSize({inner:t,outer:n,dock:r});isNaN(i)?i&&!isNaN(i.size)&&(i.width=i.size,i.height=i.size):i={width:i,height:i},o="top"===r||"bottom"===r?i.height:"right"===r||"left"===r?i.width:Math.max(i.width,i.height),e.cachedSize=Math.ceil(o),e.edgeBleed=i.edgeBleed||0}return e.cachedSize}function hee(e,t){switch(t.config.dock()){case"top":e.y+=t.cachedSize,e.height-=t.cachedSize;break;case"bottom":e.height-=t.cachedSize;break;case"left":e.x+=t.cachedSize,e.width-=t.cachedSize;break;case"right":e.width-=t.cachedSize}}function mee(e,t){const n=t.edgeBleed;n&&(e.left=Math.max(e.left,n.left||0),e.right=Math.max(e.right,n.right||0),e.top=Math.max(e.top,n.top||0),e.bottom=Math.max(e.bottom,n.bottom||0))}function gee(e,t,n){t.x<n.left&&(t.width-=n.left-t.x,t.x=n.left);const r=e.width-(t.x+t.width);r<n.right&&(t.width-=n.right-r),t.y<n.top&&(t.height-=n.top-t.y,t.y=n.top);const o=e.height-(t.y+t.height);o<n.bottom&&(t.height-=n.bottom-o)}function bee(e,t,n,r,o){const i=M2({},t),a=M2({},n);hee(i,r),mee(a,r),gee(e,i,a);const s=function(e,t,n){const r=Math.min(n.center.minWidth,e.width)||Math.max(e.width*n.center.minWidthRatio,1),o=Math.min(n.center.minHeight,e.height)||Math.max(e.height*n.center.minHeightRatio,1);return t.width>=r&&t.height>=o}(e,i,o);return!!s&&(hee(t,r),mee(n,r),!0)}function yee(e){return{x:e.margin.left+e.x*e.scaleRatio.x,y:e.margin.top+e.y*e.scaleRatio.y,width:e.width*e.scaleRatio.x,height:e.height*e.scaleRatio.y}}function vee(e){return j2([].concat(...e.map(q2)))}function xee(e){let{visible:t,layoutRect:n,reducedRect:r,containerRect:o,translation:i}=e;const a=pee(r.x,r.y,r.width,r.height),s=pee(r.x,r.y,r.width,r.height),l={},u=t.slice(),c=u.slice().sort(((e,t)=>e.config.displayOrder()-t.config.displayOrder()));return t.sort(((e,t)=>{if(e.referencedDocks.length>0&&t.referencedDocks.length>0)return 0;if(t.referencedDocks.length>0)return-1;if(e.referencedDocks.length>0)return 1;const n=e.config.displayOrder()-t.config.displayOrder();return 0===n?u.indexOf(e)-u.indexOf(t):n})).forEach((e=>{let t={},u={};switch(e.config.dock()){case"top":t.height=u.height=e.cachedSize,t.width=n.width,u.width=a.width,t.x=n.x,u.x=a.x,t.y=u.y=a.y-e.cachedSize,a.y-=e.cachedSize,a.height+=e.cachedSize;break;case"bottom":t.x=n.x,u.x=a.x,t.y=u.y=a.y+a.height,t.width=n.width,u.width=a.width,t.height=u.height=e.cachedSize,a.height+=e.cachedSize;break;case"left":t.x=u.x=s.x-e.cachedSize,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.x-=e.cachedSize,s.width+=e.cachedSize;break;case"right":t.x=u.x=s.x+s.width,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.width+=e.cachedSize;break;case"center":t.x=u.x=r.x,t.y=u.y=r.y,t.width=u.width=r.width,t.height=u.height=r.height;break;default:if(e.referencedDocks.length>0){const n=e.referencedDocks.map((e=>l[e])).filter((e=>!!e));n.length>0&&(t=vee(n.map((e=>e.outerRect))),u=vee(n.map((e=>e.r))))}}e.key&&(l[e.key]={r:u,outerRect:t}),function(e,t,n,r){const o={x:r.width/n.width,y:r.height/n.height},i={left:0,top:0};if(n.preserveAspectRatio){const e=o.x<o.y,t=Math.min(o.x,o.y);o.x=t,o.y=t;const a=e?"height":"width",s=(r[a]-n[a]*o.x)*n.align;i.left=e?0:s,i.top=e?s:0}e.scaleRatio=o,e.margin=i,t.scaleRatio=o,t.margin=i,n.scaleRatio=o,n.margin=i}(u,t,n,o),u.edgeBleed=e.edgeBleed,u.computed=yee(u),t.edgeBleed=e.edgeBleed,t.computed=yee(t),u.x+=i.x,u.y+=i.y,t.x+=i.x,t.y+=i.y,e.comp.resize(u,t),e.cachedSize=void 0,e.edgeBleed=void 0})),c}function _ee(e,t,n){const r=e.layoutModes||{},o=t.minimumLayoutMode();let i=t.show();return i&&"object"==typeof o?i=r[o.width]&&r[o.height]&&n.width>=r[o.width].width&&n.height>=r[o.height].height:i&&void 0!==o&&(i=r[o]&&n.width>=r[o].width&&n.height>=r[o].height),i}function wee(e){if(!e.resize||"function"!=typeof e.resize)throw new Error("Component is missing resize function");if(!e.dockConfig&&!e.preferredSize)throw new Error("Component is missing preferredSize function")}function See(e){let t=dee(e);const n={};return n.layout=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.width)||isNaN(e.height))throw new Error("Invalid rect");if(!n.length)return{visible:[],hidden:[],ordered:[]};const{logicalContainerRect:r,containerRect:o}=function(e,t){const n={x:0,y:0,width:0,height:0},r={x:0,y:0,width:0,height:0};return n.width=e.width||0,n.height=e.height||0,void 0!==t.size&&(n.width=isNaN(t.size.width)?n.width:t.size.width,n.height=isNaN(t.size.height)?n.height:t.size.height),void 0!==t.logicalSize?(r.width=isNaN(t.logicalSize.width)?n.width:t.logicalSize.width,r.height=isNaN(t.logicalSize.height)?n.height:t.logicalSize.height,r.align=isNaN(t.logicalSize.align)?.5:Math.min(Math.max(t.logicalSize.align,0),1),r.preserveAspectRatio=t.logicalSize.preserveAspectRatio):(r.width=n.width,r.height=n.height,r.preserveAspectRatio=!1),cee(r),cee(n),{logicalContainerRect:r,containerRect:n}}(e,t),[i,a]=function(e,t,n){const r=[],o=[];for(let i=0;i<e.length;++i){const a=e[i];wee(a);let s=a.dockConfig;const l=a.key,u=s.dock(),c=/@/.test(u)?u.split(",").map((e=>e.replace(/^\s*@/,""))):[];_ee(t,s,n)?r.push({comp:a,key:l,config:s,referencedDocks:c}):o.push({comp:a,key:l,config:s,referencedDocks:c})}return[r,o]}(n,t,r),s=function(e){let{layoutRect:t,visible:n,hidden:r,settings:o}=e;const i=pee(t.x,t.y,t.width,t.height),a={left:0,right:0,top:0,bottom:0},s=n.slice();s.sort(((e,t)=>e.config.prioOrder()-t.config.prioOrder()));for(let e=0;e<s.length;++e){const n=s[e];fee(n,i,t),bee(t,i,a,n,o)||(r.push(s.splice(e,1)[0]),--e)}!function(e,t){if(0!==t.length)for(let n=0;n<e.length;++n){let r=e[n];if(r.referencedDocks.length){const o=r.referencedDocks.every((e=>t.some((t=>t.key===e))));o&&t.push(e.splice(n,1)[0])}}}(n,r);const l=n.filter((e=>-1!==s.indexOf(e)));return n.length=0,n.push(...l),gee(t,i,a),i}({layoutRect:r,visible:i,hidden:a,settings:t}),l=xee({visible:i,layoutRect:r,reducedRect:s,containerRect:o,translation:{x:e.x,y:e.y}});return a.forEach((e=>{e.comp.visible=!1;const t=pee();e.comp.resize(t,t)})),{visible:i.map((e=>e.comp)),hidden:a.map((e=>e.comp)),ordered:l.map((e=>e.comp))}},n.settings=function(e){t=dee(e)},n}const Cee=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.hasKey&&r.key===t)return e[n]}return null},Eee=e=>null==e?void 0:e.map((e=>{const t=e.instance.dockConfig();return{preferredSize:n=>t.computePreferredSize(P2(P2({},n),{},{children:Eee(e.children)}))}})),kee=(e,t)=>({visible:[],hidden:t,ordered:[]}),Ree=e=>(t,n)=>{var r;const o=n.map(((e,t)=>{const n=e.instance.dockConfig();return{index:t,key:e.key,dockConfig:n,resize:e.instance.resize,preferredSize:t=>n.computePreferredSize(P2(P2({},t),{},{children:Eee(e.children)}))}})),i=e=>n[e.index],{visible:a=o,hidden:s=[],ordered:l=a}=null!==(r=e(t,o))&&void 0!==r?r:{};return{visible:a.map(i),hidden:s.map(i),ordered:l.map(i)}},Mee=e=>"function"==typeof e?Ree(e):(e=>{const t=See(e);return Ree(((e,n)=>t.layout(e,n)))})(e);function Aee(e,t,n){const r=t.left-n.left,o=t.top-n.top,i=B2(e),a=M2(!0,{},e);switch(i){case"circle":a.cx+=r,a.cy+=o;break;case"polygon":for(let e=0,t=a.vertices.length;e<t;e++){const t=a.vertices[e];t.x+=r,t.y+=o}break;case"geopolygon":for(let e=0;e<a.vertices.length;e++){const t=a.vertices[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n.x+=r,n.y+=o}}break;case"line":a.x1+=r,a.y1+=o,a.x2+=r,a.y2+=o;break;case"point":case"rect":a.x+=r,a.y+=o}return a}function Lee(e,t){const n=[];let r=0;t.forEach((e=>{n.push(r),r++;const t=e.instance.def.additionalElements&&e.instance.def.additionalElements();t&&(r+=t.length)})),t.forEach(((t,r)=>((e,t,n)=>{const r=t.instance.renderer().element();if(isNaN(n)||!r||!e||!e.children)return;const o=e.children[Math.max(0,n)];if(r===o)return;const i=t.instance.def.additionalElements&&t.instance.def.additionalElements().filter(Boolean);e.insertBefore&&void 0!==o?(e.insertBefore(r,o),i&&i.forEach((t=>{e.insertBefore(t,r)}))):(i&&i.forEach((t=>{e.appendChild(t,r)})),e.appendChild(r))})(e,t,n[r])))}function Iee(e,t){let{element:n,data:r=[],settings:o={},on:i={}}=e;const a=t.registries,s=t.logger,l=uee(t.style,t.palettes),u=[],c=M2({},e),d=function(){const e={};return _7.mixin(e),e}();let p=[],f=null,h=null,m=null,g=[],b=()=>{},y=()=>{};const v={};let x=!1;const _=function(e){let{createComponent:t}=e;const n={};let r=[],o=[];const i=e=>{const n=t(e);return n&&(r.push(n),e.components&&(n.children=e.components.map((e=>i(e))).filter((e=>!!e)))),n},a=e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)},s=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n],o=t.find((e=>r.hasKey&&r.key===e.key));o?r.children&&o.components&&s(r.children,o.components):(e.splice(n,1),a(r),r.children&&s(r.children,[]),r.instance.destroy())}},l=e=>{let{compList:t,data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:s}=e;return s.map((e=>{const s=Cee(t,e.key);return r.indexOf(e.key)>-1?(delete s.updateWith,s):s?(e.rendererSettings&&"function"==typeof s.instance.renderer().settings&&s.instance.renderer().settings(e.rendererSettings),e.rendererSettings&&"function"==typeof e.rendererSettings.transform&&e.rendererSettings.transform()?(s.applyTransform=!0,s):(s.updateWith={formatters:o,scales:a,data:n,settings:e},e.components&&(s.children=l({compList:s.children||[],data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:e.components})),s)):i(e)})).filter((e=>!!e))},u=e=>{let{components:t,hidden:n,layoutFn:r,ordered:o,rect:i,visible:a}=e;const{visible:s,hidden:l,ordered:c}=r(i,t);a.push(...s),n.push(...l),o.push(...c),s.forEach((e=>{if(e.children){var t,r;const i=Mee(null!==(t=null===(r=e.settings)||void 0===r?void 0:r.strategy)&&void 0!==t?t:{});u({components:e.children,hidden:n,layoutFn:i,ordered:o,rect:e.instance.getRect(),visible:a})}})),l.forEach((e=>{e.children&&u({components:e.children,hidden:n,layoutFn:kee,ordered:o,rect:null,visible:a})}))};return n.destroy=()=>{r.forEach((e=>e.instance.destroy())),r=[],o=[]},n.findComponentByKey=e=>Cee(r,e),n.forEach=e=>{r.forEach(e)},n.layout=e=>{let{layoutSettings:t,rect:n}=e;const r=[],i=[],a=[],s=Mee(t);return u({components:o,hidden:i,layoutFn:s,ordered:a,rect:n,visible:r}),{visible:r,hidden:i,ordered:a}},n.set=e=>{let{components:t}=e;o=t.map((e=>i(e))).filter((e=>!!e))},n.update=e=>{let{components:t,data:n,excludeFromUpdate:r,formatters:i,scales:a}=e;s(o,t),o=l({compList:o,data:n,excludeFromUpdate:r,formatters:i,scales:a,settingsList:t})},n}({createComponent:e=>{if(!a.component.has(e.type))return s.warn("Unknown component: ".concat(e.type)),!1;return{instance:M9(a.component(e.type),{settings:e,chart:c,mediator:d,registries:a,theme:l,container:n}),settings:M2(!0,{},e),key:e.key,hasKey:void 0!==e.key}}});function w(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){const r="function"==typeof e[t];let o;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r?e[t].call(c,...a):n.call(c,...a),o}}const S=()=>{let e;o.dockLayout?(s.warn('Deprecation Warning: "dockLayout" property should be renamed to "strategy"'),e=o.dockLayout):e=o.strategy;const t=function(e){if("function"==typeof e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();return{x:0,y:0,width:t,height:n}}return{x:0,y:0,width:0,height:0}}(n);return _.layout({layoutSettings:e,rect:t})},C=w("created"),E=w("beforeMount"),k=w("mounted"),R=w("beforeUpdate"),M=w("updated"),A=w("beforeRender"),L=w("beforeDestroy"),I=w("destroyed"),P=function(e,t){let{partialData:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{formatters:r={},scales:o={},scroll:i={}}=t;b=function(e,t){let{types:n,logger:r}=t;const o={},i=[];return Array.isArray(e)?i.push(...e):(r.warn('Deprecated: "data-source" configuration"'),i.push(e)),i.forEach(((e,t)=>{let i=n(e.type);if(i){let n=e.key;void 0===e.key&&(r.warn("Missing key for dataset. Using index '".concat(t,"' as key.")),n=t);let a=i({key:n,data:e.data,config:e.config});o[n]=a}})),e=>e?o[e]:o[Object.keys(o)[0]]}(e,{logger:s,types:a.data}),n||Object.keys(v).forEach((e=>v[e].clear())),t.palettes&&l.setPalettes(t.palettes),t.style&&l.setStyle(t.style),y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I4;const o={};return(e||[]).forEach((e=>{if(!e.key)throw new Error('Data collection is missing "key" property');if("object"==typeof e.data&&"collection"in e.data)throw new Error("Data config for collections may not reference other collections");o[e.key]=()=>r(e.data,t,n)})),e=>{let t,n;if("string"==typeof e?t=e:"object"==typeof e&&(t=e.key,n=e),!(t in o))throw new Error("Unknown data collection: ".concat(t));"function"==typeof o[t]&&(o[t]=o[t]());let r=o[t];if(n&&n.fields&&n.fields.filter){let e=r.fields.filter(n.fields.filter);r.fields.length!==e.length&&(r=M2(r,{fields:e}))}return r}}(t.collections,{dataset:b},{logger:s});const u={theme:l,logger:s};f=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b7;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"scale"in i&&e[i.scale]&&(a=i.scale),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i,t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(o,{dataset:b,collection:y},P2(P2({},u),{},{scale:a.scale})),h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:P4;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"formatter"in i&&e[i.formatter]?a=i.formatter:"object"==typeof i&&"type"in i&&e[i.type]&&(a=i.type),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i||{},t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(r,{dataset:b,collection:y},P2(P2({},u),{},{formatter:a.formatter})),m=function(e,t){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=S7(e[r],t?t[r]:null));return n}(i,m)};function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},r=e.filter((e=>!!e.key)).map((e=>e.key));g.forEach((e=>{e.key&&-1!==r.indexOf(e.key)?t[e.key]=e:e.destroy()})),g=e.map((e=>{const r=e.key&&t[e.key]?t[e.key]:a.interaction(e.type)(c,d,n);return r.set(e),r}))}const D=e=>{const t=n.getBoundingClientRect(),r="clientX"in e?e.clientX:e.x,o="clientY"in e?e.clientY:e.y,i={x:r-t.left,y:o-t.top},a=[];return p.forEach((e=>{const t=e.instance.getRect();Y9(t.computedPhysical?t.computedPhysical:{x:t.margin.left+t.x*t.scaleRatio.x,y:t.margin.top+t.y*t.scaleRatio.y,width:t.width*t.scaleRatio.x,height:t.height*t.scaleRatio.y},i)&&a.push(e)})),a},O=()=>{if(u.length||!n)return;Object.keys(i).forEach((e=>{const t=i[e].bind(c);n.addEventListener(e,t),u.push({key:e,listener:t})}));const e={},t=t=>{t.touches?(e.x=t.touches[0].clientX,e.y=t.touches[0].clientY,e.multiTouch=t.touches.length>1):(e.x=t.clientX,e.y=t.clientY,e.multiTouch=!1),e.time=Date.now(),e.comps=D(e)},r=t=>{const n=e.comps||D(t);if(!n.every((e=>e.instance.def.disableTriggers))&&("touchend"===t.type&&t.preventDefault(),function(e,t){const n=T2(e),r=n?e.changedTouches[0]:e,o=Date.now()-t.time,i=isNaN(t.x)?0:Math.abs(r.clientX-t.x),a=isNaN(t.y)?0:Math.abs(r.clientY-t.y);return(0===e.button||n)&&!t.multiTouch&&i<=12&&a<=12&&o<=300}(t,e)))for(let e=n.length-1;e>=0;e--){if(n[e].instance.onBrushTap(t),x){x=!1;break}}},o=[];o.push({key:"mousedown",listener:t}),o.push({key:"mouseup",listener:r}),function(e){return"ontouchstart"in e&&"ontouchend"in e||navigator.maxTouchPoints>1}(n)&&(o.push({key:"touchstart",listener:t}),o.push({key:"touchend",listener:r})),o.push({key:"mousemove",listener:e=>{const t=D(e);for(let n=t.length-1;n>=0;n--){if(t[n].instance.onBrushOver(e),x){x=!1;break}}}}),o.forEach((e=>{n.addEventListener(e.key,e.listener),u.push(e)}))},z=()=>{u.forEach((e=>{let{key:t,listener:r}=e;return n.removeEventListener(t,r)})),u.length=0},N=()=>{n.innerHTML="",(()=>{const{components:e=[]}=o;A(),P(r,o),_.set({components:e});const{visible:t,hidden:i,ordered:a}=S();p=t,i.forEach((e=>{e.instance.hide(),e.visible=!1})),t.forEach((e=>e.instance.beforeMount())),t.forEach((e=>e.instance.mount())),t.forEach((e=>e.instance.beforeRender())),t.forEach((e=>e.instance.render())),t.forEach((e=>e.instance.mounted())),t.forEach((e=>{e.visible=!0})),Lee(n,a)})(),O(),T(o.interactions)};return c.layoutComponents=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{excludeFromUpdate:t=[]}=e;e.data&&(r=e.data),e.settings&&(o=e.settings,T(e.settings.interactions)),R(),P(r,o);const{formatters:n,scales:i,components:a=[]}=o;_.update({components:a,data:r,excludeFromUpdate:t,formatters:n,scales:i}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()})),S()},c.update=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{partialData:t,excludeFromUpdate:i=[]}=e;let a;e.data&&(r=e.data),e.settings&&(o=e.settings,T(e.settings.interactions)),R(),P(r,o,{partialData:t});const{formatters:s,scales:l,components:u=[]}=o;_.update({components:u,data:r,excludeFromUpdate:i,formatters:s,scales:l}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()}));const c=[],d=[];let f;if(t)_.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible&&c.push(e)})),f=c;else{const{visible:e,hidden:t,ordered:n}=S();p=e,f=e,a=n,e.forEach((e=>{e.updateWith&&e.visible?c.push(e):d.push(e)})),t.forEach((e=>{e.instance.hide(),e.visible=!1,delete e.updateWith,e.applyTransform=!1}))}d.forEach((e=>e.instance.beforeMount())),d.forEach((e=>e.instance.mount())),f.forEach((e=>e.instance.beforeRender())),f.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible?e.instance.update():e.instance.render()})),t||Lee(n,a),d.forEach((e=>e.instance.mounted())),c.forEach((e=>e.instance.updated())),p.forEach((e=>{delete e.updateWith,e.visible=!0,e.applyTransform=!1})),M()},c.destroy=()=>{L(),_.destroy(),z(),T(),delete c.update,delete c.destroy,I()},c.getAffectedShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"and",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=[];return p.filter((e=>null==r||e.key===r)).forEach((r=>{const i=r.instance.getBrushedShapes(e,t,n);o=[...o,...i]})),o},c.findShapes=e=>{let t=[];return p.forEach((n=>{const r=n.instance.findShapes(e);t=[...t,...r]})),t},c.componentsFromPoint=e=>D(e).map((e=>e.instance.ctx)),c.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const o=n.getBoundingClientRect();let i=p;if(Array.isArray(t.components)&&t.components.length>0){const e=t.components.map((e=>e.key));i=p.filter((t=>-1!==e.indexOf(t.key))).map((n=>({instance:n.instance,opts:t.components[e.indexOf(n.key)]})))}for(let n=i.length-1;n>=0;n--){const a=i[n],s=Aee(e,o,a.instance.renderer().element().getBoundingClientRect()),l=a.instance.shapesAt(s,a.opts),u=l.length>0&&"stop"===t.propagation;if(r=[...r,...l],r.length>0&&u)return r}return r},c.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{components:[]};for(let n=0;n<t.components.length;n++){const r=t.components[n].key;p.filter((e=>r===e.key)).forEach((r=>{let o=e.filter((e=>e.key===r.key));r.instance.brushFromShapes(o,t.components[n])}))}},c.scroll=function(){return function(e,t){return t[e]||(t[e]=w7()),t[e]}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",m)},c.dataset=e=>b(e),c.dataCollection=e=>y(e),c.scales=function(){return f.all()},c.formatters=function(){return h.all()},c.brush=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return v[e]||(v[e]=j7()),v[e]},c.scale=function(e){return f.get(e)},c.formatter=function(e){return h.get(e)},c.toggleBrushing=function(e){x=void 0!==e?e:!x},c.component=e=>{const t=_.findComponentByKey(e);return null==t?void 0:t.instance.ctx},c.logger=()=>s,c.theme=()=>l,c.storage=A9({animations:{updatingStageMeta:{isInit:!1,shouldBeRemoved:!1}}}),Object.defineProperty(c,"interactions",{get:()=>({instances:g,on(){O(),g.forEach((e=>e.on()))},off(){z(),g.forEach((e=>e.off()))}})}),C(),n&&(E(),N(),k(n),c.element=n),c}const Pee=e=>{let t=G5(e);return t.prio=e=>e?t.default(e[0]):[t.default()],t.types=()=>t.getKeys(),t};var Tee=G5();function Dee(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}const Oee=e=>e.filter((e=>"number"==typeof e&&!isNaN(e)));const zee=e=>{let{key:t,data:n,cache:r,config:o}=e;if(!n)return;let i=n;"string"==typeof i&&(i=(e=>{let{data:t,config:n}=e;const r=t.split("\n"),o=r[0],i=r[1];let a=",";if(n&&n.parse&&n.parse.delimiter)a=n.parse.delimiter;else if(o){const e=[/,/,/\t/,/;/];for(let t=0;t<e.length;t++){const n=e[t];if(o&&i){if(n.test(o)&&n.test(i)&&o.split(n).length===i.split(n).length){a=n;break}}else n.test(o)&&(a=n)}}return r.map((e=>e.split(a)))})({data:n,config:o})),Array.isArray(i)&&function(e){let t,{source:n,data:r,cache:o,config:i}=e,a=r;const s=i&&i.parse;Array.isArray(r[0])?s&&!1===s.headers?t=r[0].map(((e,t)=>t)):(t=r[0],a=r.slice(1)):t=Object.keys(r[0]);const l=!!s&&"function"==typeof s.row&&s.row;let u,c=t;c=s&&"function"==typeof s.fields?s.fields(c.slice()):t.map((e=>({key:e,title:e}))),Array.isArray(r[0])?u=c.map((()=>[])):(u={},c.forEach((e=>{u[e.key]=[]})));for(let e=0;e<a.length;e++){const t=l?l(a[e],e,c):a[e];if(t)if(Array.isArray(t))for(let e=0;e<c.length;e++)u[e].push(t[e]);else for(let e=0;e<c.length;e++)u[c[e].key].push(t[c[e].key])}const d=Array.isArray(u)?e=>u[e]:e=>u[c[e].key];for(let e=0;e<c.length;e++){const t=d(e),r=Oee(t),i=r.length>0,a=i?"measure":"dimension",s=i?Math.min(...r):NaN,l=i?Math.max(...r):NaN;o.fields.push(b4(M2({source:n,key:e,title:c[e].title,values:t,min:s,max:l,type:a},c[e]),{value:c[e].value,label:c[e].label}))}}({data:i,cache:r,source:t,config:o})};function Nee(){let{key:e,data:t,config:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[]},o={key:()=>e,raw:()=>t,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];for(let t=0;t<n.fields.length;t++)if(n.fields[t].key()===e)return n.fields[t];for(let t=0;t<n.fields.length;t++)if(n.fields[t].title()===e)return n.fields[t];return null}(e,{cache:r}),fields:()=>r.fields.slice(),extract:e=>function(e,t){const n=Array.isArray(e)?e:[e];let r=[];return n.forEach((e=>{if(void 0!==e.field){const n=t.field(e.field),o=t.key();if(!n)throw Error("Field '".concat(e.field,"' not found"));const{props:i,main:a}=w4(e,t),s=Object.keys(i),l=!!e.trackBy,u=typeof e.trackBy,c={},d=[],p=n.items(),f=[];for(let t=0;t<p.length;t++){const n=p[t];if(a.filter&&!a.filter(n))continue;const r=Dee(a,n,{key:o});s.forEach((e=>{const a=i[e];let s=a.field?a.field.items()[t]:n;r[e]=Dee(a,s,{key:o})})),l&&E4({cfg:e,itemData:n,obj:r,target:d,tracker:c,trackType:u}),f.push(r)}r=l?[...r,...C4(d,{main:a,propsArr:s,props:i})]:[...r,...f]}})),r}(e,o),hierarchy:()=>null};return zee({key:e,data:t,config:n,cache:r}),o}Nee.util={normalizeConfig:w4,collect:C4,track:E4};const qee=G5();qee.default("matrix"),qee("matrix",Nee),qee("default",Nee);const jee=G5();function Fee(e,t,n){return Math.max(e,Math.min(t,n))}function Bee(e){let{item:t,value:n,boxCenter:r,rendWidth:o,rendHeight:i,flipXY:a,symbol:s}=e,l="x",u="y",c=o,d=i,p=n<.5?90:-90;return a&&(l="y",u="x",c=i,d=o,p=n<.5?180:0),s(M2({},t.oob,{[l]:r*c,[u]:Math.max(t.oob.size/2,Math.min(n*d,d-t.oob.size/2)),startAngle:p}))}function $ee(e){let{item:t,boxWidth:n,boxPadding:r,rendWidth:o,rendHeight:i,flipXY:a}=e,s="x",l="y",u="width",c="height",d=o,p=i;a&&(s="y",l="x",u="height",c="width",d=i,p=o);const{actualDiff:f,actualLow:h}=function(e){let{start:t,end:n,minPx:r=.1,maxPx:o=1}=e;const i=Math.max(t,n),a=Math.min(t,n),s=Fee(-.1,1.2,i),l=Fee(-.1,1.2,a),u=s*o-l*o,c=Math.max(r,u),d=(c-u)/2;return{actualDiff:c,startModifier:d,actualLow:l*o-d}}({start:t.start,end:t.end,minPx:t.box.minHeightPx,maxPx:p});return M2({},t.box,{type:"rect",[s]:(r+t.major)*d,[l]:h,[c]:f,[u]:n*d,data:t.data||{},collider:{type:null}})}function Wee(e){let{item:t,from:n,to:r,boxCenter:o,rendWidth:i,rendHeight:a,flipXY:s}=e,l="x1",u="y1",c="x2",d="y2",p=i,f=a;return s&&(l="y1",u="x1",c="y2",d="x2",p=a,f=i),M2({},t.line,{type:"line",[d]:Math.floor(n*f),[l]:o*p,[u]:Math.floor(r*f),[c]:o*p,data:t.data||{},collider:{type:null}})}function Hee(e){let{item:t,key:n,position:r,width:o,boxCenter:i,rendWidth:a,rendHeight:s,flipXY:l}=e,u="x1",c="y1",d="x2",p="y2",f=a,h=s;l&&(u="y1",c="x1",d="y2",p="x2",f=s,h=a);const m=o/2;return M2({type:"line"},t[n],{[c]:Math.floor(r*h),[u]:(i-m)*f,[p]:Math.floor(r*h),[d]:(i+m)*f,r:m*f,cx:i*f,cy:r*h,width:o*f,data:t.data||{},collider:{type:null}})}function Gee(e,t,n){const{width:r,maxWidthPx:o,minWidthPx:i}=t.box,a=e>=0?1:-1;let s=Math.min(a*e*r,isNaN(o)?n:o/n);return s=isNaN(i)?s:Math.max(i/n,s),s*a}jee("native",(function(e,t,n){let r,o,i={chart:e,mediator:t,element:n},a=[],s=!0;function l(){"function"==typeof r.enable&&(r.enable=r.enable.bind(i)()),r.enable&&Object.keys(r.events).forEach((e=>{const t=r.events[e].bind(i);n.addEventListener(e,t),a.push({key:e,listener:t})}))}function u(){a.forEach((e=>{let{key:t,listener:r}=e;n.removeEventListener(t,r)})),a=[]}return{get key(){return o},set(e){!function(e){o=e.key,r=e,r.events=r.events||[],void 0===r.enable&&(r.enable=!0)}(e),u(),s&&l()},off(){s=!1,u()},on(){s=!0,0===a.length&&l()},destroy(){u(),i=null,r=null}}}));const Vee={oob:{show:!0,type:"n-polygon",fill:"#999",stroke:"#000",strokeWidth:0,size:10,sides:3,startAngle:-90},box:{show:!0,fill:"#fff",stroke:"#000",strokeWidth:1,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1},line:{show:!0,stroke:"#000",strokeWidth:1},median:{show:!0,stroke:"#000",strokeWidth:1},whisker:{show:!0,stroke:"#000",strokeWidth:1,fill:"",type:"line",width:1}},Uee=Object.keys(Vee),Yee={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},style:{box:"$shape",line:"$shape-guide",whisker:"$shape-guide",median:"$shape-guide--inverted"}},created(){this.state={}},render(e){let{data:t}=e;const{width:n,height:r}=this.rect,o="horizontal"===this.settings.settings.orientation,{style:i,resolver:a,symbol:s}=this,l=Uee.filter((e=>!this.settings.settings[e]||!1!==this.settings.settings[e].show)),u={};l.forEach((e=>u[e]=Vee[e]));const c=function(e){let{keys:t,data:n,defaultSettings:r,style:o,settings:i,width:a,height:s,resolver:l}=e;const u=M2(!0,{},r||{},o||{}),c={major:"horizontal"===i.orientation?s:a,minor:"horizontal"===i.orientation?a:s},d=i.major;let p;p="object"==typeof d&&"object"==typeof d.ref&&void 0!==d.ref.start&&void 0!==d.ref.end?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:M2(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof d&&void 0!==d.binStart&&void 0!==d.binEnd?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:M2(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):l.resolve({data:n,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{},h={};["start","end","min","max","med"].forEach((e=>{(f[e]||n.items&&n.items.length&&n.items[0][e])&&(h[e]={scale:f.scale,ref:e})}));let m,g={major:p,minor:l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:M2(!0,{},h,f)})};for(let e=0,r=t.length;e<r;e++)i[m]&&!1===i[m].show||(m=t[e],g[m]=l.resolve({data:n,defaults:u[m],settings:i[m],scaled:c}));return g}({keys:l,data:t,defaultSettings:u,style:i,settings:this.settings.settings,width:n,height:r,resolver:a}),{settings:d,items:p}=c,f=function(e){let{width:t,height:n,flipXY:r,resolved:o,keys:i,symbol:a}=e;const s=[],l=o.major.items;if(!l.length)return s;const u=t,c=n,d=r?n:t,p=o.major.settings,f=["start","end","min","max","med"].filter((e=>void 0!==o.minor.settings[e])),h=f.length,m=i.filter((e=>"oob"!==e));let g,b,y,v,x,_,w,S,C;const E=i?i.length:0,k=m?m.length:0,R={box:function(){y.box&&D2(y.start)&&D2(y.end)&&g.push($ee({item:y,boxWidth:v,boxPadding:x,rendWidth:u,rendHeight:c,flipXY:r}))},line:function(){D2(y.min)&&D2(y.start)&&g.push(Wee({item:y,from:y.min,to:y.start,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),D2(y.max)&&D2(y.end)&&g.push(Wee({item:y,from:y.max,to:y.end,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},median:function(){y.median&&D2(y.med)&&g.push(Hee({item:y,key:"median",position:y.med,width:v,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},whisker:function(){if(y.whisker){const e=v*y.whisker.width;D2(y.min)&&g.push(Hee({item:y,key:"whisker",position:y.min,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),D2(y.max)&&g.push(Hee({item:y,key:"whisker",position:y.max,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))}}};function M(){let e,t=-Number.MAX_VALUE,n=Number.MAX_VALUE;for(let r=0;r<h;r++)e=y[f[r]],D2(e)&&(t<e&&(t=e),n>e&&(n=e));w=t<0&&t!==-Number.MAX_VALUE,S=n>1&&n!==Number.MAX_VALUE,C=w||S}for(let e=0,t=l.length;e<t;e++){g=[],b=null;const t=l[e],n=t.data;let f=null,h=null;void 0!==p.binStart?(f=t.binStart,h=t.binEnd,b=p.binStart.scale):(b=p.major.scale,f=b?t.major:0);let A=0;b?b.bandwidth?(A=b.bandwidth(),f-=A/2):A=h-f:A=1,y=M2({},{major:f,majorEnd:h},o.minor.items[e]);for(let t=0;t<E;t++)y[i[t]]=o[i[t]].items[e];if(v=Gee(A,y,d),x=(A-v)/2,_=x+y.major+v/2,M(),C)y.oob&&(w?g.push(Bee({item:y,value:0,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})):S&&g.push(Bee({item:y,value:1,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})));else for(let e=0;e<k;e++)y[m[e]]&&!1===y[m[e]].show||R[m[e]]();const L={type:"container",data:n,collider:{type:"bounds"},children:g};s.push(L)}return s}({width:n,height:r,flipXY:o,resolved:c,keys:l,symbol:s});return f}};const Kee={shape:"saltire",width:2,size:.5,fill:"#333",stroke:"#333",strokeWidth:0},Xee=/px$/,Qee={shape:"circle",label:"",fill:"#333",stroke:"#ccc",strokeDasharray:"",strokeWidth:0,strokeLinejoin:"miter",opacity:1,x:.5,y:.5,size:1,show:!0},Jee={maxPx:1e4,minPx:1,maxRelExtent:.1,minRelExtent:.01,maxRelDiscrete:1,minRelDiscrete:.1};function Zee(e,t){return e&&"function"==typeof e.bandwidth?{isBandwidth:!0,value:Math.max(1,e.bandwidth()*t)}:{isBandwidth:!1,value:Math.max(1,t)}}function ete(e,t,n,r){let{width:o,height:i}=t;return e.filter((e=>!1!==e.show&&!isNaN(e.x+e.y))).map((e=>{let t=e,a=Xee.test(e.size)?parseInt(e.size,10):n.min+t.size*(n.max-n.min);O2(a)&&(t=Kee,a=n.min+t.size*(n.max-n.min));const[s,l]=function(e){let t=Qee.shape,n={};return"object"==typeof e.shape&&"string"==typeof e.shape.type?(t=e.shape.type,n=e.shape):"string"==typeof e.shape&&(t=e.shape),[t,n]}(t),u=P2(P2({},l),{},{type:s,label:e.label,x:e.x*o,y:e.y*i,fill:t.fill,size:Math.min(n.maxGlobal,Math.max(n.minGlobal,a)),stroke:t.stroke,strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray,opacity:t.opacity});t===e.errorShape&&(u.width=t.width);const c=r(u);return c.data=e.data,c}))}const tte={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},animations:{enabled:!1,trackBy:e=>e.data.value},style:{item:"$shape"}},render(e){let{data:t}=e;const n=this.resolver.resolve({data:t,defaults:M2({},Qee,this.style.item),settings:this.settings.settings,scaled:{x:this.rect.width,y:this.rect.height}}),{width:r,height:o}=this.rect,i=M2({},Jee,this.settings.settings.sizeLimits),a=n.items,s=function(e,t,n,r,o){const i=Zee(e?e.scale:void 0,n),a=Zee(t?t.scale:void 0,r);let s=Math.min(i.value*o[i.isBandwidth?"maxRelDiscrete":"maxRelExtent"],a.value*o[a.isBandwidth?"maxRelDiscrete":"maxRelExtent"]),l=Math.min(i.value*o[i.isBandwidth?"minRelDiscrete":"minRelExtent"],a.value*o[a.isBandwidth?"minRelDiscrete":"minRelExtent"]);return{min:Math.max(1,Math.floor(l)),max:Math.max(1,Math.floor(s)),maxGlobal:o.maxPx,minGlobal:o.minPx}}(n.settings.x,n.settings.y,r,o,i);return ete(a,this.rect,s,this.settings.shapeFn||this.symbol)}};const nte={label:"",arc:1,show:!0,fill:"#333",stroke:"#ccc",strokeWidth:1,strokeLinejoin:"round",opacity:1,innerRadius:0,outerRadius:.8,cornerRadius:0,offset:0};function rte(e,t,n,r){let{x:o,y:i,width:a,height:s}=t;const l=h5(),u={x:o+a/2,y:i+s/2},c=Math.min(a,s)/2,d=Math.min(a,s)/2,p=d/100;return e.map(((e,t)=>{const o=n[t];o.type="path";const i=d*o.outerRadius,a=c*o.innerRadius,s=p*o.cornerRadius;l.innerRadius(a),l.outerRadius(i),l.cornerRadius(s),o.arcDatum=e;const f=l.centroid(e),h=o.offset?function(e,t,n,r){let[o,i]=e;const a=Math.sqrt(o*o+i*i);o/=a,i/=a;const s=n-r;return{x:o*t*s,y:i*t*s}}(f,o.offset,i,a):{x:0,y:0};return o.transform="translate(".concat(h.x,", ").concat(h.y,") translate(").concat(u.x,", ").concat(u.y,")"),o.desc={share:e.value/r,slice:{start:e.startAngle,end:e.endAngle,innerRadius:a,outerRadius:i,cornerRadius:s,offset:{x:u.x+h.x,y:u.y+h.y}}},o}))}function ote(e,t){return e.slice&&"arc"in e.slice?t.arc:t.data.value}const ite={require:["chart","resolver"],defaultSettings:{settings:{startAngle:0,endAngle:2*Math.PI,padAngle:0,slice:{}},style:{slice:"$shape"},data:{}},render(e){let{data:t}=e;const n=[],r=[],o=this.settings.settings,{items:i}=this.resolver.resolve({data:t,defaults:M2({},nte,this.style.slice),settings:o.slice});let a=0;for(let e=0,t=i.length;e<t;e++){const t=ote(o,i[e]);t>0&&i[e].outerRadius>=i[e].innerRadius&&(n.push(t),r.push(i[e]),a+=t)}const s=function(){var e=_5,t=x5,n=null,r=K2(0),o=K2(a5),i=K2(0);function a(a){var s,l,u,c,d,p=a.length,f=0,h=new Array(p),m=new Array(p),g=+r.apply(this,arguments),b=Math.min(a5,Math.max(-a5,o.apply(this,arguments)-g)),y=Math.min(Math.abs(b)/p,i.apply(this,arguments)),v=y*(b<0?-1:1);for(s=0;s<p;++s)(d=m[h[s]=s]=+e(a[s],s,a))>0&&(f+=d);for(null!=t?h.sort((function(e,n){return t(m[e],m[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),s=0,u=f?(b-p*v)/f:0;s<p;++s,g=c)l=h[s],c=g+((d=m[l])>0?d*u:0)+v,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:K2(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:K2(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:K2(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:K2(+e),a):i},a}().sortValues(null);s.startAngle(o.startAngle),s.endAngle(o.endAngle),s.padAngle(o.padAngle);return rte(s(n),M2({},this.rect,{x:0,y:0}),r,a)}};const ate=function(e){function t(t){if(e[t.type]&&e[t.type].condition(t)){const n=e[t.type],r=void 0===n.conditionAppend||n.conditionAppend(t);n.items.forEach((e=>{const n=Math.round(t[e.key]),o=t[e.key]-n;t[e.key]=n,r&&"append"===e.type&&(o>0?t[e.key]+=.5:t[e.key]-=.5)}))}}return void 0===e&&((e={}).line={append:["x1","x2","y1","y2"],round:[],condition:e=>e.x1===e.x2||e.y1===e.y2,conditionAppend:e=>e.strokeWidth%2!=0},e.rect={append:["x","y"],round:["width","height"],condition:()=>!0,conditionAppend:e=>e.strokeWidth%2!=0}),Object.keys(e).forEach((t=>{const n=e[t];n.items=[],n.append.forEach((e=>{n.items.push({key:e,type:"append"})})),n.round.forEach((e=>{n.items.push({key:e,type:"round"})}))})),t.multiple=e=>e.forEach((e=>t(e))),t}();class ste{constructor(){this.reset(),this.push(...arguments)}static evaluateKey(e,t){if(t){const t=e.substring(0,1),n=e.substring(1);if("x"===t)return"y".concat(n);if("y"===t)return"x".concat(n);if("cx"===e)return"cy";if("cy"===e)return"cx";if("width"===e)return"height";if("height"===e)return"width"}return e}transposeCoordinate(e,t,n){if("number"==typeof t&&isFinite(t)){const r=e.substring(0,1);if("x"===r||"cx"===e)return t*this.width;if("width"===e)return t*this.width;if("r"===e)return t*(n?this.height:this.width);if("y"===r||"cy"===e)return t*this.height;if("height"===e)return t*this.height}return t}push(){return this.storage.push(...arguments),this}processItem(e){let t={};const n=void 0!==e.flipXY?e.flipXY:this.flipXY,r=void 0!==e.crisp?e.crisp:this.crisp;if(e.fn&&"function"==typeof e.fn){let r=n?this.height:this.width,o=n?this.width:this.height;e=e.fn({width:r,height:o,flipXY:n});const i=Object.keys(e);for(let r=0,o=i.length;r<o;r++){let o=i[r];t[ste.evaluateKey(o,n)]=e[o]}}else{const r=Object.keys(e);for(let o=0,i=r.length;o<i;o++){let i=r[o];const a=ste.evaluateKey(i,n),s=this.transposeCoordinate(a,e[i],n);t[a]=s}}return r&&ate(t),t}output(){let e=[];for(let t=0,n=this.storage.length;t<n;t++){let n=this.processItem(this.storage[t]);e.push(n)}return e}reset(){this.storage=[],this.flipXY=!1,this.crisp=!1,this.width=0,this.height=0}}function lte(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ste(...t)}function ute(e,t){return e&&t?e.cachedTicks&&e.cachedTicks()||e.ticks({distance:t}):[]}const cte={created(){},require:["chart","renderer","resolver"],defaultSettings:{layout:{displayOrder:0},style:{ticks:"$guide-line",minorTicks:"$guide-line--minor"}},beforeRender(){this.blueprint=lte(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){if(this.x=this.settings.x?this.chart.scale(this.settings.x):null,this.y=this.settings.y?this.chart.scale(this.settings.y):null,Q7(this,"x",this.rect.width),Q7(this,"y",this.rect.height),!this.x&&!this.y)return[];this.settings.ticks=M2({show:!0},this.style.ticks,this.settings.ticks||{}),this.settings.minorTicks=M2({show:!1},this.style.minorTicks,this.settings.minorTicks||{}),this.lines={x:[],y:[]},this.lines.x=ute(this.x,this.rect.width),this.lines.y=ute(this.y,this.rect.height),this.lines.y=this.lines.y.map((e=>M2(e,{flipXY:!0})));let e=e=>{let{dir:t,isMinor:n}=e,r=this.lines[t].filter((e=>!!e.isMinor===n)),o=n?this.settings.minorTicks:this.settings.ticks;this.resolver.resolve({settings:o,data:{items:r,dir:t}}).items.forEach((e=>{let n=e.data;var r,o;e.show&&this.blueprint.push({type:"line",x1:n.position,y1:0,x2:n.position,y2:1,stroke:e.stroke||"black",strokeWidth:void 0!==e.strokeWidth?e.strokeWidth:1,strokeDasharray:void 0!==e.strokeDasharray?e.strokeDasharray:void 0,flipXY:n.flipXY||!1,value:null!==(r=n.value)&&void 0!==r?r:null===(o=n.data)||void 0===o?void 0:o.value,dir:t})}))};return e({dir:"x",isMinor:!1}),e({dir:"x",isMinor:!0}),e({dir:"y",isMinor:!1}),e({dir:"y",isMinor:!0}),this.blueprint.output()}};function dte(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.8,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e," ").concat(t-n,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?0:1,", ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return"\n M ".concat(e-n," ").concat(t,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?1:0,", ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function pte(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.75,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e+=o?1.5*n:-1.5*n," ").concat(t-n,"\n L ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return t+=o?1.5*n:-1.5*n,"\n M ".concat(e-n," ").concat(t,"\n L ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function fte(e,t,n){return e<t||e>n}function hte(e,t){if("string"==typeof e.formatter)return t.formatter(e.formatter);if("object"==typeof e.formatter)return t.formatter(e.formatter);if(void 0!==e.scale&&e.scale.data){const t=e.scale.data()&&e.scale.data().fields;return t&&t[0]?t[0].formatter():null}return null}function mte(e){if(void 0===e)return 0;if("number"==typeof e&&isFinite(e))return e;if("string"==typeof e)switch(e){case"center":case"middle":return.5;case"bottom":case"right":return 1;default:return 0}return 0}function gte(e){var t,n;let{chart:r,blueprint:o,renderer:i,p:a,settings:s,items:l,slopeLine:u}=e,c=!0,d=!1,p=!1,f=!1,h=!1,m=M2(!0,{},s.style.line,a.line||{}),g=M2(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke});if(d=u?o.processItem({type:"line",x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:!1,value:a.valueInfo?a.valueInfo.id:a.value}):o.processItem({type:"line",x1:a.position,y1:0,x2:a.position,y2:1,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:a.flipXY||!1,value:a.valueInfo?a.valueInfo.id:a.value}),a.label&&!1!==a.label.show&&(null==u||!u.slope||0===u.slope)){const e=M2(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke},a.label);let t,n={width:0,height:0},u="";t=hte(a,r),!1!==a.label.showValue&&(t?u=" (".concat(t(a.value),")"):a.scale&&(u=" (".concat(a.value,")"))),u&&(n=i.measureText({text:u,fontFamily:e.fontFamily,fontSize:e.fontSize}));let d=i.measureText({text:e.text||"",fontFamily:e.fontFamily,fontSize:e.fontSize}),g={width:d.width+n.width,height:Math.max(d.height,n.height)},b=e.padding,y=mte(a.flipXY?e.vAlign:e.align),v=mte(a.flipXY?e.align:e.vAlign),x=Math.min(1+g.width+2*b,e.maxWidth*o.width,e.maxWidthPx),_=g.height+2*b,w=a.flipXY?_:x,S=a.flipXY?x:_;if(p=o.processItem({fn:t=>{let{width:n,height:r}=t,i=a.position*n-(a.flipXY?_:x)*(1-y);i=a.flipXY?i:Math.max(i,0);return{type:"rect",x:i,y:Math.max(Math.abs(v*r-S*v),0),width:a.flipXY?w:Math.min(w,o.width-i),height:S,stroke:e.background.stroke,strokeWidth:e.background.strokeWidth,fill:e.background.fill,opacity:e.background.opacity}},flipXY:a.flipXY||!1}),p.x<-1||p.x+p.width>o.width+1||p.y<-1||p.y+p.height>o.height+1)p=void 0;else{f={type:"text",text:e.text||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:p.x+b,y:p.y+p.height/2+g.height/3,maxWidth:p.width-2*b-n.width,anchor:"start"},u&&(h={type:"text",text:u||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:f.x+3+(p.width-(n.width+2*b)),y:f.y});for(let e=0,t=l.length;e<t;e++){let t=l[e];"rect"===t.type?V9(p,t)&&(c=!1):"line"===t.type&&a.flipXY===t.flipXY&&K9(p,t)&&(c=!1)}}}if(d&&l.push(d),u&&0!==u.slope&&(!1!==(null===(t=u.label)||void 0===t?void 0:t.show)||!1!==(null===(n=u.label)||void 0===n?void 0:n.showValue))){var b,y,v;let e,t;const n=120;let s=!1!==(null===(b=u.label)||void 0===b?void 0:b.show)?null===(y=u.label)||void 0===y?void 0:y.text:"";if(!1!==(null===(v=u.label)||void 0===v?void 0:v.showValue)){var x;const t=hte(a,r),n=t?t(u.value):u.value;e="(".concat(u.slope,"x + ").concat(n,")"),s+=null!==(x=u.label)&&void 0!==x&&x.text?" ".concat(e):e}if(s.length>1){var _,w,S;const e=i.measureText({text:s,fontFamily:g.fontFamily,fontSize:g.fontSize});e.width=e.width>n?n:e.width;const a=function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});if(t>0){if(r.max()*t+n>=o.max())return!0}else if(t<0&&r.min()*t+n>=o.max())return!0;return!1}(r,u.slope,u.value)?function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});return r((o.max()-n)/t)}(r,u.slope,u.value):void 0,c=void 0===a||u.isRtl?g.padding:3*g.padding,p=void 0!==a||u.slope>0?3*g.padding:g.padding,f=function(e,t,n,r,o,i){let a=0;if(void 0!==n){if(n<.8)return a=e.slope<0||e.isRtl?3*i.padding:2*i.padding,e.isRtl,n*o.width+a;if(1===n)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding);if(n>.8)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding)}else if(e.slope>0)return t.x2-(r.width+2*i.padding);return e.isRtl?t.x1-(r.width+2*i.padding):t.x1}(u,d,a,e,o,g),h=Math.min(d.y1,d.y2);null!==(_=u.label)&&void 0!==_&&_.stroke&&(t={type:"rect",x:u.isRtl?Math.max(f,c)-2:Math.max(f,c)+2,y:Math.abs(Math.max(h,p)-e.height),rx:3,ry:3,width:e.width+g.padding,height:e.height-2,stroke:m.stroke,fill:m.stroke});const b={type:"text",text:s,fill:null!==(w=null===(S=u.label)||void 0===S?void 0:S.stroke)&&void 0!==w?w:m.stroke,opacity:g.opacity,fontFamily:g.fontFamily,fontSize:g.fontSize,x:t?t.x+2:Math.max(f,c)+2,y:t?t.y+e.height-g.padding:Math.abs(Math.max(h,p)-g.padding/2),anchor:"start",title:s,maxWidth:n,width:e.width};(function(e,t,n,r,o){for(let i=0,a=e.length;i<a;i++){const a=e[i];if("text"===(null==a?void 0:a.type)&&Math.abs(a.x-t.x)<Math.max(a.width+r,t.width+r)&&Math.abs(a.y-t.y)<n.height+o)return!0}return!1})(l,b,e,c,p)||(t&&l.push(t),l.push(b))}}c&&p&&f&&(l.push(p,f),h&&l.push(h))}function bte(e){const t={value:e.value};return e.label&&(t.label=e.label.text),t}function yte(e){return void 0!==("function"==typeof e.value?e.value():e.value)}function vte(e,t){const n=e.min();if(n===e.max()){const r=function(e){const t=e.range();return 2===(null==t?void 0:t.length)&&t[0]>t[1]}(e);if(t<n)return r?2:-1;if(t>n)return r?-1:2}return e(t)}function xte(e,t){return e&&t&&Math.abs(e.x-t.x)<1e-15&&Math.abs(e.y-t.y)<1e-15}const _te={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:0},style:{oob:{show:!0,width:10,fill:"#1A1A1A",stroke:"transparent",strokeWidth:0,opacity:1,text:{fontFamily:"Arial",stroke:"transparent",fill:"#fff",strokeWidth:0,opacity:1},triangle:{fill:"#4D4D4D",stroke:"transparent",strokeWidth:0,opacity:1},padding:{x:28,y:5}},line:{stroke:"#000"},label:{strokeWidth:0}}},preferredSize:()=>30,beforeRender(){this.blueprint=lte(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){let e=this.settings;if(this.lines={x:[],y:[]},this.lines.x=e.lines&&e.lines.x||[],this.lines.y=e.lines&&e.lines.y||[],0===this.lines.x.length&&0===this.lines.y.length)return[];const t={x0:[],x1:[],y0:[],y1:[]};this.lines.x=this.lines.x.filter(yte).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=vte(t,e.value);return M2(e,{scale:t,position:n})}return M2(e,{position:e.value})})),this.lines.y=this.lines.y.filter(yte).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=vte(t,e.value);return M2(e,{scale:t,position:n,flipXY:!0})}return M2(e,{position:e.value,flipXY:!0})})),this.lines.x=this.lines.x.filter((e=>!(e.position<0||e.position>1)||(t["x".concat(e.position>1?1:0)].push(bte(e)),!1))),this.lines.y=this.lines.y.filter((e=>!(!e.slope||0===e.slope)||(!(e.position<0||e.position>1)||(t["y".concat(e.position>1?1:0)].push(bte(e)),!1))));let n=[];return[...this.lines.x,...this.lines.y].forEach((r=>{if(!0===r.show||void 0===r.show){let o;if(r.slope&&0!==r.slope){const e=this.chart.scale({scale:"x"}),n=this.chart.scale({scale:"y"}),i=e.min(),a=e.max(),s=n.min(),l=n.max();o=P2(P2({},r),{},{x1:void 0,y1:void 0,x2:void 0,y2:void 0});const u=i*r.slope+r.value,c=a*r.slope+r.value,d=(s-r.value)/r.slope,p=(l-r.value)/r.slope;let f=[];fte(u,s,l)||(f[0]={x:vte(e,i),y:vte(n,u)}),fte(d,i,a)||(f[1]={x:vte(e,d),y:1}),fte(c,s,l)||(f[2]={x:vte(e,a),y:vte(n,c)}),fte(p,i,a)||(f[3]={x:vte(e,p),y:0});const h=f.filter((e=>!!e)).length;if(h>2&&function(e){xte(e[0],e[1])&&(e[1]=void 0),xte(e[1],e[2])&&(e[2]=void 0),xte(e[2],e[3])&&(e[3]=void 0),xte(e[3],e[0])&&(e[3]=void 0)}(f),f=f.filter((e=>!!e)),f.length<2)return void t["y".concat(u>l?0:1)].push(bte(r));o.x1=f[0].x,o.y1=f[0].y,o.x2=f[1].x,o.y2=f[1].y}else o=void 0;gte({chart:this.chart,blueprint:this.blueprint,renderer:this.renderer,p:r,settings:e,items:n,slopeLine:o})}})),e.style.oob.show&&function(e){let{blueprint:t,oob:n,settings:r,items:o}=e;const i=Object.keys(n);let a=r.style.oob||{};for(let e=0,r=i.length;e<r;e++){const r=i[e],s=n[r];if(s.length>0){let e=r.charAt(1),n="y"===r.charAt(0),i=a.padding.x+a.width,l=a.padding.y+a.width,u="bottom";u=n?"1"===e?"bottom":"top":"1"===e?"right":"left";let c=t.processItem({fn:t=>{let{width:r,height:o}=t,c=e*r+("1"===e?-i:i),d=n?l:o-l;return"arc"===a.type?{type:"path",d:dte(n?d:c,n?c:d,a.width,u),x:c,y:d,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0}:{type:"circle",cx:c,cy:d,r:a.width,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0,opacity:a.opacity,data:s}},flipXY:n}),d=c.cx||c.x,p=c.cy||c.y;const f=s.map((e=>e.label?"".concat(e.label," (").concat(e.value,")"):"(".concat(e.value,")"))),h=f.reduce(((e,t,n)=>0===n?t:"".concat(e,"\n\n").concat(t)),"");let m={type:"text",text:s.length||"",title:h,x:d-.4*a.width,y:p+.4*a.width,fontFamily:a.text.fontFamily,fontSize:"".concat(1.3*a.width,"px"),stroke:a.text.stroke,fill:a.text.fill,strokeWidth:a.text.strokeWidth||0,opacity:a.text.opacity},g={type:"path",d:pte(d,p,a.width,u),x:d,y:p,stroke:a.triangle.stroke,fill:a.triangle.fill,strokeWidth:a.triangle.strokeWidth||0,opacity:a.triangle.opacity};o.push(c,m,g)}}}({blueprint:this.blueprint,oob:t,settings:e,items:n}),n}};function wte(e){const t={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null}};return"top"===e.align||"bottom"===e.align?(t.x1=e.innerRect.x-e.outerRect.x,t.x2=t.x1+e.innerRect.width,t.y1=t.y2="top"===e.align?e.innerRect.height-e.padding:e.padding):(t.x1=t.x2="left"===e.align?e.innerRect.width-e.padding:e.padding,t.y1=e.innerRect.y-e.outerRect.y,t.y2=t.y1+e.innerRect.height),function(e,t){M2(e,t.style)}(t,e),t}function Ste(e){return"string"==typeof e||"number"==typeof e?e:"-"}function Cte(e,t,n){n.layered||!n.stepSize?function(e,t){t.collider={type:"polygon",vertices:[{x:t.boundingRect.x,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y+t.boundingRect.height},{x:t.boundingRect.x,y:t.boundingRect.y+t.boundingRect.height}]}}(0,t):n.tilted?function(e,t,n){const r=n.angle*(Math.PI/180),o=Math.max(n.stepSize/2,t.boundingRect.height/2),i="start"===t.anchor,a="end"===t.anchor&&r<0,s="start"===t.anchor&&r>=0,l=t.boundingRect.y+(s||a?t.boundingRect.height:0),u=[{x:t.x-o,y:l},{x:t.x+o,y:l}].map((e=>v9(e,r,{x:t.x,y:t.y}))),c={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y+t.boundingRect.height},d={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y},p=r>=0?[c,d]:[d,c];u.push(...p),t.collider={type:"polygon",vertices:u}}(0,t,n):function(e,t,n){if("bottom"===n.align||"top"===n.align){const r=e.position*n.innerRect.width+(n.innerRect.x-n.outerRect.x-n.stepSize/2);t.collider={type:"rect",x:r,y:0,width:r<0?n.stepSize+r:n.stepSize,height:n.innerRect.height}}else{const r=e.position*n.innerRect.height+(n.innerRect.y-n.outerRect.y-n.stepSize/2);t.collider={type:"rect",x:0,y:r,width:n.innerRect.width,height:r<0?n.stepSize+r:n.stepSize}}const r=t.collider;r.x=Math.max(r.x,0),r.y=Math.max(r.y,0);const o=r.x+r.width-(n.outerRect.x+n.outerRect.width);r.width=o>0?r.width-o:r.width;const i=r.y+r.height-(n.outerRect.y+n.outerRect.height);r.height=i>0?r.height-i:r.height}(e,t,n)}function Ete(e,t){const n=isNaN(e.style.align)?.5:Math.min(Math.max(e.style.align,0),1);let r=0;if(e.tilted)r=e.stepSize*n;else{const o=t?e.textRect.height:e.textRect.width;r=Math.max(0,e.stepSize-o)*n}return r}function kte(e,t){var n,r;const o={type:"text",text:Ste(e.label),x:0,y:0,maxWidth:t.maxWidth,maxHeight:t.maxHeight,tickValue:null!==(n=e.value)&&void 0!==n?n:null===(r=e.data)||void 0===r?void 0:r.value};return"top"===t.align||"bottom"===t.align?(o.x=e.start*t.innerRect.width+(t.innerRect.x-t.outerRect.x)+Ete(t,!1),o.y="top"===t.align?t.innerRect.height:0,o.anchor=t.stepSize?"start":"middle",o.x+=isNaN(t.style.offset)?0:+t.style.offset):(o.y=e.start*t.innerRect.height+(t.innerRect.y-t.outerRect.y)+Ete(t,!0),o.x="left"===t.align?t.innerRect.width:0,o.anchor="left"===t.align?"end":"start",o.baseline=t.stepSize?"text-before-edge":"central",o.y+=isNaN(t.style.offset)?0:+t.style.offset),function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(o,t),function(e,t){if(!t.tilted&&!t.stepSize)if("top"===t.align||"bottom"===t.align){const n=0,r=t.outerRect.width,o=Math.min(t.maxWidth/2,t.textRect.width/2),i=e.x-o,a=e.x+o;i<n?(e.anchor="start",e.x=t.innerRect.x-t.outerRect.x):a>r&&(e.anchor="end",e.x=t.innerRect.width+t.innerRect.x)}else{const n=0,r=t.outerRect.height,o=t.maxHeight/2,i=e.y-o,a=e.y+o;i<n?(e.y=t.innerRect.y-t.outerRect.y,e.baseline="text-before-edge"):a>r&&(e.y=t.innerRect.height+(t.innerRect.y-t.outerRect.y),e.baseline="text-after-edge")}}(o,t),function(e,t){"top"===t.align?e.y-=t.padding:"bottom"===t.align?e.y+=t.padding+t.maxHeight:"left"===t.align?e.x-=t.padding:"right"===t.align&&(e.x+=t.padding)}(o,t),function(e,t){if(t.tilted){const n=-t.angle,r=n*(Math.PI/180);"bottom"===t.align?(e.x-=t.maxHeight*Math.sin(r)/2,e.y-=t.maxHeight,e.y+=t.maxHeight*Math.cos(r)/2):e.x-=t.maxHeight*Math.sin(r)/3,e.transform="rotate(".concat(n,", ").concat(e.x,", ").concat(e.y,")"),e.anchor="bottom"===t.align==t.angle<0?"start":"end";const o=Math.cos(r)*t.maxWidth;if("bottom"===t.align==t.angle<0){const n=t.outerRect.width-t.paddingEnd;e.x+o>n&&(e.maxWidth=(n-e.x-10)/Math.cos(r))}else{const n=t.paddingEnd;e.x-o<n&&(e.maxWidth=(e.x-n-10)/Math.cos(r))}}}(o,t),function(e,t){e.boundingRect=t.textBounds(e)}(o,t),Cte(e,o,t),o}function Rte(e,t){const n={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null},tickValue:e.value};return"top"===t.align||"bottom"===t.align?(n.x1=n.x2=e.position*t.innerRect.width+(t.innerRect.x-t.outerRect.x),n.y1="top"===t.align?t.innerRect.height:0,n.y2="top"===t.align?n.y1-t.tickSize:n.y1+t.tickSize):(n.y1=n.y2=e.position*t.innerRect.height+(t.innerRect.y-t.outerRect.y),n.x1="left"===t.align?t.innerRect.width:0,n.x2="left"===t.align?n.x1-t.tickSize:n.x1+t.tickSize),function(e,t){M2(e,t.style)}(n,t),function(e,t){"top"===t.align?(e.y1-=t.padding,e.y2-=t.padding):"bottom"===t.align?(e.y1+=t.padding,e.y2+=t.padding):"left"===t.align?(e.x1-=t.padding,e.x2-=t.padding):"right"===t.align&&(e.x1+=t.padding,e.x2+=t.padding)}(n,t),function(e,t){const n=e.strokeWidth/2;e.x1===t.innerRect.width?(e.x1-=n,e.x2-=n):0===e.x1?(e.x1+=n,e.x2+=n):e.y1===t.innerRect.height?(e.y1-=n,e.y2-=n):0===e.y1&&(e.y1+=n,e.y2+=n)}(n,t),n}function Mte(e){return!e.isMinor&&e.position>=0&&e.position<=1}function Ate(e){let{rect:t,state:n,majorTicks:r,measure:o,horizontal:i}=e;return i?function(e){let{majorTicks:t,measureText:n,rect:r,state:o}=e;const i="layered"===o.labels.activeMode?2:1,a=r.width,s=t.map((e=>e.label)).map((e=>"".concat(e.slice(0,1)).concat(e.length>1?"…":""))).map(n).map((e=>e.width));for(let e=0;e<t.length;++e){const n=t[e];if(i*a*Math.abs(n.start-n.end)<s[e])return!0}return!1}({majorTicks:r,measureText:o,rect:t,state:n}):function(e){let{majorTicks:t,measureText:n,rect:r}=e;const o=r.height,i=n("M").height;return!(t.length<2)&&o*Math.abs(t[0].position-t[1].position)<i}({majorTicks:r,measureText:o,rect:t})}function Lte(e){let{value:t,maxValue:n,minValue:r,range:o,modifier:i}=e;return isNaN(o)||isNaN(i)||(t=o*i),t>n&&(t=n),t<r&&(t=r),t}function Ite(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const u={left:0,top:0,right:0,bottom:0},{maxLengthPx:c,minLengthPx:d}=a.labels;if(a.labels.show){const e=a.align,p="top"===e||"bottom"===e,f=p?n.inner.width:n.inner.height,h=i.ticks({settings:a,distance:f,formatter:r}).filter(Mte),m=e=>{const t=o({text:e,fontSize:a.labels.fontSize,fontFamily:a.labels.fontFamily});return t.width=Lte({value:t.width,maxValue:c,minValue:d}),t};if(t&&p&&"auto"===a.labels.mode&&(!function(e){let{majorTicks:t,measure:n,rect:r,state:o,settings:i}=e;const a=i.labels.maxGlyphCount,s="layered"===o.labels.activeMode?2:1,l=i.labels.tiltThreshold?i.labels.tiltThreshold:.7,u=n("…").width,c=r.width;let d=0,p=0;if(isNaN(a))for(let e=0;e<t.length;e++){const r=t[e],o=r.label,i=n(o).width*(o.length>1?l:1);if(p=s*c*Math.abs(r.start-r.end),i+u>p)return!0}else{const e=t.reduce(((e,t)=>Math.min(Math.abs(t.start-t.end),e)),1/0);if(p=s*c*e,d=n("M").width*l*a,d+u>p)return!0}return!1}({majorTicks:h,measure:m,rect:n.inner,state:s,settings:a})?s.labels.activeMode="horizontal":s.labels.activeMode="tilted"),!a.labels.filterOverlapping&&"tilted"!==s.labels.activeMode&&Ate({rect:n.inner,state:s,majorTicks:h,measure:m,horizontal:p})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}let g,b;if("tilted"===s.labels.activeMode){const e=Math.abs(a.labels.tiltAngle)*(Math.PI/180);g=t=>Lte({value:t.width,maxValue:c,minValue:d})*Math.sin(e)+t.height*Math.cos(e)}else g=p?e=>e.height:e=>Lte({value:e.width,maxValue:c,minValue:d});if(p&&"tilted"!==s.labels.activeMode)b=["M"];else if(isNaN(a.labels.maxGlyphCount))b=h.map((e=>e.label));else{let e="";for(let t=0;t<a.labels.maxGlyphCount;t++)e+="M";b=[e]}const y=b.map(m),v=y.map(g),x=Math.max(...v,0);if(l+=x,l+=a.labels.margin,"layered"===s.labels.activeMode&&(l*=2),"tilted"===s.labels.activeMode){const e="bottom"===a.align==a.labels.tiltAngle>=0,t=Math.abs(a.labels.tiltAngle)*(Math.PI/180),r=(x-m("M").height*Math.cos(t))/Math.sin(t),o=e=>Math.min(r,e.width)*Math.cos(t)+e.height,i=(t,r)=>{const o=h[r]?h[r].position:0;return e?t-o*n.inner.width:t-(1-o)*n.inner.width},s=Math.min(a.labels.maxEdgeBleed,Math.max(...y.map(o).map(i),0))+a.paddingEnd;if(u[e?"left":"right"]=s,!a.labels.filterOverlapping&&function(e){let{majorTicks:t,measureText:n,rect:r,bleedSize:o,angle:i}=e;if(t.length<2)return!1;if(0===i)return!0;const a=Math.abs(i),s=1/(Math.min(r.outer.width-o,r.inner.width)*Math.abs(t[0].position-t[1].position));return n("M").height>Math.sin(a*(Math.PI/180))/s}({majorTicks:h,measureText:m,rect:n,bleedSize:s,angle:a.labels.tiltAngle})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}}}return{size:l,edgeBleed:u}}const Pte=(e,t,n)=>e.width*Math.abs(t.position-n.position);function Tte(e){let{layered:t,major:n,innerRect:r,outerRect:o,tick:i,index:a}=e;const s=t?2:1,l=n[a-s],u=n[a+s],c=l?Pte(r,i,l)/2-2:1/0,d=u?Pte(r,i,u)/2-2:1/0;return n.length<2?r.width:l?u?2*Math.min(c,d):(e=>{let{innerRect:t,outerRect:n,tick:r,prevWidth:o}=e;const i=t.x-n.x,a=n.width-t.width-i,s=t.width-t.width*r.position+a,l=2*Math.min(o,s),u=1===r.position?t.width/2-2:0;return Math.max(o,l,u)})({innerRect:r,outerRect:o,tick:i,prevWidth:c}):(e=>{let{innerRect:t,outerRect:n,tick:r,nextWidth:o}=e;const i=t.x-n.x,a=t.width*r.position+i,s=2*Math.min(o,a),l=0===r.position?t.width/2-2:0;return Math.max(o,s,l)})({innerRect:r,outerRect:o,tick:i,nextWidth:d})}function Dte(e){const t=e.innerRect,n={cx:t.width/2,cy:t.height/2},r=Math.min(t.height,t.width)/2*e.radius,o=r+e.style.strokeWidth,i={visible:!0,type:"path",arcDatum:{startAngle:e.startAngle,endAngle:e.endAngle},transform:"translate(0, 0) translate(".concat(n.cx,", ").concat(n.cy,")"),desc:{share:1,slice:{cornerRadius:0,innerRadius:r,outerRadius:o}},ticks:[]};return function(e,t){M2(e,t.style)}(i,e),i}function Ote(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}function zte(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i;let u=a-e.position*l;u-=Math.PI/2;const c=Ote(r.cx,r.cy,o+s,u),d=Ote(r.cx,r.cy,o,u),p={type:"line",x1:c.x,y1:c.y,x2:d.x,y2:d.y,value:e.value};return function(e,t){const n=P2({},t.style);M2(e,n)}(p,t),p}function Nte(e){return"string"==typeof e||"number"==typeof e?e:"-"}function qte(e,t,n){let r;return r="left"===t?n.x:"right"===t?e.outerRect.width-n.x:Math.max(n.x,e.outerRect.width-n.x),r}function jte(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i,u=.2;let c,d;c="top"===t.align||"bottom"===t.align?a-e.position*l:i+e.position*l,d=c<-.2&&c>-Math.PI+u?"left":c>.2&&c<Math.PI-u?"right":"center",c-=Math.PI/2;const p=function(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}(r.cx,r.cy,o+s+6,c);let f;f="left"===d?"end":"right"===d?"start":"middle";const h={type:"text",text:Nte(e.label),align:d,x:p.x,y:p.y,maxHeight:t.maxHeight,maxWidth:qte(t,d,p),anchor:f,baseline:"middle"};return function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(h,t),function(e,t){e.boundingRect=t.textBounds(e)}(h,t),function(e,t,n){let r,o;const i=parseFloat(n.fontSize)||0;r=t.y-i/2,o=e.innerRect.height-(t.y+i/2),(r<0||o<0)&&(n.text="")}(t,p,h),h}function Fte(e){let t=0;return t+=e.paddingStart,t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function Bte(e){let t=0;return t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function $te(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=Fte(e)+e.labels.margin,t}function Wte(e,t){return e.map((e=>Rte(e,t)))}function Hte(e,t){return t?Math.abs(t.end-t.start):e.bandwidth()}function Gte(e){let{textMetrics:t,settings:n,innerRect:r,scale:o,tilted:i,layered:a,tick:s}=e;const l=t.height,u=Hte(o,s),c={width:0,height:l};if("left"===n.align||"right"===n.align)c.width=r.width-$te(n)-n.paddingEnd;else if(a)c.width=u*r.width*2;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);c.width=(r.height-$te(n)-n.paddingEnd-l*Math.cos(e))/Math.sin(e)}else c.width=u*r.width;return c.width=Lte({value:c.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),c}function Vte(e){let{textMetrics:t,settings:n,innerRect:r,outerRect:o,tilted:i,layered:a,tick:s,index:l,major:u}=e;const c=t.height,d={width:0,height:c};if("left"===n.align||"right"===n.align)d.width=r.width-$te(n)-n.paddingEnd;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);d.width=(r.height-$te(n)-n.paddingEnd-c*Math.cos(e))/Math.sin(e)}else d.width=Tte({layered:a,major:u,innerRect:r,outerRect:o,tick:s,index:l});return d.width=Lte({value:d.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),d}function Ute(e){let t;function n(){return t=Vte,n}function r(){return t=Gte,r}function o(e){let{settings:n,scale:r,innerRect:o,outerRect:i,measureText:a,ticks:s,state:l,textBounds:u}=e;const c=[],d=function(e){return e.filter((e=>!e.isMinor))}(s),p=function(e){return e.filter((e=>e.isMinor))}(s),f={innerRect:o,align:n.align,outerRect:i},h="tilted"===l.labels.activeMode,m="layered"===l.labels.activeMode;let g;if(n.arc&&(f.startAngle=n.arc.startAngle,f.endAngle=n.arc.endAngle,f.radius=n.arc.radius),n.line.show&&(f.style=n.line,f.padding=n.paddingStart,n.arc?c.push(Dte(f)):c.push(wte(f))),n.ticks.show&&(f.style=n.ticks,f.tickSize=n.ticks.tickSize,f.padding=Fte(n),n.arc?(f.padding=Bte(n),g=function(e,t){return e.map((e=>zte(e,t)))}(d,f)):g=Wte(d,f)),n.labels.show){const e=$te(n);f.style=n.labels,f.padding=e,f.tilted=h,f.layered=m,f.angle=n.labels.tiltAngle,f.paddingEnd=n.paddingEnd,f.textBounds=u;const s=(e,s)=>{f.textRect=function(e){let{style:t,measureText:n,tick:r}=e;return n({text:r.label,fontSize:t.fontSize,fontFamily:t.fontFamily})}({tick:e,measureText:a,style:f.style});const l=t({textMetrics:f.textRect,settings:n,innerRect:o,outerRect:i,scale:r,tilted:h,layered:m,tick:e,major:d,index:s});f.maxWidth=l.width,f.maxHeight=l.height,f.stepSize=function(e){let{innerRect:t,scale:n,settings:r,tick:o}=e;return("top"===r.align||"bottom"===r.align?t.width:t.height)*Hte(n,o)}({innerRect:o,scale:r,settings:n,tick:e})};let l=[];n.arc?(f.padding=function(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=Bte(e)+e.labels.margin,t}(n),l=function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=jte(e,t);return o.data=e.data,o}))}(d,f,s)):l=!m||"top"!==n.align&&"bottom"!==n.align?function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=kte(e,t);return o.data=e.data,o}))}(d,f,s):function(e,t,n,r){const o=t.padding,i=$te(n);return e.map(((e,a)=>{r(e,a);const s=i+t.maxHeight+n.labels.margin;t.layer=a%2,t.padding=a%2==0?o:s;const l=kte(e,t);return l.data=e.data,l}))}(d,f,n,s),n.labels.filterOverlapping&&function(e,t,n){let r=(t,n)=>V9($2(1,e[t].boundingRect),$2(1,e[n].boundingRect));if(n&&n.tilted){const t=Math.abs(n.angle);r=(n,r)=>{const o=1/Math.abs(e[n].x-e[r].x),i=Math.sin(t*(Math.PI/180))/o;return e[n].boundingRect.height>i}}for(let n=0;n<=e.length-1;n++)for(let o=n+1;o<=Math.min(n+5,n+(e.length-1));o++)e[n]&&e[o]&&r(n,o)&&(o===e.length-1?(e.splice(n,1),t&&t.splice(n,1)):(e.splice(o,1),t&&t.splice(o,1)),o--,n--)}(l,g,f),c.push(...l)}return n.minorTicks&&n.minorTicks.show&&p.length>0&&(f.style=n.minorTicks,f.tickSize=n.minorTicks.tickSize,f.padding=function(e){return e.line.strokeWidth+e.minorTicks.margin}(n),c.push(...Wte(p,f))),g&&c.push(...g),c}return n.build=o,r.build=o,e?r():n()}const Yte={labels:{show:!0,tiltAngle:40,tiltThreshold:.7,maxEdgeBleed:1/0,margin:4,maxLengthPx:150,minLengthPx:0,mode:"auto",maxGlyphCount:NaN,align:.5,offset:0,filterOverlapping:!1},ticks:{show:!1,margin:0,tickSize:4},line:{show:!1},paddingStart:0,paddingEnd:10,align:"auto"},Kte={labels:{show:!0,margin:4,maxLengthPx:150,minLengthPx:0,align:.5,offset:0,filterOverlapping:!0},ticks:{show:!0,margin:0,tickSize:8},minorTicks:{show:!1,tickSize:3,margin:0},line:{show:!0},paddingStart:0,paddingEnd:10,align:"auto"};const Xte={require:["chart","renderer","dockConfig"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{},style:{labels:"$label",ticks:"$guide-line",minorTicks:"$guide-line--minor",line:"$guide-line"}},created(){this.state={isDiscrete:!!this.scale.bandwidth,isHorizontal:!1,labels:{activeMode:"horizontal"},ticks:[],innerRect:{width:0,height:0,x:0,y:0},outerRect:{width:0,height:0,x:0,y:0},defaultDock:void 0,concreteNodeBuilder:void 0,settings:void 0},this.state.isDiscrete?this.state.defaultDock="bottom":this.state.defaultDock="left",this.setState(this.settings)},setState(){this.state.isDiscrete=!!this.scale.bandwidth,this.state.settings=function(e){let{state:t,style:n,settings:r}=e;const o=M2(!0,{},t.isDiscrete?Yte:Kte,n),i=M2(!0,{},o,r.settings),a=r.layout.dock||t.defaultDock;i.dock=a,i.align=function(e,t){const n=["top","bottom"],r=["left","right"];return-1!==n.indexOf(e)&&-1===r.indexOf(t)||-1!==r.indexOf(e)&&-1===n.indexOf(t)?e:t}(r.settings.align,a),i.labels.tiltAngle=Math.max(-90,Math.min(i.labels.tiltAngle,90));const{paddingStart:s,paddingEnd:l}=i;return i.paddingStart="function"==typeof s?s.call(null):s,i.paddingEnd="function"==typeof l?l.call(null):l,i}(this),this.state.concreteNodeBuilder=Ute(this.state.isDiscrete),this.dockConfig.dock(this.state.settings.dock),this.state.isHorizontal="top"===this.state.settings.align||"bottom"===this.state.settings.align,this.state.labels.activeMode=function(e,t,n){const r=t.labels.mode;return n&&e.isHorizontal?"auto"===r?e.labels.activeMode:-1!==["layered","tilted"].indexOf(t.labels.mode)&&-1!==["top","bottom"].indexOf(t.dock)?r:"horizontal":"horizontal"}(this.state,this.state.settings,this.state.isDiscrete)},preferredSize(e){const{formatter:t,state:n,scale:r}=this,o=this.state.isHorizontal?e.inner.width:e.inner.height;this.state.pxScale=J7(r,o);const i=function(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const{size:u,edgeBleed:c,isToLarge:d}=Ite({isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s});if(l+=u,d)return{size:l};if(a.ticks.show&&(l+=a.ticks.margin,l+=a.ticks.tickSize),a.minorTicks&&a.minorTicks.show){const e=a.minorTicks.margin+a.minorTicks.tickSize;e>l&&(l=e)}if(a.line.show){const e=a.line.strokeWidth/2;l+=e,c[function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left";default:return e}}(a.align)]=Math.ceil(e)}return l+=a.paddingStart,l+=a.paddingEnd,{size:l,edgeBleed:c}}({isDiscrete:this.state.isDiscrete,rect:{inner:e.inner,outer:e.outer},formatter:t,measureText:this.renderer.measureText,scale:this.state.pxScale,settings:this.state.settings,state:n});return i},beforeUpdate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{settings:t}=e;this.setState(t)},resize(e){const{inner:t,outer:n}=e,r=M2({},t,function(e){let{align:t,inner:n}=e;return"left"===t?{x:n.width+n.x}:"right"===t||"bottom"===t?n:{y:n.y+n.height}}({align:this.state.settings.align,inner:t})),o=n||r;return M2(this.state.innerRect,r),M2(this.state.outerRect,o),n},beforeRender(){const{scale:e,formatter:t}=this,n=this.state.isHorizontal?this.state.innerRect.width:this.state.innerRect.height;this.state.pxScale=J7(e,n),this.state.ticks=this.state.pxScale.ticks({distance:n,formatter:t}).filter((e=>e.position>=0&&e.position<=1))},render(){const{state:e}=this,t=[];return t.push(...this.state.concreteNodeBuilder.build({settings:this.state.settings,scale:this.state.pxScale,innerRect:this.state.innerRect,outerRect:this.state.outerRect,measureText:this.renderer.measureText,textBounds:this.renderer.textBounds,ticks:this.state.ticks,state:e})),ate.multiple(t),t}};const Qte={render:()=>[]};function Jte(e,t,n){let r="";if("function"==typeof e)r=e();else if("string"==typeof e)r=e;else if(n){const e=(n.data().fields||[]).map((e=>e.title()));r=e.join(t)}return r}function Zte(e,t){let n="middle";return"left"===e?"top"===t?n="end":"bottom"===t&&(n="start"):"right"===e?"top"===t?n="start":"bottom"===t&&(n="end"):"left"===t?n="start":"right"===t&&(n="end"),n}const ene={require:["renderer","chart"],defaultSettings:{layout:{dock:"bottom",displayOrder:0,prioOrder:0},settings:{paddingStart:5,paddingEnd:5,paddingLeft:0,paddingRight:0,anchor:"center",join:", ",maxLengthPx:NaN},style:{text:"$title"}},created(){this.definitionSettings=this.settings.settings;const e=this.settings.text,t=this.definitionSettings.join;this.title=Jte(e,t,this.scale)},preferredSize(){return this.renderer.measureText({text:this.title,fontSize:this.style.text.fontSize,fontFamily:this.style.text.fontFamily}).height+this.definitionSettings.paddingStart+this.definitionSettings.paddingEnd},render(){const{title:e,definitionSettings:t,rect:n}=this,r=[];return r.push(function(e){let{title:t,definitionSettings:n,dock:r,rect:o,measureText:i,style:a}=e;const s={type:"text",text:t,x:0,y:0,dx:0,dy:0,anchor:Zte(r,n.anchor),baseline:"alphabetical",stroke:"transparent",strokeWidth:0,fontWeight:"normal"};M2(s,a.text);const l=i(s);if("top"===r||"bottom"===r){let e=o.width/2;"left"===n.anchor?e=n.paddingLeft||0:"right"===n.anchor&&(e=o.width-(n.paddingRight||0)),s.x=e,s.y="top"===r?o.height-n.paddingStart:n.paddingStart+l.height,s.dy="top"===r?-l.height/6:-l.height/3,s.maxWidth=.8*o.width}else{let e=o.height/2;"top"===n.anchor?e=n.paddingStart:"bottom"===n.anchor&&(e=o.height-n.paddingStart),s.y=e,s.x="left"===r?o.width-n.paddingStart:n.paddingStart,s.dx="left"===r?-l.height/3:l.height/3;const t="left"===r?270:90;s.transform="rotate(".concat(t,", ").concat(s.x+s.dx,", ").concat(s.y+s.dy,")"),s.maxWidth=.8*o.height}return isNaN(n.maxLengthPx)||(s.maxWidth=Math.min(s.maxWidth,n.maxLengthPx)),s}({title:e,dock:this.settings.layout.dock,definitionSettings:t,rect:n,measureText:this.renderer.measureText,style:this.style})),r},beforeUpdate(e){e.settings&&(M2(this.settings,e.settings),this.definitionSettings=e.settings.settings);const t=this.settings.text,n=this.definitionSettings.join;this.title=Jte(t,n,this.scale)}};function tne(e,t){const n=e.settings.layout.dock,r=e.settings.settings.invert,o="top"===n||"bottom"===n,i=o?"width":"height",a=e.rect[i],s=e.chart.scroll(e.settings.scroll);let l;{let e=t[o?"x":"y"];r&&(e=a-e);const n=s.getState();l={startOffset:e,startScroll:n.start,swipe:!1};const i=e/a*(n.max-n.min)+n.min;i<n.start?l.startScroll=i:i>n.start+n.viewSize&&(l.startScroll=i-n.viewSize)}return{update:e=>{let t=e[o?"x":"y"];if(r&&(t=a-t),!l.swipe){if(Math.abs(l.startOffset-t)<=1)return;l.swipe=!0}const n=s.getState(),i=(t-l.startOffset)/a*(n.max-n.min),u=l.startScroll+i;s.moveTo(u)},end:e=>{let t=e[o?"x":"y"];r&&(t=a-t);const n=s.getState();if(l.swipe){const e=(t-l.startOffset)/a*(n.max-n.min),r=l.startScroll+e;s.moveTo(r)}else{const e=t/a*(n.max-n.min)+n.min-n.viewSize/2;s.moveTo(e)}}}}function nne(e,t){const n=t.element().getBoundingClientRect();return{x:e.center.x-n.left,y:e.center.y-n.top}}const rne={require:["chart","renderer"],on:{panStart(e){const t=nne(e,this.renderer),n={x:t.x-e.deltaX,y:t.y-e.deltaY};this.currentMove=tne(this,n),this.currentMove.update(t)},panMove(e){if(!this.currentMove)return;const t=nne(e,this.renderer);this.currentMove.update(t)},panEnd(e){if(!this.currentMove)return;const t=nne(e,this.renderer);this.currentMove.end(t),this.currentMove=null},panCancel(){this.currentMove=null},tap(e){const t=nne(e,this.renderer);tne(this,t).end(t)}},defaultSettings:{settings:{backgroundColor:"#eee",thumbColor:"#ccc",width:16}},preferredSize:function(e){const t=this.chart.scroll(this.settings.scroll).getState();if(t.viewSize>=t.max-t.min){return Math.max(e.width,e.height)}return this.settings.settings.width},render:function(e){const t=this.settings.layout.dock,n=this.settings.settings.invert,r="top"===t||"bottom"===t,o=r?"width":"height",i=this.rect[o],a=this.chart.scroll(this.settings.scroll).getState();let s=i*(a.start-a.min)/(a.max-a.min);const l=i*a.viewSize/(a.max-a.min);return n&&(s=i-s-l),e("div",{style:{position:"relative",width:"100%",height:"100%",background:this.settings.settings.backgroundColor,pointerEvents:"auto"}},[].concat(e("div",{class:"scroller",style:{position:"absolute",[r?"left":"top"]:"".concat(s,"px"),[r?"top":"left"]:"25%",[r?"height":"width"]:"50%",[o]:"".concat(Math.max(1,l),"px"),background:this.settings.settings.thumbColor}})))},renderer:"dom"};function one(e){let{h:t,isVertical:n,value:r,pos:o,align:i,borderHit:a,state:s,idx:l}=e;const u="end"!==i,c=u?{left:"0",top:"0"}:{right:"0",bottom:"0"};let d=0,p="100%",f="100%";return s.targetRect&&"start"===s.settings.bubbles.align?(p="".concat(s.targetRect.x+s.targetRect.width,"px"),f="".concat(s.targetRect.y+s.targetRect.height,"px")):s.targetRect&&"end"===s.settings.bubbles.align&&(d=n?s.targetRect.x:s.targetRect.y,p="".concat(s.rect.width-d,"px"),f="".concat(s.rect.height-d,"px")),u||(o-=a),t("div",{onmouseover(e){e.srcElement.children[0].style.backgroundColor="#000",e.srcElement.children[0].style[n?"height":"width"]="2px"},onmouseout(e){e.srcElement.children[0].style.backgroundColor=s.style.line.stroke,e.srcElement.children[0].style[n?"height":"width"]="1px"},"data-value":r,"data-key":[s.key,"edge",l].join("-"),style:{cursor:n?"ns-resize":"ew-resize",position:"absolute",left:"".concat(n?d:o,"px"),top:"".concat(n?o:d,"px"),height:n?"".concat(a,"px"):f,width:n?p:"".concat(a,"px"),pointerEvents:"auto"}},[t("div",{style:M2({backgroundColor:s.style.line.stroke,position:"absolute",height:n?"".concat(1,"px"):"100%",width:n?"100%":"".concat(1,"px"),pointerEvents:"none"},c)})])}function ine(e){let{h:t,isVertical:n,label:r,otherValue:o,rangeIdx:i,idx:a,pos:s,align:l,state:u,value:c}=e;const d="end"!==l,p="outside"===u.settings.bubbles.placement;let f,h="none";n?(f=d?"left":"right",p&&(h=d?"translate(-100%, 0px)":"translate(100%, 0px)")):(f=d?"top":"bottom",p&&(h=d?"translate(0px, -100%)":"translate(0px, 100%)"));let m=u.edit&&u.edit.rangeIdx===i&&u.edit.bubbleIdx===a;const g={position:"relative",borderRadius:"".concat(u.style.bubble.borderRadius,"px"),border:"".concat(u.style.bubble.strokeWidth,"px solid ").concat(u.style.bubble.stroke),backgroundColor:u.style.bubble.fill,color:u.style.bubble.color,fontFamily:u.style.bubble.fontFamily,fontSize:u.style.bubble.fontSize,padding:"4px 8px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px",minWidth:"50px",minHeight:"1em",pointerEvents:"auto",transform:n?"translate(0,-50%)":"translate(-50%,0)",cursor:n?"ns-resize":"ew-resize"};let b=u.style.bubble.stroke;const y=m?t("input",{type:"text",value:c,style:P2(P2({},g),{},{textAlign:"start",textOverflow:"",fontSize:"13px"}),onkeyup(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();const t=parseFloat(e.target.value);isNaN(t)?(b="rgba(230, 78, 78, 0.6)",e.target.style.border="".concat(u.style.bubble.strokeWidth,"px solid ").concat(b)):u.onEditConfirmed(i,t,o)}else"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),u.onEditCanceled())}}):t("div",{"data-key":[u.key,"bubble",i,a].join("-"),"data-other-value":o,"data-idx":i,"data-bidx":a,style:g},[r]);return t("div",{style:{position:"absolute",[f]:"0",[n?"top":"left"]:"".concat(s,"px"),transform:h}},[y])}function ane(e){let{h:t,isVertical:n,top:r,height:o,color:i,on:a,opacity:s}=e;return t("div",M2({style:{backgroundColor:i,opacity:s,position:"absolute",left:n?0:"".concat(r,"px"),top:n?"".concat(r,"px"):0,height:n?"".concat(o,"px"):"100%",width:n?"100%":"".concat(o,"px"),pointerEvents:"auto"}},a),[])}function sne(e){let{borderHit:t,els:n,isVertical:r,state:o,vStart:i,vEnd:a,idx:s}=e,l=0;o.targetRect&&(l=r?o.targetRect.y:o.targetRect.x);const u=!!o.scale,c=u?o.scale.norm(i)*o.size:i,d=u?o.scale.norm(a)*o.size:a,p=Math.abs(c-d),f=Math.min(c,d)+l,h=f+p;if(o.targetRect){const e=o.targetFillRect||o.targetRect,t=r?e.height:e.width,s=u?o.scale.norm(i)*t:i,l=u?o.scale.norm(a)*t:a,c=Math.abs(s-l),d=Math.min(s,l),p={h:o.h,isVertical:r,top:d,height:c,color:o.style.target.fill,opacity:o.style.target.opacity};o.style.target.opacity<.8&&(p.on={onmouseover(e){e.srcElement.style.opacity=o.style.target.opacity+.1},onmouseout(e){e.srcElement.style.opacity=o.style.target.opacity}}),n.push(o.h("div",{style:{position:"absolute",left:"".concat(e.x,"px"),top:"".concat(e.y,"px"),height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}},[ane(p)]))}const m=c<d?i:a,g=c<d?a:i,[b,y]=u?o.scale.domain():[Math.min(i,a),Math.max(i,a)],v=m+1e-5>=b&&m-1e-5<=y,x=g-1e-5<=y&&g+1e-5>=b;v&&n.push(one({h:o.h,isVertical:r,borderHit:t,value:m,pos:f,align:"start",state:o,idx:s})),x&&n.push(one({h:o.h,isVertical:r,borderHit:t,value:g,pos:h,align:"end",state:o,idx:s}));const _=o.settings.bubbles;if(_&&_.show){_.fontSize,_.fontFamily,_.fill;const e=[i,a];v&&n.push(ine({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:0,otherValue:g,value:m,label:"".concat(o.format(m,e)),pos:f,state:o})),x&&n.push(ine({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:1,otherValue:m,value:g,label:"".concat(o.format(g,e)),pos:h,state:o}))}}function lne(e){const t=e.active.limitHigh-e.active.end,n=e.active.limitLow-e.active.start;let r=e.current-e.start;return r=r<0?Math.max(r,n):Math.min(r,t),r}function une(e){let t=[];const n=0===e.direction;if(Array.isArray(e.ranges)&&e.ranges.forEach(((r,o)=>{e.active&&o===e.active.idx||sne({borderHit:5,els:t,isVertical:n,state:e,vStart:Math.min(r.min,r.max),vEnd:Math.max(r.min,r.max),idx:o})})),e.active){let r=e.start,o=e.current;if(-1!==e.active.idx)if("foo"===e.active.mode)r=Math.min(e.active.start,e.active.end),o=Math.max(e.active.start,e.active.end);else if("modify"===e.active.mode)r=Math.min(e.start,e.current),o=Math.max(e.start,e.current);else{const t=lne(e);r=e.active.start+t,o=e.active.end+t}sne({borderHit:5,els:t,isVertical:n,state:e,vStart:r,vEnd:o,idx:e.active.idx})}return t}function cne(e){return{min:e.scale.min(),max:e.scale.max()}}function dne(e){return{min:0,max:e.direction?e.rect.width:e.rect.height}}function pne(e,t,n){let r,o,i=e.ranges,a=-1;for(r=0;r<i.length;r++){if(i[r].min<=t&&t<=i[r].max){a=r,n.min=r?i[r-1].max:n.min,n.max=r+1<i.length?i[r+1].min:n.max;break}if(t<i[r].min){n.max=i[r].min,n.min=r?i[r-1].max:n.min;break}}-1===a&&i.length&&r>=i.length&&(n.min=i[i.length-1].max),-1!==a&&(o={idx:a,start:i[a].min,end:i[a].max,limitLow:n.min,limitHigh:n.max,mode:"foo"}),e.active=o}function fne(e){e.renderer.render(une(e))}function hne(e,t){if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}function mne(e,t){let n,r=1/0;const o=t.domain(),i=t.bandwidth()/2;for(let a=0;a<o.length;++a){const s=Math.abs(e-i-t(o[a]));s<r&&(r=s,n=o[a])}return n}function gne(e,t){return Math.min(...e)<=Math.max(...t)&&Math.max(...e)>=Math.min(...t)}function bne(e){const t=e.reduce(((e,t)=>(e.push(...q2(t.bounds)),e)),[]);return j2(t)}const yne={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{rangeStart(e){this.start(e)},rangeMove(e){this.move(e)},rangeEnd(e){this.end(e)},rangeClear(e){this.clear(e)},bubbleStart(e){this.bubbleStart(e)}},created(){this.state={key:this.settings.key||"brush-range"}},beforeRender(e){this.state.rect=e.size.computedInner},renderRanges(){this.state.started||(this.state.ranges=hne(this.state,this.state.brushInstance),this.state.active=null,fne(this.state))},render(e){const t=this.settings.settings;this.state.direction="vertical"===t.direction?0:1;const n=this.renderer.element().getBoundingClientRect(),r=this.state.rect[0===this.state.direction?"height":"width"];let o=J7(this.chart.scale(t.scale),r);const i=function(e){const t={targetRect:null,targetFillRect:null,scale:null,size:null},n=e.settings.settings,r=n.target&&(n.target.components||(n.target.component?[n.target.component]:[])).map((t=>e.chart.component(t))).filter((e=>!!e&&!!e.rect)),o=n.target&&n.target.selector?e.chart.findShapes(n.target.selector):[],i=n.target&&n.target.fillSelector?e.chart.findShapes(n.target.fillSelector):[];if(o.length>0){const r=bne(o);if(t.size=r[0===e.state.direction?"height":"width"],t.scale=J7(e.chart.scale(n.scale),t.size),t.targetRect=r,i.length>0){const e=bne(i);t.targetFillRect=e}}else if(r&&r.length>0){const n=r.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.computedInner.x),y0:Math.min(e.y0,t.rect.computedInner.y),x1:Math.max(e.x1,t.rect.computedInner.x+t.rect.computedInner.width),y1:Math.max(e.y1,t.rect.computedInner.y+t.rect.computedInner.height)})),{x0:r[0].rect.computedInner.x,y0:r[0].rect.computedInner.y,x1:r[0].rect.computedInner.x+r[0].rect.computedInner.width,y1:r[0].rect.computedInner.y+r[0].rect.computedInner.height});t.targetRect={x:n.x0-e.state.rect.x,y:n.y0-e.state.rect.y,width:n.x1-n.x0,height:n.y1-n.y0}}return t}(this);if(o=i.scale?i.scale:o,this.state.targetRect=i.targetRect,this.state.targetFillRect=i.targetFillRect,this.state.size=null===i.size?r:i.size,this.state.settings=t,this.state.style=this.style,this.state.offset=n,this.state.brush="object"==typeof t.brush?t.brush.context:t.brush,this.state.brushInstance=this.chart.brush(this.state.brush),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.onEditConfirmed=(e,t,n)=>{this.state.edit=null,function(e,t,n,r){let o=e.ranges.map((e=>({min:e.min,max:e.max})));const i=e.scale.min(),a=e.scale.max();o[t]={min:Math.max(i,Math.min(n,r)),max:Math.min(a,Math.max(n,r))},e.ranges[t]=P2({},o[t]);const s=e.scale.data();s&&s.fields&&s.fields.forEach((t=>{e.fauxBrushInstance||e.brushInstance.setRange(t.id(),o)}))}(this.state,e,t,n),this.emit("bubbleEnd"),fne(this.state)},this.state.onEditCanceled=()=>{this.state.edit=null,fne(this.state)},this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX"},this.state.format="function"==typeof t.bubbles.label&&((e,n)=>t.bubbles.label.call(void 0,{datum:e,data:n,scale:o,resources:{scale:this.chart.scale,formatter:this.chart.formatter}})),{}.hasOwnProperty.call(o,"norm")){this.state.editable=!0,this.state.observeBrush="object"==typeof t.brush&&t.brush.observe,this.state.fauxBrushInstance=null,this.state.findValues=null,this.state.scale=o;const e=this.state.scale.data();!this.state.format&&e&&e.fields&&e.fields[0]&&(this.state.format=e.fields[0].formatter())}else this.state.editable=!1,this.state.scale=t7(),this.state.scale.data=o.data,this.state.format||(this.state.format=(e,t)=>gne(o.range(),t)?function(e,t){const n=t.ticks(),r=t.domain().indexOf(mne(e,t));return-1!==r?n[r].label:"-"}(e,o):"-"),this.state.fauxBrushInstance=j7(),this.state.findValues=e=>function(e,t){const n=t.domain(),r=t.range(),o=[];return e.forEach((e=>{if(!gne(r,[e.min,e.max]))return;const i=n.indexOf(mne(e.min,t)),a=n.indexOf(mne(e.max,t));o.push.apply(o,n.slice(Math.min(i,a),Math.max(i,a)+1))})),o}(e,o);return this.state.ranges=hne(this.state,this.state.brushInstance),this.state.observeBrush||this.state.sourcedFromThisComponent?[une(this.state)]:[]},mounted(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.on("update",this.renderRanges)},beforeDestroy(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.removeListener("update",this.renderRanges)},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;t.edit=null;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=M2({},r.element().getBoundingClientRect());const c=a-t.offset.left,d=s-t.offset.top;t.offset.left+=t.targetRect?t.targetRect.x:0,t.offset.top+=t.targetRect?t.targetRect.y:0,t.ranges=o(t,t.fauxBrushInstance||t.brushInstance);const p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];u.current=t.scale.normInvert(f/t.size),u.start=t.scale.normInvert(p/t.size);let h=t.ranges;const m=cne(t);let g,b,y=-1;if(l&&l.hasAttribute("data-idx"))y=parseInt(l.getAttribute("data-idx"),10),m.min=y>0?h[y-1].max:m.min,m.max=y+1<h.length?h[y+1].min:m.max;else{for(g=0;g<h.length;g++){if(h[g].min<=u.start&&u.start<=h[g].max){y=g,m.min=g?h[g-1].max:m.min,m.max=g+1<h.length?h[g+1].min:m.max;break}if(u.start<h[g].min){m.max=h[g].min,m.min=g?h[g-1].max:m.min;break}}-1===y&&h.length&&g>=h.length&&(m.min=h[h.length-1].max)}if(-1!==y||t.multi||(u.ranges=[],m.min=t.scale.min(),m.max=t.scale.max()),-1!==y)if(b={idx:y,start:h[y].min,end:h[y].max,limitLow:m.min,limitHigh:m.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),b.mode="modify";else{let e=t.scale.norm(b.start)*t.size,n=t.scale.norm(b.end)*t.size;Math.abs(p-e)<=i?(u.start=b.end,b.mode="modify"):Math.abs(p-n)<=i&&(u.start=b.start,b.mode="modify")}else b={idx:-1,start:u.start,end:u.current,limitLow:m.min,limitHigh:m.max,mode:"current"};u.active=b,"modify"!==b.mode&&t.targetRect&&!Y9(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:hne,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e,e.fauxBrushInstance||e.brushInstance);const n=cne(e);pne(e,e.current,n)}(this.state,hne),fne(this.state),this.state.sourcedFromThisComponent=!0,this.state.active=null)},move(e){this.state.started&&(!function(e,t){const n=(t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset])/e.size,r=e.scale.normInvert(n);e.current=Math.max(Math.min(r,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){let t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=lne(e);t[e.active.idx].min+=n,t[e.active.idx].max+=n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});const n=e.scale.data();n&&n.fields&&n.fields.forEach((n=>{if(e.fauxBrushInstance){let r=hne(e,e.fauxBrushInstance),o=e.findValues(r),i=e.findValues(t),a=i.filter((e=>-1===o.indexOf(e))),s=o.filter((e=>-1===i.indexOf(e))),l=a.map((e=>({key:n.id(),value:e}))),u=s.map((e=>({key:n.id(),value:e})));e.brushInstance.addAndRemoveValues(l,u),e.fauxBrushInstance.setRange(n.id(),t)}else e.brushInstance.setRange(n.id(),t)}))}(this.state),fne(this.state))},clear(){this.state.fauxBrushInstance&&this.state.fauxBrushInstance.clear(),this.state.renderer.render([]),this.state.started=!1,this.state.active=null,this.state.sourcedFromThisComponent=!1},bubbleStart(e){if(!this.state.editable)return;const t=e.srcEvent||e,n=t.target,r={rangeIdx:parseInt(n.getAttribute("data-idx"),10),bubbleIdx:parseInt(n.getAttribute("data-bidx"),10)};if(isNaN(r.rangeIdx)||JSON.stringify(r)===JSON.stringify(this.state.edit))return;this.state.edit=r,t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault();const o=n.parentNode;fne(this.state);const i=o.querySelector("input");i.focus(),i.select()}};function vne(e){e.renderer.render(une(e))}function xne(e){return e.rc.ranges()}function _ne(e,t){const n={x:e.direction?t.min+e.rect.x:e.rect.x,y:e.direction?e.rect.y:t.min+e.rect.y,width:e.direction?t.max-t.min:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:t.max-t.min};return e.chart.shapesAt(n,e.settings.brush)}const wne={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaClear(e){this.clear(e)}},created(){this.state={key:this.settings.key||"brush-area-dir"}},render(e){this.state.rect=this.rect;const t=this.settings.settings,n="vertical"===t.direction?0:1,r=this.state.rect[0===n?"height":"width"],o=this.renderer.element().getBoundingClientRect(),i=(t.target?t.target.components||[t.target.component]:[]).map((e=>this.chart.component(e))).filter((e=>!!e&&!!e.rect)),a=i[0]?i.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.x),y0:Math.min(e.y0,t.rect.y),x1:Math.max(e.x1,t.rect.x+t.rect.width),y1:Math.max(e.y1,t.rect.y+t.rect.height)})),{x0:i[0].rect.x,y0:i[0].rect.y,x1:i[0].rect.x+i[0].rect.width,y1:i[0].rect.y+i[0].rect.height}):null;return this.state.targetRect=a?{x:a.x0-this.rect.x,y:a.y0-this.rect.y,width:a.x1-a.x0,height:a.y1-a.y0}:null,this.state.style=this.style,this.state.chart=this.chart,this.state.direction=n,this.state.settings=t,this.state.offset=o,this.state.rc=R7(),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.size=r,this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX",area:0===this.state.direction?"height":"width"},this.state.format=function(e,t){return function(e,t,n){const r=Math.min(...n),o=Math.max(...n),i={x:e.direction?r+e.rect.x:e.rect.x,y:e.direction?e.rect.y:r+e.rect.y,width:e.direction?o-r:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:o-r},a=e.chart.shapesAt(i,e.settings.brush);if(0===a.length)return"-";const s=a.reduce(((n,o)=>{const i=n.bounds,a=o.bounds;return t===r?i[e.cssCoord.coord]<=a[e.cssCoord.coord]?n:o:i[e.cssCoord.coord]+i[e.cssCoord.area]>=a[e.cssCoord.coord]+a[e.cssCoord.area]?n:o})),l=e.settings.brush.components.reduce(((e,t)=>e.key===s.key?e:t));return"function"==typeof e.settings.bubbles.label?e.settings.bubbles.label(s.data):Array.isArray(l.data)&&l.data.length?s.data[l.data[0]].label:s.data&&s.data.label?s.data.label:"-"}(this,e,t)},[]},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=r.element().getBoundingClientRect(),t.ranges=o(t);const c=a-t.offset.left,d=s-t.offset.top,p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];let h=f,m=p;u.start=p,u.current=f;let g=t.ranges;const b=dne(t);let y,v,x=-1;if(l&&l.hasAttribute("data-idx"))x=parseInt(l.getAttribute("data-idx"),10),b.min=x>0?g[x-1].max:b.min,b.max=x+1<g.length?g[x+1].min:b.max;else{for(y=0;y<g.length;y++){if(g[y].min<=m&&m<=g[y].max){x=y,b.min=y?g[y-1].max:b.min,b.max=y+1<g.length?g[y+1].min:b.max;break}if(m<g[y].min){b.max=g[y].min,b.min=y?g[y-1].max:b.min;break}}-1===x&&g.length&&y>=g.length&&(b.min=g[g.length-1].max)}if(-1!==x||t.multi||(u.ranges=[],b.min=0,b.max=t.direction?t.rect.width:t.rect.height),-1!==x)if(v={idx:x,start:g[x].min,end:g[x].max,limitLow:b.min,limitHigh:b.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),v.mode="modify";else{let e=v.start,t=v.end;Math.abs(p-e)<=i?(u.start=v.end,v.mode="modify"):Math.abs(p-t)<=i&&(u.start=v.start,v.mode="modify")}else v={idx:-1,start:m,end:h,limitLow:b.min,limitHigh:b.max,mode:"current"};u.active=v,"modify"!==v.mode&&t.targetRect&&!Y9(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:xne,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e);const n=dne(e);pne(e,e.current,n)}(this.state,xne),vne(this.state))},move(e){this.state.started&&(!function(e,t){const n=t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset];e.current=Math.max(Math.min(n,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){const t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=lne(e);t[e.active.idx].min=e.active.start+n,t[e.active.idx].max=e.active.end+n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});e.rc.set(t);let n=[];t.forEach((t=>{n=[...n,..._ne(e,t)]})),function(e,t){e.chart.brushFromShapes(t,e.settings.brush)}(e,n)}(this.state),vne(this.state))},clear(){this.state.rc&&this.state.rc.clear(),this.state.renderer.render([])}};function Sne(e){const t="vertical"===e.direction,n=e.rect[t?"height":"width"],r=e.rect[t?"width":"height"];return function(e){const t=e.brush;if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}(e).map((o=>{const i=e.scale(o.min)*n,a=e.scale(o.max)*n,s=Math.min(i,a),l=Math.abs(i-a);return{type:"rect",fill:e.fill,opacity:e.opacity,x:t?0:s,width:t?r:l,y:t?s:0,height:t?l:r}}))}function Cne(e,t,n,r){function o(){!function(e){e.renderer.render(Sne(e))}(e)}function i(){!function(e){e.renderer.render(Sne(e))}(e)}function a(){!function(e){e.renderer.render(Sne(e))}(e)}e.brush=t,t&&(t.on("start",o),t.on("update",i),t.on("end",a),e.start=o,e.update=i,e.end=a,e.brush=t,e.scale=n,e.renderer=r)}function Ene(e){e.brush&&(e.brush.removeListener("start",e.start),e.brush.removeListener("update",e.update),e.brush.removeListener("end",e.end)),e.start=void 0,e.update=void 0,e.end=void 0,e.brush=void 0,e.scale=void 0,e.renderer=void 0}const kne={require:["chart","settings","renderer"],defaultSettings:{settings:{}},preferredSize:()=>50,created(){this.state={}},render(){const e=this.settings.settings,t=this.chart.brush(e.brush),n=e.direction||"horizontal",r="horizontal"===n?this.rect.width:this.rect.height,o=J7(this.chart.scale(e.scale),r);return Ene(this.state),Cne(this.state,t,o,this.renderer),this.state.rect=this.rect,this.state.fill=e.fill||"#ccc",this.state.opacity=void 0!==e.opacity?e.opacity:1,this.state.direction=n,Sne(this.state)},beforeDestroy(){Ene(this.state)}};function Rne(e,t){const n=t.center.x,r=t.center.y;return{x:n-e.left,y:r-e.top}}function Mne(e,t,n){return g9(e,t.points[0])<n.settings.snapIndicator.threshold**2}function Ane(e,t){null==e.path.d?e.path.d="M".concat(t.x," ").concat(t.y," "):e.path.d+="L".concat(t.x," ").concat(t.y," "),e.points.push(t)}function Lne(e){let{state:t,start:n=null,end:r=null}=e;null!==n&&(t.snapIndicator.x1=n.x,t.snapIndicator.y1=n.y),null!==r&&(t.snapIndicator.x2=r.x,t.snapIndicator.y2=r.y)}function Ine(e,t){e.snapIndicator.visible=t}const Pne={require:["chart","renderer","settings"],defaultSettings:{layout:{displayOrder:0},settings:{brush:{components:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.5},lasso:{fill:"transparent",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:"20, 10"},startPoint:{r:10,fill:"green",stroke:"black",strokeWidth:1,opacity:1}}},on:{lassoStart(e){this.start(e)},lassoEnd(e){this.end(e)},lassoMove(e){this.move(e)},lassoCancel(){this.cancel()}},created(){this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}}},start(e){var t;this.state.active=!0,this.state.path={visible:!0,type:"path",d:null,fill:(t=this.settings.settings.lasso).fill,stroke:t.stroke,strokeWidth:t.strokeWidth,opacity:t.opacity,strokeDasharray:t.strokeDasharray,collider:{type:null}},this.state.snapIndicator=function(e){return{visible:!1,type:"line",x1:0,y1:0,x2:0,y2:0,strokeDasharray:e.strokeDasharray,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity,collider:{type:null}}}(this.settings.settings.snapIndicator),this.state.startPoint=function(e){return{visible:!0,type:"circle",cx:0,cy:0,r:e.r,fill:e.fill,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,collider:{type:null}}}(this.settings.settings.startPoint),this.state.rendererBounds=this.renderer.element().getBoundingClientRect(),this.state.componentDelta=function(e,t){const n=e.element.getBoundingClientRect();return{x:t.left-n.left,y:t.top-n.top}}(this.chart,this.state.rendererBounds),this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts||["lassoBrush"],data:e.data||[""],action:e.action||"add"})))}(this.settings);const n=Rne(this.state.rendererBounds,e);Ane(this.state,n),Lne({state:this.state,start:n}),function(e,t){e.startPoint.cx=t.x,e.startPoint.cy=t.y}(this.state,n)},move(e){if(!this.state.active)return;const t=Rne(this.state.rendererBounds,e);Mne(t,this.state,this.settings)?Ine(this.state,!0):Ine(this.state,!1),Ane(this.state,t),Lne({state:this.state,end:t}),function(e,t){const n=[e.startPoint,e.path,e.snapIndicator].filter((e=>e.visible));t.render(n)}(this.state,this.renderer),function(e,t){if(e.active){const n=e.points[e.points.length-2],r=e.points[e.points.length-1];e.lineBrushShape.x1=n.x+e.componentDelta.x,e.lineBrushShape.y1=n.y+e.componentDelta.y,e.lineBrushShape.x2=r.x+e.componentDelta.x,e.lineBrushShape.y2=r.y+e.componentDelta.y;const o=t.shapesAt(e.lineBrushShape,{components:e.brushConfig});t.brushFromShapes(o,{components:e.brushConfig})}}(this.state,this.chart)},end(e){if(!this.state.active)return;Ine(this.state,!1);Mne(Rne(this.state.rendererBounds,e),this.state,this.settings)&&function(e,t){if(e.active){const n=e.componentDelta.x,r=e.componentDelta.y,o=e.points.map((e=>({x:e.x+n,y:e.y+r}))),i=t.shapesAt({vertices:o},{components:e.brushConfig});t.brushFromShapes(i,{components:e.brushConfig})}}(this.state,this.chart),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([])},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([]))},render(){}};function Tne(e,t,n,r,o){let i,a=0,s=t.length-1;for(;a<s;){let l=Math.floor((a+s)/2);i=o(t[l]),i[n]+i[r]<e[n]?a=l+1:s=l}return a}function Dne(e){let{orientation:t,targetNodes:n,labels:r,container:o}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tne;const a=[],s="v"===t?"x":"y",l="v"===t?"width":"height",u=e=>e.textBounds,c=e=>e.node.localBounds;return(e,t)=>{const{textBounds:d,node:p}=r[t];if(d[s]<o[s]||d[s]+d[l]>o[s]+o[l])return!1;for(let e=i(d,a,s,l,u);e<a.length;e++)if(V9(d,a[e].textBounds))return!1;const f=i(d,n,s,l,c),h=d[s]+d[l];for(let e=f;e<n.length;e++){const t=n[e].node;if(h<t.localBounds[s])break;if(V9(d,t.localBounds)&&p!==t)return!1}return a.push(r[t]),!0}}const One=4;function zne(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function Nne(e){const t=typeof e;return("string"===t||"number"===t)&&""!==e}function qne(e){return P2(P2({type:"rect",rx:2,ry:2,fill:e.backgroundColor},e.backgroundBounds),{},{data:"".concat(e.data," ").concat(e.text),rotation:e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal"})}function jne(e,t,n){return n?e.width>=t.height:e.width>=t.width}function Fne(e,t,n){return n?e.height>=t.width:e.height>=t.height}function Bne(e,t,n,r,o){let i,a;return"v"===e?(i=r||o||jne(t,n,!0),a=Fne(t,n,!r)):(i=jne(t,n),a=o||Fne(t,n,!1)),i&&a}function $ne(e,t,n,r){return e+.5*t+(r-.5)*(t-n)-.5*n}function Wne(e,t,n){const r={type:"text",text:t,maxWidth:n.rotate?e.height:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:n.rotate?"end":"start",baseline:"central",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(!n.overflow&&!function(e,t,n){return jne(e,t,n.rotate)&&Fne(e,t,n.rotate)}(e,o,n))return!1;const i=.5*o.height;return n.rotate?(r.x=$ne(e.x,e.width,o.height,n.align)+i,r.y=$ne(e.y,e.height,o.width,n.justify),"right"===n.dock?r.transform="rotate(90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,") translate(").concat(o.width,", 0)"):r.transform="rotate(-90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,")")):(r.x=$ne(e.x,e.width,o.width,n.align),r.y=$ne(e.y,e.height,o.height,n.justify)+i),r}function Hne(e){let{bar:t,view:n,direction:r,position:o,padding:i=One,measured:a}=e;const s={};if(M2(s,t),o&&"inside"!==o)if("up"===r||"down"===r){const e=Math.max(0,Math.min(t.y,n.height)),i=Math.max(0,Math.min(t.y+t.height,n.height));"outside"===o&&"up"===r||"opposite"===o&&"down"===r?(s.y=0,s.height=e):("outside"===o&&"down"===r||"opposite"===o&&"up"===r)&&(s.y=i,s.height=n.height-i)}else{const e=Math.max(0,Math.min(t.x,n.width)),i=Math.max(0,Math.min(t.x+t.width,n.width));"outside"===o&&"left"===r||"opposite"===o&&"right"===r?(s.x=0,s.width=e):("outside"===o&&"right"===r||"opposite"===o&&"left"===r)&&(s.x=i,s.width=n.width-i)}else;return function(e,t){const n=Math.max(0,Math.min(e.y,t.height)),r=Math.max(0,Math.min(e.y+e.height,t.height)),o=Math.max(0,Math.min(e.x,t.width)),i=Math.max(0,Math.min(e.x+e.width,t.width));e.x=o,e.width=i-o,e.y=n,e.height=r-n}(s,n),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{top:r=One,bottom:o=One,left:i=One,right:a=One}=n,s="function"==typeof i?i(t):i,l="function"==typeof a?a(t):a,u="function"==typeof r?r(t):r,c="function"==typeof o?o(t):o;e.x+=s,e.width-=s+l,e.y+=u,e.height-=u+c}(s,a,i),s}function Gne(e){let t,n,r,o,i,{direction:a,fitsHorizontally:s,measured:l,node:u,orientation:c,placementSettings:d,rect:p}=e,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hne;const h=[],m="h"===c?"width":"height";for(i=0;i<d.length;i++)if(r=d[i],o=f({bar:u.localBounds,view:p,direction:a,position:r.position,padding:r.padding,measured:l}),h.push(o),t=!i||o[m]>t[m]?o:t,Bne(c,o,l,s,r.overflow)){n=o;break}return n||(n=t,i=h.indexOf(n)),r=d[i],{bounds:n,placement:r}}function Vne(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{top:i=One,bottom:a=One,left:s=One,right:l=One}=o,u="function"==typeof s?s(t):s,c="function"==typeof l?l(t):l,d="function"==typeof i?i(t):i,p="function"==typeof a?a(t):a,f=e.x+e.dx,h=e.y+e.dy,m=n?Math.min(t.width,r.height):Math.min(t.height,r.width),g=n?Math.min(t.height,r.height):Math.min(t.width,r.width),b=.5*t.height,y=1e-9;return{x:(n?f-b:f)-u-y,y:(n?h:h-b)-d-y,width:g+(u+c)-y,height:m+(d+p)-y}}function Une(e){let{chart:t,targetNodes:n,rect:r,fitsHorizontally:o,collectiveOrientation:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gne,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wne,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dne;const u=[],c={container:r,targetNodes:n,labels:[],orientation:i};let d,p,f,h,m,g,b,y,v,x,_,w,S,C;for(let e=0,l=n.length;e<l;e++){g=null,p=n[e],f=p.node,S=zne(f,t),v=p.direction,C="left"===v||"right"===v?"h":"v";for(let t=0;t<p.texts.length;t++){if(h=p.texts[t],!Nne(h))continue;x=p.labelSettings[t],y=p.measurements[t],w=x.placements;const n=a({direction:v,fitsHorizontally:o,lblStngs:x,measured:y,node:f,orientation:C,placements:w,placementSettings:p.placementSettings[t],rect:r});if(g=n.bounds,_=n.placement,g&&_){var E;m=_.justify;const t="function"==typeof x.linkData?x.linkData(S,e):void 0,n="function"==typeof _.overflow?_.overflow(S,e):_.overflow;"up"===v&&(m=1-m),"opposite"===_.position&&(m=1-m),"left"===v&&(m=1-m);const r=!("h"===i||o);if(d=s(g,h,{justify:"h"===C?_.align:m,align:"h"===C?m:_.align,fontSize:x.fontSize,fontFamily:x.fontFamily,textMetrics:y,rotate:r,overflow:!!n,dock:null!==(E=x.dock)&&void 0!==E?E:"left"}),d){const n=Vne(d,y,r,g,_.padding);b="function"==typeof _.fill?_.fill(P2(P2({},S),{},{textBounds:n}),e):_.fill,d.fill=b,void 0!==t&&(d.data=t),"object"==typeof _.background&&(d.backgroundColor="function"==typeof _.background.fill?_.background.fill(P2(P2({},S),{},{textBounds:n}),e):_.background.fill,void 0!==d.backgroundColor&&(d.backgroundBounds=Vne(d,y,r,g,_.background.padding))),u.push(d),c.labels.push({node:f,textBounds:n})}}}}const k=u.filter(l(c)),R=k.filter((e=>void 0!==e.backgroundBounds)).map(qne);return[...R,...k]}function Yne(e){const t=2*Math.PI;return(e%t+t)%t}function Kne(e,t){e.x+=t,e.width-=2*t,e.y+=t,e.height-=2*t}function Xne(e){return{x:e.x,y:e.y-e.height/2,width:e.width,height:e.height}}function Qne(e,t,n){let{x:r,y:o}=t;if(r*r+o*o>e*e)return null;let i=Math.sin(n),a=Math.cos(n),s=r*a-o*i,l=e*e-s*s;if(l<0)return null;let u=Math.sqrt(l);return{x:s*a+i*u,y:-s*i+a*u}}function Jne(e){let t,n,{radius:r,size:o,angle:i}=e,{width:a,height:s}=o,l={x:a/2,y:s/2};switch(Math.floor(i/(Math.PI/2))){case 0:if(t=Qne(r,l,i),!t)return null;t.y*=-1,n={x:-a,y:0};break;case 1:if(t=Qne(r,l,Math.PI-i),!t)return null;n={x:-a,y:-s};break;case 2:if(t=Qne(r,l,i-Math.PI),!t)return null;t.x*=-1,n={x:0,y:-s};break;case 3:if(t=Qne(r,l,2*Math.PI-i),!t)return null;t.x*=-1,t.y*=-1,n={x:0,y:0};break;default:throw new Error("invalid angle")}return{x:t.x+n.x,y:t.y+n.y,width:a,height:s}}function Zne(e){let{slice:t,measured:n,padding:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t,l=s-a-2*r,u=i-o;if(u<Math.PI){let e=(n.height/2+r)/Math.tan(u/2);e>a&&(l=s-e-2*r)}if(l<0||l<n.minReqWidth)return null;const c=Yne((o+i)/2);let d=s-r,p={x:Math.sin(c)*d,y:-Math.cos(c)*d,width:l,height:n.height};return c<Math.PI?(p.angle=c-Math.PI/2,p.anchor="end"):(p.angle=c+Math.PI/2,p.anchor="start"),p}function ere(e){let{context:t,node:n,bounds:r}=e;let{start:o,end:i}=n.desc.slice;const a=Yne((o+i)/2);switch(Math.floor(a/(Math.PI/2))){case 0:t.q1maxY=r.y-2,void 0===t.q2minY&&(t.q2minY=r.y+r.height+2);break;case 1:t.q2minY=r.y+r.height+2;break;case 2:t.q3minY=r.y+r.height+2;break;case 3:t.q4maxY=r.y-2,void 0===t.q3minY&&(t.q3minY=r.y+r.height+2)}}function tre(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function nre(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:e.x,y:e.y+("top"===e.baseline?e.height/2:0),fill:n.fill,anchor:e.anchor||"start",baseline:"middle",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily};if(!isNaN(e.angle)){let t=e.angle*(360/(2*Math.PI));r.transform="rotate(".concat(t,", ").concat(r.x,", ").concat(r.y,")")}return r}function rre(e){let t,n,{slice:r,direction:o,position:i,padding:a,measured:s,view:l,context:u,store:c}=e,{start:d,end:p,innerRadius:f,offset:h}=r;switch(i){case"into":t="rotate"===o?Zne({slice:r,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t;const l=Yne((o+i)/2);let u=Jne({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",K9(u,{x1:0,y1:0,x2:Math.sin(o)*s,y2:-Math.cos(o)*s})||K9(u,{x1:0,y1:0,x2:Math.sin(i)*s,y2:-Math.cos(i)*s})||F9({cx:0,cy:0,r:a},u)?null:(Kne(u,n),u)):null}({slice:r,measured:s,padding:a});break;case"inside":n={start:d,end:p,innerRadius:0,outerRadius:f},t="rotate"===o?Zne({slice:n,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r,store:o}=e;const{start:i,end:a,outerRadius:s}=t,l=Yne((i+a)/2);let u=Jne({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",Kne(u,n),o.insideLabelBounds.some((e=>V9(e,u)))?null:(o.insideLabelBounds.push({x:u.x-4,y:u.y,width:u.width+8,height:u.height}),u)):null}({slice:n,measured:s,padding:a,store:c});break;case"outside":t="rotate"===o?function(e){let{slice:t,measured:n,padding:r,view:o}=e,{start:i,end:a,outerRadius:s,offset:l}=t,u=s+r,c=a-i;if(c<Math.PI&&(n.height/2+r)/Math.tan(c/2)>u)return null;const d=Yne((i+a)/2);let p=Math.sin(d)*u,f=-Math.cos(d)*u,h=n.width+1,m=d%Math.PI;if(m>Math.PI/2&&(m=Math.PI-m),Math.cos(m)>.001){let e=f<0?o.y:o.y+o.height,t=Math.abs(e-l.y)/Math.cos(m)-Math.tan(m)*(n.height/2)-2*r-s;t<h&&(h=t)}if(Math.sin(m)>.001){let e=p<0?o.x:o.x+o.width,t=Math.abs(e-l.x)/Math.sin(m)-n.height/2/Math.tan(m)-2*r-s;t<h&&(h=t)}if(h<=0||h<n.minReqWidth)return null;let g={x:p,y:f,width:h,height:n.height};return d<Math.PI?(g.angle=d-Math.PI/2,g.anchor="start"):(g.angle=d+Math.PI/2,g.anchor="end"),g}({slice:r,measured:s,padding:a,view:l}):function(e){let{slice:t,measured:n,padding:r,view:o,context:i}=e,{start:a,end:s,outerRadius:l,offset:u}=t;const c=Yne((a+s)/2);if(function(e,t,n){switch(t){case 0:return e.q1maxY<0;case 1:return e.q2minY>n.height;case 2:return e.q3minY>n.height;case 3:return e.q4maxY<0;default:return!0}}(i,Math.floor(c/(Math.PI/2)),o))return null;let d=l+r+n.height/2,p=Math.sin(c)*d,f=-Math.cos(c)*d,h=n.width+1;if(c<Math.PI){let e=Math.abs(o.x+o.width-(p+u.x));e<h&&(h=e)}else{let e=Math.abs(o.x-(p+u.x));e<h&&(h=e)}if(h<n.minReqWidth)return null;let m={x:p,y:f,width:h,height:n.height};return c<Math.PI?m.anchor="start":m.anchor="end",m}({slice:r,measured:s,padding:a,view:l,context:u});break;default:throw new Error("not implemented")}return t&&(t.x+=h.x,t.y+=h.y,"outside"===i&&"rotate"!==o&&function(e,t,n){const{start:r,end:o,offset:i,outerRadius:a}=n,s=Yne((r+o)/2);switch(Math.floor(s/(Math.PI/2))){case 0:if(void 0!==t.q1maxY){let n=Math.min(e.y,t.q1maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 1:if(void 0!==t.q2minY){let n=Math.max(e.y,t.q2minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 2:if(void 0!==t.q3minY){let n=Math.max(e.y,t.q3minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 3:if(void 0!==t.q4maxY){let n=Math.min(e.y,t.q4maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}}}(t,u,r)),t}function ore(e){let{context:t,direction:n,measured:r,node:o,placementSettings:i,rect:a,store:s}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rre;for(let e=0;e<i.length;e++){let u=i[e],c=l({context:t,slice:o.desc.slice,view:a,direction:n,position:u.position,measured:r,padding:u.padding,store:s});if(c)return{bounds:c,placement:u}}return{bounds:null,placement:null}}function ire(e,t,n){const r=t.fontFamily,o="".concat(t.fontSize,"px"),i=n.measureText({text:e,fontFamily:r,fontSize:o});return i.minReqWidth=Math.min(i.width,n.measureText({text:"".concat(e[0],"…"),fontFamily:r,fontSize:o}).width),i}const are=/\n+|\r+|\r\n/,sre=/\s/,lre=/[a-zA-Z\u00C0-\u00F6\u00F8-\u00FF\u00AD]/;function ure(e){return"string"==typeof e?-1!==e.search(are):-1!==String(e).search(are)}function cre(e){return-1!==e.search(sre)}function dre(e){return-1!==e.search(lre)}function pre(e,t,n){return Math.max(t,Math.min(n,e))}function fre(){let{string:e,separator:t="",reverse:n=!1,measureText:r=e=>({width:e.length,height:1}),mandatoryBreakIdentifiers:o=[ure],noBreakAllowedIdentifiers:i=[],suppressIdentifier:a=[cre,ure,e=>""===e],hyphenationIdentifiers:s=[dre]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=String(e).split(t);!function(e){""===e[0]&&e.shift(),""===e[e.length-1]&&e.pop()}(l);const u=l.length,c=n?e=>e>=0:e=>e<u;let d=n?u:-1;function p(e){const t=pre(e,0,u-1),n=l[t],c=r(n),d=function(e,t,n,r,o){return r.some((r=>r(e,t,n)))?1:o.some((r=>r(e,t,n)))?0:2}(n,t,l,o,i);return{index:t,value:n,breakOpportunity:d,suppress:a.some((e=>e(n,t,l))),hyphenation:s.some((e=>e(n,t,l))),width:c.width,height:c.height,done:!1}}return{next:function(e){return isNaN(e)?n?d--:d++:d=pre(e,0,u-1),c(d)?p(d):{done:!0}},peek:p,length:u}}const hre="…",mre=/^\s*\d+(\.\d+)?px\s*$/i;function gre(e){return"string"===typeof e&&mre.test(e)}function bre(e){const t=e["font-size"]||e.fontSize;return gre(t)?parseFloat(t)*Math.max(isNaN(e.lineHeight)?1.2:e.lineHeight,0):19.2}function yre(e){const t=e.maxHeight,n=Math.max(e.maxLines,1)||1/0;if(isNaN(t))return n;const r=bre(e);return Math.max(1,Math.min(Math.floor(t/r),n))}function vre(e,t){return{lines:[],line:"",width:0,maxLines:yre(e),maxWidth:e.maxWidth,hyphens:{enabled:"auto"===e.hyphens,char:"‐",metrics:t("‐")}}}function xre(e){e.lines.push(e.line),e.line="",e.width=0}function _re(e,t){e.line+=t.value,e.width+=t.width}function wre(e,t,n){if(t.width>e.maxWidth)return t;const r=t.index;for(let o=1;o<5;o++){const i=n.peek(t.index-1);if(!t.hyphenation||!i.hyphenation||0===t.index)return t;if(e.width+e.hyphens.metrics.width<=e.maxWidth)return e.line+=e.hyphens.char,t;if(1===e.line.length)return t;t=n.next(r-o),e.line=e.line.slice(0,-1),e.width-=t.width}return t}function Sre(e,t,n){const r=fre({string:t.value,measureText:n});for(;e.lines.length<e.maxLines;){let t=r.next();if(t.done)break;e.width+t.width>e.maxWidth&&2===t.breakOpportunity&&e.line.length>0?(t=e.hyphens.enabled?wre(e,t,r):t,xre(e),_re(e,t)):_re(e,t)}}function Cre(e,t){const n=fre({string:e.text,separator:"",measureText:t,noBreakAllowedIdentifiers:[(e,t)=>0===t]}),r=vre(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){xre(r),o=!1;break}1===e.breakOpportunity?xre(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?r.width+=e.width:(e=r.hyphens.enabled?wre(r,e,n):e,xre(r),_re(r,e)):_re(r,e)}return{lines:r.lines,reduced:o}}function Ere(e,t){const n=fre({string:e.text,separator:/(\s|-|\u2010)/,measureText:t}),r=vre(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){xre(r),o=!1;break}1===e.breakOpportunity?xre(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?xre(r):e.width>r.maxWidth?Sre(r,e,t):(xre(r),_re(r,e)):_re(r,e)}return{lines:r.lines,reduced:o}}function kre(e){return{"break-all":Cre,"break-word":Ere}[e.wordBreak]}function Rre(e){return t=>{const n=t.node;if(function(e){return"text"===e.type&&!e._lineBreak}(n)){const r=kre(n);if(!r)return;const o=e(n);if(o.width>n.maxWidth||ure(n.text)){const i=(bre(n)-o.height)/2,a=r(n,function(e,t){return n=>t({text:n,fontSize:e.fontSize,fontFamily:e.fontFamily})}(n,e));t.node=function(e,t,n,r){const o={type:"container",children:[]};void 0!==t.id&&(o.id=t.id);let i=0;return e.lines.forEach(((a,s)=>{const l=M2({},t);l.text=a,l._lineBreak=!0,i+=n,e.reduced&&s===e.lines.length-1?l.text+=hre:delete l.maxWidth,l.dy=isNaN(l.dy)?i:l.dy+i,i+=r,i+=n,o.children.push(l)})),o}(a,n,i,o.height)}}}}function Mre(e,t){const n=e["font-family"]||e.fontFamily,r=e["font-size"]||e.fontSize,o="string"==typeof e.text?e.text:"".concat(e.text),{maxWidth:i}=e;if(void 0===i)return o;let a=t({text:o,fontSize:r,fontFamily:n}).width;if(a<=i)return o;let s=0,l=o.length-1;for(;s<=l;){let e=Math.floor((s+l)/2);a=t({text:o.substr(0,e)+hre,fontSize:r,fontFamily:n}).width,a<=i?s=e+1:l=e-1}return o.substr(0,l)+hre}function Are(e){const t=e.baseline||e["dominant-baseline"];let n=0;const r=parseInt(e.fontSize||e["font-size"],10)||0;switch(t){case"hanging":n=.75*r;break;case"text-before-edge":n=.85*r;break;case"middle":n=.25*r;break;case"central":n=.35*r;break;case"mathemetical":n=r/2;break;case"text-after-edge":case"ideographic":n=.2*-r;break;default:n=0}return n}const Lre={},Ire={},Pre={fontSize:void 0,fontFamily:void 0};let Tre;function Dre(e,t){return!e&&!t||e===t}function Ore(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;const i="".concat(t," ").concat(n," ").concat(r," ").concat(o);return"number"!=typeof Ire[i]&&(Tre=Tre||document.createElement("canvas").getContext("2d"),function(e){let{fontWeight:t,fontSize:n,fontFamily:r}=e;Dre(Pre.fontWeight,t)&&Dre(Pre.fontSize,n)&&Dre(Pre.fontFamily,r)||(Tre.font=[t,n,r].filter((e=>!!e)).join(" "),Pre.fontWeight=t,Pre.fontSize=n,Pre.fontFamily=r)}({fontWeight:n,fontSize:r,fontFamily:o}),Ire[i]=Tre.measureText(t).width),Ire[i]}function zre(e){return"number"!=typeof Lre[e]&&(Lre[e]=function(e){if(gre(e)){const t=parseFloat(e);return t+4*Math.ceil((t+1e-12)/24)}return 16}(e)),Lre[e]}function Nre(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;return{width:Ore({text:t,fontWeight:n,fontSize:r,fontFamily:o}),height:zre(r)}}function qre(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nre;const n=e["font-size"]||e.fontSize,r=e["font-family"]||e.fontFamily,o=t({text:e.text,fontFamily:r,fontSize:n}),i=Math.min(e.maxWidth||o.width,o.width),a=e.x||0,s=e.y||0,l=e.dx||0,u={x:0,y:s+((e.dy||0)+Are(e))-.75*o.height,width:i,height:o.height},c=e["text-anchor"]||e.anchor;return u.x="middle"===c?a+l-i/2:"end"===c?a+l-i:a+l,u}function jre(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nre;const n=kre(e),r=e["font-size"]||e.fontSize,o=e["font-family"]||e.fontFamily,i=t({text:e.text,fontFamily:o,fontSize:r});if(n&&(i.width>e.maxWidth||ure(e.text))){const i=n(e,(e=>t({text:e,fontFamily:o,fontSize:r}))),a=M2({},e);let s=0,l="";for(let e=0,n=i.lines.length;e<n;e++){let a=i.lines[e];a+=e===n-1&&i.reduced?hre:"";const u=t({text:a,fontSize:r,fontFamily:o}).width;u>=s&&(s=u,l=a)}a.text=l;const u=qre(a,t);return u.height=bre(e)*i.lines.length,u}return qre(e,t)}function Fre(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function Bre(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:"start",baseline:"alphabetical",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(e.width<n.fontSize)return!1;const i=Math.max(0,e.width-o.width);return r.x=e.x+n.align*i,r.y=e.y+o.height/1.2,r}function $re(e){let{cx:t,cy:n,r:r}=e;return{type:"circle",bounds:{cx:t,cy:n,r:r}}}function Wre(e){return e.desc&&e.desc.slice?function(e){let{start:t,end:n,innerRadius:r,outerRadius:o,offset:i}=e;if(Math.abs(t+2*Math.PI-n)>1e-12)return{type:null,bounds:null};let a=0!==r?r:o;return $re({cx:i.x,cy:i.y,r:a})}(e.desc.slice):"circle"===e.type?$re(e.attrs):"rect"===e.type?{type:"rect",bounds:e.bounds}:{type:null,bounds:null}}var Hre={bar:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Une;const l=M2({fontSize:12,fontFamily:"Arial",align:.5,justify:0,fill:"#333"},a.label);l.fontSize=parseInt(l.fontSize,10);const u=t.labels.map((e=>M2({},l,t,e))),c=t.labels.map((e=>e.placements.map((n=>M2({},l,t,e,n))))),{fitsHorizontally:d,hasHorizontalDirection:p,targetNodes:f}=function(e){let{nodes:t,rect:n,chart:r,labelSettings:o,placementSettings:i,settings:a,renderer:s}=e;const l={},u=[];let c,d,p,f,h,m,g,b=!0,y=!1;for(let e=0;e<t.length;e++){if(d=t[e],f=d.localBounds,!V9(f,n))continue;let v=zne(d,r);c={node:d,texts:[],measurements:[],labelSettings:[],placementSettings:[]};for(let t=0;t<o.length;t++)m=o[t],p="function"==typeof m.label?m.label(v,e):void 0,Nne(p)&&(g="function"==typeof a.direction?a.direction(v,e):a.direction||"up",y=y||"left"===g||"right"===g,l.fontFamily=m.fontFamily,l.fontSize="".concat(m.fontSize,"px"),l.text=p,h=s.measureText(l),c.measurements.push(h),c.texts.push(p),c.labelSettings.push(m),c.placementSettings.push(i[t]),c.direction=g,b=b&&h.width<=f.width-2*One);u.push(c)}return{targetNodes:u,fitsHorizontally:b,hasHorizontalDirection:y}}({nodes:r,chart:n,renderer:i,settings:t,rect:o,labelSettings:u,placementSettings:c}),h=function(e){let{orientation:t="auto",defaultOrientation:n="h"}=e;switch(t.toLocaleLowerCase()){case"vertical":return"v";case"horizontal":return"h";default:return n}}({orientation:t.orientation,defaultOrientation:p?"h":"v"}),m="h"===h?"y":"x",g="h"===h?"height":"width";return f.sort(((e,t)=>e.node.localBounds[m]+e.node.localBounds[g]-(t.node.localBounds[m]+t.node.localBounds[g]))),s({chart:n,targetNodes:f,stngs:t,rect:o,fitsHorizontally:d,collectiveOrientation:h})},slice:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ore,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nre;const u=M2({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,position:"into"},a.label);u.fontSize=parseInt(u.fontSize,10);const c=t.labels.map((e=>M2({},u,t,e))),d=t.labels.map((e=>e.placements.map((n=>M2({},u,t,e,n))))),p=[],f={insideLabelBounds:[]};r=function(e){const t=[],n=[],r=[],o=[];for(let i=0;i<e.length;++i){const{start:a,end:s}=e[i].desc.slice,l=Yne((a+s)/2);switch(Math.floor(l/(Math.PI/2))){case 0:t.push(e[i]);break;case 1:n.push(e[i]);break;case 2:r.push(e[i]);break;case 3:o.push(e[i])}}const i=(e,t)=>Yne((e.desc.slice.start+e.desc.slice.end)/2)-Yne((t.desc.slice.start+t.desc.slice.end)/2),a=(e,t)=>i(t,e);return t.sort(a),n.sort(i),r.sort(a),o.sort(i),t.concat(n,o,r)}(r);const h={};for(let e=0,t=r.length;e<t;e++){const t=r[e],a=tre(t,n);for(let n=0;n<c.length;n++){const r=c[n],u="function"==typeof r.label?r.label(a,e):"";if(!u)continue;const m="function"==typeof r.direction?r.direction(a,e):r.direction||"horizontal",g="function"==typeof r.linkData?r.linkData(a,e):void 0,b=ire(u,r,i),y=s({context:h,direction:m,lblStngs:r,measured:b,node:t,placementSettings:d[n],rect:o,store:f}),v=y.bounds,x=y.placement;if(v&&x){if("outside"===x.position&&"rotate"!==m){ere({context:h,node:t,bounds:v});if(!P9(Xne(v),o))continue}const n="function"==typeof x.fill?x.fill(a,e):x.fill,i=l(v,u,{fill:n,fontSize:r.fontSize,fontFamily:r.fontFamily,textMetrics:b});i&&(void 0!==g&&(i.data=g),p.push(i),v.line&&(v.line.stroke=n,p.push(v.line)))}}}return p},rows:function(e){let{settings:t,chart:n,nodes:r,renderer:o,style:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bre;const s=M2({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,align:.5,justify:.5},i.label);s.fontSize=parseInt(s.fontSize,10);const l=M2({},s,t),u=t.labels.map((e=>M2({},l,e))),c={},d=[];for(let e=0,t=r.length;e<t;e++){let t=r[e],i=Fre(t,n),{type:s,bounds:p}=Wre(t);if(!p)continue;let f,h=0,m=[],g=[],b="circle"===s?2*p.r*.9:p.height;for(h+=l.padding,f=0;f<u.length;f++){let t=u[f],n="function"==typeof t.label?t.label(i,e):"";c.fontFamily=t.fontFamily,c.fontSize="".concat(t.fontSize,"px"),c.text=n;let r=o.measureText(c);if(h+=r.height+t.padding,h>b)break;g.push(n),m.push(r)}const y=f,v=Math.max(0,b-h);let x;for(x="circle"===s?p.cy-.9*p.r:p.y,x+=l.justify*v+l.padding,f=0;f<y;f++){let t,n=u[f];if("circle"===s){let e=Math.max(Math.abs(x-p.cy),Math.abs(x+m[f].height-p.cy)),n=Math.sqrt(p.r*p.r-e*e);t={x:p.cx-n+l.padding,y:x,width:2*n-2*l.padding,height:m[f].height}}else t={x:p.x+l.padding,y:x,width:p.width-2*l.padding,height:m[f].height};x+=m[f].height+l.padding;let r="function"==typeof n.fill?n.fill(i,e):n.fill;const c="function"==typeof n.linkData?n.linkData(i,e):void 0;let h=a(t,g[f],{fill:r,align:n.align,fontSize:n.fontSize,fontFamily:n.fontFamily,textMetrics:m[f]});if(h){if(h.text&&h.text!==hre){const e=Mre(h,o.measureText);if(hre===e)continue;h.ellipsed=e}void 0!==c&&(h.data=c),d.push(h)}}}return d}};const Gre={require:["chart","renderer","settings"],defaultSettings:{settings:{},style:{label:"$label"}},render(){const e=this.settings.settings,t=[];return(e.sources||[]).forEach((e=>{e.strategy&&Hre[e.strategy.type]&&e.component&&t.push(...function(e,t){let{chart:n,source:r,rect:o,renderer:i,style:a}=e;if(!n.component(r.component))return[];const s=n.findShapes(r.selector).filter((e=>e.key===r.component));return t({chart:n,settings:r.strategy.settings,nodes:s,rect:{x:0,y:0,width:o.width,height:o.height},renderer:i,style:a})}({chart:this.chart,rect:this.rect,renderer:this.renderer,source:e,style:this.style},Hre[e.strategy.type]))})),t}};const Vre={layout:{size:1,direction:"ltr",scrollOffset:0},item:{show:!0,label:{fontSize:"12px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:136,lineHeight:1.2},shape:{type:"square",size:12}},title:{show:!0,text:void 0,anchor:"start",fontSize:"16px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:156,lineHeight:1.25}};function Ure(e){let{x:t=0,y:n,item:r,globalMetrics:o,createSymbol:i,direction:a="ltr"}=e,s=r.label.displayObject,l=r.label.bounds,u=r.symbol.meta;const c="rtl"===a;let d={x:c?t+o.maxLabelBounds.width:t+o.maxSymbolSize+o.spacing,y:n,width:o.maxLabelBounds.width,height:Math.max(o.maxSymbolSize,o.maxLabelBounds.height)},p=function(e,t,n){const r=Math.max(0,e.width-t),o=Math.max(0,e.height-t);return{x:e.x+t/2+n.align*r,y:e.y+t/2+n.justify*o}}({x:c?t+o.maxLabelBounds.width+o.spacing:t,y:n,width:o.maxSymbolSize,height:d.height},u.size,{align:void 0===u.align?.5:u.align,justify:void 0===u.justify?.5:u.justify});const f=i(M2({},u,p));return delete f.collider,s.anchor=c?"end":"start",function(e,t,n){const r=n.textMetrics;if(e.height<r.height)return!1;const o=Math.max(0,e.width-r.width);t.baseline="text-before-edge";const i=Math.max(0,e.height-r.height);t.x=e.x+n.align*o,t.y=e.y+n.justify*i+.175*parseInt(t.fontSize,10)}(d,s,{textMetrics:l,fontSize:parseInt(s.fontSize,10),align:0,justify:.5}),{item:{type:"container",data:r.label.displayObject.data,children:[f,s],collider:{type:"rect",x:t,y:n,width:o.maxItemBounds.width,height:o.maxItemBounds.height}},metrics:d}}function Yre(e,t){const n=e.items.length,r=Math.ceil(n/t),o="horizontal"===e.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[o]*r+(r-1)*e.layout.margin[i]}function Kre(e,t){let n,r,o,i,{onScroll:a=()=>{}}=t,s=null,l=0;const u={itemize:t=>{n=function(e,t){let n,r,{resolved:o,dock:i}=e,a=[],s=o.items.items,l=o.symbols.items,u=o.labels.items,c=0,d=0,p=0;for(let e=0;e<s.length;e++){if(!1===s[e].show)continue;const o=void 0!==u[e].text?u[e].text:u[e].data.label||"";n=M2({},u[e],{type:"text",fontSize:"".concat(parseInt(u[e].fontSize,10),"px"),text:o,title:o}),r={symbol:{meta:l[e]},label:{displayObject:n,bounds:t.textBounds(n)}},a.push(r),c=Math.max(l[e].size,c),d=Math.max(r.label.bounds.width,d),p=Math.max(r.label.bounds.height,p)}return{items:a,globalMetrics:{spacing:8,maxSymbolSize:c,maxItemBounds:{height:Math.max(c,p),width:c+8+d},maxLabelBounds:{width:d,height:p}},layout:{margin:{vertical:void 0!==o.layout.item.vertical?o.layout.item.vertical:4,horizontal:void 0!==o.layout.item.horizontal?o.layout.item.horizontal:4},mode:o.layout.item.mode,size:o.layout.item.size,orientation:"top"===i||"bottom"===i?"horizontal":"vertical",direction:o.layout.item.direction,scrollOffset:o.layout.item.scrollOffset}}}(t,e.renderer),s=isNaN(n.layout.scrollOffset)?s:n.layout.scrollOffset},getItemsToRender:t=>{o=t.viewRect,l=u.getContentOverflow(o);const a=u.extent();s=Math.max(0,Math.min(s,l)),i=M2({},o);const c="horizontal"===u.orientation()?"x":"y";return i[c]-=s,i["x"===c?"width":"height"]=a,function(e,t,n){let{viewRect:r}=e,{itemized:o,create:i=Ure,parallels:a,createSymbol:s}=n;const l=o.layout.direction,u=o.globalMetrics,c=o.items,d="horizontal"===o.layout.orientation;let p=0;const f=[],h=u.maxItemBounds.height,m=u.maxItemBounds.width,g=o.layout.margin.vertical+h,b=o.layout.margin.horizontal+m;let y=t.x,v=t.y,x=r.x-t.x;for(let e=0;e<c.length;e++){let n=i({y:v,x:"rtl"===l?r.x+x+r.width-m-(y-t.x):y,item:c[e],globalMetrics:u,direction:l,createSymbol:s});if((d&&y>=r.x-m||!d&&v>=r.y-h)&&f.push(n.item),p++,p>=a?(p=0,d?(y+=b,v=t.y):(v+=g,y=t.x)):d?v+=g:y+=b,!d&&v>r.y+r.height)break;if(d&&y>r.x+r.width)break}return f}(t,i,{itemized:n,parallels:r,createSymbol:e.symbol})},parallelize:(e,t)=>(r=function(e,t,n){const r=n.items.length,o="horizontal"===n.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical",a=n.globalMetrics.maxItemBounds[o]*r+(r-1)*n.layout.margin[i];let s=Math.ceil(a/e);if(null!=t){const e="horizontal"===n.layout.orientation?"height":"width",r="width"===e?"horizontal":"vertical",o=n.layout.margin[r]||4,i=Math.floor((t+o)/(o+n.globalMetrics.maxItemBounds[e]));s=Math.min(s,i)}const l=isNaN(n.layout.size)?1:n.layout.size;return Math.max(1,Math.min(s,l))}(e,t,n),r),hasContentOverflow:()=>{const e="horizontal"===n.layout.orientation?"width":"height";return Yre(n,r)>o[e]},getContentOverflow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;const t="horizontal"===n.layout.orientation?"width":"height";return Math.max(0,Yre(n,r)-e[t])},getNextSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},getPrevSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},hasNext:()=>"horizontal"===u.orientation()?o.x+o.width<i.x+i.width:o.y+o.height<i.y+i.height,hasPrev:()=>"horizontal"===u.orientation()?i.x<o.x:i.y<o.y,next:()=>{u.scroll(-u.getNextSize())},prev:()=>{u.scroll(u.getPrevSize())},scroll:e=>{const t=Math.max(0,Math.min(l,s-e));t!==s&&(s=t,a())},offset:()=>s,orientation:()=>n.layout.orientation,direction:()=>n.layout.direction,extent:()=>Yre(n,r),spread:()=>function(e,t){const n=t,r="horizontal"===e.layout.orientation?"height":"width",o="width"===r?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[r]*n+(n-1)*e.layout.margin[o]}(n,r)};return u}function Xre(e){return Object.keys(e).filter((t=>e[t])).join(" ")}const Qre={up:"▲",right:"▶",down:"▼",left:"◀"};function Jre(e,t){let{size:n,isActive:r,direction:o,nav:i,attrs:a}=t,s={},l="";const u=a;i&&i.button&&("function"==typeof i.button.class?s=i.button.class({direction:o}):i.button.class&&(s=i.button.class),"function"==typeof i.button.content&&(l=i.button.content(e,{direction:o})),void 0!==i.button.tabIndex&&(u.tabindex=i.button.tabIndex));const c={width:"".concat(n,"px"),minWidth:"".concat(n,"px"),height:"".concat(n,"px")};return Object.keys(s).length||(c.border="0",c.background="none"),(!r||i&&i.disabled)&&(u.disabled="disabled"),e("button",M2({class:Xre(s),style:c},u),[l||e("span",{style:{pointerEvents:"none"}},[Qre[o]])])}function Zre(e){let t;const n={itemize:e=>{t=function(e){let{dock:t,navigation:n}=e;return{layout:{orientation:"top"===t||"bottom"===t?"vertical":"horizontal"},navigation:n}}(e)},render:r=>function(e,t,n,r){let{rect:o,itemRenderer:i}=t;if(!e||!e.renderArgs)return;e.size(o);const a=e.renderArgs[0],s="vertical"===n.layout.orientation,l="rtl"===i.direction(),u=i.hasNext(),c=i.hasPrev();if(!c&&!u)return void e.render([]);const d=s?["right","left"]:["down","up"];l&&s&&d.reverse();const p=[a("div",{style:{position:"relative",display:"flex","flex-direction":s?"column":"row","justify-content":"center",height:"100%",pointerEvents:"auto"},dir:l&&!s?"rtl":"ltr"},[Jre(a,{size:32,isActive:u,direction:d[0],attrs:{"data-action":"next","data-component-key":r.settings.key},nav:n.navigation}),Jre(a,{size:32,isActive:c,direction:d[1],attrs:{"data-action":"prev","data-component-key":r.settings.key},nav:n.navigation})])];e.render(p)}(n.renderer,r,t,e),extent:()=>32,spread:()=>64};return n}function eoe(e){let t;const n={itemize:n=>{t=function(e,t){let{resolved:n}=e;if(!1===n.title.item.show)return null;const r=M2({},n.title.item,{type:"text"});if("rtl"===n.layout.item.direction&&(r.anchor&&"start"!==r.anchor?"end"===r.anchor&&(r.anchor="start"):r.anchor="end"),void 0===n.title.settings.text){const e=t.scale.data().fields;r.text=e&&e[0]?e[0].title():""}return{displayObject:r,bounds:t.renderer.textBounds(r)}}(n,e)},render:e=>{!function(e,t,n){let{rect:r}=e;if(!t)return;const o=[];if(t.size(r),n){const e={start:0,end:r.width,middle:r.width/2};o.push(M2({},n.displayObject,{x:e[n.displayObject.anchor]||0,y:0,baseline:"text-before-edge",title:n.displayObject.text}))}t.render(o)}(e,n.renderer,t)},spread:()=>t?t.bounds.height:0,extent:()=>t?t.bounds.width:0};return n}function toe(e,t,n,r){let o,i,a,{itemRenderer:s,navigationRenderer:l,titleRenderer:u,isPreliminary:c=!1}=r,d=0;const p={x:t.spacing,y:t.spacing,width:e.width-2*t.spacing,height:e.height-2*t.spacing};if(o={x:p.x,y:p.y,width:p.width,height:u.spread()},"horizontal"===n){o={x:p.x,y:p.y,width:u.extent(),height:u.spread()};const e=p.width-o.width-(o.width?t.spacing:0),n=p.height;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0,f=s.spread(),h=r?l.spread():0;i={x:o.x+o.width+(o.width?t.spacing:0),y:p.y+Math.max(0,(h-f)/2),width:p.width-r-o.width-(r?t.spacing:0)-(o.width?t.spacing:0),height:n},a={x:i.x+i.width+(r?t.spacing:0),y:p.y,width:r,height:p.height},o.y=i.y;"rtl"===s.direction()&&(a.x=p.x,i.x=a.x+a.width+(a.width?t.spacing:0),o.x=i.x+i.width+(o.width?t.spacing:0)),d=Math.max(o.height,h,s.spread())}else{const e=p.height-o.height-(o.height?t.spacing:0),n=p.width;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0;a={x:p.x,y:p.y+p.height-r,width:p.width,height:r},i={x:p.x,y:o.y+o.height+(o.height?t.spacing:0),width:p.width,height:p.height-o.height-(o.height?t.spacing:0)-a.height-(a.height?t.spacing:0)},d=Math.max(u.extent(),r?l.spread():0,s.spread())}return i=M2({},e,{x:e.x+i.x,y:e.y+i.y,width:i.width,height:i.height}),a.x+=e.x,a.y+=e.y,o.x+=e.x,o.y+=e.y,{title:M2({},e,o),content:M2({},e,i),navigation:M2({},e,a),orientation:n,preferredSize:d}}function noe(e){e.state.resolved=function(e){const t=e.scale.domain();let n={items:[]};const r=e.settings.layout.dock;if("threshold-color"===e.scale.type){const o=e.scale.data().fields[0];let i=e=>String(e);e.settings.formatter?i=e.chart.formatter(e.settings.formatter):o&&(i=o.formatter());for(let e=0;e<t.length-1;e++){const r={value:t[e],label:"".concat(i(t[e])," - < ").concat(i(t[e+1]))};o&&(r.source={field:o.id()}),n.items.push(r)}"vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")&&n.items.reverse()}else{const r=e.scale.labels?e.scale.labels():null;n.items=t.map(((t,n)=>{const o=e.scale.datum?M2({},e.scale.datum(t)):{value:t};return o.value=t,e.scale.label?o.label=e.scale.label(t):r&&(o.label=r[n]),o}))}const o=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:M2(!0,{},Vre.title,e.style.title),settings:e.settings.settings.title}),i=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:Vre.layout,settings:e.settings.settings.layout}),a=e.resolver.resolve({data:n,defaults:M2(!0,{},Vre.item.label,e.style.item.label),settings:(e.settings.settings.item||{}).label}),s=M2(!0,{},(e.settings.settings.item||{}).shape);void 0===s.fill&&e.settings.scale&&(s.fill={scale:e.settings.scale});const l=e.resolver.resolve({data:n,defaults:M2(!0,{},Vre.item.shape,e.style.item.shape),settings:s}),u=e.resolver.resolve({data:n,defaults:M2(!0,{},{show:Vre.item.show}),settings:{show:(e.settings.settings.item||{}).show}});function c(e,n){let r=e.data.value,o=t[n+1];e.data.value=[r,o]}"threshold-color"===e.scale.type&&("vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")?(u.items.reverse().forEach(c),u.items.reverse()):u.items.forEach(c));return{title:o,labels:a,symbols:l,items:u,layout:i}}(e),e.titleRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.itemRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.navigationRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center",navigation:e.settings.settings.navigation}),e.state.display={spacing:8}}function roe(e){const{rect:t,settings:n,state:r,itemRenderer:o,navigationRenderer:i,titleRenderer:a}=e,s=n.layout.dock,l="top"===s||"bottom"===s?"horizontal":"vertical",u=toe(t,r.display,l,{itemRenderer:o,navigationRenderer:i,titleRenderer:a});e.renderer.size(u.content);let c=o.getItemsToRender({viewRect:M2({},u.content,{x:0,y:0})});return i.render({rect:u.navigation,itemRenderer:o}),a.render({rect:u.title}),e.state.views={layout:u},c}const ooe={require:["chart","settings","renderer","update","resolver","registries","symbol"],defaultSettings:{settings:{},style:{item:{label:"$label",shape:"$shape"},title:"$title"}},mounted(e){e&&e.parentNode&&(this.navigationRenderer.renderer.appendTo(e.parentNode),this.titleRenderer.renderer.appendTo(e.parentNode),e.parentNode.insertBefore(this.navigationRenderer.renderer.element(),e),e.parentNode.insertBefore(this.titleRenderer.renderer.element(),e)),this.navigationRenderer.render({rect:this.state.views.layout.navigation,itemRenderer:this.itemRenderer}),this.titleRenderer.render({rect:this.state.views.layout.title})},beforeUnmount(){this.navigationRenderer.renderer.clear(),this.titleRenderer.renderer.clear()},on:{panstart(){if(this.state.interaction.started)return;this.itemRenderer.getContentOverflow()&&(this.state.interaction.started=!0,this.state.interaction.delta=0)},panmove(e){if(!this.state.interaction.started)return;const t="horizontal"===this.itemRenderer.orientation()?("rtl"===this.itemRenderer.direction()?-1:1)*e.deltaX:e.deltaY;this.itemRenderer.scroll(t-this.state.interaction.delta),this.state.interaction.delta=t},panend(){this.state.interaction.started=!1},scroll(e){this.itemRenderer.scroll(-e)},next(){this.itemRenderer.next()},prev(){this.itemRenderer.prev()}},created(){this.state={interaction:{}},this.onScroll=()=>{const e=roe(this);this.update(e)},this.itemRenderer=Kre(this,{onScroll:this.onScroll}),this.navigationRenderer=Zre(this),this.titleRenderer=eoe(this),this.navigationRenderer.renderer=this.registries.renderer("dom")(),this.titleRenderer.renderer=this.registries.renderer(this.settings.renderer)(),noe(this)},preferredSize(e){return function(e,t){let n=0;const r=e.settings.layout.dock||"center",o="top"===r||"bottom"===r?"horizontal":"vertical",i=e.state.display,a=toe(t.inner,i,o,{itemRenderer:e.itemRenderer,navigationRenderer:e.navigationRenderer,titleRenderer:e.titleRenderer,isPreliminary:!0});return n+=i.spacing,n+=a.preferredSize,n+=i.spacing,n}(this,e)},beforeUpdate(){noe(this)},render(){return roe(this)},beforeDestroy(){this.navigationRenderer.renderer.destroy(),this.titleRenderer.renderer.destroy()},additionalElements(){return[this.titleRenderer.renderer.element(),this.navigationRenderer.renderer.element()]},_DO_NOT_USE_getInfo(){return{offset:this.itemRenderer.offset()}}};function ioe(e,t){let n=0;const r=e.state.isVertical?"justify":"align",o=e.state.isVertical?"y":"x",i=e.state.isVertical?"height":"width",a=e.state.isVertical?"requiredHeight":"requiredWidth";n=e.state.rect[i]-e.state.legend.length()-e.state.title[a](),n*=Math.min(1,Math.max(e.stgns[r],0)),t[o]+=n}function aoe(e,t,n){const r=n[e];return"object"==typeof r?-1!==r.valid.indexOf(t)?t:r.default:n.default}function soe(e){return aoe(e.layout.dock,e.settings.title.anchor,{left:{valid:["top"],default:"top"},right:{valid:["top"],default:"top"},top:{valid:["left","right"],default:"left"},bottom:{valid:["left","right"],default:"left"},default:"top"})}function loe(e,t){const n={x:0,y:0,width:0,height:0},r=e.stgns.padding;return n.x=r.left,n.y=r.top,n.width=t.width-r.left-r.right,n.height=t.height-r.top-r.bottom,n}function uoe(e){const t="top"!==e.settings.layout.dock&&"bottom"!==e.settings.layout.dock,n=e.stgns.title,r=e.chart.scale(e.stgns.fill),o=e.chart.scale(e.stgns.major),i=function(e,t){const n=t.domain();let r=n,o=e.stgns.tick.label;!o&&e.formatter?o=e.formatter:!o&&t.data().fields&&(o=t.data().fields[0].formatter()),"function"==typeof o&&(r=n.map(o).map(String));const i=n.map(((n,o)=>{const i=r[o];return{value:n,label:i,pos:t.norm(parseFloat(n,10)),textMetrics:e.renderer.measureText({text:i,fontSize:e.stgns.tick.fontSize,fontFamily:e.stgns.tick.fontFamily})}}));return i}(e,o),a=function(e){return aoe(e.layout.dock,e.settings.tick.anchor,{left:{valid:["left","right"],default:"left"},right:{valid:["left","right"],default:"right"},top:{valid:["top","bottom"],default:"top"},bottom:{valid:["top","bottom"],default:"bottom"},default:"right"})}(e.settings);if(void 0===n.text){const e=o.data().fields;n.text=e&&e[0]?e[0].title():""}const s=e.renderer.measureText({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily}),l=e.renderer.textBounds({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily,maxLines:n.maxLines,maxWidth:n.maxLengthPx,wordBreak:n.wordBreak,hyphens:n.hyphens,lineHeight:n.lineHeight}),u={isVertical:t,nodes:[],title:{anchor:soe(e.settings),textMetrics:s,textBounds:l,requiredWidth:()=>{if(!n.show)return 0;let e=l.width,r=n.maxLengthPx;return t||(e+=n.padding,r+=n.padding),Math.min(e,r,u.rect.width)},requiredHeight:()=>{if(!n.show)return 0;let e=l.height;return t&&(e+=n.padding),Math.min(e,u.rect.height)}},ticks:{values:i,anchor:a,length:Math.min(Math.max(...i.map((e=>e.textMetrics.width))),e.stgns.tick.maxLengthPx),requiredHeight:()=>"top"===a?Math.max(...u.ticks.values.map((e=>e.textMetrics.height)))+e.stgns.tick.padding:0,height:Math.max(...i.map((e=>e.textMetrics.height)))},legend:{fillScale:r,majorScale:o,length:()=>{const n=t?"height":"width",r=t?"requiredHeight":"requiredWidth",o=Math.min(u.rect[n],u.rect[n]*e.stgns.length)-u.title[r]();return Math.max(0,Math.min(o,e.stgns.maxLengthPx))}}};return u}const coe={require:["chart","settings","renderer"],defaultSettings:{layout:{displayOrder:0,dock:"right"},settings:{size:15,length:.5,maxLengthPx:250,align:.5,justify:0,padding:{left:5,right:5,top:5,bottom:5},tick:{label:null,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,anchor:null,padding:5},title:{show:!0,text:void 0,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,padding:5,maxLines:2,wordBreak:"none",lineHeight:1.2,hyphens:"auto",anchor:null}}},preferredSize(e){const t=this.state;t.rect=loe(this,e.inner);let n=this.stgns.size;const r=t.isVertical?this.stgns.padding.left+this.stgns.padding.right:this.stgns.padding.top+this.stgns.padding.bottom;n+=r;const o=Math.max(e.inner.width,e.inner.height);if("left"===t.ticks.anchor||"right"===t.ticks.anchor){const e=t.ticks.values.reduce(((e,t)=>e+t.textMetrics.height),0);if(e>this.state.legend.length())return o;n+=t.ticks.length}else{if(t.ticks.length>this.state.legend.length())return o;n+=Math.max(...t.ticks.values.map((e=>e.textMetrics.height)))}return n+=this.stgns.tick.padding,this.stgns.title.show&&(n="left"===t.title.anchor||"right"===t.title.anchor?Math.max(t.title.textBounds.height+r,n):Math.max(n,t.title.requiredWidth()+r)),this.state.preferredSize=n,n},created(){this.stgns=this.settings.settings,this.state=uoe(this)},beforeUpdate(e){this.stgns=e.settings.settings,this.state=uoe(this)},beforeRender(e){if(this.state.nodes=[],this.state.rect=loe(this,e.size),this.stgns.title.show){const e=function(e){const t=e.state,n=e.stgns,r="left"===t.ticks.anchor,o="top"===t.ticks.anchor;let i=t.rect.x,a=t.rect.y,s="start";"left"===t.title.anchor?(i+=t.title.requiredWidth()-n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0,s="end"):"right"===t.title.anchor?(i+=t.legend.length(),i+=n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0):"top"===t.title.anchor&&(i+=r?t.rect.width:0,a+=t.title.textMetrics.height,s=r?"end":"start");const l={tag:"legend-title",type:"text",x:i,y:Math.min(a,t.rect.y+t.rect.height),text:n.title.text,fill:n.title.fill,fontSize:n.title.fontSize,fontFamily:n.title.fontFamily,maxWidth:n.title.maxLengthPx,maxLines:n.title.maxLines,wordBreak:n.title.wordBreak,hyphens:n.title.hyphens,lineHeight:n.title.lineHeight,anchor:s,title:n.title.text};return ioe(e,l),l}(this);this.state.nodes.push(e)}const t=function(e){const t=e.state.legend.fillScale,n=e.state.legend.majorScale,r=t.domain().map((e=>({type:"stop",color:t(e),offset:Math.min(1,Math.max(0,n.norm(e)))})));return r.sort(((e,t)=>e.offset-t.offset))}(this),n=function(e,t){const n=e.state,r=e.stgns,o=n.rect;let i=o.x,a=o.y,s=n.isVertical?r.size:n.legend.length(),l=n.isVertical?n.legend.length():r.size;"left"===n.ticks.anchor?i+=n.rect.width-r.size:"top"===n.ticks.anchor&&(a+=n.rect.height-r.size),"top"===n.title.anchor?a+=n.title.requiredHeight():"left"===n.title.anchor&&(i+=n.title.requiredWidth());const u={type:"rect",x:i,y:a,width:s,height:l,fill:{type:"gradient",stops:t,degree:n.isVertical?90:180}};return ioe(e,u),u}(this,t),r=function(e,t){const n=e.state,r=e.stgns;let o="start";const i={type:"rect",x:t.x,y:t.y,width:n.isVertical?0:t.width,height:n.isVertical?t.height:0,fill:"transparent"},a=n.ticks.values.map((a=>{let s=0,l=0,u=0,c="alphabetical";return n.isVertical?(l=t.y+t.height*a.pos,c=0===a.pos?"text-before-edge":"text-after-edge"):s=t.x+t.width*a.pos,"right"===n.ticks.anchor?(s=t.x+r.size+r.tick.padding,i.x=t.x+t.width):"left"===n.ticks.anchor?(s=t.x-r.tick.padding,o="end"):"top"===n.ticks.anchor?(l=t.y-r.tick.padding,u-=.25*a.textMetrics.height,o=0===a.pos?"start":"end"):"bottom"===n.ticks.anchor&&(l=t.y+t.height+r.tick.padding,u=.8*a.textMetrics.height,o=0===a.pos?"start":"end",i.y=t.y+t.height),{type:"text",x:s,y:l,dx:0,dy:u,text:a.label,fontSize:r.tick.fontSize,fontFamily:r.tick.fontFamily,fill:r.tick.fill,maxWidth:n.isVertical?r.tick.maxLengthPx:Math.min(r.tick.maxLengthPx,n.legend.length()/2),anchor:o,textBoundsFn:e.renderer.textBounds,title:a.label,baseline:c}}));return{type:"container",id:"legend-seq-ticks",children:[...a,i]}}(this,n),o={id:"legend-seq-target",type:"container",children:[n,r]};this.state.nodes.push(o)},render(){return this.state.nodes}};const doe={coordinates:{minor:.5,major:.5,layerId:0,defined:!0},layers:{curve:"linear",show:!0,line:{stroke:"#ccc",strokeWidth:1,strokeLinejoin:"miter",strokeDasharray:void 0,opacity:1,show:!0,showMinor0:!0},area:{fill:"#ccc",opacity:.8,show:!0}}};function poe(e,t){let{generatorType:n,item:r,data:o,major:i,minor:a,layerObj:s,stngs:l}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const c={type:"path",points:e,generatorType:n,major:i,minor:a,layerObj:s,stngs:l,opacity:r.opacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeLinejoin:r.strokeLinejoin,fill:u||r.fill,data:o};return r.strokeDasharray&&(c.strokeDasharray=r.strokeDasharray),c}function foe(e){const{metaLayers:t,coordinates:n,layers:r,lines:o,areas:i}=function(e){let{data:t,stngs:n,rect:r,resolver:o,style:i,domain:a}=e;const{width:s,height:l}=r,u=o.resolve({data:t,defaults:doe.coordinates,settings:n.coordinates||{},scaled:{major:"vertical"===n.orientation?l:s,minor:"vertical"===n.orientation?s:l}}),c=!n.connect&&a.length>2&&("function"==typeof n.coordinates.layerId||"object"==typeof n.coordinates.layerId),d={};let p=0;for(let e=0;e<u.items.length;e++){let t=u.items[e],n=t.layerId;if(c){const e=d[n]?d[n].items[d[n].items.length-1]:null,r=e?a.indexOf(e.data.major?e.data.major.value:e.data.value):null;e&&a.indexOf(t.data.major?t.data.major.value:t.data.value)-1!==r&&d[n].items.push({dummy:!0})}d[n]=d[n]||{order:p++,id:n,items:[],dataItems:[],consumableData:{}},d[n].dataItems.push(t.data),d[n].items.push(t)}const f=Object.keys(d).map((e=>(d[e].consumableData=P2({points:d[e].dataItems},d[e].dataItems[0]),d[e]))),h={items:f.map((e=>e.consumableData))},m=n.layers||{};return{coordinates:u,metaLayers:f,layers:o.resolve({data:h,defaults:{curve:doe.layers.curve,show:doe.layers.show},settings:{curve:m.curve,show:m.show}}),lines:o.resolve({data:h,defaults:M2({},doe.layers.line,i.line),settings:m.line}),areas:o.resolve({data:h,defaults:M2({},doe.layers.area,i.area),settings:m.area})}}(e),a=[];return t.forEach(((t,s)=>{const l=r.items[s];if(!1===l.show)return;l.datum=l.data,l.data=[],l.id=t.id;const u=[],c=[];let d,p;for(let r=0;r<t.items.length;r++){if(d=t.items[r],p=d.data,!d.dummy){if(isNaN(d.major))continue;e.missingMinor0&&(d.minor0=n.settings.minor.scale?n.settings.minor.scale(p.minor0?p.minor0.value:0):0),isNaN(d.minor)||u.push(d.minor),l.data.push(d.data)}c.push(d)}const f=u.sort(((e,t)=>e-t))[Math.floor((u.length-1)/2)];a.push({layerObj:l,lineObj:o.items[s],areaObj:i.items[s],median:f,points:c,consumableData:t.consumableData})})),a}const hoe={require:["chart","resolver"],defaultSettings:{style:{area:"$shape",line:"$shape-outline"}},created(){},render(e){let{data:t}=e;const{width:n,height:r}=this.rect;this.stngs=this.settings.settings||{};const o=!this.stngs.coordinates||void 0===this.stngs.coordinates.minor0,i=foe({data:t,stngs:this.stngs,rect:this.rect,resolver:this.resolver,style:this.style,missingMinor0:o,domain:this.stngs.coordinates&&this.stngs.coordinates.major&&this.stngs.coordinates.major.scale?this.chart.scale(this.stngs.coordinates.major.scale).domain():[]});if(this.stngs.layers&&this.stngs.layers.sort){const e=i.map((e=>({id:e.layerObj.id,data:e.layerObj.data}))).sort(this.stngs.layers.sort).map((e=>e.id));i.sort(((t,n)=>e.indexOf(t.layerObj.id)-e.indexOf(n.layerObj.id)))}else i.sort(((e,t)=>e.median-t.median));return function(e,t){let{width:n,height:r,missingMinor0:o,stngs:i}=t;const a=[],s=i.layers||{};return e.forEach((e=>{const{lineObj:t,layerObj:l,areaObj:u,points:c}=e;let d={size:r,p:"y"},p={size:n,p:"x"};if("vertical"===i.orientation){const e=M2(!0,{},p);p=M2(!0,{},d),d=M2(!0,{},e)}s.area&&!1!==u.show&&a.push(poe(c,{data:e.consumableData,item:u,generatorType:"area",major:p,minor:d,layerObj:l,stngs:i})),t&&!1!==t.show&&(a.push(poe(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"1"),major:p,minor:d,layerObj:l,stngs:i},"none")),!o&&s.area&&!1!==u.show&&!1!==t.showMinor0&&a.push(poe(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"0"),major:p,minor:d,layerObj:l,stngs:i},"none")))})),a}(i,{width:n,height:r,missingMinor0:o,stngs:this.stngs})}};function moe(e,t){let n,r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"object"==typeof t.center?(n=t.center.x,r=t.center.y):(n=t.clientX,r=t.clientY);const i=n-e.state.boundingRect.left,a=r-e.state.boundingRect.top;return{x:o?Math.max(0,Math.min(i,e.rect.width)):i,y:o?Math.max(0,Math.min(a,e.rect.height)):a}}function goe(e,t){return{x:t.x+e.rect.x,y:t.y+e.rect.y}}function boe(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x,t.x)-n,height:Math.max(e.y,t.y)-r}}const yoe={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:99},settings:{brush:{components:[]}},style:{area:"$selection-area-target"}},on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaCancel(){this.cancel()}},created(){this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1}},preferredSize:()=>0,render(){},start(e){this.state.boundingRect=this.renderer.element().getBoundingClientRect();const t=moe(this,e,!1);Y9({x:0,y:0,width:this.rect.width,height:this.rect.height},t)&&(this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts,data:e.data,action:e.action||"set"})))}(this.settings),this.state.start=moe(this,e),this.state.active=!0)},move(e){var t;this.state.active&&(this.state.end=moe(this,e),function(e){if(e.state.active){const t=goe(e,e.state.start),n=goe(e,e.state.end),r=e.chart.shapesAt(boe(t,n),{components:e.state.brushConfig});e.chart.brushFromShapes(r,{components:e.state.brushConfig})}}(this),(t=this).renderer.render([M2({type:"rect"},boe(t.state.start,t.state.end),t.style.area)]))},end(){this.state.active&&(this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{Array.isArray(e.contexts)&&e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))}};function voe(e,t,n){let{renderer:r,style:o,props:i,h:a}=n;const s=function(e,t){return{tooltip:"function"==typeof e.tooltipClass?e.tooltipClass({dock:t.dock}):e.tooltipClass,content:"function"==typeof e.contentClass?e.contentClass({dock:t.dock}):e.contentClass,arrow:"function"==typeof e.arrowClass?e.arrowClass({dock:t.dock}):e.arrowClass}}(i,t),l=function(e,t,n,r){return r.content({h:e,style:n,data:t})}(a,e,o,i),u=a("div",{dir:i.direction,class:Xre(M2({"pic-tooltip":!0},s.tooltip)),style:M2({position:"relative",display:"inline-block"},t.computedTooltipStyle)},a("div",{style:o.content,class:Xre(M2({"pic-tooltip-content":!0},s.content))},l),a("div",{class:Xre(M2({"pic-tooltip-arrow":!0},s.arrow)),style:M2({},o.arrow,o["arrow-".concat(t.dock)],t.computedArrowStyle)}));return r.render(u),r.element().children[0]}function xoe(e){let{defaultDuration:t,defaultDelay:n}=e,r=null,o=null,i=!1;const a=function(){const e=function(){},t={pending:[],debounced:[],active:[],cancelled:[],rejected:[],fulfilled:[]};let n;return e.set=e=>{n=e,t[n].forEach((t=>t(e)))},e.on=(e,n)=>{Array.isArray(e)?e.forEach((e=>t[e].push(n))):t[e].push(n)},e.destroy=()=>{Object.keys(t).forEach((e=>{t[e].length=0}))},e}(),s=function(){},l=()=>{r=null,o=null,i=!1,a.set("fulfilled")};return s.invoke=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;r&&(clearTimeout(r),a.set("debounced")),a.set("pending"),r=setTimeout((()=>{e(),i=!0,r=null,a.set("active")}),u),s>0&&(o&&clearTimeout(o),o=setTimeout(l,s+Math.max(u,0)))},s.clear=()=>{i?a.set("cancelled"):r&&(clearTimeout(r),a.set("rejected")),o&&clearTimeout(o),r=null,o=null,i=!1},s.on=(e,t)=>{a.on(e,t)},s.destroy=()=>{s.clear(),a.destroy()},s}function _oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{left:"translate(-100%,-50%) translateX(".concat(-e,"px)"),right:"translate(".concat(e,"px, -50%)"),top:"translate(-50%, -100%) translateY(".concat(-e,"px)"),bottom:"translate(-50%, ".concat(e,"px)"),inside:"translate(-50%, -50%)"}}function woe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{left:{x:-e-n,y:-t/2},right:{x:n,y:-t/2},top:{x:-e/2,y:-t-n},bottom:{x:-e/2,y:n},inside:{x:-e/2,y:-t/2}}}function Soe(e,t){const n=e>0?"-":"+";return e=Math.abs(e),void 0===t&&(t=e),{left:{left:"100%",top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},right:{left:"".concat(2*-e,"px"),top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},top:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"100%",borderWidth:"".concat(t,"px")},bottom:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"".concat(2*-e,"px"),borderWidth:"".concat(t,"px")},inside:{left:"0px",top:"0px",borderWidth:"0px"}}}function Coe(e,t,n,r,o,i){const a=t+i.x,s=n+i.y,l=o;return!(a<0||s<0)&&!(a+r>e.width||s+l>e.height)}function Eoe(e){let{area:t,vx:n,vy:r,width:o,height:i,offset:a}=e;const s=n+a.x,l=r+a.y,u=o,c=i;let d=s<0?-s:0,p=l<0?-l:0;return d+=s+u>t.width?-(s+u-t.width):0,p+=l+c>t.height?-(l+c-t.height):0,{x:d,y:p}}function koe(e){let{options:t,pointer:n,width:r,height:o,dockOrder:i,x:a,y:s}=e;const{targetBounds:l}=n,u=_oe(t.offset),c=u[t.dock];if(c)return{computedTooltipStyle:{left:"".concat(a,"px"),top:"".concat(s,"px"),transform:c},computedArrowStyle:Soe(t.offset)[t.dock],dock:t.dock};const d={width:"target"===t.area?l.width:window.innerWidth,height:"target"===t.area?l.height:window.innerHeight},p=woe(r,o,t.offset),f=[],h="target"===t.area?a:l.left+a,m="target"===t.area?s:l.top+s;for(let e=0;e<i.length;e+=1){const n=i[e],l=Eoe({area:d,vx:h,vy:m,width:r,height:o,offset:p[n]}),c={left:"".concat(a,"px"),top:"".concat(s,"px"),transform:u[n]},g=Soe(t.offset)[n];0!==l.x&&(c.width="".concat(r-20-Math.abs(l.x),"px"),"top"!==n&&"bottom"!==n||(c.left="".concat(a+l.x,"px"),g.left="calc(50% ".concat(l.x>0?"-":"+"," ").concat(Math.abs(l.x),"px)")));const b={computedTooltipStyle:c,computedArrowStyle:g,dock:n,rect:{width:r,height:o}};if(0===l.x&&0===l.y)return b;b.offset=l,f.push(b)}return f.sort(((e,t)=>Math.abs(e.offset.x)-Math.abs(t.offset.x))),f[0]}function Roe(e,t,n){const r=e.key?n.component(e.key):n.componentsFromPoint({x:t.clientX,y:t.clientY})[0];if(!r)return{x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1}};const o=r.rect;return M2({scaleRatio:o.scaleRatio},o.computedInner)}const Moe={bounds:function(e){let{resources:t,nodes:n,pointer:r,width:o,height:i,options:a}=e;const{targetBounds:s}=r,{x:l,y:u,width:c,height:d}=t.getNodeBoundsRelativeToTarget(n[0]),p={left:{x:l,y:u+d/2},right:{x:l+c,y:u+d/2},top:{x:l+c/2,y:u},bottom:{x:l+c/2,y:u+d},inside:{x:l+c/2,y:u+d/2}},f=_oe(a.offset),h=f[a.dock];if(h)return{computedTooltipStyle:{left:"".concat(p[a.dock].x,"px"),top:"".concat(p[a.dock].y,"px"),transform:h},computedArrowStyle:Soe(a.offset)[a.dock],dock:a.dock};const m={width:"target"===a.area?s.width:window.innerWidth,height:"target"===a.area?s.height:window.innerHeight},g=woe(o,i,a.offset),b=["top","left","right","bottom","inside"];for(let e=0;e<b.length;e+=1){const t=b[e];if(Coe(m,"target"===a.area?p[t].x:s.left+p[t].x,"target"===a.area?p[t].y:s.top+p[t].y,o,i,g[t]))return{computedTooltipStyle:{left:"".concat(p[t].x,"px"),top:"".concat(p[t].y,"px"),transform:f[t]},computedArrowStyle:Soe(a.offset)[t],dock:t}}const y=function(e){let{options:t,docks:n,dockOffsets:r,targetBounds:o,area:i,width:a}=e;const s="top",l="target"===t.area?n[s].x:o.left+n[s].x,u=("target"===t.area?n[s].y:(o.top,n[s].y),r[s]),c=l+u.x,d=(u.y,a);let p=n.top.x;return c<0&&c+d>i.width||(c<0?p-=c:c+d>i.width&&(p-=c+d-i.width)),p}({options:a,docks:p,dockOffsets:g,targetBounds:s,area:m,width:o});return{computedTooltipStyle:{left:"".concat(y,"px"),top:"".concat(p.top.y,"px"),transform:f.top},computedArrowStyle:Soe(a.offset+y-p.top.x,a.offset).top,dock:"top"}},pointer:function(e){let{options:t,pointer:n,width:r,height:o}=e;const{x:i,y:a}=n;return koe({x:i,y:a,pointer:n,width:r,height:o,options:t,dockOrder:["top","left","right","bottom"]})},slice:function(e){let{options:t,pointer:n,width:r,height:o,nodes:i,resources:a}=e;const s=i[0],{dx:l,dy:u}=n,c=a.getComponentBoundsFromNode(s),d=l+c.x+c.width/2,p=u+c.y+c.height/2,{start:f,end:h,outerRadius:m}=s.desc.slice,g=(f+h)/2-Math.PI/2,b=2*Math.PI,y=(g%b+b)%b;let v=["top","left","right","bottom"];return"auto"===t.dock&&(v=y<=Math.PI/4||y>=7*Math.PI/4?["right","top","bottom","left"]:y<=3*Math.PI/4?["bottom","left","right","top"]:y<=5*Math.PI/4?["left","top","bottom","right"]:["top","left","right","bottom"]),koe({x:d+m*c.scaleRatio.x*Math.cos(y),y:p+m*c.scaleRatio.y*Math.sin(y),pointer:n,width:r,height:o,options:t,dockOrder:v})}};function Aoe(e,t){let{width:n,height:r}=e,{chart:o,state:i,props:a}=t;const s={resources:{formatter:o.formatter,scale:o.scale,component:o.component,getComponentBoundsFromNode:e=>Roe(e,i.pointer,o),getNodeBoundsRelativeToTarget:e=>function(e,t,n){const r=Roe(e,t,n),o=e.bounds;return{x:r.x+t.dx+o.x,y:r.y+t.dy+o.y,width:o.width,height:o.height}}(e,i.pointer,o)},nodes:i.activeNodes,pointer:i.pointer,width:n,height:r},l=typeof a.placement;if("object"===l&&"function"==typeof a.placement.fn)return a.placement.fn(s);let u={type:"pointer",offset:8,dock:"auto",area:"viewport"};"function"===l&&(u=M2(u,a.placement(s))),"object"===l&&Moe[a.placement.type]?u=M2(u,a.placement):"string"===l&&Moe[a.placement]&&(u=M2(u,{type:a.placement})),s.options=u;const c=Moe[u.type](s);let{x:d,y:p,width:f,height:h}=s.resources.getComponentBoundsFromNode(s.nodes[0]);return d+=s.pointer.dx,f+=d,p+=s.pointer.dy,h+=p,c.computedTooltipStyle.left="".concat(Math.min(Math.max(0,d,parseFloat(c.computedTooltipStyle.left)),f),"px"),c.computedTooltipStyle.top="".concat(Math.min(Math.max(0,p,parseFloat(c.computedTooltipStyle.top)),h),"px"),c}let Loe;function Ioe(){Loe=null}const Poe={duration:8e3,delay:500,filter:e=>e.filter((e=>e.data&&void 0!==e.data.value)),extract:e=>e.node.data.value,content:e=>{let{h:t,data:n}=e;return n.map((e=>t("div",{},e)))},isEqual:(e,t)=>e.length&&e.length===t.length&&e.every(((e,n)=>t[n]&&JSON.stringify(e.data)===JSON.stringify(t[n].data))),placement:{type:"pointer",dock:"auto",offset:8,area:"viewport"},tooltipClass:{},contentClass:{},arrowClass:{},direction:"ltr",appendTo:void 0,beforeShow:void 0,afterShow:void 0,beforeHide:void 0,onHide:void 0,afterHide:void 0};const Toe={require:["chart","renderer"],defaultSettings:{settings:Poe,style:{tooltip:{},content:{backgroundColor:"$gray-25",color:"$font-color--inverted",fontFamily:"$font-family",fontSize:"$font-size",lineHeight:"$line-height",borderRadius:"4px",padding:"8px",opacity:.9},arrow:{position:"absolute",width:"0px",height:"0px",borderStyle:"solid",color:"$gray-25",opacity:.9},"arrow-bottom":{borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-top":{borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-right":{borderTopColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"},"arrow-left":{borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent"}}},renderer:"dom",on:{hide(){this.hide()},show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.show(e,t)},prevent(e){this.prevent(e)}},hide(){this.dispatcher.clear(),this.state.activeNodes=[],this.state.pointer={}},show(e){let t,{nodes:n,duration:r,delay:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.state.prevent&&this.state.targetElement&&(this.state.pointer=function(e,t){let{chart:n,state:r}=t,o=0,i=0;e.center?(o+=e.center.x,i+=e.center.y):(o+=e.clientX,i+=e.clientY);const a=n.element.getBoundingClientRect(),s=r.targetElement.getBoundingClientRect(),l=o,u=i,c=a.left-s.left,d=a.top-s.top,p=o-a.left,f=i-a.top;return o-=s.left,i-=s.top,{x:o,y:i,dx:c,dy:d,cx:p,cy:f,clientX:l,clientY:u,targetBounds:s,chartBounds:a}}(e,this),t=Array.isArray(n)?this.props.filter(n):this.props.filter(this.chart.shapesAt({x:this.state.pointer.cx,y:this.state.pointer.cy})),this.props.isEqual(this.state.activeNodes,t)||(this.dispatcher.clear(),this.state.activeNodes=t,this.state.activeNodes.length&&this.dispatcher.invoke((()=>this.invokeRenderer(this.state.activeNodes)),r,o)))},prevent(e){this.state.prevent=!!e},init(e){this.state={activeNodes:[],pointer:{},targetElement:null,prevent:!1},this.props=e.settings,this.dispatcher=xoe({defaultDuration:this.props.duration,defaultDelay:this.props.delay});const t=this.dispatcher.clear;this.dispatcher.on("pending",(()=>{!function(e){Loe&&Loe!==e&&Loe()}(t),Loe=t,"function"==typeof this.props.beforeShow&&this.props.beforeShow.call(void 0,{resources:{formatter:this.chart.formatter,scale:this.chart.scale}})})),this.dispatcher.on(["cancelled","fulfilled"],(()=>{const e={resources:{formatter:this.chart.formatter,scale:this.chart.scale}};"function"==typeof this.props.beforeHide&&this.props.beforeHide.call(void 0,M2({element:this.state.tooltipElm},e)),"function"==typeof this.props.onHide?this.props.onHide.call(void 0,M2({element:this.state.tooltipElm},e)):this.renderer.clear([]),"function"==typeof this.props.afterHide&&this.props.afterHide.call(void 0,e),Loe===t&&(Loe=null),this.state.tooltipElm=void 0})),this.dispatcher.on("active",(()=>{"function"==typeof this.props.afterShow&&this.props.afterShow.call(void 0,{element:this.state.tooltipElm,resources:{formatter:this.chart.formatter,scale:this.chart.scale}})}))},created(){this.init(this.settings)},beforeUpdate(e){let{settings:t}=e;this.dispatcher&&(this.dispatcher.destroy(),Ioe()),this.init(t)},render(e){return this.h=e,[]},beforeDestroy(){this.dispatcher.destroy(),Ioe()},appendTo(){if(this.props.appendTo){this.state.targetElement="function"==typeof this.props.appendTo?this.props.appendTo({resources:{formatter:this.chart.formatter,scale:this.chart.scale}}):this.props.appendTo;const{width:e,height:t}=this.state.targetElement.getBoundingClientRect();this.renderer.destroy(),this.renderer.size({width:e,height:t}),this.renderer.appendTo(this.state.targetElement)}else this.state.targetElement=this.renderer.element()},mounted(){this.appendTo()},updated(){this.appendTo()},invokeRenderer(e){const t=function(e,t){let{chart:n,scale:r,props:o,h:i}=t;const a={resources:{dataset:n.dataset,scale:n.scale,formatter:n.formatter},scale:r,h:i},s=[];return e.forEach((e=>{if("function"==typeof o.extract){const t=M2({node:e},a);s.push(o.extract(t))}})),s}(e,this),n=Aoe(voe(t,{},this).getBoundingClientRect(),this);this.state.tooltipElm=voe(t,n,this)}};const Doe={require:["renderer","chart"],defaultSettings:{settings:{target:"",selector:"*",fill:"rgba(0, 255, 0, 0.1)",stroke:"lime",opacity:1,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes(this.props.selector).filter((e=>e.key===this.props.target)),t=e.filter((e=>e.collider)).map((e=>e.collider));t.forEach((e=>{e.fill=this.props.fill,e.stroke=this.props.stroke,e.opacity=this.props.opacity,e.collider={type:null}})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var Ooe={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zoe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Noe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function qoe(e){const t=[],n=String(e).trim();return"M"!==n[0]&&"m"!==n[0]||n.replace(zoe,((e,n,r)=>{const o=function(e){const t=e.match(Noe);return t?t.map(Number):[]}(r);let i=n.toLowerCase(),a=n;if("m"===i&&o.length>2&&(t.push([a,...o.splice(0,2)]),i="l",a="m"===a?"l":"L"),o.length<Ooe[i])return"";for(t.push([a,...o.splice(0,Ooe[i])]);o.length>=Ooe[i]&&o.length&&Ooe[i];)t.push([a,...o.splice(0,Ooe[i])]);return""})),t}const joe=2*Math.PI;function Foe(e,t){return{x:.5*(e.x+t.x),y:.5*(e.y+t.y)}}function Boe(e,t,n,r,o){const i=1-e;return i**3*t+3*i**2*e*n+3*i*e**2*r+e**3*o}function $oe(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;if(i<1||function(e,t,n,r){return Math.abs(e.x+n.x-(t.x+t.x))+Math.abs(e.y+n.y-(t.y+t.y))+Math.abs(t.x+r.x-(n.x+n.x))+Math.abs(t.y+r.y-(n.y+n.y))}(e,t,n,r)<=10)return o[o.length-1]!==e&&o.push(e),o.push(r),o;const a=Foe(e,t),s=Foe(t,n),l=Foe(n,r),u={x:Boe(.5,e.x,t.x,n.x,r.x),y:Boe(.5,e.y,t.y,n.y,r.y)},c=Foe(a,s),d=Foe(s,l);return $oe(e,a,c,u,o,i-1),$oe(u,d,l,r,o,i-1),o}function Woe(e,t,n){const{cp1:r,cp2:o}=function(e,t,n){return{cp1:{x:e.x+2/3*(t.x-e.x),y:e.y+2/3*(t.y-e.y)},cp2:{x:n.x+2/3*(t.x-n.x),y:n.y+2/3*(t.y-n.y)}}}(e,t,n);return $oe(e,r,o,n)}function Hoe(e,t,n){const r=[],o=!!e[4],i=!!e[5],a=e[3];let s,l,u,c,d=e[6],p=e[7],f=e[1],h=e[2];if("a"===e[0]&&(d+=t,p+=n),t===p&&n===p)return r;if(!f||!h)return r.push({x:d,y:p}),r;({cx:s,cy:l,rx:f,ry:h,sweepAngle:u,startAngle:c}=function(e,t,n,r,o,i,a,s,l){let u,c,d,p,f,h;const m=u9(n%360),g=Math.cos(m),b=Math.sin(m),y=(s-i)/2,v=(l-a)/2,x=g*y+b*v,_=g*v-b*y;h=x**2/(e=Math.abs(e))**2+_**2/(t=Math.abs(t))**2,h>1&&(h=Math.sqrt(h),e*=h,t*=h);const w=e*_,S=t*x,C=w**2+S**2,E=(e*t)**2-C;let k=Math.sqrt(Math.max(E/C,0));r===o&&(k=-k);const R=k*(w/t),M=k*(-S/e);p=g*R-b*M+(s+i)/2,f=b*R+g*M+(l+a)/2;const A=(x-R)/e,L=(_-M)/t,I=(-x-R)/e,P=(-_-M)/t;return u=Math.atan2(L,A),u+=u<0?joe:0,c=Math.atan2(P,I),c+=c<0?joe:0,d=c-u,!o&&u<c?d-=joe:o&&c<u&&(d+=joe),d%=joe,{startAngle:u,sweepAngle:d,cx:p,cy:f,rx:e,ry:t}}(f,h,a,o,i,d,p,t,n));const m=Math.abs(u*Math.sqrt((f**2+h**2)/2)),g=Math.ceil(m/10),b=u/g;for(let e=1;e<=g;e++){const t=(c+b*e)%joe,n=Math.cos(t),o=Math.sin(t);r.push({x:s+n*f+-o*n,y:l+o*h+n*o})}return r}function Goe(e){const t=qoe(e),n=[],r=[];let o=0,i=0,a=null,s=null,l=null,u=null;for(let e=0;e<t.length;++e){const c=t[e],d=c[0];switch("S"!==d&&"s"!==d&&"C"!==d&&"c"!==d&&(a=null,s=null),"T"!==d&&"t"!==d&&"Q"!==d&&"q"!==d&&(l=null,u=null),d){case"m":r.length&&n.push(r.splice(0));case"l":o+=c[1],i+=c[2],r.push({x:o,y:i});break;case"M":r.length&&n.push(r.splice(0));case"L":o=c[1],i=c[2],r.push({x:o,y:i});break;case"H":o=c[1],r.push({x:o,y:i});break;case"h":o+=c[1],r.push({x:o,y:i});break;case"V":i=c[1],r.push({x:o,y:i});break;case"v":i+=c[1],r.push({x:o,y:i});break;case"a":r.push(...Hoe(c,o,i)),o+=c[6],i+=c[7];break;case"A":r.push(...Hoe(c,o,i)),o=c[6],i=c[7];break;case"c":r.push(...$oe({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i},{x:c[5]+o,y:c[6]+i})),a=c[3]+o,s=c[4]+i,o+=c[5],i+=c[6];break;case"C":r.push(...$oe({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]},{x:c[5],y:c[6]})),a=c[3],s=c[4],o=c[5],i=c[6];break;case"s":null!==a&&null!==a||(a=o,s=i),r.push(...$oe({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),a=c[1]+o,s=c[2]+i,o+=c[3],i+=c[4];break;case"S":null!==a&&null!==a||(a=o,s=i),r.push(...$oe({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),a=c[1],s=c[2],o=c[3],i=c[4];break;case"Q":r.push(...Woe({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),l=c[1],u=c[2],o=c[3],i=c[4];break;case"q":r.push(...Woe({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),l=c[1]+o,u=c[2]+i,o+=c[3],i+=c[4];break;case"T":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...Woe({x:o,y:i},{x:l,y:u},{x:c[1],y:c[2]})),o=c[1],i=c[2];break;case"t":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...Woe({x:o,y:i},{x:l,y:u},{x:c[1]+o,y:c[2]+i})),o+=c[1],i+=c[2];break;case"z":case"Z":r.length&&r.push({x:r[0].x,y:r[0].y})}}return function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];Math.abs(n.x-r.x)<1e-12&&Math.abs(n.y-r.y)<1e-12&&(e.splice(t,1),t--)}}(r),n.push(r.splice(0)),n}const Voe={require:["renderer","chart"],defaultSettings:{settings:{target:"",fill:"transparent",stroke:"lime",opacity:1,radius:2,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes("path").filter((e=>e.key===this.props.target)),t=[];e.forEach((e=>{Goe(e.attrs.d).forEach((e=>{e.forEach((e=>{t.push({type:"circle",cx:e.x,cy:e.y,r:this.props.radius,fill:this.props.fill,stroke:this.props.stroke,opacity:this.props.opacity,collider:{type:null}})}))}))})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var Uoe=[function(e){e.component("box",Yee),e.component("box-marker",Yee)},function(e){e.component("point",tte),e.component("point-marker",tte)},function(e){e.component("pie",ite)},function(e){e.component("grid-line",cte)},function(e){e.component("ref-line",_te)},function(e){e.component("axis",Xte)},function(e){e.component("container",Qte)},function(e){e.component("text",ene)},function(e){e.component("scrollbar",rne)},function(e){e.component("brush-range",yne),e.component("brush-area-dir",wne)},function(e){e.component("range",kne)},function(e){e.component("brush-lasso",Pne)},function(e){e.component("labels",Gre)},function(e){e.component("legend-cat",ooe)},function(e){e.component("legend-seq",coe)},function(e){e.component("line",hoe)},function(e){e.component("brush-area",yoe)},function(e){e.component("tooltip",Toe)},function(e){e.component("debug-collider",Doe)},function(e){e.component("debug-path-to-points",Voe)}];let Yoe=class{constructor(e){this._parent=null,this._children=[],this._ancestors=null,this.type=e,this.data=null}detach(){return this._parent&&this._parent.removeChild(this),this}get parent(){return this._parent}get isBranch(){return this._children&&this._children.length}get children(){return this._children}get ancestors(){return this._ancestors||(this._ancestors=[],this.parent&&this._ancestors.push(this.parent,...this.parent.ancestors)),this._ancestors}get descendants(){let e=[];const t=this.children.length;let n,r;for(n=0;n<t;n++)r=this.children[n],e.push(r),r.children.length&&(e=[...e,...r.descendants]);return e}equals(e){const t=this.children,n=e.children;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].equals(n[e]))return!1;return!0}toJSON(){return{type:this.type,children:this.children.map((e=>e.toJSON()))}}};class Koe{constructor(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x:e,y:t,width:n,height:r,minWidth:o,minHeight:i})}set(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="rect",n>=0?(this.x=e,this.width=Math.max(n,o)):(this.x=e+Math.min(n,-o),this.width=-Math.min(n,-o)),r>=0?(this.y=t,this.height=Math.max(r,i)):(this.y=t+Math.min(r,-i),this.height=-Math.min(r,-i))}containsPoint(e){return Y9(this,e)}intersectsLine(e){return K9(this,F2(e))}intersectsRect(e){return V9(this,j2(e))}intersectsCircle(e){return F9(e,this)}intersectsPolygon(e){return G9(e,this)}intersectsGeoPolygon(e){return ree(e,this)}points(){return[{x:this.x,y:this.y},{x:this.x+this.width,y:this.y},{x:this.x+this.width,y:this.y+this.height},{x:this.x,y:this.y+this.height}]}}class Xoe{constructor(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({cx:e,cy:t,r:n,minRadius:r})}set(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="circle",this.cx=e,this.cy=t,this.r=Math.max(n,r),this.vector={x:this.cx,y:this.cy}}containsPoint(e){return j9(this,e)}intersectsLine(e){return B9(this,F2(e))}intersectsRect(e){return F9(this,j2(e))}intersectsCircle(e){return n=e,!O9(t=this)&&!O9(n)&&(t.cx-n.cx)**2+(t.cy-n.cy)**2<=(t.r+n.r)**2;var t,n}intersectsPolygon(e){return $9(this,e)}intersectsGeoPolygon(e){return eee(this,e)}points(){return[{x:this.cx,y:this.cy}]}}class Qoe{constructor(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x1:e,y1:t,x2:n,y2:r,tolerance:o})}set(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="line",this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.tolerance=Math.max(0,Math.round(o)),this.vectors=this.points(),this.zeroSize=e===n&&t===r}containsPoint(e){if(this.tolerance>0){return B9({cx:e.x,cy:e.y,r:this.tolerance},this)}return Q9(this,e)}intersectsLine(e){return X9(this,F2(e))}intersectsRect(e){return K9(j2(e),this)}intersectsCircle(e){return B9(e,this)}intersectsPolygon(e){return H9(e,this)}intersectsGeoPolygon(e){return nee(e,this)}points(){return[{x:this.x1,y:this.y1},{x:this.x2,y:this.y2}]}}class Joe{constructor(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polygon",this.vertices=e.slice(),this.edges=[],function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}(this.vertices),!(this.vertices.length<=2)){!function(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}(this.vertices),this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.vertices.length;e++)e<this.vertices.length-1&&this.edges.push([this.vertices[e],this.vertices[e+1]]),this.xMin=isNaN(this.xMin)?this.vertices[e].x:Math.min(this.xMin,this.vertices[e].x),this.xMax=isNaN(this.xMax)?this.vertices[e].x:Math.max(this.xMax,this.vertices[e].x),this.yMin=isNaN(this.yMin)?this.vertices[e].y:Math.min(this.yMin,this.vertices[e].y),this.yMax=isNaN(this.yMax)?this.vertices[e].y:Math.max(this.yMax,this.vertices[e].y);this._bounds=null,this._boundingRect=null}}containsPoint(e){return W9(this,e)}intersectsCircle(e){return $9(e,this)}intersectsLine(e){return H9(this,F2(e))}intersectsRect(e){return G9(this,j2(e))}intersectsPolygon(e){return J9(this,e)}intersectsGeoPolygon(e){return Z9(e,this)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function Zoe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Joe(...t)}function eie(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}function tie(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}class nie{constructor(){let{vertices:e=[[]]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="geopolygon",this.vertices=e.slice(),this.numPolygons=this.vertices.length,this.polygons=[],this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.numPolygons;e++)tie(this.vertices[e]),this.vertices[e].length>2&&eie(this.vertices[e]),this.polygons[e]=Zoe({vertices:this.vertices[e]}),this.xMin=isNaN(this.xMin)?this.polygons[e].xMin:Math.min(this.xMin,this.polygons[e].xMin),this.xMax=isNaN(this.xMax)?this.polygons[e].xMax:Math.max(this.xMax,this.polygons[e].xMax),this.yMin=isNaN(this.yMin)?this.polygons[e].yMin:Math.min(this.yMin,this.polygons[e].yMin),this.yMax=isNaN(this.yMax)?this.polygons[e].yMax:Math.max(this.yMax,this.polygons[e].yMax);this._bounds=null,this._boundingRect=null}containsPoint(e){return tee(this,e)}intersectsCircle(e){return eee(e,this)}intersectsLine(e){return nee(this,F2(e))}intersectsRect(e){return ree(this,j2(e))}intersectsPolygon(e){return Z9(this,e)}intersectsGeoPolygon(e){return function(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!V9(n,r)&&(U9(r,n)?q9(t,e):q9(e,t))}(this,e)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function rie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new nie(...t)}class oie{constructor(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({points:e})}set(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polyline",this.segments=[],this._points=e.slice(),this._points.length>1)for(let e=0,r=this._points.length-1;e<r;e++)t=this._points[e],n=this._points[e+1],(t.x!==n.x||t.y!==n.y)&&this.segments.push({x1:this._points[e].x,y1:this._points[e].y,x2:this._points[e+1].x,y2:this._points[e+1].y});var t,n}containsPoint(e){return this.segments.some((t=>Q9(t,e)))}intersectsCircle(e){return this.segments.some((t=>B9(e,t)))}intersectsLine(e){const t=F2(e);return this.segments.some((e=>X9(e,t)))}intersectsRect(e){const t=j2(e);return this.segments.some((e=>K9(t,e)))}intersectsPolygon(e){return this.segments.some((t=>H9(e,t)))}intersectsGeoPolygon(e){return this.segments.some((t=>nee(e,t)))}points(){return this._points}}const iie=G5();function aie(e,t){return iie.get(e)(t)}iie.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Koe(...t)})),iie.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Xoe(...t)})),iie.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Qoe(...t)})),iie.add("polygon",Zoe),iie.add("geopolygon",rie),iie.add("polyline",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new oie(...t)}));class sie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.geometries=[],e.forEach((e=>{const t=aie(e.type,e);t&&this.geometries.push(t)}))}containsPoint(e){return this.geometries.some((t=>t.containsPoint(e)))}intersectsLine(e){return this.geometries.some((t=>t.intersectsLine(e)))}intersectsRect(e){return this.geometries.some((t=>t.intersectsRect(e)))}intersectsCircle(e){return this.geometries.some((t=>t.intersectsCircle(e)))}intersectsPolygon(e){return this.geometries.some((t=>t.intersectsPolygon(e)))}intersectsGeoPolygon(e){return this.geometries.some((t=>t.intersectsGeoPolygon(e)))}}class lie{constructor(){this._elements=[[1,0,0],[0,1,0],[0,0,1]],this._stack=[]}clone(){return(new lie).multiply(this)}set(e){return this._elements=e,this}save(){return this._stack.push(this.elements),this}restore(){return this._stack.length&&(this._elements=this._stack.pop()),this}add(e){let t,n;for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]+=e;return this}translate(e,t){return this.multiply([[1,0,e],[0,1,t],[0,0,1]]),this}rotate(e){let t=Math.cos(-e),n=Math.sin(-e);return this.multiply([[t,n,0],[-n,t,0],[0,0,1]]),this}multiply(e){let t,n,r,o;if(e instanceof lie&&(e=e._elements),Array.isArray(e)){for(r=[[0,0,0],[0,0,0],[0,0,0]],t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)for(o=0;o<3;o++)r[t][n]+=this._elements[t][o]*e[o][n];this._elements=r}else for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]*=e;return this}scale(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.multiply([[e,0,0],[0,t,0],[0,0,1]]),this}transform(e,t,n,r,o,i){return this.multiply([[e,n,o],[t,r,i],[0,0,1]]),this}determinant(){let e=this._elements[0][0],t=this._elements[0][1],n=this._elements[0][2],r=this._elements[1][0],o=this._elements[1][1],i=this._elements[1][2],a=this._elements[2][0],s=this._elements[2][1],l=this._elements[2][2],u=0;return u=e*o*l+t*i*a+n*r*s-n*o*a-t*r*l-e*i*s,u}invert(){let e=this.determinant(),t=this._elements[0][0],n=this._elements[0][1],r=this._elements[0][2],o=this._elements[1][0],i=this._elements[1][1],a=this._elements[1][2],s=this._elements[2][0],l=this._elements[2][1],u=this._elements[2][2];return this._elements=[[i*u-a*l,r*l-n*u,n*a-r*i],[a*s-o*u,t*u-r*s,r*o-t*a],[o*l-i*s,s*n-t*l,t*i-n*o]],this.multiply(1/e),this}transpose(){const e=Object.create(this._elements);return this._elements=[[e[0][0],e[1][0],e[2][0]],[e[0][1],e[1][1],e[2][1]],[e[0][2],e[1][2],e[2][2]]],this}identity(){return this._elements=[[1,0,0],[0,1,0],[0,0,1]],this}toString(){return"".concat(this._elements.map((e=>e.join("\t"))).join("\n"))}isIdentity(){const e=this._elements;return 1===e[0][0]&&0===e[0][1]&&0===e[0][2]&&0===e[1][0]&&1===e[1][1]&&0===e[1][2]&&0===e[2][0]&&0===e[2][1]&&1===e[2][2]}transformPoint(e){let t,n,r=[e.x,e.y,1],o=this._elements,i=[0,0,0];for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)i[t]+=r[n]*o[t][n];return{x:i[0],y:i[1]}}transformPoints(e){let t,n,r,o,i,a=this._elements,s=[];for(o=0;o<e.length;o++){for(t=[e[o].x,e[o].y,1],i=[0,0,0],n=0;n<this._elements.length;n++)for(r=0;r<this._elements[n].length;r++)i[n]+=t[r]*a[n][r];s.push({x:i[0],y:i[1]})}return s}get elements(){const e=this._elements;return[[e[0][0],e[0][1],e[0][2]],[e[1][0],e[1][1],e[1][2]],[e[2][0],e[2][1],e[2][2]]]}}const uie=/(translate|scale|rotate|matrix)\(([0-9,.eE+-\s]+)(?:,|\s?)+\)/g;function cie(e,t){const n=t.args[0]*(Math.PI/180);if(t.args.length>2){const r=t.args[1],o=t.args[2];e.translate(r,o),e.rotate(n),e.translate(-r,-o)}else 1===t.args.length&&e.rotate(n)}function die(e,t){const n=t.args[0],r=isNaN(t.args[1])?t.args[0]:t.args[1];e.scale(n,r)}function pie(e,t){const n=t.args[0],r=isNaN(t.args[1])?0:t.args[1];e.translate(n,r)}function fie(e,t){t.args.length>=6&&e.transform(...t.args)}function hie(e,t){const n=function(e){let t,n=[];for(;null!==(t=uie.exec(e));){const e=t[2].trim(),r=-1===e.indexOf(",")?e.split(" "):e.split(",");n.push({cmd:t[1],args:r.filter((e=>e.trim().length>0)).map((e=>Number(e)))})}return n}(e);let r;for(let e=0,o=n.length;e<o;e++)r=n[e],"rotate"===r.cmd?cie(t,r):"scale"===r.cmd?die(t,r):"matrix"===r.cmd?fie(t,r):"translate"===r.cmd&&pie(t,r)}const mie={type:/^\w[\w-]+/,attr:/^\[\w(?:[\w\._-]+)?(?:[!]?=['\"][\w\s*#_-]*['\"])?\]/,universal:/^(\*)/,tag:/^\.(\w+)/},gie={type:(e,t)=>t.filter((t=>{const n=t.type;return!!n&&n.toLowerCase()===e.toLowerCase()})),attr:(e,t,n,r)=>r.filter((r=>{const o=r.attrs[e];if(!t)return void 0!==o;if(void 0===o)return!1;switch(t){case"=":return n===String(o);case"!=":return n!==String(o);default:return!1}})),universal:e=>e,tag:(e,t)=>t.filter((t=>{const n=t.tag;return!!n&&-1!==n.trim().split(/\s+/).indexOf(e.replace(".",""))}))};function bie(e,t){if(!t||!t.length||!e||"function"!=typeof gie[e.type])return[];switch(e.type){case"type":case"tag":return gie[e.type](e.value,t);case"attr":return gie[e.type](e.attribute,e.operator,e.attributeValue,t);case"universal":return gie[e.type](t);default:return[]}}var yie={find:function(e,t){const n=[],r=[];let o,i;if(t.isBranch){let a;o=function(e){const t=[];let n,r,o,i;return e.split(/\s*,\s*/).forEach((e=>{e=e.trim(),n=[];const a=t=>{o=e.match(mie[t]),o&&(i=!0,e=e.slice(o[0].length),r={type:t,value:o[0]},"attr"===t&&(o=o[0].match(/\[(\w[\w\._-]+)?(?:([!]?=)['\"]([\w\s#_-]*)['\"])?\]/),r.attribute=o[1],r.operator=o[2],r.attributeValue=o[3]),n.push(r))};for(;e&&(i=!1,o=e.match(/^\s*([>+~]|\s)\s*/),o&&(i=!0,n.push({type:" ",value:o[0]}),e=e.slice(o[0].length)),Object.keys(mie).forEach(a),n&&n.length&&t.indexOf(n)<0&&t.push(n),i););})),t}(e),i=t.descendants;for(let e=0,t=o.length;e<t;e++){a=o[e];const t=[];let n=i.slice(),s=!1;a.reverse().forEach((e=>{if(" "===e.type)return t.push(n),n=i.slice(),void(s=!1);n=bie(e,n),s=!0})),s&&t.push(n);const l=t[0].filter((e=>{let n,r=e.parent;for(let e=1;e<t.length;e++){for(n=t[e].indexOf(r);r&&n<0;)r=r.parent,n=t[e].indexOf(r);if(n<0)return!1}return!0}));r.push(l)}for(let e=0,t=r.length;e<t;e++)for(let t=0,o=r[e].length;t<o;t++)n.indexOf(r[e][t])<0&&n.push(r[e][t])}return n||[]}};function vie(e,t,n){const r=e.type;let o=e.points();n&&(o=o.every((e=>Array.isArray(e)))?o.map((e=>n.transformPoints(e))):n.transformPoints(o)),function(e,t){for(let n=0,r=e.length;n<r;n++)e[n].x/=t,e[n].y/=t}(o,t);let i=null;if("rect"===r||"bounds"===r)i=j2(o),i.type=r;else if("circle"===r)i=function(e,t){return{cx:e[0].x,cy:e[0].y,r:t}}(o,e.r),i.type=r;else if("line"===r)i=F2(o),i.type=r;else if("polygon"===r||"polyline"===r){i={type:"path",d:s9(o,"polygon"===r)}}else if("geopolygon"===r){let e="";for(let t=0;t<o.length;t++)e+=s9(o[t],!0);i={type:"path",d:e}}return i}class xie{constructor(e){this._bounds=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{x:n,y:r,width:o,height:i}=e.boundingRect?e.boundingRect(t):{x:0,y:0,width:0,height:0};return{x:n,y:r,width:o,height:i}},this._attrs=e.attrs,this._type=e.type,this._data=e.data,this._dpi=e.stage?e.stage.dpi:1,this._collider=()=>function(e,t){if(e.collider){const n=e.modelViewMatrix;return"collection"===e.colliderType?{type:"container",children:e.collider.geometries.map((e=>vie(e,t,n)))}:vie(e.collider,t,n)}return null}(e,this._dpi),this._desc=e.desc,this._tag=e.tag,this._children=()=>e.children.map((e=>new xie(e))),this._parent=()=>e.parent?new xie(e.parent):null,this._cache={elementBoundingRect:null},this._getElementBoundingRect=()=>(!this._cache.elementBoundingRect&&this.element&&(this._cache.elementBoundingRect=this.element.getBoundingClientRect()),this._cache.elementBoundingRect||{left:0,top:0})}get children(){return this._children()}get parent(){return this._parent()}get type(){return this._type}get data(){return this._data}get attrs(){return this._attrs}set element(e){this._cache.elementBoundingRect=null,this._element=e}get element(){return this._element}set key(e){this._key=e}get key(){return this._key}get bounds(){const e=this._bounds();return e.x/=this._dpi,e.y/=this._dpi,e.width/=this._dpi,e.height/=this._dpi,e}get localBounds(){return this._bounds(!1)}boundsRelativeTo(e){const t=typeof e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.bounds:this.localBounds,r=this._getElementBoundingRect();let o=r.left,i=r.top;if("object"===t&&null!==e&&"function"==typeof e.getBoundingClientRect){const{left:t=0,top:n=0}=e.getBoundingClientRect();o-=t,i-=n}return n.x+=o,n.y+=i,n}get collider(){return this._collider()}get desc(){return this._desc}get tag(){return this._tag}}function _ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new xie(...t)}class wie{constructor(e){this._node=_ie(e),this._parent=null,this._input=null}get node(){return this._node}set parent(e){this._parent=e}get parent(){return this._parent}set input(e){this._input=e}get input(){return this._input}}function Sie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new wie(...t)}function Cie(e,t){const n=e.parent;if(n&&"stage"!==n.type){t.parent=Sie(n);const e=n.parent;e&&"stage"!==e.type&&Cie(e,t.parent)}}function Eie(e,t,n){if(null===e.colliderType)return null;const r=function(e,t){let n={};if(e.modelViewMatrix)if(Array.isArray(t))n=e.inverseModelViewMatrix.transformPoints(t);else if(isNaN(t.r))Array.isArray(t.vertices)?n.vertices=e.inverseModelViewMatrix.transformPoints(t.vertices):n=e.inverseModelViewMatrix.transformPoint(t);else{const r={x:t.cx,y:t.cy};({x:n.cx,y:n.cy}=e.inverseModelViewMatrix.transformPoint(r)),n.r=t.r}else n=t;return Array.isArray(n.vertices)&&(n=n.vertices.every((e=>Array.isArray(e)))?rie(n):Zoe(n)),n}(e,n);return"frontChild"===e.colliderType?function(e,t,n){for(let r=e.descendants.length-1;r>=0;r--){const o=e.descendants[r];if(null!==o.collider&&o.collider[t](n)){const e=Sie(o);return Cie(o,e),e}}return null}(e,t,r):function(e,t,n){if(e.collider[t](n)){const t=Sie(e);return Cie(e,t),t}return null}(e,t,r)}function kie(e,t,n,r){const o=e.length;for(let i=0;i<o;i++){const o=e[i],a=Eie(o,t,r);a&&n.push(a),!o.children||a||o.collider||kie(o.children,t,n,r)}}function Rie(e,t,n){const r=e.length;for(let o=0;o<r;o++){const r=e[o];if(null!==Eie(r,t,n))return!0;if(r.children&&!r.collider)return Rie(r.children,t,n)}return!1}function Mie(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;let n={};switch(B2(e)){case"circle":return n.cx=e.cx*t,n.cy=e.cy*t,n.r=e.r,["intersectsCircle",n];case"rect":return n=q2(e).map((e=>f9(e,t))),["intersectsRect",n];case"line":return n=N2(e).map((e=>f9(e,t))),["intersectsLine",n];case"point":return n=f9(e,t),["containsPoint",n];case"polygon":return n.vertices=e.vertices.map((e=>f9(e,t))),["intersectsPolygon",n];case"geopolygon":return n.vertices=e.vertices.map((e=>e.map((e=>f9(e,t))))),["intersectsGeoPolygon",n];default:return[]}}function Aie(e,t){const[n,r]=Mie(t,e.dpi),o=[];return n&&(kie([e],n,o,r),function(e,t){for(let n=0,r=t.length;n<r;n++)t[n].input=e}(t,o)),o}function Lie(e,t){const[n,r]=Mie(t,e.dpi);return Rie([e],n,r)}class Iie extends Yoe{constructor(e){super(e),this._stage=null,this._collider={type:null,definition:null,fn:null},this._attrs={},this._node=null}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.node=e;const{data:t,desc:n,tag:r,strokeReference:o,fillReference:i}=e;var a,s;a=this.attrs,s=e,Object.keys(a9).forEach((e=>{const t=s[e];void 0!==t&&(a[a9[e]]=t)})),void 0!==t&&(this.data=t),"object"==typeof n&&(this.desc=M2(!0,{},n)),"string"==typeof r&&(this.tag=r),"string"==typeof o&&(this.strokeReference=o),"string"==typeof i&&(this.fillReference=i)}findShapes(e){return yie.find(e,this).map((e=>_ie(e)))}getItemsFrom(e){return Aie(this,e)}containsPoint(e){return Lie(this,e)}intersectsLine(e){return Lie(this,e)}intersectsRect(e){return Lie(this,e)}intersectsCircle(e){return Lie(this,e)}intersectsPolygon(e){return Lie(this,e)}intersectsGeoPolygon(e){return Lie(this,e)}resolveLocalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lie;void 0!==this.attrs.transform&&hie(this.attrs.transform,e),this.modelViewMatrix=e.clone()}resolveGlobalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lie;const t=this.ancestors;if(t.length>0)for(let n=t.length-1;n>=0;n--)t[n].resolveLocalTransform(e),e=t[n].modelViewMatrix;this.resolveLocalTransform(e)}attr(e){return this.attrs[e]}equals(e){const t=this.attrs,n=Object.keys(t),r=e.attrs,o=Object.keys(r);if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){const o=n[e];if(!Object.hasOwnProperty.call(r,o))return!1;if(t[o]!==r[o])return!1}return super.equals(e)}toJSON(){const e=super.toJSON();return e.attrs=this.attrs,e}get attrs(){return this._attrs}get stage(){return this._parent&&!this._stage?this._stage=this._parent.stage:this._parent||this._stage===this||(this._stage=null),this._stage}set modelViewMatrix(e){this._mvm=e,this._imvm=null}get modelViewMatrix(){return this._mvm}get inverseModelViewMatrix(){return this._imvm=this._imvm?this._imvm:this._mvm.clone().invert(),this._imvm}set node(e){this._node=e}get node(){return this._node}set collider(e){const t=Array.isArray(e)?"collection":e&&e.type;return"string"!=typeof t?(this._collider.type=null,this._collider.definition=null,void(this._collider.fn=null)):null!==this._collider&&this._collider.type===t&&null!==this._collider.fn?(this._collider.fn.set(e),void(this._collider.definition=e)):(this._collider.type=t,void(this._collider.definition=e))}get collider(){if(null!==this._collider.fn)return this._collider.fn;switch(this._collider.type){case"collection":this._collider.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new sie(...t)}(this._collider.definition);break;case"frontChild":return!0;case"bounds":this._collider.fn=aie("rect",this.boundingRect());break;case"line":case"rect":case"circle":case"polygon":case"geopolygon":case"polyline":this._collider.fn=aie(this._collider.type,this._collider.definition);break;default:return null}return this._collider.fn}get colliderType(){return this._collider.type}}class Pie extends Yoe{addChild(e){if(!(e&&e instanceof Yoe))throw new TypeError("Expecting a Node as argument, but got ".concat(e));if(e===this)throw new Error("Can not add itself as child!");if(e._children&&e._children.length&&this.ancestors.indexOf(e)>=0)throw new Error("Can not add an ancestor as child!");return e._parent&&e._parent!==this&&e._parent.removeChild(e),this._children.push(e),e._parent=this,e._ancestors=null,this}addChildren(e){let t,n=e?e.length:0;for(t=0;t<n;t++)this.addChild(e[t]);return this}removeChild(e){const t=this._children.indexOf(e);return t>=0&&(this._children.splice(t,1),e._parent=null,e._ancestors=null),this}removeChildren(e){let t,n;if(!this._children)return this;if(e)for(n=e.length,t=0;t<n;t++)this.removeChild(e[t]);else for(;this._children.length;)this.removeChild(this._children[0]);return this}}const Tie=Pie.prototype;class Die extends Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const{collider:t}=e,n=M2({type:null},t);this.collider=n,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}appendChildRect(e,t){if(void 0!==e.bounds){const n=this.__boundingRect[t]||{},[r,,o]=e.bounds(t),{x:i,y:a}=r,{x:s,y:l}=o,u=isNaN(n.width)?s:Math.max(s,n.width+n.x),c=isNaN(n.height)?l:Math.max(l,n.height+n.y);n.x=isNaN(n.x)?i:Math.min(i,n.x),n.y=isNaN(n.y)?a:Math.min(a,n.y),n.width=u-n.x,n.height=c-n.y,this.__boundingRect[t]=n}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.children.length;for(let n=0;n<t;n++)this.appendChildRect(this.children[n],e);return this.__boundingRect[e]=M2({x:0,y:0,width:0,height:0},this.__boundingRect[e]),this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}addChild(e){const t=Tie.addChild.call(this,e);if(this._collider&&"bounds"===this._collider.type){this.appendChildRect(e,!0);const t=M2({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}addChildren(e){const t=Tie.addChildren.call(this,e),n=e.length;if(this._collider&&"bounds"===this._collider.type&&n>0){for(let t=0;t<n;t++)this.appendChildRect(e[t],!0);const t=M2({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;if(Tie.removeChild.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=M2(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}removeChildren(e){if(Tie.removeChildren.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=M2(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}}function Oie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Die(...t)}class zie extends Die{constructor(e){super("stage"),this._stage=this,this._dpiRatio=e||1}get dpi(){return this._dpiRatio}}const Nie=Pie.prototype,qie=["x1","x2","y1","y2","id","offset","style"];class jie extends Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=qie.length;r!==o;r++)n=qie[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return Nie.addChild.call(this,e)}addChildren(e){return Nie.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return Nie.removeChild.call(this,e),this}removeChildren(e){return Nie.removeChildren.call(this,e),this}}function Fie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new jie(...t)}const Bie=Pie.prototype,$ie=["patternUnits","x","y","width","height","id"];class Wie extends Iie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=$ie.length;r!==o;r++)n=$ie[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return Bie.addChild.call(this,e)}addChildren(e){return Bie.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return Bie.removeChild.call(this,e),this}removeChildren(e){return Bie.removeChildren.call(this,e),this}}class Hie extends Iie{constructor(){super("rect"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,width:r=0,height:o=0,rx:i=0,ry:a=0,collider:s}=e,l=M2({type:"rect",x:t,y:n,width:r,height:o},s);super.set(e),r>=0?(this.attrs.x=t,this.attrs.width=r):(this.attrs.x=t+r,this.attrs.width=-r),o>=0?(this.attrs.y=n,this.attrs.height=o):(this.attrs.y=n+o,this.attrs.height=-o),i>0&&(this.attrs.rx=i),a>0&&(this.attrs.ry=a),this.collider=l,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=q2(this.attrs),n=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(t):t,[r,o,i,a]=z2(n);return this.__boundingRect[e]={x:r,y:o,width:i-r,height:a-o},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}class Gie extends Iie{constructor(){super("circle"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cx:t=0,cy:n=0,r:r=0,collider:o}=e,i=M2({type:"circle",cx:t,cy:n,r:r},o);super.set(e),this.attrs.cx=t,this.attrs.cy=n,this.attrs.r=r,this.collider=i,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.bounds(e);return this.__boundingRect[e]={x:t[0].x,y:t[0].y,width:t[2].x-t[0].x,height:t[2].y-t[0].y},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const{cx:t,cy:n,r:r,r:o}=this.attrs,i=t-r,a=n-o;let s=2*r,l=2*o,u=[{x:i,y:a},{x:i+s,y:a},{x:i+s,y:a+l},{x:i,y:a+l}];if(e&&this.modelViewMatrix){u=this.modelViewMatrix.transformPoints(u);const[t,n,r,o]=z2(u);s=r-t,l=o-n,this.__bounds[e]=[{x:t,y:n},{x:t+s,y:n},{x:t+s,y:n+l},{x:t,y:n+l}]}else this.__bounds[e]=u;return this.__bounds[e]}}class Vie extends Iie{constructor(){super("line"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x1:t=0,y1:n=0,x2:r=0,y2:o=0,collider:i}=e;super.set(e),this.attrs.x1=t,this.attrs.y1=n,this.attrs.x2=r,this.attrs.y2=o;const a={type:"line",x1:t,y1:n,x2:r,y2:o};this.collider=M2(a,i),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];let t=N2(this.attrs);e&&this.modelViewMatrix&&(t=this.modelViewMatrix.transformPoints(t));const[n,r,o,i]=z2(t),a=n!==o||r!==i;return this.__boundingRect[e]={x:n,y:r,width:a?Math.max(1,o-n):0,height:a?Math.max(1,i-r):0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}const Uie=Math.PI/2;function Yie(e,t){const n=Math.atan2(t.y-e.y,t.x-e.x);return n<0?n+2*Math.PI:n}function Kie(e,t,n){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}const Xie={step:function(e){return new j5(e,.5)},stepAfter:function(e){return new j5(e,1)},stepBefore:function(e){return new j5(e,0)},linear:g5,basis:function(e){return new C5(e)},cardinal:R5.tension(0),catmullRom:A5,monotonex:function(e){return new D5(e)},monotoney:function(e){return new O5(e)},natural:function(e){return new N5(e)}};function Qie(e){if(e.length<2)return!1;const t=e[0],n=e[e.length-1];return Math.abs(t.x-n.x)<1e-12&&Math.abs(t.y-n.y)<1e-12}class Jie extends Iie{constructor(){super("path"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super.set(e),this.segments=[],this.points=[],e.arcDatum){const t=h5();t.innerRadius(e.desc.slice.innerRadius),t.outerRadius(e.desc.slice.outerRadius),t.cornerRadius(e.desc.slice.cornerRadius);const n=t(e.arcDatum);this.attrs.d=n}else if(e.points){const{major:t,minor:n,layerObj:r,points:o,stngs:i,generatorType:a}=e,s=v5(),l=i.coordinates?i.coordinates.defined:null;s[t.p]((e=>e.major*t.size))["".concat(n.p,"1")]((e=>e.minor*n.size))["".concat(n.p,"0")]((e=>e.minor0*n.size)).curve(Xie["monotone"===r.curve?"monotone".concat(t.p):r.curve]),l?s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)&&e.defined)):s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)));const u=i.connect?o.filter(s.defined()):o,c=("area"===a?s:s[a]())(u);this.attrs.d=c}else e.d&&(this.attrs.d=e.d);if(this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null},Array.isArray(e.collider)||"object"==typeof e.collider&&void 0!==e.collider.type)this.collider=e.collider;else if(this.attrs.d){if(this.segments=Goe(this.attrs.d),this.segments.length>1&&this.segments.every((e=>Qie(e))))return void(this.collider=M2({type:"geopolygon",vertices:this.segments},e.collider));this.segments.forEach((t=>{if(t.length<=1);else if(Qie(t))this.collider=M2({type:"polygon",vertices:t},e.collider);else if("object"==typeof e.collider&&e.collider.visual){const n=this.attrs["stroke-width"]/2;this.collider=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=[],o=[];if("h"===n.forceOrientation){const t=e[0].x<e[1].x?-1:1,n=e[e.length-1].x>e[e.length-2].x?1:-1;e.unshift({x:e[0].x+t,y:e[0].y}),e.push({x:e[e.length-1].x+n,y:e[e.length-1].y})}else if("v"===n.forceOrientation){const t=e[0].y<e[1].y?-1:1,n=e[e.length-1].y>e[e.length-2].y?1:-1;e.unshift({x:e[0].x,y:e[0].y+t}),e.push({x:e[e.length-1].x,y:e[e.length-1].y+n})}const i=e.length-1;for(let n=1;n<i;n++){const a=e[n-1],s=e[n],l=e[n+1],u=Yie(s,a),c=Yie(s,l),d=(u+c)/2,p=d+Math.PI,f=Math.max(d,p),h=Math.min(d,p),m=u>c;if(1===n){const e=Yie(a,s);r.push(Kie(a,e-Uie,t)),o.unshift(Kie(a,e+Uie,t))}const g=m?f:h,b=m?h:f;if(r.push(Kie(s,g,t)),o.unshift(Kie(s,b,t)),n===i-1){const e=Yie(l,s);r.push(Kie(l,e+Uie,t)),o.unshift(Kie(l,e-Uie,t))}}return{type:"polygon",vertices:[...r,...o]}}(t,n,e.collider)}else this.collider=M2({type:"polyline",points:t},e.collider)}))}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];this.points.length||(this.segments=this.segments.length?this.segments:Goe(this.attrs.d),this.points=function(e){const t=[];let n,r=e.length;for(let o=0;o<r;o++){n=e[o];for(let e=0;e<n.length;e++)t.push(n[e])}return t}(this.segments));const t=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(this.points):this.points,[n,r,o,i]=z2(t);return this.__boundingRect[e]={x:n||0,y:r||0,width:o-n||0,height:i-r||0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}function Zie(e){let{data:t,_boundingRect:n,_textBoundsFn:r}=e;return null!=t&&(n||r)}let eae=class extends Iie{constructor(){super("text"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,dx:r=0,dy:o=0,textBoundsFn:i,text:a,title:s,collider:l,boundingRect:u,ellipsed:c}=e;super.set(e),this.attrs.x=t,this.attrs.y=n,this.attrs.dx=r,this.attrs.dy=o,this.attrs.text=a,void 0!==s&&(this.attrs.title=String(s)),"object"==typeof u?this._textBoundsFn=()=>u:"function"==typeof i&&(this._textBoundsFn=i),"string"==typeof c&&(this.ellipsed=c),this.collider=M2({type:Zie(this)?"bounds":null},l),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[t])return this.__boundingRect[t];if("function"!=typeof this._textBoundsFn)return{x:0,y:0,width:0,height:0};e=this._textBoundsFn(this.attrs);const n=q2(e),r=t&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(n):n,[o,i,a,s]=z2(r);return this.__boundingRect[t]={x:o,y:i,width:a-o,height:s-i},this.__boundingRect[t]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}};const tae=G5();function nae(e,t){return tae.get(e)(t)}tae.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Hie(...t)})),tae.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Gie(...t)})),tae.add("text",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new eae(...t)})),tae.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Vie(...t)})),tae.add("path",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Jie(...t)})),tae.add("stage",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new zie(...t)})),tae.add("container",Oie),tae.add("defs",Oie),tae.add("linearGradient",Fie),tae.add("radialGradient",Fie),tae.add("conicGradient",Fie),tae.add("stop",Fie),tae.add("pattern",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Wie(...t)}));const rae=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[{}];function n(){return t[t.length-1]}return n.save=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=n(),i={};let a="";for(let t=0;t<e.length;t++)a=e[t],void 0!==o[a]&&(i[a]=o[a]);return M2(i,r),t.push(i),n()},n.restore=function(){t.splice(t.length-1,1)},n}(["stroke","fill","strokeWidth","opacity","fontFamily","fontSize","baseline"]);function oae(e,t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n](e)}function iae(e,t,n){e.node=n[t],e.index=t}function aae(e,t,n,r){let o=!1;const i={siblings:e,node:null,index:0};for(let a=0,s=e.length;a<s;a++){if(iae(i,a,e),oae(i,r.create),o="function"==typeof i.node.disabled?i.node.disabled():i.node.disabled,o)continue;i.node=rae.save(i.node);const s=nae(i.node.type,i.node);s&&(i.node.transform&&(n.save(),hie(i.node.transform,n)),n.isIdentity()||(s.modelViewMatrix=n.clone()),t.addChild(s),i.node.children&&aae(i.node.children,s,n,r),i.node.transform&&n.restore()),rae.restore()}}function sae(e){let{items:t,stage:n,dpi:r,on:o={}}=e;return n||(n=nae("stage",r)),aae(t,n,new lie,o),n}function lae(e,t,n){const{orientation:r,degree:o,stops:i=[]}=n;let a=null;if("radial"===r){const n=t.boundingRect();a=e.createRadialGradient(n.x+n.width/2,n.y+n.height/2,1e-5,n.x+n.width/2,n.y+n.height/2,Math.max(n.width,n.height)/2)}else if("conic"===r){const t=n.startAngle||0,r=n.x||0,o=n.y||0;a=e.createConicGradient(t,r,o)}else{const r=c9(o);["x1","x2","y1","y2"].forEach((e=>{e in n&&(r[e]=n[e])}));const i=t.boundingRect();a=e.createLinearGradient(i.x+r.x1*i.width,i.y+r.y1*i.height,i.x+r.x2*i.width,i.y+r.y2*i.height)}for(let e=0,t=i.length;e<t;e++){let t=i[e];a.addColorStop(t.offset,t.color)}return a}function uae(e,t,n){return t.width=e.width,t.height=e.height,n.save(),n.fillStyle=e.fill,e.shapes.forEach((e=>{if("rect"===e.type)n.rect(e.x,e.y,e.width,e.height)})),n.fill(),n.restore(),n.createPattern(t,"repeat")}function cae(){let{x:e,y:t,width:n,height:r,scaleRatio:o,margin:i,edgeBleed:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0},edgeBleed:{left:0,right:0,top:0,bottom:0,bool:!1}};return s.x=isNaN(e)?s.x:e,s.y=isNaN(t)?s.y:t,s.width=isNaN(n)?s.width:n,s.height=isNaN(r)?s.height:r,void 0!==o&&(s.scaleRatio.x=isNaN(o.x)?s.scaleRatio.x:o.x,s.scaleRatio.y=isNaN(o.y)?s.scaleRatio.y:o.y),void 0!==i&&(s.margin.left=isNaN(i.left)?0:i.left,s.margin.top=isNaN(i.top)?0:i.top),"object"==typeof a&&["left","right","top","bottom"].forEach((e=>{!isNaN(a[e])&&a[e]>0&&(s.edgeBleed[e]=a[e],s.edgeBleed.bool=!0)})),s.computedPhysical={x:Math.round(s.margin.left+(s.x-s.edgeBleed.left)*s.scaleRatio.x),y:Math.round(s.margin.top+(s.y-s.edgeBleed.top)*s.scaleRatio.y),width:Math.round((s.width+s.edgeBleed.left+s.edgeBleed.right)*s.scaleRatio.x),height:Math.round((s.height+s.edgeBleed.top+s.edgeBleed.bottom)*s.scaleRatio.y)},s}function dae(){const e={element:()=>{},root:()=>{},settings:()=>{},appendTo:()=>{},getScene:()=>[],render:()=>!1,itemsAt:()=>[],findShapes:()=>[],clear:()=>{},destory:()=>{},size:()=>{},measureText:Nre,textBounds:jre,setKey:t=>{e.element().setAttribute("data-key",t)}};return e}function pae(e){return t=>{let{node:n}=t;"text"!==n.type||null==n.data||n.textBoundsFn||(n.textBoundsFn=e.textBounds)}}const fae=200,hae=200;class mae{constructor(e){this.targetCanvas=e,this.bufferCanvas=e.cloneNode()}updateSize(e){let t,{rect:n,dpiRatio:r,canvasBufferSize:o}=e;t=o?"function"==typeof o?o(n):o:{width:n.computedPhysical.width+2*fae,height:n.computedPhysical.height+2*hae},this.bufferCanvas.style.width="".concat(t.width,"px"),this.bufferCanvas.style.height="".concat(t.height,"px"),this.bufferCanvas.width=Math.round(t.width*r),this.bufferCanvas.height=Math.round(t.height*r)}apply(){this.targetCanvas.getContext("2d").drawImage(this.bufferCanvas,0,0)}clear(){this.bufferCanvas.width=this.bufferCanvas.width}getContext(){return this.bufferCanvas.getContext("2d")}}const gae=G5();function bae(e){return Array.isArray(e)?e:"string"==typeof e?-1!==e.indexOf(",")?e.split(","):e.split(" "):[]}function yae(e){return("undefined"==typeof window?1:window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}function vae(e,t){t.setTransform(e[0][0],e[1][0],e[0][1],e[1][1],e[0][2],e[1][2])}function xae(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Object.keys(r);for(let o=0,i=n.length;o<i;o++){let i=n[o];const a=i[0],s=i[1],l=i[2];if(a in t.attrs&&!(s in r)&&e[s]!==t.attrs[a]){const n=l?l(t.attrs[a]):t.attrs[a];"function"==typeof e[s]?e[s](n):e[s]=n}}for(let t=0,n=o.length;t<n;t++){const n=o[t];e[n]=r[n]}}function _ae(e,t,n,r){for(let o=0,i=e.length;o<i;o++){let i=e[o],a={};t.save(),i.attrs&&(i.attrs.fill||i.attrs.stroke)&&(i.attrs.fill&&"object"==typeof i.attrs.fill&&"gradient"===i.attrs.fill.type?a.fillStyle=lae(t,i,i.attrs.fill):i.attrs.fill&&"object"==typeof i.attrs.fill&&"pattern"===i.attrs.fill.type&&(a.fillStyle=r.patterns.create(i.attrs.fill)),i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"gradient"===i.attrs.stroke.type?a.strokeStyle=lae(t,i,i.attrs.stroke):i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"pattern"===i.attrs.stroke.type&&(a.strokeStyle=r.patterns.create(i.attrs.stroke))),xae(t,i,n,a),i.modelViewMatrix&&vae(i.modelViewMatrix.elements,t),gae.has(i.type)&&gae.get(i.type)(i.attrs,{g:t,doFill:"fill"in i.attrs&&"none"!==i.attrs.fill,doStroke:"stroke"in i.attrs&&0!==i.attrs["stroke-width"],ellipsed:i.ellipsed}),i.children&&_ae(i.children,t,n,r),t.restore()}}function wae(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sae;const r={transform:void 0,canvasBufferSize:void 0,progressive:void 0};let o,i=!1,a=cae();const s=[["fill","fillStyle"],["stroke","strokeStyle"],["opacity","globalAlpha"],["globalAlpha","globalAlpha"],["stroke-width","lineWidth"],["stroke-linejoin","lineJoin"],["stroke-dasharray","setLineDash",bae]];let l;const u=dae();return u.element=()=>e,u.root=()=>e,u.settings=e=>(e&&Object.keys(r).forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r),u.appendTo=n=>(e||(e=n.ownerDocument.createElement("canvas"),e.style.position="absolute",e.style["-webkit-font-smoothing"]="antialiased",e.style["-moz-osx-font-smoothing"]="antialiased",e.style.pointerEvents="none"),"function"!=typeof r.transform||t||(t=new mae(e)),n.appendChild(e),e),u.getScene=r=>{const o=yae(t&&t.getContext()||e.getContext("2d")),i=a.scaleRatio.x,s=a.scaleRatio.y,l={type:"container",children:r,transform:a.edgeBleed.bool?"translate(".concat(a.edgeBleed.left*o*i,", ").concat(a.edgeBleed.top*o*s,")"):""};return 1===o&&1===i&&1===s||(l.transform+="scale(".concat(o*i,", ").concat(o*s,")")),n({items:[l],dpi:o,on:{create:[Rre(u.measureText),pae(u)]}})},u.render=n=>{if(!e)return!1;l||(l=function(e){const t=e.createElement("canvas"),n=t.getContext("2d");let r={};return{create(e){const o=e.key;return o?(r[o]=r[o]||uae(e,t,n),r[o]):uae(e,t,n)},clear(){r={}}}}(e.ownerDocument));const c=t&&t.getContext()||e.getContext("2d"),d=yae(c),p=t&&r.transform();if(p)return e.width=e.width,function(e){let{el:t,dpiRatio:n,transform:r}=e;if("object"==typeof r){const e=[r.horizontalScaling,r.horizontalSkewing,r.verticalSkewing,r.verticalScaling,r.horizontalMoving*n,r.verticalMoving*n];t.getContext("2d").setTransform(...e)}}({el:e,dpiRatio:d,transform:p}),t.apply(),!0;i&&(e.style.left="".concat(a.computedPhysical.x,"px"),e.style.top="".concat(a.computedPhysical.y,"px"),e.style.width="".concat(a.computedPhysical.width,"px"),e.style.height="".concat(a.computedPhysical.height,"px"),e.width=Math.round(a.computedPhysical.width*d),e.height=Math.round(a.computedPhysical.height*d),t&&t.updateSize({rect:a,dpiRatio:d,canvasBufferSize:r.canvasBufferSize}));const f=u.getScene(n),h=!o||!f.equals(o);l.clear();const m=i||h,g="function"==typeof r.progressive&&r.progressive();return m&&(g&&!g.isFirst||u.clear(),_ae(f.children,c,s,{patterns:l})),t&&(e.width=e.width,t.apply()),i=!1,g&&!g.isFirst&&f.children.unshift(...o.children),o=f,m},u.itemsAt=e=>o?o.getItemsFrom(e):[],u.findShapes=e=>o?o.findShapes(e):[],u.clear=()=>(e&&(e.width=e.width),t&&t.clear(),o=null,u),u.size=e=>{if(e){const t=cae(e);JSON.stringify(a)!==JSON.stringify(t)&&(i=!0,a=t)}return a},u.destroy=()=>{e&&(e.parentElement&&e.parentElement.removeChild(e),e=null),t&&(t=null),o=null},u}function Sae(e,t){gae.add(e,t)}function Cae(e,t){return Math.max(0,Math.min(e,t))}const Eae=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),kae=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Rae=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function Mae(e){return Eae.test(e)}function Aae(e){return kae.test(e)||Rae.test(e)}function Lae(e){let t,n,r=e?e.length:0;for(t=0;t<r;t++){if(n=e[t],Mae(n))return"ltr";if(Aae(n))return"rtl"}return"ltr"}const Iae={start:"end",end:"start",center:"center",middle:"middle"};function Pae(e,t){return"rtl"===t?Iae[e]:e}function Tae(e,t){const n=[];let r;const o=[],i=[],a=[];let s,l;const u=e=>e.id,c=(e,t)=>{let n;return n="object"==typeof e?"id"in e?e.id:t:e,{content:e,id:"".concat(n,"__").concat(e.type||"")}};e.isTree||(e=e.map(c)),t=t.map(c),s=e.map(u),l=t.map(u);for(let e=0,r=t.length;e<r;e++){-1===s.indexOf(t[e].id)?n.push(t[e]):i.push(t[e])}for(let t=0,n=e.length;t<n;t++){-1===l.indexOf(e[t].id)?o.push(e[t]):a.push(e[t])}for(let e=0,t=n.length;e<t;e++)n[e].content.children&&(n[e].diff=Tae([],n[e].content.children),n[e].children=n[e].diff.updatedNew.concat(n[e].diff.added),n[e].children.isTree=!0);for(let e=0,t=i.length;e<t;e++)i[e].diff=Tae(a[e].children||[],i[e].content.children||[]),i[e].object=a[e].object,i[e].children=i[e].diff.items;return r=i.concat(n),n.isTree=!0,o.isTree=!0,i.isTree=!0,a.isTree=!0,r.isTree=!0,{added:n,updatedNew:i,updatedOld:a,removed:o,items:r}}function Dae(e,t,n){for(let r=0,o=e.length;r<o;r++)e[r].object=n(e[r].content.type,t)}function Oae(e,t){for(let n=0,r=e.length;n<r;n++)null!==e[n].object&&void 0!==e[n].object&&(t(e[n].object),e[n].object=null)}function zae(e,t,n,r){let o;for(let i=0,a=e.length;i<a;i++)o=e[i],null!==o.object&&void 0!==o.object&&(n(o.object,o.content),o.diff&&(Dae(o.diff.added,o.object,t),Oae(o.diff.removed,r),zae(o.diff.items,t,n,r)))}function Nae(e,t,n,r,o,i){const a=Tae(e,t);return Dae(a.added,n,r),Oae(a.removed,i),zae(a.items,r,o,i),a.items}Sae("rect",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),e.rx>0||e.ry>0?function(e,t,n,r,o,i,a){i=Cae(r/2,i>0?i:a),a=Cae(o/2,a>0?a:i),e.moveTo(t,n+a),e.lineTo(t,n+o-a),e.quadraticCurveTo(t,n+o,t+i,n+o),e.lineTo(t+r-i,n+o),e.quadraticCurveTo(t+r,n+o,t+r,n+o-a),e.lineTo(t+r,n+a),e.quadraticCurveTo(t+r,n,t+r-i,n),e.lineTo(t+i,n),e.quadraticCurveTo(t,n,t,n+a)}(n,e.x,e.y,e.width,e.height,e.rx,e.ry):n.rect(e.x,e.y,e.width,e.height),r&&n.fill(),o&&n.stroke()})),Sae("circle",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),n.moveTo(e.cx+e.r,e.cy),n.arc(e.cx,e.cy,e.r,0,2*Math.PI,!1),r&&n.fill(),o&&n.stroke()})),Sae("line",(function(e,t){let{g:n,doStroke:r}=t;n.beginPath(),n.moveTo(e.x1,e.y1),n.lineTo(e.x2,e.y2),r&&n.stroke()})),Sae("path",(function(e,t){let{g:n,doStroke:r,doFill:o}=t;const i=new Path2D(e.d);o&&n.fill(i),r&&n.stroke(i)})),Sae("text",(function(e,t){let{g:n,ellipsed:r,doStroke:o}=t;const i=r||Mre(e,Nre);n.font=[e["font-style"],e["font-weight"],e["font-size"],e["font-family"]].filter((e=>!!e)).join(" ");const a=Lae(e.text);n.canvas.dir!==a&&(n.canvas.dir=a);const s=Pae("middle"===e["text-anchor"]?"center":e["text-anchor"],n.canvas.dir);s&&n.textAlign!==s&&(n.textAlign=s);const l=Are(e);n.fillText(i,e.x+e.dx,e.y+e.dy+l),o&&n.strokeText(i,e.x+e.dx,e.y+e.dy+l)}));const qae="http://www.w3.org/2000/svg",jae=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Invalid type: ".concat(e));const n=t.ownerDocument.createElementNS(qae,"container"===e?"g":e);return t.appendChild(n),n},Fae=e=>{e.parentNode&&e.parentNode.removeChild(e)},Bae=(e,t)=>{if((e=>{switch(e.type){case"circle":return!isNaN(e.attrs.cx)&&!isNaN(e.attrs.cy)&&!isNaN(e.attrs.r);case"line":return!(isNaN(e.attrs.x1)||isNaN(e.attrs.y1)||isNaN(e.attrs.x2)||isNaN(e.attrs.y2));case"rect":return!(isNaN(e.attrs.x)||isNaN(e.attrs.y)||isNaN(e.attrs.width)||isNaN(e.attrs.height));case"text":return!isNaN(e.attrs.x)&&!isNaN(e.attrs.y);default:return!0}})(t)){for(const n in t.attrs)if("stroke"===n&&t.strokeReference)e.setAttribute("stroke",t.strokeReference);else if("fill"===n&&t.fillReference)e.setAttribute("fill",t.fillReference);else if("text"===n){e.setAttribute("style","white-space: pre"),e.textContent=t.ellipsed||Mre(t.attrs,Nre);const n=Lae(t.attrs.text);"rtl"===n&&(e.setAttribute("direction","rtl"),e.setAttribute("dir","rtl"),e.setAttribute("text-anchor",Pae(e.getAttribute("text-anchor"),n)))}else if("text"!==t.type||"dy"!==n&&"dominant-baseline"!==n)if("text"===t.type&&"title"===n&&t.attrs.title){const n=e.ownerDocument.createElementNS(qae,"title");n.textContent=t.attrs.title,e.appendChild(n)}else e.setAttribute(n,t.attrs[n]);else{const r=+e.getAttribute(n)||0;let o=0;o="dominant-baseline"===n?Are(t.attrs):t.attrs[n],e.setAttribute("dy",o+r)}if("string"==typeof t.data||"number"==typeof t.data||"boolean"==typeof t.data)e.setAttribute("data",t.data);else if("object"==typeof t.data&&null!==t.data)for(const n in t.data)"string"!=typeof t.data[n]&&"number"!=typeof t.data[n]&&"boolean"!=typeof t.data[n]||e.setAttribute("data-".concat(n),t.data[n])}};class $ae{constructor(e,t,n,r){this.create=e,this.nodeCreator=t,this.nodeMaintainer=n,this.nodeDestroyer=r}render(e,t){return this.create([],e,t,this.nodeCreator,this.nodeMaintainer,this.nodeDestroyer)}}function Wae(){return new $ae(Nae,jae,Bae,Fae)}function Hae(e){let t,n,r,o=0;if(0===(e=JSON.stringify(e)).length)return o;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o&=o;return o}function Gae(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qae,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sae;const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wae)();let r,o,i,a=!1,s=cae();const l={transform:void 0,disableScreenReader:!1},u=dae(),c={type:"defs",children:[]},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hae,n={},r=Date.now();const o={onCreate(o){let i={};o.node&&"object"==typeof o.node.fill&&"pattern"===o.node.fill.type&&o.node.fill.shapes&&(i.fill=o.node.fill),o.node&&"object"==typeof o.node.stroke&&"pattern"===o.node.stroke.type&&o.node.stroke.shapes&&(i.stroke=o.node.stroke),Object.keys(i).forEach((a=>{let s="";const l=i[a],u=t(l),c="picasso-pattern-".concat(r,"-").concat(u);if("undefined"!=typeof window&&(s=window.location.href.split("#")[0]),!n[u]){const t={patternUnits:"userSpaceOnUse",x:0,y:0,width:l.width,height:l.height,type:"pattern",id:c,children:[],fill:l.fill};l.shapes.forEach((e=>{t.children.push(e)})),e.push(t),n[u]=!0}o.node["".concat(a,"Reference")]="url('".concat(s,"#").concat(c,"')")}))},clear(){n={}}};return o}(c.children),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hae,n={},r=Date.now();const o={getOrCreateGradient(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=t(o[i]),l="picasso-gradient-".concat(r,"-").concat(s);if(!n[s]){let{orientation:t,degree:r,stops:a=[]}=o[i],u={};void 0===r&&(r=90),"radial"===t?u.type="radialGradient":(u=c9(r),["x1","x2","y1","y2"].forEach((e=>{e in o[i]&&(u[e]=o[i][e])})),u.type="linearGradient"),u.id=l,u.children=a.map((e=>{let{offset:t,color:n,opacity:r}=e;return{type:"stop",offset:"".concat(100*t,"%"),style:"stop-color:".concat(n,";stop-opacity:").concat(void 0!==r?r:1)}})),e.push(u),n[s]=l}return"url('".concat(a,"#").concat(l,"')")},onCreate(e){let t="";"undefined"!=typeof window&&(t=window.location.href.split("#")[0]);const n=e.node;n.fill&&"object"==typeof n.fill&&"gradient"===n.fill.type&&(n.fillReference=o.getOrCreateGradient(n,"fill",t)),n.stroke&&"object"==typeof n.stroke&&"gradient"===n.stroke.type&&(n.strokeReference=o.getOrCreateGradient(n,"stroke",t))},clear(){n={}}};return o}(c.children);return u.element=()=>r,u.root=()=>o,u.settings=e=>(e&&Object.keys(l).forEach((t=>{void 0!==e[t]&&(l[t]=e[t])})),l),u.appendTo=t=>(r||(r=t.ownerDocument.createElementNS(e,"svg"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none",r.setAttribute("xmlns",e),o=t.ownerDocument.createElementNS(e,"g"),o.style.pointerEvents="auto",r.appendChild(o)),t.appendChild(r),r),u.getScene=e=>{const n=s.scaleRatio.x,r=s.scaleRatio.y,o={type:"container",children:Array.isArray(e)?[...e,c]:e,transform:s.edgeBleed.bool?"translate(".concat(s.edgeBleed.left*n,", ").concat(s.edgeBleed.top*r,")"):""};return 1===n&&1===r||(o.transform+="scale(".concat(n,", ").concat(r,")")),t({items:[o],on:{create:[e=>{e.node.fillReference=void 0,e.node.strokeReference=void 0},p.onCreate,d.onCreate,Rre(u.measureText),pae(u)]}})},u.render=e=>{if(!r)return!1;const t="function"==typeof l.transform&&l.transform();if(t){const{horizontalScaling:e,horizontalSkewing:n,verticalSkewing:r,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return o.style.transform="matrix(".concat(e,", ").concat(n,", ").concat(r,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}o.style.transform="";l.disableScreenReader&&r.setAttribute("aria-hidden",!0),a&&(r.style.left="".concat(s.computedPhysical.x,"px"),r.style.top="".concat(s.computedPhysical.y,"px"),r.setAttribute("width",s.computedPhysical.width),r.setAttribute("height",s.computedPhysical.height)),p.clear(),d.clear(),c.children.length=0;const f=u.getScene(e),h=!i||!f.equals(i),m=a||h;return m&&(u.clear(),n.render(f.children,o)),a=!1,i=f,m},u.itemsAt=e=>i?i.getItemsFrom(e):[],u.findShapes=e=>i?i.findShapes(e):[],u.clear=()=>{if(!o)return u;i=null;const e=o.cloneNode(!1);return r.replaceChild(e,o),o=e,u},u.destroy=()=>{r&&r.parentNode&&r.parentNode.removeChild(r),r=null,o=null},u.size=e=>{if(e){const t=cae(e);JSON.stringify(s)!==JSON.stringify(t)&&(a=!0,s=t)}return s},u}var Vae,Uae,Yae,Kae,Xae,Qae,Jae,Zae={},ese=[],tse=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function nse(e,t){for(var n in t)e[n]=t[n];return e}function rse(e){var t=e.parentNode;t&&t.removeChild(e)}function ose(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Vae.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return ise(e,a,r,o,null)}function ise(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Yae:o};return null==o&&null!=Uae.vnode&&Uae.vnode(i),i}function ase(e){return e.children}function sse(e,t){this.props=e,this.context=t}function lse(e,t){if(null==t)return e.__?lse(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?lse(e):null}function use(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return use(e)}}function cse(e){(!e.__d&&(e.__d=!0)&&Kae.push(e)&&!dse.__r++||Xae!==Uae.debounceRendering)&&((Xae=Uae.debounceRendering)||Qae)(dse)}function dse(){var e,t,n,r,o,i,a,s;for(Kae.sort(Jae);e=Kae.shift();)e.__d&&(t=Kae.length,r=void 0,o=void 0,a=(i=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=nse({},i)).__v=i.__v+1,xse(s,i,o,n.__n,void 0!==s.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?lse(i):a,i.__h),_se(r,i),i.__e!=a&&use(i)),Kae.length>t&&Kae.sort(Jae));dse.__r=0}function pse(e,t,n,r,o,i,a,s,l,u){var c,d,p,f,h,m,g,b=r&&r.__k||ese,y=b.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(f=n.__k[c]=null==(f=t[c])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?ise(null,f,null,null,f):Array.isArray(f)?ise(ase,{children:f},null,null,null):f.__b>0?ise(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=b[c])||p&&f.key==p.key&&f.type===p.type)b[c]=void 0;else for(d=0;d<y;d++){if((p=b[d])&&f.key==p.key&&f.type===p.type){b[d]=void 0;break}p=null}xse(e,f,p=p||Zae,o,i,a,s,l,u),h=f.__e,(d=f.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,f),g.push(d,f.__c||h,f)),null!=h?(null==m&&(m=h),"function"==typeof f.type&&f.__k===p.__k?f.__d=l=fse(f,l,e):l=hse(e,f,p,b,h,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=lse(p))}for(n.__e=m,c=y;c--;)null!=b[c]&&("function"==typeof n.type&&null!=b[c].__e&&b[c].__e==n.__d&&(n.__d=mse(r).nextSibling),Cse(b[c],b[c]));if(g)for(c=0;c<g.length;c++)Sse(g[c],g[++c],g[++c])}function fse(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?fse(r,t,n):hse(n,r,r,o,r.__e,t));return t}function hse(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function mse(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=mse(n)))return r;return null}function gse(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||tse.test(t)?n:n+"px"}function bse(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||gse(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||gse(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?vse:yse,i):e.removeEventListener(t,i?vse:yse,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function yse(e){return this.l[e.type+!1](Uae.event?Uae.event(e):e)}function vse(e){return this.l[e.type+!0](Uae.event?Uae.event(e):e)}function xse(e,t,n,r,o,i,a,s,l){var u,c,d,p,f,h,m,g,b,y,v,x,_,w,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=Uae.__b)&&u(t);try{e:if("function"==typeof C){if(g=t.props,b=(u=C.contextType)&&r[u.__c],y=u?b?b.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in C&&C.prototype.render?t.__c=c=new C(g,y):(t.__c=c=new sse(g,y),c.constructor=C,c.render=Ese),b&&b.sub(c),c.props=g,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=C.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=nse({},c.__s)),nse(c.__s,C.getDerivedStateFromProps(g,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==C.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),v=0;v<c._sb.length;v++)c.__h.push(c._sb[v]);c._sb=[],c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(p,f,h)}))}if(c.context=y,c.props=g,c.__P=e,x=Uae.__r,_=0,"prototype"in C&&C.prototype.render){for(c.state=c.__s,c.__d=!1,x&&x(t),u=c.render(c.props,c.state,c.context),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[]}else do{c.__d=!1,x&&x(t),u=c.render(c.props,c.state,c.context),c.state=c.__s}while(c.__d&&++_<25);c.state=c.__s,null!=c.getChildContext&&(r=nse(nse({},r),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(p,f)),S=null!=u&&u.type===ase&&null==u.key?u.props.children:u,pse(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=wse(n.__e,t,n,r,o,i,a,l);(u=Uae.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),Uae.__e(e,t,n)}}function _se(e,t){Uae.__c&&Uae.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Uae.__e(e,t.__v)}}))}function wse(e,t,n,r,o,i,a,s){var l,u,c,d=n.props,p=t.props,f=t.type,h=0;if("svg"===f&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,i[h]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),i=null,s=!1}if(null===f)d===p||s&&e.data===p||(e.data=p);else{if(i=i&&Vae.call(e.childNodes),u=(d=n.props||Zae).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||bse(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||bse(e,i,t[i],n[i],r)}(e,p,d,o,s),c)t.__k=[];else if(h=t.props.children,pse(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==f,i,a,i?i[0]:n.__k&&lse(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&rse(i[h]);s||("value"in p&&void 0!==(h=p.value)&&(h!==e.value||"progress"===f&&!h||"option"===f&&h!==d.value)&&bse(e,"value",h,d.value,!1),"checked"in p&&void 0!==(h=p.checked)&&h!==e.checked&&bse(e,"checked",h,d.checked,!1))}return e}function Sse(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Uae.__e(e,n)}}function Cse(e,t,n){var r,o;if(Uae.unmount&&Uae.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Sse(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Uae.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Cse(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||rse(e.__e),e.__=e.__e=e.__d=void 0}function Ese(e,t,n){return this.constructor(e,n)}function kse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createElement:t=document.createElement.bind(document)}=e;let n,r,o=cae();const i={transform:void 0,disableScreenReader:!1},a=dae();return a.element=()=>n,a.root=()=>n,a.settings=e=>(e&&Object.keys(i).forEach((t=>{void 0!==e[t]&&(i[t]=e[t])})),i),a.appendTo=e=>(n||(n=t("div"),n.style.position="absolute",n.style["-webkit-font-smoothing"]="antialiased",n.style["-moz-osx-font-smoothing"]="antialiased",n.style.pointerEvents="none"),e.appendChild(n),n),a.render=e=>{if(!n)return!1;const t="function"==typeof i.transform&&i.transform();if(t){const{horizontalScaling:e,horizontalSkewing:r,verticalSkewing:o,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return n.style.transform="matrix(".concat(e,", ").concat(r,", ").concat(o,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}n.style.transform="";let a;return i.disableScreenReader&&n.setAttribute("aria-hidden",!0),n.style.left="".concat(o.computedPhysical.x,"px"),n.style.top="".concat(o.computedPhysical.y,"px"),n.style.width="".concat(o.computedPhysical.width,"px"),n.style.height="".concat(o.computedPhysical.height,"px"),a=Array.isArray(e)?ose("div",null,e):e,r=function(e,t,n){var r,o,i;Uae.__&&Uae.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],xse(t,e=(!r&&n||t).__k=ose(ase,null,[e]),o||Zae,Zae,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Vae.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),_se(i,e)}(a,n,r),!0},a.renderArgs=[ose],a.clear=()=>{if(n){let e=n.firstChild;for(;e;)n.removeChild(e),e=n.firstChild;r=null}return a},a.destroy=()=>{n&&n.parentElement&&n.parentElement.removeChild(n),n=null,r=null},a.size=e=>(e&&(o=cae(e)),o),a}Vae=ese.slice,Uae={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},Yae=0,sse.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nse({},this.state),"function"==typeof e&&(e=e(nse({},n),this.props)),e&&nse(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),cse(this))},sse.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cse(this))},sse.prototype.render=ase,Kae=[],Qae="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jae=function(e,t){return e.__v.__b-t.__v.__b},dse.__r=0;var Rse=[function(e){e.renderer("svg",Gae)},function(e){e.renderer("canvas",wae)},function(e){e.renderer("dom",kse)}];const Mse={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4};const Ase=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(){let{level:e=Mse.OFF,pipe:t=console}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;const r={[Mse.OFF]:()=>{},[Mse.ERROR]:function(){return t.error(...arguments)},[Mse.WARN]:function(){return t.warn(...arguments)},[Mse.INFO]:function(){return t.info(...arguments)},[Mse.DEBUG]:function(){return t.log(...arguments)}},o=function(e){if(e&&!(n<e)){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];(r[e]||r[Mse.DEBUG])(...o)}};return{log:o,error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.ERROR,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.WARN,...t)},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.INFO,...t)},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(Mse.DEBUG,...t)},level:e=>("number"==typeof e&&(n=e),n),LOG_LEVEL:Mse}}(t.logger),o={component:G5(n.component,"component",r),data:G5(n.data,"data",r),formatter:G5(n.formatter,"formatter",r),interaction:G5(n.interaction,"interaction",r),renderer:Pee(n.renderer),scale:G5(n.scale,"scale",r),symbol:G5(n.symbol,"symbol",r),logger:r};function i(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e({palettes:t.palettes.concat(n.palettes||[]),style:M2({},t.style,n.style),logger:n.logger||t.logger,renderer:n.renderer||t.renderer},o)}return t.renderer&&t.renderer.prio&&o.renderer.default(t.renderer.prio[0]),i.use=function(e){return function(e){e(arguments.length>2?arguments[2]:void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o)},i.chart=e=>Iee(e,{registries:o,logger:r,style:t.style,palettes:t.palettes}),i.config=()=>t,Object.keys(o).forEach((e=>{i[e]=o[e]})),i.version=A2,i}({renderer:{prio:["svg","canvas"]},logger:{level:0},style:{"$font-family":"'Source Sans Pro', Arial, sans-serif","$font-size":"12px","$line-height":"16px","$font-size--l":"16px","$font-weight":"normal","$gray-100":"#ffffff","$gray-98":"#f9f9f9","$gray-95":"#f2f2f2","$gray-90":"#e6e6e6","$gray-35":"#595959","$gray-30":"#4d4d4d","$gray-25":"#404040","$gray-20":"#333333","$border-95":"rgba(255, 255, 255, 0.05)","$border-90":"rgba(255, 255, 255, 0.1)","$border-80":"rgba(255, 255, 255, 0.2)","$border-20":"rgba(0, 0, 0, 0.2)","$border-10":"rgba(0, 0, 0, 0.1)","$border-5":"rgba(0, 0, 0, 0.05)","$primary-blue":"#3F8AB3","$primary-green":"#6CB33F","$primary-red":"#DC423F","$primary-orange":"#EF960F","$spacing--s":4,$spacing:8,"$spacing--l":12,"$font-color":"$gray-35","$font-color--inverted":"$gray-90","$guide-color":"$gray-90","$guide-color--inverted":"$gray-35",$border:"$border-80","$border--inverted":"$border-10",$shape:{fill:"$primary-blue",strokeWidth:1,stroke:"$border"},"$shape-outline":{stroke:"$primary-blue",strokeWidth:2},"$shape-guide":{stroke:"$guide-color",strokeWidth:1},"$shape-guide--inverted":{"@extend":"$shape-guide",stroke:"$guide-color--inverted"},$label:{fontSize:"$font-size",fontFamily:"$font-family",fill:"$font-color"},"$label--inverted":{$extend:"$label",fill:"$font-color--inverted"},"$label-overlay":{fontSize:"$font-size--l",fontFamily:"$font-family",fill:"$gray-100",color:"$font-color",stroke:"$guide-color--inverted",strokeWidth:1,borderRadius:4},$title:{"@extend":"$label",fontSize:"$font-size--l",fontWeight:"$font-weight",stroke:"$guide-color--inverted",strokeWidth:0},"$guide-line":{strokeWidth:1,stroke:"$guide-color"},"$guide-line--minor":{strokeWidth:1,stroke:"$gray-95"},"$padding--s":{left:"$spacing--s",right:"$spacing--s",top:"$spacing--s",bottom:"$spacing--s"},$padding:{left:"$spacing",right:"$spacing",top:"$spacing",bottom:"$spacing"},"$selection-area-target":{fill:"$primary-green",strokeWidth:0,opacity:.2}},palettes:[{key:"categorical",colors:[["#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da"]]},{key:"diverging",colors:[["#3d52a1","#3a89c9","#77b7e5","#b4ddf7","#e6f5fe","#ffe3aa","#f9bd7e","#ed875e","#d24d3e","#ae1c3e"]]},{key:"sequential",colors:[["rgb(180,221,212)","rgb(34, 83, 90)"]]}]},{component:Tee,data:qee,formatter:m4,interaction:jee,renderer:Pee(),scale:g7,symbol:w9});Uoe.forEach(Ase.use),Rse.forEach(Ase.use),[].forEach(Ase.use);const Lse=Ase();Lse.use(v2),Lse.renderer.prio(["canvas"]);const Ise=(e,t)=>e&&"center"!==e&&"rtl"===t?FX(e):e,Pse=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:s}}}=OV(),{direction:l}=AV();return ae.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[ae.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:eQ(e),alignItems:Ise(r,l),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:ae.jsx(xQ,{representation:t,textStyle:n})}),ae.jsx(t0,{padding:4/(s<=2?2:1),alignSelf:eQ(e,!0),children:!!t.labelStructure&&yQ(t.labelStructure)})]})},Tse=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,Dse=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>ae.jsxs("span",{children:[ae.jsx(sZ,{...I0({href:e,text:t,interactions:r,color:o}),children:null!=n&&n.maskedValue?n.maskedValue:null==n?void 0:n.originalValue}),!!n&&Tse(n)]}),Ose=({children:e,textStyle:t,shouldEnableStickyText:n})=>ae.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),zse=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=AV(),{isActive:o}=QX(),{layoutService:i,styleService:a}=OV(),{interactions:s}=PV(),l=i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported,u=n&&l;let c=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const d=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...jF,...FF(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:iQ({cell:e,styleService:t,isCellSelected:n}),fontWeight:aQ({cell:e,styleService:t}),fontStyle:sQ({cell:e,styleService:t}),textDecoration:lQ({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n});if(e.representation.type===Cv.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?Pse:_Q;return ae.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:d,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:R0(e,i,n,r)})}if(e.representation.type===Cv.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?Dse:P0;c=ae.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return ae.jsx(Ose,{shouldEnableStickyText:u,textStyle:{...d,...e.representation.type===Cv.Image&&e.isNull?{alignSelf:eQ(e)}:{}},children:c})},Nse=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=OV(),{isSelected:i}=QX(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=BQ([n]),f=k0(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=UK(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return ae.jsx(YK,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return ae.jsxs(A0,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[ae.jsxs(KK,{verticalAlign:eQ(f),width:XK(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[ae.jsx(pQ,{isLeftColumn:a,isCellSelected:b,cell:f}),ae.jsx(zse,{isLeftColumn:a,isCellSelected:b,cell:f})]}),ae.jsx(HQ,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Iv.Measures:Iv.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var qse=B.memo(Nse,PK);const jse=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*r():!n&&a?(a.leafCount+a.distanceToNextCell)*r():r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},Fse=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},Bse=(e,t)=>n=>{e.current&&(e.current[t]=n)},$se={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...NF},Wse={overflow:"hidden",willChange:"auto",flexShrink:0},Hse=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=AV(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=OV(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=_Y();E0(e,d),C0(e,t,n,l);const f=i.rowsOnCurrentPage*l,h={...$se,borderColor:u,width:r.reduce(((e,t)=>e+t),0)};return ae.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=UV(p[u]),{itemCount:g,estimatedItemSize:b,listValues:y}=Fse(t,f,i.rowsOnCurrentPage,h),v=s.isIndentModeEnabled?()=>l:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return ae.jsx(MK,{ref:Bse(e,u),style:{...Wse,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:DQ,estimatedItemSize:b,children:qse},m)}))})};var Gse=F.memo(Hse);const Vse={overflow:"hidden",willChange:"auto"},Use=e=>({...NF,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),Yse=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=AV(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=OV(),{gridSectionsData:{headersData:c,topDimensionData:d}}=_Y(),p={...Use(a),borderColor:l,height:r};E0(e,d),C0(e,n,r,u);const f=s.size.x*i();return 0===d.rowCount?ae.jsx("div",{style:{width:n,height:r,...Use(a)}}):ae.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=Fse(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=x0({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?UV(g):`empty ${l}`;return ae.jsx(MK,{ref:Bse(e,l),style:Vse,height:t(),width:n,itemCount:p,itemSize:jse({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:DQ,estimatedItemSize:h,direction:a,children:qse},b)}))})};var Kse=F.memo(Yse);const Xse=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=OV(),n=UY(),r=(()=>{const{model:e}=PV(),t=F.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:p},scrollbarsDimensions:{verticalScrollbarWidth:f,horizontalScrollbarHeight:h,resetHorizontalScrollbarHeight:m}}=VY(),{leftGridWidth:g,leftGridFullWidth:b,leftGridColumnWidths:y,rightGridFullWidth:v,showLastRightBorder:x,getRightGridColumnWidth:_,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:S}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:o}=OV(),{gridSectionsData:{headersData:i}}=_Y(),{measureText:a}=pB(o.header),s=qY({tableWidth:e}),l=jY({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=F.useCallback(((e,t,n="")=>{let o=e;r.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(n)+SY;return t&&d+20<=l&&(c=!0,d+=20),d+20<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,r.isIndentModeEnabled,i.size.x]);return F.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()}),[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:f,resetHorizontalScrollbarHeight:m}),{gridScaffoldDimensions:C,headerGridDims:E,topGridDims:k,leftGridDims:R,dataGridDims:M,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:L}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=UY(),{pageInfo:l}=AV(),{gridSectionsData:{headersData:u,topDimensionData:c}}=_Y(),d=Math.min(s.height*CY,Math.max(s.height*CY-25,s.height-t-a)),p=s.width*CY,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,n),y=s.width-p,v=Math.max(y,s.width-b),x=Math.min(d,m,g),{availableHeight:_,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:S}=((e,t,n)=>{const r=t+1+n+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(x,b,v),C=_-d,E=Math.max(C,_-x),k=Math.min(E,f),R=Math.min(E,f),M=m+1+f,{visibilityStatus:A,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:I}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=i>t,d=a>n,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:v},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:E}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${v}px`,gridTemplateRows:`${x}px ${E}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(I?i:0),height:g},stickyWrapper:{width:v-1-i,height:-1},self:{width:Math.min(o,v)-(S?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!L&&I?a:0)},stickyWrapper:{width:b,height:E-1-a},self:{width:b,height:Math.max(t,k-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(I?i:0),height:M-g+(!I&&L?a:0)},stickyWrapper:{width:v-1-i,height:E-1-a},self:{width:Math.min(o,v)-(S?1:0)-i,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:A}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:g,leftGridOriginalWidth:b,rightGridOriginalWidth:v},scrollBarsDimensions:{verticalScrollbarWidth:f,horizontalScrollbarHeight:h}}),I=F.useCallback((()=>e),[e]),P=F.useCallback((()=>t),[t]);return(()=>{const{downloadService:e}=OV();F.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),ae.jsxs(KY,{style:C,children:[ae.jsx("div",{style:{overflow:"hidden"},ref:o,children:ae.jsx(S0,{tableWidth:n.width,leftGridWidth:g,columnWidths:y,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:E.height,changeSortOrder:r,overrideLeftGridWidth:S})}),ae.jsx(JY,{style:L.topGrid,origin:Tv.TopGrid,ref:i,children:ae.jsx(YY,{style:k.fullSizeWrapper,children:ae.jsx(ZY,{style:k.stickyWrapper,children:ae.jsx(Kse,{topGridRef:l,rowHightCallback:I,...k.self,showLastBorder:{right:x,bottom:!1},getRightGridColumnWidth:_})})})}),ae.jsx(JY,{style:L.leftGrid,origin:Tv.LeftGrid,ref:a,children:ae.jsx(YY,{style:R.fullSizeWrapper,children:ae.jsx(ZY,{style:R.stickyWrapper,children:ae.jsx(Gse,{leftGridRef:u,...R.self,columnWidths:y,showLastBorder:{right:!1,bottom:A}})})})}),ae.jsx(JY,{style:L.dataGrid,origin:Tv.DataGrid,ref:s,children:ae.jsx(YY,{style:M.fullSizeWrapper,children:ae.jsx(ZY,{style:M.stickyWrapper,children:ae.jsx(qQ,{dataGridRef:c,rowHightCallback:P,...M.self,showLastBorder:{right:x,bottom:A},getRightGridColumnWidth:_,verticalScrollDirection:d,horizontalScrollDirection:p})})})})]})},Qse=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=PV(),{pageInfo:o,updatePageInfo:i,rect:a}=AV(),{layoutService:s}=OV(),{layout:l,hasData:u}=s;return ae.jsxs(ae.Fragment,{children:[u?ae.jsx(Xse,{}):null,ae.jsx(NV,{}),ae.jsx(kV,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})},Jse={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Zse=12,ele=14,tle=16,nle=24,rle=3,ole=300,ile=400,ale=600,sle=700,lle={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var ule='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function cle(e){return ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ae.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var dle=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return ae.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function ple(e={}){return ae.jsx(dle,{...e,children:ae.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ae.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ae.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function fle(e={}){return ae.jsx(dle,{fontSize:"medium",...e,children:ae.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ae.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ae.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function hle(e){return ae.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ae.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function mle(e={}){return ae.jsx(dle,{...e,children:ae.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ae.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ae.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ae.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function gle(e={}){return ae.jsx(dle,{fontSize:"medium",...e,children:ae.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ae.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ae.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function ble({className:e}){return ae.jsx(dle,{fontSize:"small",className:e,children:ae.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ae.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ae.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ae.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ae.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ae.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function yle(e={}){return ae.jsx(dle,{...e,children:ae.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ae.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ae.jsx("rect",{stroke:Jse.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const vle={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rle,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var xle=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Jse.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Jse.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ae.jsx(cle,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Jse.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,borderRadius:rle,backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Jse.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Jse.WHITE,color:Jse.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:rle},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rle,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Jse.PURPLE,"&.Mui-focusVisible":{borderColor:Jse.PURPLE,boxShadow:`0 0 0 3px ${D$(Jse.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Jse.GREEN,"&.Mui-focusVisible":{borderColor:Jse.GREEN,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Jse.BLUE,"&.Mui-focusVisible":{borderColor:Jse.BLUE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Jse.ORANGE,"&.Mui-focusVisible":{borderColor:Jse.ORANGE,boxShadow:`0 0 0 3px ${D$(Jse.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Jse.RED,"&.Mui-focusVisible":{borderColor:Jse.RED,boxShadow:`0 0 0 3px ${D$(Jse.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Jse.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Jse.PURPLE_PALE},"&:active":{backgroundColor:Jse.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Jse.PURPLE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Jse.ORANGE_PALE},"&:active":{backgroundColor:Jse.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Jse.ORANGE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Jse.RED_PALE},"&:active":{backgroundColor:Jse.RED_DARK},"&.Mui-focusVisible":{borderColor:Jse.RED_PALE,boxShadow:`0 0 0 3px ${D$(Jse.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Jse.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:rle,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ae.jsx(hle,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Zse,borderRadius:rle,color:Jse.TEXT_PRIMARY,backgroundColor:Jse.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Jse.GREYSCALE_0_05,color:Jse.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Jse.GREEN,borderColor:Jse.GREEN},"&.MuiChip-outlinedInfo":{color:Jse.BLUE,borderColor:Jse.BLUE},"&.MuiChip-outlinedWarning":{color:Jse.ORANGE,borderColor:Jse.ORANGE},"&.MuiChip-outlinedError":{color:Jse.RED,borderColor:Jse.RED}},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:rle,boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Jse.GREEN,borderColor:Jse.GREEN},outlinedSecondary:{color:Jse.BLUE,borderColor:Jse.BLUE},label:{fontFamily:lle.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ae.jsx(hle,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ae.jsx(cle,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:rle},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:rle,fontSize:ele,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Jse.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Jse.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Jse.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Jse.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_05}}},popupIndicator:{borderRadius:rle,border:`solid 1px ${Jse.GREYSCALE_0_15}`,color:Jse.GREYSCALE_0_60,marginRight:0,width:nle,height:nle},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Jse.GREYSCALE_0_15}`},clearIndicator:{borderRadius:rle,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Jse.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ele}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Zse,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Jse.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Jse.GREYSCALE_25,fontSize:Zse,fontFamily:lle.FONT_FAMILY,fontWeight:ale,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Jse.TEXT_PRIMARY},"&.Mui-error":{color:Jse.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Jse.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ile,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Jse.TEXT_SECONDARY,content:"'(required)'",fontWeight:ile,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ele,lineHeight:"16px",backgroundColor:Jse.WHITE,borderRadius:rle,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderColor:Jse.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.RED}`,boxShadow:`0px 0px 0px 1px ${Jse.RED}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_10}`,borderColor:Jse.GREYSCALE_0_10,backgroundColor:Jse.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Jse.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Jse.GREYSCALE_0_15,borderRadius:rle,boxShadow:`inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ae.jsx(cle,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Jse.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Jse.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&:focus":{backgroundColor:Jse.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Jse.GREYSCALE_0_30,"&:hover":{backgroundColor:Jse.GREYSCALE_0_0,borderColor:Jse.GREYSCALE_0_15},"& ~svg":{color:Jse.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:rle}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Jse.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ele,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Zse,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Zse,fontWeight:ale,color:Jse.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ale}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ae.jsx(gle,{}),checkedIcon:ae.jsx(fle,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Jse.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Jse.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Jse.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ae.jsx(yle,{}),checkedIcon:ae.jsx(ple,{}),indeterminateIcon:ae.jsx(mle,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:rle,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Jse.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Jse.GREYSCALE_0_55,color:Jse.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Jse.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Jse.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Jse.GREYSCALE_0_55,"&:hover":{color:Jse.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Jse.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Jse.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ele,color:Jse.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ale},secondary:{fontSize:Zse,color:Jse.GREYSCALE_45,fontWeight:ile,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ele,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ele,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Jse.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Zse,borderBottom:`solid 1px ${Jse.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ele,color:Jse.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Jse.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${ule}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Jse.RED}}},"&.Mui-focusVisible":{backgroundColor:Jse.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Jse.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Jse.GREEN,height:"24px","&.Mui-disabled":{color:Jse.GREYSCALE_0_15}},rail:{backgroundColor:Jse.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle,boxShadow:`inset 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.WHITE,boxShadow:`0px 1px 2px 0px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`,"&:hover":{borderRadius:rle,boxShadow:`0 2px 4px 0 ${Jse.GREYSCALE_0_30}, 0 0 0 1px ${Jse.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Jse.GREYSCALE_0_15}, 0 0 0 1px ${Jse.GREYSCALE_0_06}, 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Jse.GREYSCALE_0_15}, 0 0 0 1px ${Jse.GREYSCALE_0_06}, 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Jse.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Jse.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Jse.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15},markLabel:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Jse.WHITE,color:Jse.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Jse.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${D$(Jse.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${D$(Jse.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:ele,fontWeight:ale,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Jse.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,backgroundColor:Jse.GREYSCALE_0_03,borderRadius:rle},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Jse.GREYSCALE_25,"&.Mui-selected":{color:Jse.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ele,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:rle,"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Jse.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Jse.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:rle,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Jse.GREYSCALE_0_05},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderRight:`1px solid ${Jse.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ale,backgroundColor:Jse.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Jse.GREYSCALE_98,borderBottom:`1px solid ${Jse.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderTop:`1px solid ${Jse.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Jse.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Jse.GREYSCALE_0_05,"&:hover":{backgroundColor:Jse.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Jse.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ae.jsx(ble,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Jse.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ele,borderRadius:rle,padding:"7px 16px",border:`1px solid ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_60,color:Jse.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Jse.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`,border:`1px solid ${Jse.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Jse.GREYSCALE_25,backgroundColor:Jse.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Zse,height:24,width:24,padding:7},sizeLarge:{fontSize:tle,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ele,borderRadius:rle}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Jse.GREYSCALE_20},tooltip:{backgroundColor:Jse.GREYSCALE_20,fontSize:Zse,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...vle}:{}});var _le=()=>({mode:"light",primary:{ultraLight:Jse.GREEN_ULTRA_LIGHT,light:Jse.GREEN_PALE,main:Jse.GREEN,dark:Jse.GREEN_DARK,extraDark:Jse.GREEN_EXTRA_DARK,contrastText:Jse.WHITE},secondary:{ultraLight:Jse.BLUE_ULTRA_LIGHT,light:Jse.BLUE_PALE,main:Jse.BLUE,dark:Jse.BLUE_DARK,extraDark:Jse.BLUE_EXTRA_DARK,contrastText:Jse.WHITE},error:{ultraLight:Jse.RED_ULTRA_LIGHT,light:Jse.RED_PALE,main:Jse.RED,dark:Jse.RED_DARK,extraDark:Jse.RED_EXTRA_DARK,contrastText:Jse.WHITE},warning:{ultraLight:Jse.ORANGE_ULTRA_LIGHT,light:Jse.ORANGE_PALE,main:Jse.ORANGE,dark:Jse.ORANGE_DARK,extraDark:Jse.ORANGE_EXTRA_DARK,contrastText:Jse.WHITE},success:{ultraLight:Jse.GREEN_ULTRA_LIGHT,light:Jse.GREEN_PALE,main:Jse.GREEN,dark:Jse.GREEN_DARK,extraDark:Jse.GREEN_EXTRA_DARK,contrastText:Jse.WHITE},info:{ultraLight:Jse.BLUE_ULTRA_LIGHT,light:Jse.BLUE_PALE,main:Jse.BLUE,dark:Jse.BLUE_DARK,extraDark:Jse.BLUE_EXTRA_DARK,contrastText:Jse.WHITE},text:{primary:Jse.TEXT_PRIMARY,secondary:Jse.TEXT_SECONDARY,disabled:Jse.GREYSCALE_0_30},action:{hover:Jse.GREYSCALE_0_03,hoverOpacity:.03,selected:Jse.GREYSCALE_0_05,selectedOpacity:.05,focus:Jse.MISC_FOCUS_BORDER},amethyst:{ultraLight:Jse.WHITE,main:Jse.PURPLE,light:Jse.PURPLE_PALE,dark:Jse.PURPLE_DARK,extraDark:Jse.GREYSCALE_0_0,contrastText:Jse.WHITE},background:{paper:Jse.WHITE,default:Jse.GREYSCALE_95},divider:Jse.GREYSCALE_0_15});var wle=e=>_le();var Sle=(e,t=!1)=>{const n=((e,t)=>xle(t))(0,t);return{components:n,palette:wle(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:ele,fontWeightLight:ole,fontWeightRegular:ile,fontWeightMedium:ale,fontWeightBold:sle,htmlFontSize:ele,fontFamily:lle.FONT_FAMILY,button:{fontWeight:ale,fontSize:ele,textTransform:"none"},body1:{fontSize:tle,lineHeight:"24px"},body2:{fontSize:ele,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:nle,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:tle,fontWeight:ale,lineHeight:"16px"},h6:{fontSize:ele,fontWeight:ale,lineHeight:"16px"},caption:{color:Jse.TEXT_SECONDARY},subtitle1:{fontSize:ele,color:Jse.TEXT_SECONDARY},subtitle2:{fontSize:Zse,color:Jse.TEXT_SECONDARY}},shape:{borderRadius:rle}}},Cle={},Ele={exports:{}},kle={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(kle);var Rle=kle.exports;!function(e){var t=Rle.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(Ele);var Mle=Ele.exports,Ale={},Lle=r(Fx);Object.defineProperty(Ale,"__esModule",{value:!0}),Ale.hexToRgb=Tle,Ale.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Ole(e),n=t.values;return"#".concat(n.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},Ale.hslToRgb=Dle,Ale.decomposeColor=Ole,Ale.recomposeColor=zle,Ale.getContrastRatio=function(e,t){var n=Nle(e),r=Nle(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ale.getLuminance=Nle,Ale.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Nle(e)>.5?jle(e,t):Fle(e,t)},Ale.fade=function(e,t){return qle(e,t)},Ale.alpha=qle,Ale.darken=jle,Ale.lighten=Fle;var Ile=Lle;function Ple(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Tle(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function Dle(e){var t=(e=Ole(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),zle({type:s,values:l})}function Ole(e){if(e.type)return e;if("#"===e.charAt(0))return Ole(Tle(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,Ile.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function zle(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Nle(e){var t="hsl"===(e=Ole(e)).type?Ole(Dle(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qle(e,t){return e=Ole(e),t=Ple(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,zle(e)}function jle(e,t){if(e=Ole(e),t=Ple(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return zle(e)}function Fle(e,t){if(e=Ole(e),t=Ple(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return zle(e)}var Ble,$le,Wle,Hle={},Gle={exports:{}},Vle={exports:{}},Ule={exports:{}};function Yle(){return Ble||(Ble=1,function(e){var t=Rle.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ule)),Ule.exports}function Kle(){return $le||($le=1,function(e){var t=Rle.default,n=Yle();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Vle)),Vle.exports}function Xle(){return Wle||(Wle=1,function(e){var t=Kle();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Gle)),Gle.exports}var Qle,Jle={exports:{}};function Zle(){return Qle||(Qle=1,function(e){var t=aD();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Jle)),Jle.exports}var eue,tue={};var nue,rue={};var oue,iue={},aue={};var sue,lue={};var uue,cue={};var due,pue={};var fue,hue={};var mue,gue={};var bue,yue={};var vue,xue,_ue={};function wue(){if(xue)return iue;xue=1;var e=cT;Object.defineProperty(iue,"__esModule",{value:!0}),iue.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,v=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,S=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,C=e.info,E=void 0===C?{light:c.default[300],main:c.default[500],dark:c.default[700]}:C,k=e.success,R=void 0===k?{light:d.default[300],main:d.default[500],dark:d.default[700]}:k,M=e.type,A=void 0===M?"light":M,L=e.contrastThreshold,I=void 0===L?3:L,P=e.tonalOffset,T=void 0===P?.2:P,D=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=I?h.text.primary:f.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,T),m(e,"dark",i,T),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},q=(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:z(b),secondary:z(v,"A400","A200","A700"),error:z(_),warning:z(S),info:z(E),success:z(R),grey:i.default,contrastThreshold:I,getContrastText:O,augmentColor:z,tonalOffset:T},N[A]),D);return q},iue.dark=iue.light=void 0;var t=e(rD()),n=e(Zle()),r=Lle,o=e(function(){if(oue)return aue;oue=1,Object.defineProperty(aue,"__esModule",{value:!0}),aue.default=void 0;var e={black:"#000",white:"#fff"};return aue.default=e,aue}()),i=e(function(){if(sue)return lue;sue=1,Object.defineProperty(lue,"__esModule",{value:!0}),lue.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return lue.default=e,lue}()),a=e(function(){if(uue)return cue;uue=1,Object.defineProperty(cue,"__esModule",{value:!0}),cue.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return cue.default=e,cue}()),s=e(function(){if(due)return pue;due=1,Object.defineProperty(pue,"__esModule",{value:!0}),pue.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return pue.default=e,pue}()),l=e(function(){if(fue)return hue;fue=1,Object.defineProperty(hue,"__esModule",{value:!0}),hue.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return hue.default=e,hue}()),u=e(function(){if(mue)return gue;mue=1,Object.defineProperty(gue,"__esModule",{value:!0}),gue.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return gue.default=e,gue}()),c=e(function(){if(bue)return yue;bue=1,Object.defineProperty(yue,"__esModule",{value:!0}),yue.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return yue.default=e,yue}()),d=e(function(){if(vue)return _ue;vue=1,Object.defineProperty(_ue,"__esModule",{value:!0}),_ue.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return _ue.default=e,_ue}()),p=Ale,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};iue.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return iue.dark=h,iue}var Sue,Cue={};var Eue,kue={};var Rue,Mue={};var Aue,Lue={},Iue=r(kw);var Pue,Tue={};function Due(){if(Pue)return Tue;Pue=1;var e=cT;Object.defineProperty(Tue,"__esModule",{value:!0}),Tue.default=Tue.duration=Tue.easing=void 0;var t=e(Zle()),n={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)"};Tue.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Tue.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return Tue.default=i,Tue}var Oue,zue,Nue={};function que(){if(zue)return Hle;zue=1;var e=cT;Object.defineProperty(Hle,"__esModule",{value:!0}),Hle.createMuiTheme=function(){return p.apply(void 0,arguments)},Hle.default=void 0,e(Xle());var t=e(Zle()),n=Lle,r=e(function(){if(eue)return tue;eue=1;var e=cT;Object.defineProperty(tue,"__esModule",{value:!0}),tue.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},tue.keys=void 0;var t=e(rD()),n=e(Zle()),r=["xs","sm","md","lg","xl"];return tue.keys=r,tue}()),o=e(function(){if(nue)return rue;nue=1;var e=cT;Object.defineProperty(rue,"__esModule",{value:!0}),rue.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Xle()),n=e(rD());return rue}()),i=e(wue()),a=e(function(){if(Sue)return Cue;Sue=1;var e=cT;Object.defineProperty(Cue,"__esModule",{value:!0}),Cue.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,y=u.fontWeightMedium,v=void 0===y?500:y,x=u.fontWeightBold,_=void 0===x?700:x,w=u.htmlFontSize,S=void 0===w?16:w,C=u.allVariants,E=u.pxToRem,k=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,M=E||function(e){return"".concat(e/S*R,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,C)},L={h1:A(m,96,1.167,-1.5),h2:A(m,60,1.2,-.5),h3:A(b,48,1.167,0),h4:A(b,34,1.235,.25),h5:A(b,24,1.334,0),h6:A(v,20,1.6,.15),subtitle1:A(b,16,1.75,.15),subtitle2:A(v,14,1.57,.1),body1:A(b,16,1.5,.15),body2:A(b,14,1.43,.15),button:A(v,14,1.75,.4,a),caption:A(b,12,1.66,.4),overline:A(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:S,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:v,fontWeightBold:_},L),k,{clone:!1})};var t=e(rD()),n=e(Zle()),r=Lle;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Cue}()),s=e(function(){if(Eue)return kue;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Eue=1,Object.defineProperty(kue,"__esModule",{value:!0}),kue.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return kue.default=t,kue}()),l=e(function(){if(Rue)return Mue;Rue=1,Object.defineProperty(Mue,"__esModule",{value:!0}),Mue.default=void 0;var e={borderRadius:4};return Mue.default=e,Mue}()),u=e(function(){if(Aue)return Lue;Aue=1,Object.defineProperty(Lue,"__esModule",{value:!0}),Lue.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=Iue;return Lue}()),c=e(Due()),d=e(function(){if(Oue)return Nue;Oue=1,Object.defineProperty(Nue,"__esModule",{value:!0}),Nue.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Nue.default=e,Nue}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,y=e.spacing,v=e.typography,x=void 0===v?{}:v,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),S=(0,r.default)(f),C=(0,u.default)(y),E=(0,n.deepmerge)({breakpoints:S,direction:"ltr",mixins:(0,o.default)(S,C,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:C,shape:l.default,transitions:c.default,zIndex:d.default},_),k=arguments.length,R=new Array(k>1?k-1:0),M=1;M<k;M++)R[M-1]=arguments[M];return E=R.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),E)}var f=p;return Hle.default=f,Hle}var jue,Fue={};var Bue,$ue={},Wue=r(Ek);var Hue,Gue,Vue={},Uue={};function Yue(){if(Hue)return Uue;Hue=1;var e=cT;Object.defineProperty(Uue,"__esModule",{value:!0}),Uue.default=void 0;var t=(0,e(que()).default)();return Uue.default=t,Uue}var Kue,Xue,Que={},Jue={};function Zue(){if(Xue)return Que;Xue=1;var e=cT;Object.defineProperty(Que,"__esModule",{value:!0}),Que.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(rD()),n=Lle,r=function(){if(Kue)return Jue;Kue=1;var e=cT;Object.defineProperty(Jue,"__esModule",{value:!0}),Jue.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},Jue.getUnit=n,Jue.toUnitless=r,Jue.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},Jue.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},Jue.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},Jue.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach((function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(Xle());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return Jue}();return Que}var ece,tce={};var nce,rce={};var oce,ice={};var ace,sce={};!function(e){var t=cT,n=Mle;Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Ale;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=n(que()),a=t(function(){if(jue)return Fue;jue=1;var e=cT;Object.defineProperty(Fue,"__esModule",{value:!0}),Fue.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Lle,n=e(que());return Fue}()),s=t(function(){if(Bue)return $ue;Bue=1,Object.defineProperty($ue,"__esModule",{value:!0}),$ue.default=function(t){return(0,e.createStyles)(t)};var e=Wue;return $ue}()),l=t(function(){if(Gue)return Vue;Gue=1;var e=cT;Object.defineProperty(Vue,"__esModule",{value:!0}),Vue.default=void 0;var t=e(rD()),n=Wue,r=e(Yue()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return Vue.default=o,Vue}()),u=t(Zue()),c=t(function(){if(ece)return tce;ece=1;var e=cT;Object.defineProperty(tce,"__esModule",{value:!0}),tce.default=void 0;var t=e(rD()),n=Wue,r=e(Yue()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return tce.default=o,tce}()),d=Due();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var p=t(function(){if(nce)return rce;nce=1;var e=cT;Object.defineProperty(rce,"__esModule",{value:!0}),rce.default=function(){return(0,t.useTheme)()||n.default};var t=Wue;e(F);var n=e(Yue());return rce}()),f=t(function(){if(oce)return ice;oce=1;var e=cT;Object.defineProperty(ice,"__esModule",{value:!0}),ice.default=void 0;var t=e(rD()),n=Wue,r=e(Yue()),o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return ice.default=o,ice}()),h=t(function(){if(ace)return sce;ace=1;var e=cT;Object.defineProperty(sce,"__esModule",{value:!0}),sce.default=void 0;var t=Wue,n=e(Yue()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return sce.default=r,sce}()),m=Wue}(Cle);var lce=Object.defineProperty,uce=(e,t)=>{for(var n in t)lce(e,n,{get:t[n],enumerable:!0})};uce({},{light:()=>cce});const cce={root:{backgroundColor:Jse.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};uce({},{light:()=>dce});const dce={root:{backgroundColor:Jse.WHITE}};uce({},{light:()=>pce});const pce={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Jse.GREYSCALE_0_15}`,"&$focused":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,borderRadius:rle,backgroundColor:Jse.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};uce({},{light:()=>fce});const fce={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${Jse.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Jse.WHITE,color:Jse.TEXT_PRIMARY}};uce({},{light:()=>hce});const hce={inputRoot:{boxSizing:"border-box",borderRadius:rle,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:ele,height:"32px",'&[data-focus="true"]':{backgroundColor:Jse.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:rle,border:`solid 1px ${Jse.GREYSCALE_0_15}`,color:Jse.GREYSCALE_0_60,marginRight:0,width:nle,height:nle,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${Jse.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:Jse.GREYSCALE_25,width:tle,height:nle,borderRadius:rle,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:Cle.alpha(Jse.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:Jse.GREYSCALE_0_10}};uce({},{light:()=>mce});const mce={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};uce({},{light:()=>gce});const gce={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rle,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&$focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&$focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};uce({},{light:()=>bce});const bce={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:rle},groupedText:{padding:"8px 16px","&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:Jse.GREYSCALE_0_15,backgroundColor:Jse.GREYSCALE_100_60,"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&$focusVisible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Jse.GREEN_PALE},"&:active":{backgroundColor:Jse.GREEN_DARK},"&$focusVisible":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Jse.BLUE_PALE},"&:active":{backgroundColor:Jse.BLUE_DARK},"&$focusVisible":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}}};uce({},{light:()=>yce});const yce={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:Jse.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:rle,boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};uce({},{light:()=>vce});const vce={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:Jse.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:Jse.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}}};uce({},{light:()=>xce});const xce={root:{height:"24px",fontSize:Zse,borderRadius:rle,color:Jse.TEXT_PRIMARY,backgroundColor:Jse.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:Jse.GREYSCALE_0_05,color:Jse.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:rle,boxShadow:"none",backgroundColor:Jse.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:lle.FONT_FAMILY,lineHeight:"16px"}};uce({},{light:()=>_ce});const _ce={root:{padding:"8px",backgroundColor:Jse.GREYSCALE_98,borderTop:`1px ${Jse.GREYSCALE_0_15} solid`}};uce({},{light:()=>wce});const wce={root:{padding:"24px"}};uce({},{light:()=>Sce});const Sce={root:{marginBottom:0}};uce({},{light:()=>Cce});const Cce={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:Jse.GREYSCALE_98,borderBottom:`1px ${Jse.GREYSCALE_0_15} solid`}};uce({},{light:()=>Ece});const Ece={middle:{margin:"4px 8px"}};uce({},{light:()=>kce});const kce={root:{marginLeft:"-10px"},label:{fontSize:ele}};uce({},{light:()=>Rce});const Rce={root:{fontSize:Zse,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:Jse.RED}},contained:{marginLeft:0,marginRight:0}};uce({},{light:()=>Mce});const Mce={root:{color:Jse.GREYSCALE_25,fontSize:Zse,fontFamily:lle.FONT_FAMILY,fontWeight:ale,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:Jse.TEXT_PRIMARY},"&$error":{color:Jse.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Jse.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:ile,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:Jse.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:ile,marginLeft:"4px"}}};uce({},{light:()=>Ace});const Ace={root:{padding:7,borderRadius:rle,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:Jse.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};uce({},{light:()=>Lce});const Lce={root:{padding:"4px 8px",color:Jse.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};uce({},{light:()=>Ice});const Ice={input:{padding:"8px 12px",lineHeight:"16px"}};uce({},{light:()=>Pce});const Pce={outlined:{fontSize:`${Zse}px`,fontWeight:ale,color:Jse.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:ale}}};uce({},{light:()=>Tce});const Tce={root:{color:Jse.MISC_FOCUS_BORDER}};uce({},{light:()=>Dce});const Dce={padding:{paddingTop:"0px",paddingBottom:"0px"}};uce({},{light:()=>Oce});const Oce={root:{minHeight:"32px",fontSize:ele,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${ule}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Jse.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&:active":{backgroundColor:Jse.GREYSCALE_0_05}}};uce({},{light:()=>zce});const zce={root:{color:Jse.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};uce({},{light:()=>Nce});const Nce={root:{fontSize:"12px"},primary:{fontSize:ele,color:Jse.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:Zse,fontWeight:ole,lineHeight:"16px",color:Jse.TEXT_SECONDARY}};uce({},{light:()=>qce});const qce={root:{'&[role="option"]':{color:Jse.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Zse,borderBottom:`solid 1px ${Jse.GREYSCALE_0_15}`,pointerEvents:"none"}}};uce({},{light:()=>jce});const jce={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:Jse.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};uce({},{light:()=>Fce});const Fce={root:{fontSize:ele,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:Jse.GREYSCALE_25}}};uce({},{light:()=>Bce});const Bce={root:{fontSize:ele,lineHeight:"16px",backgroundColor:Jse.WHITE,borderRadius:rle,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderColor:Jse.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${Jse.RED}`,boxShadow:`0px 0px 0px 1px ${Jse.RED}, inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${Jse.GREYSCALE_0_10}`,borderColor:Jse.GREYSCALE_0_10,backgroundColor:Jse.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Jse.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:Jse.GREYSCALE_0_15,borderRadius:rle,boxShadow:`inset 0 2px 0 0 ${Jse.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};uce({},{light:()=>$ce});const $ce={day:{"&&&:hover":{backgroundColor:Jse.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:Jse.GREEN}}};uce({},{light:()=>Wce});const Wce={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`}};uce({},{light:()=>Hce});const Hce={root:{fill:Jse.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}},"&$disabled":{color:Jse.GREYSCALE_0_20}},"&$disabled":{fill:Jse.GREYSCALE_0_20,stroke:"none"}}};uce({},{light:()=>Gce});const Gce={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:Jse.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:Jse.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03},"&:active":{backgroundColor:Jse.GREYSCALE_0_10},"&:focus":{backgroundColor:Jse.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Jse.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Jse.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:Jse.GREYSCALE_0_30,"&:hover":{backgroundColor:Jse.GREYSCALE_0_0,borderColor:Jse.GREYSCALE_0_15},"& ~svg":{color:Jse.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${Jse.GREYSCALE_0_15}`}};uce({},{light:()=>Vce});const Vce={root:{color:Jse.GREEN,height:"24px","&$disabled":{color:Jse.GREYSCALE_0_15}},rail:{backgroundColor:Jse.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle,boxShadow:`inset 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Jse.GREYSCALE_0_05}`,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.WHITE,boxShadow:`0px 1px 2px 0px ${Jse.GREYSCALE_0_15}, 0px 0px 0px 1px ${Jse.GREYSCALE_0_05}`,"&:hover":{borderRadius:rle,boxShadow:`0 2px 4px 0 ${Jse.GREYSCALE_0_30}, 0 0 0 1px ${Jse.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Jse.GREYSCALE_0_15}, 0 0 0 1px ${Jse.GREYSCALE_0_06}, 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Jse.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:Jse.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Jse.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15},markLabel:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Jse.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};uce({},{light:()=>Uce});const Uce={root:{backgroundColor:Jse.WHITE,color:Jse.GREYSCALE_25}};uce({},{light:()=>Yce});const Yce={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:Jse.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:Jse.GREEN_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:Jse.BLUE_PALE,boxShadow:`0 0 0 3px ${Cle.alpha(Jse.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Jse.GREYSCALE_0_15,borderRadius:rle},thumb:{height:"16px",width:"16px",borderRadius:rle,backgroundColor:Jse.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};uce({},{light:()=>Kce});const Kce={root:{fontSize:ele,fontWeight:ale,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${Jse.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Jse.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:Jse.GREYSCALE_0_03,borderRadius:rle,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:Jse.GREYSCALE_25,"&$selected":{color:Jse.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};uce({},{light:()=>Xce});const Xce={root:{borderLeft:`1px solid ${Jse.GREYSCALE_85}`}};uce({},{light:()=>Qce});const Qce={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderRight:`1px solid ${Jse.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ale,backgroundColor:Jse.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Jse.GREYSCALE_98,borderBottom:`1px solid ${Jse.GREYSCALE_85}`}};uce({},{light:()=>Jce});const Jce={root:{borderBottom:`1px solid ${Jse.GREYSCALE_85}`,borderTop:`1px solid ${Jse.GREYSCALE_85}`}};uce({},{light:()=>Zce});const Zce={root:{backgroundColor:Jse.GREYSCALE_98}};uce({},{light:()=>ede});const ede={hover:{"&$selected":{backgroundColor:Jse.GREYSCALE_0_05,"&:hover":{backgroundColor:Jse.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Jse.GREYSCALE_0_03}}};uce({},{light:()=>tde});const tde={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};uce({},{light:()=>nde});const nde={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:ele,fontWeight:"bold"},indicator:{height:2}};uce({},{light:()=>rde});const rde={root:{height:32,lineHeight:16,width:32,fontSize:ele,borderRadius:rle,padding:"7px 16px",border:`1px solid ${Jse.GREYSCALE_0_15}`,backgroundColor:Jse.GREYSCALE_100_60,color:Jse.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Jse.GREYSCALE_0_03,border:`1px solid ${Jse.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Jse.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Jse.MISC_FOCUS_BORDER}`,border:`1px solid ${Jse.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:Jse.GREYSCALE_25,backgroundColor:Jse.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Jse.GREYSCALE_0_10,border:`1px solid ${Jse.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Zse,height:24,width:24,padding:7},sizeLarge:{fontSize:tle,height:40,width:40,lineHeight:20}};uce({},{light:()=>ode});const ode={root:{height:"32px",lineHeight:"16px",fontSize:ele,borderRadius:rle}};uce({},{light:()=>ide});const ide={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};uce({},{light:()=>ade});const ade={arrow:{color:Jse.GREYSCALE_20},tooltip:{backgroundColor:Jse.GREYSCALE_20,fontSize:Zse,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};function sde(e){var t;const n=((e="light",t=!1)=>Sle(e,t))();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),cH({...n,direction:e})}var lde,ude,cde,dde;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(lde||(lde={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(ude||(ude={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(cde||(cde={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(dde||(dde={}));const pde=e=>e?`${parseInt(e,10)}px`:void 0,fde=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?DF.Transparent:n}},hde=(e,t)=>+(parseInt(e,10)*TF*t+8).toFixed(2),mde=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?IF:"normal",gde=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",bde=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",yde=document.createElement("textarea");function vde(e){yde.value=e,document.body.appendChild(yde),yde.select(),yde.setSelectionRange(0,yde.value.length),document.execCommand("copy"),document.body.removeChild(yde)}yde.style.position="absolute",yde.style.left="-9999px",yde.setAttribute("readonly","");function xde(t){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,n)=>{const r=n.target,o=null==r?void 0:r.closest(`.${db}`);null!=o&&o.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>{vde(n)})):vde(n))})(o)}}),null==t||t.forEach((t=>{t(e,n,o)}))}))}const _de=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>tB(((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(qV,0,0,!0),await e.expandLeft(qV,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=r?r:""]),tid:"expand-dimension",id:"expand-dimension",select:i0({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:n0.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(qV,0,0,!0),await e.collapseLeft(qV,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=r?r:""]),tid:"collapse-dimension",id:"collapse-dimension",select:i0({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:n0.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))}),[e,t,n]),wde=(t,n)=>e.useMemo((()=>(({layout:e,flags:t})=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:s,snapshotData:l}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!l,h=null!==(n=null==l||null===(r=l.content)||void 0===r?void 0:r.rowsPerPage)&&void 0!==n?n:15e3,m={x:Math.min(e.qHyperCube.qSize.qcx,PF),y:Math.min(e.qHyperCube.qSize.qcy,h)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),y=b(jV),v=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:jV,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%x.length;return t?n:d.findIndex((e=>e===x[n]))},getDimensionInfo:e=>e===jV?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=v.get(e))&&void 0!==t?t:-1},size:m,isSnapshot:f,hasLimitedData:!f&&m.x<e.qHyperCube.qSize.qcx,hasData:m.x>0&&m.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:mb.Auto,pixels:hb.PixelsDefault,percentage:hb.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:t,flags:n})),[t,n]),Sde=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=rB(e);return t.current=e,t})(mY(o));return uB((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,o,u)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:s}}=e,{qTop:l,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return l<t.page*t.rowsPerPage||u<Math.min(r,s.qcx)||c<Math.min(n,s.qcy)})(i,r,o,u))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(PF,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),n>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,n,i.qHyperCube.qSize,r,o,u);return t?e.getHyperCubePivotData(qV,gY(t)):[]}return t.qPivotDataPages}),[i,a,e,n,r.page,r.rowsPerPage,l,s])},Cde=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),Ede=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:Cde({rowsPerPage:n,totalRowCount:e,page:t})}),kde=15,Rde=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{const t=e;if(!t.snapshotData||!o||t.snapshotData.content)return t;if("getHyperCubePivotData"in o){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=n,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-kde,0),u=Math.max(s+o-kde,s,0),c=PF-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=mY(n);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(n,i,r),c=gY(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};t.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(qV,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},t.snapshotData.object.size.w=r.width,t.snapshotData.object.size.h=r.height}return t})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var Mde={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const Ade=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(Mde).forEach((t=>{e.add(Mde[t])}))}(t)}),[t]),{translator:t,language:n}},Lde=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>fB(t)),[t]);return e.useEffect((()=>()=>{n.unmount()}),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),s=e.useApp(),l=e.useEmbed(),u=e.useKeyboard(),c=oB(),d=((t,n)=>{const[r]=uB((async()=>{if(void 0!==t&&!n.snapshotData&&"getEffectiveProperties"in t)return{...await t.getEffectiveProperties()}}),[t,n]),o=e.useMemo((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r]);return o})(a,i),p=wde(i,n),f=(t=>{const n=e.useInteractionState();return{...n,select:!!n.active&&!!n.select&&!t,active:!!n.active&&!t,scroll:!!n.active}})(p.isSnapshot),h=e.useSelections(),m=lB(i,r),{translator:g,language:b}=Ade(),{pageInfo:y,updatePageInfo:v}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[s,l]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...Ede(o.qcy,e,a)}})),u=t.layout.qHyperCube.qSize.qcy;return e.useEffect((()=>{l((e=>({...e,...Ede(u,e.page,a),shouldShowPagination:u>t.size.y&&!i})))}),[u,t.size.y,l,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=Cde({...s,page:e});l({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>{l({...s,...e,rowsOnCurrentPage:Cde({...s,...e})})}}})(p,c),x=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,s,l,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(l=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==l?l:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,c),_=Rde({rect:e.useRect(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,S]=Sde({model:a,layoutService:p,viewService:x,pageInfo:y,rect:_}),C=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,s,l,u,c,d,p,f,h,m,g,b,y,v,x,_,w,S,C,E,k,R,M,A,L,I,P,T,D,O,z,N,q,j,F,B,$,W,H,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[lde.LineClamp])&&void 0!==i?i:oe(ude.Grid,cde.Grid,dde.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(s=null==re?void 0:re[lde.ColumnLineClamp])&&void 0!==s?s:oe(ude.Grid,cde.Grid,dde.ColumnLineClamp))&&void 0!==a?a:1):1,se=null!==(l=null!==(u=fde(e,null==Q?void 0:Q[lde.Background]))&&void 0!==u?u:oe(ude.Dimension,cde.LabelName,dde.BackgroundColor))&&void 0!==l?l:DF.Transparent,le={header:{fontSize:null!==(c=null!==(d=pde(null==Q?void 0:Q[lde.FontSize]))&&void 0!==d?d:oe(ude.Dimension,cde.LabelName,dde.FontSize))&&void 0!==c?c:AF,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[lde.FontFamily])&&void 0!==f?f:oe(ude.Dimension,cde.LabelName,dde.FontFamily))&&void 0!==p?p:LF,fontWeight:mde(null==Q?void 0:Q[lde.FontStyle],IF),fontStyle:gde(null==Q?void 0:Q[lde.FontStyle]),textDecoration:bde(null==Q?void 0:Q[lde.FontStyle]),color:null!==(h=null!==(m=fde(e,null==Q?void 0:Q[lde.FontColor]))&&void 0!==m?m:oe(ude.Dimension,cde.LabelName,dde.FontColor))&&void 0!==h?h:$q.TEXT,background:se,hoverBackground:bF(se,gb),activeBackground:bF(se,bb)},dimensionValues:{fontSize:null!==(g=null!==(b=pde(null==J?void 0:J[lde.FontSize]))&&void 0!==b?b:oe(ude.Dimension,cde.LabelValue,dde.FontSize))&&void 0!==g?g:AF,fontFamily:null!==(y=null!==(v=null==J?void 0:J[lde.FontFamily])&&void 0!==v?v:oe(ude.Dimension,cde.LabelValue,dde.FontFamily))&&void 0!==y?y:LF,fontWeight:mde(null==J?void 0:J[lde.FontStyle],void 0),fontStyle:gde(null==J?void 0:J[lde.FontStyle]),textDecoration:bde(null==J?void 0:J[lde.FontStyle]),color:null!==(x=null!==(_=fde(e,null==J?void 0:J[lde.FontColor]))&&void 0!==_?_:oe(ude.Dimension,cde.LabelValue,dde.FontColor))&&void 0!==x?x:$q.TEXT,background:null!==(w=null!==(S=fde(e,null==J?void 0:J[lde.Background]))&&void 0!==S?S:oe(ude.Dimension,cde.LabelValue,dde.BackgroundColor))&&void 0!==w?w:DF.Transparent},measureValues:{fontSize:null!==(C=null!==(E=pde(null==Z?void 0:Z[lde.FontSize]))&&void 0!==E?E:oe(ude.Measure,cde.LabelValue,dde.FontSize))&&void 0!==C?C:AF,fontFamily:null!==(k=null!==(R=null==Z?void 0:Z[lde.FontFamily])&&void 0!==R?R:oe(ude.Measure,cde.LabelValue,dde.FontFamily))&&void 0!==k?k:LF,fontWeight:mde(null==Z?void 0:Z[lde.FontStyle],"normal"),fontStyle:gde(null==Z?void 0:Z[lde.FontStyle]),textDecoration:bde(null==Z?void 0:Z[lde.FontStyle]),color:null!==(M=null!==(A=fde(e,null==Z?void 0:Z[lde.FontColor]))&&void 0!==A?A:oe(ude.Measure,cde.LabelValue,dde.FontColor))&&void 0!==M?M:DF.FontSecondary,background:null!==(L=null!==(I=fde(e,null==Z?void 0:Z[lde.Background]))&&void 0!==I?I:oe(ude.Measure,cde.LabelValue,dde.BackgroundColor))&&void 0!==L?L:DF.Transparent},measureLabels:{fontWeight:mde(null==ee?void 0:ee[lde.FontStyle],"normal"),fontStyle:gde(null==ee?void 0:ee[lde.FontStyle]),textDecoration:bde(null==ee?void 0:ee[lde.FontStyle]),color:null!==(P=null!==(T=fde(e,null==ee?void 0:ee[lde.FontColor]))&&void 0!==T?T:oe(ude.Measure,cde.LabelName,dde.FontColor))&&void 0!==P?P:DF.FontSecondary,background:null!==(D=null!==(O=fde(e,null==ee?void 0:ee[lde.Background]))&&void 0!==O?O:oe(ude.Measure,cde.LabelName,dde.BackgroundColor))&&void 0!==D?D:DF.Transparent},totalValues:{fontWeight:mde(null==te?void 0:te[lde.FontStyle],IF),fontStyle:gde(null==te?void 0:te[lde.FontStyle]),textDecoration:bde(null==te?void 0:te[lde.FontStyle]),color:null!==(z=null!==(N=fde(e,null==te?void 0:te[lde.FontColor]))&&void 0!==N?N:oe(ude.Total,cde.LabelValue,dde.FontColor))&&void 0!==z?z:$q.TEXT,background:null!==(q=null!==(j=fde(e,null==te?void 0:te[lde.Background]))&&void 0!==j?j:oe(ude.Total,cde.LabelValue,dde.BackgroundColor))&&void 0!==q?q:DF.Transparent},nullValues:{fontWeight:mde(null==ne?void 0:ne[lde.FontStyle],"normal"),fontStyle:gde(null==ne?void 0:ne[lde.FontStyle]),textDecoration:bde(null==ne?void 0:ne[lde.FontStyle]),color:null!==(F=null!==(B=fde(e,null==ne?void 0:ne[lde.FontColor]))&&void 0!==B?B:oe(ude.Null,cde.LabelValue,dde.FontColor))&&void 0!==F?F:$q.TEXT,background:null!==($=null!==(W=fde(e,null==ne?void 0:ne[lde.Background]))&&void 0!==W?W:oe(ude.Null,cde.LabelValue,dde.BackgroundColor))&&void 0!==$?$:DF.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(G=fde(e,null==re?void 0:re[lde.Border]))&&void 0!==G?G:oe(ude.Grid,cde.Grid,dde.BorderColor))&&void 0!==H?H:DF.DividerLight,divider:null!==(V=null!==(U=fde(e,null==re?void 0:re[lde.Divider]))&&void 0!==U?U:oe(ude.Grid,cde.Divider,dde.BorderColor))&&void 0!==V?V:DF.DividerDark,background:null!==(Y=null!==(K=fde(e,null==re?void 0:re[lde.Background]))&&void 0!==K?K:oe(ude.Grid,cde.Grid,dde.BackgroundColor))&&void 0!==Y?Y:DF.Transparent},selectedColors:gF(e)};return le.headerCellHeight=Math.max(hde(le.header.fontSize,ae),hde(le.dimensionValues.fontSize,ae),32),le.contentCellHeight=Math.max(hde(le.measureValues.fontSize,ie),hde(le.dimensionValues.fontSize,ie),24),le.dimensionValueTextHeight=hde(le.dimensionValues.fontSize,1),le})(m,p,n)),[m,p,n]),E=((e,t,n)=>{const[,r,o]=uB((async()=>{var t;const r=sj(n.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...r,...s,o,i,a,mB].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(m,i,t),k=e.useOptions(),R=t.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?k.direction:"ltr";xde([_de({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),e.useEffect((()=>{!S&&a&&!!w&&E&&((e,{selections:t,baseObjects:n,coreServices:r,nebulaObjects:o})=>{const i=sde(n.direction);e.render(ae.jsx(B.StrictMode,{children:ae.jsx(qH,{theme:i,children:ae.jsx(TV,{...o,children:ae.jsx(LV,{...n,children:ae.jsx(JX,{selections:t,children:ae.jsx(zV,{...r,children:ae.jsx(wY,{children:ae.jsx(Qse,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:_,pageInfo:y,qPivotDataPages:w,updatePageInfo:v,direction:R},nebulaObjects:{env:t,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:C,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,_,f,h,x,p,c,S,w,C,o,E,g,b,y,v,d,l,u,m,t,R])},Ide={version:"6.0.3",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};return function(e){return{qae:{properties:{initial:{...Ide,qHyperCubeDef:{...Ide.qHyperCubeDef,qIndentMode:!1}}},data:mv(e)},ext:ZF(e),component(){Lde(e)}}}}));
|