@fluentui/react-charting 5.19.20 → 5.19.22
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/CHANGELOG.json +43 -1
- package/CHANGELOG.md +22 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/AreaChart/AreaChart.base.js +1 -1
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.styles.js +2 -2
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js +1 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib/components/Legends/Legends.base.js +2 -3
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/Legends/Legends.styles.js +8 -4
- package/lib/components/Legends/Legends.styles.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +7 -7
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +1 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js +2 -8
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.styles.js +5 -5
- package/lib/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-amd/components/Legends/Legends.base.js +2 -3
- package/lib-amd/components/Legends/Legends.base.js.map +1 -1
- package/lib-amd/components/Legends/Legends.styles.js +8 -4
- package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +7 -7
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +2 -8
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.styles.js +5 -5
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js +2 -3
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.js +8 -4
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +7 -7
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +2 -8
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js +5 -5
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
var FluentUIReactCharting;!function(){"use strict";var t={1783:function(t,e,n){n.d(e,{WU:function(){return d},jH:function(){return h}});var r,i=n(4783),o=n(4116),a=n(3074);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var u,d,h,p=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];u=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=p.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",h=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(p.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function _(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,p=t.zero,_=t.width,y=t.comma,x=t.precision,b=t.trim,C=t.type;"n"===C?(y=!0,C="g"):l[C]||(void 0===x&&(x=12),b=!0,C="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",S="$"===c?u:/[%p]/.test(C)?g:"",A=l[C],L=/[defgprs%]/.test(C);function k(t){var o,s,l,c=E,u=S;if("c"===C)u=A(t)+u,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),x),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,u=("s"===C?f[8+r/3]:"")+u+(g&&"("===i?")":""),L)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){u=(46===l?d+t.slice(o+1):t.slice(o))+u,t=t.slice(0,o);break}}y&&!p&&(t=a(t,1/0));var k=c.length+t.length+u.length,T=k<_?new Array(_-k+1).join(e):"";switch(y&&p&&(t=a(T+t,T.length?_-u.length:1/0),T=""),n){case"<":t=c+t+u+T;break;case"=":t=c+T+t+u;break;case"^":t=T.slice(0,k=T.length>>1)+c+t+u+T.slice(k);break;default:t=T+c+t+u}return h(t)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),k.toString=function(){return t+""},k}return{format:_,formatPrefix:function(t,e){var n=_(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(t){return n(a*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=u.format,h=u.formatPrefix},4783:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(3074);function i(t){return(t=(0,r.Z)(Math.abs(t)))?t[1]:NaN}},3074:function(t,e,n){function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},4116:function(t,e,n){n.d(e,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},8485:function(t,e,n){n.d(e,{Eb:function(){return ft},B:function(){return et},Ys:function(){return dt},td:function(){return gt}});var r="http://www.w3.org/1999/xhtml",i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function o(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t}function a(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r&&e.documentElement.namespaceURI===r?e.createElement(t):e.createElementNS(n,t)}}function s(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function l(t){var e=o(t);return(e.local?s:a)(e)}function c(){}function u(t){return null==t?c:function(){return this.querySelector(t)}}function d(){return[]}var h=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var p=document.documentElement;if(!p.matches){var f=p.webkitMatchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector;h=function(t){return function(){return f.call(this,t)}}}}var g=h;function m(t){return new Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function _(t,e,n,r,i,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new v(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function y(t,e,n,r,i,o,a){var s,l,c,u={},d=e.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,e),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(t,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new v(t,o[s]);for(s=0;s<d;++s)(l=e[s])&&u[p[s]]===l&&(i[s]=l)}function x(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function b(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E(t,e){return function(){this.setAttribute(t,e)}}function S(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function L(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function k(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function T(t){return function(){this.style.removeProperty(t)}}function w(t,e,n){return function(){this.style.setProperty(t,e,n)}}function D(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function M(t){return function(){delete this[t]}}function P(t,e){return function(){this[t]=e}}function F(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function I(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=I(t.getAttribute("class")||"")}function O(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function H(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function B(t){return function(){O(this,t)}}function R(t){return function(){H(this,t)}}function z(t,e){return function(){(e.apply(this,arguments)?O:H)(this,t)}}function W(){this.textContent=""}function Y(t){return function(){this.textContent=t}}function Z(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function q(){this.innerHTML=""}function X(t){return function(){this.innerHTML=t}}function U(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function j(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(){return null}function $(){var t=this.parentNode;t&&t.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}V.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tt={},et=null;function nt(t,e,n){return t=rt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function rt(t,e,n){return function(r){var i=et;et=r;try{t.call(this,this.__data__,e,n)}finally{et=i}}}function it(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function ot(t,e,n){var r=tt.hasOwnProperty(t.type)?nt:rt;return function(i,o,a){var s,l=this.__on,c=r(e,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function at(t,e,n){var r=k(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function st(t,e){return function(){return at(this,t,e)}}function lt(t,e){return function(){return at(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tt={mouseenter:"mouseover",mouseleave:"mouseout"}));var ct=[null];function ut(t,e){this._groups=t,this._parents=e}function dt(t){return"string"==typeof t?new ut([[document.querySelector(t)]],[document.documentElement]):new ut([[t]],ct)}ut.prototype=function(){return new ut([[document.documentElement]],ct)}.prototype={constructor:ut,select:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,c=r[i]=new Array(l),d=0;d<l;++d)(o=s[d])&&(a=t.call(o,o.__data__,d,s))&&("__data__"in o&&(a.__data__=o.__data__),c[d]=a);return new ut(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?d:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new ut(r,i)},filter:function(t){"function"!=typeof t&&(t=g(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new ut(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,r=e?y:_,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=t.call(d,d&&d.__data__,u,i),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,e);for(var x,b,C=0,E=0;C<g;++C)if(x=m[C]){for(C>=E&&(E=C+1);!(b=v[E])&&++E<g;);x._next=b||null}}return(s=new ut(s,i))._enter=l,s._exit=c,s},enter:function(){return new ut(this._enter||this._groups.map(m),this._parents)},exit:function(){return new ut(this._exit||this._groups.map(m),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=e[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=e[s];return new ut(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=x);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new ut(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=o(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?C:b:"function"==typeof e?n.local?L:A:n.local?S:E)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?T:"function"==typeof e?D:w)(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||k(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?M:"function"==typeof e?F:P)(t,e)):this.node()[t]},classed:function(t,e){var n=I(t+"");if(arguments.length<2){for(var r=N(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?z:e?B:R)(n,e))},text:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?Z:Y)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?q:("function"==typeof t?U:X)(t)):this.node().innerHTML},raise:function(){return this.each(j)},lower:function(){return this.each(G)},append:function(t){var e="function"==typeof t?t:l(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:l(t),r=null==e?K:"function"==typeof e?e:u(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($)},clone:function(t){return this.select(t?Q:J)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?ot:it,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?lt:st)(t,e))}};var ht=0;function pt(){this._="@"+(++ht).toString(36)}function ft(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function gt(t){return"string"==typeof t?new ut([document.querySelectorAll(t)],[document.documentElement]):new ut([null==t?[]:t],ct)}pt.prototype=function(){return new pt}.prototype={constructor:pt,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},731:function(t,e,n){var r,i,o;n.d(e,{i$:function(){return i}}),o={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"]},r=(0,n(6465).Z)(o),i=r.format,r.parse,r.utcFormat,r.utcParse},6465:function(t,e,n){n.d(e,{Z:function(){return h}});var r=n(3787),i=n(2605),o=n(2167),a=n(3645),s=n(9507),l=n(2527);function c(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function u(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function d(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function h(t){var e=t.dateTime,n=t.date,s=t.time,l=t.periods,h=t.days,f=t.shortDays,g=t.months,m=t.shortMonths,v=y(l),_=x(l),J=y(h),_t=x(h),Dt=y(f),Mt=x(f),Pt=y(g),Ft=x(g),It=y(m),Nt=x(m),Vt={a:function(t){return f[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:null,d:z,e:z,f:X,g:rt,G:ot,H:W,I:Y,j:Z,L:q,m:U,M:j,p:function(t){return l[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Tt,s:wt,S:G,u:K,U:$,V:Q,w:tt,W:et,x:null,X:null,y:nt,Y:it,Z:at,"%":kt},Ot={a:function(t){return f[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return m[t.getUTCMonth()]},B:function(t){return g[t.getUTCMonth()]},c:null,d:st,e:st,f:ht,g:Et,G:At,H:lt,I:ct,j:ut,L:dt,m:pt,M:ft,p:function(t){return l[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Tt,s:wt,S:gt,u:mt,U:vt,V:yt,w:xt,W:bt,x:null,X:null,y:Ct,Y:St,Z:Lt,"%":kt},Ht={a:function(t,e,n){var r=Dt.exec(e.slice(n));return r?(t.w=Mt.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=J.exec(e.slice(n));return r?(t.w=_t.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=It.exec(e.slice(n));return r?(t.m=Nt.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.m=Ft.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return zt(t,e,n,r)},d:M,e:M,f:O,g:k,G:L,H:F,I:F,j:P,L:V,m:D,M:I,p:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.p=_.get(r[0].toLowerCase()),n+r[0].length):-1},q:w,Q:B,s:R,S:N,u:C,U:E,V:S,w:b,W:A,x:function(t,e,r){return zt(t,n,e,r)},X:function(t,e,n){return zt(t,s,e,n)},y:k,Y:L,Z:T,"%":H};function Bt(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=p[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function Rt(t,e){return function(n){var s,l,h=d(1900,void 0,1);if(zt(h,t,n+="",0)!=n.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(e&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(l=(s=u(d(h.y,0,1))).getUTCDay(),s=l>4||0===l?r.l6.ceil(s):(0,r.l6)(s),s=i.Z.offset(s,7*(h.V-1)),h.y=s.getUTCFullYear(),h.m=s.getUTCMonth(),h.d=s.getUTCDate()+(h.w+6)%7):(l=(s=c(d(h.y,0,1))).getDay(),s=l>4||0===l?o.wA.ceil(s):(0,o.wA)(s),s=a.Z.offset(s,7*(h.V-1)),h.y=s.getFullYear(),h.m=s.getMonth(),h.d=s.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),l="Z"in h?u(d(h.y,0,1)).getUTCDay():c(d(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(l+5)%7:h.w+7*h.U-(l+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,u(h)):c(h)}}function zt(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Ht[i in p?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Vt.x=Bt(n,Vt),Vt.X=Bt(s,Vt),Vt.c=Bt(e,Vt),Ot.x=Bt(n,Ot),Ot.X=Bt(s,Ot),Ot.c=Bt(e,Ot),{format:function(t){var e=Bt(t+="",Vt);return e.toString=function(){return t},e},parse:function(t){var e=Rt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Bt(t+="",Ot);return e.toString=function(){return t},e},utcParse:function(t){var e=Rt(t+="",!0);return e.toString=function(){return t},e}}}var p={"-":"",_:" ",0:"0"},f=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function v(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function _(t){return t.replace(m,"\\$&")}function y(t){return new RegExp("^(?:"+t.map(_).join("|")+")","i")}function x(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function b(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function C(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function E(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function S(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function A(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function L(t,e,n){var r=f.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function k(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function w(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function D(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function M(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function P(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function F(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function I(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function N(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function V(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function O(t,e,n){var r=f.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function H(t,e,n){var r=g.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function B(t,e,n){var r=f.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function R(t,e,n){var r=f.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function z(t,e){return v(t.getDate(),e,2)}function W(t,e){return v(t.getHours(),e,2)}function Y(t,e){return v(t.getHours()%12||12,e,2)}function Z(t,e){return v(1+a.Z.count((0,s.Z)(t),t),e,3)}function q(t,e){return v(t.getMilliseconds(),e,3)}function X(t,e){return q(t,e)+"000"}function U(t,e){return v(t.getMonth()+1,e,2)}function j(t,e){return v(t.getMinutes(),e,2)}function G(t,e){return v(t.getSeconds(),e,2)}function K(t){var e=t.getDay();return 0===e?7:e}function $(t,e){return v(o.OM.count((0,s.Z)(t)-1,t),e,2)}function J(t){var e=t.getDay();return e>=4||0===e?(0,o.bL)(t):o.bL.ceil(t)}function Q(t,e){return t=J(t),v(o.bL.count((0,s.Z)(t),t)+(4===(0,s.Z)(t).getDay()),e,2)}function tt(t){return t.getDay()}function et(t,e){return v(o.wA.count((0,s.Z)(t)-1,t),e,2)}function nt(t,e){return v(t.getFullYear()%100,e,2)}function rt(t,e){return v((t=J(t)).getFullYear()%100,e,2)}function it(t,e){return v(t.getFullYear()%1e4,e,4)}function ot(t,e){var n=t.getDay();return v((t=n>=4||0===n?(0,o.bL)(t):o.bL.ceil(t)).getFullYear()%1e4,e,4)}function at(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+v(e/60|0,"0",2)+v(e%60,"0",2)}function st(t,e){return v(t.getUTCDate(),e,2)}function lt(t,e){return v(t.getUTCHours(),e,2)}function ct(t,e){return v(t.getUTCHours()%12||12,e,2)}function ut(t,e){return v(1+i.Z.count((0,l.Z)(t),t),e,3)}function dt(t,e){return v(t.getUTCMilliseconds(),e,3)}function ht(t,e){return dt(t,e)+"000"}function pt(t,e){return v(t.getUTCMonth()+1,e,2)}function ft(t,e){return v(t.getUTCMinutes(),e,2)}function gt(t,e){return v(t.getUTCSeconds(),e,2)}function mt(t){var e=t.getUTCDay();return 0===e?7:e}function vt(t,e){return v(r.Ox.count((0,l.Z)(t)-1,t),e,2)}function _t(t){var e=t.getUTCDay();return e>=4||0===e?(0,r.hB)(t):r.hB.ceil(t)}function yt(t,e){return t=_t(t),v(r.hB.count((0,l.Z)(t),t)+(4===(0,l.Z)(t).getUTCDay()),e,2)}function xt(t){return t.getUTCDay()}function bt(t,e){return v(r.l6.count((0,l.Z)(t)-1,t),e,2)}function Ct(t,e){return v(t.getUTCFullYear()%100,e,2)}function Et(t,e){return v((t=_t(t)).getUTCFullYear()%100,e,2)}function St(t,e){return v(t.getUTCFullYear()%1e4,e,4)}function At(t,e){var n=t.getUTCDay();return v((t=n>=4||0===n?(0,r.hB)(t):r.hB.ceil(t)).getUTCFullYear()%1e4,e,4)}function Lt(){return"+0000"}function kt(){return"%"}function Tt(t){return+t}function wt(t){return Math.floor(+t/1e3)}},3645:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.UD),(t=>t.getDate()-1));e.Z=o,o.range},4827:function(t,e,n){n.d(e,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return c},yB:function(){return i}});const r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,c=365*a},5401:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym-t.getMinutes()*i.yB)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getHours()}));e.Z=o,o.range},4315:function(t,e,n){n.d(e,{Z:function(){return o}});var r=new Date,i=new Date;function o(t,e,n,a){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,r,i){var o,a=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return a},s.filter=function(n){return o((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}},4189:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getMinutes()}));e.Z=o,o.range},9604:function(t,e,n){var r=(0,n(4315).Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.Z=r,r.range},87:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*i.Ym)}),(function(t,e){return(e-t)/i.Ym}),(function(t){return t.getUTCSeconds()}));e.Z=o,o.range},2605:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.UD}),(function(t){return t.getUTCDate()-1}));e.Z=o,o.range},3787:function(t,e,n){n.d(e,{Ox:function(){return a},hB:function(){return u},l6:function(){return s}});var r=n(4315),i=n(4827);function o(t){return(0,r.Z)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.iM}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),d=o(5),h=o(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},2527:function(t,e,n){var r=n(4315),i=(0,r.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.Z=i,i.range},2167:function(t,e,n){n.d(e,{OM:function(){return a},bL:function(){return u},wA:function(){return s}});var r=n(4315),i=n(4827);function o(t){return(0,r.Z)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.iM}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),d=o(5),h=o(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},9507:function(t,e,n){var r=n(4315),i=(0,r.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.Z=i,i.range},9939:function(t,e,n){n.d(e,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create},4473:function(t,e,n){function r(t){o!==t&&(o=t)}function i(){return void 0===o&&(o="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),o}var o;function a(){return{rtl:i()}}n.d(e,{Eo:function(){return a},ok:function(){return r}}),o=i()},5499:function(t,e,n){n.d(e,{Y:function(){return l}});var r,i=n(9939),o="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,e){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,i.pi)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(n=null==e?void 0:e.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==e?void 0:e.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==e?void 0:e.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==e?void 0:e.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==e?void 0:e.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(r=s[o])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var e=(null==s?void 0:s.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);r=n,s[o]=n}return r},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,i.pi)((0,i.pi)({},this._config),t)},t.prototype.onReset=function(t){var e=this;return this._onResetCallbacks.push(t),function(){e._onResetCallbacks=e._onResetCallbacks.filter((function(e){return e!==t}))}},t.prototype.onInsertRule=function(t){var e=this;return this._onInsertRuleCallbacks.push(t),function(){e._onInsertRuleCallbacks=e._onInsertRuleCallbacks.filter((function(e){return e!==t}))}},t.prototype.getClassName=function(t){var e=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(e?e+"-":"").concat(n,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),r)switch(n){case 1:var i=r.sheet;try{i.insertRule(t,i.cssRules.length)}catch(t){}break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(t){return t()}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style"),n=null;e.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&e.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:t.childNodes[0]}return t.insertBefore(e,t.contains(n)?n:null),this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},4270:function(t,e,n){n.d(e,{m:function(){return i}});var r=n(9939);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var n={},o={},a=0,s=t;a<s.length;a++){var l=s[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var u=l.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(o.hasOwnProperty(d)?o[d].push(u[d]):o[d]=[u[d]]);continue}var h=n[c],p=l[c];n[c]=void 0===h?p:(0,r.ev)((0,r.ev)([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(o).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(t){if(o.hasOwnProperty(t)){var e=o[t];f[t]=function(t){return i.apply(void 0,e.map((function(e){return"function"==typeof e?e(t):e})))}}};for(var d in o)g(d)}return n}},3802:function(t,e,n){n.d(e,{U:function(){return i}});var r=n(5499);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],i=[],o=r.Y.getInstance();return function t(e){for(var r=0,a=e;r<a.length;r++){var s=a[r];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=o.argsFromClassName(s);l?t(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&i.push(s)}}(t),{classes:n,objects:i}}},13:function(t,e,n){n.d(e,{y:function(){return a}});var r=n(3802),i=n(4473),o=n(7373);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(t,e){var n=t instanceof Array?t:[t],i=(0,r.U)(n),a=i.classes,s=i.objects;return s.length&&a.push((0,o.AE)(e||{},s)),a.join(" ")}(t,(0,i.Eo)())}},7373:function(t,e,n){n.d(e,{Jh:function(){return k},dH:function(){return A},AE:function(){return T},aj:function(){return L}});var r,i=n(9939),o=n(5499),a={},s={"user-select":1};function l(t,e){var n=function(){var t;if(!r){var e="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,i=null===(t=null==n?void 0:n.userAgent)||void 0===t?void 0:t.toLowerCase();r=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}(),i=t[e];if(s[i]){var o=t[e+1];s[i]&&(n.isWebkit&&t.push("-webkit-"+i,o),n.isMoz&&t.push("-moz-"+i,o),n.isMs&&t.push("-ms-"+i,o),n.isOpera&&t.push("-o-"+i,o))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var i=u.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";t[e+1]="".concat(r).concat(a)}}var h="left",p="right",f="@noflip",g=((c={})[h]=p,c[p]=h,c),m={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function v(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var i=e[n+1];if("string"==typeof i&&i.indexOf(f)>=0)e[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(h)>=0)e[n]=r.replace(h,p);else if(r.indexOf(p)>=0)e[n]=r.replace(p,h);else if(String(i).indexOf(h)>=0)e[n+1]=i.replace(h,p);else if(String(i).indexOf(p)>=0)e[n+1]=i.replace(p,h);else if(g[r])e[n]=g[r];else if(m[i])e[n+1]=m[i];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return"".concat(e[0]," ").concat(e[3]," ").concat(e[2]," ").concat(e[1])}return t}(i);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}var _="displayName",y=/\:global\((.+?)\)/g;function x(t,e){return t.indexOf(":global(")>=0?t.replace(y,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function b(t,e,n,r){void 0===e&&(e={__order:[]}),0===n.indexOf("@")?C([r],e,n=n+"{"+t):n.indexOf(",")>-1?function(t){if(!y.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],i=e[2];return t.slice(0,n)+i+t.slice(r)}),t)}(n).split(",").map((function(t){return t.trim()})).forEach((function(n){return C([r],e,x(n,t))})):C([r],e,x(n,t))}function C(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=o.Y.getInstance(),i=e[n];i||(i={},e[n]=i,e.__order.push(n));for(var a=0,s=t;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&C(c,e,n)}else if(Array.isArray(l))C(l,e,n);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var h=l.selectors;for(var p in h)h.hasOwnProperty(p)&&b(n,e,p,h[p])}else"object"==typeof d?null!==d&&b(n,e,u,d):void 0!==d&&("margin"===u||"padding"===u?E(i,u,d):i[u]=d)}}return e}function E(t,e,n){var r="string"==typeof n?function(t){for(var e=[],n=0,r=0,i=0;i<t.length;i++)switch(t[i]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(i>n&&e.push(t.substring(n,i)),n=i+1)}return n<t.length&&e.push(t.substring(n)),e}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(t){return t+" !important"}))),t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function S(t,e){return e<=0?"":1===e?t:t+S(t,e-1)}function A(t,e){if(!e)return"";var n,r,i,o=[];for(var s in e)e.hasOwnProperty(s)&&s!==_&&void 0!==e[s]&&o.push(s,e[s]);for(var c=0;c<o.length;c+=2)i=void 0,"-"!==(i=(n=o)[r=c]).charAt(0)&&(n[r]=a[i]=a[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),d(o,c),v(t,o,c),l(o,c);for(c=1;c<o.length;c+=4)o.splice(c,1,":",o[c],";");return o.join("")}function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=C(e),i=function(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,i=0,o=e.__order;i<o.length;i++){var a=o[i];n.push(a);var s=e[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(t,r);if(i){var a=o.Y.getInstance(),s={className:a.classNameFromKey(i),key:i,args:e};if(!s.className){s.className=a.getClassName(function(t){var e=t&&t["&"];return e?e.displayName:void 0}(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var d=u[c];l.push(d,A(t,r[d]))}s.rulesToInsert=l}return s}}function k(t,e){void 0===e&&(e=1);var n=o.Y.getInstance(),r=t.className,i=t.key,a=t.args,s=t.rulesToInsert;if(s){for(var l=0;l<s.length;l+=2){var c=s[l+1];if(c){var u=s[l];u=u.replace(/&/g,S(".".concat(t.className),e));var d="".concat(u,"{").concat(c,"}").concat(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,i,a,s)}}function T(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=L.apply(void 0,(0,i.ev)([t],e,!1));return r?(k(r,t.specificityMultiplier),r.className):""}},8024:function(t,e,n){n.r(e),n.d(e,{ChartHoverCard:function(){return d}});var r=n(9085),i=n(9939),o=n(7363),a=n(8461),s=n(3813),l=(0,a.y)(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.color,n=t.Legend,r=t.XValue,i=t.YValue,a=t.styles,c=t.theme,u=t.ratio,d=t.descriptionMessage,h=t.culture;return this._classNames=l(a,{theme:c,color:e,XValue:r,isRatioPresent:!!u}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},r," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,s.Ts)(n,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,s.Ts)(i,h))),!!u&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,s.Ts)(u[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,s.Ts)(u[1],h))))),!!d&&o.createElement("div",{className:this._classNames.descriptionMessage},d))},e}(o.Component),u=n(1286),d=(0,r.z)(c,u.n)},1286:function(t,e,n){n.d(e,{n:function(){return i}});var r=n(1786),i=function(t){var e=t.color,n=t.XValue,i=t.theme,o=t.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:i.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i.fonts.small,{lineHeight:"16px",opacity:"0.8",color:i.semanticColors.bodySubtext}],calloutBlockContainer:[i.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:i.semanticColors.bodyText,borderLeft:"4px solid ".concat(e)}],calloutlegendText:[i.fonts.small,{lineHeight:"16px",color:i.semanticColors.bodyText}],calloutContentY:[i.fonts.xxLarge,{color:e||i.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[i.fonts.small,{marginLeft:"6px",color:i.semanticColors.bodyText}],numerator:{fontWeight:r.lq.bold},denominator:{fontWeight:r.lq.semibold},descriptionMessage:[i.fonts.small,{color:i.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(i.semanticColors.menuDivider)}]}}},3813:function(t,e,n){n.d(e,{$X:function(){return b},jc:function(){return it},wo:function(){return rt},xl:function(){return C},OH:function(){return E},yE:function(){return J},Wx:function(){return j},Ts:function(){return lt},s8:function(){return W},OX:function(){return R},R:function(){return Y},Tj:function(){return q},Pu:function(){return G},eQ:function(){return Z},Ay:function(){return K},cE:function(){return dt},ey:function(){return st},dr:function(){return et},As:function(){return nt},SY:function(){return ot},V4:function(){return tt},Ml:function(){return at},zs:function(){return ct},$V:function(){return Q},nX:function(){return $},yQ:function(){return ut}});var r=n(9939),i=Array.prototype.slice;function o(t){return t}var a=1,s=2,l=3,c=4,u=1e-6;function d(t){return"translate("+(t+.5)+",0)"}function h(t){return"translate(0,"+(t+.5)+")"}function p(t){return function(e){return+t(e)}}function f(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function g(){return!this.__axis}function m(t,e){var n=[],r=null,m=null,v=6,_=6,y=3,x=t===a||t===c?-1:1,b=t===c||t===s?"x":"y",C=t===a||t===l?d:h;function E(i){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,h=null==m?e.tickFormat?e.tickFormat.apply(e,n):o:m,E=Math.max(v,0)+y,S=e.range(),A=+S[0]+.5,L=+S[S.length-1]+.5,k=(e.bandwidth?f:p)(e.copy()),T=i.selection?i.selection():i,w=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,e).order(),M=D.exit(),P=D.enter().append("g").attr("class","tick"),F=D.select("line"),I=D.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),D=D.merge(P),F=F.merge(P.append("line").attr("stroke","#000").attr(b+"2",x*v)),I=I.merge(P.append("text").attr("fill","#000").attr(b,x*E).attr("dy",t===a?"0em":t===l?"0.71em":"0.32em")),i!==T&&(w=w.transition(i),D=D.transition(i),F=F.transition(i),I=I.transition(i),M=M.transition(i).attr("opacity",u).attr("transform",(function(t){return isFinite(t=k(t))?C(t):this.getAttribute("transform")})),P.attr("opacity",u).attr("transform",(function(t){var e=this.parentNode.__axis;return C(e&&isFinite(e=e(t))?e:k(t))}))),M.remove(),w.attr("d",t===c||t==s?"M"+x*_+","+A+"H0.5V"+L+"H"+x*_:"M"+A+","+x*_+"V0.5H"+L+"V"+x*_),D.attr("opacity",1).attr("transform",(function(t){return C(k(t))})),F.attr(b+"2",x*v),I.attr(b,x*E).text(h),T.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===s?"start":t===c?"end":"middle"),T.each((function(){this.__axis=k}))}return E.scale=function(t){return arguments.length?(e=t,E):e},E.ticks=function(){return n=i.call(arguments),E},E.tickArguments=function(t){return arguments.length?(n=null==t?[]:i.call(t),E):n.slice()},E.tickValues=function(t){return arguments.length?(r=null==t?null:i.call(t),E):r&&r.slice()},E.tickFormat=function(t){return arguments.length?(m=t,E):m},E.tickSize=function(t){return arguments.length?(v=_=+t,E):v},E.tickSizeInner=function(t){return arguments.length?(v=+t,E):v},E.tickSizeOuter=function(t){return arguments.length?(_=+t,E):_},E.tickPadding=function(t){return arguments.length?(y=+t,E):y},E}function v(t){return m(s,t)}function _(t){return m(l,t)}function y(t){return m(c,t)}var x,b,C,E,S=n(5561),A=n(8957),L=n(8815),k=n(8639),T=n(6775),w=n(8485),D=n(1783),M=n(731),P=n(6465),F=n(87),I=n(4189),N=n(5401),V=n(3645),O=n(9604),H=n(2167),B=n(9507);function R(t,e,n){var r=t.domainNRangeValues,i=t.showRoundOffXTickValues,o=void 0!==i&&i,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,u=t.xAxisCount,d=void 0===u?6:u,h=t.xAxisElement,p=(0,L.Z)().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);o&&p.nice();var f=_(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(t,e){var r="number"==typeof t?t:t.valueOf();return lt(r,n)}));e===b.HorizontalBarChartWithAxis&&f.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&(0,w.Ys)(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function z(t,e){var n=e?e.format:M.i$,r=n(".%L"),i=n(":%S"),o=n("%I:%M"),a=n("%I %p"),s=n("%a %d"),l=n("%b %d"),c=n("%B"),u=n("%Y");return((0,F.Z)(t)<t?r:(0,I.Z)(t)<t?i:(0,N.Z)(t)<t?o:(0,V.Z)(t)<t?a:(0,O.Z)(t)<t?(0,H.OM)(t)<t?s:l:(0,B.Z)(t)<t?c:u)(t)}function W(t,e,n,r,i,o){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,u=void 0===c?6:c,d=t.xAxistickSize,h=void 0===d?6:d,p=t.xAxisCount,f=void 0===p?6:p,g=(0,k.Z)().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=_(g).tickSize(h).tickPadding(u).ticks(f);if(o)m.tickFormat((function(t,e){return o(t)}));else if(n&&r)m.tickFormat((function(t,e){return t.toLocaleString(n,r)}));else if(i){var v=(0,P.Z)(i);m.tickFormat((function(t,e){return z(t,v)}))}e.tickValues&&m.tickValues(e.tickValues),void 0===n&&e.tickFormat&&m.tickFormat((0,M.i$)(e.tickFormat)),l&&(0,w.Ys)(l).call(m).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=e.tickValues)&&void 0!==a?a:g.ticks(f)).map((function(t,e){var n=m.tickFormat();return n?n(t,e):z(t)}));return{xScale:g,tickValues:y}}function Y(t,e,n,r){var i=t.domainNRangeValues,o=t.xAxisCount,a=void 0===o?6:o,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,u=void 0===c?10:c,d=t.xAxisPadding,h=void 0===d?.1:d,p=t.xAxisInnerPadding,f=t.xAxisOuterPadding,g=(0,T.Z)().domain(n).range([i.rStartValue,i.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=_(g).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(t,e){return lt(n[e],r)}));return t.xAxisElement&&(0,w.Ys)(t.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}function Z(t,e,n,r,i,o,a){return void 0===a&&(a=!1),r===b.HorizontalBarChartWithAxis?function(t,e,n,r){var i=t.yMinMaxValues,o=void 0===i?{startValue:0,endValue:0}:i,a=t.yAxisElement,s=void 0===a?null:a,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.margins,f=t.tickPadding,g=void 0===f?12:f,m=t.maxOfYVal,_=void 0===m?0:m,x=t.yAxisTickFormat,b=t.yAxisTickCount,C=void 0===b?4:b,E=_||o.endValue,S=E>c?E:c,A=o.startValue<d?0:d,k=(0,L.Z)().domain([A,S]).range([h-p.bottom,p.top]),T=(e?v(k):y(k)).tickPadding(g).ticks(C);return x?T.tickFormat(x):T.tickFormat((0,D.WU)(".2~s")),s&&(0,w.Ys)(s).call(T).selectAll("text").attr("aria-hidden","true"),k}(t,e):function(t,e,n,r,i){void 0===i&&(i=!1);var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,s=t.yAxisElement,l=void 0===s?null:s,c=t.yMaxValue,u=void 0===c?0:c,d=t.yMinValue,h=void 0===d?0:d,p=t.containerHeight,f=t.containerWidth,g=t.margins,m=t.tickPadding,_=void 0===m?12:m,x=t.maxOfYVal,b=void 0===x?0:x,C=t.yAxisTickFormat,E=t.yAxisTickCount,S=void 0===E?4:E,A=t.eventAnnotationProps,k=t.eventLabelHeight,T=b||a.endValue,M=T>u?T:u,P=a.startValue<h?0:h,F=function(t,e,n,r){for(var i=r||(t-e)/n>=1?Math.ceil((t-e)/n):(t-e)/n,o=[e,e+i];o[o.length-1]<t;)o.push(o[o.length-1]+i);return o}(M,P,S,r),I=(0,L.Z)().domain([P,F[F.length-1]]).range([p-g.bottom,g.top+(A?k:0)]),N=(!e&&i||e&&!i?v(I):y(I)).tickPadding(_).tickValues(F).tickSizeInner(-(f-g.left-g.right));return C?N.tickFormat(C):N.tickFormat((0,D.WU)(".2~s")),l&&(0,w.Ys)(l).call(N).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=F,I}(t,e,n,o,a)}!function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(b||(b={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(C||(C={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(E||(E={}));var q=function(t,e,n,r,i,o){return r===b.HorizontalBarChartWithAxis?X(t,e,n,i,o):U(t,e,n)},X=function(t,e,n,r,i){var o=t.containerHeight,a=t.tickPadding,s=void 0===a?12:a,l=t.margins,c=t.yAxisTickFormat,u=t.yAxisElement,d=(0,T.Z)().domain(e).range([o-l.bottom-r/2,l.top+r/2]),h=(n?v(d):y(d)).tickPadding(s).ticks(e);return c&&h.tickFormat(c),u&&(0,w.Ys)(u).call(h).selectAll("text"),d},U=function(t,e,n){var r=t.containerHeight,i=t.tickPadding,o=void 0===i?12:i,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,u=void 0===c?0:c,d=(0,T.Z)().domain(e).range([r-a.bottom,a.top]).padding(u),h=(n?v(d):y(d)).tickPadding(o).tickValues(e).tickSize(0);return s&&h.tickFormat(s),l&&(0,w.Ys)(l).call(h).selectAll("text"),d};function j(t){var e=[];t.forEach((function(t){var n=t.data.filter((function(t){return!t.hideCallout})).map((function(e){return(0,r.pi)((0,r.pi)({},e),{legend:t.legend,color:t.color,index:t.index})}));e=e.concat(n)}));var n={};return e.forEach((function(t){var e=t.x instanceof Date?t.x.getTime():t.x;e in n?n[e].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):n[e]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(n).map((function(t){return{x:Number(t),values:n[t]}}))}function G(t){var e=t.node,n=t.xAxis,r=t.noOfCharsToTruncate,i=t.showXAxisLablesTooltip;if(null!==e){var o=(0,w.Ys)(e).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var t=(0,w.Ys)(this),e=t.text(),n="".concat(t.text().slice(0,r),"..."),l=t.text().length,c=t.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=t.attr("y"),f=parseFloat(t.attr("dy")),g=t.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",e);if(i&&l>r)g=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(e);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),e=t&&t.getBoundingClientRect(),n=e&&e.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}function K(t,e,n,r,i,o){null!==t&&(0,w.Ys)(t).call(e).selectAll(".tick text").each((function(){var t=(0,w.Ys)(this),e=t.text(),i=o?"...".concat(t.text().slice(0,n)):"".concat(t.text().slice(0,n),"..."),a=t.text().length,s=r?1.5:1,l=t.attr("y"),c=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",c).attr("y",l).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",e),r&&a>n?t.append("tspan").attr("id","showDots").attr("x",o?0:c).attr("y",l).attr("dy",u).attr("dx",s+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",o?0:c).attr("y",l).attr("dx",s+0+"em").text(e)}))}var $=function(t,e,n){var r=(0,w.Ys)("#".concat(e));if(r.text(t),!r.node())return!1;for(var i=!1,o=r.node().getComputedTextLength();o>n&&t.length>0;)t=t.slice(0,-1),r.text(t+"..."),i=!0,o=r.node().getComputedTextLength();return i},J=function(t,e){void 0===e&&(e="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var i=document.querySelector(e);if(i){var o=window.getComputedStyle(i,null),a=o.getPropertyValue("font-weight"),s=o.getPropertyValue("font-size"),l=o.getPropertyValue("font-family");r.font="".concat(a," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';t.forEach((function(t){n=Math.max(r.measureText(t.toString()).width,n)}))}return n};function Q(t){var e=t.tooltipCls,n=t.xAxis,r=t.id;if(null===n)return null;for(var i=(0,w.Ys)("body").append("div").attr("id",r).attr("class",e).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(t){var e=u[t];(0,w.Ys)(e).on("mouseover",(function(e){i.style("opacity",.9),i.html(s[t]).style("left",w.B.pageX+"px").style("top",w.B.pageY-28+"px")})).on("mouseout",(function(t){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function tt(t){var e=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(e=t.data[0].x instanceof Date)})),e}function et(t,e,n,i,o,a,s,l,c){var u;if(a===C.NumericAxis)switch(i){case b.AreaChart:case b.LineChart:u=function(t,e,n,r){var i=(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.x}))})),o=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.x}))})),a=e.left,s=n-e.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(t,e,n,o);break;case b.VerticalStackedBarChart:u=function(t,e,n,r,i){var o=(0,S.Z)(t,(function(t){return t.x})),a=(0,A.Z)(t,(function(t){return t.x})),s=e.left+i/2,l=n-e.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case b.VerticalBarChart:u=function(t,e,n,r,i){var o=(0,A.Z)(t,(function(t){return t.x})),a=(0,S.Z)(t,(function(t){return t.x})),s=e.left+i/2,l=n-e.right-i/2;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case b.HorizontalBarChartWithAxis:u=function(t,e,n,r,i){var o=(0,A.Z)(t,(function(t){return t.x})),a=r?e.left:e.left+i,s=r?n-e.right-i:n-e.right;return r?{dStartValue:o,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:o,rStartValue:a,rEndValue:s}}(t,e,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===C.DateAxis)switch(i){case b.AreaChart:case b.LineChart:case b.VerticalBarChart:case b.VerticalStackedBarChart:u=function(t,e,n,i,o,a,s){var l,c;void 0===o&&(o=[]),a===b.AreaChart||a===b.LineChart?(l=(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.x}))})),c=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.x}))})),l=(0,S.Z)((0,r.ev)((0,r.ev)([],o,!0),[l],!1)),c=(0,A.Z)((0,r.ev)((0,r.ev)([],o,!0),[c],!1))):(l=(0,S.Z)(t,(function(t){return t.x})),c=(0,A.Z)(t,(function(t){return t.x})));var u=e.left+(s?s/2:0),d=n-e.right-(s?s/2:0);return i?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(t,e,n,o,l,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(i){case b.VerticalStackedBarChart:case b.GroupedVerticalBarChart:case b.VerticalBarChart:case b.HeatMapChart:u=function(t,e,n){var r=t.left,i=e-t.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(e,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function nt(t,e,n){var r,i,o;switch(void 0===n&&(n=E.NumericAxis),e){case b.AreaChart:case b.LineChart:r=function(t){var e=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.y}))}));return{startValue:(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.y}))})),endValue:e}}(t);break;case b.VerticalStackedBarChart:i=t,o=(0,A.Z)(i,(function(t){return t.y})),r={startValue:(0,S.Z)(i,(function(t){return t.y})),endValue:o};break;case b.VerticalBarChart:r=function(t){var e=(0,A.Z)(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:(0,S.Z)(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:e}}(t);break;case b.HorizontalBarChartWithAxis:r=function(t,e){if(void 0!==e&&e===E.NumericAxis){var n=(0,A.Z)(t,(function(t){return t.y}));return{startValue:(0,S.Z)(t,(function(t){return t.y})),endValue:n}}return{startValue:0,endValue:0}}(t,n);break;default:r={startValue:0,endValue:0}}return r}var rt,it,ot=function(t,e){if(e)switch(typeof t){case"string":return C.StringAxis;case"number":return C.NumericAxis;default:return C.DateAxis}else switch(typeof t){case"string":return E.StringAxis;case"number":return E.NumericAxis;default:return E.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(rt||(rt={})),function(t){t[t.dottedLine=0]="dottedLine"}(it||(it={}));var at=((x={})[rt.circle]={widthRatio:1},x[rt.square]={widthRatio:1},x[rt.triangle]={widthRatio:1},x[rt.diamond]={widthRatio:1},x[rt.pyramid]={widthRatio:1},x[rt.hexagon]={widthRatio:2},x[rt.pentagon]={widthRatio:1.168},x[rt.octagon]={widthRatio:2.414},x),st=function(t,e,n){return void 0===e&&(e="text"),void 0===n&&(n=!0),{role:e,"data-is-focusable":n,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},lt=function(t,e){return t?(e=e||void 0,"number"==typeof t?t.toLocaleString(e):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(e):t:Number(t).toLocaleString(e)):t};function ct(t){var e=t.node,n=t.xAxis;if(null!==e&&null!==n){var r=0,i=[];(0,w.Ys)(e).call(n).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var e=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===e.length&&(i.push(e[0]),this.setAttribute("transform","translate(".concat(e[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return(0,w.Ys)(e).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate(".concat(i[o],",").concat(r/2,")rotate(-45)")),o+=1)})),Math.floor(r/1.414)}}function ut(t,e){var n=0;(0,w.td)(".".concat(t)).each((function(){for(var t=(0,w.Ys)(this),r=t.text().split(/\s+/).reverse(),i="",o=[],a=0,s=t.attr("y"),l=t.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>e&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=t.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))}function dt(t){var e;return e=t<1e3?".2~":".1",(0,D.jH)(e,t)(t)}},9785:function(t,e,n){function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},7329:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(9785);function i(t){let e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>(0,r.Z)(t(e),n)}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}},8957:function(t,e,n){function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},5561:function(t,e,n){function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},6077:function(t,e,n){n.d(e,{x:function(){return o}});var r={},i=void 0;try{i=window}catch(t){}function o(t,e){if(void 0!==i){var n=i.__packages__=i.__packages__||{};n[t]&&r[t]||(r[t]=e,(n[t]=n[t]||[]).push(e))}}o("@fluentui/set-version","6.0.0")},1786:function(t,e,n){n.d(e,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return tt.TS},lq:function(){return tt.lq},qJ:function(){return et},$v:function(){return nt},bR:function(){return $},e2:function(){return ot},GL:function(){return it},Cn:function(){return lt},gh:function(){return At},ul:function(){return at}});var r=n(13),i=n(4473),o=n(5499),a=n(7373);function s(t){var e=o.Y.getInstance(),n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r,"{",(0,a.dH)((0,i.Eo)(),t[r]),"}");var s=n.join(""),l=e.classNameFromKey(s);if(l)return l;var c=e.getClassName();return e.insertRule("@keyframes ".concat(c,"{").concat(s,"}"),!0),e.cacheClassName(c,s,[],["keyframes",s]),c}var l="cubic-bezier(.1,.9,.2,1)",c="cubic-bezier(.1,.25,.75,.9)",u="0.167s",d="0.267s",h="0.367s",p="0.467s",f=s({from:{opacity:0},to:{opacity:1}}),g=s({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),m=U(-10),v=U(-20),_=U(-40),y=U(-400),x=U(10),b=U(20),C=U(40),E=U(400),S=j(10),A=j(20),L=j(-10),k=j(-20),T=G(10),w=G(20),D=G(40),M=G(400),P=G(-10),F=G(-20),I=G(-40),N=G(-400),V=K(-10),O=K(-20),H=K(10),B=K(20),R=s({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),z=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),W=s({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Y=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Z=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),q=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(t,e,n){return{animationName:t,animationDuration:e,animationTimingFunction:n,animationFillMode:"both"}}function U(t){return s({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function j(t){return s({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(t){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function K(t){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var $,J=function(t){var e={},n=function(n){var i;t.hasOwnProperty(n)&&Object.defineProperty(e,n,{get:function(){return void 0===i&&(i=(0,r.y)(t[n]).toString()),i},enumerable:!0,configurable:!0})};for(var i in t)n(i);return e}({slideRightIn10:X("".concat(f,",").concat(m),h,l),slideRightIn20:X("".concat(f,",").concat(v),h,l),slideRightIn40:X("".concat(f,",").concat(_),h,l),slideRightIn400:X("".concat(f,",").concat(y),h,l),slideLeftIn10:X("".concat(f,",").concat(x),h,l),slideLeftIn20:X("".concat(f,",").concat(b),h,l),slideLeftIn40:X("".concat(f,",").concat(C),h,l),slideLeftIn400:X("".concat(f,",").concat(E),h,l),slideUpIn10:X("".concat(f,",").concat(S),h,l),slideUpIn20:X("".concat(f,",").concat(A),h,l),slideDownIn10:X("".concat(f,",").concat(L),h,l),slideDownIn20:X("".concat(f,",").concat(k),h,l),slideRightOut10:X("".concat(g,",").concat(T),h,l),slideRightOut20:X("".concat(g,",").concat(w),h,l),slideRightOut40:X("".concat(g,",").concat(D),h,l),slideRightOut400:X("".concat(g,",").concat(M),h,l),slideLeftOut10:X("".concat(g,",").concat(P),h,l),slideLeftOut20:X("".concat(g,",").concat(F),h,l),slideLeftOut40:X("".concat(g,",").concat(I),h,l),slideLeftOut400:X("".concat(g,",").concat(N),h,l),slideUpOut10:X("".concat(g,",").concat(V),h,l),slideUpOut20:X("".concat(g,",").concat(O),h,l),slideDownOut10:X("".concat(g,",").concat(H),h,l),slideDownOut20:X("".concat(g,",").concat(B),h,l),scaleUpIn100:X("".concat(f,",").concat(R),h,l),scaleDownIn100:X("".concat(f,",").concat(W),h,l),scaleUpOut103:X("".concat(g,",").concat(Y),u,c),scaleDownOut98:X("".concat(g,",").concat(z),u,c),fadeIn100:X(f,u,c),fadeIn200:X(f,d,c),fadeIn400:X(f,h,c),fadeIn500:X(f,p,c),fadeOut100:X(g,u,c),fadeOut200:X(g,d,c),fadeOut400:X(g,h,c),fadeOut500:X(g,p,c),rotate90deg:X(Z,"0.1s",c),rotateN90deg:X(q,"0.1s",c)}),Q=n(7045),tt=n(8473),et="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",nt="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=n(9766);function it(t,e,n,r,i,o,a,s){return function(t,e){var n,r;void 0===e&&(e={});var i=e.borderRadius,o=e.inset,a=void 0===o?0:o,s=e.width,l=void 0===s?1:s,c=e.position,u=void 0===c?"relative":c,d=e.highContrastStyle,h=e.borderColor,p=void 0===h?t.palette.white:h,f=e.outlineColor,g=void 0===f?t.palette.neutralSecondary:f,m=e.isFocusedOnly,v=void 0===m||m,_=e.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(rt.G$," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:$.FocusStyle,borderRadius:i,selectors:(r={},r[et]=d,r)},n)}}(t,"number"!=typeof e&&e?e:{inset:e,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a,borderRadius:s})}function ot(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}($||($={}));var at={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},st=(0,n(156).NF)((function(t,e){var n=o.Y.getInstance();return e?Object.keys(t).reduce((function(e,r){return e[r]=n.getClassName(t[r]),e}),{}):t}));function lt(t,e,n){return st(t,void 0!==n?n:e.disableGlobalClassNames)}var ct,ut=n(9939),dt=n(3820),ht=n(775),pt=function(){return pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pt.apply(this,arguments)},ft="undefined"==typeof window?n.g:window,gt=ft&&ft.CSPSettings&&ft.CSPSettings.nonce,mt=((ct=ft.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ct=pt({},ct,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ct.registeredThemableStyles||(ct=pt({},ct,{registeredThemableStyles:[]})),ft.__themeState__=ct,ct);function vt(t){mt.theme=t,function(){if(mt.theme){for(var t=[],e=0,n=mt.registeredThemableStyles;e<n.length;e++){var r=n[e];t.push(r.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(_t(mt.registeredStyles),mt.registeredStyles=[]),3!==o&&1!==o||(_t(mt.registeredThemableStyles),mt.registeredThemableStyles=[]),i=[].concat.apply([],t),mt.loadStyles?mt.loadStyles(yt(i).styleString,i):function(t){if("undefined"!=typeof document){var e=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=yt(t),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",gt&&n.setAttribute("nonce",gt),n.appendChild(document.createTextNode(i)),mt.perf.count++,e.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:t};o?mt.registeredThemableStyles.push(s):mt.registeredStyles.push(s)}}(i))}var i,o}()}function _t(t){t.forEach((function(t){var e=t&&t.styleElement;e&&e.parentElement&&e.parentElement.removeChild(e)}))}function yt(t){var e=mt.theme,n=!1;return{styleString:(t||[]).map((function(t){var r=t.theme;if(r){n=!0;var i=e?e[r]:void 0,o=t.defaultValue||"inherit";return e&&!i&&console&&!(r in e)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return t.rawString})).join(""),themable:n}}var xt=n(685),bt=(0,xt.j)({}),Ct=[],Et="theme";function St(){var t,e,n,r=(0,dt.J)();(null===(e=null==r?void 0:r.FabricConfig)||void 0===e?void 0:e.legacyTheme)?function(t,e){var n;void 0===e&&(e=!1),bt=(0,xt.j)(t,e),vt((0,ut.pi)((0,ut.pi)((0,ut.pi)((0,ut.pi)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var e={},n=0,r=Object.keys(t.fonts);n<r.length;n++)for(var i=r[n],o=t.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],c=i+l.charAt(0).toUpperCase()+l.slice(1),u=o[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),e[c]=u}return e}(bt))),ht.X.applySettings(((n={})[Et]=bt,n)),Ct.forEach((function(t){try{t(bt)}catch(t){}}))}(r.FabricConfig.legacyTheme):ht.X.getSettings([Et]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(bt=(0,xt.j)(r.FabricConfig.theme)),ht.X.applySettings(((t={})[Et]=bt,t)))}function At(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,xt.j)({},t)),bt}St(),(0,n(6077).x)("@fluentui/style-utilities","8.10.3"),St()},7045:function(t,e,n){n.d(e,{U:function(){return r}});var r={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},685:function(t,e,n){n.d(e,{j:function(){return P}});var r,i=n(7045);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}));var o={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=n(4473),s=n(5499),l=n(7373),c=n(8473),u="'Segoe UI', '".concat(c.Qm.WestEuropean,"'"),d={ar:c.II.Arabic,bg:c.II.Cyrillic,cs:c.II.EastEuropean,el:c.II.Greek,et:c.II.EastEuropean,he:c.II.Hebrew,hi:c.II.Hindi,hr:c.II.EastEuropean,hu:c.II.EastEuropean,ja:c.II.Japanese,kk:c.II.EastEuropean,ko:c.II.Korean,lt:c.II.EastEuropean,lv:c.II.EastEuropean,pl:c.II.EastEuropean,ru:c.II.Cyrillic,sk:c.II.EastEuropean,"sr-latn":c.II.EastEuropean,th:c.II.Thai,tr:c.II.EastEuropean,uk:c.II.Cyrillic,vi:c.II.Vietnamese,"zh-hans":c.II.ChineseSimplified,"zh-hant":c.II.ChineseTraditional,hy:c.II.Armenian,ka:c.II.Georgian};function h(t,e,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:e}}var p,f,g,m,v,_,y=n(2874),x=n(3820),b=n(5114),C="language",E=(f=function(t){for(var e in d)if(d.hasOwnProperty(e)&&t&&0===e.indexOf(t))return d[e];return u}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===p){var e=(0,y.M)(),n="localStorage"===t?function(t){var e=null;try{var n=(0,x.J)();e=n?n.localStorage.getItem(t):null}catch(t){}return e}(C):"sessionStorage"===t?b.r(C):void 0;n&&(p=n),void 0===p&&e&&(p=e.documentElement.getAttribute("lang")),void 0===p&&(p="en")}return p}()),g="".concat(f,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(c.TS.mini,c.lq.regular,g),xSmall:h(c.TS.xSmall,c.lq.regular,g),small:h(c.TS.small,c.lq.regular,g),smallPlus:h(c.TS.smallPlus,c.lq.regular,g),medium:h(c.TS.medium,c.lq.regular,g),mediumPlus:h(c.TS.mediumPlus,c.lq.regular,g),large:h(c.TS.large,c.lq.regular,g),xLarge:h(c.TS.xLarge,c.lq.semibold,g),xLargePlus:h(c.TS.xLargePlus,c.lq.semibold,g),xxLarge:h(c.TS.xxLarge,c.lq.semibold,g),xxLargePlus:h(c.TS.xxLargePlus,c.lq.semibold,g),superLarge:h(c.TS.superLarge,c.lq.semibold,g),mega:h(c.TS.mega,c.lq.semibold,g)});function S(t,e,n,r){!function(t){var e=s.Y.getInstance(),n=(0,l.dH)((0,a.Eo)(),t);if(!e.classNameFromKey(n)){var r=e.getClassName();e.insertRule("@font-face{".concat(n,"}"),!0),e.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(e,".woff2') format('woff2'),")+"url('".concat(e,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function A(t,e,n,r,i){void 0===r&&(r="segoeui");var o="".concat(t,"/").concat(n,"/").concat(r);S(e,o+"-light",c.lq.light,i&&i+" Light"),S(e,o+"-semilight",c.lq.semilight,i&&i+" SemiLight"),S(e,o+"-regular",c.lq.regular,i),S(e,o+"-semibold",c.lq.semibold,i&&i+" SemiBold"),S(e,o+"-bold",c.lq.bold,i&&i+" Bold")}function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++)k(t||{},i[r]);return t}function k(t,e,n){for(var r in void 0===n&&(n=[]),n.push(e),e)if(e.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=e[r];if("object"!=typeof i||null===i||Array.isArray(i))t[r]=i;else{var o=n.indexOf(i)>-1;t[r]=o?i:k(t[r]||{},i,n)}}return n.pop(),t}!function(t){if(t){var e="".concat(t,"/fonts");A(e,c.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),A(e,c.Qm.Arabic,"segoeui-arabic"),A(e,c.Qm.Cyrillic,"segoeui-cyrillic"),A(e,c.Qm.EastEuropean,"segoeui-easteuropean"),A(e,c.Qm.Greek,"segoeui-greek"),A(e,c.Qm.Hebrew,"segoeui-hebrew"),A(e,c.Qm.Vietnamese,"segoeui-vietnamese"),A(e,c.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),A(e,c.II.Selawik,"selawik","selawik"),A(e,c.Qm.Armenian,"segoeui-armenian"),A(e,c.Qm.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-semilight"),c.lq.light),S("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-bold"),c.lq.semibold)}}((_=null===(m=(0,x.J)())||void 0===m?void 0:m.FabricConfig,null!==(v=null==_?void 0:_.fontBaseUrl)&&void 0!==v?v:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var T=n(9939);function w(t,e,n,r,i){return void 0===i&&(i=!1),function(t,e){var n="";return!0===e&&(n=" /* @deprecated */"),t.listTextColor=t.listText+n,t.menuItemBackgroundChecked+=n,t.warningHighlight+=n,t.warningText=t.messageText+n,t.successText+=n,t}(D(t,e,(0,T.pi)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),i)}function D(t,e,n,r,i){void 0===i&&(i=!1);var o={},a=t||{},s=a.white,l=a.black,c=a.themePrimary,u=a.themeDark,d=a.themeDarker,h=a.themeDarkAlt,p=a.themeLighter,f=a.neutralLight,g=a.neutralLighter,m=a.neutralDark,v=a.neutralQuaternary,_=a.neutralQuaternaryAlt,y=a.neutralPrimary,x=a.neutralSecondary,b=a.neutralSecondaryAlt,C=a.neutralTertiary,E=a.neutralTertiaryAlt,S=a.neutralLighterAlt,A=a.accent;return s&&(o.bodyBackground=s,o.bodyFrameBackground=s,o.accentButtonText=s,o.buttonBackground=s,o.primaryButtonText=s,o.primaryButtonTextHovered=s,o.primaryButtonTextPressed=s,o.inputBackground=s,o.inputForegroundChecked=s,o.listBackground=s,o.menuBackground=s,o.cardStandoutBackground=s),l&&(o.bodyTextChecked=l,o.buttonTextCheckedHovered=l),c&&(o.link=c,o.primaryButtonBackground=c,o.inputBackgroundChecked=c,o.inputIcon=c,o.inputFocusBorderAlt=c,o.menuIcon=c,o.menuHeader=c,o.accentButtonBackground=c),u&&(o.primaryButtonBackgroundPressed=u,o.inputBackgroundCheckedHovered=u,o.inputIconHovered=u),d&&(o.linkHovered=d),h&&(o.primaryButtonBackgroundHovered=h),p&&(o.inputPlaceholderBackgroundChecked=p),f&&(o.bodyBackgroundChecked=f,o.bodyFrameDivider=f,o.bodyDivider=f,o.variantBorder=f,o.buttonBackgroundCheckedHovered=f,o.buttonBackgroundPressed=f,o.listItemBackgroundChecked=f,o.listHeaderBackgroundPressed=f,o.menuItemBackgroundPressed=f,o.menuItemBackgroundChecked=f),g&&(o.bodyBackgroundHovered=g,o.buttonBackgroundHovered=g,o.buttonBackgroundDisabled=g,o.buttonBorderDisabled=g,o.primaryButtonBackgroundDisabled=g,o.disabledBackground=g,o.listItemBackgroundHovered=g,o.listHeaderBackgroundHovered=g,o.menuItemBackgroundHovered=g),v&&(o.primaryButtonTextDisabled=v,o.disabledSubtext=v),_&&(o.listItemBackgroundCheckedHovered=_),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),S&&(o.bodyStandoutBackground=S,o.defaultStateBackground=S),m&&(o.actionLinkHovered=m,o.buttonTextHovered=m,o.buttonTextChecked=m,o.buttonTextPressed=m,o.inputTextHovered=m,o.menuItemTextHovered=m),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),b&&(o.buttonBorder=b),E&&(o.disabledBodySubtext=E,o.disabledBorder=E,o.buttonBackgroundChecked=E,o.menuDivider=E),A&&(o.accentButtonBackground=A),(null==e?void 0:e.elevation4)&&(o.cardShadow=e.elevation4),!r&&(null==e?void 0:e.elevation8)?o.cardShadowHovered=e.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,T.pi)((0,T.pi)({},o),n)}var M={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function P(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=!!t.isInverted;return function(t,e){var n,r,i;void 0===e&&(e={});var o=L({},t,e,{semanticColors:D(e.palette,e.effects,e.semanticColors,void 0===e.isInverted?t.isInverted:e.isInverted)});if((null===(n=e.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=e.palette)||void 0===r?void 0:r.accent)&&(o.palette.accent=e.palette.themePrimary),e.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a<s.length;a++){var l=s[a];o.fonts[l]=L(o.fonts[l],e.defaultFontStyle,null===(i=null==e?void 0:e.fonts)||void 0===i?void 0:i[l])}return o}({palette:i.U,effects:o,fonts:E,spacing:M,isInverted:n,disableGlobalClassNames:!1,semanticColors:w(i.U,o,void 0,n,e),rtl:void 0},t)}},8473:function(t,e,n){var r,i,o,a,s;n.d(e,{II:function(){return i},Qm:function(){return r},TS:function(){return o},lq:function(){return a}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(t){t.Arabic="'".concat(r.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(r.Cyrillic,"'"),t.EastEuropean="'".concat(r.EastEuropean,"'"),t.Greek="'".concat(r.Greek,"'"),t.Hebrew="'".concat(r.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(r.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(r.Vietnamese,"'"),t.WestEuropean="'".concat(r.WestEuropean,"'"),t.Armenian="'".concat(r.Armenian,"'"),t.Georgian="'".concat(r.Georgian,"'")}(i||(i={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(s||(s={}))},8461:function(t,e,n){n.d(e,{y:function(){return f}});var r=n(5499),i=n(4270),o=n(3802),a=n(7373);var s=n(116),l=n(3820),c=50,u=5,d=0,h=r.Y.getInstance();h&&h.onReset&&h.onReset((function(){return d++}));var p="__retval__";function f(t){void 0===t&&(t={});var e=new Map,n=0,r=0,h=d;return function(f,g){var v;if(void 0===g&&(g={}),t.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(g);r++;var _=e,y=g.theme,x=y&&void 0!==y.rtl?y.rtl:(0,s.zg)(),b=t.disableCaching;if(h!==d&&(h=d,e=new Map,n=0),t.disableCaching||(_=m(e,f),_=m(_,g)),!b&&_[p]||(_[p]=void 0===f?{}:function(t,e){var n={subComponentStyles:{}};if(!t[0]&&t.length<=1)return{subComponentStyles:{}};var r=i.m.apply(void 0,t),s=[];for(var l in r)if(r.hasOwnProperty(l)){if("subComponentStyles"===l){n.subComponentStyles=r.subComponentStyles||{};continue}var c=r[l],u=(0,o.U)(c),d=u.classes,h=u.objects;(null==h?void 0:h.length)?(g=(0,a.aj)(e||{},{displayName:l},h))&&(s.push(g),n[l]=d.concat([g.className]).join(" ")):n[l]=d.join(" ")}for(var p=0,f=s;p<f.length;p++){var g;(g=f[p])&&(0,a.Jh)(g,null==e?void 0:e.specificityMultiplier)}return n}(["function"==typeof f?f(g):f],{rtl:!!x,specificityMultiplier:t.useStaticStyles?u:void 0}),b||n++),n>(t.cacheSize||c)){var C=(0,l.J)();(null===(v=null==C?void 0:C.FabricConfig)||void 0===v?void 0:v.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),e.clear(),n=0,t.disableCaching=!0}return _[p]}}function g(t,e){return e=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(e),t.has(e)||t.set(e,new Map),t.get(e)}function m(t,e){if("function"==typeof e)if(e.__cachedInputs__)for(var n=0,r=e.__cachedInputs__;n<r.length;n++)t=g(t,r[n]);else t=g(t,e);else if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&(t=g(t,e[i]));return t}},775:function(t,e,n){n.d(e,{X:function(){return f}});var r=n(9939),i=n(3820),o="__globalSettings__",a="__callbacks__",s=0,l=function(){function t(){}return t.getValue=function(t,e){var n=c();return void 0===n[t]&&(n[t]="function"==typeof e?e():e),n[t]},t.setValue=function(t,e){var n=c(),r=n[a],i=n[t];if(e!==i){n[t]=e;var o={oldValue:i,value:e,key:t};for(var s in r)r.hasOwnProperty(s)&&r[s](o)}return e},t.addChangeListener=function(t){var e=t.__id__,n=u();e||(e=t.__id__=String(s++)),n[e]=t},t.removeChangeListener=function(t){delete u()[t.__id__]},t}();function c(){var t,e=(0,i.J)()||{};return e[o]||(e[o]=((t={})[a]={},t)),e[o]}function u(){return c()[a]}var d={settings:{},scopedSettings:{},inCustomizerContext:!1},h=l.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),p=[],f=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(e){h.settings=(0,r.pi)((0,r.pi)({},h.settings),e),t._raiseChange()},t.applyScopedSettings=function(e,n){h.scopedSettings[e]=(0,r.pi)((0,r.pi)({},h.scopedSettings[e]),n),t._raiseChange()},t.getSettings=function(t,e,n){void 0===n&&(n=d);for(var r={},i=e&&n.scopedSettings[e]||{},o=e&&h.scopedSettings[e]||{},a=0,s=t;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||h.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(t){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(t){p.push(t)},t.unobserve=function(t){p=p.filter((function(e){return e!==t}))},t._raiseChange=function(){t._suppressUpdates||p.forEach((function(t){return t()}))},t}()},2049:function(t,e,n){n.d(e,{i:function(){return r}});var r=n(7363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8873:function(t,e,n){function r(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}n.d(e,{N:function(){return r}})},2874:function(t,e,n){n.d(e,{M:function(){return i}});var r=n(8873);function i(t){if((0,r.N)()&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}},3820:function(t,e,n){n.d(e,{J:function(){return o}});var r=n(8873),i=void 0;try{i=window}catch(t){}function o(t){if((0,r.N)()&&void 0!==i){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:i}}},156:function(t,e,n){n.d(e,{Ct:function(){return d},NF:function(){return u}});var r=n(5499),i=!1,o=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(){o++}function u(t,e,n){if(void 0===e&&(e=100),void 0===n&&(n=!1),!l)return t;if(!i){var u=r.Y.getInstance();u&&u.onReset&&r.Y.getInstance().onReset(c),i=!0}var d,p=0,f=o;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var l,c=d;(void 0===d||f!==o||e>0&&p>e)&&(d=h(),p=0,f=o),c=d;for(var u=0;u<r.length;u++){var g=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(s[l]||(s[l]={val:l}),s[l]):a;c.map.has(g)||c.map.set(g,h()),c=c.map.get(g)}return c.hasOwnProperty("value")||(c.value=t.apply(void 0,r),p++),!n||null!==c.value&&void 0!==c.value||(c.value=t.apply(void 0,r)),c.value}}function d(t){if(!l)return t;var e=new l;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return t(n);if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}}function h(){return{map:l?new l:null}}},116:function(t,e,n){n.d(e,{zg:function(){return l}});var r,i=n(2874),o=n(5114),a=n(4473),s="isRTL";function l(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===r){var e=(0,o.r)(s);null!==e&&function(t,e){void 0===e&&(e=!1);var n=(0,i.M)();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr"),e&&(0,o.L)(s,t?"1":"0"),r=t,(0,a.ok)(r)}(r="1"===e);var n=(0,i.M)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,a.ok)(r))}return!!r}},5114:function(t,e,n){n.d(e,{L:function(){return o},r:function(){return i}});var r=n(3820);function i(t){var e=null;try{var n=(0,r.J)();e=n?n.sessionStorage.getItem(t):null}catch(t){}return e}function o(t,e){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(t,e)}catch(t){}}},9766:function(t,e,n){n.d(e,{G$:function(){return r}});var r="ms-Fabric--isFocusVisible"},9085:function(t,e,n){n.d(e,{z:function(){return c}});var r=n(9939),i=n(7363),o=n(4270),a=n(775),s=n(2049);var l=["theme","styles"];function c(t,e,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,h=c.fields,p=void 0===h?l:h,f=i.forwardRef((function(l,c){var u,h,f,g,m,v,_=i.useRef(),y=(u=p,h=d,f=i.useState(0)[1],g=function(){return f((function(t){return++t}))},m=i.useContext(s.i).customizations,v=m.inCustomizerContext,i.useEffect((function(){return v||a.X.observe(g),function(){v||a.X.unobserve(g)}}),[v]),a.X.getSettings(u,h,m)),x=y.styles,b=(y.dir,(0,r._T)(y,["styles","dir"])),C=n?n(l):void 0,E=_.current&&_.current.__cachedInputs__||[],S=l.styles;if(!_.current||x!==E[1]||S!==E[2]){var A=function(t){return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=[],i=0,a=e;i<a.length;i++){var s=a[i];s&&r.push("function"==typeof s?s(t):s)}return 1===r.length?r[0]:r.length?o.m.apply(void 0,r):{}}(t,e,x,S)};A.__cachedInputs__=[e,x,S],A.__noStyleOverride__=!x&&!S,_.current=A}return i.createElement(t,(0,r.pi)({ref:c},b,C,l,{styles:_.current}))}));f.displayName="Styled".concat(t.displayName||t.name);var g=u?i.memo(f):f;return f.displayName&&(g.displayName=f.displayName),g}},7363:function(t){t.exports=React},6775:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(9941),i=n(5795);function o(){var t,e,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,c=1,u=!1,d=0,h=0,p=.5;function f(){var n=a().length,r=c<l,i=r?c:l,o=r?l:c;t=(o-i)/Math.max(1,n-d+2*h),u&&(t=Math.floor(t)),i+=(o-i-t*(n-d))*p,e=t*(1-d),u&&(i=Math.round(i),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return i+t*e}));return s(r?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),f()):a()},n.range=function(t){return arguments.length?([l,c]=t,l=+l,c=+c,f()):[l,c]},n.rangeRound=function(t){return[l,c]=t,l=+l,c=+c,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(d=Math.min(1,h=+t),f()):d},n.paddingInner=function(t){return arguments.length?(d=Math.min(1,t),f()):d},n.paddingOuter=function(t){return arguments.length?(h=+t,f()):h},n.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),f()):p},n.copy=function(){return o(a(),[l,c]).round(u).paddingInner(d).paddingOuter(h).align(p)},r.o.apply(f(),arguments)}},7451:function(t,e,n){n.d(e,{JG:function(){return ot},ZP:function(){return at}});var r=n(9785),i=n(7329);const o=(0,i.Z)(r.Z),a=o.right;o.left,(0,i.Z)((function(t){return null===t?NaN:+t})).center;var s=a;function l(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function c(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function u(){}var d=.7,h=1/d,p="\\s*([+-]?\\d+)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",g="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m=/^#([0-9a-f]{3,8})$/,v=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),_=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),y=new RegExp("^rgba\\("+[p,p,p,f]+"\\)$"),x=new RegExp("^rgba\\("+[g,g,g,f]+"\\)$"),b=new RegExp("^hsl\\("+[f,g,g]+"\\)$"),C=new RegExp("^hsla\\("+[f,g,g,f]+"\\)$"),E={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 S(){return this.rgb().formatHex()}function A(){return this.rgb().formatRgb()}function L(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=m.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?k(e):3===n?new D(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new D(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new D(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=v.exec(t))?new D(e[1],e[2],e[3],1):(e=_.exec(t))?new D(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=y.exec(t))?T(e[1],e[2],e[3],e[4]):(e=x.exec(t))?T(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=b.exec(t))?I(e[1],e[2]/100,e[3]/100,1):(e=C.exec(t))?I(e[1],e[2]/100,e[3]/100,e[4]):E.hasOwnProperty(t)?k(E[t]):"transparent"===t?new D(NaN,NaN,NaN,0):null}function k(t){return new D(t>>16&255,t>>8&255,255&t,1)}function T(t,e,n,r){return r<=0&&(t=e=n=NaN),new D(t,e,n,r)}function w(t,e,n,r){return 1===arguments.length?((i=t)instanceof u||(i=L(i)),i?new D((i=i.rgb()).r,i.g,i.b,i.opacity):new D):new D(t,e,n,null==r?1:r);var i}function D(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function M(){return"#"+F(this.r)+F(this.g)+F(this.b)}function P(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function F(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function I(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new V(t,e,n,r)}function N(t){if(t instanceof V)return new V(t.h,t.s,t.l,t.opacity);if(t instanceof u||(t=L(t)),!t)return new V;if(t instanceof V)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new V(a,s,l,t.opacity)}function V(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function O(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function H(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function B(t){return function(){return t}}function R(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):B(isNaN(t)?e:t)}l(u,L,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:S,formatHex:S,formatHsl:function(){return N(this).formatHsl()},formatRgb:A,toString:A}),l(D,w,c(u,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new D(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new D(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:M,formatHex:M,formatRgb:P,toString:P})),l(V,(function(t,e,n,r){return 1===arguments.length?N(t):new V(t,e,n,null==r?1:r)}),c(u,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new V(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new V(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new D(O(t>=240?t-240:t+120,i,r),O(t,i,r),O(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var z=function t(e){var n=function(t){return 1==(t=+t)?R:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):B(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=w(t)).r,(e=w(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=R(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function W(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=w(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function Y(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=$(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Z(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function q(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function X(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=$(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}W((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return H((n-r/e)*e,a,i,o,s)}})),W((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return H((n-r/e)*e,i,o,a,s)}}));var U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j=new RegExp(U.source,"g");function G(t,e){var n,r,i,o=U.lastIndex=j.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=U.exec(t))&&(r=j.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:q(n,r)})),o=j.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function K(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function $(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?B(e):("number"===i?q:"string"===i?(n=L(e))?(e=n,z):G:e instanceof L?z:e instanceof Date?Z:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Y:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?X:q:K))(t,e)}function J(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Q(t){return+t}var tt=[0,1];function et(t){return t}function nt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function rt(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=nt(i,r),o=n(a,o)):(r=nt(r,i),o=n(o,a)),function(t){return o(r(t))}}function it(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=nt(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=s(t,e,1,r)-1;return o[n](i[n](e))}}function ot(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function at(){return function(){var t,e,n,r,i,o,a=tt,s=tt,l=$,c=et;function u(){var t,e,n,l=Math.min(a.length,s.length);return c!==et&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?it:rt,i=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return d.invert=function(n){return c(e((o||(o=r(s,a.map(t),q)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,Q),u()):a.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),l=J,u()},d.clamp=function(t){return arguments.length?(c=!!t||et,u()):c!==et},d.interpolate=function(t){return arguments.length?(l=t,u()):l},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,u()}}()(et,et)}},9941:function(t,e,n){function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{o:function(){return r}})},8815:function(t,e,n){n.d(e,{Z:function(){return p}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var a=(e-t)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,s);return s>=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}var s=n(7451),l=n(9941),c=n(4116),u=n(4783),d=n(1783);function h(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,s,l=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(s=a(t,e,n))||!isFinite(s))return[];if(s>0){let n=Math.round(t/s),r=Math.round(e/s);for(n*s<t&&++n,r*s>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)*s}else{s=-s;let n=Math.round(t*s),r=Math.round(e*s);for(n/s<t&&++n,r/s>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)/s}return r&&o.reverse(),o}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var a=e();return function(t,e,n,a){var s,l=function(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),e<t?-s:s}(t,e,n);switch((a=(0,c.Z)(null==a?",f":a)).type){case"s":var h=Math.max(Math.abs(t),Math.abs(e));return null!=a.precision||isNaN(s=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,u.Z)(e)/3)))-(0,u.Z)(Math.abs(t)))}(l,h))||(a.precision=s),(0,d.jH)(a,h);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(s=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,u.Z)(e)-(0,u.Z)(t))+1}(l,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=s-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(s=function(t){return Math.max(0,-(0,u.Z)(Math.abs(t)))}(l))||(a.precision=s-2*("%"===a.type))}return(0,d.WU)(a)}(a[0],a[a.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,l=o.length-1,c=o[s],u=o[l],d=10;for(u<c&&(i=c,c=u,u=i,i=s,s=l,l=i);d-- >0;){if((i=a(c,u,n))===r)return o[s]=c,o[l]=u,e(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function p(){var t=(0,s.ZP)();return t.copy=function(){return(0,s.JG)(t,p())},l.o.apply(t,arguments),h(t)}},5795:function(t,e,n){n.d(e,{Z:function(){return d}});class r extends Map{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(a(this,t),e)}delete(t){return super.delete(s(this,t))}}class i extends Set{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(o(this,t))}add(t){return super.add(a(this,t))}delete(t){return super.delete(s(this,t))}}function o({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function a({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function s({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function l(t){return null!==t&&"object"==typeof t?t.valueOf():t}var c=n(9941);const u=Symbol("implicit");function d(){var t=new r,e=[],n=[],i=u;function o(r){let o=t.get(r);if(void 0===o){if(i!==u)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return d(e,n).unknown(i)},c.o.apply(o,arguments),o}},8639:function(t,e,n){n.d(e,{Z:function(){return H}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),e<t?-s:s}var s=n(4827),l=n(4315),c=(0,l.Z)((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,l.Z)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):c:null};var u=c,d=(c.range,n(87)),h=n(4189),p=n(5401),f=n(3645),g=n(2167),m=n(9604),v=n(9507),_=(0,l.Z)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*s.yB)}),(function(t,e){return(e-t)/s.yB}),(function(t){return t.getUTCMinutes()})),y=_,x=(_.range,(0,l.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*s.Y2)}),(function(t,e){return(e-t)/s.Y2}),(function(t){return t.getUTCHours()}))),b=x,C=(x.range,n(2605)),E=n(3787),S=(0,l.Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),A=S,L=(S.range,n(2527));function k(t,e,n,r,i,o){const l=[[d.Z,1,s.Ym],[d.Z,5,5*s.Ym],[d.Z,15,15*s.Ym],[d.Z,30,30*s.Ym],[o,1,s.yB],[o,5,5*s.yB],[o,15,15*s.yB],[o,30,30*s.yB],[i,1,s.Y2],[i,3,3*s.Y2],[i,6,6*s.Y2],[i,12,12*s.Y2],[r,1,s.UD],[r,2,2*s.UD],[n,1,s.iM],[e,1,s.jz],[e,3,3*s.jz],[t,1,s.qz]];function c(e,n,r){const i=Math.abs(n-e)/r,o=function(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>{return(r=t(e))<(i=n)?-1:r>i?1:r>=i?0:NaN;var r,i}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}((([,,t])=>t)).right(l,i);if(o===l.length)return t.every(a(e/s.qz,n/s.qz,r));if(0===o)return u.every(Math.max(a(e,n,r),1));const[c,d]=l[i/l[o-1][2]<l[o][2]/i?o-1:o];return c.every(d)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},c]}const[T,w]=k(L.Z,A,E.Ox,C.Z,b,y),[D,M]=k(v.Z,m.Z,g.OM,f.Z,p.Z,h.Z);var P=n(731),F=n(7451),I=n(9941);function N(t){return new Date(t)}function V(t){return t instanceof Date?+t:+new Date(+t)}function O(t,e,n,r,i,o,a,s,l,c){var u=(0,F.ZP)(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(t){return(l(t)<t?p:s(t)<t?f:a(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?v:_:n(t)<t?y:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,V)):h().map(N)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):u},u.copy=function(){return(0,F.JG)(u,O(t,e,n,r,i,o,a,s,l,c))},u}function H(){return I.o.apply(O(D,M,v.Z,m.Z,g.OM,f.Z,p.Z,h.Z,d.Z,P.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{AreaChart:function(){return ho},CartesianChart:function(){return Ti},ChartHoverCard:function(){return We.ChartHoverCard},DataVizPalette:function(){return ni},DonutChart:function(){return hi},GaugeChart:function(){return Ga},GaugeValueFormat:function(){return Ba},GroupedVerticalBarChart:function(){return Zo},HeatMapChart:function(){return Go},HorizontalBarChart:function(){return Ln},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return qa},Legends:function(){return vr},LineChart:function(){return Ui},MultiStackedBarChart:function(){return wo},MultiStackedBarChartVariant:function(){return _o},NodesComposition:function(){return Fa},PieChart:function(){return Co},SankeyChart:function(){return ya},Shape:function(){return fr},Sparkline:function(){return Wa},StackedBarChart:function(){return Ao},Textbox:function(){return zi},TreeChart:function(){return Ha},TreeTraverse:function(){return Ia},VerticalBarChart:function(){return Oo},VerticalStackedBarChart:function(){return Ro},getChartHoverCardStyles:function(){return qo.n},getColorFromToken:function(){return ci},getNextColor:function(){return li}});var t=n(9085),e=n(9939),i=n(7363),o=n(8461),a=n(116),s=n(3820),l=n(5499),c="__currentId__",u="id__",d=(0,s.J)()||{};void 0===d[c]&&(d[c]=0);var h,p=!1;function f(t){if(!p){var e=l.Y.getInstance();e&&e.onReset&&e.onReset(g),p=!0}var n=d[c]++;return(void 0===t?u:t)+n}function g(t){void 0===t&&(t=0),d[c]=t}function m(t,e,n){void 0===n&&(n=0);for(var r=-1,i=n;t&&i<t.length;i++)if(e(t[i],i)){r=i;break}return r}function v(t,e){var n=m(t,e);if(!(n<0))return t[n]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(h||(h={}));var _={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function y(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&(n=t)&&n._virtual&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function x(t,e,n){return null!=n||(n=document),t&&t!==n.body?e(t)?t:x(y(t),e):null}function b(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)if(t===e)r=!0;else for(r=!1;e;){var i=y(e);if(i===t){r=!0;break}e=i}else t.contains&&(r=t.contains(e));return r}var C=n(2874),E="data-is-focusable",S="data-is-visible",A="data-focuszone-id",L="data-is-sub-focuszone";function k(t,e){var n=w(t,t,!0,!1,!1,!0,void 0,void 0,e);return!!n&&(V(n),!0)}function T(t,e,n,r,i,o,a,s){if(!e||!a&&e===t)return null;var l=D(e);if(i&&l&&(o||!F(e)&&!I(e))){var c=T(t,e.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&P(c,!0)||!s)return c;var u=T(t,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==e;){var h=T(t,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&P(e,s)?e:T(t,e.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:T(t,e.parentElement,!0,!1,!1,o,a,s))}function w(t,e,n,r,i,o,a,s,l){if(!e||e===t&&i&&!a)return null;var c=(l?M:D)(e);if(n&&c&&P(e,s))return e;if(!i&&c&&(o||!F(e)&&!I(e))){var u=w(t,e.firstElementChild,!0,!0,!1,o,a,s,l);if(u)return u}return e===t?null:w(t,e.nextElementSibling,!0,!0,!1,o,a,s,l)||(r?null:w(t,e.parentElement,!1,!1,!0,o,a,s,l))}function D(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute(S);return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function M(t,e){var n=null!=e?e:(0,s.J)();return!!t&&D(t)&&!t.hidden&&"hidden"!==n.getComputedStyle(t).visibility}function P(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=t.getAttribute?t.getAttribute(E):null,o=null!==r&&n>=0,a=!!t&&"false"!==i&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===i||o);return e?-1!==n&&a:a}function F(t){return!!(t&&t.getAttribute&&t.getAttribute(A))}function I(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}var N=void 0;function V(t){if(t){var e=(0,s.J)(t);e&&(void 0!==N&&e.cancelAnimationFrame(N),N=e.requestAnimationFrame((function(){t&&t.focus(),N=void 0})))}}function O(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function H(t,n){for(var r=(0,e.pi)({},n),i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];void 0===r[a]&&(r[a]=t[a])}return r}var B=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++)for(var o=i[r],a=0,s=Array.isArray(o)?o:Object.keys(o);a<s.length;a++)n[s[a]]=1;return n},R=B(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),z=B(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),W=B(z,R),Y=(B(W,["form"]),B(W,["height","loop","muted","preload","src","width"])),Z=(B(Y,["poster"]),B(W,["start"]),B(W,["value"]),B(W,["download","href","hrefLang","media","rel","target","type"]),B(W,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),q=(B(Z,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),B(Z,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),B(Z,["form","multiple","required"]),B(W,["selected","value"]),B(W,["cellPadding","cellSpacing"]),B(W,["rowSpan","scope"]),B(W,["colSpan","headers","rowSpan","scope"]),B(W,["span"]),B(W,["span"]),B(W,["acceptCharset","action","encType","encType","method","noValidate","target"]),B(W,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),B(W,["alt","crossOrigin","height","src","srcSet","useMap","width"]),W);function X(t,e,n){for(var r=Array.isArray(e),i={},o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];!(!r&&e[s]||r&&e.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(i[s]=t[s])}return i}function U(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return G.apply(this,[null,t].concat(e))}function G(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||t&&!t(s)||(e[s]=a[s])}return e}var K,$,J,Q=n(13),tt=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function et(t){for(var e=t,n=(0,C.M)(t);e&&e!==n.body;){if("true"===e.getAttribute(tt))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute(tt)){var r=getComputedStyle(e),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return e}e=e.parentElement}return e&&e!==n.body||(e=(0,s.J)(t)),e}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}($||($={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(J||(J={}));var nt,rt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=t,this.right=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function it(t,e,n){return{targetEdge:t,alignmentEdge:e,isAuto:n}}var ot=((nt={})[_.topLeftEdge]=it($.top,$.left),nt[_.topCenter]=it($.top),nt[_.topRightEdge]=it($.top,$.right),nt[_.topAutoEdge]=it($.top,void 0,!0),nt[_.bottomLeftEdge]=it($.bottom,$.left),nt[_.bottomCenter]=it($.bottom),nt[_.bottomRightEdge]=it($.bottom,$.right),nt[_.bottomAutoEdge]=it($.bottom,void 0,!0),nt[_.leftTopEdge]=it($.left,$.top),nt[_.leftCenter]=it($.left),nt[_.leftBottomEdge]=it($.left,$.bottom),nt[_.rightTopEdge]=it($.right,$.top),nt[_.rightCenter]=it($.right),nt[_.rightBottomEdge]=it($.right,$.bottom),nt);function at(t,e){return!(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}function st(t,e){var n=[];return t.top<e.top&&n.push($.top),t.bottom>e.bottom&&n.push($.bottom),t.left<e.left&&n.push($.left),t.right>e.right&&n.push($.right),n}function lt(t,e){return t[$[e]]}function ct(t,e,n){return t[$[e]]=n,t}function ut(t,e){var n=Ct(e);return(lt(t,n.positiveEdge)+lt(t,n.negativeEdge))/2}function dt(t,e){return t>0?e:-1*e}function ht(t,e){return dt(t,lt(e,t))}function pt(t,e,n){return dt(n,lt(t,n)-lt(e,n))}function ft(t,e,n,r){void 0===r&&(r=!0);var i=lt(t,e)-n,o=ct(t,e,n);return r&&(o=ct(t,-1*e,lt(t,-1*e)-i)),o}function gt(t,e,n,r){return void 0===r&&(r=0),ft(t,n,lt(e,n)+dt(n,r))}function mt(t,e,n){return ht(n,t)>ht(n,e)}function vt(t,e){for(var n=0,r=0,i=st(t,e);r<i.length;r++){var o=i[r];n+=Math.pow(pt(t,e,o),2)}return n}function _t(t,e,n,r){return void 0===r&&(r=200),(n===$.bottom||n===$.top)&&pt(t,e,n)>=r}function yt(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=ft(e.elementRectangle,a,lt(n,a),!1),e.forcedInBounds=!0):mt(s=gt(e.elementRectangle,n,a),n,-1*a)||(s=ft(s,-1*a,lt(n,-1*a),!1),e.forcedInBounds=!0),e.elementRectangle=s}return e}function xt(t,e,n){var r=Ct(e).positiveEdge;return ft(t,r,n-(ut(t,e)-lt(t,r)))}function bt(t,e,n,r,i){void 0===r&&(r=0);var o=new rt(t.left,t.right,t.top,t.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?gt(o,e,s,r):function(t,e,n,r){void 0===r&&(r=0);var i=dt(-1*n,r);return ft(t,-1*n,lt(e,n)+i)}(o,e,s,r),o=a?gt(o,e,a):xt(o,l,ut(e,s))}function Ct(t){return t===$.top||t===$.bottom?{positiveEdge:$.left,negativeEdge:$.right}:{positiveEdge:$.top,negativeEdge:$.bottom}}function Et(t,e,n){return n&&Math.abs(pt(t,n,e))>Math.abs(pt(t,n,-1*e))?-1*e:e}function St(t,e,n,r,i,o,a,s){var l,c={},u=kt(e),d=o?n:-1*n,h=i||Ct(n).positiveEdge;return a&&!function(t,e,n){return void 0!==n&<(t,e)===lt(n,e)}(t,(l=h,-1*l),r)||(h=Et(t,h,r)),c[$[d]]=pt(t,u,d),c[$[h]]=pt(t,u,h),s&&(c[$[-1*d]]=pt(t,u,-1*d),c[$[-1*h]]=pt(t,u,-1*h)),c}function At(t,e,n){var r=ut(e,t),i=ut(n,t),o=Ct(t),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Lt(t,e,n,r,i,o,s,l,c){void 0===o&&(o=!1);var u=bt(t,e,r,i,c);return at(u,n)?{elementRectangle:u,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(t,e,n,r,i,o,s,l,c){void 0===i&&(i=!1),void 0===s&&(s=0);var u=r.alignmentEdge,d=r.alignTargetEdge,h={elementRectangle:t,targetEdge:r.targetEdge,alignmentEdge:u};l||c||(h=function(t,e,n,r,i,o,s){void 0===i&&(i=!1),void 0===s&&(s=0);var l=[$.left,$.right,$.bottom,$.top];(0,a.zg)()&&(l[0]*=-1,l[1]*=-1);for(var c,u=t,d=r.targetEdge,h=r.alignmentEdge,p=d,f=h,g=0;g<4;g++){if(mt(u,n,d))return{elementRectangle:u,targetEdge:d,alignmentEdge:h};if(i&&_t(e,n,d,o)){switch(d){case $.bottom:u.bottom=n.bottom;break;case $.top:u.top=n.top}return{elementRectangle:u,targetEdge:d,alignmentEdge:h,forcedInBounds:!0}}var m=vt(u,n);(!c||m<c)&&(c=m,p=d,f=h),l.splice(l.indexOf(d),1),l.length>0&&(l.indexOf(-1*d)>-1?d*=-1:(h=d,d=l.slice(-1)[0]),u=bt(t,e,{targetEdge:d,alignmentEdge:h},s))}return{elementRectangle:u=bt(t,e,{targetEdge:p,alignmentEdge:f},s),targetEdge:p,alignmentEdge:f}}(t,e,n,r,i,o,s));var p=st(h.elementRectangle,n),f=l?-h.targetEdge:void 0;if(p.length>0)if(d)if(h.alignmentEdge&&p.indexOf(-1*h.alignmentEdge)>-1){var g=function(t,e,n,r){var i=t.alignmentEdge,o=t.targetEdge,a=-1*i;return{elementRectangle:bt(t.elementRectangle,e,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(h,e,s,c);if(at(g.elementRectangle,n))return g;h=yt(st(g.elementRectangle,n),h,n,f)}else h=yt(p,h,n,f);else h=yt(p,h,n,f);return h}(u,e,n,r,o,s,i,l,c)}function kt(t){var e=t.getBoundingClientRect();return new rt(e.left,e.right,e.top,e.bottom)}function Tt(t,n,r,i,o,s){void 0===o&&(o=!1);var l=t.gapSpace?t.gapSpace:0,c=function(t,e){var n;if(e){if(e.preventDefault){var r=e;n=new rt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(e.getBoundingClientRect)n=kt(e);else{var i=e,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new rt(o,s,a,l)}if(!at(n,t))for(var c=0,u=st(n,t);c<u.length;c++){var d=u[c];n[$[d]]=t[$[d]]}}else n=new rt(0,0,0,0);return n}(r,t.target),u=function(t,e,n,r,i){return t.isAuto&&(t.alignmentEdge=At(t.targetEdge,e,n)),t.alignTargetEdge=i,t}(function(t,n,r){if(void 0===t&&(t=_.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var i=(0,e.pi)({},ot[t]);return(0,a.zg)()?(i.alignmentEdge&&i.alignmentEdge%2==0&&(i.alignmentEdge=-1*i.alignmentEdge),void 0!==n?ot[n]:i):i}(t.directionalHint,t.directionalHintForRTL,i),c,r,t.coverTarget,t.alignTargetEdge),d=Lt(kt(n),c,r,u,l,o,s,t.directionalHintFixed,t.coverTarget);return(0,e.pi)((0,e.pi)({},d),{targetRectangle:c})}function wt(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),function(t){return Math.sqrt(t*t*2)}(t?e:0)/2+n}function Dt(t,n,r,i,o,a,l,c){void 0===o&&(o=!1);var u=null!=c?c:(0,s.J)(),d=t.isBeakVisible&&t.beakWidth||0,h=wt(t.isBeakVisible,t.beakWidth,t.gapSpace),p=t;p.gapSpace=h;var f,g,m,v,_,y,x,b,E,S=t.bounds?(E=t.bounds,new rt(E.left,E.right,E.top,E.bottom)):new rt(0,u.innerWidth-function(t){if(void 0===K){var e=(0,C.M)(),n=e.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),e.body.appendChild(n),K=n.offsetWidth-n.clientWidth,e.body.removeChild(n)}return K}(),0,u.innerHeight),A=Tt(p,r,S,i,o,a),L=(f=A,g=function(t,e){var n=e.targetRectangle,r=Ct(e.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=ut(n,e.targetEdge),s=new rt(t/2,e.elementRectangle.width-t/2,t/2,e.elementRectangle.height-t/2),l=new rt(0,t,0,t);return mt(l=xt(l=ft(l,-1*e.targetEdge,-t/2),-1*e.targetEdge,a-ht(i,e.elementRectangle)),s,i)?mt(l,s,o)||(l=gt(l,s,o)):l=gt(l,s,i),l}(d,A),m=S,v=-1*f.targetEdge,_=new rt(0,f.elementRectangle.width,0,f.elementRectangle.height),y={},x=Et(f.elementRectangle,f.alignmentEdge?f.alignmentEdge:Ct(v).positiveEdge,m),b=pt(f.elementRectangle,f.targetRectangle,v)>Math.abs(lt(g,v)),y[$[v]]=lt(g,v),y[$[x]]=pt(g,_,x),{elementPosition:(0,e.pi)({},y),closestEdge:At(f.targetEdge,g,_),targetEdge:v,hideBeak:!b});return(0,e.pi)((0,e.pi)({},function(t,e,n,r,i){return{elementPosition:St(t.elementRectangle,e,t.targetEdge,n,t.alignmentEdge,r,i,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(A,n,S,t.coverTarget,l)),{beakPosition:L})}var Mt=["TEMPLATE","STYLE","SCRIPT"];function Pt(t){var e=(0,C.M)(t);if(!e)return function(){};for(var n=[];t!==e.body&&t.parentElement;){for(var r=0,i=t.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Mt.indexOf(o.tagName)&&n.push([o,a])}t=t.parentElement}return n.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var e=t[0],n=t[1];n?e.setAttribute("aria-hidden",n):e.removeAttribute("aria-hidden")}))}(n),n=[]}}var Ft=27,It=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,i=(0,s.J)(e);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0),r},t.prototype.clearImmediate=function(t,e){var n=(0,s.J)(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=e||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(e){var n=Date.now(),h=n-c,p=s?a-h:a;return h>=a&&(!e||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=t.apply(r._parent,o)):null===u&&l&&(u=r.setTimeout(d,p)),i};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o=t,d(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=e||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(t){p&&(r.clearTimeout(p),p=null),h=t},g=function(e){f(e),o=t.apply(r._parent,a)},m=function(t){var e=Date.now(),n=!1;t&&(l&&e-d>=s&&(n=!0),d=e);var i=e-d,a=s-i,f=e-h,v=!1;return null!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),i>=s||v||n?g(e):null!==p&&t||!c||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a=t,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,i=(0,s.J)(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=(0,s.J)(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Nt(){var t=i.useRef();return t.current||(t.current=new It),i.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.dispose(),t.current=void 0}}),[]),t.current}function Vt(t,e,n,r){var o=i.useRef(n);o.current=n,i.useEffect((function(){var n=t&&"current"in t?t.current:t;if(n&&n.addEventListener)return O(n,e,(function(t){return o.current(t)}),r)}),[t,e,r])}function Ot(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=i.useCallback((function(e){r.current=e;for(var n=0,i=t;n<i.length;n++){var o=i[n];"function"==typeof o?o(e):o&&(o.current=e)}}),(0,e.ev)([],t,!0));return r}var Ht=i.createContext({window:"object"==typeof window?window:void 0}),Bt=function(){return i.useContext(Ht).window},Rt=function(){var t;return null===(t=i.useContext(Ht).window)||void 0===t?void 0:t.document};function zt(t){var e=t.originalElement,n=t.containsFocus;e&&n&&e!==(0,s.J)()&&setTimeout((function(){var t;null===(t=e.focus)||void 0===t||t.call(e)}),0)}var Wt=i.forwardRef((function(t,n){var r=H({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=i.useRef(),a=Ot(o,n);!function(t,e){var n="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;i.useEffect((function(){if(n&&e.current)return Pt(e.current)}),[e,n])}(r,o),function(t,e){var n=t.onRestoreFocus,r=void 0===n?zt:n,o=i.useRef(),a=i.useRef(!1);i.useEffect((function(){var t,n,i;return o.current=(0,C.M)().activeElement,t=e.current,(i=(n=(0,C.M)(t))&&n.activeElement)&&b(t,i)&&(a.current=!0),function(){var t;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(t=(0,C.M)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Vt(e,"focus",i.useCallback((function(){a.current=!0}),[]),!0),Vt(e,"blur",i.useCallback((function(t){e.current&&t.relatedTarget&&!e.current.contains(t.relatedTarget)&&(a.current=!1)}),[]),!0)}(r,o);var s=r.role,l=r.className,c=r.ariaLabel,u=r.ariaLabelledBy,d=r.ariaDescribedBy,h=r.style,p=r.children,f=r.onDismiss,g=function(t,e){var n=Nt(),r=i.useState(!1),o=r[0],a=r[1];return i.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!t.style||!t.style.overflowY){var r=!1;if(e&&e.current&&(null===(n=e.current)||void 0===n?void 0:n.firstElementChild)){var i=e.current.clientHeight,s=e.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(r,o),m=i.useCallback((function(t){t.which===Ft&&f&&(f(t),t.preventDefault(),t.stopPropagation())}),[f]);return Vt(Bt(),"keydown",m),i.createElement("div",(0,e.pi)({ref:a},X(r,q),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:(0,e.pi)({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));Wt.displayName="Popup";var Yt=n(1786);function Zt(t){var e=i.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}var qt,Xt=function(){var t;return(null!==(t=Bt())&&void 0!==t?t:"undefined"!=typeof window)?window:void 0},Ut=function(t){var e,n;return(null!==(n=null===(e=null==t?void 0:t.window)||void 0===e?void 0:e.document)&&void 0!==n?n:"undefined"!=typeof document)?document:void 0},jt=((qt={})[$.top]=Yt.k4.slideUpIn10,qt[$.bottom]=Yt.k4.slideDownIn10,qt[$.left]=Yt.k4.slideLeftIn10,qt[$.right]=Yt.k4.slideRightIn10,qt),Gt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Kt=["role","aria-roledescription"],$t={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_.bottomAutoEdge},Jt=(0,o.y)({disableCaching:!0});function Qt(t,e,n,r){var o,a=t.calloutMaxHeight,s=t.finalHeight,l=t.directionalHint,c=t.directionalHintFixed,u=t.hidden,d=t.gapSpace,h=t.beakWidth,p=t.isBeakVisible,f=i.useState(),g=f[0],m=f[1],v=null!==(o=null==r?void 0:r.elementPosition)&&void 0!==o?o:{},_=v.top,y=v.bottom,x=(null==n?void 0:n.current)?function(t){var e,n,r,i,o=t,a=t,s=t,l=null!==(e=s.left)&&void 0!==e?e:s.x,c=null!==(n=s.top)&&void 0!==n?n:s.y,u=null!==(r=s.right)&&void 0!==r?r:l,d=null!==(i=s.bottom)&&void 0!==i?i:c;return o.stopPropagation?new rt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==l&&void 0!==c?new rt(l,u,c,d):kt(a)}(n.current):void 0;return i.useEffect((function(){var t,n,i=null!==(t=e())&&void 0!==t?t:{},o=i.top,s=i.bottom;(null==r?void 0:r.targetEdge)===$.top&&(null==x?void 0:x.top)&&(s=x.top-function(t,e,n){return wt(t,e,n)}(p,h,d)),"number"==typeof _&&s?n=s-_:"number"==typeof y&&"number"==typeof o&&s&&(n=s-o-y),m(!a&&!u||a&&n&&a>n?n:a||void 0)}),[y,a,s,l,c,e,u,r,_,d,h,p,x]),g}function te(t,n,r,o,a,l){var c,u=i.useState(),d=u[0],h=u[1],p=i.useRef(0),f=i.useRef(),g=Nt(),m=t.hidden,v=t.target,_=t.finalHeight,y=t.calloutMaxHeight,x=t.onPositioned,b=t.directionalHint,C=t.hideOverflow,E=t.preferScrollResizePositioning,S=Xt(),A=i.useRef();A.current!==l.current&&(A.current=l.current,c=l.current?null==S?void 0:S.getComputedStyle(l.current):void 0);var L=null==c?void 0:c.overflowY;return i.useEffect((function(){if(!m){var i=g.requestAnimationFrame((function(){var i,l,c,u;if(n.current&&r){var g=(0,e.pi)((0,e.pi)({},t),{target:o.current,bounds:a()}),m=r.cloneNode(!0);m.style.maxHeight=y?"".concat(y):"",m.style.visibility="hidden",null===(i=r.parentElement)||void 0===i||i.appendChild(m);var b=f.current===v?d:void 0,A=E&&!(C||"clip"===L||"hidden"===L),k=_?function(t,e,n,r,i){return function(t,e,n,r,i){return Dt(t,e,n,r,!1,void 0,!0,null!=i?i:(0,s.J)())}(t,e,n,r,i)}(g,n.current,m,b,S):function(t,e,n,r,i,o,a){return Dt(t,e,n,r,i,void 0,void 0,a)}(g,n.current,m,b,A,0,S);null===(l=r.parentElement)||void 0===l||l.removeChild(m),!d&&k||d&&k&&(u=k,!re((c=d).elementPosition,u.elementPosition)||!re(c.beakPosition.elementPosition,u.beakPosition.elementPosition))&&p.current<5?(p.current++,h(k)):p.current>0&&(p.current=0,null==x||x(d))}}),r);return f.current=v,function(){g.cancelAnimationFrame(i),f.current=void 0}}h(void 0),p.current=0}),[m,b,g,r,y,n,o,_,a,x,d,t,v,C,E,L,S]),d}var ee=i.memo(i.forwardRef((function(t,n){var r=H($t,t),o=r.styles,a=r.style,s=r.ariaLabel,l=r.ariaDescribedBy,c=r.ariaLabelledBy,u=r.className,d=r.isBeakVisible,h=r.children,p=r.beakWidth,f=r.calloutWidth,g=r.calloutMaxWidth,m=r.calloutMinWidth,v=r.doNotLayer,_=r.finalHeight,y=r.hideOverflow,x=void 0===y?!!_:y,E=r.backgroundColor,S=r.calloutMaxHeight,A=r.onScroll,L=r.shouldRestoreFocus,T=void 0===L||L,w=r.target,D=r.hidden,M=r.onLayerMounted,P=r.popupProps,F=i.useRef(null),I=Ot(i.useRef(null),null==P?void 0:P.ref),N=i.useState(null),V=N[0],B=N[1],R=i.useCallback((function(t){B(t)}),[]),z=Ot(F,n),W=function(t,e){var n=i.useRef(),r=i.useRef(null),o=Bt();if(!t||t!==n.current||"string"==typeof t){var a=null==e?void 0:e.current;if(t)if("string"==typeof t){var s=(0,C.M)(a);r.current=s?s.querySelector(t):null}else r.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;n.current=t}return[r,o]}(r.target,{current:V}),Y=W[0],Z=W[1],j=function(t,e,n){var r=t.bounds,o=t.minPagePadding,a=void 0===o?$t.minPagePadding:o,s=t.target,l=i.useState(!1),c=l[0],u=l[1],d=i.useRef(),h=i.useCallback((function(){if(!d.current||c){var t="function"==typeof r?n?r(s,n):void 0:r;!t&&n&&(t=function(t,e){return function(t,e){var n=void 0;if(e.getWindowSegments&&(n=e.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight};var r=0,i=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==t&&(r=t.left||t.x,i=t.top||t.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(t,e)}(e.current,n),t={top:t.top+a,left:t.left+a,right:t.right-a,bottom:t.bottom-a,width:t.width-2*a,height:t.height-2*a}),d.current=t,c&&u(!1)}return d.current}),[r,a,s,e,n,c]),p=Nt();return Vt(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(r,Y,Z),G=te(r,F,V,Y,j,I),K=Qt(r,j,Y,G),$=function(t,e,n,r,o){var a=t.hidden,s=t.onDismiss,l=t.preventDismissOnScroll,c=t.preventDismissOnResize,u=t.preventDismissOnLostFocus,d=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,p=t.preventDismissOnEvent,f=i.useRef(!1),g=Nt(),m=Zt([function(){f.current=!0},function(){f.current=!1}]),v=!!e;return i.useEffect((function(){var t=function(t){v&&!l&&m(t)},e=function(t){c||p&&p(t)||null==s||s(t)},i=function(t){u||m(t)},m=function(t){var e=t.composedPath?t.composedPath():[],i=e.length>0?e[0]:t.target,a=n.current&&!b(n.current,i);if(a&&f.current)f.current=!1;else if(!r.current&&a||t.target!==o&&a&&(!r.current||"stopPropagation"in r.current||d||i!==r.current&&!b(r.current,i))){if(p&&p(t))return;null==s||s(t)}},_=function(t){h&&((!p||p(t))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==s||s(t))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[O(o,"scroll",t,!0),O(o,"resize",e,!0),O(o.document.documentElement,"focus",i,!0),O(o.document.documentElement,"click",i,!0),O(o,"blur",_,!0)];n((function(){r.forEach((function(t){return t()}))}))}}),0)}));return function(){y.then((function(t){return t()}))}}),[a,g,n,r,o,s,h,d,u,c,l,v,p]),m}(r,G,F,Y,Z),J=$[0],Q=$[1],tt=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),et=(0,e.pi)((0,e.pi)({},null==G?void 0:G.elementPosition),{maxHeight:K});if(tt&&(et.bottom=void 0),function(t,e,n){var r=t.hidden,o=t.setInitialFocus,a=Nt(),s=!!e;i.useEffect((function(){if(!r&&o&&s&&n){var t=a.requestAnimationFrame((function(){return k(n)}),n);return function(){return a.cancelAnimationFrame(t)}}}),[r,s,a,n,o])}(r,G,V),i.useEffect((function(){D||null==M||M()}),[D]),!Z)return null;var nt=x,rt=d&&!!w,it=Jt(o,{theme:r.theme,className:u,overflowYHidden:nt,calloutWidth:f,positions:G,beakWidth:p,backgroundColor:E,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),ot=(0,e.pi)((0,e.pi)({maxHeight:S||"100%"},a),nt&&{overflowY:"hidden"}),at=r.hidden?{visibility:"hidden"}:void 0;return i.createElement("div",{ref:z,className:it.container,style:at},i.createElement("div",(0,e.pi)({},X(r,q,Kt),{className:U(it.root,G&&G.targetEdge&&jt[G.targetEdge]),style:G?(0,e.pi)({},et):Gt,tabIndex:-1,ref:R}),rt&&i.createElement("div",{className:it.beak,style:ne(G)}),rt&&i.createElement("div",{className:it.beakCurtain}),i.createElement(Wt,(0,e.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:it.calloutMain,onDismiss:r.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:T,style:ot},P,{ref:I}),h)))})),(function(t,e){return!(e.shouldUpdateWhenHidden||!t.hidden||!e.hidden)||function(t,e){if(!t||!e)return!t&&!e;for(var n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(var n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}(t,e)}));function ne(t){var n,r,i=(0,e.pi)((0,e.pi)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null==t?void 0:t.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return i.top||i.bottom||i.left||i.right||(i.left=0,i.top=0),i}function re(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],i=e[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0}function ie(t){return{height:t,width:t}}ee.displayName="CalloutContentBase";var oe={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},ae=(0,t.z)(ee,(function(t){var e,n=t.theme,r=t.className,i=t.overflowYHidden,o=t.calloutWidth,a=t.beakWidth,s=t.backgroundColor,l=t.calloutMaxWidth,c=t.calloutMinWidth,u=t.doNotLayer,d=(0,Yt.Cn)(oe,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Yt.bR.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(e={},e[Yt.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},e)},(0,Yt.e2)(),r,!!o&&{width:o},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ie(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),se=i.createContext(void 0),le=function(){return function(){}};se.Provider;var ce=ReactDOM,ue=n(156);new WeakMap,new WeakMap;var de=i.createContext(void 0),he=function(t){var e=t.providerRef,n=t.layerRoot,r=i.useState([])[0],o=i.useContext(de),a=void 0!==o&&!n,s=i.useMemo((function(){return a?void 0:{providerRef:e,registeredProviders:r,registerProvider:function(t){r.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var e=r.indexOf(t);e>=0&&r.splice(e,1)}}}),[e,r,o,a]);return i.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?i.createElement(de.Provider,{value:s},t.children):i.createElement(i.Fragment,null,t.children)},pe=n(775),fe=n(2049);function ge(t,n){void 0===t&&(t={});var r=me(n)?n:function(t){return function(n){return t?(0,e.pi)((0,e.pi)({},n),t):n}}(n);return r(t)}function me(t){return"function"==typeof t}var ve=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){pe.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){pe.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return i.createElement(fe.i.Consumer,null,(function(r){var o=function(t,n){var r,i,o,a=(n||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:ge(s.settings,t.settings),scopedSettings:(r=s.scopedSettings,i=t.scopedSettings,void 0===r&&(r={}),(me(i)?i:(void 0===(o=i)&&(o={}),function(t){var n=(0,e.pi)({},t);for(var r in o)o.hasOwnProperty(r)&&(n[r]=(0,e.pi)((0,e.pi)({},t[r]),o[r]));return n}))(r)),inCustomizerContext:!0}}}(t.props,r);return n&&(o=n(o)),i.createElement(fe.i.Provider,{value:o},t.props.children)}))},n}(i.Component),_e=n(685),ye=(0,o.y)(),xe=(0,ue.NF)((function(t,n){return(0,_e.j)((0,e.pi)((0,e.pi)({},t),{rtl:n}))})),be=i.forwardRef((function(t,n){var r=t.className,o=t.theme,s=t.applyTheme,l=t.applyThemeToBody,c=t.styles,u=ye(c,{theme:o,applyTheme:s,className:r}),d=i.useRef(null);return function(t,e,n){var r=e.bodyThemed;i.useEffect((function(){if(t){var e=(0,C.M)(n.current);if(e)return e.body.classList.add(r),function(){e.body.classList.remove(r)}}}),[r,t,n])}(l,u,d),i.createElement(i.Fragment,null,function(t,n,r,o){var s=n.root,l=t.as,c=void 0===l?"div":l,u=t.dir,d=t.theme,h=X(t,q,["dir"]),p=function(t){var e=t.theme,n=t.dir,r=(0,a.zg)(e)?"rtl":"ltr",i=(0,a.zg)()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}}(t),f=p.rootDir,g=p.needsTheme,m=i.createElement(he,{providerRef:r},i.createElement(c,(0,e.pi)({dir:f},h,{className:s,ref:Ot(r,o)})));return g&&(m=i.createElement(ve,{settings:{theme:xe(d,"rtl"===u)}},m)),m}(t,u,d,n))}));be.displayName="FabricBase";var Ce,Ee={fontFamily:"inherit"},Se={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ae=(0,t.z)(be,(function(t){var e=t.applyTheme,n=t.className,r=t.preventBlanketFontInheritance,i=t.theme;return{root:[(0,Yt.Cn)(Se,i).root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":Ee,"& input":Ee,"& textarea":Ee},e&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Le=n(9766),ke="data-portal-element",Te={},we={},De="fluent-default-layer-host",Me="#".concat(De),Pe=n(8873),Fe=(0,Pe.N)()?i.useLayoutEffect:i.useEffect,Ie=(0,o.y)(),Ne=i.forwardRef((function(t,n){var r,o=null!==(r=i.useContext(se))&&void 0!==r?r:le,a=i.useRef(null),s=Ot(a,n),l=i.useRef(),c=i.useRef(null),u=i.useContext(de),d=i.useState(!1),h=d[0],p=d[1],f=i.useCallback((function(t){var e,n=!!(null==(e=null==u?void 0:u.providerRef)?void 0:e.current)&&e.current.classList.contains(Le.G$);t&&n&&t.classList.add(Le.G$)}),[u]),g=t.children,m=t.className,v=t.eventBubblingEnabled,_=t.fabricProps,y=t.hostId,x=t.insertFirst,b=t.onLayerDidMount,E=void 0===b?function(){}:b,S=t.onLayerMounted,A=void 0===S?function(){}:S,L=t.onLayerWillUnmount,k=t.styles,T=t.theme,w=Ot(c,null==_?void 0:_.ref,f),D=Ie(k,{theme:T,className:m,isNotHost:!y}),M=function(){null==L||L();var t=l.current;l.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},P=function(){var t,e=(0,C.M)(a.current);if(e){var n=function(t){var e,n;if(y){var r=function(t){var e=we[t];return e&&e[0]||void 0}(y);return r?null!==(e=r.rootRef.current)&&void 0!==e?e:null:null!==(n=t.getElementById(y))&&void 0!==n?n:null}var i=Me,o=i?t.querySelector(i):null;return o||(o=function(t){var e=t.createElement("div");return e.setAttribute("id",De),e.style.cssText="position:fixed;z-index:1000000",null==t||t.body.appendChild(e),e}(t)),o}(e);if(n){M();var r=(null!==(t=n.ownerDocument)&&void 0!==t?t:e).createElement("div");r.className=D.root,r.setAttribute(ke,"true"),function(t,e){var n=t,r=e;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==e){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,p(!0)}}};return Fe((function(){P(),y&&function(t,e){Te[t]||(Te[t]=[]),Te[t].push(e);var n=we[t];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(y,P);var t=l.current?o(l.current):void 0;return function(){t&&t(),M(),y&&function(t,e){var n=Te[t];if(n){var r=n.indexOf(e);r>=0&&(n.splice(r,1),0===n.length&&delete Te[t])}var i=we[t];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(y,P)}}),[y]),i.useEffect((function(){l.current&&h&&(null==A||A(),null==E||E(),p(!1))}),[h,A,E]),i.createElement("span",{className:"ms-layer",ref:s},l.current&&ce.createPortal(i.createElement(he,{layerRoot:!0,providerRef:w},i.createElement(Ae,(0,e.pi)({},!v&&(Ce||(Ce={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return Ce[t]=Ve}))),Ce),_,{className:U(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Ne.displayName="LayerBase";var Ve=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Oe={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},He=(0,t.z)(Ne,(function(t){var e=t.className,n=t.isNotHost,r=t.theme,i=(0,Yt.Cn)(Oe,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Yt.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],e],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Be=i.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,a=(0,e._T)(t,["layerProps","doNotLayer"]),s=i.createElement(ae,(0,e.pi)({},a,{doNotLayer:o,ref:n}));return o?s:i.createElement(He,(0,e.pi)({},r),s)}));Be.displayName="Callout";var Re,ze=n(3813),We=n(8024);function Ye(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function Ze(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Ye(t,t[n],e[n]))}(t,{componentDidMount:qe,componentDidUpdate:Xe,componentWillUnmount:Ue})}function qe(){je(this.props.componentRef,this)}function Xe(t){t.componentRef!==this.props.componentRef&&(je(t.componentRef,null),je(this.props.componentRef,this))}function Ue(){je(this.props.componentRef,null)}function je(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}function Ge(t,e,n){var r=x(t,(function(t){return e===t||t.hasAttribute(ke)}),n);return null!==r&&r.hasAttribute(ke)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(Re||(Re={}));var Ke,$e="data-is-focusable",Je="data-focuszone-id",Qe="tabindex",tn="data-no-vertical-wrap",en="data-no-horizontal-wrap",nn=999999999,rn=-999999999;function on(t,e){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==e?void 0:e.ctrlKey,metaKey:null==e?void 0:e.metaKey,shiftKey:null==e?void 0:e.shiftKey,altKey:null==e?void 0:e.altKey,bubbles:null==e?void 0:e.bubbles,cancelable:null==e?void 0:e.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!e&&e.bubbles,!!e&&e.cancelable,window,0,0,0,0,0,!!e&&e.ctrlKey,!!e&&e.altKey,!!e&&e.shiftKey,!!e&&e.metaKey,0,null),t.dispatchEvent(n)}var an,sn={},ln=new Set,cn=["text","number","password","email","tel","url","search","textarea"],un=!1,dn=function(t){function n(e){var r,o,s,l,c,u=this;(u=t.call(this,e)||this)._root=i.createRef(),u._mergedRef=(c={refs:[]},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return c.resolver&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(c.refs,t)||(c.resolver=function(t){return function(e){for(var n=0,r=t.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):i&&(i.current=e)}}}(c)),c.refs=t,c.resolver}),u._onFocus=function(t){if(!u._portalContainsElement(t.target)){var e,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(t.target);if(d)e=t.target;else for(var h=t.target;h&&h!==u._root.current;){if(P(h)&&u._isImmediateDescendantOfZone(h)){e=h;break}h=y(h,un)}if(l&&t.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&P(p)?(e=p,p.focus()):(u.focus(!0),u._activeElement&&(e=null))}var f=!u._activeElement;e&&e!==u._activeElement&&((d||f)&&u._setFocusAlignment(e,!0,!0),u._activeElement=e,f&&u._updateTabIndexes()),r&&r(u._activeElement,t),(o||i)&&t.stopPropagation(),s?s(t):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(t){if(!u._portalContainsElement(t.target)&&!u.props.disabled){for(var e=t.target,n=[];e&&e!==u._root.current;)n.push(e),e=y(e,un);for(;n.length&&((e=n.pop())&&P(e)&&u._setActiveElement(e,!0),!F(e)););}},u._onKeyDown=function(t,e){if(!u._portalContainsElement(t.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(t),t.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((l&&l(t)||o&&o(t))&&u._isImmediateDescendantOfZone(t.target)){var c=u._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!I(t.target))return;if(!u.focusElement(w(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(r!==Re.vertical&&(u._preventDefaultWhenHandled(t),u._moveFocusLeft(e)))break;return;case 39:if(r!==Re.vertical&&(u._preventDefaultWhenHandled(t),u._moveFocusRight(e)))break;return;case 38:if(r!==Re.horizontal&&(u._preventDefaultWhenHandled(t),u._moveFocusUp()))break;return;case 40:if(r!==Re.horizontal&&(u._preventDefaultWhenHandled(t),u._moveFocusDown()))break;return;case 34:if(!s&&u._moveFocusPaging(!0))break;return;case 33:if(!s&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(t.target)){var d=!1;if(u._processingTabKey=!0,d=r!==Re.vertical&&u._shouldWrapFocus(u._activeElement,en)?((0,a.zg)(e)?!t.shiftKey:t.shiftKey)?u._moveFocusLeft(e):u._moveFocusRight(e):t.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,d)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(t.target)||u._isElementInput(t.target)&&!u._shouldInputLoseFocus(t.target,!1))return!1;var h=u._root.current&&u._root.current.firstChild;if(u._root.current&&h&&u.focusElement(w(u._root.current,h,!0)))break;return;case 35:if(u._isContentEditableElement(t.target)||u._isElementInput(t.target)&&!u._shouldInputLoseFocus(t.target,!0))return!1;var p=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(T(u._root.current,p,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(t,e,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(e.bottom),a=Math.floor(n.bottom),s=Math.floor(e.top);return t&&i>o||!t&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,tn)?nn:rn},Ze(u),u._id=f("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var d=null===(o=null!==(r=e.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===o||o;return u._shouldRaiseClicksOnEnter=null!==(s=e.shouldRaiseClicksOnEnter)&&void 0!==s?s:d,u._shouldRaiseClicksOnSpace=null!==(l=e.shouldRaiseClicksOnSpace)&&void 0!==l?l:d,u}return(0,e.ZT)(n,t),n.getOuterZones=function(){return ln.size},n._onKeyDownCapture=function(t){9===t.which&&ln.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t=this._root.current;if(sn[this._id]=this,t){for(var e=y(t,un);e&&e!==this._getDocument().body&&1===e.nodeType;){if(F(e)){this._isInnerZone=!0;break}e=y(e,un)}this._isInnerZone||(ln.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if((this._activeElement&&!b(this._root.current,this._activeElement,un)||this._defaultFocusElement&&!b(this._root.current,this._defaultFocusElement,un))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&e&&this._lastIndexPath&&(e.activeElement===e.body||null===e.activeElement||e.activeElement===t)){var n=function(t,e){for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return P(n)&&D(n)?n:w(t,n,!0)||T(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete sn[this._id],this._isInnerZone||(ln.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,r=n.as,o=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=X(this.props,W),d=r||o||"div";this._evaluateFocusBeforeRender();var h=(0,Yt.gh)();return i.createElement(d,(0,e.pi)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:U((Ke||(Ke=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Ke),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute($e)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=sn[n.getAttribute(Je)];return!!r&&r.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&b(this._root.current,this._activeElement)&&P(this._activeElement)&&(!e||M(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(w(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,e))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(T(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,e){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(t)||r&&!r(t)||!t||(this._setActiveElement(t,e),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=b(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=y(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},n.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(F(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,e){var n=t;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute($e)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return on(n,e),!0;n=y(n,un)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(F(t))return sn[t.getAttribute(Je)];for(var e=t.firstElementChild;e;){if(F(e))return sn[e.getAttribute(Je)];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},n.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===Re.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var c=l?i.getBoundingClientRect():null;do{if(i=t?w(this._root.current,i):T(this._root.current,i),!l){a=i;break}if(i){var u=e(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return t?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},n.prototype._moveFocusDown=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?t._shouldWrapFocus(t._activeElement,tn)?nn:rn:((-1===e&&a>=s||a===e)&&(e=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?t._shouldWrapFocus(t._activeElement,tn)?nn:rn:((-1===e&&a<=l||s===e)&&(e=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,en);return!!this._moveFocus((0,a.zg)(t),(function(r,i){var o=-1;return((0,a.zg)(t)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&e.props.direction!==Re.vertical?o=r.right-i.right:n||(o=rn),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,en);return!!this._moveFocus(!(0,a.zg)(t),(function(r,i){var o=-1;return((0,a.zg)(t)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&e.props.direction!==Re.vertical?o=i.left-r.left:n||(o=rn),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=et(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?w(this._root.current,n):T(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(t,c,u);if(t&&d>h+l||!t&&p<f-l)break;g>-1&&(t&&d>a?(a=d,i=g,o=n):!t&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},n.prototype._setFocusAlignment=function(t,e,n){if(this.props.direction===Re.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),e&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var e=y(t,un);e&&e!==this._root.current&&e!==this._getDocument().body;){if(F(e))return e;e=y(e,un)}return e},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!b(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];F(r)?"true"===r.getAttribute($e)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"0"))):(r.getAttribute&&"false"===r.getAttribute($e)&&r.setAttribute(Qe,"-1"),P(r)?this.props.disabled?r.setAttribute(Qe,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&cn.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,i=t.value,o=t.readOnly;if(r||n>0&&!e&&!o||n!==i.length&&e&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||function(t,e,n){return"true"!==function(t,e,n){var r=x(t,(function(t){return t.hasAttribute(e)}),n);return r&&r.getAttribute(e)}(t,e,null!=n?n:(0,C.M)())}(t,e)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ge(t,this._root.current)},n.prototype._getDocument=function(){return(0,C.M)(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:Re.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(i.Component);function hn(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(an||(an={}));var pn,fn=(0,o.y)(),gn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"==typeof t.content?i.createElement("p",{className:e._classNames.subText},t.content):i.createElement("div",{className:e._classNames.subText},t.content)},e}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.calloutProps,o=t.directionalHint,a=t.directionalHintForRTL,s=t.styles,l=t.id,c=t.maxWidth,u=t.onRenderContent,d=void 0===u?this._onRenderContent:u,h=t.targetElement,p=t.theme;return this._classNames=fn(s,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),i.createElement(Be,(0,e.pi)({target:h,directionalHint:o,directionalHintForRTL:a},r,X(this.props,q,["id"]),{className:this._classNames.root}),i.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:_.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(i.Component),mn=(0,t.z)(gn,(function(t){var e=t.className,n=t.beakWidth,r=void 0===n?16:n,i=t.gapSpace,o=void 0===i?0:i,a=t.maxWidth,s=t.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Yt.k4.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},e],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(pn||(pn={}));var vn,_n,yn=(0,o.y)(),xn=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=i.createRef(),r._defaultTooltipId=f("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var t=r.props.overflowMode;if(void 0!==t)switch(t){case an.Parent:return r._tooltipHost.current.parentElement;case an.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(t){var e;r._ignoreNextFocusEvent=(null===(e=Ut(r.context))||void 0===e?void 0:e.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var e=r.props,i=e.overflowMode,o=e.delay,a=Ut(r.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&!hn(s))return}if(!t.target||!Ge(t.target,r._getTargetElement(),a))if(r._clearDismissTimer(),r._clearOpenTimer(),o!==pn.zero){var l=r._getDelayTime(o);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var e=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),e?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),e):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ft||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(t)}))},r._getDelayTime=function(t){switch(t){case pn.medium:return 300;case pn.long:return 500;default:return 0}},Ze(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new It(r),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,r=t.children,o=t.content,a=t.directionalHint,s=t.directionalHintForRTL,l=t.hostClassName,c=t.id,u=t.setAriaDescribedBy,d=void 0===u||u,h=t.tooltipProps,p=t.styles,f=t.theme;this._classNames=yn(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=(0,e.pi)((0,e.pi)({id:"".concat(m,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:j({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},X(this.props,q,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(t){return(null==t?void 0:t.content)?i.createElement(i.Fragment,null,t.content):null})):o,y=g&&!!_,x=d&&g&&_?m:void 0;return i.createElement("div",(0,e.pi)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),r,y&&i.createElement(mn,(0,e.pi)({},v)),i.createElement("div",{hidden:!0,id:m,style:Yt.ul},_))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:pn.medium},n.contextType=Ht,n}(i.Component),bn={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Cn=(0,t.z)(xn,(function(t){var e=t.className,n=t.theme;return{root:[(0,Yt.Cn)(bn,n).root,{display:"inline"},e]}}),void 0,{scope:"TooltipHost"}),En=function(t){function n(e){var n=t.call(this,e)||this;return n._tooltipChild=i.createRef(),n._checkTextOverflow=function(){var t=n._getTargetElement(),e=!!t&&hn(t);e!==n.state.textOverflow&&n.setState({textOverflow:e})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new It(n),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.content,o=t.accessibilityData;return i.createElement(Cn,{overflowMode:an.Self,hostClassName:n,content:r},i.createElement("span",(0,e.pi)({},(0,ze.ey)(o),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(i.Component),Sn=(0,o.y)(),An=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=Sn(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},n._getChartDataText=function(t){return n.props.barChartCustomData?i.createElement("div",{role:"text"},n.props.barChartCustomData(t)):n._getDefaultTextData(t)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_HBC_empty"),n.barChartSvgRef=i.createRef(),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var t=this,n=this.props,r=n.data,o=n.theme;this._adjustProps();var a=o.palette,s=0;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(e,n){s=e.chartData&&e.chartData[0]&&e.chartData[0].horizontalBarChartdata.x?e.chartData[0].horizontalBarChartdata.x:0,e.chartData[1]={legend:"",horizontalBarChartdata:{x:e.chartData[0].horizontalBarChartdata.y-s,y:e.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=t.props.variant===h.AbsoluteScale?null:t._getChartDataText(e),o=t._createBars(e,a),l=t._uniqLineText+"_"+n,c=Sn(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!e.chartData[0].data,variant:t.props.variant});return i.createElement("div",{key:n},i.createElement("div",{className:c.items},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:t._classNames.chartTitle},e.chartTitle&&i.createElement(En,{className:t._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),r)),e.chartData[0].data&&t._createBenchmark(e),i.createElement(dn,{direction:Re.horizontal,className:t._classNames.chartWrapper},i.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":e.chartTitle},i.createElement("g",{id:l,key:l,ref:function(n){t._refCallback(n,e.chartData[0].legend)},onClick:function(){var t=e.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),i.createElement(Be,(0,e.pi)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._hoverOn=function(t,e){if((!this.state.isCalloutVisible||this.state.legend!==e.legend)&&this._calloutAnchorPoint!==e){var n=v(this._refArray,(function(t){return t.index===e.legend}));this._calloutAnchorPoint=e,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:e.color,legend:e.legend,refSelected:n.refElement,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,barCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,r=this.props.chartDataMode||"default",o=t.chartData[0],a=o.horizontalBarChartdata.x,s=o.horizontalBarChartdata.y,l=(0,ze.ey)(t.chartDataAccessibilityData,"text",!1);switch(r){case"default":return i.createElement("div",(0,e.pi)({className:this._classNames.chartTitleRight},l),(0,ze.Ts)(a,n));case"fraction":return i.createElement("div",(0,e.pi)({},l),i.createElement("span",{className:this._classNames.chartTitleRight},(0,ze.Ts)(a,n)),i.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,ze.Ts)(s,n)));case"percentage":var c="".concat((0,ze.Ts)(Math.round(a/s*100),n),"%");return i.createElement("div",(0,e.pi)({className:this._classNames.chartTitleRight},l),c)}},n.prototype._createBenchmark=function(t){var e=t.chartData[0].horizontalBarChartdata.y,n=t.chartData[0].data,r={left:"calc("+Math.round((n||0)/e*100)+"% - 4px)"};return i.createElement("div",{className:this._classNames.benchmarkContainer},i.createElement("div",{className:this._classNames.triangle,style:r}))},n.prototype._createBars=function(t,e){var n,r=this,o=(null===(n=t.chartData)||void 0===n?void 0:n.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(o-1),s=[e.blueLight,e.blue,e.blueMid,e.red,e.black],l=[],c=t.chartData.reduce((function(t,e){return t+(e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0)}),0),u=0,d=0,p=0;t.chartData.map((function(t,e){var n=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(d=n/c*100)<0?d=0:d<1&&0!==d&&(d=1),p+=d}));var f=0!==p?(p-a)/100:1,g=t.chartData.map((function(e,n){var o=e.color?e.color:s[Math.floor(4*Math.random()+1)],a=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;n>0&&(u+=d),(d=a/c*100)<0?d=0:d<1&&0!==d?d=1/f:d/=f,l.push(u);var p=e.horizontalBarChartdata.x;if(1===n&&r.props.variant===h.AbsoluteScale){if(r.props.hideLabels)return i.createElement("text",{key:n});var g=t.chartData[0].horizontalBarChartdata.x;return i.createElement("text",{key:n,x:"".concat(r._isRTL?100-l[n]:l[n],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(g))}return i.createElement("rect",{key:n,x:"".concat(r._isRTL?100-l[n]-d-n*r.state.barSpacingInPercent:l[n]+n*r.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==e.legend,width:d+"%",height:r._barHeight,fill:o,onMouseOver:""!==e.legend?r._hoverOn.bind(r,p,e):void 0,onFocus:""!==e.legend?r._hoverOn.bind(r,p,e):void 0,role:"img","aria-label":r._getAriaLabel(e),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper})}));return g},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(i.Component),Ln=(0,t.z)(An,(function(t){var n=t.className,r=t.theme,i=t.width,o=t.barHeight,a=t.showTriangle,s=t.variant,l=t.hideLabels,c=r.palette;return{root:[{display:"flex",flexDirection:"column",width:i||"100%"},n],items:{marginBottom:a||s===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,e.pi)((0,e.pi)({},r.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:r.palette.neutralPrimary,marginBottom:s===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:r.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.TS.medium,color:r.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,e.pi)((0,e.pi)({},r.fonts.small),{fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==h.AbsoluteScale||l?0:40}}})),kn={host:"ms-HoverCard-host"},Tn=function(){function t(e){this._id=t._uniqueId++,this._parent=e,this._eventRecords=[]}return t.raise=function(e,n,r,i,o){var a,s=null!=o?o:(0,C.M)();if(t._isElement(e)){if(void 0!==s&&s.createEvent){var l=s.createEvent("HTMLEvents");l.initEvent(n,i||!1,!0),j(l,r),a=e.dispatchEvent(l)}else if(void 0!==s&&s.createEventObject){var c=s.createEventObject(r);e.fireEvent("on"+n,c)}}else for(;e&&!1!==a;){var u=e.__events__,d=u?u[n]:null;if(d)for(var h in d)if(d.hasOwnProperty(h))for(var p=d[h],f=0;!1!==a&&f<p.length;f++){var g=p[f];g.objectCallback&&(a=g.objectCallback.call(g.parent,r))}e=i?e.parent:null}return a},t.isObserved=function(t,e){var n=t&&t.__events__;return!!n&&!!n[e]},t.isDeclared=function(t,e){var n=t&&t.__declaredEvents;return!!n&&!!n[e]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,e,n){for(var r in e)e.hasOwnProperty(r)&&this.on(t,r,e[r],n)},t.prototype.on=function(e,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(e,a[s],r,i);else{var l=this._parent,c={target:e,eventName:n,parent:l,callback:r,options:i};if((a=e.__events__=e.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,t._isElement(e)){var u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,t))&&t[0]){var i=t[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};c.elementCallback=u,e.addEventListener?e.addEventListener(n,u,i):e.attachEvent&&e.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!o._isDisposed)return r.apply(l,t)};this._eventRecords.push(c)}},t.prototype.off=function(t,e,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(t&&t!==o.target||e&&e!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},t.prototype.raise=function(e,n,r){return t.raise(this._parent,e,n,r)},t.prototype.declare=function(t){var e=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)e[t]=!0;else for(var n=0;n<t.length;n++)e[t[n]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(vn||(vn={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(_n||(_n={}));var wn,Dn={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Mn(t){var e=(0,i.useRef)();return(0,i.useEffect)((function(){e.current=t})),e.current}function Pn(t,e){var n=i.useRef(e);return n.current||(n.current=f(t)),n.current}function Fn(t){var e=i.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Fe((function(){e.current=t}),[t]),Zt((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.current.apply(void 0,t)}}))}!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(wn||(wn={}));var In={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Nn=i.forwardRef((function(t,n){var r,o,a,s=i.useRef(null),l=i.useRef(null),c=i.useRef(null),u=Ot(s,n),d=Rt(),h=Xt(),p=null===(r=Mn(!1))||void 0===r||r,f=H(In,t),g=Zt({hasFocus:!1,focusStackId:Pn("ftz-",f.id)}),m=f.children,v=f.componentRef,_=f.disabled,y=f.disableFirstFocus,x=f.forceFocusInsideTrap,C=f.focusPreviouslyFocusedInnerElement,E=f.firstFocusableSelector,S=f.firstFocusableTarget,A=f.disableRestoreFocus,L=void 0===A?f.ignoreExternalFocusing:A,k=f.isClickableOutsideFocusTrap,D=f.enableAriaHiddenSiblings,M={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:_?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=i.useCallback((function(t){t!==l.current&&t!==c.current&&V(t)}),[]),F=Fn((function(){if(s.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&b(s.current,t))P(t);else{var e=null;if("string"==typeof S)e=s.current.querySelector(S);else if(S)e=S(s.current);else if(E){var n="string"==typeof E?E:E();e=s.current.querySelector("."+n)}e||(e=w(s.current,s.current.firstChild,!1,!1,!1,!0)),e&&P(e)}}})),I=function(t){if(!_&&s.current){var e,n=t===g.hasFocus?(void 0===(e=!1)&&(e=!0),T(s.current,c.current,e,!1,!0,!0,!1,!0)):function(t,e,n,r){return void 0===r&&(r=!0),w(t,e,r,!1,!1,!0,!1,!0)}(s.current,l.current,0,!1);n&&(n===l.current||n===c.current?F():n.focus())}},N=Fn((function(t){if(Nn.focusStack=Nn.focusStack.filter((function(t){return g.focusStackId!==t})),d){var e=d.activeElement;L||"function"!=typeof(null==t?void 0:t.focus)||!b(s.current,e)&&e!==d.body||P(t)}})),B=Fn((function(t){if(!_&&g.focusStackId===Nn.focusStack.slice(-1)[0]){var e=t.target;e&&!b(s.current,e)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(F(),g.hasFocus=!0)}),0):(F(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return i.useEffect((function(){var t=[];return x&&t.push(O(h,"focus",B,!0)),k||t.push(O(h,"click",B,!0)),function(){t.forEach((function(t){return t()}))}}),[x,k,h]),i.useEffect((function(){if(!_&&(p||x)&&s.current){Nn.focusStack.push(g.focusStackId);var t=f.elementToFocusOnDismiss||d.activeElement;return y||b(s.current,t)||F(),function(){return N(t)}}}),[x,_]),i.useEffect((function(){if(!_&&D)return Pt(s.current)}),[_,D,s]),o=function(){delete g.previouslyFocusedElementInTrapZone},(a=i.useRef(o)).current=o,i.useEffect((function(){return function(){var t;null===(t=a.current)||void 0===t||t.call(a)}}),[]),function(t,e,n){i.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return e},focus:n}}),[n,e])}(v,g.previouslyFocusedElementInTrapZone,F),i.createElement("div",(0,e.pi)({"aria-labelledby":f.ariaLabelledBy},X(f,q),{ref:u,onFocusCapture:function(t){var e;null===(e=f.onFocusCapture)||void 0===e||e.call(f,t),t.target===l.current?I(!0):t.target===c.current&&I(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==l.current&&t.target!==c.current&&(g.previouslyFocusedElementInTrapZone=t.target)},onBlurCapture:function(t){var e;null===(e=f.onBlurCapture)||void 0===e||e.call(f,t);var n=t.relatedTarget;null===t.relatedTarget&&(n=d.activeElement),b(s.current,n)||(g.hasFocus=!1)}}),i.createElement("div",(0,e.pi)({},M,{ref:l})),m,i.createElement("div",(0,e.pi)({},M,{ref:c})))}));Nn.displayName="FocusTrapZone",Nn.focusStack=[];var Vn,On=function(t){return i.createElement(Be,(0,e.pi)({},t),i.createElement(Nn,(0,e.pi)({disabled:t.hidden},t.focusTrapProps),t.children))},Hn=function(t){var n=t.gapSpace,r=void 0===n?0:n,o=t.directionalHint,a=void 0===o?_.bottomLeftEdge:o,s=t.directionalHintFixed,l=t.targetElement,c=t.firstFocus,u=t.trapFocus,d=t.onLeave,h=t.className,p=t.finalHeight,f=t.content,g=t.calloutProps,m=(0,e.pi)((0,e.pi)((0,e.pi)({},X(t,q)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:s,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:r}),g);return i.createElement(i.Fragment,null,u?i.createElement(On,(0,e.pi)({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):i.createElement(Be,(0,e.pi)({},m),f))},Bn=(0,o.y)(),Rn=function(t){function n(e){var n=t.call(this,e)||this;return n._expandedElem=i.createRef(),n._onKeyDown=function(t){t.which===Ft&&n.props.onLeave&&n.props.onLeave(t)},n._onRenderCompactCard=function(){return i.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),i.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},i.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var t=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=t&&n.setState({needsScroll:!0})}))},n._async=new It(n),Ze(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,r=t.compactCardHeight,o=t.expandedCardHeight,a=t.theme,s=t.mode,l=t.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=r+o;this._classNames=Bn(n,{theme:a,compactCardHeight:r,className:l,expandedCardHeight:o,needsScroll:u,expandedCardFirstFrameRendered:s===wn.expanded&&d});var p=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return i.createElement(Hn,(0,e.pi)({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(i.Component),zn=(0,t.z)(Rn,(function(t){var e,n=t.theme,r=t.needsScroll,i=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,s=t.className,l=n.palette,c=(0,Yt.Cn)(Dn,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(e={},e[Yt.qJ]={border:"1px solid WindowText"},e)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Wn={root:"ms-PlainCard-root"},Yn=(0,o.y)(),Zn=function(t){function n(e){var n=t.call(this,e)||this;return n._onKeyDown=function(t){t.which===Ft&&n.props.onLeave&&n.props.onLeave(t)},Ze(n),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,r=t.theme,o=t.className;this._classNames=Yn(n,{theme:r,className:o});var a=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return i.createElement(Hn,(0,e.pi)({},this.props,{content:a,className:this._classNames.root}))},n}(i.Component),qn=(0,t.z)(Zn,(function(t){var e,n=t.theme,r=t.className;return{root:[(0,Yt.Cn)(Wn,n).root,{pointerEvents:"auto",selectors:(e={},e[Yt.qJ]={border:"1px solid WindowText"},e)},r]}}),void 0,{scope:"PlainCard"}),Xn=(0,o.y)(),Un=function(t){function n(e){var n=t.call(this,e)||this;return n._hoverCard=i.createRef(),n.dismiss=function(t){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),t?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(t){n._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===t.type&&(n._currentMouseTarget=t.currentTarget),n._executeCardOpen(t))},n._executeCardOpen=function(t){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:wn.compact,openMode:"keydown"===t.type?vn.hotKey:vn.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(t,e){if(t){if(!(e instanceof MouseEvent))return;if("keydown"===e.type&&e.which!==Ft)return;n.props.sticky||n._currentMouseTarget!==e.currentTarget&&e.which!==Ft||n.dismiss(!0)}else{if(n.props.sticky&&!(e instanceof MouseEvent)&&e.nativeEvent instanceof MouseEvent&&"mouseleave"===e.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:wn.compact,openMode:vn.hover})},n._instantOpenAsExpanded=function(t){n._async.clearTimeout(n._dismissTimerId),n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:wn.expanded}}))},n._setEventListeners=function(){var t=n.props,e=t.trapFocus,r=t.instantOpenOnClick,i=t.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),e?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},Ze(n),n._async=new It(n),n._events=new Tn(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:wn.compact,openMode:vn.hover},n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,e){var n=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),e.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:wn.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:wn.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,r=t.children,o=t.id,a=t.setAriaDescribedBy,s=void 0===a||a,l=t.styles,c=t.theme,u=t.className,d=t.type,h=t.plainCardProps,p=t.trapFocus,g=t.setInitialFocus,m=this.state,v=m.isHoverCardVisible,_=m.mode,y=m.openMode,x=o||f("hoverCard");this._classNames=Xn(l,{theme:c,className:u});var b=(0,e.pi)((0,e.pi)({},X(this.props,q)),{id:x,trapFocus:!!p,firstFocus:g||y===vn.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,e.pi)((0,e.pi)((0,e.pi)({},n),b),{mode:_}),E=(0,e.pi)((0,e.pi)({},h),b);return i.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":s&&v?x:void 0,"data-is-focusable":!this.props.target},r,v&&(d===_n.expanding?i.createElement(zn,(0,e.pi)({},C)):i.createElement(qn,(0,e.pi)({},E))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.M)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:_n.expanding},n}(i.Component),jn=(0,t.z)(Un,(function(t){var e=t.className,n=t.theme;return{host:[(0,Yt.Cn)(kn,n).host,e]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Vn||(Vn={}));var Gn=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,e){t.cacheKey&&(n[t.cacheKey]=e)}});var r,i=t;function o(t,e){var n=i.getCachedMeasurement(t);if(void 0!==n)return n;var r=e();return i.addMeasurementToCache(t,r),r}function a(t,e,n){for(var a=t,s=o(t,n);s>r;){var l=e(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=i.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,s,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(r&&n.renderedData&&!n.dataToMeasure)return(0,e.pi)((0,e.pi)({},n),function(t,n,i,o){var a;return a=t>r?o?{resizeDirection:"grow",dataToMeasure:o(i)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:i},r=t,(0,e.pi)((0,e.pi)({},a),{measureContainer:!1})}(l,t.data,n.renderedData,t.onGrowData));r=l}var c=(0,e.pi)((0,e.pi)({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&t.onGrowData?(0,e.pi)((0,e.pi)({},c),function(t,n,s,l){for(var c=t,u=o(t,s);u<r;){var d=n(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=i.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,e.pi)({resizeDirection:"shrink"},a(c,l,s))}(n.dataToMeasure,t.onGrowData,s,t.onReduceData)):(0,e.pi)((0,e.pi)({},c),a(n.dataToMeasure,t.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==i.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,e.pi)({},t),resizeDirection:"grow",measureContainer:!0}}}},Kn=i.createContext({isMeasured:!1}),$n={position:"fixed",visibility:"hidden"},Jn={position:"relative"};function Qn(t,n){var r;switch(n.type){case"resizeData":return(0,e.pi)({},n.value);case"dataToMeasure":return(0,e.pi)((0,e.pi)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,e.pi)((0,e.pi)({},t),((r={})[n.type]=n.value,r))}}var tr={isMeasured:!0},er=i.forwardRef((function(t,n){var r=i.useRef(null),o=Ot(r,n),a=function(t,n){var r=Zt(Gn),o=i.useRef(null),a=i.useRef(null),s=i.useRef(!1),l=Nt(),c=function(t,n,r){var o=Zt((function(){return n.getInitialResizeGroupState(t.data)})),a=i.useReducer(Qn,o),s=a[0],l=a[1];i.useEffect((function(){l({type:"dataToMeasure",value:t.data})}),[t.data]);var c=i.useRef(o);return c.current=(0,e.pi)({},s),[c,i.useCallback((function(t){t&&l({type:"resizeData",value:t})}),[]),i.useCallback((function(){r.current&&l({type:"measureContainer",value:!0})}),[r])]}(t,r,n),u=c[0],d=c[1],h=c[2];i.useEffect((function(){var e;u.current.renderedData&&(s.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,u.current.renderedData))})),i.useEffect((function(){l.requestAnimationFrame((function(){var e=void 0;if(u.current.measureContainer&&n.current){var i=n.current.getBoundingClientRect();e=t.direction===Vn.vertical?i.height:i.width}var l=r.getNextState(t,u.current,(function(){var e=s.current?a:o;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===Vn.vertical?n.height:n.width}),e);d(l)}),n.current)})),Vt(Bt(),"resize",l.debounce(h,16,{leading:!0}));var p=r.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!s.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,o,a,p,f]}(t,r),s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];i.useImperativeHandle(t.componentRef,(function(){return{remeasure:c}}),[c]);var f=t.className,g=t.onRenderData,m=X(t,q,["data"]);return i.createElement("div",(0,e.pi)({},m,{className:f,ref:o}),i.createElement("div",{style:Jn},h&&!p&&i.createElement("div",{style:$n,ref:d},i.createElement(Kn.Provider,{value:tr},g(s))),i.createElement("div",{ref:u,style:p?$n:void 0,"data-automation-id":"visibleContent"},p?g(s):l&&g(l))))}));er.displayName="ResizeGroupBase";var nr,rr=er;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(nr||(nr={}));var ir=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,e){void 0===e&&(e=!1);var n=t;e||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(e?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=e?nr.PERSISTED_KEYTIP_ADDED:nr.KEYTIP_ADDED;Tn.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(t,e){var n=this.addParentOverflow(t),r=this._getUniqueKtp(n,e),i=this.keytips[e];i&&(r.keytip.visible=i.keytip.visible,this.keytips[e]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Tn.raise(this,nr.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(t,e,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[e]:delete this.keytips[e],!n&&delete this.sequenceMapping[t.keySequences.toString()];var r=n?nr.PERSISTED_KEYTIP_REMOVED:nr.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Tn.raise(this,r,{keytip:t,uniqueID:e})},t.prototype.enterKeytipMode=function(){Tn.raise(this,nr.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Tn.raise(this,nr.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(e){return t.keytips[e].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,e.ev)([],t.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,e.pi)((0,e.pi)({},t),{overflowSetSequence:r.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,e){Tn.raise(this,nr.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:e})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=f()),{keytip:(0,e.pi)({},t),uniqueID:n}},t._instance=new t,t}(),or=function(t,e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];n[e.register(o,!0)]=o}},ar=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t.unregister(e[i],i,!0),delete e[i]}},sr=function(t){var n=ir.getInstance(),r=t.className,o=t.overflowItems,a=t.keytipSequences,s=t.itemSubMenuProvider,l=t.onRenderOverflowButton,c=Zt({}),u=i.useCallback((function(t){return s?s(t):t.subMenuProps?t.subMenuProps.items:void 0}),[s]),d=i.useMemo((function(){var t=[],r=[];return a?null==o||o.forEach((function(i){var o,s=i.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!i.disabled&&!i.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(i)?(l.onExecute=n.menuExecute.bind(n,a,null===(o=null==i?void 0:i.keytipProps)||void 0===o?void 0:o.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,t.push(l);var c=(0,e.pi)((0,e.pi)({},i),{keytipProps:(0,e.pi)((0,e.pi)({},s),{overflowSetSequence:a})});null==r||r.push(c)}else null==r||r.push(i)})):r=o,{modifiedOverflowItems:r,keytipsToRegister:t}}),[o,u,n,a]),h=d.modifiedOverflowItems;return function(t,e,n){var r=Mn(t);i.useEffect((function(){r&&(ar(n,r),or(e,n,t))})),i.useEffect((function(){return or(e,n,t),function(){ar(n,t)}}),[])}(c,d.keytipsToRegister,n),i.createElement("div",{className:r},l(h))},lr=(0,o.y)(),cr=i.forwardRef((function(t,n){var r=i.useRef(null),o=Ot(r,n);!function(t,e){var n=function(){var t;return(null!==(t=Rt())&&void 0!==t?t:"undefined"!=typeof document)?document:void 0}();i.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,n){var r=!1;return e.current&&(r=k(e.current,n)),r},focusElement:function(t){var r=!1;return!!t&&(e.current&&b(e.current,t)&&(t.focus(),r=(null==n?void 0:n.activeElement)===t),r)}}}),[e,n])}(t,r);var a=t.items,s=t.overflowItems,l=t.className,c=t.styles,u=t.vertical,d=t.role,h=t.overflowSide,p=void 0===h?"end":h,f=t.onRenderItem,g=lr(c,{className:l,vertical:u}),m=!!s&&s.length>0;return i.createElement("div",(0,e.pi)({},X(t,q),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:o}),"start"===p&&m&&i.createElement(sr,(0,e.pi)({},t,{className:g.overflowButton})),a&&a.map((function(t,e){return i.createElement("div",{className:g.item,key:t.key,role:"none"},f(t))})),"end"===p&&m&&i.createElement(sr,(0,e.pi)({},t,{className:g.overflowButton})))}));cr.displayName="OverflowSet";var ur,dr={flexShrink:0,display:"inherit"},hr=(0,t.z)(cr,(function(t){var e=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},e],item:["ms-OverflowSet-item",dr],overflowButton:["ms-OverflowSet-overflowButton",dr]}}),void 0,{scope:"OverflowSet"}),pr=((ur={})["".concat(ze.wo[ze.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",ur["".concat(ze.wo[ze.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",ur["".concat(ze.wo[ze.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ur["".concat(ze.wo[ze.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ur["".concat(ze.wo[ze.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",ur["".concat(ze.wo[ze.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",ur["".concat(ze.wo[ze.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",ur["".concat(ze.wo[ze.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",ur["".concat(ze.jc[ze.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",ur),fr=function(t){var n=t.svgProps,r=t.pathProps,o=t.shape,a=t.classNameForNonSvg;return-1===Object.keys(pr).indexOf(o)?i.createElement("div",{className:a}):i.createElement("svg",(0,e.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},n,{transform:"rotate(".concat(o===ze.wo[ze.wo.diamond]?45:o===ze.wo[ze.wo.pyramid]?180:0,", 0, 0)")}),i.createElement("path",(0,e.pi)({d:pr[o]},r)))},gr=(0,o.y)(),mr=function(t){function n(n){var r,o,a=this;(a=t.call(this,n)||this)._isLegendSelected=!1,a._onRenderData=function(t){var n=a.props,r=n.overflowProps,o=n.allowFocusOnLegends,s=void 0===o||o,l=n.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:a.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return i.createElement(dn,(0,e.pi)({},s&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),i.createElement(hr,(0,e.pi)({items:t.primary,overflowItems:t.overflow,onRenderItem:a._renderButton,onRenderOverflowButton:a._renderOverflowItems},r,{styles:(0,e.pi)((0,e.pi)({},u),null==r?void 0:r.styles)})))},a._onReduceData=function(t){if(0!==t.primary.length){var n=(0,e.ev)((0,e.ev)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},a._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,e.ev)((0,e.ev)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},a._canSelectMultipleLegends=function(t){var n=(0,e.pi)({},a.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===a.props.legends.length&&(n={})),a.setState({selectedLegends:n}),n},a._canSelectOnlySingleLegend=function(t){var e;return a.state.selectedLegends[t.title]?(a.setState({selectedLegends:{}}),!1):(a.setState({selectedLegends:(e={},e[t.title]=!0,e)}),!0)},a._onClick=function(t,e){var n,r,i,o=a.props.canSelectMultipleLegends,s=[];if(void 0!==o&&o){var l=a._canSelectMultipleLegends(t);s=Object.keys(l)}else s=a._canSelectOnlySingleLegend(t)?[t.title]:[];null===(r=(n=a.props).onChange)||void 0===r||r.call(n,s,e,t),null===(i=t.action)||void 0===i||i.call(t)},a._onRenderCompactCard=function(t){var n=a.props,r=n.allowFocusOnLegends,o=void 0===r||r,s=n.className,l=n.styles,c=n.theme,u=n.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=gr(l,{theme:c,className:s});return t.renderData.forEach((function(t,e){var n=a._renderButton(t,e,!0);h.push(n)})),i.createElement(dn,(0,e.pi)({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Re.vertical},a.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},a._renderOverflowItems=function(t){var n=a.props.allowFocusOnLegends,r=void 0===n||n,o=[];t.forEach((function(t,e){o.push({key:e.toString(),name:t.title,onClick:t.action})}));var s={renderData:t},l=a.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=gr(d,{theme:c,className:u}),f={onRenderPlainCard:a._onRenderCompactCard,renderData:s},g=h||"more";return i.createElement(jn,{type:_n.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){a.setState({isHoverCardVisible:!1});var e=v(t,(function(t){return t.title===a.state.activeLegend}));e&&(a.setState({activeLegend:""}),e.onMouseOutAction&&e.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:a._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:a._hoverCardRef},i.createElement("div",(0,e.pi)({className:p.overflowIndicationTextStyle,ref:function(t){return a._hoverCardRef=t}},r&&{role:"button","aria-expanded":a.state.isHoverCardVisible,"aria-label":"".concat(o.length," ").concat(g)},{"data-is-focusable":r}),o.length," ",g))},a._hoverCardVisible=function(){a.setState({isHoverCardVisible:!0})},a._onHoverOverLegend=function(t){t.hoverAction&&(a.setState({activeLegend:t.title}),t.hoverAction())},a._onLeave=function(t){t.onMouseOutAction&&(a.setState({activeLegend:""}),t.onMouseOutAction())},a._renderButton=function(t,n,r){var o=a.props.allowFocusOnLegends,s=void 0===o||o,l={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},c=a._getColor(l.title,l.color),u=a.props,d=u.theme,h=u.className,p=u.styles,f=gr(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),g=function(){a._onHoverOverLegend(l)},m=function(){a._onLeave(l)},v=a._getShape(f,l,c);return i.createElement("button",(0,e.pi)({},s&&{"aria-selected":!!a.state.selectedLegends[l.title],role:"option","aria-label":"".concat(l.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,e.pi)({},t.nativeButtonProps),{key:n,className:f.legend,onClick:function(t){a._onClick(l,t)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":s}),v,i.createElement("div",{className:f.text},l.title))};var s={};return n.canSelectMultipleLegends?s=(null===(o=n.defaultSelectedLegends)||void 0===o?void 0:o.reduce((function(t,n){var r;return(0,e.pi)(((r={})[n]=!0,r),t)}),{}))||{}:n.defaultSelectedLegend&&((r={})[n.defaultSelectedLegend]=!0,s=r),a.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:s},a}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=gr(r,{theme:e,className:n}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return i.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):i.createElement(rr,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props.allowFocusOnLegends,r=void 0===n||n;return{primary:this.props.legends.map((function(n,i){return(0,e.pi)((0,e.pi)({},r&&{nativeButtonProps:X(n,Z,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,e,n){var r={className:t.shape},o={fill:n,strokeWidth:2,stroke:e.color};return i.createElement(fr,{svgProps:r,pathProps:o,shape:e.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,e){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegends[t]?e:n.white:this.state.activeLegend===t||""===this.state.activeLegend?e:n.white},n}(i.Component),vr=(0,t.z)(mr,(function(t){var n,r,i=t.className,o=t.theme,a=t.isLineLegendInBarChart,s=void 0!==a&&a,l=o,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},i],legend:[(0,Yt.GL)(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Yt.qJ]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===c.white?"0.6":""},n),width:"12px",height:s?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===c.white?"0.6":t.opacity?t.opacity:"",selectors:(r={},r[Yt.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},r)},text:(0,e.pi)((0,e.pi)({},u.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:t.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:c.black},overflowIndicationTextStyle:[(0,Yt.GL)(o,d),(0,e.pi)((0,e.pi)({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,Yt.GL)(o,d)]}}}}));function _r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function yr(t){return function(){return t}}function xr(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function br(t){return t}Array.prototype.slice;const Cr=Math.abs,Er=Math.atan2,Sr=Math.cos,Ar=Math.max,Lr=Math.min,kr=Math.sin,Tr=Math.sqrt,wr=1e-12,Dr=Math.PI,Mr=Dr/2,Pr=2*Dr;function Fr(t){return t>=1?Mr:t<=-1?-Mr:Math.asin(t)}function Ir(){var t=br,e=xr,n=null,r=yr(0),i=yr(Pr),o=yr(0);function a(a){var s,l,c,u,d,h=(a=_r(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Pr,Math.max(-Pr,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+t(a[s],s,a))>0&&(p+=d);for(null!=e?f.sort((function(t,n){return e(g[t],g[n])})):null!=n&&f.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:yr(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:yr(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:yr(+t),a):o},a}const Nr=Math.PI,Vr=2*Nr,Or=1e-6,Hr=Vr-Or;function Br(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Rr{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Br:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Br;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-t,l=r-e,c=o-t,u=a-e,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Or)if(Math.abs(u*s-l*c)>Or&&i){let h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((Nr-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>Or&&this._append`L${t+y*c},${e+y*u}`,this._append`A${i},${i},0,0,${+(u*h>c*p)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=t+a,c=e+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Or||Math.abs(this._y1-c)>Or)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Vr+Vr),d>Hr?this._append`A${n},${n},0,1,${u},${t-a},${e-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Or&&this._append`A${n},${n},0,${+(d>=Nr)},${u},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function zr(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Rr(e)}function Wr(t){return t.innerRadius}function Yr(t){return t.outerRadius}function Zr(t){return t.startAngle}function qr(t){return t.endAngle}function Xr(t){return t&&t.padAngle}function Ur(t,e,n,r,i,o,a){var s=t-n,l=e-r,c=(a?o:-o)/Tr(s*s+l*l),u=c*l,d=-c*s,h=t+u,p=e+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,E=(y<0?-1:1)*Tr(Ar(0,b*b*x-C*C)),S=(C*y-_*E)/x,A=(-C*_-y*E)/x,L=(C*y+_*E)/x,k=(-C*_+y*E)/x,T=S-m,w=A-v,D=L-m,M=k-v;return T*T+w*w>D*D+M*M&&(S=L,A=k),{cx:S,cy:A,x01:-u,y01:-d,x11:S*(i/b-1),y11:A*(i/b-1)}}function jr(){var t=Wr,e=Yr,n=yr(0),r=null,i=Zr,o=qr,a=Xr,s=null,l=zr(c);function c(){var c,u,d,h=+t.apply(this,arguments),p=+e.apply(this,arguments),f=i.apply(this,arguments)-Mr,g=o.apply(this,arguments)-Mr,m=Cr(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>wr)if(m>Pr-wr)s.moveTo(p*Sr(f),p*kr(f)),s.arc(0,0,p,f,g,!v),h>wr&&(s.moveTo(h*Sr(g),h*kr(g)),s.arc(0,0,h,g,f,v));else{var _,y,x=f,b=g,C=f,E=g,S=m,A=m,L=a.apply(this,arguments)/2,k=L>wr&&(r?+r.apply(this,arguments):Tr(h*h+p*p)),T=Lr(Cr(p-h)/2,+n.apply(this,arguments)),w=T,D=T;if(k>wr){var M=Fr(k/h*kr(L)),P=Fr(k/p*kr(L));(S-=2*M)>wr?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(A-=2*P)>wr?(x+=P*=v?1:-1,b-=P):(A=0,x=b=(f+g)/2)}var F=p*Sr(x),I=p*kr(x),N=h*Sr(E),V=h*kr(E);if(T>wr){var O,H=p*Sr(b),B=p*kr(b),R=h*Sr(C),z=h*kr(C);if(m<Dr)if(O=function(t,e,n,r,i,o,a,s){var l=n-t,c=r-e,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<wr))return[t+(h=(u*(e-o)-d*(t-i))/h)*l,e+h*c]}(F,I,R,z,H,B,N,V)){var W=F-O[0],Y=I-O[1],Z=H-O[0],q=B-O[1],X=1/kr(((d=(W*Z+Y*q)/(Tr(W*W+Y*Y)*Tr(Z*Z+q*q)))>1?0:d<-1?Dr:Math.acos(d))/2),U=Tr(O[0]*O[0]+O[1]*O[1]);w=Lr(T,(h-U)/(X-1)),D=Lr(T,(p-U)/(X+1))}else w=D=0}A>wr?D>wr?(_=Ur(R,z,F,I,p,D,v),y=Ur(H,B,N,V,p,D,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),D<T?s.arc(_.cx,_.cy,D,Er(_.y01,_.x01),Er(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,Er(_.y01,_.x01),Er(_.y11,_.x11),!v),s.arc(0,0,p,Er(_.cy+_.y11,_.cx+_.x11),Er(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,D,Er(y.y11,y.x11),Er(y.y01,y.x01),!v))):(s.moveTo(F,I),s.arc(0,0,p,x,b,!v)):s.moveTo(F,I),h>wr&&S>wr?w>wr?(_=Ur(N,V,H,B,h,-w,v),y=Ur(F,I,R,z,h,-w,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),w<T?s.arc(_.cx,_.cy,w,Er(_.y01,_.x01),Er(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,w,Er(_.y01,_.x01),Er(_.y11,_.x11),!v),s.arc(0,0,h,Er(_.cy+_.y11,_.cx+_.x11),Er(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,w,Er(y.y11,y.x11),Er(y.y01,y.x01),!v))):s.arc(0,0,h,E,C,v):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Dr/2;return[Sr(r)*n,kr(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:yr(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:yr(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:yr(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:yr(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:yr(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}Rr.prototype;var Gr=function(t){var e=t.color,n=t.href,r=t.theme;return{root:{fill:e,cursor:n?"pointer":"default",stroke:Yt.UK.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}}},Kr=n(1783),$r=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.currentRef=i.createRef(),e._isRTL=(0,a.zg)(),e._hoverOff=function(){e.props.hoverLeaveCallback()},e._onBlur=function(){e.props.onBlurCallback()},e._getAriaLabel=function(){var t,n=e.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(t=n.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(i,".")},e._renderArcLabel=function(t){var n=e.props,r=n.arc,o=n.data,a=n.innerRadius,s=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue,u=n.hideLabels,d=n.activeArc;if(u||Math.abs(o.endAngle-o.startAngle)<Math.PI/12||d!==o.data.legend&&""!==d)return null;var h=r.centroid(o),p=h[0],f=h[1],g=Math.sqrt(p*p+f*f),m=Math.max(a,s)+2,v=(o.startAngle+o.endAngle)/2,_=o.value;return i.createElement("text",{x:(0===g?0:p/g)*m,y:(0===g?0:f/g)*m,textAnchor:v>Math.PI!==e._isRTL?"end":"start",dominantBaseline:v>Math.PI/2&&v<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},l?(0,Kr.WU)(".0%")(0===c?0:_/c):(0,ze.cE)(_))},e}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t){return Jr(t),null},n.prototype.updateChart=function(t){Jr(t)},n.prototype.render=function(){var t,e=this.props,n=e.arc,r=e.href,a=e.focusedArcId,s=(0,o.y)()(Gr,{color:this.props.color,href:r,theme:this.props.theme}),l=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,c=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return i.createElement("g",{ref:this.currentRef},!!a&&a===l&&i.createElement("path",{id:l+"focusRing",d:n(this.props.focusData),className:s.focusRing}),i.createElement("path",{id:l,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,l),className:s.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:c,onClick:r?this._redirectToUrl.bind(this,r):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(s.arcLabel))},n.prototype._onFocus=function(t,e){this.props.onFocusCallback(t,e,this.currentRef.current)},n.prototype._hoverOn=function(t,e){e.persist(),this.props.hoverOnCallback(t,e)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:jr()},n}(i.Component);function Jr(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Qr=function(t){var e,n=t.theme;return{root:{},insideDonutString:{fontSize:Yt.TS.xLargePlus,fontWeight:Yt.lq.semibold,fill:n.semanticColors.bodyText,selectors:(e={},e[Yt.$v]={fill:"rgb(179, 179, 179)"},e)}}},ti=(0,o.y)(),ei=function(t){function n(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e,r,o){var a=t&&t.data&&t.data.color;return i.createElement($r,{key:e,data:t,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:o,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(t,e,r){n.props.onFocusCallback(t,e,r)},n._computeTotalValue=function(){var t=0;return n.props.data.forEach((function(e){t+=e.data})),t},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Ir().sort(null).value((function(t){return t.data})).padAngle(0),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=this._pieForFocusRing(r),a=n(r),s="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=ti(Qr,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),i.createElement("g",{transform:s},a.map((function(e,n){return t.arcGenerator(e,n,o[n],t.props.href)})),this.props.valueInsideDonut&&i.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t=ti(Qr,{theme:this.props.theme});(0,ze.yQ)(t.insideDonutString,2*this.props.innerRadius-5)},n.prototype._hoverCallback=function(t,e){this.props.hoverOnCallback(t,e)},n.defaultProps={pie:Ir().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(i.Component),ni={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},ri={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},ii={qualitative:ri,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},oi=Object.values(ri),ai=Object.values(ni),si=function(t,e){if(0===t.length)return"";var n=Number(e);return n<t.length?t[n]:t[0]},li=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var r=oi[(t+e)%oi.length];return si(r,n)},ci=function(t,e){if(void 0===e&&(e=!1),ai.indexOf(t)>=0){var n=t.split("."),r=n[0],i=n[1],o=ii[r][i];return si(o,e)}return t},ui=(0,o.y)(),di=function(t){function n(n){var r=t.call(this,n)||this;return r._closeCallout=function(){r.setState({showHover:!1})},r._focusCallback=function(t,e,n){r._currentHoverElement=n,r.setState({showHover:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:e,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},r._hoverCallback=function(t,e){r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r._currentHoverElement=e,r.setState({showHover:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},r._onBlur=function(){r.setState({focusedArcId:""})},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({showHover:!1})},r._addDefaultColors=function(t){return t?t.map((function(t,n){var i,o,a;return a=void 0===t.color?li(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):ci(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,e.pi)((0,e.pi)({},t),{color:a})})):[]},r.state={showHover:!1,value:"",legend:"",_width:r.props.width||200,_height:r.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},r._hoverCallback=r._hoverCallback.bind(r),r._focusCallback=r._focusCallback.bind(r),r._hoverLeave=r._hoverLeave.bind(r),r._calloutId=f("callout"),r._uniqText=f("_Pie_"),r._emptyChartId=f("_DonutChart_empty"),r}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t,n){var r,i;return t.width&&t.width!==n._width&&(r={_width:t.width}),t.height&&t.height!==n._height&&(i={_height:t.height-40}),(0,e.pi)((0,e.pi)({},r),i)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.render=function(){var t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,s=this._addDefaultColors(null==r?void 0:r.chartData);this._classNames=ui(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var l=this._createLegends(s),c=this.props.hideLabels?0:80,u=this.props.hideLabels?0:40,d=Math.min(this.state._width-c,this.state._height-u)/2,h=s.filter((function(t){return t.data>0})),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},i.createElement(dn,{direction:Re.horizontal,handleTabKey:1},i.createElement("div",null,i.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},i.createElement(ei,{width:this.state._width,height:this.state._height,outerRadius:d,innerRadius:this.props.innerRadius,data:h,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(p),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),i.createElement(Be,(0,e.pi)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:_.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&i.createElement("div",{className:this._classNames.legendContainer},l))},n.prototype._setViewBox=function(t){var e,n;if(null!==t){var r=t.parentElement?t.parentElement.clientWidth:this.state._width,i=t.parentElement&&(null===(e=t.parentElement)||void 0===e?void 0:e.offsetHeight)>this.state._height?null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,o="0 0 ".concat(r," ").concat(i);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,r=t.map((function(t,e){var r=t.color;return{title:t.legend,color:r,action:function(){n.state.selectedLegend===t.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return i.createElement(vr,(0,e.pi)({legends:r,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(t,e){var n=this,r=this._getHighlightedLegend();if(void 0===t||""===r&&!this.state.showHover)return t;var i=t;return e.map((function(t,e){(t.legend===r||n.state.showHover&&t.legend===n.state.legend)&&(i=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),i},n.prototype._toLocaleString=function(t){var e=(0,ze.Ts)(t,this.props.culture);return e?null==e?void 0:e.toString():t},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(i.Component),hi=(0,t.z)(di,(function(t){var e=t.className,n=t.width,r=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},e],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}})),pi=n(8485),fi=n(7329);function gi(t){this._context=t}function mi(t){return new gi(t)}function vi(t){return t[0]}function _i(t){return t[1]}function yi(t,e){var n=yr(!0),r=null,i=mi,o=null,a=zr(s);function s(s){var l,c,u,d=(s=_r(s)).length,h=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,l,s),+e(c,l,s));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?vi:yr(t),e="function"==typeof e?e:void 0===e?_i:yr(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:yr(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}gi.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var xi,bi,Ci,Ei=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=i.createRef(),r._tooltipHostId=f("tooltip-host"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current)return r._tooltipHost.current},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipBlur=function(t){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var e=r.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r.state.isOverflowing&&(!t.target||!Ge(t.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),e!==pn.zero){var i=r._getDelayTime(e);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),i)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var e=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),e?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),e):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ft||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t})},r._getDelayTime=function(t){switch(t){case pn.medium:return 300;case pn.long:return 500;default:return 0}},r._wrapContent=function(){var t=r.props,e=t.content,n=t.wrapContent,i=t.maxWidth,o=void 0===i?Number.POSITIVE_INFINITY:i,a=t.maxHeight,s=!1;e&&n&&n(e,r._tooltipHostId,o,a)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new It(r),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,r=t.tooltipProps,o=t.textProps,a=t.shouldReceiveFocus,s=void 0===a||a,l=this.state.isTooltipVisible,c=(0,e.pi)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},r),u=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||l&&!!n;return i.createElement(i.Fragment,null,i.createElement("text",(0,e.pi)({},o,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":s&&this.state.isOverflowing}),n),u&&i.createElement(mn,(0,e.pi)({},c)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:pn.medium},n}(i.Component),Si=(0,o.y)(),Ai=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,8024)).then((function(t){return{default:t.ChartHoverCard}}))})),Li=function(t){function n(n){var r,o,s,l,c,u,d,h,p,g,m,v,_,y,x,b,C,E,S,A,L,k,T,w,D,M,P=this;return(P=t.call(this,n)||this).minLegendContainerHeight=32,P._isRtl=(0,a.zg)(),P._isFirstRender=!0,P.isIntegralDataset=!0,P._multiValueCallout=function(t){var n=P._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:P._classNames.calloutContentRoot},i.createElement("div",{className:P._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},i.createElement("div",(0,e.pi)({className:P._classNames.calloutContentX},(0,ze.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,ze.Ts)(t.hoverXValue,P.props.culture))),i.createElement("div",{className:P._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,r,o){var a=r+1===o.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:n?(0,e.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,e.pi)({},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),P._getCalloutContent(t,r,n,a))})),!!t.descriptionMessage&&i.createElement("div",{className:P._classNames.descriptionMessage},t.descriptionMessage)))},P._getData=function(t,e){P.props.getGraphData&&P.props.getGraphData(t,e,P.state.containerHeight-P.state._removalValueForTextTuncate,P.state.containerWidth,P.xAxisElement,P.yAxisElement)},P._onChartLeave=function(){P.props.onChartMouseLeave&&P.props.onChartMouseLeave()},P._calculateChartMinWidth=function(){var t=10;if(!P.props.wrapXAxisLables&&P.props.rotateXAxisLables&&P.props.xAxisType===ze.xl.StringAxis){var e=(0,ze.yE)(P._tickValues,".".concat(P._classNames.xAxis," text"));t+=Math.ceil(e*Math.cos(Math.PI/4))}else if(P.props.showXAxisLablesTooltip){var n=P._tickValues.map((function(t){var e=P.props.noOfCharsToTruncate||4;return t.toString().length>e?"".concat(t.toString().slice(0,e),"..."):t}));e=(0,ze.yE)(n,".".concat(P._classNames.xAxis," text")),t+=Math.ceil(e)}else if(P.props.wrapXAxisLables){var r=[];P._tickValues.forEach((function(t){r.push.apply(r,t.toString().split(/\s+/))})),e=(0,ze.yE)(r,".".concat(P._classNames.xAxis," text")),t+=Math.max(Math.ceil(e),10)}else e=(0,ze.yE)(P._tickValues,".".concat(P._classNames.xAxis," text")),t+=Math.ceil(e);var i=P.margins.left+P.margins.right+t*(P._tickValues.length-1);return[ze.$X.GroupedVerticalBarChart,ze.$X.VerticalBarChart,ze.$X.VerticalStackedBarChart].includes(P.props.chartType)&&(i+=16),i},P.state={containerHeight:0,containerWidth:0,_width:P.props.width||600,_height:P.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},P.idForGraph=f("chart_"),P.titleMargin=8,P.idForDefaultTabbableElement=f("defaultTabbableElement_"),P.margins={top:null!==(o=null===(r=P.props.margins)||void 0===r?void 0:r.top)&&void 0!==o?o:20,bottom:null!==(l=null===(s=P.props.margins)||void 0===s?void 0:s.bottom)&&void 0!==l?l:35,right:P._isRtl?null!==(u=null===(c=P.props.margins)||void 0===c?void 0:c.left)&&void 0!==u?u:40:(null!==(h=null===(d=P.props.margins)||void 0===d?void 0:d.right)&&void 0!==h?h:null===(p=P.props)||void 0===p?void 0:p.secondaryYScaleOptions)?40:20,left:P._isRtl?(null!==(m=null===(g=P.props.margins)||void 0===g?void 0:g.right)&&void 0!==m?m:null===(v=P.props)||void 0===v?void 0:v.secondaryYScaleOptions)?40:20:null!==(y=null===(_=P.props.margins)||void 0===_?void 0:_.left)&&void 0!==y?y:40},void 0!==P.props.xAxisTitle&&""!==P.props.xAxisTitle&&(P.margins.bottom=null!==(b=null===(x=P.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==b?b:55),void 0!==P.props.yAxisTitle&&""!==P.props.yAxisTitle&&(P.margins.left=P._isRtl?(null!==(E=null===(C=P.props.margins)||void 0===C?void 0:C.right)&&void 0!==E?E:null===(S=P.props)||void 0===S?void 0:S.secondaryYAxistitle)?60:40:null!==(L=null===(A=P.props.margins)||void 0===A?void 0:A.left)&&void 0!==L?L:60,P.margins.right=P._isRtl?null!==(T=null===(k=P.props.margins)||void 0===k?void 0:k.left)&&void 0!==T?T:60:(null!==(D=null===(w=P.props.margins)||void 0===w?void 0:w.right)&&void 0!==D?D:null===(M=P.props)||void 0===M?void 0:M.secondaryYAxistitle)?60:40),P}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=(0,ze.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===ze.xl.StringAxis){var e={node:this.xAxisElement,xAxis:this._xScale},n=(0,ze.zs)(e);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var r=(0,ze.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==r&&this.setState({startFromX:r})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,r,o,a,s,l,c,u,d,h=this,p=this.props,f=p.calloutProps,g=p.points,m=p.chartType,v=p.chartHoverProps,_=p.svgFocusZoneProps,y=p.svgProps,x=p.culture,b=p.dateLocalizeOptions,C=p.timeFormatLocale,E=p.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var S=(0,e.pi)({},this.margins);this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&(this._isRtl?S.right+=this.state.startFromX:S.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(S);var A=null,L=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var k={domainNRangeValues:(0,ze.dr)(g,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,m,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},T={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:(0,ze.As)(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},w=void 0,D=void 0;switch(this.props.xAxisType){case ze.xl.NumericAxis:w=(t=(0,ze.OX)(k,this.props.chartType,x)).xScale,D=t.tickValues;break;case ze.xl.DateAxis:w=(n=(0,ze.s8)(k,this.props.tickParams,x,b,C,E)).xScale,D=n.tickValues;break;case ze.xl.StringAxis:w=(r=(0,ze.R)(k,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:w=(o=(0,ze.OX)(k,this.props.chartType,x)).xScale,D=o.tickValues}if(this._xScale=w,this._tickValues=D,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var M={node:this.xAxisElement,xAxis:w,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=w&&(0,ze.Pu)(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var F=void 0,I=void 0,N={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===ze.OH.StringAxis)F=(0,ze.Tj)(T,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth,x);else{if(null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions){var V={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,maxOfYVal:null!==(d=null===(u=this.props.secondaryYScaleOptions)||void 0===u?void 0:u.yMaxValue)&&void 0!==d?d:100,yMinMaxValues:(0,ze.As)(g,m),yAxisPadding:this.props.yAxisPadding};I=(0,ze.eQ)(V,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset,!0)}F=(0,ze.eQ)(T,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset)}this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&F&&(0,ze.Ay)(this.yAxisElement,F,this.props.noOfCharsToTruncate||4,this.props.showYAxisLablesTooltip||!1,this.state.startFromX,this._isRtl),this.props.getAxisData&&this.props.getAxisData(N),this._getData(w,F),L=this.props.children((0,e.pi)((0,e.pi)({},this.state),{xScale:w,yScale:F,yScaleSecondary:I})),!this.props.hideTooltip&&f.isCalloutVisible&&(A=this._generateCallout(f,v))}this._classNames=Si(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var O,H={width:this.state.containerWidth,height:this.state.containerHeight};O=this.props.focusZoneDirection===Re.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Re.horizontal;var B=H.width-this.margins.left-this.margins.right-this.state.startFromX,R=H.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return i.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement(dn,(0,e.pi)({direction:O,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},_),this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement("svg",(0,e.pi)({width:H.width,height:H.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),i.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(H.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&i.createElement(Ei,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+B/2,y:H.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:B,wrapContent:ze.nX}),i.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?H.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&i.createElement("g",null,i.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:H.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&i.createElement(Ei,{content:this.props.secondaryYAxistitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:H.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(H.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:ze.nX})),L,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&i.createElement(Ei,{content:this.props.yAxisTitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?H.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(H.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:ze.nX}))),!this.props.hideLegend&&i.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),A&&i.createElement(i.Suspense,{fallback:i.createElement("div",null,"Loading...")},A))},n.prototype._generateCallout=function(t,n){return i.createElement(Be,(0,e.pi)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&i.createElement(Ai,(0,e.pi)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,e,n,r){var o,a=r?{}:{marginRight:"16px"},s=void 0!==t.index&&-1!==t.index,l=Si(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:s}),c=this.props.culture,u=(0,ze.Ts)(t.y,c);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var d=t.yAxisCalloutData;return i.createElement("div",{style:a},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",u,")"),Object.keys(d).map((function(t){return i.createElement("div",{key:t,className:l.calloutBlockContainer},i.createElement("div",{className:l.calloutlegendText}," ",(0,ze.Ts)(t,c)),i.createElement("div",{className:l.calloutContentY},(0,ze.Ts)(d[t],c)))})))}return i.createElement("div",{style:n?a:{}},n&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",u,")"),i.createElement("div",{id:"".concat(e,"_").concat(t.y),className:l.calloutBlockContainer},s&&i.createElement(fr,{svgProps:{className:l.shapeStyles},pathProps:{fill:t.color},shape:ze.wo[t.index%Object.keys(ze.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:l.calloutlegendText}," ",t.legend),i.createElement("div",{className:l.calloutContentY},(0,ze.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(o=t.y)&&void 0!==o?o:t.data,c)))))},n.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e;if(t.props.hideLegend)e=0;else{var i=t.legendContainer&&getComputedStyle(t.legendContainer);e=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(i&&i.marginTop||"0")+parseFloat(i&&i.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>e?o.getBoundingClientRect().height:350;(n!==a||r!==s-e)&&t.setState({containerWidth:a,containerHeight:s-e})}}))},n}(i.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(xi||(xi={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(bi||(bi={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Ci||(Ci={}));var ki=function(){var t,e=(0,s.J)();return!!(null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&e.navigator.userAgent.indexOf("rv:11.0")>-1}(),Ti=(0,t.z)(Li,(function(t){var n,r,i,o,a,s,l,c,u=t.className,d=t.theme,h=t.isRtl,p=t.shouldHighlight,f=t.href,g=t.lineColor,m=void 0===g?"transparent":g,v=t.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],chartWrapper:{overflow:"auto"},axisTitle:[d.fonts.xSmall,{textAlign:"center",fontWeight:Yt.lq.semibold,fontStyle:"normal",lineHeight:Yt.TS.medium,color:bi.gray160,fill:d.semanticColors.bodyText}],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Yt.$v]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(r={},r[Yt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[Yt.$v]={fill:"rgb(179, 179, 179)"},i)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Yt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!ki&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,e.pi)((0,e.pi)({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[Yt.qJ]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,e.pi)((0,e.pi)({},_.small),{lineHeight:"16px",selectors:(s={},s[Yt.$v]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[(0,e.pi)((0,e.pi)({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Yt.$v]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Yt.$v]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),wi=(0,ue.Ct)((function(t){return(0,ue.Ct)((function(e){var n=(0,ue.Ct)((function(t){return function(n){return e(n,t)}}));return function(r,i){return t(r,i?n(i):e)}}))}));function Di(t,e){return wi(t)(e)}var Mi=function(t){if(void 0===t)return 0;var e=0;return"scrollTop"in t?e=t.scrollTop:"scrollY"in t&&(e=t.scrollY),Math.ceil(e)},Pi=function(t,e){"scrollTop"in t?t.scrollTop=e:"scrollY"in t&&t.scrollTo(t.scrollX,e)},Fi="spacer-",Ii={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Ni=function(t){return t.getBoundingClientRect()},Vi=Ni,Oi=Ni,Hi=function(t){function n(n){var r=t.call(this,n)||this;return r._root=i.createRef(),r._surface=i.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(t,e){return t.items!==r.props.items||t.renderCount!==r.props.renderCount||t.startIndex!==r.props.startIndex||t.version!==r.props.version||!e.hasMounted&&r.props.renderEarly&&(0,Pe.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(t,e)):e},r._onRenderRoot=function(t){var n=t.rootRef,r=t.surfaceElement,o=t.divProps;return i.createElement("div",(0,e.pi)({ref:n},o),r)},r._onRenderSurface=function(t){var n=t.surfaceRef,r=t.pageElements,o=t.divProps;return i.createElement("div",(0,e.pi)({ref:n},o),r)},r._onRenderPage=function(t,n){for(var o,a=r.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=t.page,d=u.items,h=void 0===d?[]:d,p=u.startIndex,f=(0,e._T)(t,["page"]),g=void 0===c?"listitem":"presentation",m=[],v=0;v<h.length;v++){var _=p+v,y=h[v],x=r.props.getKey?r.props.getKey(y,_):y&&y.key;null==x&&(x=_);var b=null!=l?l:s,C=null!==(o=null==b?void 0:b(y,_,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==o?o:null;l&&!C||m.push(i.createElement("div",{role:g,className:"ms-List-cell",key:x,"data-list-index":_,"data-automationid":"ListCell"},C))}return i.createElement("div",(0,e.pi)({},f),m)},Ze(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._estimatedPageHeight=0,r._totalEstimates=0,r._requiredWindowsAhead=0,r._requiredWindowsBehind=0,r._measureVersion=0,r._cachedPageHeights={},r._estimatedPageHeight=0,r._focusedIndex=-1,r._pageCache={},r}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t,e){return e.getDerivedStateFromProps(t,e)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,e,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var c=this._getPageSpecification(this.props,l,o),u=c.height;if(s=c.itemCount,l<=t&&l+s>t){if(e&&this._scrollElement){for(var d=Oi(this._scrollElement),h=Mi(this._scrollElement),p={top:h,bottom:h+d.height},f=t-l,g=0;g<f;++g)a+=e(l+g);var m=a+e(t);switch(n){case 1:return void Pi(this._scrollElement,a);case 2:return void Pi(this._scrollElement,m-d.height);case 3:return void Pi(this._scrollElement,(a+m-d.height)/2)}if(a>=p.top&&m<=p.bottom)return;a<p.top||m>p.bottom&&(a=m-d.height)}return void(this._scrollElement&&Pi(this._scrollElement,a))}a+=u}},n.prototype.getStartItemIndexInView=function(t){for(var e=0,n=this.state.pages||[];e<n.length;e++){var r=n[e];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!t){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=t(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},n.prototype.componentDidMount=function(){this._async=new It(this),this._events=new Tn(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=et(this._root.current),this._scrollTop=0,this.setState((0,e.pi)((0,e.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var e;return(null!==(e=null==t?void 0:t.window)&&void 0!==e?e:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,e){var n=this.props,r=this.state;this.state.pagesVersion!==e.pagesVersion&&(n.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdleDebounced(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},n.prototype.componentWillUnmount=function(){var t,e;null===(t=this._async)||void 0===t||t.dispose(),null===(e=this._events)||void 0===e||e.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,e){var n=this.state.pages,r=e.pages,i=!1;if(!e.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,r=t.role,i=void 0===r?"list":r,o=t.onRenderSurface,a=t.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=X(this.props,q),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=o?Di(o,this._onRenderSurface):this._onRenderSurface;return(a?Di(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,e.pi)((0,e.pi)({},u),{className:U("ms-List",n),role:c.length>0?i:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var e=t.onShouldVirtualize;return!e||e(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var e,n=this,r=this.props.usePageCache;if(r&&(e=this._pageCache[t.key])&&e.pageElement)return e.pageElement;var i=this._getPageStyle(t),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(e){n._pageRefs[t.key]=e},style:i,role:"presentation"},this._onRenderPage);return r&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:a}),a},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,e.pi)((0,e.pi)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var e=t.target;e!==this._surface.current;){var n=e.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}e=y(e)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,e;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,e=this._materializedRect,t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,e=t.renderedWindowsAhead,n=t.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(e,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(e>o||n>a)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var r=this._buildPages(t,n),i=n.pages;return this._notifyPageChanges(i,r.pages,this.props),(0,e.pi)((0,e.pi)((0,e.pi)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,e,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=t;a<s.length;a++)(u=s[a]).items&&(o[u.startIndex]=u);for(var l=0,c=e;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},n.prototype._updatePageMeasurements=function(t){var e=!1;if(!this._shouldVirtualize())return e;for(var n=0;n<t.length;n++){var r=t[n];r.items&&(e=this._measurePage(r)||e)}return e},n.prototype._measurePage=function(t){var e=!1,n=this._pageRefs[t.key],r=this._cachedPageHeights[t.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(e=t.height!==i.height,t.height=i.height,this._cachedPageHeights[t.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return e},n.prototype._onPageAdded=function(t){var e=this.props.onPageAdded;e&&e(t)},n.prototype._onPageRemoved=function(t){var e=this.props.onPageRemoved;e&&e(t)},n.prototype._buildPages=function(t,n){var r=t.renderCount,i=t.items,o=t.startIndex,a=t.getPageHeight;r=this._getRenderCount(t);for(var s=(0,e.pi)({},Ii),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=o+r,f=this._shouldVirtualize(t),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,_=function(e){var r=y._getPageSpecification(t,e,v),a=r.height,_=r.data,x=r.key;c=r.itemCount;var b,C,E=u+a-1,S=m(n.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,A=!v||E>=v.top&&u<=v.bottom,L=!y._requiredRect||E>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!g&&(L||A&&S)||!f||h>=e&&h<e+c||e===o){d&&(l.push(d),d=null);var k=Math.min(c,p-e),T=y._createPage(x,i.slice(e,e+k),e,void 0,void 0,_);T.top=u,T.height=a,y._visibleRect&&y._visibleRect.bottom&&(T.isVisible=E>=y._visibleRect.top&&u<=y._visibleRect.bottom),l.push(T),L&&y._allowedRect&&(b=s,C={top:u,bottom:E,height:a,left:v.left,right:v.right,width:v.width},b.top=C.top<b.top||-1===b.top?C.top:b.top,b.left=C.left<b.left||-1===b.left?C.left:b.left,b.bottom=C.bottom>b.bottom||-1===b.bottom?C.bottom:b.bottom,b.right=C.right>b.right||-1===b.right?C.right:b.right,b.width=b.right-b.left+1,b.height=b.bottom-b.top+1)}else d||(d=y._createPage(Fi+e,void 0,e,0,void 0,_,!0)),d.height=(d.height||0)+(E-u)+1,d.itemCount+=c;if(u+=E-u+1,g&&f)return"break"},y=this,x=o;x<p&&"break"!==_(x);x+=c);return d&&(d.key=Fi+"end",l.push(d)),this._materializedRect=s,(0,e.pi)((0,e.pi)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,e,n){var r=t.getPageSpecification;if(r){var i=r(e,n,t.items),o=i.itemCount,a=void 0===o?this._getItemCountForPage(e,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(e,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(e,n),height:this._getPageHeight(e,n,a)}},n.prototype._getPageHeight=function(t,e,n){if(this.props.getPageHeight)return this.props.getPageHeight(t,e,n,this.props.items);var r=this._cachedPageHeights[t];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,e){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,e):10)||10},n.prototype._createPage=function(t,e,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=e?e.length:0),void 0===i&&(i={}),t=t||"page-"+n;var s=this._pageCache[t];return s&&s.page?s.page:{key:t,startIndex:n,itemCount:r,items:e,style:i,top:0,height:0,data:o,isSpacer:a||!1}},n.prototype._getRenderCount=function(t){var e=t||this.props,n=e.items,r=e.startIndex,i=e.renderCount;return void 0===i?n?n.length-r:0:i},n.prototype._updateRenderRects=function(t,n,r){var i=t.renderedWindowsAhead,o=t.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(t)){var l=this._surfaceRect||(0,e.pi)({},Ii),c=function(t){if(void 0===t)return 0;var e=0;return"scrollHeight"in t?e=t.scrollHeight:"document"in t&&(e=t.document.documentElement.scrollHeight),e}(this._scrollElement),u=Mi(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(l=this._surfaceRect=Vi(this._surface.current),this._scrollTop=u),!r&&c&&c===this._scrollHeight||this._measureVersion++,this._scrollHeight=c||0;var d=Math.max(0,-l.top),h=(0,s.J)(this._root.current),p={top:d,left:l.left,bottom:d+h.innerHeight,right:l.right,width:l.width,height:h.innerHeight};this._requiredRect=Bi(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Bi(p,o,i),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(t,e,n){return i.createElement(i.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Ht,n}(i.Component);function Bi(t,e,n){var r=t.top-e*t.height,i=t.height+(e+n)*t.height;return{top:r,bottom:r+i,height:i,left:t.left,right:t.right,width:t.width}}var Ri,zi=function(t){var n=i.useRef(null);i.useEffect((function(){if(n.current){var e=(0,pi.Ys)(n.current),r=t.text.split(/\s+/),i=[],o=e.append("tspan"),a=0;return r.forEach((function(n){i.push(n),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>t.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[n],o=e.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),e.attr("dy",-a*t.lineHeight),function(){e.selectAll("tspan").remove()}}})),t.lineHeight;var r=(0,e._T)(t,["lineHeight"]);return i.createElement("text",(0,e.pi)({ref:n},r))},Wi=function(t){var e,n,r,o=i.useRef(null),a=i.useState(!1),s=a[0],l=a[1],c=null;if(s){var u=t.labelDef.aggregatedIdx.map((function(e){return t.lineDefs[e].onRenderCard})).filter((function(t){return!!t}));u.length>0&&(c=i.createElement(Be,{target:o.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},i.createElement(dn,{isCircularNavigation:!0,direction:Re.vertical},i.createElement(Hi,{items:u,onRenderCell:function(t){return i.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var d=t.textColor?ci(t.textColor,null===(e=t.theme)||void 0===e?void 0:e.isInverted):null===(n=t.theme)||void 0===n?void 0:n.palette.black;return r=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),i.createElement(i.Fragment,null,i.createElement("g",{ref:o,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},i.createElement(zi,{text:r,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:d})),c)},Yi=function(t){var n,r,o=t.labelWidth?t.labelWidth:105,a=t.chartYTop-20,s=a+7,l=t.scale.range(),c=t.events.map((function(n){return(0,e.pi)((0,e.pi)({},n),{x:t.scale(n.date)})}));c.sort((function(t,e){return+t.date-+e.date}));var u=t.strokeColor?ci(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(r=t.theme)||void 0===r?void 0:r.palette.black,d=function(t,e){for(var n=[],r=[],i=0,o=t;i<o.length;i++){var a=o[i],s=e(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(c,(function(t){return t.date.toString()})).map((function(e,n){return i.createElement("line",{key:n,x1:e.x,x2:e.x,y1:s,y2:t.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(t,e,n,r){var i=function(r,i){if(i===t.length)return[];var a=t[i].x,s=a-e;return a<r?[]:i===t.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+e<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?t[r].x:t[r].x+e,s=m(t,(function(t){return t.x>a&&(t.x-e>=a||t.x+e<n)}),r+1);-1===s&&(s=t.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:t[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(c,o+5,l[1],l[0]).map((function(n,r){return i.createElement(Wi,(0,e.pi)({key:r,theme:t.theme},{lineDefs:c,labelDef:n,textY:a,textWidth:o,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return i.createElement(i.Fragment,null,d,h)},Zi=(0,o.y)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(Ri||(Ri={}));var qi=(0,fi.Z)((function(t){return t.x})).left,Xi=function(t){function n(n){var r=t.call(this,n)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._isRTL=(0,a.zg)(),r._injectIndexPropertyInLineChartData=function(t){var n=r.props.allowMultipleShapesForPoints,i=void 0!==n&&n;return t?t.map((function(t,n){var o,a,s;return s=void 0===t.color?li(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):ci(t.color,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted),(0,e.pi)((0,e.pi)({},t),{index:i?n:-1,color:s})})):[]},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getMargins=function(t){r.margins=t},r._initializeLineChartData=function(t,e,n,i,o){r._xAxisScale=t,r._yAxisScale=e,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(n):[],r.lines=r._createLines(o,n)},r._handleSingleLegendSelectionAction=function(t){r.state.selectedLegend===t.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(t,null)):(r.setState({selectedLegend:t.legend}),r._handleLegendClick(t,t.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(t,e,n){var i=r.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,c=r.state.activePoint;return a?c===t?Ri.hoverSize:1===e||n?2.5*l:Ri.invisibleSize:c===t?Ri.hoverSize:Ri.invisibleSize},r._getPath=function(t,e,n,i,o,a){var s=r.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=r._getBoxWidthOfShape(n,i,o),u=l?a%Object.keys(ze.Ml).length:0,d=ze.Ml[u].widthRatio;return function(t,e,n,r){return["M".concat(t-n/2," ").concat(e,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(t+n/2," ").concat(e,"\n M").concat(t-n/2," ").concat(e,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(t+n/2," ").concat(e,"\n "),"M".concat(t-n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e+n/2,"\n Z"),"M".concat(t-n/2," ").concat(e-.2886*n,"\n H ").concat(t+n/2,"\n L").concat(t," ").concat(e+.5774*n," Z"),"M".concat(t," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e,"\n L").concat(t," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.5774*n,"\n L").concat(t+n/2," ").concat(e+.2886*n,"\n L").concat(t-n/2," ").concat(e+.2886*n," Z"),"M".concat(t-.5*n," ").concat(e-.866*n,"\n L").concat(t+.5*n," ").concat(e-.866*n,"\n L").concat(t+n," ").concat(e,"\n L").concat(t+.5*n," ").concat(e+.866*n,"\n L").concat(t-.5*n," ").concat(e+.866*n,"\n L").concat(t-n," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.851*n,"\n L").concat(t+.6884*n," ").concat(e-.2633*n,"\n L").concat(t+.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.6884*n," ").concat(e-.2633*n,"\n Z"),"M".concat(t-.5001*n," ").concat(e-1.207*n,"\n L").concat(t+.5001*n," ").concat(e-1.207*n,"\n L").concat(t+1.207*n," ").concat(e-.5001*n,"\n L").concat(t+1.207*n," ").concat(e+.5001*n,"\n L").concat(t+.5001*n," ").concat(e+1.207*n,"\n L").concat(t-.5001*n," ").concat(e+1.207*n,"\n L").concat(t-1.207*n," ").concat(e+.5001*n,"\n L").concat(t-1.207*n," ").concat(e-.5001*n,"\n Z")][r]}(t,e,c=d>1?c/d:c,u)},r._getPointFill=function(t,e,n,i){var o=r.state.activePoint,a=r.props,s=a.theme;return a.allowMultipleShapesForPoints,o===e?s.palette.white:t},r._createColorFillBars=function(t){var e,n=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var o=(0,ze.As)(r._points,ze.$X.LineChart),a=0;a<r._colorFillBars.length;a++){var s=r._colorFillBars[a],l=f(s.legend.replace(/\W/g,"")),c=ci(s.color,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted);s.applyPattern&&n.push(r._getStripePattern(c,a));for(var u=0;u<s.data.length;u++){var d=s.data[u].startX,h=s.data[u].endX,p=r._legendHighlighted(s.legend)||r._noLegendHighlighted()||r.state.isSelectedLegend?r._getColorFillBarOpacity(s):.1;n.push(i.createElement("rect",{fill:s.applyPattern?"url(#".concat(r._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:r._isRTL?r._xAxisScale(h):r._xAxisScale(d),y:r._yAxisScale(o.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(d)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return n},r._getStripePattern=function(t,e){return i.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(e),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(e),patternUnits:"userSpaceOnUse"},i.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},r._checkInGap=function(t,e,n){for(var r=n,i=!1;r<e.length&&t>e[r].endIndex;)r++;return r<e.length&&t>e[r].startIndex&&t<=e[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},r._onMouseOverLargeDataset=function(t,e,n){n.persist();var i=r.props.data.lineChartData,o=r._xAxisScale.invert((0,pi.Eb)(document.getElementById(r._rectId),n)[0]),a=qi(i[t].data,o),s=i[t].data[a-1],l=i[t].data[a],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=a;else if(void 0!==s&&void 0===l)c=s.x,u=a-1;else{var d=void 0,h=void 0,p=void 0;switch((0,ze.SY)(i[t].data[0].x,!0)){case ze.xl.DateAxis:d=new Date(o).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case ze.xl.NumericAxis:d=o,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=i[t].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,_=c instanceof Date?c.toLocaleString():c,y=c instanceof Date?c.getTime():c,x=v(r._calloutPoints,(function(t){return t.x===y})),b=i[t].data[u],C=null===r.state.nearestCircleToHighlight||null!==r.state.nearestCircleToHighlight&&null!==b&&(r.state.nearestCircleToHighlight.x!==b.x||r.state.nearestCircleToHighlight.y!==b.y);x&&C&&(r._uniqueCallOutID="#".concat(r._staticHighlightCircle,"_").concat(t),(0,pi.Ys)("#".concat(r._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(r._xAxisScale(b.x))).attr("cy","".concat(r._yAxisScale(b.y))).attr("visibility","visibility"),(0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(r._xAxisScale(b.x),", ").concat(r._yAxisScale(b.y),")")})).attr("visibility","visibility").attr("y2","".concat(e-r._yAxisScale(b.y))),r.setState({nearestCircleToHighlight:b,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:g||_,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:b,activePoint:"",activeLine:t})},r._handleFocus=function(t,e,n,i,o){r._uniqueCallOutID=i;var a=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=v(r._calloutPoints,(function(t){return t.x===s}));if(l){var c=r;(0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(e),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(e){e.index===t&&r.setState({isCalloutVisible:!0,refSelected:e.refElement,hoverXValue:n||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else r.setState({activePoint:i})},r._handleHover=function(t,e,n,i,o,a,s){s.persist();var l=t instanceof Date?t.toLocaleDateString():t,c=t instanceof Date?t.getTime():t,u=r,d=v(r._calloutPoints,(function(t){return t.x===c}));d?((0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(t),", ").concat(u._yAxisScale(e),")")})).attr("visibility","visibility").attr("y2","".concat(n-u._yAxisScale(e))),r._uniqueCallOutID!==o&&(r._uniqueCallOutID=o,r.setState({isCalloutVisible:!0,refSelected:"#".concat(o),hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(t){return t?{onClick:t}:{}},r._handleMouseOut=function(){(0,pi.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(t,e){t.onLegendClick&&t.onLegendClick(e)},r._handleMultipleLineLegendSelectionAction=function(t){var n,i=r.state.selectedLegendPoints.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);n=-1===i?(0,e.ev)((0,e.ev)([],r.state.selectedLegendPoints,!0),[t],!1):r.state.selectedLegendPoints.slice(0,i).concat(r.state.selectedLegendPoints.slice(i+1)),r.props.data&&n.length===r.props.data.lineChartData.length&&(r.props.colorFillBars&&r.props.colorFillBars.length===r.state.selectedColorBarLegend.length||!r.props.colorFillBars)?r._clearMultipleLegendSelections():n.length||r.state.selectedColorBarLegend.length?r.setState({selectedLegendPoints:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var o=n.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=r.state.selectedColorBarLegend.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);(n=-1===i?(0,e.ev)((0,e.ev)([],r.state.selectedColorBarLegend,!0),[t],!1):r.state.selectedColorBarLegend.slice(0,i).concat(r.state.selectedColorBarLegend.slice(i+1))).length===(r.props.colorFillBars&&r.props.colorFillBars.length)&&(r.props.data&&r.props.data.lineChartData.length===r.state.selectedLegendPoints.length||!r.props.data)?r._clearMultipleLegendSelections():n.length||r.state.selectedLegendPoints.length?r.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var o=n.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},r._getAriaLabel=function(t,e){var n,i=r._points[t],o=i.data[e],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,c=o.yAxisCalloutData||o.y;return(null===(n=o.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},r.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},r._refArray=[],r._points=r._injectIndexPropertyInLineChartData(r.props.data.lineChartData),r._colorFillBars=[],r._calloutPoints=(0,ze.Wx)(r._points)||[],r._circleId=f("circle"),r._lineId=f("lineID"),r._borderId=f("borderID"),r._verticalLine=f("verticalLine"),r._colorFillBarPatternId=f("colorFillBarPattern"),r._tooltipId=f("LineChartTooltipId_"),r._rectId=f("containerRectLD"),r._staticHighlightCircle=f("staticHighlightCircle"),r._createLegendsMemoized=(0,ue.NF)((function(t){return r._createLegends(t)})),r._firstRenderOptimization=!0,r._emptyChartId=f("_LineChart_empty"),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=n.eventAnnotationProps.labelHeight),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=(0,ze.Wx)(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,r=n.tickValues,o=n.tickFormat,a=n.eventAnnotationProps,s=n.legendProps,l=n.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=(0,ze.V4)(this._points),u=this._points;s&&s.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,ze.Wx)(u));var d=null;this.props.hideLegend||(d=this._createLegendsMemoized(this._points));var h=(0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:r,tickFormat:o};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{chartTitle:l.chartTitle,points:u,chartType:ze.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?ze.xl.DateAxis:ze.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?i.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):i.createElement(i.Fragment,null),i.createElement("g",null,t._renderedColorFillBars,t.lines),a&&i.createElement(Yi,(0,e.pi)({theme:t.props.theme},a,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},n.prototype._createLegends=function(t){var n=this,r=this.props,o=r.legendProps,a=r.allowMultipleShapesForPoints,s=void 0!==a&&a,l=!(!o||!o.canSelectMultipleLegends),c=t.map((function(t){var r=t.color;return(0,e.pi)((0,e.pi)({title:t.legend,color:r,action:function(){l?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),s&&{shape:ze.wo[t.index%Object.keys(ze.Ml).length]})})),u=this.props.colorFillBars?this.props.colorFillBars.map((function(t,e){var r,i=t.legend,o=ci(t.color,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted);return{title:i,color:o,action:function(){l?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:i})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return i.createElement(vr,(0,e.pi)({legends:(0,e.ev)((0,e.ev)([],c,!0),u,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},l&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},n.prototype._createLines=function(t,n){var r,o,a,s,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,E,S,A,L,k,T=this,w=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(t){var D=[],P=[],F=[],I=M._points[t].legend,N=M._points[t].color,V=M.state.activePoint,O=M.props.theme,H=n-M.margins.bottom+6;if(1===M._points[t].data.length){var B=M._points[t].data[0],R=B.x,z=B.y,W=B.xAxisCalloutData,Y=B.xAxisCalloutAccessibilityData,Z="".concat(M._circleId,"_").concat(t);F.push(i.createElement("circle",(0,e.pi)({id:Z,key:Z,r:V===Z?5.5:3.5,cx:M._xAxisScale(R),cy:M._yAxisScale(z),fill:V===Z?O.palette.white:N,onMouseOver:M._handleHover.bind(M,R,z,H,W,Z,Y),onMouseMove:M._handleHover.bind(M,R,z,H,W,Z,Y),onMouseOut:M._handleMouseOut,strokeWidth:V===Z?4:0,stroke:V===Z?N:"",role:"img","aria-label":M._getAriaLabel(t,0),"data-is-focusable":!0,ref:function(t){T._refCallback(t,Z)},onFocus:function(){return T._handleFocus(Z,R,W,Z,Y)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[0].onDataPointClick))))}var q=0,X=null!==(o=null===(r=M._points[t].gaps)||void 0===r?void 0:r.sort((function(t,e){return t.startIndex-e.startIndex})))&&void 0!==o?o:[];if(M.props.optimizeLargeData&&M._points[t].data.length>1){for(var U=yi().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return T._yAxisScale(t[1])})).curve(mi),j="".concat(M._lineId,"_").concat(t),G="".concat(M._borderId,"_").concat(t),K=(null===(a=M._points[t].lineOptions)||void 0===a?void 0:a.strokeWidth)||M.props.strokeWidth||4,$=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,J=[],Q=0;Q<M._points[t].data.length;Q++)J.push([M._points[t].data[Q].x instanceof Date?M._points[t].data[Q].x.getTime():M._points[t].data[Q].x,M._points[t].data[Q].y]);if($){var tt=(null===(s=M._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(M._points[t].lineOptions.lineBorderWidth.toString()):0;tt>0&&P.push(i.createElement("path",{id:G,key:G,d:U(J),fill:"transparent",strokeLinecap:null!==(c=null===(l=M._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(K.toString())+tt,stroke:(null===(u=M._points[t].lineOptions)||void 0===u?void 0:u.lineBorderColor)||O.palette.white,opacity:1})),D.push(i.createElement("path",(0,e.pi)({id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(h=null===(d=M._points[t].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:M._onMouseOverLargeDataset.bind(M,t,H),onMouseOver:M._onMouseOverLargeDataset.bind(M,t,H),onMouseOut:M._handleMouseOut},M._getClickHandler(M._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(I,", series ").concat(t+1," of ").concat(M._points.length," with ").concat(M._points[t].data.length," data points.")})))}else D.push(i.createElement("path",{id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(f=null===(p=M._points[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1,role:"img","aria-label":"".concat(I,", series ").concat(t+1," of ").concat(M._points.length," with ").concat(M._points[t].data.length," data points.")}));var et=null!==M.state.activeLine&&M.state.activeLine===t;F.push(i.createElement("circle",{id:"".concat(M._staticHighlightCircle,"_").concat(t),key:"".concat(M._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:O.palette.white,strokeWidth:4,stroke:N,visibility:et?"visibility":"hidden",onMouseMove:M._onMouseOverLargeDataset.bind(M,t,H),onMouseOver:M._onMouseOverLargeDataset.bind(M,t,H),onMouseOut:M._handleMouseOut}))}else if(!M.props.optimizeLargeData)for(var nt=function(n){var r=M._checkInGap(n,X,q),o=r.isInGap;q=r.gapIndex;var a="".concat(M._lineId,"_").concat(t,"_").concat(n),s="".concat(M._borderId,"_").concat(t,"_").concat(n),l="".concat(M._circleId,"_").concat(t,"_").concat(n),c=M._points[t].data[n-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=M._points[t].data[n],w=f.x,B=f.y,R=M._getPath(M._xAxisScale(u),M._yAxisScale(d),l,n,!1,M._points[t].index),z=(null===(g=M._points[t].lineOptions)||void 0===g?void 0:g.strokeWidth)||M.props.strokeWidth||4,W=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,Y=M._points[t].hideNonActiveDots&&V!==l;if(F.push(i.createElement("path",(0,e.pi)({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,u,d,H,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,H,h,l,p),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,u,h,l,p)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[n-1].onDataPointClick),{opacity:W&&!Y?1:.01,fill:M._getPointFill(N,l,n,!1),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(t,n-1)}))),n+1===M._points[t].data.length){var Z="".concat(l).concat(n,"L"),U="".concat(l).concat(n,"D"),j=M._points[t].hideNonActiveDots&&V!==Z;R=M._getPath(M._xAxisScale(w),M._yAxisScale(B),Z,n,!0,M._points[t].index);var G=M._points[t].data[n],K=G.xAxisCalloutData,$=G.xAxisCalloutAccessibilityData;F.push(i.createElement(i.Fragment,{key:"".concat(Z,"_container")},i.createElement("path",(0,e.pi)({id:Z,key:Z,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseMove:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,w,K,Z,$)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[n].onDataPointClick),{opacity:W&&!j?1:.01,fill:M._getPointFill(N,Z,n,!0),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(t,n)})),i.createElement("circle",{id:U,key:U,r:8,cx:M._xAxisScale(w),cy:M._yAxisScale(B),opacity:0,width:0,onMouseOver:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseMove:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseOut:M._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:M._handleMouseOut})))}if(W){if(!o){var J=(null===(m=M._points[t].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(M._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(i.createElement("line",{id:s,key:s,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeLinecap:null!==(_=null===(v=M._points[t].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(z.toString())+J,stroke:(null===(y=M._points[t].lineOptions)||void 0===y?void 0:y.lineBorderColor)||O.palette.white,opacity:1})),D.push(i.createElement("line",(0,e.pi)({id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeWidth:z,ref:function(t){T._refCallback(t,a)},onMouseOver:M._handleHover.bind(M,u,d,H,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,H,h,l,p),onMouseOut:M._handleMouseOut,stroke:N,strokeLinecap:null!==(b=null===(x=M._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=M._points[t].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(E=M._points[t].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},M._getClickHandler(M._points[t].onLineClick))))}}else o||D.push(i.createElement("line",{id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeWidth:z,stroke:N,strokeLinecap:null!==(A=null===(S=M._points[t].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==A?A:"round",strokeDasharray:null===(L=M._points[t].lineOptions)||void 0===L?void 0:L.strokeDasharray,strokeDashoffset:null===(k=M._points[t].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:.1}))},rt=1;rt<M._points[t].data.length;rt++)nt(rt);w.push.apply(w,(0,e.ev)((0,e.ev)((0,e.ev)([],P,!1),D,!1),F,!1))},M=this,P=this._points.length-1;P>=0;P--)D(P);var F=Zi(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var I=(0,pi.Ys)(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var N={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:I};I&&(0,ze.$V)(N)}return w},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0},n}(i.Component),Ui=(0,t.z)(Xi,(function(t){return{tooltip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),ji=n(8957);function Gi(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Ki(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function $i(t,e){return t[e]}function Ji(t){const e=[];return e.key=t,e}function Qi(t,e,n){var r=null,i=yr(!0),o=null,a=mi,s=null,l=zr(c);function c(c){var u,d,h,p,f,g=(c=_r(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==o&&(s=a(f=l())),u=0;u<=g;++u){if(!(u<g&&i(p=c[u],u,c))===m)if(m=!m)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],_[h]);s.lineEnd(),s.areaEnd()}m&&(v[u]=+t(p,u,c),_[u]=+e(p,u,c),s.point(r?+r(p,u,c):v[u],n?+n(p,u,c):_[u]))}if(f)return s=null,f+""||null}function u(){return yi().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?vi:yr(+t),e="function"==typeof e?e:yr(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?_i:yr(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:yr(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:yr(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:yr(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function to(t){return t<0?-1:1}function eo(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(to(o)+to(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function no(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ro(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function io(t){this._context=t}function oo(t){this._context=t}function ao(t){return new io(t)}io.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:ro(this,this._t0,no(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ro(this,no(this,n=eo(this,t,e)),n);break;default:ro(this,this._t0,n=eo(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new oo(t)}.prototype=Object.create(io.prototype)).point=function(t,e){io.prototype.point.call(this,e,t)},oo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};var so,lo=(0,o.y)(),co=(0,fi.Z)((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(so||(so={}));var uo=function(t){function n(n){var r=t.call(this,n)||this;return r._getMargins=function(t){r.margins=t},r._onRectMouseMove=function(t){t.persist();var e=r.props.data.lineChartData,n=r._xAxisRectScale.invert((0,pi.Eb)(document.getElementById(r._rectId),t)[0]),i=co(e[0].data,n),o=e[0].data[i-1],a=e[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=(0,ze.SY)(e[0].data[0].x,!0)){case ze.xl.DateAxis:u=new Date(n).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case ze.xl.NumericAxis:u=n,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=e[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,_=l instanceof Date?l.getTime():l,y=v(r._calloutPoints,(function(t){return t.x===_})),x=s===ze.xl.DateAxis?l.getTime():l,b=r.state.nearestCircleToHighlight!==x;y&&b&&!r.state.isShowCalloutPending&&r.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:r._xAxisRectScale(l),displayOfLine:so.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),y||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:so.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:so.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(t,e){var n=function(){var t=yr([]),e=Ki,n=Gi,r=$i;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Ji),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=_r(e(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:yr(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:yr(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ki:"function"==typeof t?t:yr(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Gi:t,i):n},i}().keys(t)(e),i=(0,ji.Z)(n[n.length-1],(function(t){return t[1]})),o=[];return n.forEach((function(t){var e=[];t.forEach((function(t){e.push({values:t,xVal:t.data.xVal})})),o.push(e)})),r._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},r._createDataSet=function(t){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var e=[],n=[],i=[],o=[],a=(0,ze.Wx)(t);t&&t.length&&t.forEach((function(t){i.push(t.color),o.push(t.opacity||1),e.push.apply(e,t.data)}));var s={};e.forEach((function(t){var e=t.x instanceof Date?t.x.toLocaleString():t.x;s[e]?s[e].push(t):s[e]=[t]})),Object.keys(s).forEach((function(t){var e=s[t],r={};e.forEach((function(t,e){r.xVal=t.x,r["chart".concat(e)]=t.y})),n.push(r)}));for(var l=n&&Object.keys(n[0]).length,c=[],u=0;u<l-1;u++){var d="chart".concat(u);c.push(d)}var h=r._getStackedData(c,n);return{colors:i,opacity:o,keys:c,stackedInfo:h,calloutPoints:a}}var p=[],f=[],g=[],m=[];a=(0,ze.Wx)(t),t&&t.length&&t.forEach((function(t){g.push(t.color),m.push(t.opacity||1),p.push.apply(p,t.data)}));for(var v=p,_=function(){var t=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,e=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)===t})),n={};e.forEach((function(t,e){n.xVal=t.x,n["chart".concat(e)]=t.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==r}))};v.length;)_();for(l=f&&Object.keys(f[0]).length,c=[],u=0;u<l-1;u++)d="chart".concat(u),c.push(d);return h=r._getStackedData(c,f),{colors:g,opacity:m,keys:c,stackedInfo:h,calloutPoints:a}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getGraphData=function(t,e,n,i,o){r._chart=r._drawGraph(n,t,e,o)},r._getLegendData=function(t){var n=[];return t.forEach((function(t){var e=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var i={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};n.push(i)}})),i.createElement(vr,(0,e.pi)({legends:n,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(t){t&&t(),r.setState({isCircleClicked:!0})},r._getOpacity=function(t){return r._isMultiStackChart?r._legendHighlighted(t)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(t){if(r._isMultiStackChart){var e=.3;return r.state.isCalloutVisible&&(e=1),r._noLegendHighlighted()||(e=r._legendHighlighted(t)?0:.1),e}return 1},r._updateCircleFillColor=function(t,e,n){var i=e;return r.state.nearestCircleToHighlight!==t&&r.state.activePoint!==n||(r._highlightedCircleId=n,r.state.isCircleClicked||(i=r.props.theme.palette.white)),i},r._drawGraph=function(t,n,o,a){var s,l=r._addDefaultColors(r.props.data.lineChartData),c=r.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Qi().x((function(t){return n(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(ao),p=yi().x((function(t){return n(t.xVal)})).y((function(t){return o(t.values[1])})).curve(ao),f=[];r._stackedData.forEach((function(t,a){f.push(i.createElement(i.Fragment,{key:"".concat(a,"-graph-").concat(r._uniqueIdForGraph)},i.createElement("path",(0,e.pi)({id:"".concat(a,"-line-").concat(r._uniqueIdForGraph),d:p(t),fill:"transparent",strokeWidth:3,stroke:r._colors[a],opacity:r._getLineOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},l[a].lineOptions)),1===t.length?i.createElement("circle",{id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),cx:n(t[0].xVal),cy:o(t[0].values[1]),r:6,stroke:r._colors[a],strokeWidth:3,fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove}):i.createElement("path",(0,e.pi)({id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),d:h(t),fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},r.props.optimizeLargeData&&{"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;r._stackedData.forEach((function(t,a){l.length!==a&&(r.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,c){var d=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(r.state.nearestCircleToHighlight===d){var h="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c);s=l[a].color,f.push(i.createElement("circle",(0,e.pi)({key:h,id:h,cx:n(t.xVal),cy:o(t.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(d,s,h),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick)},u,{r:r._getCircleRadius(d,g,h)})))}})):f.push(i.createElement("g",{key:"".concat(a,"-dots-").concat(r._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,c){var d="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return s=l[a].color,i.createElement("circle",(0,e.pi)({key:d,id:d,"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),cx:n(t.xVal),cy:o(t.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(h,s,d),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick),onFocus:function(){return r._handleFocus(a,c,d)},onBlur:r._handleBlur},u,{r:r._getCircleRadius(h,g,d),role:"img","aria-label":r._getAriaLabel(a,c)}))})))))})),f.push(i.createElement("line",(0,e.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:r.state.displayOfLine},d)));var m=lo(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var v=(0,pi.Ys)(a).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var _={tooltipCls:m.tooltip,id:r._tooltipId,xAxis:v};v&&(0,ze.$V)(_)}return f},r._getCircleRadius=function(t,e,n){var i=r.state,o=i.isCircleClicked,a=i.nearestCircleToHighlight,s=i.activePoint;return o&&a===t?1:a===t||s===n?e:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(t){return t?t.map((function(t,n){var i,o,a;return a=void 0===t.color?li(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):ci(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,e.pi)((0,e.pi)({},t),{color:a})})):[]},r._handleFocus=function(t,e,n){var i=r.props.data.lineChartData[t].data[e],o=i.x,a=i.y,s=i.xAxisCalloutData,l=o instanceof Date?o.toLocaleString():o,c=o instanceof Date?o.getTime():o,u=r._calloutPoints.find((function(t){return t.x===c}));u.values=u.values.filter((function(t){return t.y===a})),r.setState({refSelected:"#".concat(n),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:n})},r._handleBlur=function(){r.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},r._createSet=(0,ue.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:so.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},r._uniqueIdForGraph=f("areaChart_"),r._verticalLineId=f("verticalLine_"),r._circleId=f("circle"),r._rectId=f("rectangle"),r._tooltipId=f("AreaChartTooltipID"),r._enableComputationOptimization=!0,r._firstRenderOptimization=!0,r._emptyChartId=f("_AreaChart_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data,r=n.lineChartData,o=n.chartTitle,a=this._addDefaultColors(r),s=this._createSet(a),l=s.colors,c=s.opacity,u=s.stackedInfo,d=s.calloutPoints;this._calloutPoints=d;var h=(0,ze.V4)(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=(0,e.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return i.createElement(Ti,(0,e.pi)({},this.props,{chartTitle:o,points:a,chartType:ze.$X.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?ze.xl.DateAxis:ze.xl.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(e){t._xAxisRectScale=e.xScale;var n=t._xAxisRectScale.ticks(),r=t._xAxisRectScale(n[n.length-1]),o=e.containerHeight-t.margins.top;return i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("rect",{id:t._rectId,width:r,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),i.createElement("g",null,t._chart))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getAriaLabel=function(t,e){var n,r=this.props.data.lineChartData[t],i=r.data[e],o=i.x instanceof Date?i.x.toLocaleString():i.x,a=i.xAxisCalloutData||o,s=r.legend,l=i.yAxisCalloutData||i.y;return(null===(n=i.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(a,". ").concat(s,", ").concat(l,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(i.Component),ho=(0,t.z)(uo,(function(t){return{tooltip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),po=n(5795),fo=function(t,e){var n=t.color;return{arcRoot:{fill:n},arcRootFocussed:{fill:n,stroke:(null==e?void 0:e.palette.black)||Yt.UK.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==e?void 0:e.palette.black)||Yt.UK.black,outline:"none"}}},go=function(t){function n(e){var n=t.call(this,e)||this;return n.updateChart=function(t){vo(t)},n._onFocus=function(){n.setState({isArcFocused:!0})},n._onBlur=function(){n.setState({isArcFocused:!1})},n.state={isArcFocused:!1},n._arcId=f("piechart_arc"),n}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t){return vo(t),null},n.prototype.render=function(){var t,n=this,r=this.props.arc,a=(0,o.y)()((function(t){return fo(t,n.props.theme)}),(0,e.pi)({},this.props));return i.createElement("path",{d:r(this.props.data),className:"".concat(this.state.isArcFocused?a.arcRootFocussed:a.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:jr()},n}(i.Component),mo=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._arcId=f("piechart_arc"),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var e,n,r=this,a=this.props,s=a.data,l=a.culture,c=jr().centroid({endAngle:(null==s?void 0:s.endAngle)||0,startAngle:(null==s?void 0:s.startAngle)||0,padAngle:null==s?void 0:s.padAngle,innerRadius:(null===(e=this.props)||void 0===e?void 0:e.outerRadius)||0,outerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||4}),u=c[0],d=c[1],h=(0,o.y)()((function(t){return fo(t,r.props.theme)})),p=(((null==s?void 0:s.startAngle)||0)+((null==s?void 0:s.endAngle)||0))/2,f="".concat(null==s?void 0:s.data.x,"-").concat((0,ze.Ts)(null==s?void 0:s.data.y,l));return i.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":f,role:"img"},t.prototype.render.call(this),i.createElement(Ei,{content:f,textProps:{x:u,y:d,dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&p>Math.PI||this._isRTL&&p<Math.PI?"end":"start","aria-label":"".concat(null==s?void 0:s.data.x,"-").concat((0,ze.Ts)(null==s?void 0:s.data.y,l)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ze.nX}))},n}(go);function vo(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var _o,yo=function(t){function n(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e){return i.createElement(mo,{culture:n.props.culture,key:e,data:t,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(e)),theme:n.props.theme})},n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=e.width,a=e.height,s=e.chartTitle,l=e.theme,c=[];if(r&&!this.props.colors)for(var u=0;u<r.length;u++)c.push(li(u,0,null==l?void 0:l.isInverted));var d=this.props.colors,h=void 0===d?c:d;this.colors=(0,po.Z)().range(h.map((function(t){return ci(t)})));var p=n(r),f="translate(".concat(o/2,", ").concat(a/2,")");return i.createElement(dn,{direction:Re.domOrder},i.createElement("svg",{width:o,height:a,"aria-label":s},i.createElement("g",{className:"pie",transform:f},p.map((function(e,n){return t.arcGenerator(e,n)})))))},n.defaultProps={pie:Ir().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(i.Component),xo=(0,o.y)(),bo=function(t){function n(e){var n=t.call(this,e)||this;return n._emptyChartId=f("_PieChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,e=t.data,n=t.width,r=t.height,o=t.colors,a=t.chartTitle,s=this.props,l=s.theme,c=s.className,u=s.styles,d=s.culture;this._classNames=xo(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n-80,r-32)/2;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root},this.props.chartTitle&&i.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),i.createElement(yo,{culture:d,width:n,height:r,outerRadius:h,innerRadius:1,data:e,colors:o,chartTitle:a,theme:l}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(i.Component),Co=(0,t.z)(bo,(function(t){var n=t.className,r=t.theme,i=t.width+30,o=t.height+10;return{root:[r.fonts.medium,"ms-PieChart",n,{width:i+40}],chart:[{padding:20,width:i,height:o,boxSizing:"content-box"}],chartTitle:[(0,e.pi)({textAlign:"center"},r.fonts.mediumPlus)]}})),Eo=(0,o.y)(),So=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_SBC_empty"),n.barChartSvgRef=i.createRef(),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,r=t.benchmarkData,o=t.targetData,a=t.hideNumberDisplay,s=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,u=s||n.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||c.neutralTertiary),o&&(o.color=o.color||c.neutralSecondary);var d=this._createBarsAndLegends(n,u,c,r,o),h=!1===a&&!s&&2===n.chartData.length,p=!1===a&&!s&&1===n.chartData.length,f=n.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),g=0;r&&f&&(g=r.data/f*100);var m=0;o&&f&&(m=o.data/f*100);var v=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Eo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:g,targetColor:o?o.color:"",targetRatio:m,showTriangle:!(!r&&!o)});var y=function(){return(0,ze.Ts)(n.chartData[0].data?n.chartData[0].data:0,l)};return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&i.createElement(En,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&i.createElement("div",(0,e.pi)({},(0,ze.ey)(n.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,ze.Ts)(f,l))),p&&i.createElement("div",(0,e.pi)({className:this._classNames.ratioNumerator},(0,ze.ey)(n.chartDataAccessibilityData,"text",!1)),y())),(r||o)&&i.createElement("div",{className:this._classNames.benchmarkContainer},r&&i.createElement("div",{className:this._classNames.benchmark,role:"text"}),o&&i.createElement("div",{className:this._classNames.target,role:"text"}))),i.createElement(dn,{direction:Re.horizontal},i.createElement("div",null,i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},i.createElement("g",null,d[0]),i.createElement(Be,(0,e.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&i.createElement("div",{className:this._classNames.legendContainer},d[1]))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Eo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,r,o,a){var s,l=this,c=(null===(s=t.chartData)||void 0===s?void 0:s.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(c-1),d=[r.blueLight,r.blue,r.blueMid,r.red,r.black],h=[],p=[],g=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),m=0,v=0,_=0;t.chartData.map((function(t,e){var n=t.data?t.data:0;return(v=n/g*100)<1&&0!==v?v=1:v>99&&100!==v&&(v=99),_+=v}));var y=0!==_?_/(100-u):1,x=t.chartData.map((function(t,e){var r=t.color?t.color:d[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,a={title:t.legend,color:r,action:g>0?function(){l._onClick(t.legend)}:void 0,hoverAction:g>0?function(){l._handleChartMouseLeave(),l._onHover(t.legend)}:void 0,onMouseOutAction:g>0?function(){l._onLeave()}:void 0};t.placeHolder||h.push(a),e>0&&(m+=v),(v=o/g*100)<1&&0!==v?v=1/y:v>99&&100!==v?v=99/y:v/=y,p.push(m);var s=l.props.styles,c=!(!l._legendHighlighted(t.legend)&&!l._noLegendHighlighted());return l._classNames=Eo(s,{theme:l.props.theme,shouldHighlight:c,href:l.props.href}),i.createElement("g",{key:e,className:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,a.title)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,o,r,t),onBlur:l._onBarLeave,"aria-label":l._getAriaLabel(t),role:"img",onMouseOver:l._onBarHover.bind(l,o,r,t),onMouseMove:l._onBarHover.bind(l,o,r,t),onMouseLeave:l._onBarLeave,pointerEvents:"all",onClick:l.props.href?l._redirectToUrl.bind(l,l.props.href):t.onClick},i.createElement("rect",{key:e,id:f("_SBC_bar"),x:"".concat(l._isRTL?100-p[e]-v-l.state.barSpacingInPercent*e:p[e]+l.state.barSpacingInPercent*e,"%"),y:0,width:v+"%",height:n,fill:r}))}));this._addLegend(h,o),this._addLegend(h,a);var b=i.createElement(vr,(0,e.pi)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===g?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:r.neutralLight)]:x,b]},n.prototype._onBarFocus=function(t,e,n){var r=this;this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,e){if(e){var n={title:e.legend,color:e.color,shape:"triangle"};t.push(n)}},n.prototype._generateEmptyBar=function(t,e){return i.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},i.createElement("rect",{key:0,id:f("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:e}))},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(i.Component),Ao=(0,t.z)(So,(function(t){var n,r,i=t.className,o=t.width,a=t.barHeight,s=t.shouldHighlight,l=t.theme,c=t.href,u=t.benchmarkColor,d=t.benchmarkRatio,h=t.targetColor,p=t.targetRatio,f=t.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},i],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px",overflow:"visible"},chartTitle:(0,e.pi)((0,e.pi)({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:c?"pointer":"default",selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.TS.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u,marginBottom:"4px",selectors:(n={},n[Yt.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},n)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(r={},r[Yt.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},r)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(_o||(_o={}));var Lo,ko=(0,o.y)(),To=function(t){function n(n){var r=t.call(this,n)||this;return r._isRTL=(0,a.zg)(),r._adjustProps=function(){var t=r.props,e=t.theme,n=t.className,i=t.styles,o=t.width,a=t.barHeight;r._classNames=ko(i,{legendColor:r.state.color,theme:e,width:o,className:n,barHeight:a})},r._getLegendData=function(t,n,o){var a=[o.blueLight,o.blue,o.blueMid,o.red,o.black],s=[];return t.forEach((function(t,e){var i=t.chartData.filter((function(t){return!t.placeHolder}));i.length<3?void 0!==n[e]&&n[e]&&i.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}})):i.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}}))})),i.createElement(vr,(0,e.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},r._computeLongestBarTotalValue=function(){var t=0;return r.props.data.forEach((function(e){var n=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0);t=Math.max(t,n)})),t},r.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},r._onLeave=r._onLeave.bind(r),r._onBarLeave=r._onBarLeave.bind(r),r._calloutId=f("callout"),r.barChartSvgRef=i.createRef(),r._emptyChartId=f("_MSBC_empty"),r._barId=f("_MSBC_rect_"),r._barIdPlaceholderPartToWhole=f("_MSBC_rect_partToWhole_"),r._barIdEmpty=f("_MSBC_rect_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,r=n.data,o=n.theme,a=n.culture;this._adjustProps();var s=o.palette,l=this._getLegendData(r,this.props.hideRatio,s),c=this.state.isCalloutVisible;this._classNames=ko(this.props.styles,{legendColor:this.state.color,theme:o,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=r.map((function(e,n){var r=t._createBarsAndLegends(e,t.props.barHeight,s,t.props.hideRatio[n],t.props.hideDenominator[n],t.props.href,n);return i.createElement("div",{key:n,id:"_MSBC_bar-".concat(n)},r)}));return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&i.createElement("div",{className:this._classNames.legendContainer},l),i.createElement(Be,(0,e.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,r,o,a,s,l){var c,u,d=this,h=(null===(c=t.chartData)||void 0===c?void 0:c.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,p=this.state.barSpacingInPercent*(h-1),f=this.props.culture,g=[r.blueLight,r.blue,r.blueMid,r.red,r.black],m=[],v=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),_=this.props.variant===_o.AbsoluteScale?this._longestBarTotalValue:v,y=0;if(t.chartData.map((function(t,e){var n=(t.data?t.data:0)/_*100||0;return n<1&&0!==n?n=1:n>99&&100!==n&&(n=99),y+=n})),this.props.variant===_o.AbsoluteScale){var x=0===_?0:(_-v)/_*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),y+=x}var b=0!==y?y/(100-p):1,C=0,E=0,S=t.chartData.map((function(t,e){var o=t.color?t.color:t.placeHolder?r.neutralLight:g[Math.floor(4*Math.random()+1)],a=t.data?t.data:0;e>0&&(C+=E),(E=a/_*100?a/_*100:0)<1&&0!==E?E=1/b:E>99&&100!==E?E=99/b:E/=b,m.push(C);var c=d.props.styles,u=!(!d._legendHighlighted(t.legend)&&!d._noLegendHighlighted());return d._classNames=ko(c,{theme:d.props.theme,shouldHighlight:u,href:s,variant:d.props.variant,hideLabels:d.props.hideLabels}),i.createElement("g",{key:e,className:t.placeHolder?d._classNames.placeHolderOnHover:d._classNames.opacityChangeOnHover,ref:function(e){d._refCallback(e,t.legend)},"data-is-focusable":!d.props.hideTooltip,onFocus:d._onBarFocus.bind(d,a,o,t),onBlur:d._onBarLeave,role:"img","aria-label":d._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:d._onBarHover.bind(d,a,o,t),onMouseMove:t.placeHolder?void 0:d._onBarHover.bind(d,a,o,t),onMouseLeave:t.placeHolder?void 0:d._onBarLeave,onClick:s?t.placeHolder?void 0:d._redirectToUrl.bind(d,s):t.onClick},i.createElement("rect",{key:e,id:"".concat(d._barId,"-").concat(l,"-").concat(e),x:"".concat(d._isRTL?100-m[e]-E-d.state.barSpacingInPercent*e:m[e]+d.state.barSpacingInPercent*e,"%"),y:0,width:E+"%",height:n,fill:o}))}));if(this.props.variant!==_o.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(i.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},i.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))),0===v&&S.push(i.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},i.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=v):null===(u=t.chartData)||void 0===u||u.forEach((function(t){d._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(i.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-E-p:(m[m.length-1]||0)+E+p,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},(0,ze.cE)(L)))}var k=void 0!==o&&o,T=this.props.variant!==_o.AbsoluteScale&&!k&&2===t.chartData.length,w=this.props.variant!==_o.AbsoluteScale&&!k&&1===t.chartData.length,D=function(){return(0,ze.Ts)(t.chartData[0].data?t.chartData[0].data:0,f)};return i.createElement("div",{className:this._classNames.singleChartRoot},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&i.createElement(En,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),T&&i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},D()),!a&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,ze.Ts)(v,f))),w&&i.createElement("div",(0,e.pi)({className:this._classNames.ratioNumerator},(0,ze.ey)(t.chartDataAccessibilityData,"text",!1)),D()))),i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartWrapper},i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,e,n){var r=this;this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,e){this.state.refArray.push({legendText:e,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(i.Component),wo=(0,t.z)(To,(function(t){var n=t.className,r=t.width,i=t.barHeight,o=t.shouldHighlight,a=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:r||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:i||12,display:"block",overflow:"visible"},chartTitle:(0,e.pi)((0,e.pi)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===_o.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:r||"100%",display:"flex",flexDirection:"column",marginBottom:l===_o.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.TS.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==_o.AbsoluteScale||c?0:40}}})),Do=n(5561),Mo=n(8815),Po=n(8639),Fo=n(6775);!function(t){t.show="visibility",t.hide="hidden"}(Lo||(Lo={}));var Io,No=(0,o.y)(),Vo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._createLine=function(t,e,n,o,a){var s;void 0===n&&(n=0),void 0===o&&(o=0);var l=r._xAxisType===ze.xl.StringAxis,c=r._getScales(n,o).xBarScale,u=r._createColors(),d=r.props.theme,h=r.props,p=h.data,g=h.lineLegendColor,m=void 0===g?d.palette.yellow:g,v=h.lineLegendText,_=[],y=[];p&&p.forEach((function(t,e){var n;t.lineData&&t.lineData.y&&_.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(n=t.lineData.useSecondaryYScale)&&void 0!==n&&n,point:t,index:e})}));var x=yi().x((function(e){return l?c(e.x)+.5*c.bandwidth():t(e.x)})).y((function(t){return t.useSecondaryYScale&&a?a(t.y):e(t.y)})),b=!(!r._legendHighlighted(v)&&!r._noLegendHighlighted()),C=(null===(s=r.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0;C>0&&y.push(i.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:d.palette.white})),y.push(i.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:m}));var E=_.map((function(n,o){var s;return i.createElement("circle",{key:o,id:f("_VBC_point_"),cx:l?c(n.x)+.5*c.bandwidth():t(n.x),cy:n.useSecondaryYScale&&a?a(n.y):e(n.y),onMouseOver:r._onBarHover.bind(r,n.point,u(n.y)),onMouseOut:r._onBarLeave,r:8,stroke:m,fill:r.props.theme.palette.white,strokeWidth:3,visibility:r.state.activeXdataPoint===n.x?Lo.show:Lo.hide,onClick:null===(s=n.point.lineData)||void 0===s?void 0:s.onClick})}));return i.createElement(i.Fragment,null,y,E)},r._checkForLine=function(){return r.props.data.some((function(t){var e;return void 0!==(null===(e=null==t?void 0:t.lineData)||void 0===e?void 0:e.y)}))},r._getMargins=function(t){r.margins=t},r._renderContentForBothLineAndBars=function(t){var n=r._getCalloutContentForLineAndBar(t),o=n.YValueHover,a=n.hoverXValue,s=o.map((function(t,n){return i.createElement(We.ChartHoverCard,(0,e.pi)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(a||t.data)},{color:t.color,YValue:t.data||t.y,culture:r.props.culture}))}));return i.createElement(i.Fragment,null,s)},r._renderContentForOnlyBars=function(t){var e=r.props.useSingleColor,n=void 0!==e&&e;return i.createElement(i.Fragment,null,i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!n&&t.color?t.color:r._createColors()(t.y),culture:r.props.culture}))},r._renderCallout=function(t){return t?r._isHavingLine?r._renderContentForBothLineAndBars(t):r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,e,n,i,o){return r._bars=r._xAxisType===ze.xl.NumericAxis?r._createNumericBars(n,i,o):r._xAxisType===ze.xl.DateAxis?r._createDateBars(n,i,o):r._createStringBars(n,i,o)},r._refCallback=function(t,e){r._refArray.push({index:e,refElement:t})},r._getCalloutContentForLineAndBar=function(t){var e,n,i,o,a=[],s=r.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=r.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(e){return e.x===t.x}));r._isHavingLine&&void 0!==(null===(e=m[0].lineData)||void 0===e?void 0:e.y)&&a.push({legend:p,color:g,y:null===(n=m[0].lineData)||void 0===n?void 0:n.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:u?r._createColors()(1):m[0].color?m[0].color:r._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData});var v=t.x instanceof Date?t.x.toLocaleString():t.x.toString();return{YValueHover:a,hoverXValue:t.xAxisCalloutData||v}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,e,n){var i=r._getCalloutContentForLineAndBar(t),o=i.YValueHover,a=i.hoverXValue;r._refArray.forEach((function(i,s){i.index===t.legend&&e===s&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))},r._getScales=function(t,e){var n,i=(0,Mo.Z)().domain([0,r._yMax]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===ze.xl.NumericAxis){var o=(0,ji.Z)(r._points,(function(t){return t.x})),a=(0,Do.Z)(r._points,(function(t){return t.x}));n=(0,Mo.Z)().domain(r._isRtl?[o,a]:[a,o]).nice().range([r.margins.left+r._domainMargin,e-r.margins.right-r._barWidth-r._domainMargin])}else if(r._xAxisType===ze.xl.DateAxis){var s=(0,Do.Z)(r._points,(function(t){return t.x})),l=(0,ji.Z)(r._points,(function(t){return t.x}));n=(0,Po.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,e-r.margins.right-r._barWidth/2-r._domainMargin])}else n=(0,Fo.Z)().domain(r._xAxisLabels).range(r._isRtl?[e-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/3);return{xBarScale:n,yBarScale:i}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=r.props,a=o.theme,s=o.useSingleColor,l=r.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(t.forEach((function(t,e){var n=s?r._createColors()(1):t.color,i={title:t.legend,color:n,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(i)})),r._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){r._onLegendClick(c)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(c)},onMouseOutAction:function(){r._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return i.createElement(vr,(0,e.pi)({legends:h,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n,i,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?t.x.toLocaleString():t.x,a=t.legend,s=t.yAxisCalloutData||t.y,l=r.props.lineLegendText||"Line",c=(null===(e=t.lineData)||void 0===e?void 0:e.yAxisCalloutData)||(null===(n=t.lineData)||void 0===n?void 0:n.y);return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(o,". ")+(a?"".concat(a,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},r._getDomainMargins=function(t){if(r._xAxisType===ze.xl.StringAxis){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*i;r._domainMargin=8,n>=o?r._domainMargin+=(n-o)/2:i=n/(3*r._xAxisLabels.length-2),r._barWidth=i}return(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},r._isHavingLine=r._checkForLine(),r._calloutId=f("callout"),r._tooltipId=f("VCTooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].x,!0):ze.xl.StringAxis,r._domainMargin=8,r._emptyChartId=f("_VBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max((0,ji.Z)(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=No(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,e.pi)((0,e.pi)((0,e.pi)((0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),(0,ze.ey)(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:this._points,chartType:ze.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:o},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Re.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==ze.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),t._isHavingLine&&i.createElement("g",null,t._createLine(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine()},n.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(e*i*this._yMax);return(0,Mo.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForLineAndBar(t),i=r.YValueHover,o=r.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||e,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,s=this._getScales(t,e),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=No(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var s,d=Math.max(c(e.y),0);if(d<=0)return i.createElement(i.Fragment,{key:e.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(e.x),p=t-r.margins.bottom-s;return i.createElement("g",{key:e.x},i.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(h,p,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,pi.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,ze.$V)(p)}return d},n.prototype._createStringBars=function(t,e,n){var r=this,o=this._getScales(t,e),a=o.xBarScale,s=o.yBarScale,l=this._createColors(),c=this._points.map((function(e,n){var o,c=Math.max(s(e.y),0);if(c<=0)return i.createElement(i.Fragment,{key:e.x instanceof Date?e.x.getTime():e.x}," ");o=c<=Math.ceil(s(r._yMax)/100)?Math.ceil(s(r._yMax)/100):c;var u=a(e.x),d=t-r.margins.bottom-o;return i.createElement("g",{key:e.x instanceof Date?e.x.getTime():e.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},i.createElement("rect",{id:f("_VBC_bar_"),x:u,y:d,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(e),role:"img",ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,l(e.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,e,n,l(e.y)),fill:e.color?e.color:l(e.y)}),r._renderBarLabel(u,d,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=(0,pi.Ys)(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&(0,ze.$V)(d)}return c},n.prototype._createDateBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,s=this._getScales(t,e),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=No(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var s,d=Math.max(c(e.y),0);if(d<=0)return i.createElement(i.Fragment,{key:e.x instanceof Date?e.x.getTime():e.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(e.x)-r._barWidth/2,p=t-r.margins.bottom-s;return i.createElement("g",{key:e.x instanceof Date?e.x.getTime():e.x},i.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(h,p,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,pi.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,ze.$V)(p)}return d},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._renderBarLabel=function(t,e,n,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(r)&&!this._noLegendHighlighted()?null:i.createElement("text",{x:t+this._barWidth/2,y:e-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(n))},n.prototype._isChartEmpty=function(){return 0===this._points.length||(0,ji.Z)(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},n}(i.Component),Oo=(0,t.z)(Vo,(function(t){var n=t.shouldHighlight,r=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,e.pi)((0,e.pi)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}}})),Ho=(0,o.y)();!function(t){t.show="visibility",t.hide="hidden"}(Io||(Io={}));var Bo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._toFocusWholeStack=function(t){var e=r.props.isCalloutForStack,n=void 0!==e&&e;return t?""===r.state.selectedLegend:n},r._getFormattedLineData=function(t){var n=[],r={};return t.forEach((function(t,r){t.lineData&&t.lineData.forEach((function(i){n.push((0,e.pi)((0,e.pi)({},i),{index:r,xItem:t}))}))})),n.forEach((function(t){r[t.legend]?r[t.legend].push(t):r[t.legend]=[t]})),r},r._getLineLegends=function(t){var e=r._lineObject,n=[];return Object.keys(e).forEach((function(t){n.push({title:t,color:e[t][0].color})})),n},r._createLines=function(t,n,o,a,s){var l,c=r._xAxisType===ze.xl.NumericAxis,u=r._xAxisType===ze.xl.DateAxis,d=r._getScales(o,a).xBarScale,h=r._getFormattedLineData(r.props.data),p=[],f=[],g=[],m=r.props.theme,v=(null===(l=r.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0,_=c||u?0:d.bandwidth()/2;return Object.keys(h).forEach((function(o,a){for(var l=r._legendHighlighted(o)||r._noLegendHighlighted(),u=1;u<h[o].length;u++){var g=c?t(h[o][u-1].xItem.xAxisPoint):d(h[o][u-1].xItem.xAxisPoint),y=h[o][u-1].useSecondaryYScale&&h[o][u].useSecondaryYScale&&s,x=y?s(h[o][u-1].y):n(h[o][u-1].y),b=c?t(h[o][u].xItem.xAxisPoint):d(h[o][u].xItem.xAxisPoint),C=y?s(h[o][u].y):n(h[o][u].y);v>0&&f.push(i.createElement("line",{key:"".concat(a,"-").concat(u,"-BorderLine"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:m.palette.white,transform:"translate(".concat(_,", 0)")})),p.push(i.createElement("line",(0,e.pi)({key:"".concat(a,"-").concat(u,"-line"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:h[o][u].color,transform:"translate(".concat(_,", 0)")},r.state.selectedLegend===o&&{onMouseOver:r._lineHover.bind(r,h[o][u-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(h).forEach((function(o,a){h[o].forEach((function(l,u){g.push(i.createElement("circle",(0,e.pi)({key:"".concat(a,"-").concat(u,"-dot"),cx:c?t(l.xItem.xAxisPoint):d(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&s?s(l.y):n(l.y),onMouseOver:r.state.selectedLegend===o?r._lineHover.bind(r,l):r._onStackHover.bind(r,l.xItem)},r.state.selectedLegend===o&&{onMouseLeave:r._lineHoverOut},{r:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:r.props.theme.palette.white,strokeWidth:3,visibility:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(_,", 0)")})))}))})),i.createElement(i.Fragment,null,f,p,g)},r._getCircleVisibilityAndRadius=function(t,e){var n=r.state,i=n.selectedLegend,o=n.activeXAxisDataPoint;return""!==i?t===o&&i===e?{visibility:Io.show,radius:8}:i===e?{visibility:Io.show,radius:.3}:{visibility:Io.hide,radius:0}:{visibility:o===t?Io.show:Io.hide,radius:8}},r._getMargins=function(t){r.margins=t},r._getCustomizedCallout=function(){var t=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!t?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(t,e){e.persist(),r.setState({refSelected:e,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},r._lineHoverOut=function(){r.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},r._handleMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},r._createBar=function(t,n,o,a){var s=r.props,l=s.barCornerRadius,c=void 0===l?0:l,u=s.barMinimumHeight,d=void 0===u?0:u,h=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),p=r._toFocusWholeStack(h),f=r._points.map((function(a,s){var l=o-r.margins.bottom,u=t((r._xAxisType===ze.xl.NumericAxis||(r._xAxisType,ze.xl.DateAxis),a.xAxisPoint)),h=r._xAxisType===ze.xl.NumericAxis?0:r._xAxisType===ze.xl.DateAxis?-r._barWidth/2:(t.bandwidth()-r._barWidth)/2,f=0,g=a.chartData.filter((function(t){return t.data>0}));if(g.length){var m=r._getBarGapAndScale(g,n),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(t,n){var o=t.color?t.color:r._colors[n],m={},y=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Ho(r.props.styles,{theme:r.props.theme,shouldHighlight:y,href:r.props.href});var x=!p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a,t),onMouseOver:r._onRectHover.bind(r,a.xAxisPoint,t,o),onMouseMove:r._onRectHover.bind(r,a.xAxisPoint,t,o),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,t,a.xAxisPoint,o,m),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,t),role:"img"},b=_*t.data;return b<Math.max(_*Math.ceil(r._yMax/100),d)&&(b=Math.max(_*Math.ceil(r._yMax/100),d)),l=l-b-(n?v:0),f+=t.data,c&&b>c&&n===g.length-1?i.createElement("path",(0,e.pi)({key:n+s+"".concat(p),className:r._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(r._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-r._barWidth,"\n z\n "),fill:o,ref:function(t){return m.refElement=t},transform:"translate(".concat(h,", 0)")},x)):b<0?i.createElement(i.Fragment,{key:n+s}," "):i.createElement("rect",(0,e.pi)({key:n+s,className:r._classNames.opacityChangeOnHover,x:u,y:l,width:r._barWidth,height:b,fill:o,ref:function(t){return m.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a),onMouseOver:r._onStackHover.bind(r,a),onMouseMove:r._onStackHover.bind(r,a),onMouseLeave:r._handleMouseOut,onFocus:r._onStackFocus.bind(r,a,x),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,a),role:"img"},C=!1,E=0;return r.props.hideLabels||(r._noLegendHighlighted()?(C=!0,E=f):g.forEach((function(t){r._legendHighlighted(t.legend)&&(C=!0,E+=t.data)}))),i.createElement("g",{key:s+"".concat(p)},i.createElement("g",(0,e.pi)({id:"".concat(s,"-singleBar"),ref:function(t){return x.refElement=t}},b),y),!r.props.hideLabels&&r._barWidth>=16&&C&&i.createElement("text",{x:u+r._barWidth/2,y:l-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-label":"Total: ".concat(E),role:"img",transform:"translate(".concat(h,", 0)")},(0,ze.cE)(E)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var g=(0,pi.Ys)(a).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var m={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:g};g&&(0,ze.$V)(m)}return f.filter((function(t){return!!t}))},r._getScales=function(t,e){var n=r._yMax,i=(0,Mo.Z)().domain([0,n]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===ze.xl.NumericAxis){var o=(0,ji.Z)(r._dataset,(function(t){return t.x})),a=(0,Do.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[o,a]:[a,o]).nice().range([r.margins.left+r._domainMargin,e-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:i}}if(r._xAxisType===ze.xl.DateAxis){var s=(0,Do.Z)(r._dataset,(function(t){return t.x})),l=(0,ji.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Po.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,e-r.margins.right-r._barWidth/2-r._domainMargin]),yBarScale:i}}return{xBarScale:(0,Fo.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:i}},r._getGraphData=function(t,e,n,i,o){var a=r._getScales(n,i),s=a.xBarScale,l=a.yBarScale;return r._bars=r._createBar(s,l,n,o)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,e){var n,r,i;if(!e){var o=t.xAxisCalloutData||t.xAxisPoint,a=t.chartData.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data;return"".concat(e,", ").concat(n,".")})).join(" "),s=null===(n=t.lineData)||void 0===n?void 0:n.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data||t.y;return"".concat(e,", ").concat(n,".")})).join(" ");return(null===(r=t.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ").concat(a)+(s?" ".concat(s):"")}var l=t.xAxisCalloutData||e.xAxisCalloutData||t.xAxisPoint,c=e.legend,u=e.yAxisCalloutData||e.data;return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},r._getDomainMargins=function(t){if(r._xAxisType!==ze.xl.NumericAxis){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*i;r._domainMargin=8,n>=o?r._domainMargin+=(n-o)/2:i=n/(3*r._xAxisLabels.length-2),r._barWidth=i}return(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},r._handleMouseOut=r._handleMouseOut.bind(r),r._calloutId=f("callout"),r._tooltipId=f("VSBCTooltipId_"),r._isChartEmpty()&&(r._adjustProps(),r._dataset=r._createDataSetLayer()),r._createLegendsForLine=(0,ue.NF)((function(t){return r._getLineLegends(t)})),r._domainMargin=8,r._emptyChartId=f("_VSBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),r=this._toFocusWholeStack(n),o=this.props.isCalloutForStack,a=void 0!==o&&o;this._dataset=this._createDataSetLayer();var s=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Ho(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=(0,e.pi)((0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,ze.ey)(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Ti,(0,e.pi)({},this.props,{points:this._dataset,chartType:ze.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:s,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:a||n?Re.horizontal:Re.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==ze.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),i.createElement("g",null,n&&t._createLines(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=(0,ze.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},n.prototype._createDataSetLayer=function(){var t=[],e=this._points.map((function(e){var n=0;return e.chartData.forEach((function(t){n+=t.data})),t.push(e.xAxisPoint),{x:e.xAxisPoint,y:n}}));return this._xAxisLabels=t,e},n.prototype._renderCallout=function(t){return t?i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getLegendData=function(t,n,r){var o=this;if(this.props.hideLegend)return i.createElement(i.Fragment,null);var a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;t.forEach((function(t){t.chartData.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){o._onLegendClick(t.legend)},hoverAction:c?function(){o._handleChartMouseLeave(),o._onLegendHover(t.legend)}:void 0,onMouseOutAction:c?function(){return o._onLegendLeave()}:void 0};s.push(n)}}))}));var u=[];r&&r.length>0&&r.forEach((function(t){var e={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){o._onLegendClick(t.title)},hoverAction:c?function(){o._handleChartMouseLeave(),o._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return o._onLegendLeave()}:void 0};u.push(e)}));var d=u.concat(s);return i.createElement(vr,(0,e.pi)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._onRectHover=function(t,e,n,r){r.persist(),this._onRectFocusHover(t,e,n,r)},n.prototype._onRectFocusHover=function(t,e,n,r){var i,o;(null===(i=this._calloutAnchorPoint)||void 0===i?void 0:i.chartDataPoint)===e&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:e,xAxisDataPoint:t},this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:n,xCalloutValue:e.xAxisCalloutData?e.xAxisCalloutData:t,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,e){e.persist(),this._onStackHoverFocus(t,e)},n.prototype._onStackHoverFocus=function(t,n){var r=t.lineData,i=void 0!==r&&r.length>0;i&&r.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:!0,YValueHover:i?(0,e.ev)((0,e.ev)([],r.sort((function(t,e){return t.data<e.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?t.xAxisPoint.toLocaleDateString():t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,e,n,r){r.refElement&&this._onRectFocusHover(e,t,n,r.refElement)},n.prototype._onStackFocus=function(t,e){e.refElement&&this._onStackHoverFocus(t,e.refElement)},n.prototype._onClick=function(t,e){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,e,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,e,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=t.reduce((function(t,e){return t+e.data}),0),a=null!=n?n:e(o),s=i&&t.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},n}(i.Component),Ro=(0,t.z)(Bo,(function(t){var n=t.shouldHighlight,r=t.href,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:r?"pointer":"default"},tooltip:(0,e.pi)((0,e.pi)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:i.palette.neutralPrimary}}})),zo=(0,o.y)(),Wo=.1/.9,Yo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getGraphData=function(t,e,n,i,o){var a=r._createX0Scale(i),s=r._createX1Scale(),l=[];r._datasetForBars.forEach((function(t){l.push(r._buildGraph(t,a,s,n,o))})),r._groupedVerticalBarGraph=l},r._getMargins=function(t){return r.margins=t},r._createDataSetOfGVBC=function(t){var e=[],n=t.map((function(t){return t.name}));t[0].series.forEach((function(t){e.push(t.key)}));var i=r._createDataset(t);return{keys:e,xAxisLabels:n,datasetForBars:i}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(t,e,n){n.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({refSelected:n,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(t,e,n){r._refArray.forEach((function(i,o){i.index===t.legend&&n===o&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData})}))},r._redirectToUrl=function(t){t&&(window.location.href=t)},r._buildGraph=function(t,e,n,o,a){var s=[],l=[],c=(0,Mo.Z)().domain([0,r._yMax]).range([0,o-r.margins.bottom-r.margins.top]),u=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(u.forEach((function(e,a){var d=t.indexNum*u.length+a,h=t[e],p=n(e)+(n.bandwidth()-r._barWidth)/2,f=Math.max(o-r.margins.bottom-c(h.data),0);h.data&&s.push(i.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:r._barWidth,x:p,y:f,"data-is-focusable":!r.props.hideTooltip,opacity:r._getOpacity(h.legend),ref:function(t){r._refCallback(t,h.legend,d)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,t),onMouseMove:r._onBarHover.bind(r,h,t),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,t,d),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&(r._legendHighlighted(h.legend)||r._noLegendHighlighted())&&l.push(i.createElement("text",{x:p+r._barWidth/2,y:f-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var d=(0,pi.Ys)(a).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:d};d&&(0,ze.$V)(h)}return i.createElement("g",{key:t.indexNum,transform:"translate(".concat(e(t.xAxisPoint)+(e.bandwidth()-r._groupWidth)/2,", 0)")},s,l)},r._createDataset=function(t){var n=[],i=[];return t.forEach((function(t,r){var o={},a={},s=[];t.series.forEach((function(t){o[t.key]=t.data,a[t.key]=(0,e.pi)({},t),s.push(t)})),a.xAxisPoint=t.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(a),i.push(o)})),r._dataset=i,n},r._createX0Scale=function(t){return(0,Fo.Z)().domain(r._xAxisLabels).range(r._isRtl?[t-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/(2+r._keys.length+(r._keys.length-1)*Wo))},r._createX1Scale=function(){return(0,Fo.Z)().domain(r._keys).range(r._isRtl?[r._groupWidth,0]:[0,r._groupWidth]).paddingInner(.1)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=t,a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[];return o.forEach((function(t){t.series.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};s.push(n)}}))})),i.createElement(vr,(0,e.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,e){var n,r=t.xAxisCalloutData||e,i=t.legend,o=t.yAxisCalloutData||t.data;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(i,", ").concat(o,".")},r._getDomainMargins=function(t){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barwidth||16,24),o=r._keys.length*i+(r._keys.length-1)*Wo*i,a=r._xAxisLabels.length*o+2*(r._xAxisLabels.length-1)*i;return r._domainMargin=8,n>=a?r._domainMargin+=(n-a)/2:i=(o=n/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*Wo))))/(r._keys.length+(r._keys.length-1)*Wo),r._barWidth=i,r._groupWidth=o,(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,ue.NF)((function(t){return r._createDataSetOfGVBC(t)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},r._refArray=[],r._calloutId=f("callout"),r._tooltipId=f("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=f("_GVBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,n=this.props.data,r=this._createSet(n),o=r.keys,a=r.xAxisLabels,s=r.datasetForBars;this._keys=o,this._xAxisLabels=a,this._datasetForBars=s,this._xAxisType=(0,ze.SY)(n[0].name,!0);var l=this._getLegendData(n,this.props.theme.palette),c=(0,ji.Z)(this._dataset,(function(e){return(0,ji.Z)(t._keys,(function(t){return e[t]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=zo(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=(0,e.pi)((0,e.pi)((0,e.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:this._datasetForBars,chartType:ze.$X.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Re.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*Wo),xAxisOuterPadding:0,children:function(){return i.createElement("g",null,t._groupedVerticalBarGraph)}}))},n.prototype._refCallback=function(t,e,n){this._refArray[n]={index:e,refElement:t}},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},n}(i.Component),Zo=(0,t.z)(Yo,(function(t){var n=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,e.pi)((0,e.pi)({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:n.palette.neutralPrimary}}})),qo=n(1286),Xo=n(731),Uo=(0,o.y)(),jo=function(t){function n(n){var r=t.call(this,n)||this;return r._rectRefArray={},r._getXandY=function(){var t="",e="";return r.props.data.forEach((function(n){if(n.data&&n.data.length>0)return t=n.data[0].x,e=n.data[0].y,{x:t,y:e}})),{x:t,y:e}},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,e,n){r._rectRefArray[e]={data:n,refElement:t}},r._onRectFocus=function(t,e){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:r._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData})},r._onRectMouseOver=function(t,e,n){n.persist(),r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:r._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(e,n){r._dataSet[e].forEach((function(e,o){var a="x".concat(n,"y").concat(o),s=i.createElement("g",{key:a,role:"img","aria-label":r._getAriaLabel(e),"data-is-focusable":!0,fillOpacity:r._getOpacity(e.legend),transform:"translate(".concat(r._xAxisScale(e.x),", ").concat(r._yAxisScale(e.y),")"),ref:function(t){r._rectRefCallback(t,a,e)},onFocus:r._onRectFocus.bind(r,a,e),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,a,e),onMouseOut:r._onRectBlurOrMouseOut},i.createElement("rect",{fill:r._colorScale(e.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:e.onClick}),i.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,ze.Ts)(e.rectText,r.props.culture)));t.push(s)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,o=t.legendProps,a=[];return n.forEach((function(t){var e={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(e)})),i.createElement(vr,(0,e.pi)({},o,{legends:a}))},r._getColorScale=function(){var t=r.props,e=t.domainValuesForColorScale,n=t.rangeValuesForColorScale;return(0,Mo.Z)().domain(e).range(n)},r._getXIndex=function(t){return r._xAxisType===ze.xl.DateAxis?"".concat(t.getTime()):r._xAxisType===ze.xl.StringAxis?t:r._xAxisType===ze.xl.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===ze.OH.DateAxis?"".concat(t.getTime()):r._yAxisType===ze.OH.StringAxis?t:r._yAxisType===ze.OH.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,o,a){var s=[];t.forEach((function(t){t.data.forEach((function(n){s.push((0,e.pi)((0,e.pi)({},n),{legend:t.legend}))}))}));var l={},c={},u={};return s.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);u[n]="1",c[i]="1",l[i]?l[i]=(0,e.ev)((0,e.ev)([],l[i],!0),[t],!1):l[i]=[t]})),Object.keys(l).forEach((function(t){l[t].sort((function(t,e){return r._xAxisType===ze.xl.StringAxis?t.x.toLowerCase()>e.x.toLowerCase()?1:-1:r._xAxisType===ze.xl.DateAxis?t.x.getTime()-e.x.getTime():r._xAxisType===ze.xl.NumericAxis?+t.x>+e.x?1:-1:t.x>e.x?1:-1})).forEach((function(t){r._xAxisType===ze.xl.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===ze.xl.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===ze.xl.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===ze.OH.DateAxis&&(t.y=r._getStringFormattedDate(t.y,o)),r._yAxisType===ze.OH.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===ze.OH.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(l).forEach((function(t){r._yAxisType===ze.OH.DateAxis?l[r._getStringFormattedDate(t,o)]=l[t]:r._yAxisType===ze.OH.NumericAxis?l["".concat(r._getStringFormattedNumber(t,a))]=l[t]:l[r._getFormattedLabelForYAxisDataPoint(t)]=l[t]})),{dataSet:l,yAxisPoints:r._getYAxisDataPoints(c),xAxisPoints:r._getXAxisDataPoints(u)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return r._xAxisType===ze.xl.DateAxis||r._xAxisType===ze.xl.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===ze.xl.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===ze.xl.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return r._yAxisType===ze.OH.DateAxis||r._yAxisType===ze.OH.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===ze.OH.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===ze.OH.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,e){var n=new Date;return n.setTime(+t),(0,Xo.i$)(e||"%b/%d")(n)},r._getStringFormattedNumber=function(t,e){return(0,Kr.WU)(e||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var e=r.props.xAxisStringFormatter;return e?e(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var e=r.props.yAxisStringFormatter;return e?e(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n=t.x,r=t.y,i=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,a=t.descriptionMessage;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(i,", ").concat(o,".")+(a?" ".concat(a,"."):"")},r._createSet=(0,ue.NF)((function(t,e,n,i,o){return r._createNewDataSet(t,e,n,i,o)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=f("_HeatMap_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,n=this._getXandY(),r=n.x,o=n.y;this._xAxisType=(0,ze.SY)(r,!0),this._yAxisType=(0,ze.SY)(o,!1);var a=this.props,s=a.data,l=a.xAxisDateFormatString,c=a.xAxisNumberFormatString,u=a.yAxisDateFormatString,d=a.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(s,l,c,u,d),p=h.dataSet,f=h.xAxisPoints,g=h.yAxisPoints;this._dataSet=p,this._stringYAxisDataPoints=g,this._stringXAxisDataPoints=f,this._classNames=Uo(this.props.styles,{theme:this.props.theme});var m=(0,e.pi)((0,e.pi)((0,e.pi)((0,e.pi)({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:_.topAutoEdge,onDismiss:this._closeCallout}),(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),v=(0,e.pi)((0,e.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:s,chartType:ze.$X.HeatMapChart,xAxisType:ze.xl.StringAxis,yAxisType:ze.OH.StringAxis,calloutProps:m,chartHoverProps:v,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Re.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,t._createRectangles()}}))},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(i.Component),Go=(0,t.z)(jo,(function(t){var e=t.theme;return{root:{},text:[e.fonts.medium,{pointerEvents:"none",fill:e.palette.white,fontWeight:Yt.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function Ko(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function $o(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Jo(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Qo(t,e){return e-1-t.height}function ta(t,e){return t.sourceLinks.length?t.depth:e-1}function ea(t){return function(){return t}}function na(t,e){return ia(t.source,e.source)||t.index-e.index}function ra(t,e){return ia(t.target,e.target)||t.index-e.index}function ia(t,e){return t.y0-e.y0}function oa(t){return t.value}function aa(t){return t.index}function sa(t){return t.nodes}function la(t){return t.links}function ca(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function ua({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}class da{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ha(t){return new da(t,!0)}var pa=(0,o.y)(),fa="#757575",ga=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}],ma="#323130",va="#FFFFFF",_a=function(t){function n(e){var n=t.call(this,e)||this;return n._isRtl=(0,a.zg)(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(t){var e=n.state;return e.selectedState?e.selectedState&&e.selectedNodes.has(t.index)&&e.selectedNode?e.selectedNode.color:e.selectedState&&!e.selectedNode?t.color:void 0:t.color},n._fillNodeBorder=function(t){var e=n.state;return e.selectedState?e.selectedState&&e.selectedNodes.has(t.index)&&e.selectedNode?e.selectedNode.borderColor:(e.selectedState&&e.selectedNodes.has(t.index),t.borderColor):t.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=f("callout"),n._linkId=f("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=(0,ue.NF)((function(t){return n._normalizeSankeyData(t)})),n._emptyChartId=f("_SankeyChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t,n=this;if(!this._isChartEmpty()){var r,o=this.props,a=o.theme,s=o.className,l=o.styles,c=o.pathColor,u=this.state,d=pa(l,{theme:a,width:u.containerWidth,height:u.containerHeight,pathColor:c,className:s}),h=this._preRenderLayout(),p=h.height,g=h.width,m=this.props.data.SankeyChartData;this._normalizeData(m),r=this._adjustPadding(this._sankey,p-6,this._nodesInColumn),this._sankey.nodePadding(r),this._sankey(m),(t=m).links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=t.value)})),t.nodes.forEach((function(t){t.actualValue=Math.max(Ko(t.sourceLinks,(function(t){return t.unnormalizedValue})),Ko(t.targetLinks,(function(t){return t.unnormalizedValue})))})),this._assignNodeColors();var v=this._createNodes(d),y=this._createLinks(),x={isCalloutVisible:u.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:u.refSelected,color:u.color,XValue:u.xCalloutValue,YValue:u.yCalloutValue?u.yCalloutValue:u.dataForHoverCard,descriptionMessage:u.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:d.calloutContentRoot,preventDismissOnLostFocus:!0};return i.createElement("div",{className:d.root,role:"presentation",ref:function(t){return n.chartContainer=t},onMouseLeave:this._onCloseCallout},i.createElement(dn,{direction:Re.bidirectional,isCircularNavigation:!0,handleTabKey:1},i.createElement("svg",{width:g,height:p,id:f("sankeyChart")},i.createElement("g",{className:d.links,strokeOpacity:1},y),i.createElement("g",{className:d.nodes},v),x.isCalloutVisible&&i.createElement(Be,(0,e.pi)({},x),i.createElement(We.ChartHoverCard,{XValue:x.XValue,YValue:x.YValue,color:x.color,descriptionMessage:x.descriptionMessage?x.descriptionMessage:""})))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._preRenderLayout=function(){var t=this.state,e=t.containerHeight,n=t.containerWidth,r=this._margins,i=r.left,o=r.right,a=r.top,s=r.bottom,l=n-o,c=e-s>0?e-s:0;return this._sankey=function(){let t,e,n,r=0,i=0,o=1,a=1,s=24,l=8,c=aa,u=ta,d=sa,h=la,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const r=new Map(t.map(((e,n)=>[c(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:i}=n;"object"!=typeof e&&(e=n.source=ca(r,e)),"object"!=typeof i&&(i=n.target=ca(r,i)),e.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:r}of t)e.sort(n),r.sort(n)}(f),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max($o(e.sourceLinks,oa),$o(e.targetLinks,oa)):e.fixedValue}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){for(const t of n){t.depth=i;for(const{target:e}of t.sourceLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){for(const t of n){t.height=i;for(const{source:e}of t.targetLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:t}){const n=Jo(t,(t=>t.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(u.call(null,e,n))));e.layer=t,e.x0=r+t*i,e.x1=e.x0+s,a[t]?a[t].push(e):a[t]=[e]}if(e)for(const t of a)t.sort(e);return a}(n);t=Math.min(l,(a-i)/(Jo(c,(t=>t.length))-1)),function(e){const n=function(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}(e,(e=>(a-i-(e.length-1)*t)/$o(e,oa)));for(const r of e){let e=i;for(const i of r){i.y0=e,i.y1=e+i.value*n,e=i.y1+t;for(const t of i.sourceLinks)t.width=t.value*n}e=(a-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}b(r)}}(c);for(let t=0;t<p;++t){const e=Math.pow(.99,t),n=Math.max(1-e,(t+1)/p);m(c,e,n),g(c,e,n)}}(f),ua(f),f}function g(t,n,r){for(let i=1,o=t.length;i<o;++i){const o=t[i];for(const t of o){let e=0,r=0;for(const{source:n,value:i}of t.targetLinks){let o=i*(t.layer-n.layer);e+=C(n,t)*o,r+=o}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,x(t)}void 0===e&&o.sort(ia),v(o,r)}}function m(t,n,r){for(let i=t.length-2;i>=0;--i){const o=t[i];for(const t of o){let e=0,r=0;for(const{target:n,value:i}of t.sourceLinks){let o=i*(n.layer-t.layer);e+=E(t,n)*o,r+=o}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,x(t)}void 0===e&&o.sort(ia),v(o,r)}}function v(e,n){const r=e.length>>1,o=e[r];y(e,o.y0-t,r-1,n),_(e,o.y1+t,r+1,n),y(e,a,e.length-1,n),_(e,i,0,n)}function _(e,n,r,i){for(;r<e.length;++r){const o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function y(e,n,r,i){for(;r>=0;--r){const o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function x({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(ra);for(const{target:{targetLinks:e}}of t)e.sort(na)}}function b(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(ra),n.sort(na)}function C(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:i,width:o}of e.sourceLinks){if(i===n)break;r+=o+t}for(const{source:t,width:i}of n.targetLinks){if(t===e)break;r-=i}return r}function E(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:i,width:o}of n.targetLinks){if(i===e)break;r+=o+t}for(const{target:t,width:i}of e.sourceLinks){if(t===n)break;r-=i}return r}return f.update=function(t){return ua(t),t},f.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:ea(t),f):c},f.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:ea(t),f):u},f.nodeSort=function(t){return arguments.length?(e=t,f):e},f.nodeWidth=function(t){return arguments.length?(s=+t,f):s},f.nodePadding=function(e){return arguments.length?(l=t=+e,f):l},f.nodes=function(t){return arguments.length?(d="function"==typeof t?t:ea(t),f):d},f.links=function(t){return arguments.length?(h="function"==typeof t?t:ea(t),f):h},f.linkSort=function(t){return arguments.length?(n=t,f):n},f.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],f):[o-r,a-i]},f.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],i=+t[0][1],a=+t[1][1],f):[[r,i],[o,a]]},f.iterations=function(t){return arguments.length?(p=+t,f):p},f}().nodeWidth(124).extent([[i,a],[l-1,c-6]]).nodeAlign(this._isRtl?Qo:ta),{height:c,width:l}},n.prototype._normalizeSankeyData=function(t){var e;e=this._nodesInColumn=function(t,e){e(t);var n={};return t.nodes.forEach((function(t){var e=t.layer;n[e]?n[e].push(t):n[e]=[t]})),n}(t,this._sankey),Object.values(e).map((function(t){return Ko(t,(function(t){return t.value}))})).forEach((function(t,n){var r=0;e[n].forEach((function(e){var n=e.value/t*100;e.actualValue=e.value,n<1?(e.value=.01*t,r+=1):r+=n}));var i=0!==r?r/100:1;i>1&&e[n].forEach((function(t){t.value=t.value/i,function(t,e,n){t.sourceLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r})),t.targetLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r}))}(t,t.actualValue,t.value)}))}))},n.prototype._adjustPadding=function(t,e,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(t){var n=.3*e;n<e-Ko(t,(function(t){return t.y1-t.y0}))&&(r=Math.min(r,n/(t.length-1)))})),r},n.prototype._createLinks=function(){var t=this,e=[],n=this.props.data.SankeyChartData;if(n){var r=this._linkId;n.links.forEach((function(n,o){var a,s=[{x:(a=n).source.x1,y0:a.y0+a.width/2,y1:a.y0-a.width/2},{x:a.target.x0,y0:a.y1+a.width/2,y1:a.y1-a.width/2}],l=Qi().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve(ha),c="url(#gradient-".concat(r,"-").concat(o,")"),u=i.createElement("g",{key:"".concat(r,"-").concat(o)},i.createElement("defs",null,i.createElement("linearGradient",{id:"gradient-".concat(r,"-").concat(o),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.createElement("stop",{offset:"0",stopColor:n.source.color}),i.createElement("stop",{offset:"100%",stopColor:n.target.color}))),i.createElement("path",{d:l(s),id:f("link"),fill:t._fillStreamColors(n,c),stroke:t._fillStreamBorder(n,c),strokeWidth:"2",strokeOpacity:t._getOpacityStreamBorder(n),onMouseOver:t._onStreamHover.bind(t,n),onMouseOut:function(){t._onStreamLeave(n)},onFocus:t._onFocusLink.bind(t,n),onBlur:t._onBlur,fillOpacity:t._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));e.push(u)}))}return e},n.prototype._createNodes=function(t){var e=this,n=[],r=this.props.data.SankeyChartData;if(r){var o=this.state;return r.nodes.forEach((function(r,a){var s=r.y1-r.y0>0?r.y1-r.y0:0,l=8,c=0;if(s<36){l+=6;var u=(0,pi.Ys)(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);u.text(r.actualValue),null!==u.node()&&(l+=c=u.node().getComputedTextLength()),u.text(null),(0,pi.td)(".tempText").remove()}var d=e._truncateText(r.name,116,l),h="..."===d.slice(-3),p=f("tooltip"),g=(0,pi.Ys)("body").append("div").attr("id",p).attr("class",t.toolTip).style("opacity",0),m=f("nodeBar"),v=i.createElement("g",{key:a,id:f("nodeGElement")},i.createElement("rect",{x:r.x0,y:r.y0,height:s,width:r.x1-r.x0,fill:e._fillNodeColors(r),id:m,onMouseOver:e._onHover.bind(e,r),onMouseOut:function(){e._onLeave(r)},onFocus:e._onCloseCallout.bind(e),stroke:e._fillNodeBorder(r),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(r.name)+"with weight"+"".concat(r.actualValue),role:"img"}),r.y1-r.y0>24&&i.createElement("g",{className:t.nodeTextContainer},i.createElement("g",{className:"nodeName"},i.createElement("text",{id:"".concat(m,"-name"),x:r.x0,y:r.y0,dy:"1.2em",dx:"0.4em",textAnchor:e._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?va:ma,fontSize:10,onMouseOver:e._showTooltip.bind(e,r.name,h,g),onMouseOut:e._hideTooltip.bind(e,g)},d)),i.createElement("text",{x:s>36?r.x0:r.x1-c-8,y:r.y0,dy:s>36?"2em":"1em",dx:s>36?"0.4em":"0em",textAnchor:e._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?va:ma,fontSize:14},r.actualValue)));n.push(v)})),n}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(t){var e=new Array,n=new Set;for(t.sourceLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;)(r=e.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(t){n.add(t),e.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;){var r;(r=e.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(t){n.add(t),e.push(t)}))}return n}(t),r=function(t){var e=[];return t.forEach((function(t){e.push(t.target),-1===e.indexOf(t.source)&&e.push(t.source)})),e}(n);r.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(n).map((function(t){return t.index}))),selectedNode:t,refSelected:e,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:t.actualValue})}},n.prototype._onStreamHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(t){var e=new Array,n=new Set,r=new Set;for(e.push(t.source),n.add(t);e.length>0;){var i=e.shift();r.add(i),i.targetLinks&&i.targetLinks.length>0&&i.targetLinks.forEach((function(t){e.push(t.source),n.add(t)}))}for(e.push(t.target);e.length>0;)i=e.shift(),r.add(i),i.sourceLinks&&i.sourceLinks.length>0&&i.sourceLinks.forEach((function(t){e.push(t.target),n.add(t)}));return{selectedLinks:n,selectedNodes:r}}(t),r=n.selectedLinks,i=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(i).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:e,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.unnormalizedValue.toString(),descriptionMessage:"from "+t.source.name})}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,e){e.persist(),this._onCloseCallout(),this.setState({refSelected:e.currentTarget,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.source.actualValue,descriptionMessage:"from "+t.source.name})},n.prototype._assignNodeColors=function(){var t,e,n=this.props,r=n.colorsForNodes,i=n.borderColorsForNodes;r&&i?(t=r,e=i):(t=ga.map((function(t){return t.fillColor})),e=ga.map((function(t){return t.borderColor})));var o=0;this.props.data.SankeyChartData.nodes.forEach((function(n){n.color||n.borderColor?n.color&&!n.borderColor?n.borderColor="#757575":n.borderColor&&!n.color&&(n.color="#F5F5F5"):(n.color=t[o],n.borderColor=e[o]),o=(o+1)%t.length}))},n.prototype._fillStreamColors=function(t,e){var n=this.state;return n.selectedState&&n.selectedLinks.has(t.index)&&n.selectedNode?n.selectedNode.color:n.selectedState&&n.selectedLinks.has(t.index)?e:void 0},n.prototype._fillStreamBorder=function(t,e){var n=this.state;return n.selectedState?n.selectedState&&n.selectedLinks.has(t.index)&&n.selectedNode?n.selectedNode.borderColor:n.selectedState&&n.selectedLinks.has(t.index)?e:fa:fa},n.prototype._getOpacityStream=function(t){var e=this.state;if(e.selectedState){if(!e.selectedLinks.has(t.index))return 1;if(e.selectedLinks.has(t.index)&&!e.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var e=this.state;return!e.selectedState||e.selectedLinks.has(t.index)||e.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e=t.props.parentRef?t.props.parentRef:t.chartContainer,i=e&&e.getBoundingClientRect().width,o=e&&e.getBoundingClientRect().height;(n!==i||r!==o)&&t.setState({containerWidth:i,containerHeight:o})}))},n.prototype._truncateText=function(t,e,n){var r=e-n,i=0,o=(0,pi.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(t),null!==o.node()&&o.node().getComputedTextLength()<=r)return t;o.text(null),o.text("..."),null!==o.node()&&(i=o.node().getComputedTextLength()),o.text(null);for(var a="",s=0;s<t.length;s++)if(a+=t[s],o.text(a),null!==o.node()&&o.node().getComputedTextLength()>=r-i){a=a.slice(0,-1),a+="...";break}return o.text(null),(0,pi.td)(".tempText").remove(),a},n.prototype._showTooltip=function(t,e,n,r){e&&(n.style("opacity",.9),n.html(t).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,e=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(e&&e.nodes.length>0&&e.links.length>0)},n}(i.Component),ya=(0,t.z)(_a,(function(t){var n,r,i,o=t.className,a=t.theme,s=t.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Yt.$v]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(r={},r[Yt.$v]={fill:"#000000"},r)},toolTip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(i={},i[Yt.$v]={fill:"rgb(179, 179, 179)"},i)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function xa(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ba(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Ea)):void 0===e&&(e=Ca);for(var n,r,i,o,a,s=new La(t),l=[s];n=l.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new La(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Aa)}function Ca(t){return t.children}function Ea(t){return Array.isArray(t)?t[1]:null}function Sa(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Aa(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function La(t){this.data=t,this.depth=this.height=0,this.parent=null}function ka(t,e){return t.parent===e.parent?1:2}function Ta(t){var e=t.children;return e?e[0]:t.t}function wa(t){var e=t.children;return e?e[e.length-1]:t.t}function Da(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Ma(t,e,n){return t.a.parent===e.parent?t.a:n}function Pa(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}La.prototype=ba.prototype={constructor:La,count:function(){return this.eachAfter(xa)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return ba(this).eachBefore(Sa)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}},Pa.prototype=Object.create(La.prototype);var Fa,Ia,Na=(0,o.y)(),Va=function(t){function n(e,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=t.call(this,e,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return(0,e.ZT)(n,t),n.prototype.createTree=function(t,e){var n,r,i,o,a,s,l=(t=t<65?65:t>90?90:t)||75,c=ba(this.treeData,(function(t){return t.children})),u=(null==c?void 0:c.height)+1;(function(){var t=ka,e=1,n=1,r=null;function i(i){var l=function(t){for(var e,n,r,i,o,a=new Pa(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new Pa(r[i],i)),n.parent=e;return(a.parent=new Pa(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var c=i,u=i,d=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>d.depth&&(d=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,f=e/(u.x+h+p),g=n/(d.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,l=o.parent.children[0],c=o.m,u=a.m,d=s.m,h=l.m;s=wa(s),o=Ta(o),s&&o;)l=Ta(l),(a=wa(a)).a=e,(i=s.z+d-o.z-c+t(s._,o._))>0&&(Da(Ma(s,e,r),e,i),c+=i,u+=i),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!wa(a)&&(a.t=s,a.m+=d-u),o&&!Ta(l)&&(l.t=o,l.m+=c-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i})().nodeSize([l,l/1.5]).separation((function(t,e){return t.parent===c&&e.parent===c?3.5:1}))(c).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=e/2}));var d=[],h=0,p=function(t){var e,n;t.id=h,d.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(e=t.data)||void 0===e?void 0:e.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(n=t.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(t){p(t)})):c.eachBefore((function(t){p(t)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){var C=(f-m)/2,E=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var S=null===(n=d[x.parentID])||void 0===n?void 0:n.children,A=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,L=(null===(i=d[x.parentID])||void 0===i?void 0:i.x)+C/2+10,k=null===(o=d[x.parentID])||void 0===o?void 0:o.x,T=null===(a=S[0])||void 0===a?void 0:a.y,w=0;w<S.length;++w){var D=S[w];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?1===S.length?k:A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m):S.length>2?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m)}}if((x.children||u<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){S=null===(s=d[x.id])||void 0===s?void 0:s.children;var M=(0,Do.Z)(S,(function(t){return t.x})),P=(0,ji.Z)(S,(function(t){return t.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},n}(function(){function t(t,e,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=e,this._nodeElements=n,this._linkElements=r}return t.prototype.truncateText=function(t,e,n,r){var i,o=t.split(/\s+/).reverse(),a="",s=(0,pi.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>e-n){l.pop(),l.push("...");break}return i=l.join(" ")+" ",s.text(null),(0,pi.td)(".tempText").remove(),i},t.prototype.addNodeShapetoSVG=function(t,e,n,r,o,a,s,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(t,"\nsubText ").concat(e," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(i.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:s,key:"".concat(u).concat(this.styleClassNames.rectNode)})),e&&(e=this.truncateText(e,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),t=this.truncateText(t,l,l/4,this.styleClassNames.rectText);var f=r?i.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?i.createElement(i.Fragment,null,i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e),i.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e);e||r||n?this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t,f)):this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t))},t.prototype.createPathLink=function(t,e,n,r,i,o,a,s,l){var c="M".concat(n-o/2,",").concat(r-s," H").concat(l+o/2," M").concat(t,",").concat(r-s,"\n V").concat(e+a+s/2),u="M".concat(t,",").concat(e+a+s/2," V").concat(e+5*s,"\n H").concat(t-o/2," H").concat(t+o/2);return i?u:c},t.prototype.addLinktoSVG=function(t,e,n,r,o,a,s,l,c,u){void 0===u&&(u=0),this._linkElements.push(i.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(e,n,r,o,a,s,l,c,u),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),Oa=function(t){function n(e){var n,r,i,o,a,s=this;return(s=t.call(this,e)||this)._nodeElements=[],s._linkElements=[],s._margin={top:(null===(n=s.props.margins)||void 0===n?void 0:n.top)||30,bottom:(null===(r=s.props.margins)||void 0===r?void 0:r.bottom)||30,left:(null===(i=s.props.margins)||void 0===i?void 0:i.left)||50,right:(null===(o=s.props.margins)||void 0===o?void 0:o.right)||20},s._width=s.props.width||1500,s._height=s.props.height||700,s._treeData=s.props.treeData,s._composition=null===(a=s.props)||void 0===a?void 0:a.composition,s._treeTraversal=s.props.treeTraversal,s.state={_width:s._width,_height:s._height},s}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Na(r,{theme:e,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var e=(0,pi.td)("text"),n=(0,pi.td)("rect"),r=(0,pi.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(e.remove(),n.remove(),r.remove()),this.createTreeChart()}},n.prototype.createTreeChart=function(){var t=[],e=[],n=new Va(this._treeData,this._composition,this._classNames,t,e,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=t,this._linkElements=e},n.prototype.render=function(){var t;return i.createElement(dn,null,i.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},i.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},i.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),i.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(i.Component),Ha=(0,t.z)(Oa,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:(0,e.pi)({fill:"black"},t.theme.fonts.large),rectSubText:(0,e.pi)({fill:"#484644"},t.theme.fonts.medium),rectBodyText:(0,e.pi)({fill:"#808080"},t.theme.fonts.xSmall),rectMetricText:(0,e.pi)({fill:"#000000"},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Fa||(Fa={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Ia||(Ia={}));var Ba,Ra=(0,o.y)(),za=function(t){function n(e){var n=t.call(this,e)||this;return n.margin={top:2,right:0,bottom:0,left:0},n._isRTL=(0,a.zg)(),n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n._emptyChartId=f("_SparklineChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var e=Qi().x((function(e){return t.x(e.x)})).y0(this.state._height).y1((function(e){return t.y(e.y)})).curve(mi);this.area=e;var n=yi().x((function(e){return t.x(e.x)})).y((function(e){return t.y(e.y)})).curve(mi);this.line=n;var r=this.props.data.lineChartData[0].data,i=function(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}(r,(function(t){return t.x})),o=i[0],a=i[1];this.x=(0,Mo.Z)().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,Mo.Z)().domain([0,(0,ji.Z)(r,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},n.prototype.drawSparkline=function(){return i.createElement(i.Fragment,null,i.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),i.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},n.prototype.render=function(){var t=Ra(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(dn,{direction:Re.horizontal,isCircularNavigation:!0,className:t.inlineBlock},i.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?i.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):i.createElement(i.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?i.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},i.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):i.createElement(i.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(i.Component),Wa=(0,t.z)(za,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,e.pi)((0,e.pi)({},t.theme.fonts.smallPlus),{fill:t.theme.palette.black})}})),Ya=(0,o.y)(),Za=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getMargins=function(t){r.margins=t},r._renderContentForOnlyBars=function(t){var e,n,o,a=r.props.useSingleColor,s=void 0!==a&&a,l=0;return r.props.data.forEach((function(e,n){e.y===t.y&&(l=n)})),o=s?r.props.colors?r._createColors()(1):li(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):t.color?t.color:r.props.colors?r._createColors()(t.x):li(l,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),i.createElement(i.Fragment,null,i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:r.props.culture}))},r._renderCallout=function(t){return t?r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,e,n,i,o,a){return r._bars=r._yAxisType===ze.OH.NumericAxis?r._createNumericBars(n,i,o,a):r._createStringBars(n,i,o,a)},r._refCallback=function(t,e){r._refArray.push({index:e,refElement:t})},r._getCalloutContentForBar=function(t){var e,n,i,o=[],a=r.props.useSingleColor,s=void 0!==a&&a,l=r.props.data,c=l.filter((function(e){return e.y===t.y})),u=0;return l.forEach((function(e,n){e.y===t.y&&(u=n)})),i=s?r.props.colors?r._createColors()(1):li(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):c[0].color?c[0].color:r.props.colors?r._createColors()(c[0].x):li(u,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),o.push({legend:c[0].legend,y:c[0].x,color:i,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,e,n){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===t.legend){var i=r._getCalloutContentForBar(t),o=i.YValueHover,a=i.hoverXValue;r._refArray.forEach((function(i,s){e===s&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:r.props.useSingleColor?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))}},r._getScales=function(t,e,n){if(n){var i=(0,ji.Z)(r._points,(function(t){return t.x})),o=(0,ji.Z)(r._points,(function(t){return t.y}));return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[i,0]:[0,i]).nice().range([r.margins.left,e-r.margins.right]),yBarScale:a=(0,Mo.Z)().domain([0,o]).range([t-r.margins.bottom,r.margins.top])}}i=(0,ji.Z)(r._points,(function(t){return t.x}));var a=(0,Fo.Z)().domain(r._yAxisLabels).range([t-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[i,0]:[0,i]).nice().range([r.margins.left,e-r.margins.right]),yBarScale:a}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=r.props.useSingleColor,a=[];return t.forEach((function(t,e){var n,i=o?r.props.colors?r._createColors()(1):li(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):t.color,s={title:t.legend,color:i,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(t){r._onLegendLeave(t)}};a.push(s)})),i.createElement(vr,(0,e.pi)({legends:a,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._xMax=Math.max(e[e.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.x,r=t.yAxisCalloutData||t.y;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},r._calloutId=f("callout"),r._tooltipId=f("HBCWATooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].x,!0):ze.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].y,!1):ze.OH.StringAxis,r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,e.ev)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max((0,ji.Z)(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Ya(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var o=(0,e.pi)((0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,ze.ey)(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Ti,(0,e.pi)({},this.props,{points:this._points,chartType:ze.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:a,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Re.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(e*i*this._xMax);return(0,Mo.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForBar(t),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?e:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,r,o){var a=this,s=this.props.useSingleColor,l=void 0!==s&&s,c=this._getScales(t,n,!0),u=c.xBarScale,d=c.yBarScale,h=(0,e.ev)([],this._points,!0);h.sort((function(t,e){var n="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof e.y?e.y:parseFloat(e.y))-n}));var p=h.map((function(t,e){var r,o,s,c=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(c=a.state.selectedLegendTitle===t.legend),a._classNames=Ya(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:c}),Math.max(d(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(s=l?a.props.colors?a._createColors()(1):li(1,0,null===(r=a.props.theme)||void 0===r?void 0:r.isInverted):a.props.colors?a._createColors()(t.x):li(e,0,null===(o=a.props.theme)||void 0===o?void 0:o.isInverted),i.createElement("rect",{key:t.y,x:a._isRtl?u(t.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:d(t.y)-a._barHeight/2,"data-is-focusable":!0,width:a._isRtl?n-a.margins.right-Math.max(u(t.x),0):Math.max(u(t.x),0)-a.margins.left,height:a._barHeight,ref:function(e){a._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:a._onBarHover.bind(a,t,s),"aria-label":a._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,t,e,s),onBlur:a._onBarLeave,fill:t.color&&!l?t.color:s}))}));return p},n.prototype._tooltipOfYAxislabels=function(t){var e=this,n=t.tooltipCls,r=t.yAxis,i=t.id;if(null===r)return null;for(var o=(0,pi.Ys)("body").append("div").attr("id",i).attr("class",n).style("opacity",0),a=r.selectAll("#BaseSpan")._groups[0],s=a&&Object.keys(a).length,l=[],c=0;c<s;c++){var u=a[c].dataset&&Object.values(a[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(t){var n=d[t];(0,pi.Ys)(n).on("mouseover",(function(n){e.state.tooltipElement||(o.style("opacity",.9),o.html(l[t]).style("left",pi.B.pageX+"px").style("top",pi.B.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},n.prototype._createStringBars=function(t,e,n,r){var o=this,a=this._getScales(t,e,!1),s=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(t,n){var r,a,c;return Math.max(l(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(c=u?o.props.colors?o._createColors()(1):li(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):li(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),i.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?s(t.x):o.margins.left,y:l(t.y),width:o._isRtl?e-o.margins.right-Math.max(s(t.x),0):Math.max(s(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,n,c),fill:t.color&&!u?t.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=(0,pi.Ys)(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},n.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},n.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},n}(i.Component),qa=(0,t.z)(Za,(function(t){var n=t.shouldHighlight,r=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,e.pi)((0,e.pi)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(Ba||(Ba={}));var Xa=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],Ua=(0,o.y)(),ja=function(t){function n(n){var r=t.call(this,n)||this;return r._getMargins=function(){var t=r.props,e=t.hideMinMax;return{left:16+(e?0:40),right:16+(e?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var t=Xa.length-1;t>=0;t-=1)if(r._outerRadius>=Xa[t].minRadius)return{arcWidth:Xa[t].arcWidth,chartValueSize:Xa[t].fontSize};return{arcWidth:Xa[0].arcWidth,chartValueSize:Xa[0].fontSize}},r._initProps=function(){var t=r.props,e=t.minValue,n=void 0===e?0:e,i=t.maxValue,o=t.theme,a=Array.from(r.props.segments),s=n;a.forEach((function(t,e){s+=t.size,t.color=void 0!==t.color?ci(t.color,o.isInverted):li(e,0,o.isInverted)})),void 0!==i&&s<i&&(a.push({legend:"Unknown",size:i-s,color:o.palette.neutralLight}),s=i);var l=jr().padAngle(2/r._outerRadius).padRadius(r._outerRadius),c=r._isRTL?Array.from(a).reverse():a,u=-Math.PI/2,d=c.map((function(t,e){var i=u+t.size/(s-n)*Math.PI,o=l({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:u,endAngle:i});return u=i,{d:o,segmentIndex:r._isRTL?a.length-1-e:e}}));return{minValue:n,maxValue:s,segments:a,arcs:d}},r._renderNeedle=function(){var t=r._sweepFraction[0]/r._sweepFraction[1]*180,e=r._isRTL?180-t:t,n=r._outerRadius-r._innerRadius+4;return i.createElement("g",{transform:"rotate(".concat(e,", 0, 0)")},i.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-n,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-n,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:r._classNames.needle,transform:"translate(".concat(2-r._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return r._handleFocus(t,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(t){return r._handleMouseOver(t,"Needle")},onMouseMove:function(t){return r._handleMouseOver(t,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var t=r._segments.map((function(t){return{title:t.legend,color:t.color,action:function(){r.state.selectedLegend===t.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:t.legend})},hoverAction:function(){r.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return i.createElement("div",{className:r._classNames.legendsContainer},i.createElement(vr,(0,e.pi)({legends:t,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.hoveredLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(t,e){r._showCallout(t.target,e,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(t,e){r._showCallout(t.target,e,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(t,n,i){if(r._calloutAnchor!==n){r._calloutAnchor=n;var o="Current value is "+(r.props.chartValueFormat===Ba.Fraction?"".concat((r._sweepFraction[0]/r._sweepFraction[1]*100).toFixed(),"%"):"".concat(r._sweepFraction[0],"/").concat(r._sweepFraction[1])),a=r._minValue,s=r._segments.map((function(t,e){var n={legend:t.legend,y:"".concat(a+(e>0?1:0)," - ").concat(a+t.size),color:t.color};return a+=t.size,n}));r.setState((0,e.pi)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||""===r.state.selectedLegend||r.state.selectedLegend===n,hoverXValue:o,hoverYValues:s},i?{focusedElement:n}:{}))}},r._hideCallout=function(t){r._calloutAnchor="",r.setState((0,e.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},r._wrapContent=function(t,e,n){var r=(0,pi.Ys)("#".concat(e));if(r.text(t),!r.node())return!1;for(var i=!1,o=r.node().getComputedTextLength();o>n&&t.length>0;)t=t.slice(0,-1),r.text(t+"..."),i=!0,o=r.node().getComputedTextLength();return i},r._multiValueCallout=function(t){var n=r._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:r._classNames.calloutContentRoot},i.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},i.createElement("div",(0,e.pi)({className:r._classNames.calloutContentX},(0,ze.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,ze.Ts)(t.hoverXValue,r.props.culture))),i.createElement("div",{className:r._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,o,a){var s=o+1===a.length,l=t.shouldDrawBorderBottom,c=void 0!==l&&l;return i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(o),style:n?(0,e.pi)({display:"inline-block"},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,e.pi)({},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(t,o,n,s))})),!!t.descriptionMessage&&i.createElement("div",{className:r._classNames.descriptionMessage},t.descriptionMessage)))},r._margins=r._getMargins(),r._legendsHeight=r.props.hideLegend?0:24,r.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+r._margins.left+r._margins.right,height:70+r._margins.top+r._margins.bottom+r._legendsHeight},r._isRTL=(0,a.zg)(),r._calloutAnchor="",r}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,r=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,r-(this._margins.top+this._margins.bottom+this._legendsHeight));var o=this._getStylesBasedOnBreakpoint(),a=o.arcWidth,s=o.chartValueSize;this._innerRadius=this._outerRadius-a;var l=this._initProps(),c=l.minValue,u=l.maxValue,d=l.segments,h=l.arcs;return this._minValue=c,this._segments=d,this._sweepFraction=[this.props.chartValue-this._minValue,u-this._minValue],this._classNames=Ua(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:r-this._legendsHeight,chartValueSize:s}),i.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e}},i.createElement(dn,{direction:Re.horizontal},i.createElement("svg",{className:this._classNames.chart,"aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},i.createElement("g",{transform:"translate(".concat(n/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&i.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&i.createElement(i.Fragment,null,i.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},(0,ze.cE)(this._minValue)),i.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(u)},(0,ze.cE)(u))),h.map((function(n,r){return i.createElement("path",(0,e.pi)({key:r,d:n.d,fill:t._segments[n.segmentIndex].color,fillOpacity:t._legendHighlighted(t._segments[n.segmentIndex].legend)||t._noLegendHighlighted()?1:.1,strokeWidth:t.state.focusedElement===t._segments[n.segmentIndex].legend?2:0,className:t._classNames.segment},(0,ze.ey)((0,e.pi)({ariaLabel:"".concat(t._segments[n.segmentIndex].legend,", ").concat(t._segments[n.segmentIndex].size," out of ").concat(u-t._minValue," or ").concat((t._segments[n.segmentIndex].size/(u-t._minValue)*100).toFixed(),"%")},t._segments[n.segmentIndex].accessibilityData),"img",!0),{onFocus:function(e){return t._handleFocus(e,t._segments[n.segmentIndex].legend)},onBlur:t._handleBlur,onMouseEnter:function(e){return t._handleMouseOver(e,t._segments[n.segmentIndex].legend)},onMouseMove:function(e){return t._handleMouseOver(e,t._segments[n.segmentIndex].legend)}}))})),this._renderNeedle(),i.createElement("g",{onMouseEnter:function(e){return t._handleMouseOver(e,"Chart value")},onMouseMove:function(e){return t._handleMouseOver(e,"Chart value")}},i.createElement(Ei,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===Ba.Fraction?"".concat(this._sweepFraction[0],"/").concat(this._sweepFraction[1]):"".concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%"),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,role:"img","aria-label":"Current value: ".concat(this._sweepFraction[0]," out of ").concat(this._sweepFraction[1],", or ").concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%")},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&i.createElement(Ei,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel,role:"img","aria-label":this.props.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&i.createElement(Be,(0,e.pi)({target:this.state.calloutTarget,directionalHint:_.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,e,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=Ua(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,ze.Ts)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var u=t.yAxisCalloutData;return i.createElement("div",{style:o},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(u).map((function(t){return i.createElement("div",{key:t,className:s.calloutBlockContainer},i.createElement("div",{className:s.calloutlegendText}," ",(0,ze.Ts)(t,l)),i.createElement("div",{className:s.calloutContentY},(0,ze.Ts)(u[t],l)))})))}return i.createElement("div",{style:n?o:{}},n&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),i.createElement("div",{id:"".concat(e,"_").concat(t.y),className:s.calloutBlockContainer},a&&i.createElement(fr,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:ze.wo[t.index%Object.keys(ze.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:s.calloutlegendText}," ",t.legend),i.createElement("div",{className:s.calloutContentY},(0,ze.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,l)))))},n}(i.Component),Ga=(0,t.z)(ja,(function(t){var n,r,i,o,a=t.theme,s=t.chartValueSize,l=t.chartWidth,c=t.chartHeight,u=t.className,d=t.lineColor,h=t.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.palette.white},chartTitle:{fontSize:Yt.TS.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.semanticColors.focusBorder},legendsContainer:{width:l},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,e.pi)((0,e.pi)({},a.fonts.small),{lineHeight:"16px",opacity:"0.8",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(n={},n[Yt.qJ]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,e.pi)((0,e.pi)({},a.fonts.small),{lineHeight:"16px",selectors:(r={},r[Yt.$v]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,e.pi)((0,e.pi)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(i={},i[Yt.$v]={color:"rgb(255, 255, 255)"},i)})],descriptionMessage:[a.fonts.small,{selectors:(o={},o[Yt.$v]={color:"rgb(255, 255, 255)"},o),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,n(6077).x)("@fluentui/react-charting","5.19.20")}(),FluentUIReactCharting=r}();
|
|
1
|
+
var FluentUIReactCharting;!function(){"use strict";var t={1783:function(t,e,n){n.d(e,{WU:function(){return d},jH:function(){return h}});var r,i=n(4783),o=n(4116),a=n(3074);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var u,d,h,p=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];u=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=p.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",h=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(p.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function _(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,p=t.zero,_=t.width,y=t.comma,x=t.precision,b=t.trim,C=t.type;"n"===C?(y=!0,C="g"):l[C]||(void 0===x&&(x=12),b=!0,C="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",S="$"===c?u:/[%p]/.test(C)?g:"",A=l[C],L=/[defgprs%]/.test(C);function k(t){var o,s,l,c=E,u=S;if("c"===C)u=A(t)+u,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),x),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,u=("s"===C?f[8+r/3]:"")+u+(g&&"("===i?")":""),L)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){u=(46===l?d+t.slice(o+1):t.slice(o))+u,t=t.slice(0,o);break}}y&&!p&&(t=a(t,1/0));var k=c.length+t.length+u.length,T=k<_?new Array(_-k+1).join(e):"";switch(y&&p&&(t=a(T+t,T.length?_-u.length:1/0),T=""),n){case"<":t=c+t+u+T;break;case"=":t=c+T+t+u;break;case"^":t=T.slice(0,k=T.length>>1)+c+t+u+T.slice(k);break;default:t=T+c+t+u}return h(t)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),k.toString=function(){return t+""},k}return{format:_,formatPrefix:function(t,e){var n=_(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(t){return n(a*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=u.format,h=u.formatPrefix},4783:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(3074);function i(t){return(t=(0,r.Z)(Math.abs(t)))?t[1]:NaN}},3074:function(t,e,n){function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},4116:function(t,e,n){n.d(e,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},8485:function(t,e,n){n.d(e,{Eb:function(){return ft},B:function(){return et},Ys:function(){return dt},td:function(){return gt}});var r="http://www.w3.org/1999/xhtml",i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function o(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t}function a(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r&&e.documentElement.namespaceURI===r?e.createElement(t):e.createElementNS(n,t)}}function s(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function l(t){var e=o(t);return(e.local?s:a)(e)}function c(){}function u(t){return null==t?c:function(){return this.querySelector(t)}}function d(){return[]}var h=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var p=document.documentElement;if(!p.matches){var f=p.webkitMatchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector;h=function(t){return function(){return f.call(this,t)}}}}var g=h;function m(t){return new Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function _(t,e,n,r,i,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new v(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function y(t,e,n,r,i,o,a){var s,l,c,u={},d=e.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,e),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(t,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new v(t,o[s]);for(s=0;s<d;++s)(l=e[s])&&u[p[s]]===l&&(i[s]=l)}function x(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function b(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E(t,e){return function(){this.setAttribute(t,e)}}function S(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function L(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function k(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function T(t){return function(){this.style.removeProperty(t)}}function w(t,e,n){return function(){this.style.setProperty(t,e,n)}}function D(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function M(t){return function(){delete this[t]}}function P(t,e){return function(){this[t]=e}}function F(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function I(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=I(t.getAttribute("class")||"")}function O(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function B(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function H(t){return function(){O(this,t)}}function R(t){return function(){B(this,t)}}function z(t,e){return function(){(e.apply(this,arguments)?O:B)(this,t)}}function W(){this.textContent=""}function Y(t){return function(){this.textContent=t}}function Z(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function q(){this.innerHTML=""}function X(t){return function(){this.innerHTML=t}}function U(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function j(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(){return null}function $(){var t=this.parentNode;t&&t.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}V.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tt={},et=null;function nt(t,e,n){return t=rt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function rt(t,e,n){return function(r){var i=et;et=r;try{t.call(this,this.__data__,e,n)}finally{et=i}}}function it(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function ot(t,e,n){var r=tt.hasOwnProperty(t.type)?nt:rt;return function(i,o,a){var s,l=this.__on,c=r(e,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function at(t,e,n){var r=k(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function st(t,e){return function(){return at(this,t,e)}}function lt(t,e){return function(){return at(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tt={mouseenter:"mouseover",mouseleave:"mouseout"}));var ct=[null];function ut(t,e){this._groups=t,this._parents=e}function dt(t){return"string"==typeof t?new ut([[document.querySelector(t)]],[document.documentElement]):new ut([[t]],ct)}ut.prototype=function(){return new ut([[document.documentElement]],ct)}.prototype={constructor:ut,select:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,c=r[i]=new Array(l),d=0;d<l;++d)(o=s[d])&&(a=t.call(o,o.__data__,d,s))&&("__data__"in o&&(a.__data__=o.__data__),c[d]=a);return new ut(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?d:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new ut(r,i)},filter:function(t){"function"!=typeof t&&(t=g(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new ut(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,r=e?y:_,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=t.call(d,d&&d.__data__,u,i),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,e);for(var x,b,C=0,E=0;C<g;++C)if(x=m[C]){for(C>=E&&(E=C+1);!(b=v[E])&&++E<g;);x._next=b||null}}return(s=new ut(s,i))._enter=l,s._exit=c,s},enter:function(){return new ut(this._enter||this._groups.map(m),this._parents)},exit:function(){return new ut(this._exit||this._groups.map(m),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=e[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=e[s];return new ut(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=x);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new ut(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=o(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?C:b:"function"==typeof e?n.local?L:A:n.local?S:E)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?T:"function"==typeof e?D:w)(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||k(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?M:"function"==typeof e?F:P)(t,e)):this.node()[t]},classed:function(t,e){var n=I(t+"");if(arguments.length<2){for(var r=N(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?z:e?H:R)(n,e))},text:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?Z:Y)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?q:("function"==typeof t?U:X)(t)):this.node().innerHTML},raise:function(){return this.each(j)},lower:function(){return this.each(G)},append:function(t){var e="function"==typeof t?t:l(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:l(t),r=null==e?K:"function"==typeof e?e:u(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($)},clone:function(t){return this.select(t?Q:J)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?ot:it,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?lt:st)(t,e))}};var ht=0;function pt(){this._="@"+(++ht).toString(36)}function ft(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function gt(t){return"string"==typeof t?new ut([document.querySelectorAll(t)],[document.documentElement]):new ut([null==t?[]:t],ct)}pt.prototype=function(){return new pt}.prototype={constructor:pt,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},731:function(t,e,n){var r,i,o;n.d(e,{i$:function(){return i}}),o={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"]},r=(0,n(6465).Z)(o),i=r.format,r.parse,r.utcFormat,r.utcParse},6465:function(t,e,n){n.d(e,{Z:function(){return h}});var r=n(3787),i=n(2605),o=n(2167),a=n(3645),s=n(9507),l=n(2527);function c(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function u(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function d(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function h(t){var e=t.dateTime,n=t.date,s=t.time,l=t.periods,h=t.days,f=t.shortDays,g=t.months,m=t.shortMonths,v=y(l),_=x(l),J=y(h),_t=x(h),Dt=y(f),Mt=x(f),Pt=y(g),Ft=x(g),It=y(m),Nt=x(m),Vt={a:function(t){return f[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:null,d:z,e:z,f:X,g:rt,G:ot,H:W,I:Y,j:Z,L:q,m:U,M:j,p:function(t){return l[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Tt,s:wt,S:G,u:K,U:$,V:Q,w:tt,W:et,x:null,X:null,y:nt,Y:it,Z:at,"%":kt},Ot={a:function(t){return f[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return m[t.getUTCMonth()]},B:function(t){return g[t.getUTCMonth()]},c:null,d:st,e:st,f:ht,g:Et,G:At,H:lt,I:ct,j:ut,L:dt,m:pt,M:ft,p:function(t){return l[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Tt,s:wt,S:gt,u:mt,U:vt,V:yt,w:xt,W:bt,x:null,X:null,y:Ct,Y:St,Z:Lt,"%":kt},Bt={a:function(t,e,n){var r=Dt.exec(e.slice(n));return r?(t.w=Mt.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=J.exec(e.slice(n));return r?(t.w=_t.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=It.exec(e.slice(n));return r?(t.m=Nt.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.m=Ft.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return zt(t,e,n,r)},d:M,e:M,f:O,g:k,G:L,H:F,I:F,j:P,L:V,m:D,M:I,p:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.p=_.get(r[0].toLowerCase()),n+r[0].length):-1},q:w,Q:H,s:R,S:N,u:C,U:E,V:S,w:b,W:A,x:function(t,e,r){return zt(t,n,e,r)},X:function(t,e,n){return zt(t,s,e,n)},y:k,Y:L,Z:T,"%":B};function Ht(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=p[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function Rt(t,e){return function(n){var s,l,h=d(1900,void 0,1);if(zt(h,t,n+="",0)!=n.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(e&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(l=(s=u(d(h.y,0,1))).getUTCDay(),s=l>4||0===l?r.l6.ceil(s):(0,r.l6)(s),s=i.Z.offset(s,7*(h.V-1)),h.y=s.getUTCFullYear(),h.m=s.getUTCMonth(),h.d=s.getUTCDate()+(h.w+6)%7):(l=(s=c(d(h.y,0,1))).getDay(),s=l>4||0===l?o.wA.ceil(s):(0,o.wA)(s),s=a.Z.offset(s,7*(h.V-1)),h.y=s.getFullYear(),h.m=s.getMonth(),h.d=s.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),l="Z"in h?u(d(h.y,0,1)).getUTCDay():c(d(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(l+5)%7:h.w+7*h.U-(l+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,u(h)):c(h)}}function zt(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Bt[i in p?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Vt.x=Ht(n,Vt),Vt.X=Ht(s,Vt),Vt.c=Ht(e,Vt),Ot.x=Ht(n,Ot),Ot.X=Ht(s,Ot),Ot.c=Ht(e,Ot),{format:function(t){var e=Ht(t+="",Vt);return e.toString=function(){return t},e},parse:function(t){var e=Rt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Ht(t+="",Ot);return e.toString=function(){return t},e},utcParse:function(t){var e=Rt(t+="",!0);return e.toString=function(){return t},e}}}var p={"-":"",_:" ",0:"0"},f=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function v(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function _(t){return t.replace(m,"\\$&")}function y(t){return new RegExp("^(?:"+t.map(_).join("|")+")","i")}function x(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function b(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function C(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function E(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function S(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function A(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function L(t,e,n){var r=f.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function k(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function w(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function D(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function M(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function P(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function F(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function I(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function N(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function V(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function O(t,e,n){var r=f.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function B(t,e,n){var r=g.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function H(t,e,n){var r=f.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function R(t,e,n){var r=f.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function z(t,e){return v(t.getDate(),e,2)}function W(t,e){return v(t.getHours(),e,2)}function Y(t,e){return v(t.getHours()%12||12,e,2)}function Z(t,e){return v(1+a.Z.count((0,s.Z)(t),t),e,3)}function q(t,e){return v(t.getMilliseconds(),e,3)}function X(t,e){return q(t,e)+"000"}function U(t,e){return v(t.getMonth()+1,e,2)}function j(t,e){return v(t.getMinutes(),e,2)}function G(t,e){return v(t.getSeconds(),e,2)}function K(t){var e=t.getDay();return 0===e?7:e}function $(t,e){return v(o.OM.count((0,s.Z)(t)-1,t),e,2)}function J(t){var e=t.getDay();return e>=4||0===e?(0,o.bL)(t):o.bL.ceil(t)}function Q(t,e){return t=J(t),v(o.bL.count((0,s.Z)(t),t)+(4===(0,s.Z)(t).getDay()),e,2)}function tt(t){return t.getDay()}function et(t,e){return v(o.wA.count((0,s.Z)(t)-1,t),e,2)}function nt(t,e){return v(t.getFullYear()%100,e,2)}function rt(t,e){return v((t=J(t)).getFullYear()%100,e,2)}function it(t,e){return v(t.getFullYear()%1e4,e,4)}function ot(t,e){var n=t.getDay();return v((t=n>=4||0===n?(0,o.bL)(t):o.bL.ceil(t)).getFullYear()%1e4,e,4)}function at(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+v(e/60|0,"0",2)+v(e%60,"0",2)}function st(t,e){return v(t.getUTCDate(),e,2)}function lt(t,e){return v(t.getUTCHours(),e,2)}function ct(t,e){return v(t.getUTCHours()%12||12,e,2)}function ut(t,e){return v(1+i.Z.count((0,l.Z)(t),t),e,3)}function dt(t,e){return v(t.getUTCMilliseconds(),e,3)}function ht(t,e){return dt(t,e)+"000"}function pt(t,e){return v(t.getUTCMonth()+1,e,2)}function ft(t,e){return v(t.getUTCMinutes(),e,2)}function gt(t,e){return v(t.getUTCSeconds(),e,2)}function mt(t){var e=t.getUTCDay();return 0===e?7:e}function vt(t,e){return v(r.Ox.count((0,l.Z)(t)-1,t),e,2)}function _t(t){var e=t.getUTCDay();return e>=4||0===e?(0,r.hB)(t):r.hB.ceil(t)}function yt(t,e){return t=_t(t),v(r.hB.count((0,l.Z)(t),t)+(4===(0,l.Z)(t).getUTCDay()),e,2)}function xt(t){return t.getUTCDay()}function bt(t,e){return v(r.l6.count((0,l.Z)(t)-1,t),e,2)}function Ct(t,e){return v(t.getUTCFullYear()%100,e,2)}function Et(t,e){return v((t=_t(t)).getUTCFullYear()%100,e,2)}function St(t,e){return v(t.getUTCFullYear()%1e4,e,4)}function At(t,e){var n=t.getUTCDay();return v((t=n>=4||0===n?(0,r.hB)(t):r.hB.ceil(t)).getUTCFullYear()%1e4,e,4)}function Lt(){return"+0000"}function kt(){return"%"}function Tt(t){return+t}function wt(t){return Math.floor(+t/1e3)}},3645:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.UD),(t=>t.getDate()-1));e.Z=o,o.range},4827:function(t,e,n){n.d(e,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return c},yB:function(){return i}});const r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,c=365*a},5401:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym-t.getMinutes()*i.yB)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getHours()}));e.Z=o,o.range},4315:function(t,e,n){n.d(e,{Z:function(){return o}});var r=new Date,i=new Date;function o(t,e,n,a){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,r,i){var o,a=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return a},s.filter=function(n){return o((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}},4189:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getMinutes()}));e.Z=o,o.range},9604:function(t,e,n){var r=(0,n(4315).Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.Z=r,r.range},87:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*i.Ym)}),(function(t,e){return(e-t)/i.Ym}),(function(t){return t.getUTCSeconds()}));e.Z=o,o.range},2605:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.UD}),(function(t){return t.getUTCDate()-1}));e.Z=o,o.range},3787:function(t,e,n){n.d(e,{Ox:function(){return a},hB:function(){return u},l6:function(){return s}});var r=n(4315),i=n(4827);function o(t){return(0,r.Z)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.iM}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),d=o(5),h=o(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},2527:function(t,e,n){var r=n(4315),i=(0,r.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.Z=i,i.range},2167:function(t,e,n){n.d(e,{OM:function(){return a},bL:function(){return u},wA:function(){return s}});var r=n(4315),i=n(4827);function o(t){return(0,r.Z)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.iM}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),d=o(5),h=o(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},9507:function(t,e,n){var r=n(4315),i=(0,r.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.Z=i,i.range},9939:function(t,e,n){n.d(e,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create},4473:function(t,e,n){function r(t){o!==t&&(o=t)}function i(){return void 0===o&&(o="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),o}var o;function a(){return{rtl:i()}}n.d(e,{Eo:function(){return a},ok:function(){return r}}),o=i()},5499:function(t,e,n){n.d(e,{Y:function(){return l}});var r,i=n(9939),o="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,e){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,i.pi)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(n=null==e?void 0:e.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==e?void 0:e.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==e?void 0:e.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==e?void 0:e.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==e?void 0:e.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(r=s[o])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var e=(null==s?void 0:s.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);r=n,s[o]=n}return r},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,i.pi)((0,i.pi)({},this._config),t)},t.prototype.onReset=function(t){var e=this;return this._onResetCallbacks.push(t),function(){e._onResetCallbacks=e._onResetCallbacks.filter((function(e){return e!==t}))}},t.prototype.onInsertRule=function(t){var e=this;return this._onInsertRuleCallbacks.push(t),function(){e._onInsertRuleCallbacks=e._onInsertRuleCallbacks.filter((function(e){return e!==t}))}},t.prototype.getClassName=function(t){var e=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(e?e+"-":"").concat(n,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),r)switch(n){case 1:var i=r.sheet;try{i.insertRule(t,i.cssRules.length)}catch(t){}break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(t){return t()}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style"),n=null;e.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&e.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:t.childNodes[0]}return t.insertBefore(e,t.contains(n)?n:null),this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},4270:function(t,e,n){n.d(e,{m:function(){return i}});var r=n(9939);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var n={},o={},a=0,s=t;a<s.length;a++){var l=s[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var u=l.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(o.hasOwnProperty(d)?o[d].push(u[d]):o[d]=[u[d]]);continue}var h=n[c],p=l[c];n[c]=void 0===h?p:(0,r.ev)((0,r.ev)([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(o).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(t){if(o.hasOwnProperty(t)){var e=o[t];f[t]=function(t){return i.apply(void 0,e.map((function(e){return"function"==typeof e?e(t):e})))}}};for(var d in o)g(d)}return n}},3802:function(t,e,n){n.d(e,{U:function(){return i}});var r=n(5499);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],i=[],o=r.Y.getInstance();return function t(e){for(var r=0,a=e;r<a.length;r++){var s=a[r];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=o.argsFromClassName(s);l?t(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&i.push(s)}}(t),{classes:n,objects:i}}},13:function(t,e,n){n.d(e,{y:function(){return a}});var r=n(3802),i=n(4473),o=n(7373);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(t,e){var n=t instanceof Array?t:[t],i=(0,r.U)(n),a=i.classes,s=i.objects;return s.length&&a.push((0,o.AE)(e||{},s)),a.join(" ")}(t,(0,i.Eo)())}},7373:function(t,e,n){n.d(e,{Jh:function(){return k},dH:function(){return A},AE:function(){return T},aj:function(){return L}});var r,i=n(9939),o=n(5499),a={},s={"user-select":1};function l(t,e){var n=function(){var t;if(!r){var e="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,i=null===(t=null==n?void 0:n.userAgent)||void 0===t?void 0:t.toLowerCase();r=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}(),i=t[e];if(s[i]){var o=t[e+1];s[i]&&(n.isWebkit&&t.push("-webkit-"+i,o),n.isMoz&&t.push("-moz-"+i,o),n.isMs&&t.push("-ms-"+i,o),n.isOpera&&t.push("-o-"+i,o))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var i=u.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";t[e+1]="".concat(r).concat(a)}}var h="left",p="right",f="@noflip",g=((c={})[h]=p,c[p]=h,c),m={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function v(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var i=e[n+1];if("string"==typeof i&&i.indexOf(f)>=0)e[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(h)>=0)e[n]=r.replace(h,p);else if(r.indexOf(p)>=0)e[n]=r.replace(p,h);else if(String(i).indexOf(h)>=0)e[n+1]=i.replace(h,p);else if(String(i).indexOf(p)>=0)e[n+1]=i.replace(p,h);else if(g[r])e[n]=g[r];else if(m[i])e[n+1]=m[i];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return"".concat(e[0]," ").concat(e[3]," ").concat(e[2]," ").concat(e[1])}return t}(i);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}var _="displayName",y=/\:global\((.+?)\)/g;function x(t,e){return t.indexOf(":global(")>=0?t.replace(y,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function b(t,e,n,r){void 0===e&&(e={__order:[]}),0===n.indexOf("@")?C([r],e,n=n+"{"+t):n.indexOf(",")>-1?function(t){if(!y.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],i=e[2];return t.slice(0,n)+i+t.slice(r)}),t)}(n).split(",").map((function(t){return t.trim()})).forEach((function(n){return C([r],e,x(n,t))})):C([r],e,x(n,t))}function C(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=o.Y.getInstance(),i=e[n];i||(i={},e[n]=i,e.__order.push(n));for(var a=0,s=t;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&C(c,e,n)}else if(Array.isArray(l))C(l,e,n);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var h=l.selectors;for(var p in h)h.hasOwnProperty(p)&&b(n,e,p,h[p])}else"object"==typeof d?null!==d&&b(n,e,u,d):void 0!==d&&("margin"===u||"padding"===u?E(i,u,d):i[u]=d)}}return e}function E(t,e,n){var r="string"==typeof n?function(t){for(var e=[],n=0,r=0,i=0;i<t.length;i++)switch(t[i]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(i>n&&e.push(t.substring(n,i)),n=i+1)}return n<t.length&&e.push(t.substring(n)),e}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(t){return t+" !important"}))),t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function S(t,e){return e<=0?"":1===e?t:t+S(t,e-1)}function A(t,e){if(!e)return"";var n,r,i,o=[];for(var s in e)e.hasOwnProperty(s)&&s!==_&&void 0!==e[s]&&o.push(s,e[s]);for(var c=0;c<o.length;c+=2)i=void 0,"-"!==(i=(n=o)[r=c]).charAt(0)&&(n[r]=a[i]=a[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),d(o,c),v(t,o,c),l(o,c);for(c=1;c<o.length;c+=4)o.splice(c,1,":",o[c],";");return o.join("")}function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=C(e),i=function(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,i=0,o=e.__order;i<o.length;i++){var a=o[i];n.push(a);var s=e[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(t,r);if(i){var a=o.Y.getInstance(),s={className:a.classNameFromKey(i),key:i,args:e};if(!s.className){s.className=a.getClassName(function(t){var e=t&&t["&"];return e?e.displayName:void 0}(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var d=u[c];l.push(d,A(t,r[d]))}s.rulesToInsert=l}return s}}function k(t,e){void 0===e&&(e=1);var n=o.Y.getInstance(),r=t.className,i=t.key,a=t.args,s=t.rulesToInsert;if(s){for(var l=0;l<s.length;l+=2){var c=s[l+1];if(c){var u=s[l];u=u.replace(/&/g,S(".".concat(t.className),e));var d="".concat(u,"{").concat(c,"}").concat(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,i,a,s)}}function T(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=L.apply(void 0,(0,i.ev)([t],e,!1));return r?(k(r,t.specificityMultiplier),r.className):""}},8024:function(t,e,n){n.r(e),n.d(e,{ChartHoverCard:function(){return d}});var r=n(9085),i=n(9939),o=n(7363),a=n(8461),s=n(3813),l=(0,a.y)(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.color,n=t.Legend,r=t.XValue,i=t.YValue,a=t.styles,c=t.theme,u=t.ratio,d=t.descriptionMessage,h=t.culture;return this._classNames=l(a,{theme:c,color:e,XValue:r,isRatioPresent:!!u}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},r," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,s.Ts)(n,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,s.Ts)(i,h))),!!u&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,s.Ts)(u[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,s.Ts)(u[1],h))))),!!d&&o.createElement("div",{className:this._classNames.descriptionMessage},d))},e}(o.Component),u=n(1286),d=(0,r.z)(c,u.n)},1286:function(t,e,n){n.d(e,{n:function(){return i}});var r=n(1786),i=function(t){var e=t.color,n=t.XValue,i=t.theme,o=t.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:i.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i.fonts.small,{lineHeight:"16px",opacity:"0.8",color:i.semanticColors.bodySubtext}],calloutBlockContainer:[i.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:i.semanticColors.bodyText,borderLeft:"4px solid ".concat(e)}],calloutlegendText:[i.fonts.small,{lineHeight:"16px",color:i.semanticColors.bodyText}],calloutContentY:[i.fonts.xxLarge,{color:e||i.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[i.fonts.small,{marginLeft:"6px",color:i.semanticColors.bodyText}],numerator:{fontWeight:r.lq.bold},denominator:{fontWeight:r.lq.semibold},descriptionMessage:[i.fonts.small,{color:i.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(i.semanticColors.menuDivider)}]}}},3813:function(t,e,n){n.d(e,{$X:function(){return b},jc:function(){return it},wo:function(){return rt},xl:function(){return C},OH:function(){return E},yE:function(){return J},Wx:function(){return j},Ts:function(){return lt},s8:function(){return W},OX:function(){return R},R:function(){return Y},Tj:function(){return q},Pu:function(){return G},eQ:function(){return Z},Ay:function(){return K},cE:function(){return dt},ey:function(){return st},dr:function(){return et},As:function(){return nt},SY:function(){return ot},V4:function(){return tt},Ml:function(){return at},zs:function(){return ct},$V:function(){return Q},nX:function(){return $},yQ:function(){return ut}});var r=n(9939),i=Array.prototype.slice;function o(t){return t}var a=1,s=2,l=3,c=4,u=1e-6;function d(t){return"translate("+(t+.5)+",0)"}function h(t){return"translate(0,"+(t+.5)+")"}function p(t){return function(e){return+t(e)}}function f(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function g(){return!this.__axis}function m(t,e){var n=[],r=null,m=null,v=6,_=6,y=3,x=t===a||t===c?-1:1,b=t===c||t===s?"x":"y",C=t===a||t===l?d:h;function E(i){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,h=null==m?e.tickFormat?e.tickFormat.apply(e,n):o:m,E=Math.max(v,0)+y,S=e.range(),A=+S[0]+.5,L=+S[S.length-1]+.5,k=(e.bandwidth?f:p)(e.copy()),T=i.selection?i.selection():i,w=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,e).order(),M=D.exit(),P=D.enter().append("g").attr("class","tick"),F=D.select("line"),I=D.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),D=D.merge(P),F=F.merge(P.append("line").attr("stroke","#000").attr(b+"2",x*v)),I=I.merge(P.append("text").attr("fill","#000").attr(b,x*E).attr("dy",t===a?"0em":t===l?"0.71em":"0.32em")),i!==T&&(w=w.transition(i),D=D.transition(i),F=F.transition(i),I=I.transition(i),M=M.transition(i).attr("opacity",u).attr("transform",(function(t){return isFinite(t=k(t))?C(t):this.getAttribute("transform")})),P.attr("opacity",u).attr("transform",(function(t){var e=this.parentNode.__axis;return C(e&&isFinite(e=e(t))?e:k(t))}))),M.remove(),w.attr("d",t===c||t==s?"M"+x*_+","+A+"H0.5V"+L+"H"+x*_:"M"+A+","+x*_+"V0.5H"+L+"V"+x*_),D.attr("opacity",1).attr("transform",(function(t){return C(k(t))})),F.attr(b+"2",x*v),I.attr(b,x*E).text(h),T.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===s?"start":t===c?"end":"middle"),T.each((function(){this.__axis=k}))}return E.scale=function(t){return arguments.length?(e=t,E):e},E.ticks=function(){return n=i.call(arguments),E},E.tickArguments=function(t){return arguments.length?(n=null==t?[]:i.call(t),E):n.slice()},E.tickValues=function(t){return arguments.length?(r=null==t?null:i.call(t),E):r&&r.slice()},E.tickFormat=function(t){return arguments.length?(m=t,E):m},E.tickSize=function(t){return arguments.length?(v=_=+t,E):v},E.tickSizeInner=function(t){return arguments.length?(v=+t,E):v},E.tickSizeOuter=function(t){return arguments.length?(_=+t,E):_},E.tickPadding=function(t){return arguments.length?(y=+t,E):y},E}function v(t){return m(s,t)}function _(t){return m(l,t)}function y(t){return m(c,t)}var x,b,C,E,S=n(5561),A=n(8957),L=n(8815),k=n(8639),T=n(6775),w=n(8485),D=n(1783),M=n(731),P=n(6465),F=n(87),I=n(4189),N=n(5401),V=n(3645),O=n(9604),B=n(2167),H=n(9507);function R(t,e,n){var r=t.domainNRangeValues,i=t.showRoundOffXTickValues,o=void 0!==i&&i,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,u=t.xAxisCount,d=void 0===u?6:u,h=t.xAxisElement,p=(0,L.Z)().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);o&&p.nice();var f=_(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(t,e){var r="number"==typeof t?t:t.valueOf();return lt(r,n)}));e===b.HorizontalBarChartWithAxis&&f.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&(0,w.Ys)(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function z(t,e){var n=e?e.format:M.i$,r=n(".%L"),i=n(":%S"),o=n("%I:%M"),a=n("%I %p"),s=n("%a %d"),l=n("%b %d"),c=n("%B"),u=n("%Y");return((0,F.Z)(t)<t?r:(0,I.Z)(t)<t?i:(0,N.Z)(t)<t?o:(0,V.Z)(t)<t?a:(0,O.Z)(t)<t?(0,B.OM)(t)<t?s:l:(0,H.Z)(t)<t?c:u)(t)}function W(t,e,n,r,i,o){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,u=void 0===c?6:c,d=t.xAxistickSize,h=void 0===d?6:d,p=t.xAxisCount,f=void 0===p?6:p,g=(0,k.Z)().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=_(g).tickSize(h).tickPadding(u).ticks(f);if(o)m.tickFormat((function(t,e){return o(t)}));else if(n&&r)m.tickFormat((function(t,e){return t.toLocaleString(n,r)}));else if(i){var v=(0,P.Z)(i);m.tickFormat((function(t,e){return z(t,v)}))}e.tickValues&&m.tickValues(e.tickValues),void 0===n&&e.tickFormat&&m.tickFormat((0,M.i$)(e.tickFormat)),l&&(0,w.Ys)(l).call(m).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=e.tickValues)&&void 0!==a?a:g.ticks(f)).map((function(t,e){var n=m.tickFormat();return n?n(t,e):z(t)}));return{xScale:g,tickValues:y}}function Y(t,e,n,r){var i=t.domainNRangeValues,o=t.xAxisCount,a=void 0===o?6:o,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,u=void 0===c?10:c,d=t.xAxisPadding,h=void 0===d?.1:d,p=t.xAxisInnerPadding,f=t.xAxisOuterPadding,g=(0,T.Z)().domain(n).range([i.rStartValue,i.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=_(g).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(t,e){return lt(n[e],r)}));return t.xAxisElement&&(0,w.Ys)(t.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}function Z(t,e,n,r,i,o,a){return void 0===a&&(a=!1),r===b.HorizontalBarChartWithAxis?function(t,e,n,r){var i=t.yMinMaxValues,o=void 0===i?{startValue:0,endValue:0}:i,a=t.yAxisElement,s=void 0===a?null:a,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.margins,f=t.tickPadding,g=void 0===f?12:f,m=t.maxOfYVal,_=void 0===m?0:m,x=t.yAxisTickFormat,b=t.yAxisTickCount,C=void 0===b?4:b,E=_||o.endValue,S=E>c?E:c,A=o.startValue<d?0:d,k=(0,L.Z)().domain([A,S]).range([h-p.bottom,p.top]),T=(e?v(k):y(k)).tickPadding(g).ticks(C);return x?T.tickFormat(x):T.tickFormat((0,D.WU)(".2~s")),s&&(0,w.Ys)(s).call(T).selectAll("text").attr("aria-hidden","true"),k}(t,e):function(t,e,n,r,i){void 0===i&&(i=!1);var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,s=t.yAxisElement,l=void 0===s?null:s,c=t.yMaxValue,u=void 0===c?0:c,d=t.yMinValue,h=void 0===d?0:d,p=t.containerHeight,f=t.containerWidth,g=t.margins,m=t.tickPadding,_=void 0===m?12:m,x=t.maxOfYVal,b=void 0===x?0:x,C=t.yAxisTickFormat,E=t.yAxisTickCount,S=void 0===E?4:E,A=t.eventAnnotationProps,k=t.eventLabelHeight,T=b||a.endValue,M=T>u?T:u,P=a.startValue<h?0:h,F=function(t,e,n,r){for(var i=r||(t-e)/n>=1?Math.ceil((t-e)/n):(t-e)/n,o=[e,e+i];o[o.length-1]<t;)o.push(o[o.length-1]+i);return o}(M,P,S,r),I=(0,L.Z)().domain([P,F[F.length-1]]).range([p-g.bottom,g.top+(A?k:0)]),N=(!e&&i||e&&!i?v(I):y(I)).tickPadding(_).tickValues(F).tickSizeInner(-(f-g.left-g.right));return C?N.tickFormat(C):N.tickFormat((0,D.WU)(".2~s")),l&&(0,w.Ys)(l).call(N).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=F,I}(t,e,n,o,a)}!function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(b||(b={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(C||(C={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(E||(E={}));var q=function(t,e,n,r,i,o){return r===b.HorizontalBarChartWithAxis?X(t,e,n,i,o):U(t,e,n)},X=function(t,e,n,r,i){var o=t.containerHeight,a=t.tickPadding,s=void 0===a?12:a,l=t.margins,c=t.yAxisTickFormat,u=t.yAxisElement,d=(0,T.Z)().domain(e).range([o-l.bottom-r/2,l.top+r/2]),h=(n?v(d):y(d)).tickPadding(s).ticks(e);return c&&h.tickFormat(c),u&&(0,w.Ys)(u).call(h).selectAll("text"),d},U=function(t,e,n){var r=t.containerHeight,i=t.tickPadding,o=void 0===i?12:i,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,u=void 0===c?0:c,d=(0,T.Z)().domain(e).range([r-a.bottom,a.top]).padding(u),h=(n?v(d):y(d)).tickPadding(o).tickValues(e).tickSize(0);return s&&h.tickFormat(s),l&&(0,w.Ys)(l).call(h).selectAll("text"),d};function j(t){var e=[];t.forEach((function(t){var n=t.data.filter((function(t){return!t.hideCallout})).map((function(e){return(0,r.pi)((0,r.pi)({},e),{legend:t.legend,color:t.color,index:t.index})}));e=e.concat(n)}));var n={};return e.forEach((function(t){var e=t.x instanceof Date?t.x.getTime():t.x;e in n?n[e].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):n[e]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(n).map((function(t){return{x:Number(t),values:n[t]}}))}function G(t){var e=t.node,n=t.xAxis,r=t.noOfCharsToTruncate,i=t.showXAxisLablesTooltip;if(null!==e){var o=(0,w.Ys)(e).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var t=(0,w.Ys)(this),e=t.text(),n="".concat(t.text().slice(0,r),"..."),l=t.text().length,c=t.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=t.attr("y"),f=parseFloat(t.attr("dy")),g=t.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",e);if(i&&l>r)g=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(e);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),e=t&&t.getBoundingClientRect(),n=e&&e.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}function K(t,e,n,r,i,o){null!==t&&(0,w.Ys)(t).call(e).selectAll(".tick text").each((function(){var t=(0,w.Ys)(this),e=t.text(),i=o?"...".concat(t.text().slice(0,n)):"".concat(t.text().slice(0,n),"..."),a=t.text().length,s=r?1.5:1,l=t.attr("y"),c=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",c).attr("y",l).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",e),r&&a>n?t.append("tspan").attr("id","showDots").attr("x",o?0:c).attr("y",l).attr("dy",u).attr("dx",s+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",o?0:c).attr("y",l).attr("dx",s+0+"em").text(e)}))}var $=function(t,e,n){var r=(0,w.Ys)("#".concat(e));if(r.text(t),!r.node())return!1;for(var i=!1,o=r.node().getComputedTextLength();o>n&&t.length>0;)t=t.slice(0,-1),r.text(t+"..."),i=!0,o=r.node().getComputedTextLength();return i},J=function(t,e){void 0===e&&(e="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var i=document.querySelector(e);if(i){var o=window.getComputedStyle(i,null),a=o.getPropertyValue("font-weight"),s=o.getPropertyValue("font-size"),l=o.getPropertyValue("font-family");r.font="".concat(a," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';t.forEach((function(t){n=Math.max(r.measureText(t.toString()).width,n)}))}return n};function Q(t){var e=t.tooltipCls,n=t.xAxis,r=t.id;if(null===n)return null;for(var i=(0,w.Ys)("body").append("div").attr("id",r).attr("class",e).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(t){var e=u[t];(0,w.Ys)(e).on("mouseover",(function(e){i.style("opacity",.9),i.html(s[t]).style("left",w.B.pageX+"px").style("top",w.B.pageY-28+"px")})).on("mouseout",(function(t){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function tt(t){var e=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(e=t.data[0].x instanceof Date)})),e}function et(t,e,n,i,o,a,s,l,c){var u;if(a===C.NumericAxis)switch(i){case b.AreaChart:case b.LineChart:u=function(t,e,n,r){var i=(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.x}))})),o=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.x}))})),a=e.left,s=n-e.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(t,e,n,o);break;case b.VerticalStackedBarChart:u=function(t,e,n,r,i){var o=(0,S.Z)(t,(function(t){return t.x})),a=(0,A.Z)(t,(function(t){return t.x})),s=e.left+i/2,l=n-e.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case b.VerticalBarChart:u=function(t,e,n,r,i){var o=(0,A.Z)(t,(function(t){return t.x})),a=(0,S.Z)(t,(function(t){return t.x})),s=e.left+i/2,l=n-e.right-i/2;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case b.HorizontalBarChartWithAxis:u=function(t,e,n,r,i){var o=(0,A.Z)(t,(function(t){return t.x})),a=r?e.left:e.left+i,s=r?n-e.right-i:n-e.right;return r?{dStartValue:o,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:o,rStartValue:a,rEndValue:s}}(t,e,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===C.DateAxis)switch(i){case b.AreaChart:case b.LineChart:case b.VerticalBarChart:case b.VerticalStackedBarChart:u=function(t,e,n,i,o,a,s){var l,c;void 0===o&&(o=[]),a===b.AreaChart||a===b.LineChart?(l=(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.x}))})),c=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.x}))})),l=(0,S.Z)((0,r.ev)((0,r.ev)([],o,!0),[l],!1)),c=(0,A.Z)((0,r.ev)((0,r.ev)([],o,!0),[c],!1))):(l=(0,S.Z)(t,(function(t){return t.x})),c=(0,A.Z)(t,(function(t){return t.x})));var u=e.left+(s?s/2:0),d=n-e.right-(s?s/2:0);return i?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(t,e,n,o,l,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(i){case b.VerticalStackedBarChart:case b.GroupedVerticalBarChart:case b.VerticalBarChart:case b.HeatMapChart:u=function(t,e,n){var r=t.left,i=e-t.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(e,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function nt(t,e,n){var r,i,o;switch(void 0===n&&(n=E.NumericAxis),e){case b.AreaChart:case b.LineChart:r=function(t){var e=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.y}))}));return{startValue:(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.y}))})),endValue:e}}(t);break;case b.VerticalStackedBarChart:i=t,o=(0,A.Z)(i,(function(t){return t.y})),r={startValue:(0,S.Z)(i,(function(t){return t.y})),endValue:o};break;case b.VerticalBarChart:r=function(t){var e=(0,A.Z)(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:(0,S.Z)(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:e}}(t);break;case b.HorizontalBarChartWithAxis:r=function(t,e){if(void 0!==e&&e===E.NumericAxis){var n=(0,A.Z)(t,(function(t){return t.y}));return{startValue:(0,S.Z)(t,(function(t){return t.y})),endValue:n}}return{startValue:0,endValue:0}}(t,n);break;default:r={startValue:0,endValue:0}}return r}var rt,it,ot=function(t,e){if(e)switch(typeof t){case"string":return C.StringAxis;case"number":return C.NumericAxis;default:return C.DateAxis}else switch(typeof t){case"string":return E.StringAxis;case"number":return E.NumericAxis;default:return E.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(rt||(rt={})),function(t){t[t.dottedLine=0]="dottedLine"}(it||(it={}));var at=((x={})[rt.circle]={widthRatio:1},x[rt.square]={widthRatio:1},x[rt.triangle]={widthRatio:1},x[rt.diamond]={widthRatio:1},x[rt.pyramid]={widthRatio:1},x[rt.hexagon]={widthRatio:2},x[rt.pentagon]={widthRatio:1.168},x[rt.octagon]={widthRatio:2.414},x),st=function(t,e,n){return void 0===e&&(e="text"),void 0===n&&(n=!0),{role:e,"data-is-focusable":n,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},lt=function(t,e){return t?(e=e||void 0,"number"==typeof t?t.toLocaleString(e):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(e):t:Number(t).toLocaleString(e)):t};function ct(t){var e=t.node,n=t.xAxis;if(null!==e&&null!==n){var r=0,i=[];(0,w.Ys)(e).call(n).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var e=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===e.length&&(i.push(e[0]),this.setAttribute("transform","translate(".concat(e[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return(0,w.Ys)(e).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate(".concat(i[o],",").concat(r/2,")rotate(-45)")),o+=1)})),Math.floor(r/1.414)}}function ut(t,e){var n=0;(0,w.td)(".".concat(t)).each((function(){for(var t=(0,w.Ys)(this),r=t.text().split(/\s+/).reverse(),i="",o=[],a=0,s=t.attr("y"),l=t.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>e&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=t.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))}function dt(t){var e;return e=t<1e3?".2~":".1",(0,D.jH)(e,t)(t)}},9785:function(t,e,n){function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},7329:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(9785);function i(t){let e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>(0,r.Z)(t(e),n)}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}},8957:function(t,e,n){function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},5561:function(t,e,n){function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},6077:function(t,e,n){n.d(e,{x:function(){return o}});var r={},i=void 0;try{i=window}catch(t){}function o(t,e){if(void 0!==i){var n=i.__packages__=i.__packages__||{};n[t]&&r[t]||(r[t]=e,(n[t]=n[t]||[]).push(e))}}o("@fluentui/set-version","6.0.0")},1786:function(t,e,n){n.d(e,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return tt.TS},lq:function(){return tt.lq},qJ:function(){return et},$v:function(){return nt},bR:function(){return $},e2:function(){return ot},GL:function(){return it},Cn:function(){return lt},gh:function(){return At},ul:function(){return at}});var r=n(13),i=n(4473),o=n(5499),a=n(7373);function s(t){var e=o.Y.getInstance(),n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r,"{",(0,a.dH)((0,i.Eo)(),t[r]),"}");var s=n.join(""),l=e.classNameFromKey(s);if(l)return l;var c=e.getClassName();return e.insertRule("@keyframes ".concat(c,"{").concat(s,"}"),!0),e.cacheClassName(c,s,[],["keyframes",s]),c}var l="cubic-bezier(.1,.9,.2,1)",c="cubic-bezier(.1,.25,.75,.9)",u="0.167s",d="0.267s",h="0.367s",p="0.467s",f=s({from:{opacity:0},to:{opacity:1}}),g=s({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),m=U(-10),v=U(-20),_=U(-40),y=U(-400),x=U(10),b=U(20),C=U(40),E=U(400),S=j(10),A=j(20),L=j(-10),k=j(-20),T=G(10),w=G(20),D=G(40),M=G(400),P=G(-10),F=G(-20),I=G(-40),N=G(-400),V=K(-10),O=K(-20),B=K(10),H=K(20),R=s({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),z=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),W=s({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Y=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Z=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),q=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(t,e,n){return{animationName:t,animationDuration:e,animationTimingFunction:n,animationFillMode:"both"}}function U(t){return s({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function j(t){return s({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(t){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function K(t){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var $,J=function(t){var e={},n=function(n){var i;t.hasOwnProperty(n)&&Object.defineProperty(e,n,{get:function(){return void 0===i&&(i=(0,r.y)(t[n]).toString()),i},enumerable:!0,configurable:!0})};for(var i in t)n(i);return e}({slideRightIn10:X("".concat(f,",").concat(m),h,l),slideRightIn20:X("".concat(f,",").concat(v),h,l),slideRightIn40:X("".concat(f,",").concat(_),h,l),slideRightIn400:X("".concat(f,",").concat(y),h,l),slideLeftIn10:X("".concat(f,",").concat(x),h,l),slideLeftIn20:X("".concat(f,",").concat(b),h,l),slideLeftIn40:X("".concat(f,",").concat(C),h,l),slideLeftIn400:X("".concat(f,",").concat(E),h,l),slideUpIn10:X("".concat(f,",").concat(S),h,l),slideUpIn20:X("".concat(f,",").concat(A),h,l),slideDownIn10:X("".concat(f,",").concat(L),h,l),slideDownIn20:X("".concat(f,",").concat(k),h,l),slideRightOut10:X("".concat(g,",").concat(T),h,l),slideRightOut20:X("".concat(g,",").concat(w),h,l),slideRightOut40:X("".concat(g,",").concat(D),h,l),slideRightOut400:X("".concat(g,",").concat(M),h,l),slideLeftOut10:X("".concat(g,",").concat(P),h,l),slideLeftOut20:X("".concat(g,",").concat(F),h,l),slideLeftOut40:X("".concat(g,",").concat(I),h,l),slideLeftOut400:X("".concat(g,",").concat(N),h,l),slideUpOut10:X("".concat(g,",").concat(V),h,l),slideUpOut20:X("".concat(g,",").concat(O),h,l),slideDownOut10:X("".concat(g,",").concat(B),h,l),slideDownOut20:X("".concat(g,",").concat(H),h,l),scaleUpIn100:X("".concat(f,",").concat(R),h,l),scaleDownIn100:X("".concat(f,",").concat(W),h,l),scaleUpOut103:X("".concat(g,",").concat(Y),u,c),scaleDownOut98:X("".concat(g,",").concat(z),u,c),fadeIn100:X(f,u,c),fadeIn200:X(f,d,c),fadeIn400:X(f,h,c),fadeIn500:X(f,p,c),fadeOut100:X(g,u,c),fadeOut200:X(g,d,c),fadeOut400:X(g,h,c),fadeOut500:X(g,p,c),rotate90deg:X(Z,"0.1s",c),rotateN90deg:X(q,"0.1s",c)}),Q=n(7045),tt=n(8473),et="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",nt="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=n(9766);function it(t,e,n,r,i,o,a,s){return function(t,e){var n,r;void 0===e&&(e={});var i=e.borderRadius,o=e.inset,a=void 0===o?0:o,s=e.width,l=void 0===s?1:s,c=e.position,u=void 0===c?"relative":c,d=e.highContrastStyle,h=e.borderColor,p=void 0===h?t.palette.white:h,f=e.outlineColor,g=void 0===f?t.palette.neutralSecondary:f,m=e.isFocusedOnly,v=void 0===m||m,_=e.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(rt.G$," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:$.FocusStyle,borderRadius:i,selectors:(r={},r[et]=d,r)},n)}}(t,"number"!=typeof e&&e?e:{inset:e,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a,borderRadius:s})}function ot(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}($||($={}));var at={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},st=(0,n(156).NF)((function(t,e){var n=o.Y.getInstance();return e?Object.keys(t).reduce((function(e,r){return e[r]=n.getClassName(t[r]),e}),{}):t}));function lt(t,e,n){return st(t,void 0!==n?n:e.disableGlobalClassNames)}var ct,ut=n(9939),dt=n(3820),ht=n(775),pt=function(){return pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pt.apply(this,arguments)},ft="undefined"==typeof window?n.g:window,gt=ft&&ft.CSPSettings&&ft.CSPSettings.nonce,mt=((ct=ft.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ct=pt({},ct,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ct.registeredThemableStyles||(ct=pt({},ct,{registeredThemableStyles:[]})),ft.__themeState__=ct,ct);function vt(t){mt.theme=t,function(){if(mt.theme){for(var t=[],e=0,n=mt.registeredThemableStyles;e<n.length;e++){var r=n[e];t.push(r.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(_t(mt.registeredStyles),mt.registeredStyles=[]),3!==o&&1!==o||(_t(mt.registeredThemableStyles),mt.registeredThemableStyles=[]),i=[].concat.apply([],t),mt.loadStyles?mt.loadStyles(yt(i).styleString,i):function(t){if("undefined"!=typeof document){var e=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=yt(t),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",gt&&n.setAttribute("nonce",gt),n.appendChild(document.createTextNode(i)),mt.perf.count++,e.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:t};o?mt.registeredThemableStyles.push(s):mt.registeredStyles.push(s)}}(i))}var i,o}()}function _t(t){t.forEach((function(t){var e=t&&t.styleElement;e&&e.parentElement&&e.parentElement.removeChild(e)}))}function yt(t){var e=mt.theme,n=!1;return{styleString:(t||[]).map((function(t){var r=t.theme;if(r){n=!0;var i=e?e[r]:void 0,o=t.defaultValue||"inherit";return e&&!i&&console&&!(r in e)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return t.rawString})).join(""),themable:n}}var xt=n(685),bt=(0,xt.j)({}),Ct=[],Et="theme";function St(){var t,e,n,r=(0,dt.J)();(null===(e=null==r?void 0:r.FabricConfig)||void 0===e?void 0:e.legacyTheme)?function(t,e){var n;void 0===e&&(e=!1),bt=(0,xt.j)(t,e),vt((0,ut.pi)((0,ut.pi)((0,ut.pi)((0,ut.pi)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var e={},n=0,r=Object.keys(t.fonts);n<r.length;n++)for(var i=r[n],o=t.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],c=i+l.charAt(0).toUpperCase()+l.slice(1),u=o[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),e[c]=u}return e}(bt))),ht.X.applySettings(((n={})[Et]=bt,n)),Ct.forEach((function(t){try{t(bt)}catch(t){}}))}(r.FabricConfig.legacyTheme):ht.X.getSettings([Et]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(bt=(0,xt.j)(r.FabricConfig.theme)),ht.X.applySettings(((t={})[Et]=bt,t)))}function At(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,xt.j)({},t)),bt}St(),(0,n(6077).x)("@fluentui/style-utilities","8.10.3"),St()},7045:function(t,e,n){n.d(e,{U:function(){return r}});var r={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},685:function(t,e,n){n.d(e,{j:function(){return P}});var r,i=n(7045);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}));var o={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=n(4473),s=n(5499),l=n(7373),c=n(8473),u="'Segoe UI', '".concat(c.Qm.WestEuropean,"'"),d={ar:c.II.Arabic,bg:c.II.Cyrillic,cs:c.II.EastEuropean,el:c.II.Greek,et:c.II.EastEuropean,he:c.II.Hebrew,hi:c.II.Hindi,hr:c.II.EastEuropean,hu:c.II.EastEuropean,ja:c.II.Japanese,kk:c.II.EastEuropean,ko:c.II.Korean,lt:c.II.EastEuropean,lv:c.II.EastEuropean,pl:c.II.EastEuropean,ru:c.II.Cyrillic,sk:c.II.EastEuropean,"sr-latn":c.II.EastEuropean,th:c.II.Thai,tr:c.II.EastEuropean,uk:c.II.Cyrillic,vi:c.II.Vietnamese,"zh-hans":c.II.ChineseSimplified,"zh-hant":c.II.ChineseTraditional,hy:c.II.Armenian,ka:c.II.Georgian};function h(t,e,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:e}}var p,f,g,m,v,_,y=n(2874),x=n(3820),b=n(5114),C="language",E=(f=function(t){for(var e in d)if(d.hasOwnProperty(e)&&t&&0===e.indexOf(t))return d[e];return u}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===p){var e=(0,y.M)(),n="localStorage"===t?function(t){var e=null;try{var n=(0,x.J)();e=n?n.localStorage.getItem(t):null}catch(t){}return e}(C):"sessionStorage"===t?b.r(C):void 0;n&&(p=n),void 0===p&&e&&(p=e.documentElement.getAttribute("lang")),void 0===p&&(p="en")}return p}()),g="".concat(f,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(c.TS.mini,c.lq.regular,g),xSmall:h(c.TS.xSmall,c.lq.regular,g),small:h(c.TS.small,c.lq.regular,g),smallPlus:h(c.TS.smallPlus,c.lq.regular,g),medium:h(c.TS.medium,c.lq.regular,g),mediumPlus:h(c.TS.mediumPlus,c.lq.regular,g),large:h(c.TS.large,c.lq.regular,g),xLarge:h(c.TS.xLarge,c.lq.semibold,g),xLargePlus:h(c.TS.xLargePlus,c.lq.semibold,g),xxLarge:h(c.TS.xxLarge,c.lq.semibold,g),xxLargePlus:h(c.TS.xxLargePlus,c.lq.semibold,g),superLarge:h(c.TS.superLarge,c.lq.semibold,g),mega:h(c.TS.mega,c.lq.semibold,g)});function S(t,e,n,r){!function(t){var e=s.Y.getInstance(),n=(0,l.dH)((0,a.Eo)(),t);if(!e.classNameFromKey(n)){var r=e.getClassName();e.insertRule("@font-face{".concat(n,"}"),!0),e.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(e,".woff2') format('woff2'),")+"url('".concat(e,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function A(t,e,n,r,i){void 0===r&&(r="segoeui");var o="".concat(t,"/").concat(n,"/").concat(r);S(e,o+"-light",c.lq.light,i&&i+" Light"),S(e,o+"-semilight",c.lq.semilight,i&&i+" SemiLight"),S(e,o+"-regular",c.lq.regular,i),S(e,o+"-semibold",c.lq.semibold,i&&i+" SemiBold"),S(e,o+"-bold",c.lq.bold,i&&i+" Bold")}function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++)k(t||{},i[r]);return t}function k(t,e,n){for(var r in void 0===n&&(n=[]),n.push(e),e)if(e.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=e[r];if("object"!=typeof i||null===i||Array.isArray(i))t[r]=i;else{var o=n.indexOf(i)>-1;t[r]=o?i:k(t[r]||{},i,n)}}return n.pop(),t}!function(t){if(t){var e="".concat(t,"/fonts");A(e,c.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),A(e,c.Qm.Arabic,"segoeui-arabic"),A(e,c.Qm.Cyrillic,"segoeui-cyrillic"),A(e,c.Qm.EastEuropean,"segoeui-easteuropean"),A(e,c.Qm.Greek,"segoeui-greek"),A(e,c.Qm.Hebrew,"segoeui-hebrew"),A(e,c.Qm.Vietnamese,"segoeui-vietnamese"),A(e,c.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),A(e,c.II.Selawik,"selawik","selawik"),A(e,c.Qm.Armenian,"segoeui-armenian"),A(e,c.Qm.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-semilight"),c.lq.light),S("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-bold"),c.lq.semibold)}}((_=null===(m=(0,x.J)())||void 0===m?void 0:m.FabricConfig,null!==(v=null==_?void 0:_.fontBaseUrl)&&void 0!==v?v:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var T=n(9939);function w(t,e,n,r,i){return void 0===i&&(i=!1),function(t,e){var n="";return!0===e&&(n=" /* @deprecated */"),t.listTextColor=t.listText+n,t.menuItemBackgroundChecked+=n,t.warningHighlight+=n,t.warningText=t.messageText+n,t.successText+=n,t}(D(t,e,(0,T.pi)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),i)}function D(t,e,n,r,i){void 0===i&&(i=!1);var o={},a=t||{},s=a.white,l=a.black,c=a.themePrimary,u=a.themeDark,d=a.themeDarker,h=a.themeDarkAlt,p=a.themeLighter,f=a.neutralLight,g=a.neutralLighter,m=a.neutralDark,v=a.neutralQuaternary,_=a.neutralQuaternaryAlt,y=a.neutralPrimary,x=a.neutralSecondary,b=a.neutralSecondaryAlt,C=a.neutralTertiary,E=a.neutralTertiaryAlt,S=a.neutralLighterAlt,A=a.accent;return s&&(o.bodyBackground=s,o.bodyFrameBackground=s,o.accentButtonText=s,o.buttonBackground=s,o.primaryButtonText=s,o.primaryButtonTextHovered=s,o.primaryButtonTextPressed=s,o.inputBackground=s,o.inputForegroundChecked=s,o.listBackground=s,o.menuBackground=s,o.cardStandoutBackground=s),l&&(o.bodyTextChecked=l,o.buttonTextCheckedHovered=l),c&&(o.link=c,o.primaryButtonBackground=c,o.inputBackgroundChecked=c,o.inputIcon=c,o.inputFocusBorderAlt=c,o.menuIcon=c,o.menuHeader=c,o.accentButtonBackground=c),u&&(o.primaryButtonBackgroundPressed=u,o.inputBackgroundCheckedHovered=u,o.inputIconHovered=u),d&&(o.linkHovered=d),h&&(o.primaryButtonBackgroundHovered=h),p&&(o.inputPlaceholderBackgroundChecked=p),f&&(o.bodyBackgroundChecked=f,o.bodyFrameDivider=f,o.bodyDivider=f,o.variantBorder=f,o.buttonBackgroundCheckedHovered=f,o.buttonBackgroundPressed=f,o.listItemBackgroundChecked=f,o.listHeaderBackgroundPressed=f,o.menuItemBackgroundPressed=f,o.menuItemBackgroundChecked=f),g&&(o.bodyBackgroundHovered=g,o.buttonBackgroundHovered=g,o.buttonBackgroundDisabled=g,o.buttonBorderDisabled=g,o.primaryButtonBackgroundDisabled=g,o.disabledBackground=g,o.listItemBackgroundHovered=g,o.listHeaderBackgroundHovered=g,o.menuItemBackgroundHovered=g),v&&(o.primaryButtonTextDisabled=v,o.disabledSubtext=v),_&&(o.listItemBackgroundCheckedHovered=_),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),S&&(o.bodyStandoutBackground=S,o.defaultStateBackground=S),m&&(o.actionLinkHovered=m,o.buttonTextHovered=m,o.buttonTextChecked=m,o.buttonTextPressed=m,o.inputTextHovered=m,o.menuItemTextHovered=m),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),b&&(o.buttonBorder=b),E&&(o.disabledBodySubtext=E,o.disabledBorder=E,o.buttonBackgroundChecked=E,o.menuDivider=E),A&&(o.accentButtonBackground=A),(null==e?void 0:e.elevation4)&&(o.cardShadow=e.elevation4),!r&&(null==e?void 0:e.elevation8)?o.cardShadowHovered=e.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,T.pi)((0,T.pi)({},o),n)}var M={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function P(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=!!t.isInverted;return function(t,e){var n,r,i;void 0===e&&(e={});var o=L({},t,e,{semanticColors:D(e.palette,e.effects,e.semanticColors,void 0===e.isInverted?t.isInverted:e.isInverted)});if((null===(n=e.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=e.palette)||void 0===r?void 0:r.accent)&&(o.palette.accent=e.palette.themePrimary),e.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a<s.length;a++){var l=s[a];o.fonts[l]=L(o.fonts[l],e.defaultFontStyle,null===(i=null==e?void 0:e.fonts)||void 0===i?void 0:i[l])}return o}({palette:i.U,effects:o,fonts:E,spacing:M,isInverted:n,disableGlobalClassNames:!1,semanticColors:w(i.U,o,void 0,n,e),rtl:void 0},t)}},8473:function(t,e,n){var r,i,o,a,s;n.d(e,{II:function(){return i},Qm:function(){return r},TS:function(){return o},lq:function(){return a}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(t){t.Arabic="'".concat(r.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(r.Cyrillic,"'"),t.EastEuropean="'".concat(r.EastEuropean,"'"),t.Greek="'".concat(r.Greek,"'"),t.Hebrew="'".concat(r.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(r.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(r.Vietnamese,"'"),t.WestEuropean="'".concat(r.WestEuropean,"'"),t.Armenian="'".concat(r.Armenian,"'"),t.Georgian="'".concat(r.Georgian,"'")}(i||(i={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(s||(s={}))},8461:function(t,e,n){n.d(e,{y:function(){return f}});var r=n(5499),i=n(4270),o=n(3802),a=n(7373);var s=n(116),l=n(3820),c=50,u=5,d=0,h=r.Y.getInstance();h&&h.onReset&&h.onReset((function(){return d++}));var p="__retval__";function f(t){void 0===t&&(t={});var e=new Map,n=0,r=0,h=d;return function(f,g){var v;if(void 0===g&&(g={}),t.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(g);r++;var _=e,y=g.theme,x=y&&void 0!==y.rtl?y.rtl:(0,s.zg)(),b=t.disableCaching;if(h!==d&&(h=d,e=new Map,n=0),t.disableCaching||(_=m(e,f),_=m(_,g)),!b&&_[p]||(_[p]=void 0===f?{}:function(t,e){var n={subComponentStyles:{}};if(!t[0]&&t.length<=1)return{subComponentStyles:{}};var r=i.m.apply(void 0,t),s=[];for(var l in r)if(r.hasOwnProperty(l)){if("subComponentStyles"===l){n.subComponentStyles=r.subComponentStyles||{};continue}var c=r[l],u=(0,o.U)(c),d=u.classes,h=u.objects;(null==h?void 0:h.length)?(g=(0,a.aj)(e||{},{displayName:l},h))&&(s.push(g),n[l]=d.concat([g.className]).join(" ")):n[l]=d.join(" ")}for(var p=0,f=s;p<f.length;p++){var g;(g=f[p])&&(0,a.Jh)(g,null==e?void 0:e.specificityMultiplier)}return n}(["function"==typeof f?f(g):f],{rtl:!!x,specificityMultiplier:t.useStaticStyles?u:void 0}),b||n++),n>(t.cacheSize||c)){var C=(0,l.J)();(null===(v=null==C?void 0:C.FabricConfig)||void 0===v?void 0:v.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),e.clear(),n=0,t.disableCaching=!0}return _[p]}}function g(t,e){return e=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(e),t.has(e)||t.set(e,new Map),t.get(e)}function m(t,e){if("function"==typeof e)if(e.__cachedInputs__)for(var n=0,r=e.__cachedInputs__;n<r.length;n++)t=g(t,r[n]);else t=g(t,e);else if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&(t=g(t,e[i]));return t}},775:function(t,e,n){n.d(e,{X:function(){return f}});var r=n(9939),i=n(3820),o="__globalSettings__",a="__callbacks__",s=0,l=function(){function t(){}return t.getValue=function(t,e){var n=c();return void 0===n[t]&&(n[t]="function"==typeof e?e():e),n[t]},t.setValue=function(t,e){var n=c(),r=n[a],i=n[t];if(e!==i){n[t]=e;var o={oldValue:i,value:e,key:t};for(var s in r)r.hasOwnProperty(s)&&r[s](o)}return e},t.addChangeListener=function(t){var e=t.__id__,n=u();e||(e=t.__id__=String(s++)),n[e]=t},t.removeChangeListener=function(t){delete u()[t.__id__]},t}();function c(){var t,e=(0,i.J)()||{};return e[o]||(e[o]=((t={})[a]={},t)),e[o]}function u(){return c()[a]}var d={settings:{},scopedSettings:{},inCustomizerContext:!1},h=l.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),p=[],f=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(e){h.settings=(0,r.pi)((0,r.pi)({},h.settings),e),t._raiseChange()},t.applyScopedSettings=function(e,n){h.scopedSettings[e]=(0,r.pi)((0,r.pi)({},h.scopedSettings[e]),n),t._raiseChange()},t.getSettings=function(t,e,n){void 0===n&&(n=d);for(var r={},i=e&&n.scopedSettings[e]||{},o=e&&h.scopedSettings[e]||{},a=0,s=t;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||h.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(t){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(t){p.push(t)},t.unobserve=function(t){p=p.filter((function(e){return e!==t}))},t._raiseChange=function(){t._suppressUpdates||p.forEach((function(t){return t()}))},t}()},2049:function(t,e,n){n.d(e,{i:function(){return r}});var r=n(7363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8873:function(t,e,n){function r(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}n.d(e,{N:function(){return r}})},2874:function(t,e,n){n.d(e,{M:function(){return i}});var r=n(8873);function i(t){if((0,r.N)()&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}},3820:function(t,e,n){n.d(e,{J:function(){return o}});var r=n(8873),i=void 0;try{i=window}catch(t){}function o(t){if((0,r.N)()&&void 0!==i){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:i}}},156:function(t,e,n){n.d(e,{Ct:function(){return d},NF:function(){return u}});var r=n(5499),i=!1,o=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(){o++}function u(t,e,n){if(void 0===e&&(e=100),void 0===n&&(n=!1),!l)return t;if(!i){var u=r.Y.getInstance();u&&u.onReset&&r.Y.getInstance().onReset(c),i=!0}var d,p=0,f=o;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var l,c=d;(void 0===d||f!==o||e>0&&p>e)&&(d=h(),p=0,f=o),c=d;for(var u=0;u<r.length;u++){var g=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(s[l]||(s[l]={val:l}),s[l]):a;c.map.has(g)||c.map.set(g,h()),c=c.map.get(g)}return c.hasOwnProperty("value")||(c.value=t.apply(void 0,r),p++),!n||null!==c.value&&void 0!==c.value||(c.value=t.apply(void 0,r)),c.value}}function d(t){if(!l)return t;var e=new l;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return t(n);if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}}function h(){return{map:l?new l:null}}},116:function(t,e,n){n.d(e,{zg:function(){return l}});var r,i=n(2874),o=n(5114),a=n(4473),s="isRTL";function l(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===r){var e=(0,o.r)(s);null!==e&&function(t,e){void 0===e&&(e=!1);var n=(0,i.M)();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr"),e&&(0,o.L)(s,t?"1":"0"),r=t,(0,a.ok)(r)}(r="1"===e);var n=(0,i.M)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,a.ok)(r))}return!!r}},5114:function(t,e,n){n.d(e,{L:function(){return o},r:function(){return i}});var r=n(3820);function i(t){var e=null;try{var n=(0,r.J)();e=n?n.sessionStorage.getItem(t):null}catch(t){}return e}function o(t,e){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(t,e)}catch(t){}}},9766:function(t,e,n){n.d(e,{G$:function(){return r}});var r="ms-Fabric--isFocusVisible"},9085:function(t,e,n){n.d(e,{z:function(){return c}});var r=n(9939),i=n(7363),o=n(4270),a=n(775),s=n(2049);var l=["theme","styles"];function c(t,e,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,h=c.fields,p=void 0===h?l:h,f=i.forwardRef((function(l,c){var u,h,f,g,m,v,_=i.useRef(),y=(u=p,h=d,f=i.useState(0)[1],g=function(){return f((function(t){return++t}))},m=i.useContext(s.i).customizations,v=m.inCustomizerContext,i.useEffect((function(){return v||a.X.observe(g),function(){v||a.X.unobserve(g)}}),[v]),a.X.getSettings(u,h,m)),x=y.styles,b=(y.dir,(0,r._T)(y,["styles","dir"])),C=n?n(l):void 0,E=_.current&&_.current.__cachedInputs__||[],S=l.styles;if(!_.current||x!==E[1]||S!==E[2]){var A=function(t){return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=[],i=0,a=e;i<a.length;i++){var s=a[i];s&&r.push("function"==typeof s?s(t):s)}return 1===r.length?r[0]:r.length?o.m.apply(void 0,r):{}}(t,e,x,S)};A.__cachedInputs__=[e,x,S],A.__noStyleOverride__=!x&&!S,_.current=A}return i.createElement(t,(0,r.pi)({ref:c},b,C,l,{styles:_.current}))}));f.displayName="Styled".concat(t.displayName||t.name);var g=u?i.memo(f):f;return f.displayName&&(g.displayName=f.displayName),g}},7363:function(t){t.exports=React},6775:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(9941),i=n(5795);function o(){var t,e,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,c=1,u=!1,d=0,h=0,p=.5;function f(){var n=a().length,r=c<l,i=r?c:l,o=r?l:c;t=(o-i)/Math.max(1,n-d+2*h),u&&(t=Math.floor(t)),i+=(o-i-t*(n-d))*p,e=t*(1-d),u&&(i=Math.round(i),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return i+t*e}));return s(r?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),f()):a()},n.range=function(t){return arguments.length?([l,c]=t,l=+l,c=+c,f()):[l,c]},n.rangeRound=function(t){return[l,c]=t,l=+l,c=+c,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(d=Math.min(1,h=+t),f()):d},n.paddingInner=function(t){return arguments.length?(d=Math.min(1,t),f()):d},n.paddingOuter=function(t){return arguments.length?(h=+t,f()):h},n.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),f()):p},n.copy=function(){return o(a(),[l,c]).round(u).paddingInner(d).paddingOuter(h).align(p)},r.o.apply(f(),arguments)}},7451:function(t,e,n){n.d(e,{JG:function(){return ot},ZP:function(){return at}});var r=n(9785),i=n(7329);const o=(0,i.Z)(r.Z),a=o.right;o.left,(0,i.Z)((function(t){return null===t?NaN:+t})).center;var s=a;function l(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function c(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function u(){}var d=.7,h=1/d,p="\\s*([+-]?\\d+)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",g="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m=/^#([0-9a-f]{3,8})$/,v=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),_=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),y=new RegExp("^rgba\\("+[p,p,p,f]+"\\)$"),x=new RegExp("^rgba\\("+[g,g,g,f]+"\\)$"),b=new RegExp("^hsl\\("+[f,g,g]+"\\)$"),C=new RegExp("^hsla\\("+[f,g,g,f]+"\\)$"),E={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 S(){return this.rgb().formatHex()}function A(){return this.rgb().formatRgb()}function L(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=m.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?k(e):3===n?new D(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new D(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new D(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=v.exec(t))?new D(e[1],e[2],e[3],1):(e=_.exec(t))?new D(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=y.exec(t))?T(e[1],e[2],e[3],e[4]):(e=x.exec(t))?T(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=b.exec(t))?I(e[1],e[2]/100,e[3]/100,1):(e=C.exec(t))?I(e[1],e[2]/100,e[3]/100,e[4]):E.hasOwnProperty(t)?k(E[t]):"transparent"===t?new D(NaN,NaN,NaN,0):null}function k(t){return new D(t>>16&255,t>>8&255,255&t,1)}function T(t,e,n,r){return r<=0&&(t=e=n=NaN),new D(t,e,n,r)}function w(t,e,n,r){return 1===arguments.length?((i=t)instanceof u||(i=L(i)),i?new D((i=i.rgb()).r,i.g,i.b,i.opacity):new D):new D(t,e,n,null==r?1:r);var i}function D(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function M(){return"#"+F(this.r)+F(this.g)+F(this.b)}function P(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function F(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function I(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new V(t,e,n,r)}function N(t){if(t instanceof V)return new V(t.h,t.s,t.l,t.opacity);if(t instanceof u||(t=L(t)),!t)return new V;if(t instanceof V)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new V(a,s,l,t.opacity)}function V(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function O(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function B(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function H(t){return function(){return t}}function R(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):H(isNaN(t)?e:t)}l(u,L,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:S,formatHex:S,formatHsl:function(){return N(this).formatHsl()},formatRgb:A,toString:A}),l(D,w,c(u,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new D(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new D(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:M,formatHex:M,formatRgb:P,toString:P})),l(V,(function(t,e,n,r){return 1===arguments.length?N(t):new V(t,e,n,null==r?1:r)}),c(u,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new V(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new V(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new D(O(t>=240?t-240:t+120,i,r),O(t,i,r),O(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var z=function t(e){var n=function(t){return 1==(t=+t)?R:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):H(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=w(t)).r,(e=w(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=R(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function W(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=w(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function Y(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=$(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Z(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function q(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function X(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=$(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}W((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return B((n-r/e)*e,a,i,o,s)}})),W((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return B((n-r/e)*e,i,o,a,s)}}));var U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j=new RegExp(U.source,"g");function G(t,e){var n,r,i,o=U.lastIndex=j.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=U.exec(t))&&(r=j.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:q(n,r)})),o=j.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function K(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function $(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?H(e):("number"===i?q:"string"===i?(n=L(e))?(e=n,z):G:e instanceof L?z:e instanceof Date?Z:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Y:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?X:q:K))(t,e)}function J(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Q(t){return+t}var tt=[0,1];function et(t){return t}function nt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function rt(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=nt(i,r),o=n(a,o)):(r=nt(r,i),o=n(o,a)),function(t){return o(r(t))}}function it(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=nt(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=s(t,e,1,r)-1;return o[n](i[n](e))}}function ot(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function at(){return function(){var t,e,n,r,i,o,a=tt,s=tt,l=$,c=et;function u(){var t,e,n,l=Math.min(a.length,s.length);return c!==et&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?it:rt,i=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return d.invert=function(n){return c(e((o||(o=r(s,a.map(t),q)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,Q),u()):a.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),l=J,u()},d.clamp=function(t){return arguments.length?(c=!!t||et,u()):c!==et},d.interpolate=function(t){return arguments.length?(l=t,u()):l},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,u()}}()(et,et)}},9941:function(t,e,n){function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{o:function(){return r}})},8815:function(t,e,n){n.d(e,{Z:function(){return p}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var a=(e-t)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,s);return s>=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}var s=n(7451),l=n(9941),c=n(4116),u=n(4783),d=n(1783);function h(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,s,l=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(s=a(t,e,n))||!isFinite(s))return[];if(s>0){let n=Math.round(t/s),r=Math.round(e/s);for(n*s<t&&++n,r*s>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)*s}else{s=-s;let n=Math.round(t*s),r=Math.round(e*s);for(n/s<t&&++n,r/s>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)/s}return r&&o.reverse(),o}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var a=e();return function(t,e,n,a){var s,l=function(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),e<t?-s:s}(t,e,n);switch((a=(0,c.Z)(null==a?",f":a)).type){case"s":var h=Math.max(Math.abs(t),Math.abs(e));return null!=a.precision||isNaN(s=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,u.Z)(e)/3)))-(0,u.Z)(Math.abs(t)))}(l,h))||(a.precision=s),(0,d.jH)(a,h);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(s=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,u.Z)(e)-(0,u.Z)(t))+1}(l,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=s-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(s=function(t){return Math.max(0,-(0,u.Z)(Math.abs(t)))}(l))||(a.precision=s-2*("%"===a.type))}return(0,d.WU)(a)}(a[0],a[a.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,l=o.length-1,c=o[s],u=o[l],d=10;for(u<c&&(i=c,c=u,u=i,i=s,s=l,l=i);d-- >0;){if((i=a(c,u,n))===r)return o[s]=c,o[l]=u,e(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function p(){var t=(0,s.ZP)();return t.copy=function(){return(0,s.JG)(t,p())},l.o.apply(t,arguments),h(t)}},5795:function(t,e,n){n.d(e,{Z:function(){return d}});class r extends Map{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(a(this,t),e)}delete(t){return super.delete(s(this,t))}}class i extends Set{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(o(this,t))}add(t){return super.add(a(this,t))}delete(t){return super.delete(s(this,t))}}function o({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function a({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function s({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function l(t){return null!==t&&"object"==typeof t?t.valueOf():t}var c=n(9941);const u=Symbol("implicit");function d(){var t=new r,e=[],n=[],i=u;function o(r){let o=t.get(r);if(void 0===o){if(i!==u)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return d(e,n).unknown(i)},c.o.apply(o,arguments),o}},8639:function(t,e,n){n.d(e,{Z:function(){return B}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),e<t?-s:s}var s=n(4827),l=n(4315),c=(0,l.Z)((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,l.Z)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):c:null};var u=c,d=(c.range,n(87)),h=n(4189),p=n(5401),f=n(3645),g=n(2167),m=n(9604),v=n(9507),_=(0,l.Z)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*s.yB)}),(function(t,e){return(e-t)/s.yB}),(function(t){return t.getUTCMinutes()})),y=_,x=(_.range,(0,l.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*s.Y2)}),(function(t,e){return(e-t)/s.Y2}),(function(t){return t.getUTCHours()}))),b=x,C=(x.range,n(2605)),E=n(3787),S=(0,l.Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),A=S,L=(S.range,n(2527));function k(t,e,n,r,i,o){const l=[[d.Z,1,s.Ym],[d.Z,5,5*s.Ym],[d.Z,15,15*s.Ym],[d.Z,30,30*s.Ym],[o,1,s.yB],[o,5,5*s.yB],[o,15,15*s.yB],[o,30,30*s.yB],[i,1,s.Y2],[i,3,3*s.Y2],[i,6,6*s.Y2],[i,12,12*s.Y2],[r,1,s.UD],[r,2,2*s.UD],[n,1,s.iM],[e,1,s.jz],[e,3,3*s.jz],[t,1,s.qz]];function c(e,n,r){const i=Math.abs(n-e)/r,o=function(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>{return(r=t(e))<(i=n)?-1:r>i?1:r>=i?0:NaN;var r,i}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}((([,,t])=>t)).right(l,i);if(o===l.length)return t.every(a(e/s.qz,n/s.qz,r));if(0===o)return u.every(Math.max(a(e,n,r),1));const[c,d]=l[i/l[o-1][2]<l[o][2]/i?o-1:o];return c.every(d)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},c]}const[T,w]=k(L.Z,A,E.Ox,C.Z,b,y),[D,M]=k(v.Z,m.Z,g.OM,f.Z,p.Z,h.Z);var P=n(731),F=n(7451),I=n(9941);function N(t){return new Date(t)}function V(t){return t instanceof Date?+t:+new Date(+t)}function O(t,e,n,r,i,o,a,s,l,c){var u=(0,F.ZP)(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(t){return(l(t)<t?p:s(t)<t?f:a(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?v:_:n(t)<t?y:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,V)):h().map(N)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):u},u.copy=function(){return(0,F.JG)(u,O(t,e,n,r,i,o,a,s,l,c))},u}function B(){return I.o.apply(O(D,M,v.Z,m.Z,g.OM,f.Z,p.Z,h.Z,d.Z,P.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{AreaChart:function(){return ho},CartesianChart:function(){return Ti},ChartHoverCard:function(){return We.ChartHoverCard},DataVizPalette:function(){return ni},DonutChart:function(){return hi},GaugeChart:function(){return Ga},GaugeValueFormat:function(){return Ha},GroupedVerticalBarChart:function(){return Zo},HeatMapChart:function(){return Go},HorizontalBarChart:function(){return Ln},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return qa},Legends:function(){return vr},LineChart:function(){return Ui},MultiStackedBarChart:function(){return wo},MultiStackedBarChartVariant:function(){return _o},NodesComposition:function(){return Fa},PieChart:function(){return Co},SankeyChart:function(){return ya},Shape:function(){return fr},Sparkline:function(){return Wa},StackedBarChart:function(){return Ao},Textbox:function(){return zi},TreeChart:function(){return Ba},TreeTraverse:function(){return Ia},VerticalBarChart:function(){return Oo},VerticalStackedBarChart:function(){return Ro},getChartHoverCardStyles:function(){return qo.n},getColorFromToken:function(){return ci},getNextColor:function(){return li}});var t=n(9085),e=n(9939),i=n(7363),o=n(8461),a=n(116),s=n(3820),l=n(5499),c="__currentId__",u="id__",d=(0,s.J)()||{};void 0===d[c]&&(d[c]=0);var h,p=!1;function f(t){if(!p){var e=l.Y.getInstance();e&&e.onReset&&e.onReset(g),p=!0}var n=d[c]++;return(void 0===t?u:t)+n}function g(t){void 0===t&&(t=0),d[c]=t}function m(t,e,n){void 0===n&&(n=0);for(var r=-1,i=n;t&&i<t.length;i++)if(e(t[i],i)){r=i;break}return r}function v(t,e){var n=m(t,e);if(!(n<0))return t[n]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(h||(h={}));var _={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function y(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&(n=t)&&n._virtual&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function x(t,e,n){return null!=n||(n=document),t&&t!==n.body?e(t)?t:x(y(t),e):null}function b(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)if(t===e)r=!0;else for(r=!1;e;){var i=y(e);if(i===t){r=!0;break}e=i}else t.contains&&(r=t.contains(e));return r}var C=n(2874),E="data-is-focusable",S="data-is-visible",A="data-focuszone-id",L="data-is-sub-focuszone";function k(t,e){var n=w(t,t,!0,!1,!1,!0,void 0,void 0,e);return!!n&&(V(n),!0)}function T(t,e,n,r,i,o,a,s){if(!e||!a&&e===t)return null;var l=D(e);if(i&&l&&(o||!F(e)&&!I(e))){var c=T(t,e.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&P(c,!0)||!s)return c;var u=T(t,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==e;){var h=T(t,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&P(e,s)?e:T(t,e.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:T(t,e.parentElement,!0,!1,!1,o,a,s))}function w(t,e,n,r,i,o,a,s,l){if(!e||e===t&&i&&!a)return null;var c=(l?M:D)(e);if(n&&c&&P(e,s))return e;if(!i&&c&&(o||!F(e)&&!I(e))){var u=w(t,e.firstElementChild,!0,!0,!1,o,a,s,l);if(u)return u}return e===t?null:w(t,e.nextElementSibling,!0,!0,!1,o,a,s,l)||(r?null:w(t,e.parentElement,!1,!1,!0,o,a,s,l))}function D(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute(S);return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function M(t,e){var n=null!=e?e:(0,s.J)();return!!t&&D(t)&&!t.hidden&&"hidden"!==n.getComputedStyle(t).visibility}function P(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=t.getAttribute?t.getAttribute(E):null,o=null!==r&&n>=0,a=!!t&&"false"!==i&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===i||o);return e?-1!==n&&a:a}function F(t){return!!(t&&t.getAttribute&&t.getAttribute(A))}function I(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}var N=void 0;function V(t){if(t){var e=(0,s.J)(t);e&&(void 0!==N&&e.cancelAnimationFrame(N),N=e.requestAnimationFrame((function(){t&&t.focus(),N=void 0})))}}function O(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function B(t,n){for(var r=(0,e.pi)({},n),i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];void 0===r[a]&&(r[a]=t[a])}return r}var H=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++)for(var o=i[r],a=0,s=Array.isArray(o)?o:Object.keys(o);a<s.length;a++)n[s[a]]=1;return n},R=H(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),z=H(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),W=H(z,R),Y=(H(W,["form"]),H(W,["height","loop","muted","preload","src","width"])),Z=(H(Y,["poster"]),H(W,["start"]),H(W,["value"]),H(W,["download","href","hrefLang","media","rel","target","type"]),H(W,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),q=(H(Z,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),H(Z,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),H(Z,["form","multiple","required"]),H(W,["selected","value"]),H(W,["cellPadding","cellSpacing"]),H(W,["rowSpan","scope"]),H(W,["colSpan","headers","rowSpan","scope"]),H(W,["span"]),H(W,["span"]),H(W,["acceptCharset","action","encType","encType","method","noValidate","target"]),H(W,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),H(W,["alt","crossOrigin","height","src","srcSet","useMap","width"]),W);function X(t,e,n){for(var r=Array.isArray(e),i={},o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];!(!r&&e[s]||r&&e.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(i[s]=t[s])}return i}function U(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return G.apply(this,[null,t].concat(e))}function G(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||t&&!t(s)||(e[s]=a[s])}return e}var K,$,J,Q=n(13),tt=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function et(t){for(var e=t,n=(0,C.M)(t);e&&e!==n.body;){if("true"===e.getAttribute(tt))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute(tt)){var r=getComputedStyle(e),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return e}e=e.parentElement}return e&&e!==n.body||(e=(0,s.J)(t)),e}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}($||($={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(J||(J={}));var nt,rt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=t,this.right=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function it(t,e,n){return{targetEdge:t,alignmentEdge:e,isAuto:n}}var ot=((nt={})[_.topLeftEdge]=it($.top,$.left),nt[_.topCenter]=it($.top),nt[_.topRightEdge]=it($.top,$.right),nt[_.topAutoEdge]=it($.top,void 0,!0),nt[_.bottomLeftEdge]=it($.bottom,$.left),nt[_.bottomCenter]=it($.bottom),nt[_.bottomRightEdge]=it($.bottom,$.right),nt[_.bottomAutoEdge]=it($.bottom,void 0,!0),nt[_.leftTopEdge]=it($.left,$.top),nt[_.leftCenter]=it($.left),nt[_.leftBottomEdge]=it($.left,$.bottom),nt[_.rightTopEdge]=it($.right,$.top),nt[_.rightCenter]=it($.right),nt[_.rightBottomEdge]=it($.right,$.bottom),nt);function at(t,e){return!(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}function st(t,e){var n=[];return t.top<e.top&&n.push($.top),t.bottom>e.bottom&&n.push($.bottom),t.left<e.left&&n.push($.left),t.right>e.right&&n.push($.right),n}function lt(t,e){return t[$[e]]}function ct(t,e,n){return t[$[e]]=n,t}function ut(t,e){var n=Ct(e);return(lt(t,n.positiveEdge)+lt(t,n.negativeEdge))/2}function dt(t,e){return t>0?e:-1*e}function ht(t,e){return dt(t,lt(e,t))}function pt(t,e,n){return dt(n,lt(t,n)-lt(e,n))}function ft(t,e,n,r){void 0===r&&(r=!0);var i=lt(t,e)-n,o=ct(t,e,n);return r&&(o=ct(t,-1*e,lt(t,-1*e)-i)),o}function gt(t,e,n,r){return void 0===r&&(r=0),ft(t,n,lt(e,n)+dt(n,r))}function mt(t,e,n){return ht(n,t)>ht(n,e)}function vt(t,e){for(var n=0,r=0,i=st(t,e);r<i.length;r++){var o=i[r];n+=Math.pow(pt(t,e,o),2)}return n}function _t(t,e,n,r){return void 0===r&&(r=200),(n===$.bottom||n===$.top)&&pt(t,e,n)>=r}function yt(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=ft(e.elementRectangle,a,lt(n,a),!1),e.forcedInBounds=!0):mt(s=gt(e.elementRectangle,n,a),n,-1*a)||(s=ft(s,-1*a,lt(n,-1*a),!1),e.forcedInBounds=!0),e.elementRectangle=s}return e}function xt(t,e,n){var r=Ct(e).positiveEdge;return ft(t,r,n-(ut(t,e)-lt(t,r)))}function bt(t,e,n,r,i){void 0===r&&(r=0);var o=new rt(t.left,t.right,t.top,t.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?gt(o,e,s,r):function(t,e,n,r){void 0===r&&(r=0);var i=dt(-1*n,r);return ft(t,-1*n,lt(e,n)+i)}(o,e,s,r),o=a?gt(o,e,a):xt(o,l,ut(e,s))}function Ct(t){return t===$.top||t===$.bottom?{positiveEdge:$.left,negativeEdge:$.right}:{positiveEdge:$.top,negativeEdge:$.bottom}}function Et(t,e,n){return n&&Math.abs(pt(t,n,e))>Math.abs(pt(t,n,-1*e))?-1*e:e}function St(t,e,n,r,i,o,a,s){var l,c={},u=kt(e),d=o?n:-1*n,h=i||Ct(n).positiveEdge;return a&&!function(t,e,n){return void 0!==n&<(t,e)===lt(n,e)}(t,(l=h,-1*l),r)||(h=Et(t,h,r)),c[$[d]]=pt(t,u,d),c[$[h]]=pt(t,u,h),s&&(c[$[-1*d]]=pt(t,u,-1*d),c[$[-1*h]]=pt(t,u,-1*h)),c}function At(t,e,n){var r=ut(e,t),i=ut(n,t),o=Ct(t),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Lt(t,e,n,r,i,o,s,l,c){void 0===o&&(o=!1);var u=bt(t,e,r,i,c);return at(u,n)?{elementRectangle:u,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(t,e,n,r,i,o,s,l,c){void 0===i&&(i=!1),void 0===s&&(s=0);var u=r.alignmentEdge,d=r.alignTargetEdge,h={elementRectangle:t,targetEdge:r.targetEdge,alignmentEdge:u};l||c||(h=function(t,e,n,r,i,o,s){void 0===i&&(i=!1),void 0===s&&(s=0);var l=[$.left,$.right,$.bottom,$.top];(0,a.zg)()&&(l[0]*=-1,l[1]*=-1);for(var c,u=t,d=r.targetEdge,h=r.alignmentEdge,p=d,f=h,g=0;g<4;g++){if(mt(u,n,d))return{elementRectangle:u,targetEdge:d,alignmentEdge:h};if(i&&_t(e,n,d,o)){switch(d){case $.bottom:u.bottom=n.bottom;break;case $.top:u.top=n.top}return{elementRectangle:u,targetEdge:d,alignmentEdge:h,forcedInBounds:!0}}var m=vt(u,n);(!c||m<c)&&(c=m,p=d,f=h),l.splice(l.indexOf(d),1),l.length>0&&(l.indexOf(-1*d)>-1?d*=-1:(h=d,d=l.slice(-1)[0]),u=bt(t,e,{targetEdge:d,alignmentEdge:h},s))}return{elementRectangle:u=bt(t,e,{targetEdge:p,alignmentEdge:f},s),targetEdge:p,alignmentEdge:f}}(t,e,n,r,i,o,s));var p=st(h.elementRectangle,n),f=l?-h.targetEdge:void 0;if(p.length>0)if(d)if(h.alignmentEdge&&p.indexOf(-1*h.alignmentEdge)>-1){var g=function(t,e,n,r){var i=t.alignmentEdge,o=t.targetEdge,a=-1*i;return{elementRectangle:bt(t.elementRectangle,e,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(h,e,s,c);if(at(g.elementRectangle,n))return g;h=yt(st(g.elementRectangle,n),h,n,f)}else h=yt(p,h,n,f);else h=yt(p,h,n,f);return h}(u,e,n,r,o,s,i,l,c)}function kt(t){var e=t.getBoundingClientRect();return new rt(e.left,e.right,e.top,e.bottom)}function Tt(t,n,r,i,o,s){void 0===o&&(o=!1);var l=t.gapSpace?t.gapSpace:0,c=function(t,e){var n;if(e){if(e.preventDefault){var r=e;n=new rt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(e.getBoundingClientRect)n=kt(e);else{var i=e,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new rt(o,s,a,l)}if(!at(n,t))for(var c=0,u=st(n,t);c<u.length;c++){var d=u[c];n[$[d]]=t[$[d]]}}else n=new rt(0,0,0,0);return n}(r,t.target),u=function(t,e,n,r,i){return t.isAuto&&(t.alignmentEdge=At(t.targetEdge,e,n)),t.alignTargetEdge=i,t}(function(t,n,r){if(void 0===t&&(t=_.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var i=(0,e.pi)({},ot[t]);return(0,a.zg)()?(i.alignmentEdge&&i.alignmentEdge%2==0&&(i.alignmentEdge=-1*i.alignmentEdge),void 0!==n?ot[n]:i):i}(t.directionalHint,t.directionalHintForRTL,i),c,r,t.coverTarget,t.alignTargetEdge),d=Lt(kt(n),c,r,u,l,o,s,t.directionalHintFixed,t.coverTarget);return(0,e.pi)((0,e.pi)({},d),{targetRectangle:c})}function wt(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),function(t){return Math.sqrt(t*t*2)}(t?e:0)/2+n}function Dt(t,n,r,i,o,a,l,c){void 0===o&&(o=!1);var u=null!=c?c:(0,s.J)(),d=t.isBeakVisible&&t.beakWidth||0,h=wt(t.isBeakVisible,t.beakWidth,t.gapSpace),p=t;p.gapSpace=h;var f,g,m,v,_,y,x,b,E,S=t.bounds?(E=t.bounds,new rt(E.left,E.right,E.top,E.bottom)):new rt(0,u.innerWidth-function(t){if(void 0===K){var e=(0,C.M)(),n=e.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),e.body.appendChild(n),K=n.offsetWidth-n.clientWidth,e.body.removeChild(n)}return K}(),0,u.innerHeight),A=Tt(p,r,S,i,o,a),L=(f=A,g=function(t,e){var n=e.targetRectangle,r=Ct(e.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=ut(n,e.targetEdge),s=new rt(t/2,e.elementRectangle.width-t/2,t/2,e.elementRectangle.height-t/2),l=new rt(0,t,0,t);return mt(l=xt(l=ft(l,-1*e.targetEdge,-t/2),-1*e.targetEdge,a-ht(i,e.elementRectangle)),s,i)?mt(l,s,o)||(l=gt(l,s,o)):l=gt(l,s,i),l}(d,A),m=S,v=-1*f.targetEdge,_=new rt(0,f.elementRectangle.width,0,f.elementRectangle.height),y={},x=Et(f.elementRectangle,f.alignmentEdge?f.alignmentEdge:Ct(v).positiveEdge,m),b=pt(f.elementRectangle,f.targetRectangle,v)>Math.abs(lt(g,v)),y[$[v]]=lt(g,v),y[$[x]]=pt(g,_,x),{elementPosition:(0,e.pi)({},y),closestEdge:At(f.targetEdge,g,_),targetEdge:v,hideBeak:!b});return(0,e.pi)((0,e.pi)({},function(t,e,n,r,i){return{elementPosition:St(t.elementRectangle,e,t.targetEdge,n,t.alignmentEdge,r,i,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(A,n,S,t.coverTarget,l)),{beakPosition:L})}var Mt=["TEMPLATE","STYLE","SCRIPT"];function Pt(t){var e=(0,C.M)(t);if(!e)return function(){};for(var n=[];t!==e.body&&t.parentElement;){for(var r=0,i=t.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Mt.indexOf(o.tagName)&&n.push([o,a])}t=t.parentElement}return n.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var e=t[0],n=t[1];n?e.setAttribute("aria-hidden",n):e.removeAttribute("aria-hidden")}))}(n),n=[]}}var Ft=27,It=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,i=(0,s.J)(e);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0),r},t.prototype.clearImmediate=function(t,e){var n=(0,s.J)(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=e||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(e){var n=Date.now(),h=n-c,p=s?a-h:a;return h>=a&&(!e||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=t.apply(r._parent,o)):null===u&&l&&(u=r.setTimeout(d,p)),i};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o=t,d(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=e||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(t){p&&(r.clearTimeout(p),p=null),h=t},g=function(e){f(e),o=t.apply(r._parent,a)},m=function(t){var e=Date.now(),n=!1;t&&(l&&e-d>=s&&(n=!0),d=e);var i=e-d,a=s-i,f=e-h,v=!1;return null!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),i>=s||v||n?g(e):null!==p&&t||!c||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a=t,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,i=(0,s.J)(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=(0,s.J)(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Nt(){var t=i.useRef();return t.current||(t.current=new It),i.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.dispose(),t.current=void 0}}),[]),t.current}function Vt(t,e,n,r){var o=i.useRef(n);o.current=n,i.useEffect((function(){var n=t&&"current"in t?t.current:t;if(n&&n.addEventListener)return O(n,e,(function(t){return o.current(t)}),r)}),[t,e,r])}function Ot(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=i.useCallback((function(e){r.current=e;for(var n=0,i=t;n<i.length;n++){var o=i[n];"function"==typeof o?o(e):o&&(o.current=e)}}),(0,e.ev)([],t,!0));return r}var Bt=i.createContext({window:"object"==typeof window?window:void 0}),Ht=function(){return i.useContext(Bt).window},Rt=function(){var t;return null===(t=i.useContext(Bt).window)||void 0===t?void 0:t.document};function zt(t){var e=t.originalElement,n=t.containsFocus;e&&n&&e!==(0,s.J)()&&setTimeout((function(){var t;null===(t=e.focus)||void 0===t||t.call(e)}),0)}var Wt=i.forwardRef((function(t,n){var r=B({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=i.useRef(),a=Ot(o,n);!function(t,e){var n="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;i.useEffect((function(){if(n&&e.current)return Pt(e.current)}),[e,n])}(r,o),function(t,e){var n=t.onRestoreFocus,r=void 0===n?zt:n,o=i.useRef(),a=i.useRef(!1);i.useEffect((function(){var t,n,i;return o.current=(0,C.M)().activeElement,t=e.current,(i=(n=(0,C.M)(t))&&n.activeElement)&&b(t,i)&&(a.current=!0),function(){var t;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(t=(0,C.M)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Vt(e,"focus",i.useCallback((function(){a.current=!0}),[]),!0),Vt(e,"blur",i.useCallback((function(t){e.current&&t.relatedTarget&&!e.current.contains(t.relatedTarget)&&(a.current=!1)}),[]),!0)}(r,o);var s=r.role,l=r.className,c=r.ariaLabel,u=r.ariaLabelledBy,d=r.ariaDescribedBy,h=r.style,p=r.children,f=r.onDismiss,g=function(t,e){var n=Nt(),r=i.useState(!1),o=r[0],a=r[1];return i.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!t.style||!t.style.overflowY){var r=!1;if(e&&e.current&&(null===(n=e.current)||void 0===n?void 0:n.firstElementChild)){var i=e.current.clientHeight,s=e.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(r,o),m=i.useCallback((function(t){t.which===Ft&&f&&(f(t),t.preventDefault(),t.stopPropagation())}),[f]);return Vt(Ht(),"keydown",m),i.createElement("div",(0,e.pi)({ref:a},X(r,q),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:(0,e.pi)({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));Wt.displayName="Popup";var Yt=n(1786);function Zt(t){var e=i.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}var qt,Xt=function(){var t;return(null!==(t=Ht())&&void 0!==t?t:"undefined"!=typeof window)?window:void 0},Ut=function(t){var e,n;return(null!==(n=null===(e=null==t?void 0:t.window)||void 0===e?void 0:e.document)&&void 0!==n?n:"undefined"!=typeof document)?document:void 0},jt=((qt={})[$.top]=Yt.k4.slideUpIn10,qt[$.bottom]=Yt.k4.slideDownIn10,qt[$.left]=Yt.k4.slideLeftIn10,qt[$.right]=Yt.k4.slideRightIn10,qt),Gt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Kt=["role","aria-roledescription"],$t={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_.bottomAutoEdge},Jt=(0,o.y)({disableCaching:!0});function Qt(t,e,n,r){var o,a=t.calloutMaxHeight,s=t.finalHeight,l=t.directionalHint,c=t.directionalHintFixed,u=t.hidden,d=t.gapSpace,h=t.beakWidth,p=t.isBeakVisible,f=t.coverTarget,g=i.useState(),m=g[0],v=g[1],_=null!==(o=null==r?void 0:r.elementPosition)&&void 0!==o?o:{},y=_.top,x=_.bottom,b=(null==n?void 0:n.current)?function(t){var e,n,r,i,o=t,a=t,s=t,l=null!==(e=s.left)&&void 0!==e?e:s.x,c=null!==(n=s.top)&&void 0!==n?n:s.y,u=null!==(r=s.right)&&void 0!==r?r:l,d=null!==(i=s.bottom)&&void 0!==i?i:c;return o.stopPropagation?new rt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==l&&void 0!==c?new rt(l,u,c,d):kt(a)}(n.current):void 0;return i.useEffect((function(){var t,n,i=null!==(t=e())&&void 0!==t?t:{},o=i.top,s=i.bottom;(null==r?void 0:r.targetEdge)===$.top&&(null==b?void 0:b.top)&&!f&&(s=b.top-function(t,e,n){return wt(t,e,n)}(p,h,d)),"number"==typeof y&&s?n=s-y:"number"==typeof x&&"number"==typeof o&&s&&(n=s-o-x),v(!a&&!u||a&&n&&a>n?n:a||void 0)}),[x,a,s,l,c,e,u,r,y,d,h,p,b,f]),m}function te(t,n,r,o,a,l){var c,u=i.useState(),d=u[0],h=u[1],p=i.useRef(0),f=i.useRef(),g=Nt(),m=t.hidden,v=t.target,_=t.finalHeight,y=t.calloutMaxHeight,x=t.onPositioned,b=t.directionalHint,C=t.hideOverflow,E=t.preferScrollResizePositioning,S=Xt(),A=i.useRef();A.current!==l.current&&(A.current=l.current,c=l.current?null==S?void 0:S.getComputedStyle(l.current):void 0);var L=null==c?void 0:c.overflowY;return i.useEffect((function(){if(!m){var i=g.requestAnimationFrame((function(){var i,l,c,u;if(n.current&&r){var g=(0,e.pi)((0,e.pi)({},t),{target:o.current,bounds:a()}),m=r.cloneNode(!0);m.style.maxHeight=y?"".concat(y):"",m.style.visibility="hidden",null===(i=r.parentElement)||void 0===i||i.appendChild(m);var b=f.current===v?d:void 0,A=E&&!(C||"clip"===L||"hidden"===L),k=_?function(t,e,n,r,i){return function(t,e,n,r,i){return Dt(t,e,n,r,!1,void 0,!0,null!=i?i:(0,s.J)())}(t,e,n,r,i)}(g,n.current,m,b,S):function(t,e,n,r,i,o,a){return Dt(t,e,n,r,i,void 0,void 0,a)}(g,n.current,m,b,A,0,S);null===(l=r.parentElement)||void 0===l||l.removeChild(m),!d&&k||d&&k&&(u=k,!re((c=d).elementPosition,u.elementPosition)||!re(c.beakPosition.elementPosition,u.beakPosition.elementPosition))&&p.current<5?(p.current++,h(k)):p.current>0&&(p.current=0,null==x||x(d))}}),r);return f.current=v,function(){g.cancelAnimationFrame(i),f.current=void 0}}h(void 0),p.current=0}),[m,b,g,r,y,n,o,_,a,x,d,t,v,C,E,L,S]),d}var ee=i.memo(i.forwardRef((function(t,n){var r=B($t,t),o=r.styles,a=r.style,s=r.ariaLabel,l=r.ariaDescribedBy,c=r.ariaLabelledBy,u=r.className,d=r.isBeakVisible,h=r.children,p=r.beakWidth,f=r.calloutWidth,g=r.calloutMaxWidth,m=r.calloutMinWidth,v=r.doNotLayer,_=r.finalHeight,y=r.hideOverflow,x=void 0===y?!!_:y,E=r.backgroundColor,S=r.calloutMaxHeight,A=r.onScroll,L=r.shouldRestoreFocus,T=void 0===L||L,w=r.target,D=r.hidden,M=r.onLayerMounted,P=r.popupProps,F=i.useRef(null),I=Ot(i.useRef(null),null==P?void 0:P.ref),N=i.useState(null),V=N[0],H=N[1],R=i.useCallback((function(t){H(t)}),[]),z=Ot(F,n),W=function(t,e){var n=i.useRef(),r=i.useRef(null),o=Ht();if(!t||t!==n.current||"string"==typeof t){var a=null==e?void 0:e.current;if(t)if("string"==typeof t){var s=(0,C.M)(a);r.current=s?s.querySelector(t):null}else r.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;n.current=t}return[r,o]}(r.target,{current:V}),Y=W[0],Z=W[1],j=function(t,e,n){var r=t.bounds,o=t.minPagePadding,a=void 0===o?$t.minPagePadding:o,s=t.target,l=i.useState(!1),c=l[0],u=l[1],d=i.useRef(),h=i.useCallback((function(){if(!d.current||c){var t="function"==typeof r?n?r(s,n):void 0:r;!t&&n&&(t=function(t,e){return function(t,e){var n=void 0;if(e.getWindowSegments&&(n=e.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight};var r=0,i=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==t&&(r=t.left||t.x,i=t.top||t.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(t,e)}(e.current,n),t={top:t.top+a,left:t.left+a,right:t.right-a,bottom:t.bottom-a,width:t.width-2*a,height:t.height-2*a}),d.current=t,c&&u(!1)}return d.current}),[r,a,s,e,n,c]),p=Nt();return Vt(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(r,Y,Z),G=te(r,F,V,Y,j,I),K=Qt(r,j,Y,G),$=function(t,e,n,r,o){var a=t.hidden,s=t.onDismiss,l=t.preventDismissOnScroll,c=t.preventDismissOnResize,u=t.preventDismissOnLostFocus,d=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,p=t.preventDismissOnEvent,f=i.useRef(!1),g=Nt(),m=Zt([function(){f.current=!0},function(){f.current=!1}]),v=!!e;return i.useEffect((function(){var t=function(t){v&&!l&&m(t)},e=function(t){c||p&&p(t)||null==s||s(t)},i=function(t){u||m(t)},m=function(t){var e=t.composedPath?t.composedPath():[],i=e.length>0?e[0]:t.target,a=n.current&&!b(n.current,i);if(a&&f.current)f.current=!1;else if(!r.current&&a||t.target!==o&&a&&(!r.current||"stopPropagation"in r.current||d||i!==r.current&&!b(r.current,i))){if(p&&p(t))return;null==s||s(t)}},_=function(t){h&&((!p||p(t))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==s||s(t))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[O(o,"scroll",t,!0),O(o,"resize",e,!0),O(o.document.documentElement,"focus",i,!0),O(o.document.documentElement,"click",i,!0),O(o,"blur",_,!0)];n((function(){r.forEach((function(t){return t()}))}))}}),0)}));return function(){y.then((function(t){return t()}))}}),[a,g,n,r,o,s,h,d,u,c,l,v,p]),m}(r,G,F,Y,Z),J=$[0],Q=$[1],tt=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),et=(0,e.pi)((0,e.pi)({},null==G?void 0:G.elementPosition),{maxHeight:K});if(tt&&(et.bottom=void 0),function(t,e,n){var r=t.hidden,o=t.setInitialFocus,a=Nt(),s=!!e;i.useEffect((function(){if(!r&&o&&s&&n){var t=a.requestAnimationFrame((function(){return k(n)}),n);return function(){return a.cancelAnimationFrame(t)}}}),[r,s,a,n,o])}(r,G,V),i.useEffect((function(){D||null==M||M()}),[D]),!Z)return null;var nt=x,rt=d&&!!w,it=Jt(o,{theme:r.theme,className:u,overflowYHidden:nt,calloutWidth:f,positions:G,beakWidth:p,backgroundColor:E,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),ot=(0,e.pi)((0,e.pi)({maxHeight:S||"100%"},a),nt&&{overflowY:"hidden"}),at=r.hidden?{visibility:"hidden"}:void 0;return i.createElement("div",{ref:z,className:it.container,style:at},i.createElement("div",(0,e.pi)({},X(r,q,Kt),{className:U(it.root,G&&G.targetEdge&&jt[G.targetEdge]),style:G?(0,e.pi)({},et):Gt,tabIndex:-1,ref:R}),rt&&i.createElement("div",{className:it.beak,style:ne(G)}),rt&&i.createElement("div",{className:it.beakCurtain}),i.createElement(Wt,(0,e.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:it.calloutMain,onDismiss:r.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:T,style:ot},P,{ref:I}),h)))})),(function(t,e){return!(e.shouldUpdateWhenHidden||!t.hidden||!e.hidden)||function(t,e){if(!t||!e)return!t&&!e;for(var n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(var n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}(t,e)}));function ne(t){var n,r,i=(0,e.pi)((0,e.pi)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null==t?void 0:t.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return i.top||i.bottom||i.left||i.right||(i.left=0,i.top=0),i}function re(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],i=e[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0}function ie(t){return{height:t,width:t}}ee.displayName="CalloutContentBase";var oe={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},ae=(0,t.z)(ee,(function(t){var e,n=t.theme,r=t.className,i=t.overflowYHidden,o=t.calloutWidth,a=t.beakWidth,s=t.backgroundColor,l=t.calloutMaxWidth,c=t.calloutMinWidth,u=t.doNotLayer,d=(0,Yt.Cn)(oe,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Yt.bR.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(e={},e[Yt.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},e)},(0,Yt.e2)(),r,!!o&&{width:o},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ie(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),se=i.createContext(void 0),le=function(){return function(){}};se.Provider;var ce=ReactDOM,ue=n(156);new WeakMap,new WeakMap;var de=i.createContext(void 0),he=function(t){var e=t.providerRef,n=t.layerRoot,r=i.useState([])[0],o=i.useContext(de),a=void 0!==o&&!n,s=i.useMemo((function(){return a?void 0:{providerRef:e,registeredProviders:r,registerProvider:function(t){r.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var e=r.indexOf(t);e>=0&&r.splice(e,1)}}}),[e,r,o,a]);return i.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?i.createElement(de.Provider,{value:s},t.children):i.createElement(i.Fragment,null,t.children)},pe=n(775),fe=n(2049);function ge(t,n){void 0===t&&(t={});var r=me(n)?n:function(t){return function(n){return t?(0,e.pi)((0,e.pi)({},n),t):n}}(n);return r(t)}function me(t){return"function"==typeof t}var ve=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){pe.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){pe.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return i.createElement(fe.i.Consumer,null,(function(r){var o=function(t,n){var r,i,o,a=(n||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:ge(s.settings,t.settings),scopedSettings:(r=s.scopedSettings,i=t.scopedSettings,void 0===r&&(r={}),(me(i)?i:(void 0===(o=i)&&(o={}),function(t){var n=(0,e.pi)({},t);for(var r in o)o.hasOwnProperty(r)&&(n[r]=(0,e.pi)((0,e.pi)({},t[r]),o[r]));return n}))(r)),inCustomizerContext:!0}}}(t.props,r);return n&&(o=n(o)),i.createElement(fe.i.Provider,{value:o},t.props.children)}))},n}(i.Component),_e=n(685),ye=(0,o.y)(),xe=(0,ue.NF)((function(t,n){return(0,_e.j)((0,e.pi)((0,e.pi)({},t),{rtl:n}))})),be=i.forwardRef((function(t,n){var r=t.className,o=t.theme,s=t.applyTheme,l=t.applyThemeToBody,c=t.styles,u=ye(c,{theme:o,applyTheme:s,className:r}),d=i.useRef(null);return function(t,e,n){var r=e.bodyThemed;i.useEffect((function(){if(t){var e=(0,C.M)(n.current);if(e)return e.body.classList.add(r),function(){e.body.classList.remove(r)}}}),[r,t,n])}(l,u,d),i.createElement(i.Fragment,null,function(t,n,r,o){var s=n.root,l=t.as,c=void 0===l?"div":l,u=t.dir,d=t.theme,h=X(t,q,["dir"]),p=function(t){var e=t.theme,n=t.dir,r=(0,a.zg)(e)?"rtl":"ltr",i=(0,a.zg)()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}}(t),f=p.rootDir,g=p.needsTheme,m=i.createElement(he,{providerRef:r},i.createElement(c,(0,e.pi)({dir:f},h,{className:s,ref:Ot(r,o)})));return g&&(m=i.createElement(ve,{settings:{theme:xe(d,"rtl"===u)}},m)),m}(t,u,d,n))}));be.displayName="FabricBase";var Ce,Ee={fontFamily:"inherit"},Se={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ae=(0,t.z)(be,(function(t){var e=t.applyTheme,n=t.className,r=t.preventBlanketFontInheritance,i=t.theme;return{root:[(0,Yt.Cn)(Se,i).root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":Ee,"& input":Ee,"& textarea":Ee},e&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Le=n(9766),ke="data-portal-element",Te={},we={},De="fluent-default-layer-host",Me="#".concat(De),Pe=n(8873),Fe=(0,Pe.N)()?i.useLayoutEffect:i.useEffect,Ie=(0,o.y)(),Ne=i.forwardRef((function(t,n){var r,o=null!==(r=i.useContext(se))&&void 0!==r?r:le,a=i.useRef(null),s=Ot(a,n),l=i.useRef(),c=i.useRef(null),u=i.useContext(de),d=i.useState(!1),h=d[0],p=d[1],f=i.useCallback((function(t){var e,n=!!(null==(e=null==u?void 0:u.providerRef)?void 0:e.current)&&e.current.classList.contains(Le.G$);t&&n&&t.classList.add(Le.G$)}),[u]),g=t.children,m=t.className,v=t.eventBubblingEnabled,_=t.fabricProps,y=t.hostId,x=t.insertFirst,b=t.onLayerDidMount,E=void 0===b?function(){}:b,S=t.onLayerMounted,A=void 0===S?function(){}:S,L=t.onLayerWillUnmount,k=t.styles,T=t.theme,w=Ot(c,null==_?void 0:_.ref,f),D=Ie(k,{theme:T,className:m,isNotHost:!y}),M=function(){null==L||L();var t=l.current;l.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},P=function(){var t,e=(0,C.M)(a.current);if(e){var n=function(t){var e,n;if(y){var r=function(t){var e=we[t];return e&&e[0]||void 0}(y);return r?null!==(e=r.rootRef.current)&&void 0!==e?e:null:null!==(n=t.getElementById(y))&&void 0!==n?n:null}var i=Me,o=i?t.querySelector(i):null;return o||(o=function(t){var e=t.createElement("div");return e.setAttribute("id",De),e.style.cssText="position:fixed;z-index:1000000",null==t||t.body.appendChild(e),e}(t)),o}(e);if(n){M();var r=(null!==(t=n.ownerDocument)&&void 0!==t?t:e).createElement("div");r.className=D.root,r.setAttribute(ke,"true"),function(t,e){var n=t,r=e;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==e){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,p(!0)}}};return Fe((function(){P(),y&&function(t,e){Te[t]||(Te[t]=[]),Te[t].push(e);var n=we[t];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(y,P);var t=l.current?o(l.current):void 0;return function(){t&&t(),M(),y&&function(t,e){var n=Te[t];if(n){var r=n.indexOf(e);r>=0&&(n.splice(r,1),0===n.length&&delete Te[t])}var i=we[t];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(y,P)}}),[y]),i.useEffect((function(){l.current&&h&&(null==A||A(),null==E||E(),p(!1))}),[h,A,E]),i.createElement("span",{className:"ms-layer",ref:s},l.current&&ce.createPortal(i.createElement(he,{layerRoot:!0,providerRef:w},i.createElement(Ae,(0,e.pi)({},!v&&(Ce||(Ce={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return Ce[t]=Ve}))),Ce),_,{className:U(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Ne.displayName="LayerBase";var Ve=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Oe={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Be=(0,t.z)(Ne,(function(t){var e=t.className,n=t.isNotHost,r=t.theme,i=(0,Yt.Cn)(Oe,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Yt.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],e],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),He=i.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,a=(0,e._T)(t,["layerProps","doNotLayer"]),s=i.createElement(ae,(0,e.pi)({},a,{doNotLayer:o,ref:n}));return o?s:i.createElement(Be,(0,e.pi)({},r),s)}));He.displayName="Callout";var Re,ze=n(3813),We=n(8024);function Ye(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function Ze(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Ye(t,t[n],e[n]))}(t,{componentDidMount:qe,componentDidUpdate:Xe,componentWillUnmount:Ue})}function qe(){je(this.props.componentRef,this)}function Xe(t){t.componentRef!==this.props.componentRef&&(je(t.componentRef,null),je(this.props.componentRef,this))}function Ue(){je(this.props.componentRef,null)}function je(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}function Ge(t,e,n){var r=x(t,(function(t){return e===t||t.hasAttribute(ke)}),n);return null!==r&&r.hasAttribute(ke)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(Re||(Re={}));var Ke,$e="data-is-focusable",Je="data-focuszone-id",Qe="tabindex",tn="data-no-vertical-wrap",en="data-no-horizontal-wrap",nn=999999999,rn=-999999999;function on(t,e){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==e?void 0:e.ctrlKey,metaKey:null==e?void 0:e.metaKey,shiftKey:null==e?void 0:e.shiftKey,altKey:null==e?void 0:e.altKey,bubbles:null==e?void 0:e.bubbles,cancelable:null==e?void 0:e.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!e&&e.bubbles,!!e&&e.cancelable,window,0,0,0,0,0,!!e&&e.ctrlKey,!!e&&e.altKey,!!e&&e.shiftKey,!!e&&e.metaKey,0,null),t.dispatchEvent(n)}var an,sn={},ln=new Set,cn=["text","number","password","email","tel","url","search","textarea"],un=!1,dn=function(t){function n(e){var r,o,s,l,c,u=this;(u=t.call(this,e)||this)._root=i.createRef(),u._mergedRef=(c={refs:[]},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return c.resolver&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(c.refs,t)||(c.resolver=function(t){return function(e){for(var n=0,r=t.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):i&&(i.current=e)}}}(c)),c.refs=t,c.resolver}),u._onFocus=function(t){if(!u._portalContainsElement(t.target)){var e,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(t.target);if(d)e=t.target;else for(var h=t.target;h&&h!==u._root.current;){if(P(h)&&u._isImmediateDescendantOfZone(h)){e=h;break}h=y(h,un)}if(l&&t.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&P(p)?(e=p,p.focus()):(u.focus(!0),u._activeElement&&(e=null))}var f=!u._activeElement;e&&e!==u._activeElement&&((d||f)&&u._setFocusAlignment(e,!0,!0),u._activeElement=e,f&&u._updateTabIndexes()),r&&r(u._activeElement,t),(o||i)&&t.stopPropagation(),s?s(t):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(t){if(!u._portalContainsElement(t.target)&&!u.props.disabled){for(var e=t.target,n=[];e&&e!==u._root.current;)n.push(e),e=y(e,un);for(;n.length&&((e=n.pop())&&P(e)&&u._setActiveElement(e,!0),!F(e)););}},u._onKeyDown=function(t,e){if(!u._portalContainsElement(t.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(t),t.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((l&&l(t)||o&&o(t))&&u._isImmediateDescendantOfZone(t.target)){var c=u._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!I(t.target))return;if(!u.focusElement(w(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(r!==Re.vertical&&(u._preventDefaultWhenHandled(t),u._moveFocusLeft(e)))break;return;case 39:if(r!==Re.vertical&&(u._preventDefaultWhenHandled(t),u._moveFocusRight(e)))break;return;case 38:if(r!==Re.horizontal&&(u._preventDefaultWhenHandled(t),u._moveFocusUp()))break;return;case 40:if(r!==Re.horizontal&&(u._preventDefaultWhenHandled(t),u._moveFocusDown()))break;return;case 34:if(!s&&u._moveFocusPaging(!0))break;return;case 33:if(!s&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(t.target)){var d=!1;if(u._processingTabKey=!0,d=r!==Re.vertical&&u._shouldWrapFocus(u._activeElement,en)?((0,a.zg)(e)?!t.shiftKey:t.shiftKey)?u._moveFocusLeft(e):u._moveFocusRight(e):t.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,d)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(t.target)||u._isElementInput(t.target)&&!u._shouldInputLoseFocus(t.target,!1))return!1;var h=u._root.current&&u._root.current.firstChild;if(u._root.current&&h&&u.focusElement(w(u._root.current,h,!0)))break;return;case 35:if(u._isContentEditableElement(t.target)||u._isElementInput(t.target)&&!u._shouldInputLoseFocus(t.target,!0))return!1;var p=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(T(u._root.current,p,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(t,e,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(e.bottom),a=Math.floor(n.bottom),s=Math.floor(e.top);return t&&i>o||!t&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,tn)?nn:rn},Ze(u),u._id=f("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var d=null===(o=null!==(r=e.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===o||o;return u._shouldRaiseClicksOnEnter=null!==(s=e.shouldRaiseClicksOnEnter)&&void 0!==s?s:d,u._shouldRaiseClicksOnSpace=null!==(l=e.shouldRaiseClicksOnSpace)&&void 0!==l?l:d,u}return(0,e.ZT)(n,t),n.getOuterZones=function(){return ln.size},n._onKeyDownCapture=function(t){9===t.which&&ln.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t=this._root.current;if(sn[this._id]=this,t){for(var e=y(t,un);e&&e!==this._getDocument().body&&1===e.nodeType;){if(F(e)){this._isInnerZone=!0;break}e=y(e,un)}this._isInnerZone||(ln.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if((this._activeElement&&!b(this._root.current,this._activeElement,un)||this._defaultFocusElement&&!b(this._root.current,this._defaultFocusElement,un))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&e&&this._lastIndexPath&&(e.activeElement===e.body||null===e.activeElement||e.activeElement===t)){var n=function(t,e){for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return P(n)&&D(n)?n:w(t,n,!0)||T(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete sn[this._id],this._isInnerZone||(ln.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,r=n.as,o=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=X(this.props,W),d=r||o||"div";this._evaluateFocusBeforeRender();var h=(0,Yt.gh)();return i.createElement(d,(0,e.pi)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:U((Ke||(Ke=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Ke),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute($e)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=sn[n.getAttribute(Je)];return!!r&&r.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&b(this._root.current,this._activeElement)&&P(this._activeElement)&&(!e||M(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(w(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,e))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(T(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,e){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(t)||r&&!r(t)||!t||(this._setActiveElement(t,e),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=b(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=y(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},n.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(F(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,e){var n=t;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute($e)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return on(n,e),!0;n=y(n,un)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(F(t))return sn[t.getAttribute(Je)];for(var e=t.firstElementChild;e;){if(F(e))return sn[e.getAttribute(Je)];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},n.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===Re.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var c=l?i.getBoundingClientRect():null;do{if(i=t?w(this._root.current,i):T(this._root.current,i),!l){a=i;break}if(i){var u=e(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return t?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},n.prototype._moveFocusDown=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?t._shouldWrapFocus(t._activeElement,tn)?nn:rn:((-1===e&&a>=s||a===e)&&(e=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?t._shouldWrapFocus(t._activeElement,tn)?nn:rn:((-1===e&&a<=l||s===e)&&(e=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,en);return!!this._moveFocus((0,a.zg)(t),(function(r,i){var o=-1;return((0,a.zg)(t)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&e.props.direction!==Re.vertical?o=r.right-i.right:n||(o=rn),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,en);return!!this._moveFocus(!(0,a.zg)(t),(function(r,i){var o=-1;return((0,a.zg)(t)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&e.props.direction!==Re.vertical?o=i.left-r.left:n||(o=rn),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=et(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?w(this._root.current,n):T(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(t,c,u);if(t&&d>h+l||!t&&p<f-l)break;g>-1&&(t&&d>a?(a=d,i=g,o=n):!t&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},n.prototype._setFocusAlignment=function(t,e,n){if(this.props.direction===Re.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),e&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var e=y(t,un);e&&e!==this._root.current&&e!==this._getDocument().body;){if(F(e))return e;e=y(e,un)}return e},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!b(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];F(r)?"true"===r.getAttribute($e)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"0"))):(r.getAttribute&&"false"===r.getAttribute($e)&&r.setAttribute(Qe,"-1"),P(r)?this.props.disabled?r.setAttribute(Qe,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&cn.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,i=t.value,o=t.readOnly;if(r||n>0&&!e&&!o||n!==i.length&&e&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||function(t,e,n){return"true"!==function(t,e,n){var r=x(t,(function(t){return t.hasAttribute(e)}),n);return r&&r.getAttribute(e)}(t,e,null!=n?n:(0,C.M)())}(t,e)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ge(t,this._root.current)},n.prototype._getDocument=function(){return(0,C.M)(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:Re.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(i.Component);function hn(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(an||(an={}));var pn,fn=(0,o.y)(),gn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"==typeof t.content?i.createElement("p",{className:e._classNames.subText},t.content):i.createElement("div",{className:e._classNames.subText},t.content)},e}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.calloutProps,o=t.directionalHint,a=t.directionalHintForRTL,s=t.styles,l=t.id,c=t.maxWidth,u=t.onRenderContent,d=void 0===u?this._onRenderContent:u,h=t.targetElement,p=t.theme;return this._classNames=fn(s,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),i.createElement(He,(0,e.pi)({target:h,directionalHint:o,directionalHintForRTL:a},r,X(this.props,q,["id"]),{className:this._classNames.root}),i.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:_.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(i.Component),mn=(0,t.z)(gn,(function(t){var e=t.className,n=t.beakWidth,r=void 0===n?16:n,i=t.gapSpace,o=void 0===i?0:i,a=t.maxWidth,s=t.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Yt.k4.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},e],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(pn||(pn={}));var vn,_n,yn=(0,o.y)(),xn=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=i.createRef(),r._defaultTooltipId=f("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var t=r.props.overflowMode;if(void 0!==t)switch(t){case an.Parent:return r._tooltipHost.current.parentElement;case an.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(t){var e;r._ignoreNextFocusEvent=(null===(e=Ut(r.context))||void 0===e?void 0:e.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var e=r.props,i=e.overflowMode,o=e.delay,a=Ut(r.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&!hn(s))return}if(!t.target||!Ge(t.target,r._getTargetElement(),a))if(r._clearDismissTimer(),r._clearOpenTimer(),o!==pn.zero){var l=r._getDelayTime(o);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var e=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),e?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),e):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ft||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(t)}))},r._getDelayTime=function(t){switch(t){case pn.medium:return 300;case pn.long:return 500;default:return 0}},Ze(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new It(r),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,r=t.children,o=t.content,a=t.directionalHint,s=t.directionalHintForRTL,l=t.hostClassName,c=t.id,u=t.setAriaDescribedBy,d=void 0===u||u,h=t.tooltipProps,p=t.styles,f=t.theme;this._classNames=yn(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=(0,e.pi)((0,e.pi)({id:"".concat(m,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:j({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},X(this.props,q,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(t){return(null==t?void 0:t.content)?i.createElement(i.Fragment,null,t.content):null})):o,y=g&&!!_,x=d&&g&&_?m:void 0;return i.createElement("div",(0,e.pi)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),r,y&&i.createElement(mn,(0,e.pi)({},v)),i.createElement("div",{hidden:!0,id:m,style:Yt.ul},_))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:pn.medium},n.contextType=Bt,n}(i.Component),bn={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Cn=(0,t.z)(xn,(function(t){var e=t.className,n=t.theme;return{root:[(0,Yt.Cn)(bn,n).root,{display:"inline"},e]}}),void 0,{scope:"TooltipHost"}),En=function(t){function n(e){var n=t.call(this,e)||this;return n._tooltipChild=i.createRef(),n._checkTextOverflow=function(){var t=n._getTargetElement(),e=!!t&&hn(t);e!==n.state.textOverflow&&n.setState({textOverflow:e})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new It(n),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.content,o=t.accessibilityData;return i.createElement(Cn,{overflowMode:an.Self,hostClassName:n,content:r},i.createElement("span",(0,e.pi)({},(0,ze.ey)(o),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(i.Component),Sn=(0,o.y)(),An=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=Sn(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},n._getChartDataText=function(t){return n.props.barChartCustomData?i.createElement("div",{role:"text"},n.props.barChartCustomData(t)):n._getDefaultTextData(t)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_HBC_empty"),n.barChartSvgRef=i.createRef(),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var t=this,n=this.props,r=n.data,o=n.theme;this._adjustProps();var a=o.palette,s=0;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(e,n){s=e.chartData&&e.chartData[0]&&e.chartData[0].horizontalBarChartdata.x?e.chartData[0].horizontalBarChartdata.x:0,e.chartData[1]={legend:"",horizontalBarChartdata:{x:e.chartData[0].horizontalBarChartdata.y-s,y:e.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=t.props.variant===h.AbsoluteScale?null:t._getChartDataText(e),o=t._createBars(e,a),l=t._uniqLineText+"_"+n,c=Sn(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!e.chartData[0].data,variant:t.props.variant});return i.createElement("div",{key:n},i.createElement("div",{className:c.items},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:t._classNames.chartTitle},e.chartTitle&&i.createElement(En,{className:t._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),r)),e.chartData[0].data&&t._createBenchmark(e),i.createElement(dn,{direction:Re.horizontal,className:t._classNames.chartWrapper},i.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":e.chartTitle},i.createElement("g",{id:l,key:l,ref:function(n){t._refCallback(n,e.chartData[0].legend)},onClick:function(){var t=e.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),i.createElement(He,(0,e.pi)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._hoverOn=function(t,e){if((!this.state.isCalloutVisible||this.state.legend!==e.legend)&&this._calloutAnchorPoint!==e){var n=v(this._refArray,(function(t){return t.index===e.legend}));this._calloutAnchorPoint=e,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:e.color,legend:e.legend,refSelected:n.refElement,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,barCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,r=this.props.chartDataMode||"default",o=t.chartData[0],a=o.horizontalBarChartdata.x,s=o.horizontalBarChartdata.y,l=(0,ze.ey)(t.chartDataAccessibilityData,"text",!1);switch(r){case"default":return i.createElement("div",(0,e.pi)({className:this._classNames.chartTitleRight},l),(0,ze.Ts)(a,n));case"fraction":return i.createElement("div",(0,e.pi)({},l),i.createElement("span",{className:this._classNames.chartTitleRight},(0,ze.Ts)(a,n)),i.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,ze.Ts)(s,n)));case"percentage":var c="".concat((0,ze.Ts)(Math.round(a/s*100),n),"%");return i.createElement("div",(0,e.pi)({className:this._classNames.chartTitleRight},l),c)}},n.prototype._createBenchmark=function(t){var e=t.chartData[0].horizontalBarChartdata.y,n=t.chartData[0].data,r={left:"calc("+Math.round((n||0)/e*100)+"% - 4px)"};return i.createElement("div",{className:this._classNames.benchmarkContainer},i.createElement("div",{className:this._classNames.triangle,style:r}))},n.prototype._createBars=function(t,e){var n,r=this,o=(null===(n=t.chartData)||void 0===n?void 0:n.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(o-1),s=[e.blueLight,e.blue,e.blueMid,e.red,e.black],l=[],c=t.chartData.reduce((function(t,e){return t+(e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0)}),0),u=0,d=0,p=0;t.chartData.map((function(t,e){var n=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(d=n/c*100)<0?d=0:d<1&&0!==d&&(d=1),p+=d}));var f=0!==p?(p-a)/100:1,g=t.chartData.map((function(e,n){var o=e.color?e.color:s[Math.floor(4*Math.random()+1)],a=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;n>0&&(u+=d),(d=a/c*100)<0?d=0:d<1&&0!==d?d=1/f:d/=f,l.push(u);var p=e.horizontalBarChartdata.x;if(1===n&&r.props.variant===h.AbsoluteScale){if(r.props.hideLabels)return i.createElement("text",{key:n});var g=t.chartData[0].horizontalBarChartdata.x;return i.createElement("text",{key:n,x:"".concat(r._isRTL?100-l[n]:l[n],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(g))}return i.createElement("rect",{key:n,x:"".concat(r._isRTL?100-l[n]-d-n*r.state.barSpacingInPercent:l[n]+n*r.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==e.legend,width:d+"%",height:r._barHeight,fill:o,onMouseOver:""!==e.legend?r._hoverOn.bind(r,p,e):void 0,onFocus:""!==e.legend?r._hoverOn.bind(r,p,e):void 0,role:"img","aria-label":r._getAriaLabel(e),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper})}));return g},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(i.Component),Ln=(0,t.z)(An,(function(t){var n=t.className,r=t.theme,i=t.width,o=t.barHeight,a=t.showTriangle,s=t.variant,l=t.hideLabels,c=r.palette;return{root:[{display:"flex",flexDirection:"column",width:i||"100%"},n],items:{marginBottom:a||s===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,e.pi)((0,e.pi)({},r.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:r.palette.neutralPrimary,marginBottom:s===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:r.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.TS.medium,color:r.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,e.pi)((0,e.pi)({},r.fonts.small),{fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==h.AbsoluteScale||l?0:40}}})),kn={host:"ms-HoverCard-host"},Tn=function(){function t(e){this._id=t._uniqueId++,this._parent=e,this._eventRecords=[]}return t.raise=function(e,n,r,i,o){var a,s=null!=o?o:(0,C.M)();if(t._isElement(e)){if(void 0!==s&&s.createEvent){var l=s.createEvent("HTMLEvents");l.initEvent(n,i||!1,!0),j(l,r),a=e.dispatchEvent(l)}else if(void 0!==s&&s.createEventObject){var c=s.createEventObject(r);e.fireEvent("on"+n,c)}}else for(;e&&!1!==a;){var u=e.__events__,d=u?u[n]:null;if(d)for(var h in d)if(d.hasOwnProperty(h))for(var p=d[h],f=0;!1!==a&&f<p.length;f++){var g=p[f];g.objectCallback&&(a=g.objectCallback.call(g.parent,r))}e=i?e.parent:null}return a},t.isObserved=function(t,e){var n=t&&t.__events__;return!!n&&!!n[e]},t.isDeclared=function(t,e){var n=t&&t.__declaredEvents;return!!n&&!!n[e]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,e,n){for(var r in e)e.hasOwnProperty(r)&&this.on(t,r,e[r],n)},t.prototype.on=function(e,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(e,a[s],r,i);else{var l=this._parent,c={target:e,eventName:n,parent:l,callback:r,options:i};if((a=e.__events__=e.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,t._isElement(e)){var u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,t))&&t[0]){var i=t[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};c.elementCallback=u,e.addEventListener?e.addEventListener(n,u,i):e.attachEvent&&e.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!o._isDisposed)return r.apply(l,t)};this._eventRecords.push(c)}},t.prototype.off=function(t,e,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(t&&t!==o.target||e&&e!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},t.prototype.raise=function(e,n,r){return t.raise(this._parent,e,n,r)},t.prototype.declare=function(t){var e=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)e[t]=!0;else for(var n=0;n<t.length;n++)e[t[n]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(vn||(vn={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(_n||(_n={}));var wn,Dn={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Mn(t){var e=(0,i.useRef)();return(0,i.useEffect)((function(){e.current=t})),e.current}function Pn(t,e){var n=i.useRef(e);return n.current||(n.current=f(t)),n.current}function Fn(t){var e=i.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Fe((function(){e.current=t}),[t]),Zt((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.current.apply(void 0,t)}}))}!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(wn||(wn={}));var In={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Nn=i.forwardRef((function(t,n){var r,o,a,s=i.useRef(null),l=i.useRef(null),c=i.useRef(null),u=Ot(s,n),d=Rt(),h=Xt(),p=null===(r=Mn(!1))||void 0===r||r,f=B(In,t),g=Zt({hasFocus:!1,focusStackId:Pn("ftz-",f.id)}),m=f.children,v=f.componentRef,_=f.disabled,y=f.disableFirstFocus,x=f.forceFocusInsideTrap,C=f.focusPreviouslyFocusedInnerElement,E=f.firstFocusableSelector,S=f.firstFocusableTarget,A=f.disableRestoreFocus,L=void 0===A?f.ignoreExternalFocusing:A,k=f.isClickableOutsideFocusTrap,D=f.enableAriaHiddenSiblings,M={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:_?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=i.useCallback((function(t){t!==l.current&&t!==c.current&&V(t)}),[]),F=Fn((function(){if(s.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&b(s.current,t))P(t);else{var e=null;if("string"==typeof S)e=s.current.querySelector(S);else if(S)e=S(s.current);else if(E){var n="string"==typeof E?E:E();e=s.current.querySelector("."+n)}e||(e=w(s.current,s.current.firstChild,!1,!1,!1,!0)),e&&P(e)}}})),I=function(t){if(!_&&s.current){var e,n=t===g.hasFocus?(void 0===(e=!1)&&(e=!0),T(s.current,c.current,e,!1,!0,!0,!1,!0)):function(t,e,n,r){return void 0===r&&(r=!0),w(t,e,r,!1,!1,!0,!1,!0)}(s.current,l.current,0,!1);n&&(n===l.current||n===c.current?F():n.focus())}},N=Fn((function(t){if(Nn.focusStack=Nn.focusStack.filter((function(t){return g.focusStackId!==t})),d){var e=d.activeElement;L||"function"!=typeof(null==t?void 0:t.focus)||!b(s.current,e)&&e!==d.body||P(t)}})),H=Fn((function(t){if(!_&&g.focusStackId===Nn.focusStack.slice(-1)[0]){var e=t.target;e&&!b(s.current,e)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(F(),g.hasFocus=!0)}),0):(F(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return i.useEffect((function(){var t=[];return x&&t.push(O(h,"focus",H,!0)),k||t.push(O(h,"click",H,!0)),function(){t.forEach((function(t){return t()}))}}),[x,k,h]),i.useEffect((function(){if(!_&&(p||x)&&s.current){Nn.focusStack.push(g.focusStackId);var t=f.elementToFocusOnDismiss||d.activeElement;return y||b(s.current,t)||F(),function(){return N(t)}}}),[x,_]),i.useEffect((function(){if(!_&&D)return Pt(s.current)}),[_,D,s]),o=function(){delete g.previouslyFocusedElementInTrapZone},(a=i.useRef(o)).current=o,i.useEffect((function(){return function(){var t;null===(t=a.current)||void 0===t||t.call(a)}}),[]),function(t,e,n){i.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return e},focus:n}}),[n,e])}(v,g.previouslyFocusedElementInTrapZone,F),i.createElement("div",(0,e.pi)({"aria-labelledby":f.ariaLabelledBy},X(f,q),{ref:u,onFocusCapture:function(t){var e;null===(e=f.onFocusCapture)||void 0===e||e.call(f,t),t.target===l.current?I(!0):t.target===c.current&&I(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==l.current&&t.target!==c.current&&(g.previouslyFocusedElementInTrapZone=t.target)},onBlurCapture:function(t){var e;null===(e=f.onBlurCapture)||void 0===e||e.call(f,t);var n=t.relatedTarget;null===t.relatedTarget&&(n=d.activeElement),b(s.current,n)||(g.hasFocus=!1)}}),i.createElement("div",(0,e.pi)({},M,{ref:l})),m,i.createElement("div",(0,e.pi)({},M,{ref:c})))}));Nn.displayName="FocusTrapZone",Nn.focusStack=[];var Vn,On=function(t){return i.createElement(He,(0,e.pi)({},t),i.createElement(Nn,(0,e.pi)({disabled:t.hidden},t.focusTrapProps),t.children))},Bn=function(t){var n=t.gapSpace,r=void 0===n?0:n,o=t.directionalHint,a=void 0===o?_.bottomLeftEdge:o,s=t.directionalHintFixed,l=t.targetElement,c=t.firstFocus,u=t.trapFocus,d=t.onLeave,h=t.className,p=t.finalHeight,f=t.content,g=t.calloutProps,m=(0,e.pi)((0,e.pi)((0,e.pi)({},X(t,q)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:s,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:r}),g);return i.createElement(i.Fragment,null,u?i.createElement(On,(0,e.pi)({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):i.createElement(He,(0,e.pi)({},m),f))},Hn=(0,o.y)(),Rn=function(t){function n(e){var n=t.call(this,e)||this;return n._expandedElem=i.createRef(),n._onKeyDown=function(t){t.which===Ft&&n.props.onLeave&&n.props.onLeave(t)},n._onRenderCompactCard=function(){return i.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),i.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},i.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var t=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=t&&n.setState({needsScroll:!0})}))},n._async=new It(n),Ze(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,r=t.compactCardHeight,o=t.expandedCardHeight,a=t.theme,s=t.mode,l=t.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=r+o;this._classNames=Hn(n,{theme:a,compactCardHeight:r,className:l,expandedCardHeight:o,needsScroll:u,expandedCardFirstFrameRendered:s===wn.expanded&&d});var p=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return i.createElement(Bn,(0,e.pi)({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(i.Component),zn=(0,t.z)(Rn,(function(t){var e,n=t.theme,r=t.needsScroll,i=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,s=t.className,l=n.palette,c=(0,Yt.Cn)(Dn,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(e={},e[Yt.qJ]={border:"1px solid WindowText"},e)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Wn={root:"ms-PlainCard-root"},Yn=(0,o.y)(),Zn=function(t){function n(e){var n=t.call(this,e)||this;return n._onKeyDown=function(t){t.which===Ft&&n.props.onLeave&&n.props.onLeave(t)},Ze(n),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,r=t.theme,o=t.className;this._classNames=Yn(n,{theme:r,className:o});var a=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return i.createElement(Bn,(0,e.pi)({},this.props,{content:a,className:this._classNames.root}))},n}(i.Component),qn=(0,t.z)(Zn,(function(t){var e,n=t.theme,r=t.className;return{root:[(0,Yt.Cn)(Wn,n).root,{pointerEvents:"auto",selectors:(e={},e[Yt.qJ]={border:"1px solid WindowText"},e)},r]}}),void 0,{scope:"PlainCard"}),Xn=(0,o.y)(),Un=function(t){function n(e){var n=t.call(this,e)||this;return n._hoverCard=i.createRef(),n.dismiss=function(t){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),t?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(t){n._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===t.type&&(n._currentMouseTarget=t.currentTarget),n._executeCardOpen(t))},n._executeCardOpen=function(t){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:wn.compact,openMode:"keydown"===t.type?vn.hotKey:vn.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(t,e){if(t){if(!(e instanceof MouseEvent))return;if("keydown"===e.type&&e.which!==Ft)return;n.props.sticky||n._currentMouseTarget!==e.currentTarget&&e.which!==Ft||n.dismiss(!0)}else{if(n.props.sticky&&!(e instanceof MouseEvent)&&e.nativeEvent instanceof MouseEvent&&"mouseleave"===e.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:wn.compact,openMode:vn.hover})},n._instantOpenAsExpanded=function(t){n._async.clearTimeout(n._dismissTimerId),n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:wn.expanded}}))},n._setEventListeners=function(){var t=n.props,e=t.trapFocus,r=t.instantOpenOnClick,i=t.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),e?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},Ze(n),n._async=new It(n),n._events=new Tn(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:wn.compact,openMode:vn.hover},n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,e){var n=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),e.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:wn.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:wn.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,r=t.children,o=t.id,a=t.setAriaDescribedBy,s=void 0===a||a,l=t.styles,c=t.theme,u=t.className,d=t.type,h=t.plainCardProps,p=t.trapFocus,g=t.setInitialFocus,m=this.state,v=m.isHoverCardVisible,_=m.mode,y=m.openMode,x=o||f("hoverCard");this._classNames=Xn(l,{theme:c,className:u});var b=(0,e.pi)((0,e.pi)({},X(this.props,q)),{id:x,trapFocus:!!p,firstFocus:g||y===vn.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,e.pi)((0,e.pi)((0,e.pi)({},n),b),{mode:_}),E=(0,e.pi)((0,e.pi)({},h),b);return i.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":s&&v?x:void 0,"data-is-focusable":!this.props.target},r,v&&(d===_n.expanding?i.createElement(zn,(0,e.pi)({},C)):i.createElement(qn,(0,e.pi)({},E))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.M)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:_n.expanding},n}(i.Component),jn=(0,t.z)(Un,(function(t){var e=t.className,n=t.theme;return{host:[(0,Yt.Cn)(kn,n).host,e]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Vn||(Vn={}));var Gn=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,e){t.cacheKey&&(n[t.cacheKey]=e)}});var r,i=t;function o(t,e){var n=i.getCachedMeasurement(t);if(void 0!==n)return n;var r=e();return i.addMeasurementToCache(t,r),r}function a(t,e,n){for(var a=t,s=o(t,n);s>r;){var l=e(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=i.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,s,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(r&&n.renderedData&&!n.dataToMeasure)return(0,e.pi)((0,e.pi)({},n),function(t,n,i,o){var a;return a=t>r?o?{resizeDirection:"grow",dataToMeasure:o(i)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:i},r=t,(0,e.pi)((0,e.pi)({},a),{measureContainer:!1})}(l,t.data,n.renderedData,t.onGrowData));r=l}var c=(0,e.pi)((0,e.pi)({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&t.onGrowData?(0,e.pi)((0,e.pi)({},c),function(t,n,s,l){for(var c=t,u=o(t,s);u<r;){var d=n(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=i.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,e.pi)({resizeDirection:"shrink"},a(c,l,s))}(n.dataToMeasure,t.onGrowData,s,t.onReduceData)):(0,e.pi)((0,e.pi)({},c),a(n.dataToMeasure,t.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==i.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,e.pi)({},t),resizeDirection:"grow",measureContainer:!0}}}},Kn=i.createContext({isMeasured:!1}),$n={position:"fixed",visibility:"hidden"},Jn={position:"relative"};function Qn(t,n){var r;switch(n.type){case"resizeData":return(0,e.pi)({},n.value);case"dataToMeasure":return(0,e.pi)((0,e.pi)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,e.pi)((0,e.pi)({},t),((r={})[n.type]=n.value,r))}}var tr={isMeasured:!0},er=i.forwardRef((function(t,n){var r=i.useRef(null),o=Ot(r,n),a=function(t,n){var r=Zt(Gn),o=i.useRef(null),a=i.useRef(null),s=i.useRef(!1),l=Nt(),c=function(t,n,r){var o=Zt((function(){return n.getInitialResizeGroupState(t.data)})),a=i.useReducer(Qn,o),s=a[0],l=a[1];i.useEffect((function(){l({type:"dataToMeasure",value:t.data})}),[t.data]);var c=i.useRef(o);return c.current=(0,e.pi)({},s),[c,i.useCallback((function(t){t&&l({type:"resizeData",value:t})}),[]),i.useCallback((function(){r.current&&l({type:"measureContainer",value:!0})}),[r])]}(t,r,n),u=c[0],d=c[1],h=c[2];i.useEffect((function(){var e;u.current.renderedData&&(s.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,u.current.renderedData))})),i.useEffect((function(){l.requestAnimationFrame((function(){var e=void 0;if(u.current.measureContainer&&n.current){var i=n.current.getBoundingClientRect();e=t.direction===Vn.vertical?i.height:i.width}var l=r.getNextState(t,u.current,(function(){var e=s.current?a:o;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===Vn.vertical?n.height:n.width}),e);d(l)}),n.current)})),Vt(Ht(),"resize",l.debounce(h,16,{leading:!0}));var p=r.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!s.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,o,a,p,f]}(t,r),s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];i.useImperativeHandle(t.componentRef,(function(){return{remeasure:c}}),[c]);var f=t.className,g=t.onRenderData,m=X(t,q,["data"]);return i.createElement("div",(0,e.pi)({},m,{className:f,ref:o}),i.createElement("div",{style:Jn},h&&!p&&i.createElement("div",{style:$n,ref:d},i.createElement(Kn.Provider,{value:tr},g(s))),i.createElement("div",{ref:u,style:p?$n:void 0,"data-automation-id":"visibleContent"},p?g(s):l&&g(l))))}));er.displayName="ResizeGroupBase";var nr,rr=er;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(nr||(nr={}));var ir=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,e){void 0===e&&(e=!1);var n=t;e||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(e?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=e?nr.PERSISTED_KEYTIP_ADDED:nr.KEYTIP_ADDED;Tn.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(t,e){var n=this.addParentOverflow(t),r=this._getUniqueKtp(n,e),i=this.keytips[e];i&&(r.keytip.visible=i.keytip.visible,this.keytips[e]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Tn.raise(this,nr.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(t,e,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[e]:delete this.keytips[e],!n&&delete this.sequenceMapping[t.keySequences.toString()];var r=n?nr.PERSISTED_KEYTIP_REMOVED:nr.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Tn.raise(this,r,{keytip:t,uniqueID:e})},t.prototype.enterKeytipMode=function(){Tn.raise(this,nr.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Tn.raise(this,nr.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(e){return t.keytips[e].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,e.ev)([],t.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,e.pi)((0,e.pi)({},t),{overflowSetSequence:r.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,e){Tn.raise(this,nr.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:e})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=f()),{keytip:(0,e.pi)({},t),uniqueID:n}},t._instance=new t,t}(),or=function(t,e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];n[e.register(o,!0)]=o}},ar=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t.unregister(e[i],i,!0),delete e[i]}},sr=function(t){var n=ir.getInstance(),r=t.className,o=t.overflowItems,a=t.keytipSequences,s=t.itemSubMenuProvider,l=t.onRenderOverflowButton,c=Zt({}),u=i.useCallback((function(t){return s?s(t):t.subMenuProps?t.subMenuProps.items:void 0}),[s]),d=i.useMemo((function(){var t=[],r=[];return a?null==o||o.forEach((function(i){var o,s=i.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!i.disabled&&!i.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(i)?(l.onExecute=n.menuExecute.bind(n,a,null===(o=null==i?void 0:i.keytipProps)||void 0===o?void 0:o.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,t.push(l);var c=(0,e.pi)((0,e.pi)({},i),{keytipProps:(0,e.pi)((0,e.pi)({},s),{overflowSetSequence:a})});null==r||r.push(c)}else null==r||r.push(i)})):r=o,{modifiedOverflowItems:r,keytipsToRegister:t}}),[o,u,n,a]),h=d.modifiedOverflowItems;return function(t,e,n){var r=Mn(t);i.useEffect((function(){r&&(ar(n,r),or(e,n,t))})),i.useEffect((function(){return or(e,n,t),function(){ar(n,t)}}),[])}(c,d.keytipsToRegister,n),i.createElement("div",{className:r},l(h))},lr=(0,o.y)(),cr=i.forwardRef((function(t,n){var r=i.useRef(null),o=Ot(r,n);!function(t,e){var n=function(){var t;return(null!==(t=Rt())&&void 0!==t?t:"undefined"!=typeof document)?document:void 0}();i.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,n){var r=!1;return e.current&&(r=k(e.current,n)),r},focusElement:function(t){var r=!1;return!!t&&(e.current&&b(e.current,t)&&(t.focus(),r=(null==n?void 0:n.activeElement)===t),r)}}}),[e,n])}(t,r);var a=t.items,s=t.overflowItems,l=t.className,c=t.styles,u=t.vertical,d=t.role,h=t.overflowSide,p=void 0===h?"end":h,f=t.onRenderItem,g=lr(c,{className:l,vertical:u}),m=!!s&&s.length>0;return i.createElement("div",(0,e.pi)({},X(t,q),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:o}),"start"===p&&m&&i.createElement(sr,(0,e.pi)({},t,{className:g.overflowButton})),a&&a.map((function(t,e){return i.createElement("div",{className:g.item,key:t.key,role:"none"},f(t))})),"end"===p&&m&&i.createElement(sr,(0,e.pi)({},t,{className:g.overflowButton})))}));cr.displayName="OverflowSet";var ur,dr={flexShrink:0,display:"inherit"},hr=(0,t.z)(cr,(function(t){var e=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},e],item:["ms-OverflowSet-item",dr],overflowButton:["ms-OverflowSet-overflowButton",dr]}}),void 0,{scope:"OverflowSet"}),pr=((ur={})["".concat(ze.wo[ze.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",ur["".concat(ze.wo[ze.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",ur["".concat(ze.wo[ze.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ur["".concat(ze.wo[ze.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ur["".concat(ze.wo[ze.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",ur["".concat(ze.wo[ze.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",ur["".concat(ze.wo[ze.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",ur["".concat(ze.wo[ze.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",ur["".concat(ze.jc[ze.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",ur),fr=function(t){var n=t.svgProps,r=t.pathProps,o=t.shape,a=t.classNameForNonSvg;return-1===Object.keys(pr).indexOf(o)?i.createElement("div",{className:a}):i.createElement("svg",(0,e.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},n,{transform:"rotate(".concat(o===ze.wo[ze.wo.diamond]?45:o===ze.wo[ze.wo.pyramid]?180:0,", 0, 0)")}),i.createElement("path",(0,e.pi)({d:pr[o]},r)))},gr=(0,o.y)(),mr=function(t){function n(n){var r,o,a=this;(a=t.call(this,n)||this)._isLegendSelected=!1,a._onRenderData=function(t){var n=a.props,r=n.overflowProps,o=n.allowFocusOnLegends,s=void 0===o||o,l=n.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:a.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return i.createElement(dn,(0,e.pi)({},s&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),i.createElement(hr,(0,e.pi)({items:t.primary,overflowItems:t.overflow,onRenderItem:a._renderButton,onRenderOverflowButton:a._renderOverflowItems},r,{styles:(0,e.pi)((0,e.pi)({},u),null==r?void 0:r.styles)})))},a._onReduceData=function(t){if(0!==t.primary.length){var n=(0,e.ev)((0,e.ev)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},a._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,e.ev)((0,e.ev)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},a._canSelectMultipleLegends=function(t){var n=(0,e.pi)({},a.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===a.props.legends.length&&(n={})),a.setState({selectedLegends:n}),n},a._canSelectOnlySingleLegend=function(t){var e;return a.state.selectedLegends[t.title]?(a.setState({selectedLegends:{}}),!1):(a.setState({selectedLegends:(e={},e[t.title]=!0,e)}),!0)},a._onClick=function(t,e){var n,r,i,o=a.props.canSelectMultipleLegends,s=[];if(void 0!==o&&o){var l=a._canSelectMultipleLegends(t);s=Object.keys(l)}else s=a._canSelectOnlySingleLegend(t)?[t.title]:[];null===(r=(n=a.props).onChange)||void 0===r||r.call(n,s,e,t),null===(i=t.action)||void 0===i||i.call(t)},a._onRenderCompactCard=function(t){var n=a.props,r=n.allowFocusOnLegends,o=void 0===r||r,s=n.className,l=n.styles,c=n.theme,u=n.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=gr(l,{theme:c,className:s});return t.renderData.forEach((function(t,e){var n=a._renderButton(t,e,!0);h.push(n)})),i.createElement(dn,(0,e.pi)({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Re.vertical},a.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},a._renderOverflowItems=function(t){var n=a.props.allowFocusOnLegends,r=void 0===n||n,o=[];t.forEach((function(t,e){o.push({key:e.toString(),name:t.title,onClick:t.action})}));var s={renderData:t},l=a.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=gr(d,{theme:c,className:u}),f={onRenderPlainCard:a._onRenderCompactCard,renderData:s},g=h||"more";return i.createElement(jn,{type:_n.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){a.setState({isHoverCardVisible:!1});var e=v(t,(function(t){return t.title===a.state.activeLegend}));e&&(a.setState({activeLegend:""}),e.onMouseOutAction&&e.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:a._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:a._hoverCardRef},i.createElement("div",(0,e.pi)({className:p.overflowIndicationTextStyle,ref:function(t){return a._hoverCardRef=t}},r&&{role:"button","aria-expanded":a.state.isHoverCardVisible,"aria-label":"".concat(o.length," ").concat(g)},{"data-is-focusable":r}),o.length," ",g))},a._hoverCardVisible=function(){a.setState({isHoverCardVisible:!0})},a._onHoverOverLegend=function(t){t.hoverAction&&(a.setState({activeLegend:t.title}),t.hoverAction())},a._onLeave=function(t){t.onMouseOutAction&&(a.setState({activeLegend:""}),t.onMouseOutAction())},a._renderButton=function(t,n,r){var o=a.props.allowFocusOnLegends,s=void 0===o||o,l={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},c=a._getColor(l.title,l.color),u=a.props,d=u.theme,h=u.className,p=u.styles,f=gr(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),g=function(){a._onHoverOverLegend(l)},m=function(){a._onLeave(l)},v=a._getShape(f,l,c);return i.createElement("button",(0,e.pi)({},s&&{"aria-selected":!!a.state.selectedLegends[l.title],role:"option","aria-label":"".concat(l.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,e.pi)({},t.nativeButtonProps),{key:n,className:f.legend,onClick:function(t){a._onClick(l,t)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":s}),v,i.createElement("div",{className:f.text},l.title))};var s={};return n.canSelectMultipleLegends?s=(null===(o=n.defaultSelectedLegends)||void 0===o?void 0:o.reduce((function(t,n){var r;return(0,e.pi)(((r={})[n]=!0,r),t)}),{}))||{}:n.defaultSelectedLegend&&((r={})[n.defaultSelectedLegend]=!0,s=r),a.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:s},a}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=gr(r,{theme:e,className:n}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return i.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):i.createElement(rr,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props.allowFocusOnLegends,r=void 0===n||n;return{primary:this.props.legends.map((function(n,i){return(0,e.pi)((0,e.pi)({},r&&{nativeButtonProps:X(n,Z,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,e,n){var r={className:t.shape},o={fill:n,strokeWidth:2,stroke:e.color};return i.createElement(fr,{svgProps:r,pathProps:o,shape:e.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,e){var n=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?e:n.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?e:n.semanticColors.buttonBackground},n}(i.Component),vr=(0,t.z)(mr,(function(t){var n,r,i=t.className,o=t.theme,a=t.isLineLegendInBarChart,s=void 0!==a&&a,l=o,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},i],legend:[(0,Yt.GL)(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Yt.qJ]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":""},n),width:"12px",height:s?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(r={},r[Yt.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},r)},text:(0,e.pi)((0,e.pi)({},u.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:o.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:c.black},overflowIndicationTextStyle:[(0,Yt.GL)(o,d),(0,e.pi)((0,e.pi)({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,Yt.GL)(o,d)]}}}}));function _r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function yr(t){return function(){return t}}function xr(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function br(t){return t}Array.prototype.slice;const Cr=Math.abs,Er=Math.atan2,Sr=Math.cos,Ar=Math.max,Lr=Math.min,kr=Math.sin,Tr=Math.sqrt,wr=1e-12,Dr=Math.PI,Mr=Dr/2,Pr=2*Dr;function Fr(t){return t>=1?Mr:t<=-1?-Mr:Math.asin(t)}function Ir(){var t=br,e=xr,n=null,r=yr(0),i=yr(Pr),o=yr(0);function a(a){var s,l,c,u,d,h=(a=_r(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Pr,Math.max(-Pr,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+t(a[s],s,a))>0&&(p+=d);for(null!=e?f.sort((function(t,n){return e(g[t],g[n])})):null!=n&&f.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:yr(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:yr(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:yr(+t),a):o},a}const Nr=Math.PI,Vr=2*Nr,Or=1e-6,Br=Vr-Or;function Hr(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Rr{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Hr:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Hr;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-t,l=r-e,c=o-t,u=a-e,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Or)if(Math.abs(u*s-l*c)>Or&&i){let h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((Nr-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>Or&&this._append`L${t+y*c},${e+y*u}`,this._append`A${i},${i},0,0,${+(u*h>c*p)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=t+a,c=e+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Or||Math.abs(this._y1-c)>Or)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Vr+Vr),d>Br?this._append`A${n},${n},0,1,${u},${t-a},${e-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Or&&this._append`A${n},${n},0,${+(d>=Nr)},${u},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function zr(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Rr(e)}function Wr(t){return t.innerRadius}function Yr(t){return t.outerRadius}function Zr(t){return t.startAngle}function qr(t){return t.endAngle}function Xr(t){return t&&t.padAngle}function Ur(t,e,n,r,i,o,a){var s=t-n,l=e-r,c=(a?o:-o)/Tr(s*s+l*l),u=c*l,d=-c*s,h=t+u,p=e+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,E=(y<0?-1:1)*Tr(Ar(0,b*b*x-C*C)),S=(C*y-_*E)/x,A=(-C*_-y*E)/x,L=(C*y+_*E)/x,k=(-C*_+y*E)/x,T=S-m,w=A-v,D=L-m,M=k-v;return T*T+w*w>D*D+M*M&&(S=L,A=k),{cx:S,cy:A,x01:-u,y01:-d,x11:S*(i/b-1),y11:A*(i/b-1)}}function jr(){var t=Wr,e=Yr,n=yr(0),r=null,i=Zr,o=qr,a=Xr,s=null,l=zr(c);function c(){var c,u,d,h=+t.apply(this,arguments),p=+e.apply(this,arguments),f=i.apply(this,arguments)-Mr,g=o.apply(this,arguments)-Mr,m=Cr(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>wr)if(m>Pr-wr)s.moveTo(p*Sr(f),p*kr(f)),s.arc(0,0,p,f,g,!v),h>wr&&(s.moveTo(h*Sr(g),h*kr(g)),s.arc(0,0,h,g,f,v));else{var _,y,x=f,b=g,C=f,E=g,S=m,A=m,L=a.apply(this,arguments)/2,k=L>wr&&(r?+r.apply(this,arguments):Tr(h*h+p*p)),T=Lr(Cr(p-h)/2,+n.apply(this,arguments)),w=T,D=T;if(k>wr){var M=Fr(k/h*kr(L)),P=Fr(k/p*kr(L));(S-=2*M)>wr?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(A-=2*P)>wr?(x+=P*=v?1:-1,b-=P):(A=0,x=b=(f+g)/2)}var F=p*Sr(x),I=p*kr(x),N=h*Sr(E),V=h*kr(E);if(T>wr){var O,B=p*Sr(b),H=p*kr(b),R=h*Sr(C),z=h*kr(C);if(m<Dr)if(O=function(t,e,n,r,i,o,a,s){var l=n-t,c=r-e,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<wr))return[t+(h=(u*(e-o)-d*(t-i))/h)*l,e+h*c]}(F,I,R,z,B,H,N,V)){var W=F-O[0],Y=I-O[1],Z=B-O[0],q=H-O[1],X=1/kr(((d=(W*Z+Y*q)/(Tr(W*W+Y*Y)*Tr(Z*Z+q*q)))>1?0:d<-1?Dr:Math.acos(d))/2),U=Tr(O[0]*O[0]+O[1]*O[1]);w=Lr(T,(h-U)/(X-1)),D=Lr(T,(p-U)/(X+1))}else w=D=0}A>wr?D>wr?(_=Ur(R,z,F,I,p,D,v),y=Ur(B,H,N,V,p,D,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),D<T?s.arc(_.cx,_.cy,D,Er(_.y01,_.x01),Er(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,Er(_.y01,_.x01),Er(_.y11,_.x11),!v),s.arc(0,0,p,Er(_.cy+_.y11,_.cx+_.x11),Er(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,D,Er(y.y11,y.x11),Er(y.y01,y.x01),!v))):(s.moveTo(F,I),s.arc(0,0,p,x,b,!v)):s.moveTo(F,I),h>wr&&S>wr?w>wr?(_=Ur(N,V,B,H,h,-w,v),y=Ur(F,I,R,z,h,-w,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),w<T?s.arc(_.cx,_.cy,w,Er(_.y01,_.x01),Er(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,w,Er(_.y01,_.x01),Er(_.y11,_.x11),!v),s.arc(0,0,h,Er(_.cy+_.y11,_.cx+_.x11),Er(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,w,Er(y.y11,y.x11),Er(y.y01,y.x01),!v))):s.arc(0,0,h,E,C,v):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Dr/2;return[Sr(r)*n,kr(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:yr(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:yr(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:yr(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:yr(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:yr(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}Rr.prototype;var Gr=function(t){var e=t.color,n=t.href,r=t.theme;return{root:{fill:e,cursor:n?"pointer":"default",stroke:r.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}}},Kr=n(1783),$r=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.currentRef=i.createRef(),e._isRTL=(0,a.zg)(),e._hoverOff=function(){e.props.hoverLeaveCallback()},e._onBlur=function(){e.props.onBlurCallback()},e._getAriaLabel=function(){var t,n=e.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(t=n.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(i,".")},e._renderArcLabel=function(t){var n=e.props,r=n.arc,o=n.data,a=n.innerRadius,s=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue,u=n.hideLabels,d=n.activeArc;if(u||Math.abs(o.endAngle-o.startAngle)<Math.PI/12||d!==o.data.legend&&""!==d)return null;var h=r.centroid(o),p=h[0],f=h[1],g=Math.sqrt(p*p+f*f),m=Math.max(a,s)+2,v=(o.startAngle+o.endAngle)/2,_=o.value;return i.createElement("text",{x:(0===g?0:p/g)*m,y:(0===g?0:f/g)*m,textAnchor:v>Math.PI!==e._isRTL?"end":"start",dominantBaseline:v>Math.PI/2&&v<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},l?(0,Kr.WU)(".0%")(0===c?0:_/c):(0,ze.cE)(_))},e}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t){return Jr(t),null},n.prototype.updateChart=function(t){Jr(t)},n.prototype.render=function(){var t,e=this.props,n=e.arc,r=e.href,a=e.focusedArcId,s=(0,o.y)()(Gr,{color:this.props.color,href:r,theme:this.props.theme}),l=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,c=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return i.createElement("g",{ref:this.currentRef},!!a&&a===l&&i.createElement("path",{id:l+"focusRing",d:n(this.props.focusData),className:s.focusRing}),i.createElement("path",{id:l,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,l),className:s.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:c,onClick:r?this._redirectToUrl.bind(this,r):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(s.arcLabel))},n.prototype._onFocus=function(t,e){this.props.onFocusCallback(t,e,this.currentRef.current)},n.prototype._hoverOn=function(t,e){e.persist(),this.props.hoverOnCallback(t,e)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:jr()},n}(i.Component);function Jr(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Qr=function(t){var e,n=t.theme;return{root:{},insideDonutString:{fontSize:Yt.TS.xLargePlus,fontWeight:Yt.lq.semibold,fill:n.semanticColors.bodyText,selectors:(e={},e[Yt.$v]={fill:"rgb(179, 179, 179)"},e)}}},ti=(0,o.y)(),ei=function(t){function n(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e,r,o){var a=t&&t.data&&t.data.color;return i.createElement($r,{key:e,data:t,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:o,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(t,e,r){n.props.onFocusCallback(t,e,r)},n._computeTotalValue=function(){var t=0;return n.props.data.forEach((function(e){t+=e.data})),t},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Ir().sort(null).value((function(t){return t.data})).padAngle(0),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=this._pieForFocusRing(r),a=n(r),s="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=ti(Qr,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),i.createElement("g",{transform:s},a.map((function(e,n){return t.arcGenerator(e,n,o[n],t.props.href)})),this.props.valueInsideDonut&&i.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t=ti(Qr,{theme:this.props.theme});(0,ze.yQ)(t.insideDonutString,2*this.props.innerRadius-5)},n.prototype._hoverCallback=function(t,e){this.props.hoverOnCallback(t,e)},n.defaultProps={pie:Ir().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(i.Component),ni={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},ri={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},ii={qualitative:ri,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},oi=Object.values(ri),ai=Object.values(ni),si=function(t,e){if(0===t.length)return"";var n=Number(e);return n<t.length?t[n]:t[0]},li=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var r=oi[(t+e)%oi.length];return si(r,n)},ci=function(t,e){if(void 0===e&&(e=!1),ai.indexOf(t)>=0){var n=t.split("."),r=n[0],i=n[1],o=ii[r][i];return si(o,e)}return t},ui=(0,o.y)(),di=function(t){function n(n){var r=t.call(this,n)||this;return r._closeCallout=function(){r.setState({showHover:!1})},r._focusCallback=function(t,e,n){r._currentHoverElement=n,r.setState({showHover:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:e,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},r._hoverCallback=function(t,e){r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r._currentHoverElement=e,r.setState({showHover:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},r._onBlur=function(){r.setState({focusedArcId:""})},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({showHover:!1})},r._addDefaultColors=function(t){return t?t.map((function(t,n){var i,o,a;return a=void 0===t.color?li(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):ci(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,e.pi)((0,e.pi)({},t),{color:a})})):[]},r.state={showHover:!1,value:"",legend:"",_width:r.props.width||200,_height:r.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},r._hoverCallback=r._hoverCallback.bind(r),r._focusCallback=r._focusCallback.bind(r),r._hoverLeave=r._hoverLeave.bind(r),r._calloutId=f("callout"),r._uniqText=f("_Pie_"),r._emptyChartId=f("_DonutChart_empty"),r}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t,n){var r,i;return t.width&&t.width!==n._width&&(r={_width:t.width}),t.height&&t.height!==n._height&&(i={_height:t.height-40}),(0,e.pi)((0,e.pi)({},r),i)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.render=function(){var t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,s=this._addDefaultColors(null==r?void 0:r.chartData);this._classNames=ui(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var l=this._createLegends(s),c=this.props.hideLabels?0:80,u=this.props.hideLabels?0:40,d=Math.min(this.state._width-c,this.state._height-u)/2,h=s.filter((function(t){return t.data>0})),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},i.createElement(dn,{direction:Re.horizontal,handleTabKey:1},i.createElement("div",null,i.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},i.createElement(ei,{width:this.state._width,height:this.state._height,outerRadius:d,innerRadius:this.props.innerRadius,data:h,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(p),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),i.createElement(He,(0,e.pi)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:_.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&i.createElement("div",{className:this._classNames.legendContainer},l))},n.prototype._setViewBox=function(t){var e,n;if(null!==t){var r=t.parentElement?t.parentElement.clientWidth:this.state._width,i=t.parentElement&&(null===(e=t.parentElement)||void 0===e?void 0:e.offsetHeight)>this.state._height?null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,o="0 0 ".concat(r," ").concat(i);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,r=t.map((function(t,e){var r=t.color;return{title:t.legend,color:r,action:function(){n.state.selectedLegend===t.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return i.createElement(vr,(0,e.pi)({legends:r,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(t,e){var n=this,r=this._getHighlightedLegend();if(void 0===t||""===r&&!this.state.showHover)return t;var i=t;return e.map((function(t,e){(t.legend===r||n.state.showHover&&t.legend===n.state.legend)&&(i=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),i},n.prototype._toLocaleString=function(t){var e=(0,ze.Ts)(t,this.props.culture);return e?null==e?void 0:e.toString():t},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(i.Component),hi=(0,t.z)(di,(function(t){var e=t.className,n=t.width,r=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},e],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}})),pi=n(8485),fi=n(7329);function gi(t){this._context=t}function mi(t){return new gi(t)}function vi(t){return t[0]}function _i(t){return t[1]}function yi(t,e){var n=yr(!0),r=null,i=mi,o=null,a=zr(s);function s(s){var l,c,u,d=(s=_r(s)).length,h=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,l,s),+e(c,l,s));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?vi:yr(t),e="function"==typeof e?e:void 0===e?_i:yr(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:yr(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}gi.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var xi,bi,Ci,Ei=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=i.createRef(),r._tooltipHostId=f("tooltip-host"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current)return r._tooltipHost.current},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipBlur=function(t){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var e=r.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r.state.isOverflowing&&(!t.target||!Ge(t.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),e!==pn.zero){var i=r._getDelayTime(e);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),i)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var e=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),e?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),e):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ft||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t})},r._getDelayTime=function(t){switch(t){case pn.medium:return 300;case pn.long:return 500;default:return 0}},r._wrapContent=function(){var t=r.props,e=t.content,n=t.wrapContent,i=t.maxWidth,o=void 0===i?Number.POSITIVE_INFINITY:i,a=t.maxHeight,s=!1;e&&n&&n(e,r._tooltipHostId,o,a)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new It(r),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,r=t.tooltipProps,o=t.textProps,a=t.shouldReceiveFocus,s=void 0===a||a,l=this.state.isTooltipVisible,c=(0,e.pi)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},r),u=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||l&&!!n;return i.createElement(i.Fragment,null,i.createElement("text",(0,e.pi)({},o,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":s&&this.state.isOverflowing}),n),u&&i.createElement(mn,(0,e.pi)({},c)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:pn.medium},n}(i.Component),Si=(0,o.y)(),Ai=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,8024)).then((function(t){return{default:t.ChartHoverCard}}))})),Li=function(t){function n(n){var r,o,s,l,c,u,d,h,p,g,m,v,_,y,x,b,C,E,S,A,L,k,T,w,D,M,P=this;return(P=t.call(this,n)||this).minLegendContainerHeight=32,P._isRtl=(0,a.zg)(),P._isFirstRender=!0,P.isIntegralDataset=!0,P._multiValueCallout=function(t){var n=P._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:P._classNames.calloutContentRoot},i.createElement("div",{className:P._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},i.createElement("div",(0,e.pi)({className:P._classNames.calloutContentX},(0,ze.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,ze.Ts)(t.hoverXValue,P.props.culture))),i.createElement("div",{className:P._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,r,o){var a=r+1===o.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:n?(0,e.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,e.pi)({},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),P._getCalloutContent(t,r,n,a))})),!!t.descriptionMessage&&i.createElement("div",{className:P._classNames.descriptionMessage},t.descriptionMessage)))},P._getData=function(t,e){P.props.getGraphData&&P.props.getGraphData(t,e,P.state.containerHeight-P.state._removalValueForTextTuncate,P.state.containerWidth,P.xAxisElement,P.yAxisElement)},P._onChartLeave=function(){P.props.onChartMouseLeave&&P.props.onChartMouseLeave()},P._calculateChartMinWidth=function(){var t=10;if(!P.props.wrapXAxisLables&&P.props.rotateXAxisLables&&P.props.xAxisType===ze.xl.StringAxis){var e=(0,ze.yE)(P._tickValues,".".concat(P._classNames.xAxis," text"));t+=Math.ceil(e*Math.cos(Math.PI/4))}else if(P.props.showXAxisLablesTooltip){var n=P._tickValues.map((function(t){var e=P.props.noOfCharsToTruncate||4;return t.toString().length>e?"".concat(t.toString().slice(0,e),"..."):t}));e=(0,ze.yE)(n,".".concat(P._classNames.xAxis," text")),t+=Math.ceil(e)}else if(P.props.wrapXAxisLables){var r=[];P._tickValues.forEach((function(t){r.push.apply(r,t.toString().split(/\s+/))})),e=(0,ze.yE)(r,".".concat(P._classNames.xAxis," text")),t+=Math.max(Math.ceil(e),10)}else e=(0,ze.yE)(P._tickValues,".".concat(P._classNames.xAxis," text")),t+=Math.ceil(e);var i=P.margins.left+P.margins.right+t*(P._tickValues.length-1);return[ze.$X.GroupedVerticalBarChart,ze.$X.VerticalBarChart,ze.$X.VerticalStackedBarChart].includes(P.props.chartType)&&(i+=16),i},P.state={containerHeight:0,containerWidth:0,_width:P.props.width||600,_height:P.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},P.idForGraph=f("chart_"),P.titleMargin=8,P.idForDefaultTabbableElement=f("defaultTabbableElement_"),P.margins={top:null!==(o=null===(r=P.props.margins)||void 0===r?void 0:r.top)&&void 0!==o?o:20,bottom:null!==(l=null===(s=P.props.margins)||void 0===s?void 0:s.bottom)&&void 0!==l?l:35,right:P._isRtl?null!==(u=null===(c=P.props.margins)||void 0===c?void 0:c.left)&&void 0!==u?u:40:(null!==(h=null===(d=P.props.margins)||void 0===d?void 0:d.right)&&void 0!==h?h:null===(p=P.props)||void 0===p?void 0:p.secondaryYScaleOptions)?40:20,left:P._isRtl?(null!==(m=null===(g=P.props.margins)||void 0===g?void 0:g.right)&&void 0!==m?m:null===(v=P.props)||void 0===v?void 0:v.secondaryYScaleOptions)?40:20:null!==(y=null===(_=P.props.margins)||void 0===_?void 0:_.left)&&void 0!==y?y:40},void 0!==P.props.xAxisTitle&&""!==P.props.xAxisTitle&&(P.margins.bottom=null!==(b=null===(x=P.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==b?b:55),void 0!==P.props.yAxisTitle&&""!==P.props.yAxisTitle&&(P.margins.left=P._isRtl?(null!==(E=null===(C=P.props.margins)||void 0===C?void 0:C.right)&&void 0!==E?E:null===(S=P.props)||void 0===S?void 0:S.secondaryYAxistitle)?60:40:null!==(L=null===(A=P.props.margins)||void 0===A?void 0:A.left)&&void 0!==L?L:60,P.margins.right=P._isRtl?null!==(T=null===(k=P.props.margins)||void 0===k?void 0:k.left)&&void 0!==T?T:60:(null!==(D=null===(w=P.props.margins)||void 0===w?void 0:w.right)&&void 0!==D?D:null===(M=P.props)||void 0===M?void 0:M.secondaryYAxistitle)?60:40),P}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=(0,ze.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===ze.xl.StringAxis){var e={node:this.xAxisElement,xAxis:this._xScale},n=(0,ze.zs)(e);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var r=(0,ze.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==r&&this.setState({startFromX:r})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,r,o,a,s,l,c,u,d,h=this,p=this.props,f=p.calloutProps,g=p.points,m=p.chartType,v=p.chartHoverProps,_=p.svgFocusZoneProps,y=p.svgProps,x=p.culture,b=p.dateLocalizeOptions,C=p.timeFormatLocale,E=p.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var S=(0,e.pi)({},this.margins);this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&(this._isRtl?S.right+=this.state.startFromX:S.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(S);var A=null,L=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var k={domainNRangeValues:(0,ze.dr)(g,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,m,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},T={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:(0,ze.As)(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},w=void 0,D=void 0;switch(this.props.xAxisType){case ze.xl.NumericAxis:w=(t=(0,ze.OX)(k,this.props.chartType,x)).xScale,D=t.tickValues;break;case ze.xl.DateAxis:w=(n=(0,ze.s8)(k,this.props.tickParams,x,b,C,E)).xScale,D=n.tickValues;break;case ze.xl.StringAxis:w=(r=(0,ze.R)(k,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:w=(o=(0,ze.OX)(k,this.props.chartType,x)).xScale,D=o.tickValues}if(this._xScale=w,this._tickValues=D,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var M={node:this.xAxisElement,xAxis:w,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=w&&(0,ze.Pu)(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var F=void 0,I=void 0,N={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===ze.OH.StringAxis)F=(0,ze.Tj)(T,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth,x);else{if(null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions){var V={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,maxOfYVal:null!==(d=null===(u=this.props.secondaryYScaleOptions)||void 0===u?void 0:u.yMaxValue)&&void 0!==d?d:100,yMinMaxValues:(0,ze.As)(g,m),yAxisPadding:this.props.yAxisPadding};I=(0,ze.eQ)(V,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset,!0)}F=(0,ze.eQ)(T,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset)}this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&F&&(0,ze.Ay)(this.yAxisElement,F,this.props.noOfCharsToTruncate||4,this.props.showYAxisLablesTooltip||!1,this.state.startFromX,this._isRtl),this.props.getAxisData&&this.props.getAxisData(N),this._getData(w,F),L=this.props.children((0,e.pi)((0,e.pi)({},this.state),{xScale:w,yScale:F,yScaleSecondary:I})),!this.props.hideTooltip&&f.isCalloutVisible&&(A=this._generateCallout(f,v))}this._classNames=Si(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var O,B={width:this.state.containerWidth,height:this.state.containerHeight};O=this.props.focusZoneDirection===Re.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Re.horizontal;var H=B.width-this.margins.left-this.margins.right-this.state.startFromX,R=B.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return i.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement(dn,(0,e.pi)({direction:O,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},_),this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement("svg",(0,e.pi)({width:B.width,height:B.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),i.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(B.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&i.createElement(Ei,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+H/2,y:B.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:H,wrapContent:ze.nX}),i.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?B.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&i.createElement("g",null,i.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:B.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&i.createElement(Ei,{content:this.props.secondaryYAxistitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:B.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(B.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:ze.nX})),L,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&i.createElement(Ei,{content:this.props.yAxisTitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?B.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(B.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:ze.nX}))),!this.props.hideLegend&&i.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),A&&i.createElement(i.Suspense,{fallback:i.createElement("div",null,"Loading...")},A))},n.prototype._generateCallout=function(t,n){return i.createElement(He,(0,e.pi)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&i.createElement(Ai,(0,e.pi)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,e,n,r){var o,a=r?{}:{marginRight:"16px"},s=void 0!==t.index&&-1!==t.index,l=Si(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:s}),c=this.props.culture,u=(0,ze.Ts)(t.y,c);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var d=t.yAxisCalloutData;return i.createElement("div",{style:a},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",u,")"),Object.keys(d).map((function(t){return i.createElement("div",{key:t,className:l.calloutBlockContainer},i.createElement("div",{className:l.calloutlegendText}," ",(0,ze.Ts)(t,c)),i.createElement("div",{className:l.calloutContentY},(0,ze.Ts)(d[t],c)))})))}return i.createElement("div",{style:n?a:{}},n&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",u,")"),i.createElement("div",{id:"".concat(e,"_").concat(t.y),className:l.calloutBlockContainer},s&&i.createElement(fr,{svgProps:{className:l.shapeStyles},pathProps:{fill:t.color},shape:ze.wo[t.index%Object.keys(ze.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:l.calloutlegendText}," ",t.legend),i.createElement("div",{className:l.calloutContentY},(0,ze.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(o=t.y)&&void 0!==o?o:t.data,c)))))},n.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e;if(t.props.hideLegend)e=0;else{var i=t.legendContainer&&getComputedStyle(t.legendContainer);e=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(i&&i.marginTop||"0")+parseFloat(i&&i.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>e?o.getBoundingClientRect().height:350;(n!==a||r!==s-e)&&t.setState({containerWidth:a,containerHeight:s-e})}}))},n}(i.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(xi||(xi={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(bi||(bi={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Ci||(Ci={}));var ki=function(){var t,e=(0,s.J)();return!!(null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&e.navigator.userAgent.indexOf("rv:11.0")>-1}(),Ti=(0,t.z)(Li,(function(t){var n,r,i,o,a,s,l,c,u=t.className,d=t.theme,h=t.isRtl,p=t.shouldHighlight,f=t.href,g=t.lineColor,m=void 0===g?"transparent":g,v=t.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],chartWrapper:{overflow:"auto"},axisTitle:[d.fonts.xSmall,{textAlign:"center",fontWeight:Yt.lq.semibold,fontStyle:"normal",lineHeight:Yt.TS.medium,color:bi.gray160,fill:d.semanticColors.bodyText}],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Yt.$v]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(r={},r[Yt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[Yt.$v]={fill:"rgb(179, 179, 179)"},i)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Yt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!ki&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,e.pi)((0,e.pi)({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[Yt.qJ]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,e.pi)((0,e.pi)({},_.small),{lineHeight:"16px",selectors:(s={},s[Yt.$v]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[(0,e.pi)((0,e.pi)({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Yt.$v]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Yt.$v]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),wi=(0,ue.Ct)((function(t){return(0,ue.Ct)((function(e){var n=(0,ue.Ct)((function(t){return function(n){return e(n,t)}}));return function(r,i){return t(r,i?n(i):e)}}))}));function Di(t,e){return wi(t)(e)}var Mi=function(t){if(void 0===t)return 0;var e=0;return"scrollTop"in t?e=t.scrollTop:"scrollY"in t&&(e=t.scrollY),Math.ceil(e)},Pi=function(t,e){"scrollTop"in t?t.scrollTop=e:"scrollY"in t&&t.scrollTo(t.scrollX,e)},Fi="spacer-",Ii={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Ni=function(t){return t.getBoundingClientRect()},Vi=Ni,Oi=Ni,Bi=function(t){function n(n){var r=t.call(this,n)||this;return r._root=i.createRef(),r._surface=i.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(t,e){return t.items!==r.props.items||t.renderCount!==r.props.renderCount||t.startIndex!==r.props.startIndex||t.version!==r.props.version||!e.hasMounted&&r.props.renderEarly&&(0,Pe.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(t,e)):e},r._onRenderRoot=function(t){var n=t.rootRef,r=t.surfaceElement,o=t.divProps;return i.createElement("div",(0,e.pi)({ref:n},o),r)},r._onRenderSurface=function(t){var n=t.surfaceRef,r=t.pageElements,o=t.divProps;return i.createElement("div",(0,e.pi)({ref:n},o),r)},r._onRenderPage=function(t,n){for(var o,a=r.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=t.page,d=u.items,h=void 0===d?[]:d,p=u.startIndex,f=(0,e._T)(t,["page"]),g=void 0===c?"listitem":"presentation",m=[],v=0;v<h.length;v++){var _=p+v,y=h[v],x=r.props.getKey?r.props.getKey(y,_):y&&y.key;null==x&&(x=_);var b=null!=l?l:s,C=null!==(o=null==b?void 0:b(y,_,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==o?o:null;l&&!C||m.push(i.createElement("div",{role:g,className:"ms-List-cell",key:x,"data-list-index":_,"data-automationid":"ListCell"},C))}return i.createElement("div",(0,e.pi)({},f),m)},Ze(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._estimatedPageHeight=0,r._totalEstimates=0,r._requiredWindowsAhead=0,r._requiredWindowsBehind=0,r._measureVersion=0,r._cachedPageHeights={},r._estimatedPageHeight=0,r._focusedIndex=-1,r._pageCache={},r}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t,e){return e.getDerivedStateFromProps(t,e)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,e,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var c=this._getPageSpecification(this.props,l,o),u=c.height;if(s=c.itemCount,l<=t&&l+s>t){if(e&&this._scrollElement){for(var d=Oi(this._scrollElement),h=Mi(this._scrollElement),p={top:h,bottom:h+d.height},f=t-l,g=0;g<f;++g)a+=e(l+g);var m=a+e(t);switch(n){case 1:return void Pi(this._scrollElement,a);case 2:return void Pi(this._scrollElement,m-d.height);case 3:return void Pi(this._scrollElement,(a+m-d.height)/2)}if(a>=p.top&&m<=p.bottom)return;a<p.top||m>p.bottom&&(a=m-d.height)}return void(this._scrollElement&&Pi(this._scrollElement,a))}a+=u}},n.prototype.getStartItemIndexInView=function(t){for(var e=0,n=this.state.pages||[];e<n.length;e++){var r=n[e];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!t){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=t(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},n.prototype.componentDidMount=function(){this._async=new It(this),this._events=new Tn(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=et(this._root.current),this._scrollTop=0,this.setState((0,e.pi)((0,e.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var e;return(null!==(e=null==t?void 0:t.window)&&void 0!==e?e:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,e){var n=this.props,r=this.state;this.state.pagesVersion!==e.pagesVersion&&(n.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdleDebounced(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},n.prototype.componentWillUnmount=function(){var t,e;null===(t=this._async)||void 0===t||t.dispose(),null===(e=this._events)||void 0===e||e.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,e){var n=this.state.pages,r=e.pages,i=!1;if(!e.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,r=t.role,i=void 0===r?"list":r,o=t.onRenderSurface,a=t.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=X(this.props,q),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=o?Di(o,this._onRenderSurface):this._onRenderSurface;return(a?Di(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,e.pi)((0,e.pi)({},u),{className:U("ms-List",n),role:c.length>0?i:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var e=t.onShouldVirtualize;return!e||e(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var e,n=this,r=this.props.usePageCache;if(r&&(e=this._pageCache[t.key])&&e.pageElement)return e.pageElement;var i=this._getPageStyle(t),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(e){n._pageRefs[t.key]=e},style:i,role:"presentation"},this._onRenderPage);return r&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:a}),a},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,e.pi)((0,e.pi)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var e=t.target;e!==this._surface.current;){var n=e.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}e=y(e)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,e;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,e=this._materializedRect,t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,e=t.renderedWindowsAhead,n=t.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(e,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(e>o||n>a)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var r=this._buildPages(t,n),i=n.pages;return this._notifyPageChanges(i,r.pages,this.props),(0,e.pi)((0,e.pi)((0,e.pi)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,e,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=t;a<s.length;a++)(u=s[a]).items&&(o[u.startIndex]=u);for(var l=0,c=e;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},n.prototype._updatePageMeasurements=function(t){var e=!1;if(!this._shouldVirtualize())return e;for(var n=0;n<t.length;n++){var r=t[n];r.items&&(e=this._measurePage(r)||e)}return e},n.prototype._measurePage=function(t){var e=!1,n=this._pageRefs[t.key],r=this._cachedPageHeights[t.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(e=t.height!==i.height,t.height=i.height,this._cachedPageHeights[t.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return e},n.prototype._onPageAdded=function(t){var e=this.props.onPageAdded;e&&e(t)},n.prototype._onPageRemoved=function(t){var e=this.props.onPageRemoved;e&&e(t)},n.prototype._buildPages=function(t,n){var r=t.renderCount,i=t.items,o=t.startIndex,a=t.getPageHeight;r=this._getRenderCount(t);for(var s=(0,e.pi)({},Ii),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=o+r,f=this._shouldVirtualize(t),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,_=function(e){var r=y._getPageSpecification(t,e,v),a=r.height,_=r.data,x=r.key;c=r.itemCount;var b,C,E=u+a-1,S=m(n.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,A=!v||E>=v.top&&u<=v.bottom,L=!y._requiredRect||E>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!g&&(L||A&&S)||!f||h>=e&&h<e+c||e===o){d&&(l.push(d),d=null);var k=Math.min(c,p-e),T=y._createPage(x,i.slice(e,e+k),e,void 0,void 0,_);T.top=u,T.height=a,y._visibleRect&&y._visibleRect.bottom&&(T.isVisible=E>=y._visibleRect.top&&u<=y._visibleRect.bottom),l.push(T),L&&y._allowedRect&&(b=s,C={top:u,bottom:E,height:a,left:v.left,right:v.right,width:v.width},b.top=C.top<b.top||-1===b.top?C.top:b.top,b.left=C.left<b.left||-1===b.left?C.left:b.left,b.bottom=C.bottom>b.bottom||-1===b.bottom?C.bottom:b.bottom,b.right=C.right>b.right||-1===b.right?C.right:b.right,b.width=b.right-b.left+1,b.height=b.bottom-b.top+1)}else d||(d=y._createPage(Fi+e,void 0,e,0,void 0,_,!0)),d.height=(d.height||0)+(E-u)+1,d.itemCount+=c;if(u+=E-u+1,g&&f)return"break"},y=this,x=o;x<p&&"break"!==_(x);x+=c);return d&&(d.key=Fi+"end",l.push(d)),this._materializedRect=s,(0,e.pi)((0,e.pi)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,e,n){var r=t.getPageSpecification;if(r){var i=r(e,n,t.items),o=i.itemCount,a=void 0===o?this._getItemCountForPage(e,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(e,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(e,n),height:this._getPageHeight(e,n,a)}},n.prototype._getPageHeight=function(t,e,n){if(this.props.getPageHeight)return this.props.getPageHeight(t,e,n,this.props.items);var r=this._cachedPageHeights[t];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,e){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,e):10)||10},n.prototype._createPage=function(t,e,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=e?e.length:0),void 0===i&&(i={}),t=t||"page-"+n;var s=this._pageCache[t];return s&&s.page?s.page:{key:t,startIndex:n,itemCount:r,items:e,style:i,top:0,height:0,data:o,isSpacer:a||!1}},n.prototype._getRenderCount=function(t){var e=t||this.props,n=e.items,r=e.startIndex,i=e.renderCount;return void 0===i?n?n.length-r:0:i},n.prototype._updateRenderRects=function(t,n,r){var i=t.renderedWindowsAhead,o=t.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(t)){var l=this._surfaceRect||(0,e.pi)({},Ii),c=function(t){if(void 0===t)return 0;var e=0;return"scrollHeight"in t?e=t.scrollHeight:"document"in t&&(e=t.document.documentElement.scrollHeight),e}(this._scrollElement),u=Mi(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(l=this._surfaceRect=Vi(this._surface.current),this._scrollTop=u),!r&&c&&c===this._scrollHeight||this._measureVersion++,this._scrollHeight=c||0;var d=Math.max(0,-l.top),h=(0,s.J)(this._root.current),p={top:d,left:l.left,bottom:d+h.innerHeight,right:l.right,width:l.width,height:h.innerHeight};this._requiredRect=Hi(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Hi(p,o,i),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(t,e,n){return i.createElement(i.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Bt,n}(i.Component);function Hi(t,e,n){var r=t.top-e*t.height,i=t.height+(e+n)*t.height;return{top:r,bottom:r+i,height:i,left:t.left,right:t.right,width:t.width}}var Ri,zi=function(t){var n=i.useRef(null);i.useEffect((function(){if(n.current){var e=(0,pi.Ys)(n.current),r=t.text.split(/\s+/),i=[],o=e.append("tspan"),a=0;return r.forEach((function(n){i.push(n),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>t.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[n],o=e.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),e.attr("dy",-a*t.lineHeight),function(){e.selectAll("tspan").remove()}}})),t.lineHeight;var r=(0,e._T)(t,["lineHeight"]);return i.createElement("text",(0,e.pi)({ref:n},r))},Wi=function(t){var e,n,r,o=i.useRef(null),a=i.useState(!1),s=a[0],l=a[1],c=null;if(s){var u=t.labelDef.aggregatedIdx.map((function(e){return t.lineDefs[e].onRenderCard})).filter((function(t){return!!t}));u.length>0&&(c=i.createElement(He,{target:o.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},i.createElement(dn,{isCircularNavigation:!0,direction:Re.vertical},i.createElement(Bi,{items:u,onRenderCell:function(t){return i.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var d=t.textColor?ci(t.textColor,null===(e=t.theme)||void 0===e?void 0:e.isInverted):null===(n=t.theme)||void 0===n?void 0:n.semanticColors.messageText;return r=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),i.createElement(i.Fragment,null,i.createElement("g",{ref:o,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},i.createElement(zi,{text:r,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:d})),c)},Yi=function(t){var n,r,o=t.labelWidth?t.labelWidth:105,a=t.chartYTop-20,s=a+7,l=t.scale.range(),c=t.events.map((function(n){return(0,e.pi)((0,e.pi)({},n),{x:t.scale(n.date)})}));c.sort((function(t,e){return+t.date-+e.date}));var u=t.strokeColor?ci(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(r=t.theme)||void 0===r?void 0:r.palette.black,d=function(t,e){for(var n=[],r=[],i=0,o=t;i<o.length;i++){var a=o[i],s=e(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(c,(function(t){return t.date.toString()})).map((function(e,n){return i.createElement("line",{key:n,x1:e.x,x2:e.x,y1:s,y2:t.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(t,e,n,r){var i=function(r,i){if(i===t.length)return[];var a=t[i].x,s=a-e;return a<r?[]:i===t.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+e<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?t[r].x:t[r].x+e,s=m(t,(function(t){return t.x>a&&(t.x-e>=a||t.x+e<n)}),r+1);-1===s&&(s=t.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:t[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(c,o+5,l[1],l[0]).map((function(n,r){return i.createElement(Wi,(0,e.pi)({key:r,theme:t.theme},{lineDefs:c,labelDef:n,textY:a,textWidth:o,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return i.createElement(i.Fragment,null,d,h)},Zi=(0,o.y)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(Ri||(Ri={}));var qi=(0,fi.Z)((function(t){return t.x})).left,Xi=function(t){function n(n){var r=t.call(this,n)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._isRTL=(0,a.zg)(),r._injectIndexPropertyInLineChartData=function(t){var n=r.props.allowMultipleShapesForPoints,i=void 0!==n&&n;return t?t.map((function(t,n){var o,a,s;return s=void 0===t.color?li(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):ci(t.color,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted),(0,e.pi)((0,e.pi)({},t),{index:i?n:-1,color:s})})):[]},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getMargins=function(t){r.margins=t},r._initializeLineChartData=function(t,e,n,i,o){r._xAxisScale=t,r._yAxisScale=e,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(n):[],r.lines=r._createLines(o,n)},r._handleSingleLegendSelectionAction=function(t){r.state.selectedLegend===t.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(t,null)):(r.setState({selectedLegend:t.legend}),r._handleLegendClick(t,t.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(t,e,n){var i=r.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,c=r.state.activePoint;return a?c===t?Ri.hoverSize:1===e||n?2.5*l:Ri.invisibleSize:c===t?Ri.hoverSize:Ri.invisibleSize},r._getPath=function(t,e,n,i,o,a){var s=r.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=r._getBoxWidthOfShape(n,i,o),u=l?a%Object.keys(ze.Ml).length:0,d=ze.Ml[u].widthRatio;return function(t,e,n,r){return["M".concat(t-n/2," ").concat(e,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(t+n/2," ").concat(e,"\n M").concat(t-n/2," ").concat(e,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(t+n/2," ").concat(e,"\n "),"M".concat(t-n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e+n/2,"\n Z"),"M".concat(t-n/2," ").concat(e-.2886*n,"\n H ").concat(t+n/2,"\n L").concat(t," ").concat(e+.5774*n," Z"),"M".concat(t," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e,"\n L").concat(t," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.5774*n,"\n L").concat(t+n/2," ").concat(e+.2886*n,"\n L").concat(t-n/2," ").concat(e+.2886*n," Z"),"M".concat(t-.5*n," ").concat(e-.866*n,"\n L").concat(t+.5*n," ").concat(e-.866*n,"\n L").concat(t+n," ").concat(e,"\n L").concat(t+.5*n," ").concat(e+.866*n,"\n L").concat(t-.5*n," ").concat(e+.866*n,"\n L").concat(t-n," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.851*n,"\n L").concat(t+.6884*n," ").concat(e-.2633*n,"\n L").concat(t+.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.6884*n," ").concat(e-.2633*n,"\n Z"),"M".concat(t-.5001*n," ").concat(e-1.207*n,"\n L").concat(t+.5001*n," ").concat(e-1.207*n,"\n L").concat(t+1.207*n," ").concat(e-.5001*n,"\n L").concat(t+1.207*n," ").concat(e+.5001*n,"\n L").concat(t+.5001*n," ").concat(e+1.207*n,"\n L").concat(t-.5001*n," ").concat(e+1.207*n,"\n L").concat(t-1.207*n," ").concat(e+.5001*n,"\n L").concat(t-1.207*n," ").concat(e-.5001*n,"\n Z")][r]}(t,e,c=d>1?c/d:c,u)},r._getPointFill=function(t,e,n,i){var o=r.state.activePoint,a=r.props,s=a.theme;return a.allowMultipleShapesForPoints,o===e?s.semanticColors.bodyBackground:t},r._createColorFillBars=function(t){var e,n=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var o=(0,ze.As)(r._points,ze.$X.LineChart),a=0;a<r._colorFillBars.length;a++){var s=r._colorFillBars[a],l=f(s.legend.replace(/\W/g,"")),c=ci(s.color,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted);s.applyPattern&&n.push(r._getStripePattern(c,a));for(var u=0;u<s.data.length;u++){var d=s.data[u].startX,h=s.data[u].endX,p=r._legendHighlighted(s.legend)||r._noLegendHighlighted()||r.state.isSelectedLegend?r._getColorFillBarOpacity(s):.1;n.push(i.createElement("rect",{fill:s.applyPattern?"url(#".concat(r._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:r._isRTL?r._xAxisScale(h):r._xAxisScale(d),y:r._yAxisScale(o.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(d)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return n},r._getStripePattern=function(t,e){return i.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(e),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(e),patternUnits:"userSpaceOnUse"},i.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},r._checkInGap=function(t,e,n){for(var r=n,i=!1;r<e.length&&t>e[r].endIndex;)r++;return r<e.length&&t>e[r].startIndex&&t<=e[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},r._onMouseOverLargeDataset=function(t,e,n){n.persist();var i=r.props.data.lineChartData,o=r._xAxisScale.invert((0,pi.Eb)(document.getElementById(r._rectId),n)[0]),a=qi(i[t].data,o),s=i[t].data[a-1],l=i[t].data[a],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=a;else if(void 0!==s&&void 0===l)c=s.x,u=a-1;else{var d=void 0,h=void 0,p=void 0;switch((0,ze.SY)(i[t].data[0].x,!0)){case ze.xl.DateAxis:d=new Date(o).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case ze.xl.NumericAxis:d=o,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=i[t].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,_=c instanceof Date?c.toLocaleString():c,y=c instanceof Date?c.getTime():c,x=v(r._calloutPoints,(function(t){return t.x===y})),b=i[t].data[u],C=null===r.state.nearestCircleToHighlight||null!==r.state.nearestCircleToHighlight&&null!==b&&(r.state.nearestCircleToHighlight.x!==b.x||r.state.nearestCircleToHighlight.y!==b.y);x&&C&&(r._uniqueCallOutID="#".concat(r._staticHighlightCircle,"_").concat(t),(0,pi.Ys)("#".concat(r._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(r._xAxisScale(b.x))).attr("cy","".concat(r._yAxisScale(b.y))).attr("visibility","visibility"),(0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(r._xAxisScale(b.x),", ").concat(r._yAxisScale(b.y),")")})).attr("visibility","visibility").attr("y2","".concat(e-r._yAxisScale(b.y))),r.setState({nearestCircleToHighlight:b,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:g||_,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:b,activePoint:"",activeLine:t})},r._handleFocus=function(t,e,n,i,o){r._uniqueCallOutID=i;var a=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=v(r._calloutPoints,(function(t){return t.x===s}));if(l){var c=r;(0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(e),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(e){e.index===t&&r.setState({isCalloutVisible:!0,refSelected:e.refElement,hoverXValue:n||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else r.setState({activePoint:i})},r._handleHover=function(t,e,n,i,o,a,s){s.persist();var l=t instanceof Date?t.toLocaleDateString():t,c=t instanceof Date?t.getTime():t,u=r,d=v(r._calloutPoints,(function(t){return t.x===c}));d?((0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(t),", ").concat(u._yAxisScale(e),")")})).attr("visibility","visibility").attr("y2","".concat(n-u._yAxisScale(e))),r._uniqueCallOutID!==o&&(r._uniqueCallOutID=o,r.setState({isCalloutVisible:!0,refSelected:"#".concat(o),hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(t){return t?{onClick:t}:{}},r._handleMouseOut=function(){(0,pi.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(t,e){t.onLegendClick&&t.onLegendClick(e)},r._handleMultipleLineLegendSelectionAction=function(t){var n,i=r.state.selectedLegendPoints.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);n=-1===i?(0,e.ev)((0,e.ev)([],r.state.selectedLegendPoints,!0),[t],!1):r.state.selectedLegendPoints.slice(0,i).concat(r.state.selectedLegendPoints.slice(i+1)),r.props.data&&n.length===r.props.data.lineChartData.length&&(r.props.colorFillBars&&r.props.colorFillBars.length===r.state.selectedColorBarLegend.length||!r.props.colorFillBars)?r._clearMultipleLegendSelections():n.length||r.state.selectedColorBarLegend.length?r.setState({selectedLegendPoints:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var o=n.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=r.state.selectedColorBarLegend.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);(n=-1===i?(0,e.ev)((0,e.ev)([],r.state.selectedColorBarLegend,!0),[t],!1):r.state.selectedColorBarLegend.slice(0,i).concat(r.state.selectedColorBarLegend.slice(i+1))).length===(r.props.colorFillBars&&r.props.colorFillBars.length)&&(r.props.data&&r.props.data.lineChartData.length===r.state.selectedLegendPoints.length||!r.props.data)?r._clearMultipleLegendSelections():n.length||r.state.selectedLegendPoints.length?r.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var o=n.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},r._getAriaLabel=function(t,e){var n,i=r._points[t],o=i.data[e],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,c=o.yAxisCalloutData||o.y;return(null===(n=o.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},r.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},r._refArray=[],r._points=r._injectIndexPropertyInLineChartData(r.props.data.lineChartData),r._colorFillBars=[],r._calloutPoints=(0,ze.Wx)(r._points)||[],r._circleId=f("circle"),r._lineId=f("lineID"),r._borderId=f("borderID"),r._verticalLine=f("verticalLine"),r._colorFillBarPatternId=f("colorFillBarPattern"),r._tooltipId=f("LineChartTooltipId_"),r._rectId=f("containerRectLD"),r._staticHighlightCircle=f("staticHighlightCircle"),r._createLegendsMemoized=(0,ue.NF)((function(t){return r._createLegends(t)})),r._firstRenderOptimization=!0,r._emptyChartId=f("_LineChart_empty"),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=n.eventAnnotationProps.labelHeight),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=(0,ze.Wx)(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,r=n.tickValues,o=n.tickFormat,a=n.eventAnnotationProps,s=n.legendProps,l=n.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=(0,ze.V4)(this._points),u=this._points;s&&s.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,ze.Wx)(u));var d=null;this.props.hideLegend||(d=this._createLegendsMemoized(this._points));var h=(0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:r,tickFormat:o};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{chartTitle:l.chartTitle,points:u,chartType:ze.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?ze.xl.DateAxis:ze.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?i.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):i.createElement(i.Fragment,null),i.createElement("g",null,t._renderedColorFillBars,t.lines),a&&i.createElement(Yi,(0,e.pi)({theme:t.props.theme},a,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},n.prototype._createLegends=function(t){var n=this,r=this.props,o=r.legendProps,a=r.allowMultipleShapesForPoints,s=void 0!==a&&a,l=!(!o||!o.canSelectMultipleLegends),c=t.map((function(t){var r=t.color;return(0,e.pi)((0,e.pi)({title:t.legend,color:r,action:function(){l?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),s&&{shape:ze.wo[t.index%Object.keys(ze.Ml).length]})})),u=this.props.colorFillBars?this.props.colorFillBars.map((function(t,e){var r,i=t.legend,o=ci(t.color,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted);return{title:i,color:o,action:function(){l?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:i})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return i.createElement(vr,(0,e.pi)({legends:(0,e.ev)((0,e.ev)([],c,!0),u,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},l&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},n.prototype._createLines=function(t,n){var r,o,a,s,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,E,S,A,L,k,T=this,w=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(t){var D=[],P=[],F=[],I=M._points[t].legend,N=M._points[t].color,V=M.state.activePoint,O=M.props.theme,B=n-M.margins.bottom+6;if(1===M._points[t].data.length){var H=M._points[t].data[0],R=H.x,z=H.y,W=H.xAxisCalloutData,Y=H.xAxisCalloutAccessibilityData,Z="".concat(M._circleId,"_").concat(t);F.push(i.createElement("circle",(0,e.pi)({id:Z,key:Z,r:V===Z?5.5:3.5,cx:M._xAxisScale(R),cy:M._yAxisScale(z),fill:V===Z?O.semanticColors.bodyBackground:N,onMouseOver:M._handleHover.bind(M,R,z,B,W,Z,Y),onMouseMove:M._handleHover.bind(M,R,z,B,W,Z,Y),onMouseOut:M._handleMouseOut,strokeWidth:V===Z?4:0,stroke:V===Z?N:"",role:"img","aria-label":M._getAriaLabel(t,0),"data-is-focusable":!0,ref:function(t){T._refCallback(t,Z)},onFocus:function(){return T._handleFocus(Z,R,W,Z,Y)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[0].onDataPointClick))))}var q=0,X=null!==(o=null===(r=M._points[t].gaps)||void 0===r?void 0:r.sort((function(t,e){return t.startIndex-e.startIndex})))&&void 0!==o?o:[];if(M.props.optimizeLargeData&&M._points[t].data.length>1){for(var U=yi().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return T._yAxisScale(t[1])})).curve(mi),j="".concat(M._lineId,"_").concat(t),G="".concat(M._borderId,"_").concat(t),K=(null===(a=M._points[t].lineOptions)||void 0===a?void 0:a.strokeWidth)||M.props.strokeWidth||4,$=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,J=[],Q=0;Q<M._points[t].data.length;Q++)J.push([M._points[t].data[Q].x instanceof Date?M._points[t].data[Q].x.getTime():M._points[t].data[Q].x,M._points[t].data[Q].y]);if($){var tt=(null===(s=M._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(M._points[t].lineOptions.lineBorderWidth.toString()):0;tt>0&&P.push(i.createElement("path",{id:G,key:G,d:U(J),fill:"transparent",strokeLinecap:null!==(c=null===(l=M._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(K.toString())+tt,stroke:(null===(u=M._points[t].lineOptions)||void 0===u?void 0:u.lineBorderColor)||O.semanticColors.bodyBackground,opacity:1})),D.push(i.createElement("path",(0,e.pi)({id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(h=null===(d=M._points[t].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOver:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOut:M._handleMouseOut},M._getClickHandler(M._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(I,", series ").concat(t+1," of ").concat(M._points.length," with ").concat(M._points[t].data.length," data points.")})))}else D.push(i.createElement("path",{id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(f=null===(p=M._points[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1,role:"img","aria-label":"".concat(I,", series ").concat(t+1," of ").concat(M._points.length," with ").concat(M._points[t].data.length," data points.")}));var et=null!==M.state.activeLine&&M.state.activeLine===t;F.push(i.createElement("circle",{id:"".concat(M._staticHighlightCircle,"_").concat(t),key:"".concat(M._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:O.semanticColors.bodyBackground,strokeWidth:4,stroke:N,visibility:et?"visibility":"hidden",onMouseMove:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOver:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOut:M._handleMouseOut}))}else if(!M.props.optimizeLargeData)for(var nt=function(n){var r=M._checkInGap(n,X,q),o=r.isInGap;q=r.gapIndex;var a="".concat(M._lineId,"_").concat(t,"_").concat(n),s="".concat(M._borderId,"_").concat(t,"_").concat(n),l="".concat(M._circleId,"_").concat(t,"_").concat(n),c=M._points[t].data[n-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=M._points[t].data[n],w=f.x,H=f.y,R=M._getPath(M._xAxisScale(u),M._yAxisScale(d),l,n,!1,M._points[t].index),z=(null===(g=M._points[t].lineOptions)||void 0===g?void 0:g.strokeWidth)||M.props.strokeWidth||4,W=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,Y=M._points[t].hideNonActiveDots&&V!==l;if(F.push(i.createElement("path",(0,e.pi)({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,u,d,B,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,B,h,l,p),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,u,h,l,p)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[n-1].onDataPointClick),{opacity:W&&!Y?1:.01,fill:M._getPointFill(N,l,n,!1),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(t,n-1)}))),n+1===M._points[t].data.length){var Z="".concat(l).concat(n,"L"),U="".concat(l).concat(n,"D"),j=M._points[t].hideNonActiveDots&&V!==Z;R=M._getPath(M._xAxisScale(w),M._yAxisScale(H),Z,n,!0,M._points[t].index);var G=M._points[t].data[n],K=G.xAxisCalloutData,$=G.xAxisCalloutAccessibilityData;F.push(i.createElement(i.Fragment,{key:"".concat(Z,"_container")},i.createElement("path",(0,e.pi)({id:Z,key:Z,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseMove:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,w,K,Z,$)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[n].onDataPointClick),{opacity:W&&!j?1:.01,fill:M._getPointFill(N,Z,n,!0),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(t,n)})),i.createElement("circle",{id:U,key:U,r:8,cx:M._xAxisScale(w),cy:M._yAxisScale(H),opacity:0,width:0,onMouseOver:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseMove:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseOut:M._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:M._handleMouseOut})))}if(W){if(!o){var J=(null===(m=M._points[t].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(M._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(i.createElement("line",{id:s,key:s,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(H),strokeLinecap:null!==(_=null===(v=M._points[t].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(z.toString())+J,stroke:(null===(y=M._points[t].lineOptions)||void 0===y?void 0:y.lineBorderColor)||O.semanticColors.bodyBackground,opacity:1})),D.push(i.createElement("line",(0,e.pi)({id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(H),strokeWidth:z,ref:function(t){T._refCallback(t,a)},onMouseOver:M._handleHover.bind(M,u,d,B,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,B,h,l,p),onMouseOut:M._handleMouseOut,stroke:N,strokeLinecap:null!==(b=null===(x=M._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=M._points[t].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(E=M._points[t].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},M._getClickHandler(M._points[t].onLineClick))))}}else o||D.push(i.createElement("line",{id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(H),strokeWidth:z,stroke:N,strokeLinecap:null!==(A=null===(S=M._points[t].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==A?A:"round",strokeDasharray:null===(L=M._points[t].lineOptions)||void 0===L?void 0:L.strokeDasharray,strokeDashoffset:null===(k=M._points[t].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:.1}))},rt=1;rt<M._points[t].data.length;rt++)nt(rt);w.push.apply(w,(0,e.ev)((0,e.ev)((0,e.ev)([],P,!1),D,!1),F,!1))},M=this,P=this._points.length-1;P>=0;P--)D(P);var F=Zi(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var I=(0,pi.Ys)(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var N={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:I};I&&(0,ze.$V)(N)}return w},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0},n}(i.Component),Ui=(0,t.z)(Xi,(function(t){return{tooltip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),ji=n(8957);function Gi(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Ki(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function $i(t,e){return t[e]}function Ji(t){const e=[];return e.key=t,e}function Qi(t,e,n){var r=null,i=yr(!0),o=null,a=mi,s=null,l=zr(c);function c(c){var u,d,h,p,f,g=(c=_r(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==o&&(s=a(f=l())),u=0;u<=g;++u){if(!(u<g&&i(p=c[u],u,c))===m)if(m=!m)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],_[h]);s.lineEnd(),s.areaEnd()}m&&(v[u]=+t(p,u,c),_[u]=+e(p,u,c),s.point(r?+r(p,u,c):v[u],n?+n(p,u,c):_[u]))}if(f)return s=null,f+""||null}function u(){return yi().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?vi:yr(+t),e="function"==typeof e?e:yr(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?_i:yr(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:yr(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:yr(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:yr(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function to(t){return t<0?-1:1}function eo(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(to(o)+to(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function no(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ro(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function io(t){this._context=t}function oo(t){this._context=t}function ao(t){return new io(t)}io.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:ro(this,this._t0,no(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ro(this,no(this,n=eo(this,t,e)),n);break;default:ro(this,this._t0,n=eo(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new oo(t)}.prototype=Object.create(io.prototype)).point=function(t,e){io.prototype.point.call(this,e,t)},oo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};var so,lo=(0,o.y)(),co=(0,fi.Z)((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(so||(so={}));var uo=function(t){function n(n){var r=t.call(this,n)||this;return r._getMargins=function(t){r.margins=t},r._onRectMouseMove=function(t){t.persist();var e=r.props.data.lineChartData,n=r._xAxisRectScale.invert((0,pi.Eb)(document.getElementById(r._rectId),t)[0]),i=co(e[0].data,n),o=e[0].data[i-1],a=e[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=(0,ze.SY)(e[0].data[0].x,!0)){case ze.xl.DateAxis:u=new Date(n).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case ze.xl.NumericAxis:u=n,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=e[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,_=l instanceof Date?l.getTime():l,y=v(r._calloutPoints,(function(t){return t.x===_})),x=s===ze.xl.DateAxis?l.getTime():l,b=r.state.nearestCircleToHighlight!==x;y&&b&&!r.state.isShowCalloutPending&&r.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:r._xAxisRectScale(l),displayOfLine:so.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),y||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:so.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:so.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(t,e){var n=function(){var t=yr([]),e=Ki,n=Gi,r=$i;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Ji),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=_r(e(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:yr(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:yr(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ki:"function"==typeof t?t:yr(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Gi:t,i):n},i}().keys(t)(e),i=(0,ji.Z)(n[n.length-1],(function(t){return t[1]})),o=[];return n.forEach((function(t){var e=[];t.forEach((function(t){e.push({values:t,xVal:t.data.xVal})})),o.push(e)})),r._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},r._createDataSet=function(t){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var e=[],n=[],i=[],o=[],a=(0,ze.Wx)(t);t&&t.length&&t.forEach((function(t){i.push(t.color),o.push(t.opacity||1),e.push.apply(e,t.data)}));var s={};e.forEach((function(t){var e=t.x instanceof Date?t.x.toLocaleString():t.x;s[e]?s[e].push(t):s[e]=[t]})),Object.keys(s).forEach((function(t){var e=s[t],r={};e.forEach((function(t,e){r.xVal=t.x,r["chart".concat(e)]=t.y})),n.push(r)}));for(var l=n&&Object.keys(n[0]).length,c=[],u=0;u<l-1;u++){var d="chart".concat(u);c.push(d)}var h=r._getStackedData(c,n);return{colors:i,opacity:o,keys:c,stackedInfo:h,calloutPoints:a}}var p=[],f=[],g=[],m=[];a=(0,ze.Wx)(t),t&&t.length&&t.forEach((function(t){g.push(t.color),m.push(t.opacity||1),p.push.apply(p,t.data)}));for(var v=p,_=function(){var t=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,e=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)===t})),n={};e.forEach((function(t,e){n.xVal=t.x,n["chart".concat(e)]=t.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==r}))};v.length;)_();for(l=f&&Object.keys(f[0]).length,c=[],u=0;u<l-1;u++)d="chart".concat(u),c.push(d);return h=r._getStackedData(c,f),{colors:g,opacity:m,keys:c,stackedInfo:h,calloutPoints:a}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getGraphData=function(t,e,n,i,o){r._chart=r._drawGraph(n,t,e,o)},r._getLegendData=function(t){var n=[];return t.forEach((function(t){var e=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var i={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};n.push(i)}})),i.createElement(vr,(0,e.pi)({legends:n,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(t){t&&t(),r.setState({isCircleClicked:!0})},r._getOpacity=function(t){return r._isMultiStackChart?r._legendHighlighted(t)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(t){if(r._isMultiStackChart){var e=.3;return r.state.isCalloutVisible&&(e=1),r._noLegendHighlighted()||(e=r._legendHighlighted(t)?0:.1),e}return 1},r._updateCircleFillColor=function(t,e,n){var i=e;return r.state.nearestCircleToHighlight!==t&&r.state.activePoint!==n||(r._highlightedCircleId=n,r.state.isCircleClicked||(i=r.props.theme.semanticColors.bodyBackground)),i},r._drawGraph=function(t,n,o,a){var s,l=r._addDefaultColors(r.props.data.lineChartData),c=r.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Qi().x((function(t){return n(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(ao),p=yi().x((function(t){return n(t.xVal)})).y((function(t){return o(t.values[1])})).curve(ao),f=[];r._stackedData.forEach((function(t,a){f.push(i.createElement(i.Fragment,{key:"".concat(a,"-graph-").concat(r._uniqueIdForGraph)},i.createElement("path",(0,e.pi)({id:"".concat(a,"-line-").concat(r._uniqueIdForGraph),d:p(t),fill:"transparent",strokeWidth:3,stroke:r._colors[a],opacity:r._getLineOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},l[a].lineOptions)),1===t.length?i.createElement("circle",{id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),cx:n(t[0].xVal),cy:o(t[0].values[1]),r:6,stroke:r._colors[a],strokeWidth:3,fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove}):i.createElement("path",(0,e.pi)({id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),d:h(t),fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},r.props.optimizeLargeData&&{"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;r._stackedData.forEach((function(t,a){l.length!==a&&(r.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,c){var d=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(r.state.nearestCircleToHighlight===d){var h="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c);s=l[a].color,f.push(i.createElement("circle",(0,e.pi)({key:h,id:h,cx:n(t.xVal),cy:o(t.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(d,s,h),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick)},u,{r:r._getCircleRadius(d,g,h)})))}})):f.push(i.createElement("g",{key:"".concat(a,"-dots-").concat(r._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,c){var d="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return s=l[a].color,i.createElement("circle",(0,e.pi)({key:d,id:d,"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),cx:n(t.xVal),cy:o(t.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(h,s,d),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick),onFocus:function(){return r._handleFocus(a,c,d)},onBlur:r._handleBlur},u,{r:r._getCircleRadius(h,g,d),role:"img","aria-label":r._getAriaLabel(a,c)}))})))))})),f.push(i.createElement("line",(0,e.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:r.state.displayOfLine},d)));var m=lo(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var v=(0,pi.Ys)(a).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var _={tooltipCls:m.tooltip,id:r._tooltipId,xAxis:v};v&&(0,ze.$V)(_)}return f},r._getCircleRadius=function(t,e,n){var i=r.state,o=i.isCircleClicked,a=i.nearestCircleToHighlight,s=i.activePoint;return o&&a===t?1:a===t||s===n?e:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(t){return t?t.map((function(t,n){var i,o,a;return a=void 0===t.color?li(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):ci(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,e.pi)((0,e.pi)({},t),{color:a})})):[]},r._handleFocus=function(t,e,n){var i=r.props.data.lineChartData[t].data[e],o=i.x,a=i.y,s=i.xAxisCalloutData,l=o instanceof Date?o.toLocaleString():o,c=o instanceof Date?o.getTime():o,u=r._calloutPoints.find((function(t){return t.x===c}));u.values=u.values.filter((function(t){return t.y===a})),r.setState({refSelected:"#".concat(n),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:n})},r._handleBlur=function(){r.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},r._createSet=(0,ue.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:so.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},r._uniqueIdForGraph=f("areaChart_"),r._verticalLineId=f("verticalLine_"),r._circleId=f("circle"),r._rectId=f("rectangle"),r._tooltipId=f("AreaChartTooltipID"),r._enableComputationOptimization=!0,r._firstRenderOptimization=!0,r._emptyChartId=f("_AreaChart_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data,r=n.lineChartData,o=n.chartTitle,a=this._addDefaultColors(r),s=this._createSet(a),l=s.colors,c=s.opacity,u=s.stackedInfo,d=s.calloutPoints;this._calloutPoints=d;var h=(0,ze.V4)(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=(0,e.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return i.createElement(Ti,(0,e.pi)({},this.props,{chartTitle:o,points:a,chartType:ze.$X.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?ze.xl.DateAxis:ze.xl.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(e){t._xAxisRectScale=e.xScale;var n=t._xAxisRectScale.ticks(),r=t._xAxisRectScale(n[n.length-1]),o=e.containerHeight-t.margins.top;return i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("rect",{id:t._rectId,width:r,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),i.createElement("g",null,t._chart))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getAriaLabel=function(t,e){var n,r=this.props.data.lineChartData[t],i=r.data[e],o=i.x instanceof Date?i.x.toLocaleString():i.x,a=i.xAxisCalloutData||o,s=r.legend,l=i.yAxisCalloutData||i.y;return(null===(n=i.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(a,". ").concat(s,", ").concat(l,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(i.Component),ho=(0,t.z)(uo,(function(t){return{tooltip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),po=n(5795),fo=function(t,e){var n=t.color;return{arcRoot:{fill:n},arcRootFocussed:{fill:n,stroke:(null==e?void 0:e.palette.black)||Yt.UK.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==e?void 0:e.palette.black)||Yt.UK.black,outline:"none"}}},go=function(t){function n(e){var n=t.call(this,e)||this;return n.updateChart=function(t){vo(t)},n._onFocus=function(){n.setState({isArcFocused:!0})},n._onBlur=function(){n.setState({isArcFocused:!1})},n.state={isArcFocused:!1},n._arcId=f("piechart_arc"),n}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t){return vo(t),null},n.prototype.render=function(){var t,n=this,r=this.props.arc,a=(0,o.y)()((function(t){return fo(t,n.props.theme)}),(0,e.pi)({},this.props));return i.createElement("path",{d:r(this.props.data),className:"".concat(this.state.isArcFocused?a.arcRootFocussed:a.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:jr()},n}(i.Component),mo=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._arcId=f("piechart_arc"),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var e,n,r=this,a=this.props,s=a.data,l=a.culture,c=jr().centroid({endAngle:(null==s?void 0:s.endAngle)||0,startAngle:(null==s?void 0:s.startAngle)||0,padAngle:null==s?void 0:s.padAngle,innerRadius:(null===(e=this.props)||void 0===e?void 0:e.outerRadius)||0,outerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||4}),u=c[0],d=c[1],h=(0,o.y)()((function(t){return fo(t,r.props.theme)})),p=(((null==s?void 0:s.startAngle)||0)+((null==s?void 0:s.endAngle)||0))/2,f="".concat(null==s?void 0:s.data.x,"-").concat((0,ze.Ts)(null==s?void 0:s.data.y,l));return i.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":f,role:"img"},t.prototype.render.call(this),i.createElement(Ei,{content:f,textProps:{x:u,y:d,dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&p>Math.PI||this._isRTL&&p<Math.PI?"end":"start","aria-label":"".concat(null==s?void 0:s.data.x,"-").concat((0,ze.Ts)(null==s?void 0:s.data.y,l)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ze.nX}))},n}(go);function vo(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var _o,yo=function(t){function n(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e){return i.createElement(mo,{culture:n.props.culture,key:e,data:t,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(e)),theme:n.props.theme})},n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=e.width,a=e.height,s=e.chartTitle,l=e.theme,c=[];if(r&&!this.props.colors)for(var u=0;u<r.length;u++)c.push(li(u,0,null==l?void 0:l.isInverted));var d=this.props.colors,h=void 0===d?c:d;this.colors=(0,po.Z)().range(h.map((function(t){return ci(t)})));var p=n(r),f="translate(".concat(o/2,", ").concat(a/2,")");return i.createElement(dn,{direction:Re.domOrder},i.createElement("svg",{width:o,height:a,"aria-label":s},i.createElement("g",{className:"pie",transform:f},p.map((function(e,n){return t.arcGenerator(e,n)})))))},n.defaultProps={pie:Ir().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(i.Component),xo=(0,o.y)(),bo=function(t){function n(e){var n=t.call(this,e)||this;return n._emptyChartId=f("_PieChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,e=t.data,n=t.width,r=t.height,o=t.colors,a=t.chartTitle,s=this.props,l=s.theme,c=s.className,u=s.styles,d=s.culture;this._classNames=xo(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n-80,r-32)/2;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root},this.props.chartTitle&&i.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),i.createElement(yo,{culture:d,width:n,height:r,outerRadius:h,innerRadius:1,data:e,colors:o,chartTitle:a,theme:l}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(i.Component),Co=(0,t.z)(bo,(function(t){var n=t.className,r=t.theme,i=t.width+30,o=t.height+10;return{root:[r.fonts.medium,"ms-PieChart",n,{width:i+40}],chart:[{padding:20,width:i,height:o,boxSizing:"content-box"}],chartTitle:[(0,e.pi)({textAlign:"center"},r.fonts.mediumPlus)]}})),Eo=(0,o.y)(),So=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_SBC_empty"),n.barChartSvgRef=i.createRef(),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,r=t.benchmarkData,o=t.targetData,a=t.hideNumberDisplay,s=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,u=s||n.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||c.neutralTertiary),o&&(o.color=o.color||c.neutralSecondary);var d=this._createBarsAndLegends(n,u,c,r,o),h=!1===a&&!s&&2===n.chartData.length,p=!1===a&&!s&&1===n.chartData.length,f=n.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),g=0;r&&f&&(g=r.data/f*100);var m=0;o&&f&&(m=o.data/f*100);var v=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Eo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:g,targetColor:o?o.color:"",targetRatio:m,showTriangle:!(!r&&!o)});var y=function(){return(0,ze.Ts)(n.chartData[0].data?n.chartData[0].data:0,l)};return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&i.createElement(En,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&i.createElement("div",(0,e.pi)({},(0,ze.ey)(n.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,ze.Ts)(f,l))),p&&i.createElement("div",(0,e.pi)({className:this._classNames.ratioNumerator},(0,ze.ey)(n.chartDataAccessibilityData,"text",!1)),y())),(r||o)&&i.createElement("div",{className:this._classNames.benchmarkContainer},r&&i.createElement("div",{className:this._classNames.benchmark,role:"text"}),o&&i.createElement("div",{className:this._classNames.target,role:"text"}))),i.createElement(dn,{direction:Re.horizontal},i.createElement("div",null,i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},i.createElement("g",null,d[0]),i.createElement(He,(0,e.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&i.createElement("div",{className:this._classNames.legendContainer},d[1]))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Eo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,r,o,a){var s,l=this,c=(null===(s=t.chartData)||void 0===s?void 0:s.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(c-1),d=[r.blueLight,r.blue,r.blueMid,r.red,r.black],h=[],p=[],g=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),m=0,v=0,_=0;t.chartData.map((function(t,e){var n=t.data?t.data:0;return(v=n/g*100)<1&&0!==v?v=1:v>99&&100!==v&&(v=99),_+=v}));var y=0!==_?_/(100-u):1,x=t.chartData.map((function(t,e){var r=t.color?t.color:d[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,a={title:t.legend,color:r,action:g>0?function(){l._onClick(t.legend)}:void 0,hoverAction:g>0?function(){l._handleChartMouseLeave(),l._onHover(t.legend)}:void 0,onMouseOutAction:g>0?function(){l._onLeave()}:void 0};t.placeHolder||h.push(a),e>0&&(m+=v),(v=o/g*100)<1&&0!==v?v=1/y:v>99&&100!==v?v=99/y:v/=y,p.push(m);var s=l.props.styles,c=!(!l._legendHighlighted(t.legend)&&!l._noLegendHighlighted());return l._classNames=Eo(s,{theme:l.props.theme,shouldHighlight:c,href:l.props.href}),i.createElement("g",{key:e,className:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,a.title)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,o,r,t),onBlur:l._onBarLeave,"aria-label":l._getAriaLabel(t),role:"img",onMouseOver:l._onBarHover.bind(l,o,r,t),onMouseMove:l._onBarHover.bind(l,o,r,t),onMouseLeave:l._onBarLeave,pointerEvents:"all",onClick:l.props.href?l._redirectToUrl.bind(l,l.props.href):t.onClick},i.createElement("rect",{key:e,id:f("_SBC_bar"),x:"".concat(l._isRTL?100-p[e]-v-l.state.barSpacingInPercent*e:p[e]+l.state.barSpacingInPercent*e,"%"),y:0,width:v+"%",height:n,fill:r}))}));this._addLegend(h,o),this._addLegend(h,a);var b=i.createElement(vr,(0,e.pi)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===g?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:r.neutralLight)]:x,b]},n.prototype._onBarFocus=function(t,e,n){var r=this;this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,e){if(e){var n={title:e.legend,color:e.color,shape:"triangle"};t.push(n)}},n.prototype._generateEmptyBar=function(t,e){return i.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},i.createElement("rect",{key:0,id:f("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:e}))},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(i.Component),Ao=(0,t.z)(So,(function(t){var n,r,i=t.className,o=t.width,a=t.barHeight,s=t.shouldHighlight,l=t.theme,c=t.href,u=t.benchmarkColor,d=t.benchmarkRatio,h=t.targetColor,p=t.targetRatio,f=t.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},i],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px",overflow:"visible"},chartTitle:(0,e.pi)((0,e.pi)({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:c?"pointer":"default",selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.TS.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u,marginBottom:"4px",selectors:(n={},n[Yt.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},n)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(r={},r[Yt.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},r)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(_o||(_o={}));var Lo,ko=(0,o.y)(),To=function(t){function n(n){var r=t.call(this,n)||this;return r._isRTL=(0,a.zg)(),r._adjustProps=function(){var t=r.props,e=t.theme,n=t.className,i=t.styles,o=t.width,a=t.barHeight;r._classNames=ko(i,{legendColor:r.state.color,theme:e,width:o,className:n,barHeight:a})},r._getLegendData=function(t,n,o){var a=[o.blueLight,o.blue,o.blueMid,o.red,o.black],s=[];return t.forEach((function(t,e){var i=t.chartData.filter((function(t){return!t.placeHolder}));i.length<3?void 0!==n[e]&&n[e]&&i.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}})):i.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}}))})),i.createElement(vr,(0,e.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},r._computeLongestBarTotalValue=function(){var t=0;return r.props.data.forEach((function(e){var n=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0);t=Math.max(t,n)})),t},r.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},r._onLeave=r._onLeave.bind(r),r._onBarLeave=r._onBarLeave.bind(r),r._calloutId=f("callout"),r.barChartSvgRef=i.createRef(),r._emptyChartId=f("_MSBC_empty"),r._barId=f("_MSBC_rect_"),r._barIdPlaceholderPartToWhole=f("_MSBC_rect_partToWhole_"),r._barIdEmpty=f("_MSBC_rect_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,r=n.data,o=n.theme,a=n.culture;this._adjustProps();var s=o.palette,l=this._getLegendData(r,this.props.hideRatio,s),c=this.state.isCalloutVisible;this._classNames=ko(this.props.styles,{legendColor:this.state.color,theme:o,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=r.map((function(e,n){var r=t._createBarsAndLegends(e,t.props.barHeight,s,t.props.hideRatio[n],t.props.hideDenominator[n],t.props.href,n);return i.createElement("div",{key:n,id:"_MSBC_bar-".concat(n)},r)}));return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&i.createElement("div",{className:this._classNames.legendContainer},l),i.createElement(He,(0,e.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,r,o,a,s,l){var c,u,d=this,h=(null===(c=t.chartData)||void 0===c?void 0:c.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,p=this.state.barSpacingInPercent*(h-1),f=this.props.culture,g=[r.blueLight,r.blue,r.blueMid,r.red,r.black],m=[],v=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),_=this.props.variant===_o.AbsoluteScale?this._longestBarTotalValue:v,y=0;if(t.chartData.map((function(t,e){var n=(t.data?t.data:0)/_*100||0;return n<1&&0!==n?n=1:n>99&&100!==n&&(n=99),y+=n})),this.props.variant===_o.AbsoluteScale){var x=0===_?0:(_-v)/_*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),y+=x}var b=0!==y?y/(100-p):1,C=0,E=0,S=t.chartData.map((function(t,e){var o=t.color?t.color:t.placeHolder?r.neutralLight:g[Math.floor(4*Math.random()+1)],a=t.data?t.data:0;e>0&&(C+=E),(E=a/_*100?a/_*100:0)<1&&0!==E?E=1/b:E>99&&100!==E?E=99/b:E/=b,m.push(C);var c=d.props.styles,u=!(!d._legendHighlighted(t.legend)&&!d._noLegendHighlighted());return d._classNames=ko(c,{theme:d.props.theme,shouldHighlight:u,href:s,variant:d.props.variant,hideLabels:d.props.hideLabels}),i.createElement("g",{key:e,className:t.placeHolder?d._classNames.placeHolderOnHover:d._classNames.opacityChangeOnHover,ref:function(e){d._refCallback(e,t.legend)},"data-is-focusable":!d.props.hideTooltip,onFocus:d._onBarFocus.bind(d,a,o,t),onBlur:d._onBarLeave,role:"img","aria-label":d._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:d._onBarHover.bind(d,a,o,t),onMouseMove:t.placeHolder?void 0:d._onBarHover.bind(d,a,o,t),onMouseLeave:t.placeHolder?void 0:d._onBarLeave,onClick:s?t.placeHolder?void 0:d._redirectToUrl.bind(d,s):t.onClick},i.createElement("rect",{key:e,id:"".concat(d._barId,"-").concat(l,"-").concat(e),x:"".concat(d._isRTL?100-m[e]-E-d.state.barSpacingInPercent*e:m[e]+d.state.barSpacingInPercent*e,"%"),y:0,width:E+"%",height:n,fill:o}))}));if(this.props.variant!==_o.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(i.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},i.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))),0===v&&S.push(i.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},i.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=v):null===(u=t.chartData)||void 0===u||u.forEach((function(t){d._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(i.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-E-p:(m[m.length-1]||0)+E+p,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},(0,ze.cE)(L)))}var k=void 0!==o&&o,T=this.props.variant!==_o.AbsoluteScale&&!k&&2===t.chartData.length,w=this.props.variant!==_o.AbsoluteScale&&!k&&1===t.chartData.length,D=function(){return(0,ze.Ts)(t.chartData[0].data?t.chartData[0].data:0,f)};return i.createElement("div",{className:this._classNames.singleChartRoot},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&i.createElement(En,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),T&&i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},D()),!a&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,ze.Ts)(v,f))),w&&i.createElement("div",(0,e.pi)({className:this._classNames.ratioNumerator},(0,ze.ey)(t.chartDataAccessibilityData,"text",!1)),D()))),i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartWrapper},i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,e,n){var r=this;this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,e){this.state.refArray.push({legendText:e,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(i.Component),wo=(0,t.z)(To,(function(t){var n=t.className,r=t.width,i=t.barHeight,o=t.shouldHighlight,a=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:r||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:i||12,display:"block",overflow:"visible"},chartTitle:(0,e.pi)((0,e.pi)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===_o.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:r||"100%",display:"flex",flexDirection:"column",marginBottom:l===_o.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.TS.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==_o.AbsoluteScale||c?0:40}}})),Do=n(5561),Mo=n(8815),Po=n(8639),Fo=n(6775);!function(t){t.show="visibility",t.hide="hidden"}(Lo||(Lo={}));var Io,No=(0,o.y)(),Vo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._createLine=function(t,e,n,o,a){var s;void 0===n&&(n=0),void 0===o&&(o=0);var l=r._xAxisType===ze.xl.StringAxis,c=r._getScales(n,o).xBarScale,u=r._createColors(),d=r.props.theme,h=r.props,p=h.data,g=h.lineLegendColor,m=void 0===g?d.palette.yellow:g,v=h.lineLegendText,_=[],y=[];p&&p.forEach((function(t,e){var n;t.lineData&&t.lineData.y&&_.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(n=t.lineData.useSecondaryYScale)&&void 0!==n&&n,point:t,index:e})}));var x=yi().x((function(e){return l?c(e.x)+.5*c.bandwidth():t(e.x)})).y((function(t){return t.useSecondaryYScale&&a?a(t.y):e(t.y)})),b=!(!r._legendHighlighted(v)&&!r._noLegendHighlighted()),C=(null===(s=r.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0;C>0&&y.push(i.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:d.semanticColors.bodyBackground})),y.push(i.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:m}));var E=_.map((function(n,o){var s;return i.createElement("circle",{key:o,id:f("_VBC_point_"),cx:l?c(n.x)+.5*c.bandwidth():t(n.x),cy:n.useSecondaryYScale&&a?a(n.y):e(n.y),onMouseOver:r._onBarHover.bind(r,n.point,u(n.y)),onMouseOut:r._onBarLeave,r:8,stroke:m,fill:r.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:r.state.activeXdataPoint===n.x?Lo.show:Lo.hide,onClick:null===(s=n.point.lineData)||void 0===s?void 0:s.onClick})}));return i.createElement(i.Fragment,null,y,E)},r._checkForLine=function(){return r.props.data.some((function(t){var e;return void 0!==(null===(e=null==t?void 0:t.lineData)||void 0===e?void 0:e.y)}))},r._getMargins=function(t){r.margins=t},r._renderContentForBothLineAndBars=function(t){var n=r._getCalloutContentForLineAndBar(t),o=n.YValueHover,a=n.hoverXValue,s=o.map((function(t,n){return i.createElement(We.ChartHoverCard,(0,e.pi)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(a||t.data)},{color:t.color,YValue:t.data||t.y,culture:r.props.culture}))}));return i.createElement(i.Fragment,null,s)},r._renderContentForOnlyBars=function(t){var e=r.props.useSingleColor,n=void 0!==e&&e;return i.createElement(i.Fragment,null,i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!n&&t.color?t.color:r._createColors()(t.y),culture:r.props.culture}))},r._renderCallout=function(t){return t?r._isHavingLine?r._renderContentForBothLineAndBars(t):r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,e,n,i,o){return r._bars=r._xAxisType===ze.xl.NumericAxis?r._createNumericBars(n,i,o):r._xAxisType===ze.xl.DateAxis?r._createDateBars(n,i,o):r._createStringBars(n,i,o)},r._refCallback=function(t,e){r._refArray.push({index:e,refElement:t})},r._getCalloutContentForLineAndBar=function(t){var e,n,i,o,a=[],s=r.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=r.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(e){return e.x===t.x}));r._isHavingLine&&void 0!==(null===(e=m[0].lineData)||void 0===e?void 0:e.y)&&a.push({legend:p,color:g,y:null===(n=m[0].lineData)||void 0===n?void 0:n.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:u?r._createColors()(1):m[0].color?m[0].color:r._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData});var v=t.x instanceof Date?t.x.toLocaleString():t.x.toString();return{YValueHover:a,hoverXValue:t.xAxisCalloutData||v}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,e,n){var i=r._getCalloutContentForLineAndBar(t),o=i.YValueHover,a=i.hoverXValue;r._refArray.forEach((function(i,s){i.index===t.legend&&e===s&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))},r._getScales=function(t,e){var n,i=(0,Mo.Z)().domain([0,r._yMax]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===ze.xl.NumericAxis){var o=(0,ji.Z)(r._points,(function(t){return t.x})),a=(0,Do.Z)(r._points,(function(t){return t.x}));n=(0,Mo.Z)().domain(r._isRtl?[o,a]:[a,o]).nice().range([r.margins.left+r._domainMargin,e-r.margins.right-r._barWidth-r._domainMargin])}else if(r._xAxisType===ze.xl.DateAxis){var s=(0,Do.Z)(r._points,(function(t){return t.x})),l=(0,ji.Z)(r._points,(function(t){return t.x}));n=(0,Po.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,e-r.margins.right-r._barWidth/2-r._domainMargin])}else n=(0,Fo.Z)().domain(r._xAxisLabels).range(r._isRtl?[e-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/3);return{xBarScale:n,yBarScale:i}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=r.props,a=o.theme,s=o.useSingleColor,l=r.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(t.forEach((function(t,e){var n=s?r._createColors()(1):t.color,i={title:t.legend,color:n,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(i)})),r._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){r._onLegendClick(c)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(c)},onMouseOutAction:function(){r._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return i.createElement(vr,(0,e.pi)({legends:h,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n,i,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?t.x.toLocaleString():t.x,a=t.legend,s=t.yAxisCalloutData||t.y,l=r.props.lineLegendText||"Line",c=(null===(e=t.lineData)||void 0===e?void 0:e.yAxisCalloutData)||(null===(n=t.lineData)||void 0===n?void 0:n.y);return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(o,". ")+(a?"".concat(a,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},r._getDomainMargins=function(t){if(r._xAxisType===ze.xl.StringAxis){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*i;r._domainMargin=8,n>=o?r._domainMargin+=(n-o)/2:i=n/(3*r._xAxisLabels.length-2),r._barWidth=i}return(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},r._isHavingLine=r._checkForLine(),r._calloutId=f("callout"),r._tooltipId=f("VCTooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].x,!0):ze.xl.StringAxis,r._domainMargin=8,r._emptyChartId=f("_VBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max((0,ji.Z)(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=No(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,e.pi)((0,e.pi)((0,e.pi)((0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),(0,ze.ey)(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:this._points,chartType:ze.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:o},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Re.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==ze.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),t._isHavingLine&&i.createElement("g",null,t._createLine(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine()},n.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(e*i*this._yMax);return(0,Mo.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForLineAndBar(t),i=r.YValueHover,o=r.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||e,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,s=this._getScales(t,e),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=No(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var s,d=Math.max(c(e.y),0);if(d<=0)return i.createElement(i.Fragment,{key:e.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(e.x),p=t-r.margins.bottom-s;return i.createElement("g",{key:e.x},i.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(h,p,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,pi.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,ze.$V)(p)}return d},n.prototype._createStringBars=function(t,e,n){var r=this,o=this._getScales(t,e),a=o.xBarScale,s=o.yBarScale,l=this._createColors(),c=this._points.map((function(e,n){var o,c=Math.max(s(e.y),0);if(c<=0)return i.createElement(i.Fragment,{key:e.x instanceof Date?e.x.getTime():e.x}," ");o=c<=Math.ceil(s(r._yMax)/100)?Math.ceil(s(r._yMax)/100):c;var u=a(e.x),d=t-r.margins.bottom-o;return i.createElement("g",{key:e.x instanceof Date?e.x.getTime():e.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},i.createElement("rect",{id:f("_VBC_bar_"),x:u,y:d,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(e),role:"img",ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,l(e.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,e,n,l(e.y)),fill:e.color?e.color:l(e.y)}),r._renderBarLabel(u,d,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=(0,pi.Ys)(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&(0,ze.$V)(d)}return c},n.prototype._createDateBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,s=this._getScales(t,e),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=No(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var s,d=Math.max(c(e.y),0);if(d<=0)return i.createElement(i.Fragment,{key:e.x instanceof Date?e.x.getTime():e.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(e.x)-r._barWidth/2,p=t-r.margins.bottom-s;return i.createElement("g",{key:e.x instanceof Date?e.x.getTime():e.x},i.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(h,p,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,pi.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,ze.$V)(p)}return d},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._renderBarLabel=function(t,e,n,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(r)&&!this._noLegendHighlighted()?null:i.createElement("text",{x:t+this._barWidth/2,y:e-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(n))},n.prototype._isChartEmpty=function(){return 0===this._points.length||(0,ji.Z)(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},n}(i.Component),Oo=(0,t.z)(Vo,(function(t){var n=t.shouldHighlight,r=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,e.pi)((0,e.pi)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}}})),Bo=(0,o.y)();!function(t){t.show="visibility",t.hide="hidden"}(Io||(Io={}));var Ho=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._toFocusWholeStack=function(t){var e=r.props.isCalloutForStack,n=void 0!==e&&e;return t?""===r.state.selectedLegend:n},r._getFormattedLineData=function(t){var n=[],r={};return t.forEach((function(t,r){t.lineData&&t.lineData.forEach((function(i){n.push((0,e.pi)((0,e.pi)({},i),{index:r,xItem:t}))}))})),n.forEach((function(t){r[t.legend]?r[t.legend].push(t):r[t.legend]=[t]})),r},r._getLineLegends=function(t){var e=r._lineObject,n=[];return Object.keys(e).forEach((function(t){n.push({title:t,color:e[t][0].color})})),n},r._createLines=function(t,n,o,a,s){var l,c=r._xAxisType===ze.xl.NumericAxis,u=r._xAxisType===ze.xl.DateAxis,d=r._getScales(o,a).xBarScale,h=r._getFormattedLineData(r.props.data),p=[],f=[],g=[],m=r.props.theme,v=(null===(l=r.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0,_=c||u?0:d.bandwidth()/2;return Object.keys(h).forEach((function(o,a){for(var l=r._legendHighlighted(o)||r._noLegendHighlighted(),u=1;u<h[o].length;u++){var g=c?t(h[o][u-1].xItem.xAxisPoint):d(h[o][u-1].xItem.xAxisPoint),y=h[o][u-1].useSecondaryYScale&&h[o][u].useSecondaryYScale&&s,x=y?s(h[o][u-1].y):n(h[o][u-1].y),b=c?t(h[o][u].xItem.xAxisPoint):d(h[o][u].xItem.xAxisPoint),C=y?s(h[o][u].y):n(h[o][u].y);v>0&&f.push(i.createElement("line",{key:"".concat(a,"-").concat(u,"-BorderLine"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:m.semanticColors.bodyBackground,transform:"translate(".concat(_,", 0)")})),p.push(i.createElement("line",(0,e.pi)({key:"".concat(a,"-").concat(u,"-line"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:h[o][u].color,transform:"translate(".concat(_,", 0)")},r.state.selectedLegend===o&&{onMouseOver:r._lineHover.bind(r,h[o][u-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(h).forEach((function(o,a){h[o].forEach((function(l,u){g.push(i.createElement("circle",(0,e.pi)({key:"".concat(a,"-").concat(u,"-dot"),cx:c?t(l.xItem.xAxisPoint):d(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&s?s(l.y):n(l.y),onMouseOver:r.state.selectedLegend===o?r._lineHover.bind(r,l):r._onStackHover.bind(r,l.xItem)},r.state.selectedLegend===o&&{onMouseLeave:r._lineHoverOut},{r:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:r.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(_,", 0)")})))}))})),i.createElement(i.Fragment,null,f,p,g)},r._getCircleVisibilityAndRadius=function(t,e){var n=r.state,i=n.selectedLegend,o=n.activeXAxisDataPoint;return""!==i?t===o&&i===e?{visibility:Io.show,radius:8}:i===e?{visibility:Io.show,radius:.3}:{visibility:Io.hide,radius:0}:{visibility:o===t?Io.show:Io.hide,radius:8}},r._getMargins=function(t){r.margins=t},r._getCustomizedCallout=function(){var t=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!t?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(t,e){e.persist(),r.setState({refSelected:e,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},r._lineHoverOut=function(){r.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},r._handleMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},r._createBar=function(t,n,o,a){var s=r.props,l=s.barCornerRadius,c=void 0===l?0:l,u=s.barMinimumHeight,d=void 0===u?0:u,h=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),p=r._toFocusWholeStack(h),f=r._points.map((function(a,s){var l=o-r.margins.bottom,u=t((r._xAxisType===ze.xl.NumericAxis||(r._xAxisType,ze.xl.DateAxis),a.xAxisPoint)),h=r._xAxisType===ze.xl.NumericAxis?0:r._xAxisType===ze.xl.DateAxis?-r._barWidth/2:(t.bandwidth()-r._barWidth)/2,f=0,g=a.chartData.filter((function(t){return t.data>0}));if(g.length){var m=r._getBarGapAndScale(g,n),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(t,n){var o=t.color?t.color:r._colors[n],m={},y=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Bo(r.props.styles,{theme:r.props.theme,shouldHighlight:y,href:r.props.href});var x=!p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a,t),onMouseOver:r._onRectHover.bind(r,a.xAxisPoint,t,o),onMouseMove:r._onRectHover.bind(r,a.xAxisPoint,t,o),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,t,a.xAxisPoint,o,m),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,t),role:"img"},b=_*t.data;return b<Math.max(_*Math.ceil(r._yMax/100),d)&&(b=Math.max(_*Math.ceil(r._yMax/100),d)),l=l-b-(n?v:0),f+=t.data,c&&b>c&&n===g.length-1?i.createElement("path",(0,e.pi)({key:n+s+"".concat(p),className:r._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(r._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-r._barWidth,"\n z\n "),fill:o,ref:function(t){return m.refElement=t},transform:"translate(".concat(h,", 0)")},x)):b<0?i.createElement(i.Fragment,{key:n+s}," "):i.createElement("rect",(0,e.pi)({key:n+s,className:r._classNames.opacityChangeOnHover,x:u,y:l,width:r._barWidth,height:b,fill:o,ref:function(t){return m.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a),onMouseOver:r._onStackHover.bind(r,a),onMouseMove:r._onStackHover.bind(r,a),onMouseLeave:r._handleMouseOut,onFocus:r._onStackFocus.bind(r,a,x),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,a),role:"img"},C=!1,E=0;return r.props.hideLabels||(r._noLegendHighlighted()?(C=!0,E=f):g.forEach((function(t){r._legendHighlighted(t.legend)&&(C=!0,E+=t.data)}))),i.createElement("g",{key:s+"".concat(p)},i.createElement("g",(0,e.pi)({id:"".concat(s,"-singleBar"),ref:function(t){return x.refElement=t}},b),y),!r.props.hideLabels&&r._barWidth>=16&&C&&i.createElement("text",{x:u+r._barWidth/2,y:l-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-label":"Total: ".concat(E),role:"img",transform:"translate(".concat(h,", 0)")},(0,ze.cE)(E)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var g=(0,pi.Ys)(a).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var m={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:g};g&&(0,ze.$V)(m)}return f.filter((function(t){return!!t}))},r._getScales=function(t,e){var n=r._yMax,i=(0,Mo.Z)().domain([0,n]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===ze.xl.NumericAxis){var o=(0,ji.Z)(r._dataset,(function(t){return t.x})),a=(0,Do.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[o,a]:[a,o]).nice().range([r.margins.left+r._domainMargin,e-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:i}}if(r._xAxisType===ze.xl.DateAxis){var s=(0,Do.Z)(r._dataset,(function(t){return t.x})),l=(0,ji.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Po.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,e-r.margins.right-r._barWidth/2-r._domainMargin]),yBarScale:i}}return{xBarScale:(0,Fo.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:i}},r._getGraphData=function(t,e,n,i,o){var a=r._getScales(n,i),s=a.xBarScale,l=a.yBarScale;return r._bars=r._createBar(s,l,n,o)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,e){var n,r,i;if(!e){var o=t.xAxisCalloutData||t.xAxisPoint,a=t.chartData.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data;return"".concat(e,", ").concat(n,".")})).join(" "),s=null===(n=t.lineData)||void 0===n?void 0:n.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data||t.y;return"".concat(e,", ").concat(n,".")})).join(" ");return(null===(r=t.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ").concat(a)+(s?" ".concat(s):"")}var l=t.xAxisCalloutData||e.xAxisCalloutData||t.xAxisPoint,c=e.legend,u=e.yAxisCalloutData||e.data;return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},r._getDomainMargins=function(t){if(r._xAxisType!==ze.xl.NumericAxis){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*i;r._domainMargin=8,n>=o?r._domainMargin+=(n-o)/2:i=n/(3*r._xAxisLabels.length-2),r._barWidth=i}return(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},r._handleMouseOut=r._handleMouseOut.bind(r),r._calloutId=f("callout"),r._tooltipId=f("VSBCTooltipId_"),r._isChartEmpty()&&(r._adjustProps(),r._dataset=r._createDataSetLayer()),r._createLegendsForLine=(0,ue.NF)((function(t){return r._getLineLegends(t)})),r._domainMargin=8,r._emptyChartId=f("_VSBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),r=this._toFocusWholeStack(n),o=this.props.isCalloutForStack,a=void 0!==o&&o;this._dataset=this._createDataSetLayer();var s=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Bo(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=(0,e.pi)((0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,ze.ey)(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Ti,(0,e.pi)({},this.props,{points:this._dataset,chartType:ze.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:s,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:a||n?Re.horizontal:Re.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==ze.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),i.createElement("g",null,n&&t._createLines(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=(0,ze.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},n.prototype._createDataSetLayer=function(){var t=[],e=this._points.map((function(e){var n=0;return e.chartData.forEach((function(t){n+=t.data})),t.push(e.xAxisPoint),{x:e.xAxisPoint,y:n}}));return this._xAxisLabels=t,e},n.prototype._renderCallout=function(t){return t?i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getLegendData=function(t,n,r){var o=this;if(this.props.hideLegend)return i.createElement(i.Fragment,null);var a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;t.forEach((function(t){t.chartData.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){o._onLegendClick(t.legend)},hoverAction:c?function(){o._handleChartMouseLeave(),o._onLegendHover(t.legend)}:void 0,onMouseOutAction:c?function(){return o._onLegendLeave()}:void 0};s.push(n)}}))}));var u=[];r&&r.length>0&&r.forEach((function(t){var e={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){o._onLegendClick(t.title)},hoverAction:c?function(){o._handleChartMouseLeave(),o._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return o._onLegendLeave()}:void 0};u.push(e)}));var d=u.concat(s);return i.createElement(vr,(0,e.pi)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._onRectHover=function(t,e,n,r){r.persist(),this._onRectFocusHover(t,e,n,r)},n.prototype._onRectFocusHover=function(t,e,n,r){var i,o;(null===(i=this._calloutAnchorPoint)||void 0===i?void 0:i.chartDataPoint)===e&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:e,xAxisDataPoint:t},this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:n,xCalloutValue:e.xAxisCalloutData?e.xAxisCalloutData:t,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,e){e.persist(),this._onStackHoverFocus(t,e)},n.prototype._onStackHoverFocus=function(t,n){var r=t.lineData,i=void 0!==r&&r.length>0;i&&r.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:!0,YValueHover:i?(0,e.ev)((0,e.ev)([],r.sort((function(t,e){return t.data<e.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?t.xAxisPoint.toLocaleDateString():t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,e,n,r){r.refElement&&this._onRectFocusHover(e,t,n,r.refElement)},n.prototype._onStackFocus=function(t,e){e.refElement&&this._onStackHoverFocus(t,e.refElement)},n.prototype._onClick=function(t,e){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,e,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,e,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=t.reduce((function(t,e){return t+e.data}),0),a=null!=n?n:e(o),s=i&&t.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},n}(i.Component),Ro=(0,t.z)(Ho,(function(t){var n=t.shouldHighlight,r=t.href,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:r?"pointer":"default"},tooltip:(0,e.pi)((0,e.pi)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:i.palette.neutralPrimary}}})),zo=(0,o.y)(),Wo=.1/.9,Yo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getGraphData=function(t,e,n,i,o){var a=r._createX0Scale(i),s=r._createX1Scale(),l=[];r._datasetForBars.forEach((function(t){l.push(r._buildGraph(t,a,s,n,o))})),r._groupedVerticalBarGraph=l},r._getMargins=function(t){return r.margins=t},r._createDataSetOfGVBC=function(t){var e=[],n=t.map((function(t){return t.name}));t[0].series.forEach((function(t){e.push(t.key)}));var i=r._createDataset(t);return{keys:e,xAxisLabels:n,datasetForBars:i}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(t,e,n){n.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({refSelected:n,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(t,e,n){r._refArray.forEach((function(i,o){i.index===t.legend&&n===o&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData})}))},r._redirectToUrl=function(t){t&&(window.location.href=t)},r._buildGraph=function(t,e,n,o,a){var s=[],l=[],c=(0,Mo.Z)().domain([0,r._yMax]).range([0,o-r.margins.bottom-r.margins.top]),u=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(u.forEach((function(e,a){var d=t.indexNum*u.length+a,h=t[e],p=n(e)+(n.bandwidth()-r._barWidth)/2,f=Math.max(o-r.margins.bottom-c(h.data),0);h.data&&s.push(i.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:r._barWidth,x:p,y:f,"data-is-focusable":!r.props.hideTooltip,opacity:r._getOpacity(h.legend),ref:function(t){r._refCallback(t,h.legend,d)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,t),onMouseMove:r._onBarHover.bind(r,h,t),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,t,d),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&(r._legendHighlighted(h.legend)||r._noLegendHighlighted())&&l.push(i.createElement("text",{x:p+r._barWidth/2,y:f-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var d=(0,pi.Ys)(a).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:d};d&&(0,ze.$V)(h)}return i.createElement("g",{key:t.indexNum,transform:"translate(".concat(e(t.xAxisPoint)+(e.bandwidth()-r._groupWidth)/2,", 0)")},s,l)},r._createDataset=function(t){var n=[],i=[];return t.forEach((function(t,r){var o={},a={},s=[];t.series.forEach((function(t){o[t.key]=t.data,a[t.key]=(0,e.pi)({},t),s.push(t)})),a.xAxisPoint=t.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(a),i.push(o)})),r._dataset=i,n},r._createX0Scale=function(t){return(0,Fo.Z)().domain(r._xAxisLabels).range(r._isRtl?[t-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/(2+r._keys.length+(r._keys.length-1)*Wo))},r._createX1Scale=function(){return(0,Fo.Z)().domain(r._keys).range(r._isRtl?[r._groupWidth,0]:[0,r._groupWidth]).paddingInner(.1)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=t,a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[];return o.forEach((function(t){t.series.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};s.push(n)}}))})),i.createElement(vr,(0,e.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,e){var n,r=t.xAxisCalloutData||e,i=t.legend,o=t.yAxisCalloutData||t.data;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(i,", ").concat(o,".")},r._getDomainMargins=function(t){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barwidth||16,24),o=r._keys.length*i+(r._keys.length-1)*Wo*i,a=r._xAxisLabels.length*o+2*(r._xAxisLabels.length-1)*i;return r._domainMargin=8,n>=a?r._domainMargin+=(n-a)/2:i=(o=n/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*Wo))))/(r._keys.length+(r._keys.length-1)*Wo),r._barWidth=i,r._groupWidth=o,(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,ue.NF)((function(t){return r._createDataSetOfGVBC(t)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},r._refArray=[],r._calloutId=f("callout"),r._tooltipId=f("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=f("_GVBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,n=this.props.data,r=this._createSet(n),o=r.keys,a=r.xAxisLabels,s=r.datasetForBars;this._keys=o,this._xAxisLabels=a,this._datasetForBars=s,this._xAxisType=(0,ze.SY)(n[0].name,!0);var l=this._getLegendData(n,this.props.theme.palette),c=(0,ji.Z)(this._dataset,(function(e){return(0,ji.Z)(t._keys,(function(t){return e[t]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=zo(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=(0,e.pi)((0,e.pi)((0,e.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:this._datasetForBars,chartType:ze.$X.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Re.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*Wo),xAxisOuterPadding:0,children:function(){return i.createElement("g",null,t._groupedVerticalBarGraph)}}))},n.prototype._refCallback=function(t,e,n){this._refArray[n]={index:e,refElement:t}},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},n}(i.Component),Zo=(0,t.z)(Yo,(function(t){var n=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,e.pi)((0,e.pi)({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:n.palette.neutralPrimary}}})),qo=n(1286),Xo=n(731),Uo=(0,o.y)(),jo=function(t){function n(n){var r=t.call(this,n)||this;return r._rectRefArray={},r._getXandY=function(){var t="",e="";return r.props.data.forEach((function(n){if(n.data&&n.data.length>0)return t=n.data[0].x,e=n.data[0].y,{x:t,y:e}})),{x:t,y:e}},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,e,n){r._rectRefArray[e]={data:n,refElement:t}},r._onRectFocus=function(t,e){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:r._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData})},r._onRectMouseOver=function(t,e,n){n.persist(),r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:r._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(e,n){r._dataSet[e].forEach((function(e,o){var a="x".concat(n,"y").concat(o),s=i.createElement("g",{key:a,role:"img","aria-label":r._getAriaLabel(e),"data-is-focusable":!0,fillOpacity:r._getOpacity(e.legend),transform:"translate(".concat(r._xAxisScale(e.x),", ").concat(r._yAxisScale(e.y),")"),ref:function(t){r._rectRefCallback(t,a,e)},onFocus:r._onRectFocus.bind(r,a,e),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,a,e),onMouseOut:r._onRectBlurOrMouseOut},i.createElement("rect",{fill:r._colorScale(e.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:e.onClick}),i.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,ze.Ts)(e.rectText,r.props.culture)));t.push(s)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,o=t.legendProps,a=[];return n.forEach((function(t){var e={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(e)})),i.createElement(vr,(0,e.pi)({},o,{legends:a}))},r._getColorScale=function(){var t=r.props,e=t.domainValuesForColorScale,n=t.rangeValuesForColorScale;return(0,Mo.Z)().domain(e).range(n)},r._getXIndex=function(t){return r._xAxisType===ze.xl.DateAxis?"".concat(t.getTime()):r._xAxisType===ze.xl.StringAxis?t:r._xAxisType===ze.xl.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===ze.OH.DateAxis?"".concat(t.getTime()):r._yAxisType===ze.OH.StringAxis?t:r._yAxisType===ze.OH.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,o,a){var s=[];t.forEach((function(t){t.data.forEach((function(n){s.push((0,e.pi)((0,e.pi)({},n),{legend:t.legend}))}))}));var l={},c={},u={};return s.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);u[n]="1",c[i]="1",l[i]?l[i]=(0,e.ev)((0,e.ev)([],l[i],!0),[t],!1):l[i]=[t]})),Object.keys(l).forEach((function(t){l[t].sort((function(t,e){return r._xAxisType===ze.xl.StringAxis?t.x.toLowerCase()>e.x.toLowerCase()?1:-1:r._xAxisType===ze.xl.DateAxis?t.x.getTime()-e.x.getTime():r._xAxisType===ze.xl.NumericAxis?+t.x>+e.x?1:-1:t.x>e.x?1:-1})).forEach((function(t){r._xAxisType===ze.xl.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===ze.xl.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===ze.xl.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===ze.OH.DateAxis&&(t.y=r._getStringFormattedDate(t.y,o)),r._yAxisType===ze.OH.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===ze.OH.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(l).forEach((function(t){r._yAxisType===ze.OH.DateAxis?l[r._getStringFormattedDate(t,o)]=l[t]:r._yAxisType===ze.OH.NumericAxis?l["".concat(r._getStringFormattedNumber(t,a))]=l[t]:l[r._getFormattedLabelForYAxisDataPoint(t)]=l[t]})),{dataSet:l,yAxisPoints:r._getYAxisDataPoints(c),xAxisPoints:r._getXAxisDataPoints(u)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return r._xAxisType===ze.xl.DateAxis||r._xAxisType===ze.xl.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===ze.xl.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===ze.xl.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return r._yAxisType===ze.OH.DateAxis||r._yAxisType===ze.OH.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===ze.OH.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===ze.OH.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,e){var n=new Date;return n.setTime(+t),(0,Xo.i$)(e||"%b/%d")(n)},r._getStringFormattedNumber=function(t,e){return(0,Kr.WU)(e||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var e=r.props.xAxisStringFormatter;return e?e(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var e=r.props.yAxisStringFormatter;return e?e(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n=t.x,r=t.y,i=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,a=t.descriptionMessage;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(i,", ").concat(o,".")+(a?" ".concat(a,"."):"")},r._createSet=(0,ue.NF)((function(t,e,n,i,o){return r._createNewDataSet(t,e,n,i,o)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=f("_HeatMap_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,n=this._getXandY(),r=n.x,o=n.y;this._xAxisType=(0,ze.SY)(r,!0),this._yAxisType=(0,ze.SY)(o,!1);var a=this.props,s=a.data,l=a.xAxisDateFormatString,c=a.xAxisNumberFormatString,u=a.yAxisDateFormatString,d=a.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(s,l,c,u,d),p=h.dataSet,f=h.xAxisPoints,g=h.yAxisPoints;this._dataSet=p,this._stringYAxisDataPoints=g,this._stringXAxisDataPoints=f,this._classNames=Uo(this.props.styles,{theme:this.props.theme});var m=(0,e.pi)((0,e.pi)((0,e.pi)((0,e.pi)({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:_.topAutoEdge,onDismiss:this._closeCallout}),(0,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),v=(0,e.pi)((0,e.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:s,chartType:ze.$X.HeatMapChart,xAxisType:ze.xl.StringAxis,yAxisType:ze.OH.StringAxis,calloutProps:m,chartHoverProps:v,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Re.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,t._createRectangles()}}))},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(i.Component),Go=(0,t.z)(jo,(function(t){var e=t.theme;return{root:{},text:[e.fonts.medium,{pointerEvents:"none",fill:e.palette.white,fontWeight:Yt.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function Ko(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function $o(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Jo(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Qo(t,e){return e-1-t.height}function ta(t,e){return t.sourceLinks.length?t.depth:e-1}function ea(t){return function(){return t}}function na(t,e){return ia(t.source,e.source)||t.index-e.index}function ra(t,e){return ia(t.target,e.target)||t.index-e.index}function ia(t,e){return t.y0-e.y0}function oa(t){return t.value}function aa(t){return t.index}function sa(t){return t.nodes}function la(t){return t.links}function ca(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function ua({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}class da{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ha(t){return new da(t,!0)}var pa=(0,o.y)(),fa="#757575",ga=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}],ma="#323130",va="#FFFFFF",_a=function(t){function n(e){var n=t.call(this,e)||this;return n._isRtl=(0,a.zg)(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(t){var e=n.state;return e.selectedState?e.selectedState&&e.selectedNodes.has(t.index)&&e.selectedNode?e.selectedNode.color:e.selectedState&&!e.selectedNode?t.color:void 0:t.color},n._fillNodeBorder=function(t){var e=n.state;return e.selectedState?e.selectedState&&e.selectedNodes.has(t.index)&&e.selectedNode?e.selectedNode.borderColor:(e.selectedState&&e.selectedNodes.has(t.index),t.borderColor):t.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=f("callout"),n._linkId=f("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=(0,ue.NF)((function(t){return n._normalizeSankeyData(t)})),n._emptyChartId=f("_SankeyChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t,n=this;if(!this._isChartEmpty()){var r,o=this.props,a=o.theme,s=o.className,l=o.styles,c=o.pathColor,u=this.state,d=pa(l,{theme:a,width:u.containerWidth,height:u.containerHeight,pathColor:c,className:s}),h=this._preRenderLayout(),p=h.height,g=h.width,m=this.props.data.SankeyChartData;this._normalizeData(m),r=this._adjustPadding(this._sankey,p-6,this._nodesInColumn),this._sankey.nodePadding(r),this._sankey(m),(t=m).links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=t.value)})),t.nodes.forEach((function(t){t.actualValue=Math.max(Ko(t.sourceLinks,(function(t){return t.unnormalizedValue})),Ko(t.targetLinks,(function(t){return t.unnormalizedValue})))})),this._assignNodeColors();var v=this._createNodes(d),y=this._createLinks(),x={isCalloutVisible:u.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:u.refSelected,color:u.color,XValue:u.xCalloutValue,YValue:u.yCalloutValue?u.yCalloutValue:u.dataForHoverCard,descriptionMessage:u.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:d.calloutContentRoot,preventDismissOnLostFocus:!0};return i.createElement("div",{className:d.root,role:"presentation",ref:function(t){return n.chartContainer=t},onMouseLeave:this._onCloseCallout},i.createElement(dn,{direction:Re.bidirectional,isCircularNavigation:!0,handleTabKey:1},i.createElement("svg",{width:g,height:p,id:f("sankeyChart")},i.createElement("g",{className:d.links,strokeOpacity:1},y),i.createElement("g",{className:d.nodes},v),x.isCalloutVisible&&i.createElement(He,(0,e.pi)({},x),i.createElement(We.ChartHoverCard,{XValue:x.XValue,YValue:x.YValue,color:x.color,descriptionMessage:x.descriptionMessage?x.descriptionMessage:""})))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._preRenderLayout=function(){var t=this.state,e=t.containerHeight,n=t.containerWidth,r=this._margins,i=r.left,o=r.right,a=r.top,s=r.bottom,l=n-o,c=e-s>0?e-s:0;return this._sankey=function(){let t,e,n,r=0,i=0,o=1,a=1,s=24,l=8,c=aa,u=ta,d=sa,h=la,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const r=new Map(t.map(((e,n)=>[c(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:i}=n;"object"!=typeof e&&(e=n.source=ca(r,e)),"object"!=typeof i&&(i=n.target=ca(r,i)),e.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:r}of t)e.sort(n),r.sort(n)}(f),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max($o(e.sourceLinks,oa),$o(e.targetLinks,oa)):e.fixedValue}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){for(const t of n){t.depth=i;for(const{target:e}of t.sourceLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){for(const t of n){t.height=i;for(const{source:e}of t.targetLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:t}){const n=Jo(t,(t=>t.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(u.call(null,e,n))));e.layer=t,e.x0=r+t*i,e.x1=e.x0+s,a[t]?a[t].push(e):a[t]=[e]}if(e)for(const t of a)t.sort(e);return a}(n);t=Math.min(l,(a-i)/(Jo(c,(t=>t.length))-1)),function(e){const n=function(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}(e,(e=>(a-i-(e.length-1)*t)/$o(e,oa)));for(const r of e){let e=i;for(const i of r){i.y0=e,i.y1=e+i.value*n,e=i.y1+t;for(const t of i.sourceLinks)t.width=t.value*n}e=(a-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}b(r)}}(c);for(let t=0;t<p;++t){const e=Math.pow(.99,t),n=Math.max(1-e,(t+1)/p);m(c,e,n),g(c,e,n)}}(f),ua(f),f}function g(t,n,r){for(let i=1,o=t.length;i<o;++i){const o=t[i];for(const t of o){let e=0,r=0;for(const{source:n,value:i}of t.targetLinks){let o=i*(t.layer-n.layer);e+=C(n,t)*o,r+=o}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,x(t)}void 0===e&&o.sort(ia),v(o,r)}}function m(t,n,r){for(let i=t.length-2;i>=0;--i){const o=t[i];for(const t of o){let e=0,r=0;for(const{target:n,value:i}of t.sourceLinks){let o=i*(n.layer-t.layer);e+=E(t,n)*o,r+=o}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,x(t)}void 0===e&&o.sort(ia),v(o,r)}}function v(e,n){const r=e.length>>1,o=e[r];y(e,o.y0-t,r-1,n),_(e,o.y1+t,r+1,n),y(e,a,e.length-1,n),_(e,i,0,n)}function _(e,n,r,i){for(;r<e.length;++r){const o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function y(e,n,r,i){for(;r>=0;--r){const o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function x({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(ra);for(const{target:{targetLinks:e}}of t)e.sort(na)}}function b(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(ra),n.sort(na)}function C(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:i,width:o}of e.sourceLinks){if(i===n)break;r+=o+t}for(const{source:t,width:i}of n.targetLinks){if(t===e)break;r-=i}return r}function E(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:i,width:o}of n.targetLinks){if(i===e)break;r+=o+t}for(const{target:t,width:i}of e.sourceLinks){if(t===n)break;r-=i}return r}return f.update=function(t){return ua(t),t},f.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:ea(t),f):c},f.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:ea(t),f):u},f.nodeSort=function(t){return arguments.length?(e=t,f):e},f.nodeWidth=function(t){return arguments.length?(s=+t,f):s},f.nodePadding=function(e){return arguments.length?(l=t=+e,f):l},f.nodes=function(t){return arguments.length?(d="function"==typeof t?t:ea(t),f):d},f.links=function(t){return arguments.length?(h="function"==typeof t?t:ea(t),f):h},f.linkSort=function(t){return arguments.length?(n=t,f):n},f.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],f):[o-r,a-i]},f.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],i=+t[0][1],a=+t[1][1],f):[[r,i],[o,a]]},f.iterations=function(t){return arguments.length?(p=+t,f):p},f}().nodeWidth(124).extent([[i,a],[l-1,c-6]]).nodeAlign(this._isRtl?Qo:ta),{height:c,width:l}},n.prototype._normalizeSankeyData=function(t){var e;e=this._nodesInColumn=function(t,e){e(t);var n={};return t.nodes.forEach((function(t){var e=t.layer;n[e]?n[e].push(t):n[e]=[t]})),n}(t,this._sankey),Object.values(e).map((function(t){return Ko(t,(function(t){return t.value}))})).forEach((function(t,n){var r=0;e[n].forEach((function(e){var n=e.value/t*100;e.actualValue=e.value,n<1?(e.value=.01*t,r+=1):r+=n}));var i=0!==r?r/100:1;i>1&&e[n].forEach((function(t){t.value=t.value/i,function(t,e,n){t.sourceLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r})),t.targetLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r}))}(t,t.actualValue,t.value)}))}))},n.prototype._adjustPadding=function(t,e,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(t){var n=.3*e;n<e-Ko(t,(function(t){return t.y1-t.y0}))&&(r=Math.min(r,n/(t.length-1)))})),r},n.prototype._createLinks=function(){var t=this,e=[],n=this.props.data.SankeyChartData;if(n){var r=this._linkId;n.links.forEach((function(n,o){var a,s=[{x:(a=n).source.x1,y0:a.y0+a.width/2,y1:a.y0-a.width/2},{x:a.target.x0,y0:a.y1+a.width/2,y1:a.y1-a.width/2}],l=Qi().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve(ha),c="url(#gradient-".concat(r,"-").concat(o,")"),u=i.createElement("g",{key:"".concat(r,"-").concat(o)},i.createElement("defs",null,i.createElement("linearGradient",{id:"gradient-".concat(r,"-").concat(o),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.createElement("stop",{offset:"0",stopColor:n.source.color}),i.createElement("stop",{offset:"100%",stopColor:n.target.color}))),i.createElement("path",{d:l(s),id:f("link"),fill:t._fillStreamColors(n,c),stroke:t._fillStreamBorder(n,c),strokeWidth:"2",strokeOpacity:t._getOpacityStreamBorder(n),onMouseOver:t._onStreamHover.bind(t,n),onMouseOut:function(){t._onStreamLeave(n)},onFocus:t._onFocusLink.bind(t,n),onBlur:t._onBlur,fillOpacity:t._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from ".concat(n.source.name," to ").concat(n.target.name," with weight ").concat(n.unnormalizedValue),role:"img"}));e.push(u)}))}return e},n.prototype._createNodes=function(t){var e=this,n=[],r=this.props.data.SankeyChartData;if(r){var o=this.state;return r.nodes.forEach((function(r,a){var s=r.y1-r.y0>0?r.y1-r.y0:0,l=8,c=0;if(s<36){l+=6;var u=(0,pi.Ys)(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);u.text(r.actualValue),null!==u.node()&&(l+=c=u.node().getComputedTextLength()),u.text(null),(0,pi.td)(".tempText").remove()}var d=e._truncateText(r.name,116,l),h="..."===d.slice(-3),p=f("tooltip"),g=(0,pi.Ys)("body").append("div").attr("id",p).attr("class",t.toolTip).style("opacity",0),m=f("nodeBar"),v=i.createElement("g",{key:a,id:f("nodeGElement")},i.createElement("rect",{x:r.x0,y:r.y0,height:s,width:r.x1-r.x0,fill:e._fillNodeColors(r),id:m,onMouseOver:e._onHover.bind(e,r),onMouseOut:function(){e._onLeave(r)},onFocus:e._onCloseCallout.bind(e),stroke:e._fillNodeBorder(r),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node ".concat(r.name," with weight ").concat(r.actualValue),role:"img"}),r.y1-r.y0>24&&i.createElement("g",{className:t.nodeTextContainer},i.createElement("g",{className:"nodeName"},i.createElement("text",{id:"".concat(m,"-name"),x:r.x0,y:r.y0,dy:"1.2em",dx:"0.4em",textAnchor:e._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?va:ma,fontSize:10,onMouseOver:e._showTooltip.bind(e,r.name,h,g),onMouseOut:e._hideTooltip.bind(e,g)},d)),i.createElement("text",{x:s>36?r.x0:r.x1-c-8,y:r.y0,dy:s>36?"2em":"1em",dx:s>36?"0.4em":"0em",textAnchor:e._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?va:ma,fontSize:14},r.actualValue)));n.push(v)})),n}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(t){var e=new Array,n=new Set;for(t.sourceLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;)(r=e.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(t){n.add(t),e.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;){var r;(r=e.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(t){n.add(t),e.push(t)}))}return n}(t),r=function(t){var e=[];return t.forEach((function(t){e.push(t.target),-1===e.indexOf(t.source)&&e.push(t.source)})),e}(n);r.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(n).map((function(t){return t.index}))),selectedNode:t,refSelected:e,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:t.actualValue})}},n.prototype._onStreamHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(t){var e=new Array,n=new Set,r=new Set;for(e.push(t.source),n.add(t);e.length>0;){var i=e.shift();r.add(i),i.targetLinks&&i.targetLinks.length>0&&i.targetLinks.forEach((function(t){e.push(t.source),n.add(t)}))}for(e.push(t.target);e.length>0;)i=e.shift(),r.add(i),i.sourceLinks&&i.sourceLinks.length>0&&i.sourceLinks.forEach((function(t){e.push(t.target),n.add(t)}));return{selectedLinks:n,selectedNodes:r}}(t),r=n.selectedLinks,i=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(i).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:e,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.unnormalizedValue.toString(),descriptionMessage:"from "+t.source.name})}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,e){e.persist(),this._onCloseCallout(),this.setState({refSelected:e.currentTarget,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.source.actualValue,descriptionMessage:"from "+t.source.name})},n.prototype._assignNodeColors=function(){var t,e,n=this.props,r=n.colorsForNodes,i=n.borderColorsForNodes;r&&i?(t=r,e=i):(t=ga.map((function(t){return t.fillColor})),e=ga.map((function(t){return t.borderColor})));var o=0;this.props.data.SankeyChartData.nodes.forEach((function(n){n.color||n.borderColor?n.color&&!n.borderColor?n.borderColor="#757575":n.borderColor&&!n.color&&(n.color="#F5F5F5"):(n.color=t[o],n.borderColor=e[o]),o=(o+1)%t.length}))},n.prototype._fillStreamColors=function(t,e){var n=this.state;return n.selectedState&&n.selectedLinks.has(t.index)&&n.selectedNode?n.selectedNode.color:n.selectedState&&n.selectedLinks.has(t.index)?e:void 0},n.prototype._fillStreamBorder=function(t,e){var n=this.state;return n.selectedState?n.selectedState&&n.selectedLinks.has(t.index)&&n.selectedNode?n.selectedNode.borderColor:n.selectedState&&n.selectedLinks.has(t.index)?e:fa:fa},n.prototype._getOpacityStream=function(t){var e=this.state;if(e.selectedState){if(!e.selectedLinks.has(t.index))return 1;if(e.selectedLinks.has(t.index)&&!e.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var e=this.state;return!e.selectedState||e.selectedLinks.has(t.index)||e.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e=t.props.parentRef?t.props.parentRef:t.chartContainer,i=e&&e.getBoundingClientRect().width,o=e&&e.getBoundingClientRect().height;(n!==i||r!==o)&&t.setState({containerWidth:i,containerHeight:o})}))},n.prototype._truncateText=function(t,e,n){var r=e-n,i=0,o=(0,pi.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(t),null!==o.node()&&o.node().getComputedTextLength()<=r)return t;o.text(null),o.text("..."),null!==o.node()&&(i=o.node().getComputedTextLength()),o.text(null);for(var a="",s=0;s<t.length;s++)if(a+=t[s],o.text(a),null!==o.node()&&o.node().getComputedTextLength()>=r-i){a=a.slice(0,-1),a+="...";break}return o.text(null),(0,pi.td)(".tempText").remove(),a},n.prototype._showTooltip=function(t,e,n,r){e&&(n.style("opacity",.9),n.html(t).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,e=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(e&&e.nodes.length>0&&e.links.length>0)},n}(i.Component),ya=(0,t.z)(_a,(function(t){var n,r,i,o=t.className,a=t.theme,s=t.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Yt.$v]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(r={},r[Yt.$v]={fill:"#000000"},r)},toolTip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(i={},i[Yt.$v]={fill:"rgb(179, 179, 179)"},i)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function xa(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ba(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Ea)):void 0===e&&(e=Ca);for(var n,r,i,o,a,s=new La(t),l=[s];n=l.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new La(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Aa)}function Ca(t){return t.children}function Ea(t){return Array.isArray(t)?t[1]:null}function Sa(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Aa(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function La(t){this.data=t,this.depth=this.height=0,this.parent=null}function ka(t,e){return t.parent===e.parent?1:2}function Ta(t){var e=t.children;return e?e[0]:t.t}function wa(t){var e=t.children;return e?e[e.length-1]:t.t}function Da(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Ma(t,e,n){return t.a.parent===e.parent?t.a:n}function Pa(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}La.prototype=ba.prototype={constructor:La,count:function(){return this.eachAfter(xa)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return ba(this).eachBefore(Sa)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}},Pa.prototype=Object.create(La.prototype);var Fa,Ia,Na=(0,o.y)(),Va=function(t){function n(e,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=t.call(this,e,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return(0,e.ZT)(n,t),n.prototype.createTree=function(t,e){var n,r,i,o,a,s,l=(t=t<65?65:t>90?90:t)||75,c=ba(this.treeData,(function(t){return t.children})),u=(null==c?void 0:c.height)+1;(function(){var t=ka,e=1,n=1,r=null;function i(i){var l=function(t){for(var e,n,r,i,o,a=new Pa(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new Pa(r[i],i)),n.parent=e;return(a.parent=new Pa(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var c=i,u=i,d=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>d.depth&&(d=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,f=e/(u.x+h+p),g=n/(d.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,l=o.parent.children[0],c=o.m,u=a.m,d=s.m,h=l.m;s=wa(s),o=Ta(o),s&&o;)l=Ta(l),(a=wa(a)).a=e,(i=s.z+d-o.z-c+t(s._,o._))>0&&(Da(Ma(s,e,r),e,i),c+=i,u+=i),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!wa(a)&&(a.t=s,a.m+=d-u),o&&!Ta(l)&&(l.t=o,l.m+=c-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i})().nodeSize([l,l/1.5]).separation((function(t,e){return t.parent===c&&e.parent===c?3.5:1}))(c).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=e/2}));var d=[],h=0,p=function(t){var e,n;t.id=h,d.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(e=t.data)||void 0===e?void 0:e.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(n=t.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(t){p(t)})):c.eachBefore((function(t){p(t)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){var C=(f-m)/2,E=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var S=null===(n=d[x.parentID])||void 0===n?void 0:n.children,A=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,L=(null===(i=d[x.parentID])||void 0===i?void 0:i.x)+C/2+10,k=null===(o=d[x.parentID])||void 0===o?void 0:o.x,T=null===(a=S[0])||void 0===a?void 0:a.y,w=0;w<S.length;++w){var D=S[w];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?1===S.length?k:A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m):S.length>2?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m)}}if((x.children||u<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){S=null===(s=d[x.id])||void 0===s?void 0:s.children;var M=(0,Do.Z)(S,(function(t){return t.x})),P=(0,ji.Z)(S,(function(t){return t.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},n}(function(){function t(t,e,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=e,this._nodeElements=n,this._linkElements=r}return t.prototype.truncateText=function(t,e,n,r){var i,o=t.split(/\s+/).reverse(),a="",s=(0,pi.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>e-n){l.pop(),l.push("...");break}return i=l.join(" ")+" ",s.text(null),(0,pi.td)(".tempText").remove(),i},t.prototype.addNodeShapetoSVG=function(t,e,n,r,o,a,s,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(t,"\nsubText ").concat(e," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(i.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:s,key:"".concat(u).concat(this.styleClassNames.rectNode)})),e&&(e=this.truncateText(e,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),t=this.truncateText(t,l,l/4,this.styleClassNames.rectText);var f=r?i.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?i.createElement(i.Fragment,null,i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e),i.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e);e||r||n?this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t,f)):this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t))},t.prototype.createPathLink=function(t,e,n,r,i,o,a,s,l){var c="M".concat(n-o/2,",").concat(r-s," H").concat(l+o/2," M").concat(t,",").concat(r-s,"\n V").concat(e+a+s/2),u="M".concat(t,",").concat(e+a+s/2," V").concat(e+5*s,"\n H").concat(t-o/2," H").concat(t+o/2);return i?u:c},t.prototype.addLinktoSVG=function(t,e,n,r,o,a,s,l,c,u){void 0===u&&(u=0),this._linkElements.push(i.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(e,n,r,o,a,s,l,c,u),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),Oa=function(t){function n(e){var n,r,i,o,a,s=this;return(s=t.call(this,e)||this)._nodeElements=[],s._linkElements=[],s._margin={top:(null===(n=s.props.margins)||void 0===n?void 0:n.top)||30,bottom:(null===(r=s.props.margins)||void 0===r?void 0:r.bottom)||30,left:(null===(i=s.props.margins)||void 0===i?void 0:i.left)||50,right:(null===(o=s.props.margins)||void 0===o?void 0:o.right)||20},s._width=s.props.width||1500,s._height=s.props.height||700,s._treeData=s.props.treeData,s._composition=null===(a=s.props)||void 0===a?void 0:a.composition,s._treeTraversal=s.props.treeTraversal,s.state={_width:s._width,_height:s._height},s}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Na(r,{theme:e,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var e=(0,pi.td)("text"),n=(0,pi.td)("rect"),r=(0,pi.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(e.remove(),n.remove(),r.remove()),this.createTreeChart()}},n.prototype.createTreeChart=function(){var t=[],e=[],n=new Va(this._treeData,this._composition,this._classNames,t,e,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=t,this._linkElements=e},n.prototype.render=function(){var t;return i.createElement(dn,null,i.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},i.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},i.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),i.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(i.Component),Ba=(0,t.z)(Oa,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,e.pi)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,e.pi)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,e.pi)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,e.pi)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Fa||(Fa={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Ia||(Ia={}));var Ha,Ra=(0,o.y)(),za=function(t){function n(e){var n=t.call(this,e)||this;return n.margin={top:2,right:0,bottom:0,left:0},n._isRTL=(0,a.zg)(),n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n._emptyChartId=f("_SparklineChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var e=Qi().x((function(e){return t.x(e.x)})).y0(this.state._height).y1((function(e){return t.y(e.y)})).curve(mi);this.area=e;var n=yi().x((function(e){return t.x(e.x)})).y((function(e){return t.y(e.y)})).curve(mi);this.line=n;var r=this.props.data.lineChartData[0].data,i=function(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}(r,(function(t){return t.x})),o=i[0],a=i[1];this.x=(0,Mo.Z)().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,Mo.Z)().domain([0,(0,ji.Z)(r,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},n.prototype.drawSparkline=function(){return i.createElement(i.Fragment,null,i.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),i.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},n.prototype.render=function(){var t=Ra(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(dn,{direction:Re.horizontal,isCircularNavigation:!0,className:t.inlineBlock},i.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?i.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):i.createElement(i.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?i.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},i.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):i.createElement(i.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(i.Component),Wa=(0,t.z)(za,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,e.pi)((0,e.pi)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),Ya=(0,o.y)(),Za=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getMargins=function(t){r.margins=t},r._renderContentForOnlyBars=function(t){var e,n,o,a=r.props.useSingleColor,s=void 0!==a&&a,l=0;return r.props.data.forEach((function(e,n){e.y===t.y&&(l=n)})),o=s?r.props.colors?r._createColors()(1):li(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):t.color?t.color:r.props.colors?r._createColors()(t.x):li(l,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),i.createElement(i.Fragment,null,i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:r.props.culture}))},r._renderCallout=function(t){return t?r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,e,n,i,o,a){return r._bars=r._yAxisType===ze.OH.NumericAxis?r._createNumericBars(n,i,o,a):r._createStringBars(n,i,o,a)},r._refCallback=function(t,e){r._refArray.push({index:e,refElement:t})},r._getCalloutContentForBar=function(t){var e,n,i,o=[],a=r.props.useSingleColor,s=void 0!==a&&a,l=r.props.data,c=l.filter((function(e){return e.y===t.y})),u=0;return l.forEach((function(e,n){e.y===t.y&&(u=n)})),i=s?r.props.colors?r._createColors()(1):li(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):c[0].color?c[0].color:r.props.colors?r._createColors()(c[0].x):li(u,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),o.push({legend:c[0].legend,y:c[0].x,color:i,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,e,n){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===t.legend){var i=r._getCalloutContentForBar(t),o=i.YValueHover,a=i.hoverXValue;r._refArray.forEach((function(i,s){e===s&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:r.props.useSingleColor?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))}},r._getScales=function(t,e,n){if(n){var i=(0,ji.Z)(r._points,(function(t){return t.x})),o=(0,ji.Z)(r._points,(function(t){return t.y}));return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[i,0]:[0,i]).nice().range([r.margins.left,e-r.margins.right]),yBarScale:a=(0,Mo.Z)().domain([0,o]).range([t-r.margins.bottom,r.margins.top])}}i=(0,ji.Z)(r._points,(function(t){return t.x}));var a=(0,Fo.Z)().domain(r._yAxisLabels).range([t-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[i,0]:[0,i]).nice().range([r.margins.left,e-r.margins.right]),yBarScale:a}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=r.props.useSingleColor,a=[];return t.forEach((function(t,e){var n,i=o?r.props.colors?r._createColors()(1):li(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):t.color,s={title:t.legend,color:i,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(t){r._onLegendLeave(t)}};a.push(s)})),i.createElement(vr,(0,e.pi)({legends:a,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._xMax=Math.max(e[e.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.x,r=t.yAxisCalloutData||t.y;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},r._calloutId=f("callout"),r._tooltipId=f("HBCWATooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].x,!0):ze.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].y,!1):ze.OH.StringAxis,r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,e.ev)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max((0,ji.Z)(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Ya(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var o=(0,e.pi)((0,e.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,ze.ey)(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Ti,(0,e.pi)({},this.props,{points:this._points,chartType:ze.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:a,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Re.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(e*i*this._xMax);return(0,Mo.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForBar(t),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?e:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,r,o){var a=this,s=this.props.useSingleColor,l=void 0!==s&&s,c=this._getScales(t,n,!0),u=c.xBarScale,d=c.yBarScale,h=(0,e.ev)([],this._points,!0);h.sort((function(t,e){var n="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof e.y?e.y:parseFloat(e.y))-n}));var p=h.map((function(t,e){var r,o,s,c=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(c=a.state.selectedLegendTitle===t.legend),a._classNames=Ya(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:c}),Math.max(d(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(s=l?a.props.colors?a._createColors()(1):li(1,0,null===(r=a.props.theme)||void 0===r?void 0:r.isInverted):a.props.colors?a._createColors()(t.x):li(e,0,null===(o=a.props.theme)||void 0===o?void 0:o.isInverted),i.createElement("rect",{key:t.y,x:a._isRtl?u(t.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:d(t.y)-a._barHeight/2,"data-is-focusable":!0,width:a._isRtl?n-a.margins.right-Math.max(u(t.x),0):Math.max(u(t.x),0)-a.margins.left,height:a._barHeight,ref:function(e){a._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:a._onBarHover.bind(a,t,s),"aria-label":a._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,t,e,s),onBlur:a._onBarLeave,fill:t.color&&!l?t.color:s}))}));return p},n.prototype._tooltipOfYAxislabels=function(t){var e=this,n=t.tooltipCls,r=t.yAxis,i=t.id;if(null===r)return null;for(var o=(0,pi.Ys)("body").append("div").attr("id",i).attr("class",n).style("opacity",0),a=r.selectAll("#BaseSpan")._groups[0],s=a&&Object.keys(a).length,l=[],c=0;c<s;c++){var u=a[c].dataset&&Object.values(a[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(t){var n=d[t];(0,pi.Ys)(n).on("mouseover",(function(n){e.state.tooltipElement||(o.style("opacity",.9),o.html(l[t]).style("left",pi.B.pageX+"px").style("top",pi.B.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},n.prototype._createStringBars=function(t,e,n,r){var o=this,a=this._getScales(t,e,!1),s=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(t,n){var r,a,c;return Math.max(l(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(c=u?o.props.colors?o._createColors()(1):li(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):li(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),i.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?s(t.x):o.margins.left,y:l(t.y),width:o._isRtl?e-o.margins.right-Math.max(s(t.x),0):Math.max(s(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,n,c),fill:t.color&&!u?t.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=(0,pi.Ys)(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},n.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},n.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},n}(i.Component),qa=(0,t.z)(Za,(function(t){var n=t.shouldHighlight,r=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,e.pi)((0,e.pi)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(Ha||(Ha={}));var Xa=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],Ua=(0,o.y)(),ja=function(t){function n(n){var r=t.call(this,n)||this;return r._getMargins=function(){var t=r.props,e=t.hideMinMax;return{left:16+(e?0:40),right:16+(e?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var t=Xa.length-1;t>=0;t-=1)if(r._outerRadius>=Xa[t].minRadius)return{arcWidth:Xa[t].arcWidth,chartValueSize:Xa[t].fontSize};return{arcWidth:Xa[0].arcWidth,chartValueSize:Xa[0].fontSize}},r._initProps=function(){var t=r.props,e=t.minValue,n=void 0===e?0:e,i=t.maxValue,o=t.theme,a=Array.from(r.props.segments),s=n;a.forEach((function(t,e){s+=t.size,t.color=void 0!==t.color?ci(t.color,o.isInverted):li(e,0,o.isInverted)})),void 0!==i&&s<i&&(a.push({legend:"Unknown",size:i-s,color:o.palette.neutralLight}),s=i);var l=jr().padAngle(2/r._outerRadius).padRadius(r._outerRadius),c=r._isRTL?Array.from(a).reverse():a,u=-Math.PI/2,d=c.map((function(t,e){var i=u+t.size/(s-n)*Math.PI,o=l({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:u,endAngle:i});return u=i,{d:o,segmentIndex:r._isRTL?a.length-1-e:e}}));return{minValue:n,maxValue:s,segments:a,arcs:d}},r._renderNeedle=function(){var t=r._sweepFraction[0]/r._sweepFraction[1]*180,e=r._isRTL?180-t:t,n=r._outerRadius-r._innerRadius+4;return i.createElement("g",{transform:"rotate(".concat(e,", 0, 0)")},i.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-n,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-n,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:r._classNames.needle,transform:"translate(".concat(2-r._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return r._handleFocus(t,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(t){return r._handleMouseOver(t,"Needle")},onMouseMove:function(t){return r._handleMouseOver(t,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var t=r._segments.map((function(t){return{title:t.legend,color:t.color,action:function(){r.state.selectedLegend===t.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:t.legend})},hoverAction:function(){r.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return i.createElement("div",{className:r._classNames.legendsContainer},i.createElement(vr,(0,e.pi)({legends:t,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.hoveredLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(t,e){r._showCallout(t.target,e,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(t,e){r._showCallout(t.target,e,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(t,n,i){if(r._calloutAnchor!==n){r._calloutAnchor=n;var o="Current value is "+(r.props.chartValueFormat===Ha.Fraction?"".concat((r._sweepFraction[0]/r._sweepFraction[1]*100).toFixed(),"%"):"".concat(r._sweepFraction[0],"/").concat(r._sweepFraction[1])),a=r._minValue,s=r._segments.map((function(t,e){var n={legend:t.legend,y:"".concat(a+(e>0?1:0)," - ").concat(a+t.size),color:t.color};return a+=t.size,n}));r.setState((0,e.pi)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||""===r.state.selectedLegend||r.state.selectedLegend===n,hoverXValue:o,hoverYValues:s},i?{focusedElement:n}:{}))}},r._hideCallout=function(t){r._calloutAnchor="",r.setState((0,e.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},r._wrapContent=function(t,e,n){var r=(0,pi.Ys)("#".concat(e));if(r.text(t),!r.node())return!1;for(var i=!1,o=r.node().getComputedTextLength();o>n&&t.length>0;)t=t.slice(0,-1),r.text(t+"..."),i=!0,o=r.node().getComputedTextLength();return i},r._multiValueCallout=function(t){var n=r._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:r._classNames.calloutContentRoot},i.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},i.createElement("div",(0,e.pi)({className:r._classNames.calloutContentX},(0,ze.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,ze.Ts)(t.hoverXValue,r.props.culture))),i.createElement("div",{className:r._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,o,a){var s=o+1===a.length,l=t.shouldDrawBorderBottom,c=void 0!==l&&l;return i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(o),style:n?(0,e.pi)({display:"inline-block"},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,e.pi)({},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(t,o,n,s))})),!!t.descriptionMessage&&i.createElement("div",{className:r._classNames.descriptionMessage},t.descriptionMessage)))},r._margins=r._getMargins(),r._legendsHeight=r.props.hideLegend?0:24,r.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+r._margins.left+r._margins.right,height:70+r._margins.top+r._margins.bottom+r._legendsHeight},r._isRTL=(0,a.zg)(),r._calloutAnchor="",r}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,r=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,r-(this._margins.top+this._margins.bottom+this._legendsHeight));var o=this._getStylesBasedOnBreakpoint(),a=o.arcWidth,s=o.chartValueSize;this._innerRadius=this._outerRadius-a;var l=this._initProps(),c=l.minValue,u=l.maxValue,d=l.segments,h=l.arcs;return this._minValue=c,this._segments=d,this._sweepFraction=[this.props.chartValue-this._minValue,u-this._minValue],this._classNames=Ua(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:r-this._legendsHeight,chartValueSize:s}),i.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e}},i.createElement(dn,{direction:Re.horizontal},i.createElement("svg",{className:this._classNames.chart,"aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},i.createElement("g",{transform:"translate(".concat(n/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&i.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&i.createElement(i.Fragment,null,i.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},(0,ze.cE)(this._minValue)),i.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(u)},(0,ze.cE)(u))),h.map((function(n,r){return i.createElement("path",(0,e.pi)({key:r,d:n.d,fill:t._segments[n.segmentIndex].color,fillOpacity:t._legendHighlighted(t._segments[n.segmentIndex].legend)||t._noLegendHighlighted()?1:.1,strokeWidth:t.state.focusedElement===t._segments[n.segmentIndex].legend?2:0,className:t._classNames.segment},(0,ze.ey)((0,e.pi)({ariaLabel:"".concat(t._segments[n.segmentIndex].legend,", ").concat(t._segments[n.segmentIndex].size," out of ").concat(u-t._minValue," or ").concat((t._segments[n.segmentIndex].size/(u-t._minValue)*100).toFixed(),"%")},t._segments[n.segmentIndex].accessibilityData),"img",!0),{onFocus:function(e){return t._handleFocus(e,t._segments[n.segmentIndex].legend)},onBlur:t._handleBlur,onMouseEnter:function(e){return t._handleMouseOver(e,t._segments[n.segmentIndex].legend)},onMouseMove:function(e){return t._handleMouseOver(e,t._segments[n.segmentIndex].legend)}}))})),this._renderNeedle(),i.createElement("g",{onMouseEnter:function(e){return t._handleMouseOver(e,"Chart value")},onMouseMove:function(e){return t._handleMouseOver(e,"Chart value")}},i.createElement(Ei,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===Ha.Fraction?"".concat(this._sweepFraction[0],"/").concat(this._sweepFraction[1]):"".concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%"),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,role:"img","aria-label":"Current value: ".concat(this._sweepFraction[0]," out of ").concat(this._sweepFraction[1],", or ").concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%")},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&i.createElement(Ei,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel,role:"img","aria-label":this.props.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&i.createElement(He,(0,e.pi)({target:this.state.calloutTarget,directionalHint:_.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,e,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=Ua(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,ze.Ts)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var u=t.yAxisCalloutData;return i.createElement("div",{style:o},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(u).map((function(t){return i.createElement("div",{key:t,className:s.calloutBlockContainer},i.createElement("div",{className:s.calloutlegendText}," ",(0,ze.Ts)(t,l)),i.createElement("div",{className:s.calloutContentY},(0,ze.Ts)(u[t],l)))})))}return i.createElement("div",{style:n?o:{}},n&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),i.createElement("div",{id:"".concat(e,"_").concat(t.y),className:s.calloutBlockContainer},a&&i.createElement(fr,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:ze.wo[t.index%Object.keys(ze.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:s.calloutlegendText}," ",t.legend),i.createElement("div",{className:s.calloutContentY},(0,ze.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,l)))))},n}(i.Component),Ga=(0,t.z)(ja,(function(t){var n,r,i,o,a=t.theme,s=t.chartValueSize,l=t.chartWidth,c=t.chartHeight,u=t.className,d=t.lineColor,h=t.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.semanticColors.bodyBackground},chartTitle:{fontSize:Yt.TS.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.semanticColors.focusBorder},legendsContainer:{width:l},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,e.pi)((0,e.pi)({},a.fonts.small),{lineHeight:"16px",opacity:"0.8",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(n={},n[Yt.qJ]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,e.pi)((0,e.pi)({},a.fonts.small),{lineHeight:"16px",selectors:(r={},r[Yt.$v]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,e.pi)((0,e.pi)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(i={},i[Yt.$v]={color:"rgb(255, 255, 255)"},i)})],descriptionMessage:[a.fonts.small,{selectors:(o={},o[Yt.$v]={color:"rgb(255, 255, 255)"},o),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,n(6077).x)("@fluentui/react-charting","5.19.22")}(),FluentUIReactCharting=r}();
|