@fluentui/react-charting 5.16.58 → 5.16.59
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 +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +8 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +26 -7
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +8 -3
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +8 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +25 -7
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +8 -3
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +8 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +25 -6
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +8 -3
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CommonComponents/CartesianChart.types.ts +1 -1
package/dist/react-charting.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var FluentUIReactCharting;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{AreaChart:function(){return jf},CartesianChart:function(){return nf},ChartHoverCard:function(){return Fd},DataVizPalette:function(){return vf},DonutChart:function(){return jp},GaugeChart:function(){return bm},GaugeValueFormat:function(){return um},GroupedVerticalBarChart:function(){return xg},HeatMapChart:function(){return Eg},HorizontalBarChart:function(){return vh},HorizontalBarChartVariant:function(){return _e},HorizontalBarChartWithAxis:function(){return mm},Legends:function(){return sp},LineChart:function(){return Tf},MultiStackedBarChart:function(){return cg},MultiStackedBarChartVariant:function(){return Qf},NodesComposition:function(){return om},PieChart:function(){return ng},SankeyChart:function(){return Ug},Shape:function(){return op},Sparkline:function(){return pm},StackedBarChart:function(){return ag},Textbox:function(){return mf},TreeChart:function(){return cm},TreeTraverse:function(){return am},VerticalBarChart:function(){return pg},VerticalStackedBarChart:function(){return mg},getChartHoverCardStyles:function(){return Nd},getColorFromToken:function(){return Sf},getNextColor:function(){return Ef}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},o=0,a=e;o<a.length;o++){var s=a[o];if(s)for(var c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var u=s.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[c],p=s[c];n[c]=void 0===h?p:i(i([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}function c(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var u=void 0;try{u=window}catch(e){}function d(e){if(c()&&void 0!==u){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:u}}var h="__globalSettings__",p="__callbacks__",f=0,g=function(){function e(){}return e.getValue=function(e,t){var n=m();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=m(),r=n[p],o=n[e];if(t!==o){n[e]=t;var a={oldValue:o,value:t,key:e};for(var i in r)r.hasOwnProperty(i)&&r[i](a)}return t},e.addChangeListener=function(e){var t=e.__id__,n=v();t||(t=e.__id__=String(f++)),n[t]=e},e.removeChangeListener=function(e){delete v()[e.__id__]},e}();function m(){var e,t=d()||{};return t[h]||(t[h]=((e={})[p]={},e)),t[h]}function v(){return m()[p]}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function e(){}return e.reset=function(){y.settings={},y.scopedSettings={}},e.applySettings=function(t){y.settings=o(o({},y.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){y.scopedSettings[t]=o(o({},y.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=_);for(var r={},o=t&&n.scopedSettings[t]||{},a=t&&y.scopedSettings[t]||{},i=0,s=e;i<s.length;i++){var l=s[i];r[l]=o[l]||n.settings[l]||a[l]||y.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){x.push(e)},e.unobserve=function(e){x=x.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||x.forEach((function(e){return e()}))},e}(),C=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var E=["theme","styles"];function S(e,t,n,r,i){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?E:u,h=s.forwardRef((function(r,i){var u,h,p,f,g,m,v=s.useRef(),_=(u=d,h=c,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(C).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||b.observe(f),function(){m||b.unobserve(f)}}),[m]),b.getSettings(u,h,g)),y=_.styles,x=(_.dir,a(_,["styles","dir"])),E=n?n(r):void 0,S=v.current&&v.current.__cachedInputs__||[],L=r.styles;if(!v.current||y!==S[1]||L!==S[2]){var k=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var i=a[o];i&&r.push("function"==typeof i?i(e):i)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,y,L)};k.__cachedInputs__=[t,y,L],k.__noStyleOverride__=!y&&!L,v.current=k}return s.createElement(e,o({ref:i},x,E,r,{styles:v.current}))}));h.displayName="Styled".concat(e.displayName||e.name);var p=i?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,k="__stylesheet__",A="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),w={};try{w=window||{}}catch(V){}var D=function(){function e(e,t){var n,r,a,i,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=o({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(a=this._config.classNameCache)&&void 0!==a?a:null==t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(L=w[k])||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var t=(null==w?void 0:w.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);L=n,w[k]=n}return L},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=o(o({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),A||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=D.getInstance();return function e(t){for(var a=0,i=t;a<i.length;a++){var s=i[a];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=o.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&r.push(s)}}(e),{classes:n,objects:r}}var M,P={},N={"user-select":1};function F(e,t){var n=function(){var e;if(!M){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();M=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.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 M}(),r=e[t];if(N[r]){var o=e[t+1];N[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var V,I=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function O(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=I.indexOf(n)>-1,a=n.indexOf("--")>-1,i=o||a?"":"px";e[t+1]="".concat(r).concat(i)}}var H="left",B="right",R="@noflip",W=((V={})[H]=B,V[B]=H,V),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Y(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(R)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(H)>=0)t[n]=r.replace(H,B);else if(r.indexOf(B)>=0)t[n]=r.replace(B,H);else if(String(o).indexOf(H)>=0)t[n+1]=o.replace(H,B);else if(String(o).indexOf(B)>=0)t[n+1]=o.replace(B,H);else if(W[r])t[n]=W[r];else if(z[o])t[n+1]=z[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}var U,q="displayName",X=/\:global\((.+?)\)/g;function j(e,t){return e.indexOf(":global(")>=0?e.replace(X,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function G(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?K([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!X.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return K([r],t,j(n,e))})):K([r],t,j(n,e))}function K(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=D.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,i=e;a<i.length;a++){var s=i[a];if("string"==typeof s){var l=r.argsFromClassName(s);l&&K(l,t,n)}else if(Array.isArray(s))K(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&G(n,t,h,d[h])}else"object"==typeof u?null!==u&&G(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?Z(o,c,u):o[c]=u)}}return t}function Z(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function $(e,t){return t<=0?"":1===t?e:e+$(e,t-1)}function Q(e,t){if(!t)return"";var n,r,o,a=[];for(var i in t)t.hasOwnProperty(i)&&i!==q&&void 0!==t[i]&&a.push(i,t[i]);for(var s=0;s<a.length;s+=2)o=void 0,"-"!==(o=(n=a)[r=s]).charAt(0)&&(n[r]=P[o]=P[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),O(a,s),Y(e,a,s),F(a,s);for(s=1;s<a.length;s+=4)a.splice(s,1,":",a[s],";");return a.join("")}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=K(t),o=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var i=a[o];n.push(i);var s=t[i];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}(e,r);if(o){var a=D.getInstance(),i={className:a.classNameFromKey(o),key:o,args:t};if(!i.className){i.className=a.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,Q(e,r[u]))}i.rulesToInsert=s}return i}}function ee(e,t){void 0===t&&(t=1);var n=D.getInstance(),r=e.className,o=e.key,a=e.args,i=e.rulesToInsert;if(i){for(var s=0;s<i.length;s+=2){var l=i[s+1];if(l){var c=i[s];c=c.replace(/&/g,$(".".concat(e.className),t));var u="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,a,i)}}function te(e){if(c()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function ne(e){var t=null;try{var n=d();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function re(e){U!==e&&(U=e)}function oe(){return void 0===U&&(U="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),U}function ae(){return{rtl:oe()}}U=oe();var ie,se="isRTL";function le(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===ie){var t=ne(se);null!==t&&function(e,t){void 0===t&&(t=!1);var n=te();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}(se,e?"1":"0"),re(ie=e)}(ie="1"===t);var n=te();void 0===ie&&n&&re(ie="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!ie}var ce=0,ue=D.getInstance();ue&&ue.onReset&&ue.onReset((function(){return ce++}));var de="__retval__";function he(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=ce;return function(a,i){var s;if(void 0===i&&(i={}),e.useStaticStyles&&"function"==typeof a&&a.__noStyleOverride__)return a(i);r++;var c=t,u=i.theme,h=u&&void 0!==u.rtl?u.rtl:le(),p=e.disableCaching;if(o!==ce&&(o=ce,t=new Map,n=0),e.disableCaching||(c=fe(t,a),c=fe(c,i)),!p&&c[de]||(c[de]=void 0===a?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,e),o=[];for(var a in r)if(r.hasOwnProperty(a)){if("subComponentStyles"===a){n.subComponentStyles=r.subComponentStyles||{};continue}var i=T(r[a]),s=i.classes,c=i.objects;(null==c?void 0:c.length)?(h=J(t||{},{displayName:a},c))&&(o.push(h),n[a]=s.concat([h.className]).join(" ")):n[a]=s.join(" ")}for(var u=0,d=o;u<d.length;u++){var h;(h=d[u])&&ee(h,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof a?a(i):a],{rtl:!!h,specificityMultiplier:e.useStaticStyles?5:void 0}),p||n++),n>(e.cacheSize||50)){var f=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return c[de]}}function pe(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function fe(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=pe(e,r[n]);else e=pe(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=pe(e,t[o]));return e}var ge="__currentId__",me="id__",ve=d()||{};void 0===ve[ge]&&(ve[ge]=0);var _e,ye=!1;function xe(e){if(!ye){var t=D.getInstance();t&&t.onReset&&t.onReset(be),ye=!0}var n=ve[ge]++;return(void 0===e?me:e)+n}function be(e){void 0===e&&(e=0),ve[ge]=e}function Ce(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function Ee(e,t){var n=Ce(e,t);if(!(n<0))return e[n]}!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(_e||(_e={}));var Se={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 Le(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function ke(e,t){return e&&e!==document.body?t(e)?e:ke(Le(e),t):null}function Ae(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=Le(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}var we="data-is-focusable",De="data-is-visible",Te="data-focuszone-id",Me="data-is-sub-focuszone";function Pe(e,t){var n=Fe(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(We(n),!0)}function Ne(e,t,n,r,o,a,i,s){if(!t||!i&&t===e)return null;var l=Ve(t);if(o&&l&&(a||!He(t)&&!Be(t))){var c=Ne(e,t.lastElementChild,!0,!0,!0,a,i,s);if(c){if(s&&Oe(c,!0)||!s)return c;var u=Ne(e,c.previousElementSibling,!0,!0,!0,a,i,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var h=Ne(e,d.previousElementSibling,!0,!0,!0,a,i,s);if(h)return h;d=d.parentElement}}}return n&&l&&Oe(t,s)?t:Ne(e,t.previousElementSibling,!0,!0,!0,a,i,s)||(r?null:Ne(e,t.parentElement,!0,!1,!1,a,i,s))}function Fe(e,t,n,r,o,a,i,s,l){if(!t||t===e&&o&&!i)return null;var c=(l?Ie:Ve)(t);if(n&&c&&Oe(t,s))return t;if(!o&&c&&(a||!He(t)&&!Be(t))){var u=Fe(e,t.firstElementChild,!0,!0,!1,a,i,s,l);if(u)return u}return t===e?null:Fe(e,t.nextElementSibling,!0,!0,!1,a,i,s,l)||(r?null:Fe(e,t.parentElement,!1,!1,!0,a,i,s,l))}function Ve(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(De);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Ie(e){return!!e&&Ve(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Oe(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute(we):null,a=null!==r&&n>=0,i=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||a);return t?-1!==n&&i:i}function He(e){return!!(e&&e.getAttribute&&e.getAttribute(Te))}function Be(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(Me))}var Re=void 0;function We(e){if(e){if(Re)return void(Re=e);Re=e;var t=d(e);t&&t.requestAnimationFrame((function(){Re&&Re.focus(),Re=void 0}))}}function ze(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ye(e,t){for(var n=o({},t),r=0,a=Object.keys(e);r<a.length;r++){var i=a[r];void 0===n[i]&&(n[i]=e[i])}return n}var Ue,qe,Xe,je=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var a=o[r],i=0,s=Array.isArray(a)?a:Object.keys(a);i<s.length;i++)n[s[i]]=1;return n},Ge=je(["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"]),Ke=je(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ze=je(Ke,Ge),$e=(je(Ze,["form"]),je(Ze,["height","loop","muted","preload","src","width"])),Qe=(je($e,["poster"]),je(Ze,["start"]),je(Ze,["value"]),je(Ze,["download","href","hrefLang","media","rel","target","type"]),je(Ze,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Je=(je(Qe,["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"]),je(Qe,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),je(Qe,["form","multiple","required"]),je(Ze,["selected","value"]),je(Ze,["cellPadding","cellSpacing"]),je(Ze,["rowSpan","scope"]),je(Ze,["colSpan","headers","rowSpan","scope"]),je(Ze,["span"]),je(Ze,["span"]),je(Ze,["acceptCharset","action","encType","encType","method","noValidate","target"]),je(Ze,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),je(Ze,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Ze);function et(e,t,n){for(var r=Array.isArray(t),o={},a=0,i=Object.keys(e);a<i.length;a++){var s=i[a];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}function tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)n.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)n.push(a.toString());else for(var i in a)a[i]&&n.push(i)}return n.join(" ")}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rt.apply(this,[null,e].concat(t))}function rt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,a=n;o<a.length;o++){var i=a[o];if(i)for(var s in i)!i.hasOwnProperty(s)||e&&!e(s)||(t[s]=i[s])}return t}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=T(e instanceof Array?e:[e]),r=n.classes,o=n.objects;return o.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=J.apply(void 0,i([e],t,!1));return r?(ee(r,e.specificityMultiplier),r.className):""}(t||{},o)),r.join(" ")}(e,ae())}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Ue||(Ue={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(qe||(qe={})),ot({overflow:"hidden !important"});var at="data-is-scrollable";function it(e){for(var t=e,n=te(e);t&&t!==n.body;){if("true"===t.getAttribute(at))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(at)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=d(e)),t}var st,lt=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function ct(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ut=((st={})[Se.topLeftEdge]=ct(Ue.top,Ue.left),st[Se.topCenter]=ct(Ue.top),st[Se.topRightEdge]=ct(Ue.top,Ue.right),st[Se.topAutoEdge]=ct(Ue.top,void 0,!0),st[Se.bottomLeftEdge]=ct(Ue.bottom,Ue.left),st[Se.bottomCenter]=ct(Ue.bottom),st[Se.bottomRightEdge]=ct(Ue.bottom,Ue.right),st[Se.bottomAutoEdge]=ct(Ue.bottom,void 0,!0),st[Se.leftTopEdge]=ct(Ue.left,Ue.top),st[Se.leftCenter]=ct(Ue.left),st[Se.leftBottomEdge]=ct(Ue.left,Ue.bottom),st[Se.rightTopEdge]=ct(Ue.right,Ue.top),st[Se.rightCenter]=ct(Ue.right),st[Se.rightBottomEdge]=ct(Ue.right,Ue.bottom),st);function dt(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function ht(e,t){var n=[];return e.top<t.top&&n.push(Ue.top),e.bottom>t.bottom&&n.push(Ue.bottom),e.left<t.left&&n.push(Ue.left),e.right>t.right&&n.push(Ue.right),n}function pt(e,t){return e[Ue[t]]}function ft(e,t,n){return e[Ue[t]]=n,e}function gt(e,t){var n=kt(t);return(pt(e,n.positiveEdge)+pt(e,n.negativeEdge))/2}function mt(e,t){return e>0?t:-1*t}function vt(e,t){return mt(e,pt(t,e))}function _t(e,t,n){return mt(n,pt(e,n)-pt(t,n))}function yt(e,t,n,r){void 0===r&&(r=!0);var o=pt(e,t)-n,a=ft(e,t,n);return r&&(a=ft(e,-1*t,pt(e,-1*t)-o)),a}function xt(e,t,n,r){return void 0===r&&(r=0),yt(e,n,pt(t,n)+mt(n,r))}function bt(e,t,n){return vt(n,e)>vt(n,t)}function Ct(e,t){for(var n=0,r=0,o=ht(e,t);r<o.length;r++){var a=o[r];n+=Math.pow(_t(e,t,a),2)}return n}function Et(e,t,n,r){for(var o=0,a=e;o<a.length;o++){var i=a[o],s=void 0;r&&r===-1*i?(s=yt(t.elementRectangle,i,pt(n,i),!1),t.forcedInBounds=!0):bt(s=xt(t.elementRectangle,n,i),n,-1*i)||(s=yt(s,-1*i,pt(n,-1*i),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function St(e,t,n){var r=kt(t).positiveEdge;return yt(e,r,n-(gt(e,t)-pt(e,r)))}function Lt(e,t,n,r,o){void 0===r&&(r=0);var a=new lt(e.left,e.right,e.top,e.bottom),i=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return a=o?xt(a,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=mt(-1*n,r);return yt(e,-1*n,pt(t,n)+o)}(a,t,s,r),a=i?xt(a,t,i):St(a,l,gt(t,s))}function kt(e){return e===Ue.top||e===Ue.bottom?{positiveEdge:Ue.left,negativeEdge:Ue.right}:{positiveEdge:Ue.top,negativeEdge:Ue.bottom}}function At(e,t,n){return n&&Math.abs(_t(e,n,t))>Math.abs(_t(e,n,-1*t))?-1*t:t}function wt(e,t,n,r,o,a,i,s){var l,c={},u=Mt(t),d=a?n:-1*n,h=o||kt(n).positiveEdge;return i&&!function(e,t,n){return void 0!==n&&pt(e,t)===pt(n,t)}(e,(l=h,-1*l),r)||(h=At(e,h,r)),c[Ue[d]]=_t(e,u,d),c[Ue[h]]=_t(e,u,h),s&&(c[Ue[-1*d]]=_t(e,u,-1*d),c[Ue[-1*h]]=_t(e,u,-1*h)),c}function Dt(e,t,n){var r=gt(t,e),o=gt(n,e),a=kt(e),i=a.positiveEdge,s=a.negativeEdge;return r<=o?i:s}function Tt(e,t,n,r,o,a,i){var s=Lt(e,t,r,o,i);return dt(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,o,a,i){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};a||i||(c=function(e,t,n,r,o){void 0===o&&(o=0);var a=[Ue.left,Ue.right,Ue.bottom,Ue.top];le()&&(a[0]*=-1,a[1]*=-1);for(var i,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,h=0;h<4;h++){if(bt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=Ct(s,n);(!i||p<i)&&(i=p,u=l,d=c),a.splice(a.indexOf(l),1),a.length>0&&(a.indexOf(-1*l)>-1?l*=-1:(c=l,l=a.slice(-1)[0]),s=Lt(e,t,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=Lt(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=ht(c.elementRectangle,n),d=a?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var h=function(e,t,n,r){var o=e.alignmentEdge,a=e.targetEdge,i=-1*o;return{elementRectangle:Lt(e.elementRectangle,t,{targetEdge:a,alignmentEdge:i},n,r),targetEdge:a,alignmentEdge:i}}(c,t,o,i);if(dt(h.elementRectangle,n))return h;c=Et(ht(h.elementRectangle,n),c,n,d)}else c=Et(u,c,n,d);else c=Et(u,c,n,d);return c}(s,t,n,r,o,a,i)}function Mt(e){var t=e.getBoundingClientRect();return new lt(t.left,t.right,t.top,t.bottom)}function Pt(e,t,n,r){var a=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new lt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Mt(t);else{var o=t,a=o.left||o.x,i=o.top||o.y,s=o.right||a,l=o.bottom||i;n=new lt(a,s,i,l)}if(!dt(n,e))for(var c=0,u=ht(n,e);c<u.length;c++){var d=u[c];n[Ue[d]]=e[Ue[d]]}}else n=new lt(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Dt(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(function(e,t,n){if(void 0===e&&(e=Se.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=o({},ut[e]);return le()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?ut[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),i,n,e.coverTarget,e.alignTargetEdge),l=Tt(Mt(t),i,n,s,a,e.directionalHintFixed,e.coverTarget);return o(o({},l),{targetRectangle:i})}function Nt(e,t,n,r,a){var i=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(i)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var c,u,d,h,p,f,g,m,v,_=e.bounds?(v=e.bounds,new lt(v.left,v.right,v.top,v.bottom)):new lt(0,window.innerWidth-function(){if(void 0===Xe){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Xe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Xe}(),0,window.innerHeight),y=Pt(l,n,_,r),x=(c=y,u=function(e,t){var n=t.targetRectangle,r=kt(t.targetEdge),o=r.positiveEdge,a=r.negativeEdge,i=gt(n,t.targetEdge),s=new lt(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new lt(0,e,0,e);return bt(l=St(l=yt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,i-vt(o,t.elementRectangle)),s,o)?bt(l,s,a)||(l=xt(l,s,a)):l=xt(l,s,o),l}(i,y),d=_,h=-1*c.targetEdge,p=new lt(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=At(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:kt(h).positiveEdge,d),m=_t(c.elementRectangle,c.targetRectangle,h)>Math.abs(pt(u,h)),f[Ue[h]]=pt(u,h),f[Ue[g]]=_t(u,p,g),{elementPosition:o({},f),closestEdge:Dt(c.targetEdge,u,p),targetEdge:h,hideBeak:!m});return o(o({},function(e,t,n,r,o){return{elementPosition:wt(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(y,t,_,e.coverTarget,a)),{beakPosition:x})}var Ft=["TEMPLATE","STYLE","SCRIPT"];function Vt(e){var t=te(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var a=o[r],i=a.getAttribute("aria-hidden");a!==e&&"true"!==(null==i?void 0:i.toLowerCase())&&-1===Ft.indexOf(a.tagName)&&n.push([a,i])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var It=27,Ot=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=d(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=d(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,a,i=t||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(t){var n=Date.now(),h=n-c,p=s?i-h:i;return h>=i&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,a)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var a,i,s=t||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(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),a=e.apply(r._parent,i)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var o=t-d,i=s-o,f=t-h,v=!1;return null!==u&&(f>=u&&p?v=!0:i=Math.min(i,u-f)),o>=s||v||n?g(t):null!==p&&e||!c||(p=r.setTimeout(m,i)),a},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),a},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=d(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(a):o.setTimeout(a,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=d(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Ht(){var e=s.useRef();return e.current||(e.current=new Ot),s.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Bt(e,t,n,r){var o=s.useRef(n);o.current=n,s.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return ze(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function Rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var a=o[r];"function"==typeof a?a(t):a&&(a.current=t)}}),i([],e,!0));return n}var Wt=s.createContext({window:"object"==typeof window?window:void 0}),zt=function(){return s.useContext(Wt).window};function Yt(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==d()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Ut=s.forwardRef((function(e,t){var n=Ye({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),a=Rt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return Vt(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?Yt:n,o=s.useRef(),a=s.useRef(!1);s.useEffect((function(){return o.current=te().activeElement,function(e){var t=te(e),n=t&&t.activeElement;return!(!n||!Ae(e,n))}(t.current)&&(a.current=!0),function(){var e;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(e=te())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),Bt(t,"focus",s.useCallback((function(){a.current=!0}),[]),!0),Bt(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}(n,r);var i=n.role,l=n.className,c=n.ariaLabel,u=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=Ht(),r=s.useState(!1),o=r[0],a=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var i=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(n,r),m=s.useCallback((function(e){e.which===It&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Bt(zt(),"keydown",m),s.createElement("div",o({ref:a},et(n,Je),{className:l,role:i,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:o({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function qt(e){var t=D.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",Q(ae(),e[r]),"}");var o=n.join(""),a=t.classNameFromKey(o);if(a)return a;var i=t.getClassName();return t.insertRule("@keyframes ".concat(i,"{").concat(o,"}"),!0),t.cacheClassName(i,o,[],["keyframes",o]),i}Ut.displayName="Popup";var Xt="cubic-bezier(.1,.9,.2,1)",jt="cubic-bezier(.1,.25,.75,.9)",Gt="0.167s",Kt="0.267s",Zt="0.367s",$t="0.467s",Qt=qt({from:{opacity:0},to:{opacity:1}}),Jt=qt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),en=Pn(-10),tn=Pn(-20),nn=Pn(-40),rn=Pn(-400),on=Pn(10),an=Pn(20),sn=Pn(40),ln=Pn(400),cn=Nn(10),un=Nn(20),dn=Nn(-10),hn=Nn(-20),pn=Fn(10),fn=Fn(20),gn=Fn(40),mn=Fn(400),vn=Fn(-10),_n=Fn(-20),yn=Fn(-40),xn=Fn(-400),bn=Vn(-10),Cn=Vn(-20),En=Vn(10),Sn=Vn(20),Ln=qt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=qt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=qt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=qt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=qt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=qt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Mn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Pn(e){return qt({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(e){return qt({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(e){return qt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Vn(e){return qt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var In,On,Hn,Bn,Rn,Wn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=ot(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:Mn("".concat(Qt,",").concat(en),Zt,Xt),slideRightIn20:Mn("".concat(Qt,",").concat(tn),Zt,Xt),slideRightIn40:Mn("".concat(Qt,",").concat(nn),Zt,Xt),slideRightIn400:Mn("".concat(Qt,",").concat(rn),Zt,Xt),slideLeftIn10:Mn("".concat(Qt,",").concat(on),Zt,Xt),slideLeftIn20:Mn("".concat(Qt,",").concat(an),Zt,Xt),slideLeftIn40:Mn("".concat(Qt,",").concat(sn),Zt,Xt),slideLeftIn400:Mn("".concat(Qt,",").concat(ln),Zt,Xt),slideUpIn10:Mn("".concat(Qt,",").concat(cn),Zt,Xt),slideUpIn20:Mn("".concat(Qt,",").concat(un),Zt,Xt),slideDownIn10:Mn("".concat(Qt,",").concat(dn),Zt,Xt),slideDownIn20:Mn("".concat(Qt,",").concat(hn),Zt,Xt),slideRightOut10:Mn("".concat(Jt,",").concat(pn),Zt,Xt),slideRightOut20:Mn("".concat(Jt,",").concat(fn),Zt,Xt),slideRightOut40:Mn("".concat(Jt,",").concat(gn),Zt,Xt),slideRightOut400:Mn("".concat(Jt,",").concat(mn),Zt,Xt),slideLeftOut10:Mn("".concat(Jt,",").concat(vn),Zt,Xt),slideLeftOut20:Mn("".concat(Jt,",").concat(_n),Zt,Xt),slideLeftOut40:Mn("".concat(Jt,",").concat(yn),Zt,Xt),slideLeftOut400:Mn("".concat(Jt,",").concat(xn),Zt,Xt),slideUpOut10:Mn("".concat(Jt,",").concat(bn),Zt,Xt),slideUpOut20:Mn("".concat(Jt,",").concat(Cn),Zt,Xt),slideDownOut10:Mn("".concat(Jt,",").concat(En),Zt,Xt),slideDownOut20:Mn("".concat(Jt,",").concat(Sn),Zt,Xt),scaleUpIn100:Mn("".concat(Qt,",").concat(Ln),Zt,Xt),scaleDownIn100:Mn("".concat(Qt,",").concat(An),Zt,Xt),scaleUpOut103:Mn("".concat(Jt,",").concat(wn),Gt,jt),scaleDownOut98:Mn("".concat(Jt,",").concat(kn),Gt,jt),fadeIn100:Mn(Qt,Gt,jt),fadeIn200:Mn(Qt,Kt,jt),fadeIn400:Mn(Qt,Zt,jt),fadeIn500:Mn(Qt,$t,jt),fadeOut100:Mn(Jt,Gt,jt),fadeOut200:Mn(Jt,Kt,jt),fadeOut400:Mn(Jt,Zt,jt),fadeOut500:Mn(Jt,$t,jt),rotate90deg:Mn(Dn,"0.1s",jt),rotateN90deg:Mn(Tn,"0.1s",jt)}),zn={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"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(In||(In={})),function(e){e.Arabic="'".concat(In.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(In.Cyrillic,"'"),e.EastEuropean="'".concat(In.EastEuropean,"'"),e.Greek="'".concat(In.Greek,"'"),e.Hebrew="'".concat(In.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(In.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(In.Vietnamese,"'"),e.WestEuropean="'".concat(In.WestEuropean,"'"),e.Armenian="'".concat(In.Armenian,"'"),e.Georgian="'".concat(In.Georgian,"'")}(On||(On={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Hn||(Hn={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Bn||(Bn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Rn||(Rn={}));var Yn,Un="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",qn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",Xn="ms-Fabric--isFocusVisible";function jn(e,t,n,r,o,a,i,s){return function(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,a=t.inset,i=void 0===a?0:a,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,h=t.borderColor,p=void 0===h?e.palette.white:h,f=t.outlineColor,g=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly,v=void 0===m||m,_=t.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(Xn," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:i+1,top:i+1,bottom:i+1,right:i+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:Yn.FocusStyle,borderRadius:o,selectors:(r={},r[Un]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:i,borderRadius:s})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Yn||(Yn={}));var Gn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Kn=!1,Zn=0,$n={empty:!0},Qn={},Jn="undefined"==typeof WeakMap?null:WeakMap;function er(){Zn++}function tr(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Jn)return e;if(!Kn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(er),Kn=!0}var o,a=0,i=Zn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l,c=o;(void 0===o||i!==Zn||t>0&&a>t)&&(o=rr(),a=0,i=Zn),c=o;for(var u=0;u<r.length;u++){var d=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(Qn[l]||(Qn[l]={val:l}),Qn[l]):$n;c.map.has(d)||c.map.set(d,rr()),c=c.map.get(d)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),a++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function nr(e){if(!Jn)return e;var t=new Jn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function rr(){return{map:Jn?new Jn:null}}var or=tr((function(e,t){var n=D.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function ar(e,t,n){return or(e,void 0!==n?n:t.disableGlobalClassNames)}var ir,sr,lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lr.apply(this,arguments)},cr="undefined"==typeof window?e.g:window,ur=cr&&cr.CSPSettings&&cr.CSPSettings.nonce,dr=((sr=cr.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(sr=lr({},sr,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),sr.registeredThemableStyles||(sr=lr({},sr,{registeredThemableStyles:[]})),cr.__themeState__=sr,sr);function hr(e){dr.theme=e,function(){if(dr.theme){for(var e=[],t=0,n=dr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(a=1)&&(a=3),3!==a&&2!==a||(pr(dr.registeredStyles),dr.registeredStyles=[]),3!==a&&1!==a||(pr(dr.registeredThemableStyles),dr.registeredThemableStyles=[]),o=[].concat.apply([],e),dr.loadStyles?dr.loadStyles(fr(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=fr(e),o=r.styleString,a=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ur&&n.setAttribute("nonce",ur),n.appendChild(document.createTextNode(o)),dr.perf.count++,t.appendChild(n);var i=document.createEvent("HTMLEvents");i.initEvent("styleinsert",!0,!1),i.args={newStyle:n},document.dispatchEvent(i);var s={styleElement:n,themableStyle:e};a?dr.registeredThemableStyles.push(s):dr.registeredStyles.push(s)}}(o))}var o,a}()}function pr(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function fr(e){var t=dr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,a=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+a+'".'),o||a}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.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)",e.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)",e.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)",e.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)"}(ir||(ir={}));var gr,mr={elevation4:ir.depth4,elevation8:ir.depth8,elevation16:ir.depth16,elevation64:ir.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},vr="'Segoe UI', '".concat(In.WestEuropean,"'"),_r={ar:On.Arabic,bg:On.Cyrillic,cs:On.EastEuropean,el:On.Greek,et:On.EastEuropean,he:On.Hebrew,hi:On.Hindi,hr:On.EastEuropean,hu:On.EastEuropean,ja:On.Japanese,kk:On.EastEuropean,ko:On.Korean,lt:On.EastEuropean,lv:On.EastEuropean,pl:On.EastEuropean,ru:On.Cyrillic,sk:On.EastEuropean,"sr-latn":On.EastEuropean,th:On.Thai,tr:On.EastEuropean,uk:On.Cyrillic,vi:On.Vietnamese,"zh-hans":On.ChineseSimplified,"zh-hant":On.ChineseTraditional,hy:On.Armenian,ka:On.Georgian};function yr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var xr,br,Cr="language",Er=(xr=function(e){for(var t in _r)if(_r.hasOwnProperty(t)&&e&&0===t.indexOf(e))return _r[t];return vr}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===gr){var t=te(),n="localStorage"===e?function(e){var t=null;try{var n=d();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(Cr):"sessionStorage"===e?ne(Cr):void 0;n&&(gr=n),void 0===gr&&t&&(gr=t.documentElement.getAttribute("lang")),void 0===gr&&(gr="en")}return gr}()),br="".concat(xr,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:yr(Hn.mini,Bn.regular,br),xSmall:yr(Hn.xSmall,Bn.regular,br),small:yr(Hn.small,Bn.regular,br),smallPlus:yr(Hn.smallPlus,Bn.regular,br),medium:yr(Hn.medium,Bn.regular,br),mediumPlus:yr(Hn.mediumPlus,Bn.regular,br),large:yr(Hn.large,Bn.regular,br),xLarge:yr(Hn.xLarge,Bn.semibold,br),xLargePlus:yr(Hn.xLargePlus,Bn.semibold,br),xxLarge:yr(Hn.xxLarge,Bn.semibold,br),xxLargePlus:yr(Hn.xxLargePlus,Bn.semibold,br),superLarge:yr(Hn.superLarge,Bn.semibold,br),mega:yr(Hn.mega,Bn.semibold,br)});function Sr(e,t,n,r){!function(e){var t=D.getInstance(),n=Q(ae(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Lr(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);Sr(t,a+"-light",Bn.light,o&&o+" Light"),Sr(t,a+"-semilight",Bn.semilight,o&&o+" SemiLight"),Sr(t,a+"-regular",Bn.regular,o),Sr(t,a+"-semibold",Bn.semibold,o&&o+" SemiBold"),Sr(t,a+"-bold",Bn.bold,o&&o+" Bold")}function kr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ar(e||{},o[r]);return e}function Ar(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var a=n.indexOf(o)>-1;e[r]=a?o:Ar(e[r]||{},o,n)}}return n.pop(),e}function wr(e,t,n,r,a){return void 0===a&&(a=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(Dr(e,t,o({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),a)}function Dr(e,t,n,r,a){void 0===a&&(a=!1);var i={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,E=s.neutralTertiary,S=s.neutralTertiaryAlt,L=s.neutralLighterAlt,k=s.accent;return l&&(i.bodyBackground=l,i.bodyFrameBackground=l,i.accentButtonText=l,i.buttonBackground=l,i.primaryButtonText=l,i.primaryButtonTextHovered=l,i.primaryButtonTextPressed=l,i.inputBackground=l,i.inputForegroundChecked=l,i.listBackground=l,i.menuBackground=l,i.cardStandoutBackground=l),c&&(i.bodyTextChecked=c,i.buttonTextCheckedHovered=c),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),h&&(i.linkHovered=h),p&&(i.primaryButtonBackgroundHovered=p),f&&(i.inputPlaceholderBackgroundChecked=f),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),m&&(i.bodyBackgroundHovered=m,i.buttonBackgroundHovered=m,i.buttonBackgroundDisabled=m,i.buttonBorderDisabled=m,i.primaryButtonBackgroundDisabled=m,i.disabledBackground=m,i.listItemBackgroundHovered=m,i.listHeaderBackgroundHovered=m,i.menuItemBackgroundHovered=m),_&&(i.primaryButtonTextDisabled=_,i.disabledSubtext=_),y&&(i.listItemBackgroundCheckedHovered=y),E&&(i.disabledBodyText=E,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||E,i.buttonTextDisabled=E,i.inputIconDisabled=E,i.disabledText=E),x&&(i.bodyText=x,i.actionLink=x,i.buttonText=x,i.inputBorderHovered=x,i.inputText=x,i.listText=x,i.menuItemText=x),L&&(i.bodyStandoutBackground=L,i.defaultStateBackground=L),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),C&&(i.buttonBorder=C),S&&(i.disabledBodySubtext=S,i.disabledBorder=S,i.buttonBackgroundChecked=S,i.menuDivider=S),k&&(i.accentButtonBackground=k),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),o(o({},i),n)}!function(e){if(e){var t="".concat(e,"/fonts");Lr(t,In.Thai,"leelawadeeui-thai","leelawadeeui"),Lr(t,In.Arabic,"segoeui-arabic"),Lr(t,In.Cyrillic,"segoeui-cyrillic"),Lr(t,In.EastEuropean,"segoeui-easteuropean"),Lr(t,In.Greek,"segoeui-greek"),Lr(t,In.Hebrew,"segoeui-hebrew"),Lr(t,In.Vietnamese,"segoeui-vietnamese"),Lr(t,In.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Lr(t,On.Selawik,"selawik","selawik"),Lr(t,In.Armenian,"segoeui-armenian"),Lr(t,In.Georgian,"segoeui-georgian"),Sr("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Bn.light),Sr("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Bn.semibold)}}(function(){var e,t,n=null===(e=d())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var Tr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Mr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var a=kr({},e,t,{semanticColors:Dr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var i=0,s=Object.keys(a.fonts);i<s.length;i++){var l=s[i];a.fonts[l]=kr(a.fonts[l],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[l])}return a}({palette:zn,effects:mr,fonts:Er,spacing:Tr,isInverted:n,disableGlobalClassNames:!1,semanticColors:wr(zn,mr,void 0,n,t),rtl:void 0},e)}var Pr=Mr({}),Nr=[],Fr="theme";function Vr(){var e,t,n,r=d();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),Pr=Mr(e,t),hr(o(o(o(o({},Pr.palette),Pr.semanticColors),Pr.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],a=e.fonts[o],i=0,s=Object.keys(a);i<s.length;i++){var l=s[i],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=a[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(Pr))),b.applySettings(((n={})[Fr]=Pr,n)),Nr.forEach((function(e){try{e(Pr)}catch(e){}}))}(r.FabricConfig.legacyTheme):b.getSettings([Fr]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Pr=Mr(r.FabricConfig.theme)),b.applySettings(((e={})[Fr]=Pr,e)))}Vr();var Ir,Or={},Hr=void 0;try{Hr=window}catch(e){}function Br(e,t){if(void 0!==Hr){var n=Hr.__packages__=Hr.__packages__||{};n[e]&&Or[e]||(Or[e]=t,(n[e]=n[e]||[]).push(t))}}function Rr(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}Br("@fluentui/set-version","6.0.0"),Br("@fluentui/style-utilities","8.9.16"),Vr();var Wr=((Ir={})[Ue.top]=Wn.slideUpIn10,Ir[Ue.bottom]=Wn.slideDownIn10,Ir[Ue.left]=Wn.slideLeftIn10,Ir[Ue.right]=Wn.slideRightIn10,Ir),zr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Yr=["role","aria-roledescription"],Ur={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Se.bottomAutoEdge},qr=he({disableCaching:!0});function Xr(e,t,n,r,a){var i=s.useState(),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(),h=Ht(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return s.useEffect((function(){if(!p){var i=h.requestAnimationFrame((function(){var i,s,h,p;if(t.current&&n){var _=o(o({},e),{target:r.current,bounds:a()}),y=n.cloneNode(!0);y.style.maxHeight=m?"".concat(m):"",y.style.visibility="hidden",null===(i=n.parentElement)||void 0===i||i.appendChild(y);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return Nt(e,t,n,r,!0)}(e,t,n,r)}(_,t.current,y,x):function(e,t,n,r){return Nt(e,t,n,r)}(_,t.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Kr((h=l).elementPosition,p.elementPosition)||!Kr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&u.current<5?(u.current++,c(b)):u.current>0&&(u.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(i),d.current=void 0}}c(void 0),u.current=0}),[p,_,h,n,m,t,r,g,a,v,l,e,f]),l}var jr=s.memo(s.forwardRef((function(e,t){var n=Ye(Ur,e),r=n.styles,a=n.style,i=n.ariaLabel,l=n.ariaDescribedBy,c=n.ariaLabelledBy,u=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,E=n.onScroll,S=n.shouldRestoreFocus,L=void 0===S||S,k=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],N=M[1],F=s.useCallback((function(e){N(e)}),[]),V=Rt(T,t),I=function(e,t){var n=s.useRef(),r=s.useRef(null),o=zt();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var a=te(null==t?void 0:t.current);r.current=a?a.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,o]}(n.target,{current:P}),O=I[0],H=I[1],B=function(e,t,n){var r=e.bounds,o=e.minPagePadding,a=void 0===o?Ur.minPagePadding:o,i=e.target,l=s.useState(!1),c=l[0],u=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(i,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var a=e.getBoundingClientRect();r=(a.left+a.right)/2,o=(a.top+a.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var i={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&&o&&c.top<=o&&c.bottom>=o&&(i={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return i}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,i,t,n,c]),p=Ht();return Bt(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(n,O,H),R=Xr(n,T,P,O,B),W=function(e,t,n){var r,o=e.calloutMaxHeight,a=e.finalHeight,i=e.directionalHint,l=e.directionalHintFixed,c=e.hidden,u=s.useState(),d=u[0],h=u[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},a=r.top,i=r.bottom;"number"==typeof f&&i?n=i-f:"number"==typeof g&&"number"==typeof a&&i&&(n=i-a-g),h(!o&&!c||o&&n&&o>n?n:o||void 0)}),[g,o,a,i,l,t,c,n,f]),d}(n,B,R),z=function(e,t,n,r,o){var a=e.hidden,i=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Ht(),m=Rr([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return s.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){c||p&&p(e)||null==i||i(e)},s=function(e){u||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],a=t.length>0?t[0]:e.target,s=n.current&&!Ae(n.current,a);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==o&&s&&(!r.current||"stopPropagation"in r.current||d||a!==r.current&&!Ae(r.current,a))){if(p&&p(e))return;null==i||i(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null==i||i(e))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[ze(o,"scroll",e,!0),ze(o,"resize",t,!0),ze(o.document.documentElement,"focus",s,!0),ze(o.document.documentElement,"click",s,!0),ze(o,"blur",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[a,g,n,r,o,i,h,d,u,c,l,v,p]),m}(n,R,T,O,H),Y=z[0],U=z[1],q=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),X=o(o({},null==R?void 0:R.elementPosition),{maxHeight:W});if(q&&(X.bottom=void 0),function(e,t,n){var r=e.hidden,o=e.setInitialFocus,a=Ht(),i=!!t;s.useEffect((function(){if(!r&&o&&i&&n){var e=a.requestAnimationFrame((function(){return Pe(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,i,a,n,o])}(n,R,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var j=x,G=d&&!!k,K=qr(r,{theme:n.theme,className:u,overflowYHidden:j,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=o(o({maxHeight:C||"100%"},a),j&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:V,className:K.container,style:$},s.createElement("div",o({},et(n,Je,Yr),{className:tt(K.root,R&&R.targetEdge&&Wr[R.targetEdge]),style:R?o({},X):zr,tabIndex:-1,ref:F}),G&&s.createElement("div",{className:K.beak,style:Gr(R)}),G&&s.createElement("div",{className:K.beakCurtain}),s.createElement(Ut,o({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:i,ariaLabelledBy:c,className:K.calloutMain,onDismiss:n.onDismiss,onMouseDown:Y,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:E,shouldRestoreFocus:L,style:Z},D),h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}(e,t)}));function Gr(e){var t,n,r=o(o({},null===(t=null==e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Kr(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Zr(e){return{height:e,width:e}}jr.displayName="CalloutContentBase";var $r={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Qr=S(jr,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,a=e.calloutWidth,i=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=ar($r,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?Yn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Un]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!a&&{width:a},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Zr(i),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},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Jr=s.createContext(void 0),eo=()=>()=>{};Jr.Provider;var to=ReactDOM;new WeakMap,new WeakMap;var no=s.createContext(void 0),ro=function(e){var t=e.providerRef,n=e.layerRoot,r=s.useState([])[0],o=s.useContext(no),a=void 0!==o&&!n,i=s.useMemo((function(){return a?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==o||o.registerProvider(e)},unregisterProvider:function(e){null==o||o.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,o,a]);return s.useEffect((function(){if(i)return i.registerProvider(i.providerRef),function(){return i.unregisterProvider(i.providerRef)}}),[i]),i?s.createElement(no.Provider,{value:i},e.children):s.createElement(s.Fragment,null,e.children)};function oo(e,t){void 0===e&&(e={});var n=ao(t)?t:function(e){return function(t){return e?o(o({},t),e):t}}(t);return n(e)}function ao(e){return"function"==typeof e}var io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(C.Consumer,null,(function(n){var r=function(e,t){var n,r,a,i=(t||{}).customizations,s=void 0===i?{settings:{},scopedSettings:{}}:i;return{customizations:{settings:oo(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(ao(r)?r:(void 0===(a=r)&&(a={}),function(e){var t=o({},e);for(var n in a)a.hasOwnProperty(n)&&(t[n]=o(o({},e[n]),a[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(C.Provider,{value:r},e.props.children)}))},t}(s.Component),so=he(),lo=tr((function(e,t){return Mr(o(o({},e),{rtl:t}))})),co=s.forwardRef((function(e,t){var n=e.className,r=e.theme,a=e.applyTheme,i=e.applyThemeToBody,l=e.styles,c=so(l,{theme:r,applyTheme:a,className:n}),u=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=te(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(i,c,u),s.createElement(s.Fragment,null,function(e,t,n,r){var a=t.root,i=e.as,l=void 0===i?"div":i,c=e.dir,u=e.theme,d=et(e,Je,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=le(t)?"rtl":"ltr",o=le()?"rtl":"ltr",a=n||r;return{rootDir:a!==r||a!==o?a:n,needsTheme:a!==r}}(e),p=h.rootDir,f=h.needsTheme,g=s.createElement(ro,{providerRef:n},s.createElement(l,o({dir:p},d,{className:a,ref:Rt(n,r)})));return f&&(g=s.createElement(io,{settings:{theme:lo(u,"rtl"===c)}},g)),g}(e,c,u,t))}));co.displayName="FabricBase";var uo,ho={fontFamily:"inherit"},po={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},fo=S(co,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[ar(po,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":ho,"& input":ho,"& textarea":ho},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),go="data-portal-element",mo={},vo={},_o="fluent-default-layer-host",yo="#".concat(_o),xo=c()?s.useLayoutEffect:s.useEffect,bo=void 0;function Co(e){bo?bo(e):console&&console.warn&&console.warn(e)}function Eo(e,t,n,r,o){if(!0===o)for(var a=0,i=n;a<i.length;a++){var s=i[a];s in t||Co("".concat(e," property '").concat(s,"' is required when '").concat(r,"' is used.'"))}}function So(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),a=n[r];a&&(o+=" Use '".concat(a,"' instead.")),Co(o)}}function Lo(e,t){return void 0!==e[t]&&null!==e[t]}function ko(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}uo={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Ao=0;function wo(e){var t=e.name,n=e.props,r=e.other,a=void 0===r?[]:r,i=e.conditionallyRequired,l=e.deprecations,c=e.mutuallyExclusive,u=e.controlledUsage,d=s.useRef(!1),h=Rr((function(){return"useWarnings_".concat(Ao++)})),p=ko(n);if(!d.current){d.current=!0;for(var f=0,g=a;f<g.length;f++)Co(g[f]);if(i)for(var m=0,v=i;m<v.length;m++){var _=v[m];Eo(t,n,_.requiredProps,_.conditionalPropName,_.condition)}l&&So(t,n,l),c&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&Co("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}(t,n,c)}u&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,a=e.oldProps,i=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=a?Lo(a,l):void 0,u=Lo(o,l);if(u){var d=!!o[i],h=!(!s||!o[s]);d||h||uo.valueOnChange[t]||(uo.valueOnChange[t]=!0,Co("Warning: You provided a '".concat(String(l),"' prop to a ").concat(String(n)," without an '").concat(String(i),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(i),"'").concat(s?" or '".concat(String(s),"'"):"","."))),null==o[r]||uo.valueDefaultValue[t]||(uo.valueDefaultValue[t]=!0,Co("Warning: You provided both '".concat(String(l),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(a&&u!==c){var p=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?uo.controlledToUncontrolled:uo.uncontrolledToControlled;g[t]||(g[t]=!0,Co("Warning: A component is changing ".concat(p," ").concat(n," to be ").concat(f,". ")+"".concat(n,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}(o(o({},u),{componentId:h,props:n,componentName:t,oldProps:p}))}var Do,To=he(),Mo=s.forwardRef((function(e,t){var n,r=null!==(n=s.useContext(Jr))&&void 0!==n?n:eo,a=s.useRef(null),i=Rt(a,t),l=s.useRef(),c=s.useRef(null),u=s.useContext(no),d=s.useState(!1),h=d[0],p=d[1],f=s.useCallback((function(e){var t,n=!!(null==(t=null==u?void 0:u.providerRef)?void 0:t.current)&&t.current.classList.contains(Xn);e&&n&&e.classList.add(Xn)}),[u]),g=e.children,m=e.className,v=e.eventBubblingEnabled,_=e.fabricProps,y=e.hostId,x=e.insertFirst,b=e.onLayerDidMount,C=void 0===b?function(){}:b,E=e.onLayerMounted,S=void 0===E?function(){}:E,L=e.onLayerWillUnmount,k=e.styles,A=e.theme,w=Rt(c,null==_?void 0:_.ref,f),D=To(k,{theme:A,className:m,isNotHost:!y}),T=function(){null==L||L();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},M=function(){var e,t=te(a.current);if(t){var n=function(e){var t,n;if(y){var r=function(e){var t=vo[e];return t&&t[0]||void 0}(y);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(y))&&void 0!==n?n:null}var o=yo,a=o?e.querySelector(o):null;return a||(a=function(e){var t=e.createElement("div");return t.setAttribute("id",_o),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),a}(t);if(n){T();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=D.root,r.setAttribute(go,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var a=o._virtual.children.indexOf(n);a>-1&&o._virtual.children.splice(a,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 xo((function(){M(),y&&function(e,t){mo[e]||(mo[e]=[]),mo[e].push(t);var n=vo[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(y,M);var e=l.current?r(l.current):void 0;return function(){e&&e(),T(),y&&function(e,t){var n=mo[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete mo[e])}var o=vo[e];if(o)for(var a=0,i=o;a<i.length;a++)i[a].notifyLayersChanged()}(y,M)}}),[y]),s.useEffect((function(){l.current&&h&&(null==S||S(),null==C||C(),p(!1))}),[h,S,C]),function(e){wo({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),s.createElement("span",{className:"ms-layer",ref:i},l.current&&to.createPortal(s.createElement(ro,{layerRoot:!0,providerRef:w},s.createElement(fo,o({},!v&&(Do||(Do={},["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(e){return Do[e]=Po}))),Do),_,{className:tt(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Mo.displayName="LayerBase";var Po=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},No={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Fo=S(Mo,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=ar(No,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Yn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Vo=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,i=a(e,["layerProps","doNotLayer"]),l=s.createElement(Qr,o({},i,{doNotLayer:r,ref:t}));return r?l:s.createElement(Fo,o({},n),l)}));Vo.displayName="Callout";var Io=Array.prototype.slice;function Oo(e){return e}var Ho=1,Bo=2,Ro=3,Wo=4,zo=1e-6;function Yo(e){return"translate("+(e+.5)+",0)"}function Uo(e){return"translate(0,"+(e+.5)+")"}function qo(e){return function(t){return+e(t)}}function Xo(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function jo(){return!this.__axis}function Go(e,t){var n=[],r=null,o=null,a=6,i=6,s=3,l=e===Ho||e===Wo?-1:1,c=e===Wo||e===Bo?"x":"y",u=e===Ho||e===Ro?Yo:Uo;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==o?t.tickFormat?t.tickFormat.apply(t,n):Oo:o,f=Math.max(a,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Xo:qo)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,t).order(),C=b.exit(),E=b.enter().append("g").attr("class","tick"),S=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(E),S=S.merge(E.append("line").attr("stroke","#000").attr(c+"2",l*a)),L=L.merge(E.append("text").attr("fill","#000").attr(c,l*f).attr("dy",e===Ho?"0em":e===Ro?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),S=S.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",zo).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),E.attr("opacity",zo).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",e===Wo||e==Bo?"M"+l*i+","+m+"H0.5V"+v+"H"+l*i:"M"+m+","+l*i+"V0.5H"+v+"V"+l*i),b.attr("opacity",1).attr("transform",(function(e){return u(_(e))})),S.attr(c+"2",l*a),L.attr(c,l*f).text(p),y.filter(jo).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Bo?"start":e===Wo?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Io.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Io.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Io.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(o=e,d):o},d.tickSize=function(e){return arguments.length?(a=i=+e,d):a},d.tickSizeInner=function(e){return arguments.length?(a=+e,d):a},d.tickSizeOuter=function(e){return arguments.length?(i=+e,d):i},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Ko(e){return Go(Bo,e)}function Zo(e){return Go(Ro,e)}function $o(e){return Go(Wo,e)}function Qo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Qo(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)<0?r=a+1:o=a}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)>0?o=a:r=a+1}return r}}}var ea=Jo(Qo);ea.right,ea.left;var ta=Array.prototype;function na(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<o;)null!=(n=e[a])&&n>r&&(r=n)}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<o;)null!=(n=t(e[a],a,e))&&n>r&&(r=n);return r}function ra(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<o;)null!=(n=e[a])&&r>n&&(r=n)}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<o;)null!=(n=t(e[a],a,e))&&r>n&&(r=n);return r}function oa(e,t){var n,r=e.length,o=-1,a=0;if(null==t)for(;++o<r;)(n=+e[o])&&(a+=n);else for(;++o<r;)(n=+t(e[o],o,e))&&(a+=n);return a}ta.slice,ta.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var aa=Math.sqrt(50),ia=Math.sqrt(10),sa=Math.sqrt(2);function la(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,o);return o>=0?(a>=aa?10:a>=ia?5:a>=sa?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=aa?10:a>=ia?5:a>=sa?2:1)}function ca(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=aa?o*=10:a>=ia?o*=5:a>=sa&&(o*=2),t<e?-o:o}function ua(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function da(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ha(e){let t,n,r;function o(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=ua,n=(t,n)=>ua(e(t),n),r=(t,n)=>e(t)-n):(t=e===ua||e===da?e:pa,n=e,r=e),{left:o,center:function(e,t,n=0,a=e.length){const i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function pa(){return 0}const fa=ha(ua),ga=fa.right;fa.left,ha((function(e){return null===e?NaN:+e})).center;var ma=ga;function va(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _a(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ya(){}var xa=.7,ba=1/xa,Ca="\\s*([+-]?\\d+)\\s*",Ea="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",La=/^#([0-9a-f]{3,8})$/,ka=new RegExp("^rgb\\("+[Ca,Ca,Ca]+"\\)$"),Aa=new RegExp("^rgb\\("+[Sa,Sa,Sa]+"\\)$"),wa=new RegExp("^rgba\\("+[Ca,Ca,Ca,Ea]+"\\)$"),Da=new RegExp("^rgba\\("+[Sa,Sa,Sa,Ea]+"\\)$"),Ta=new RegExp("^hsl\\("+[Ea,Sa,Sa]+"\\)$"),Ma=new RegExp("^hsla\\("+[Ea,Sa,Sa,Ea]+"\\)$"),Pa={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 Na(){return this.rgb().formatHex()}function Fa(){return this.rgb().formatRgb()}function Va(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=La.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ia(t):3===n?new Ba(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Ba(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Ba(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ka.exec(e))?new Ba(t[1],t[2],t[3],1):(t=Aa.exec(e))?new Ba(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wa.exec(e))?Oa(t[1],t[2],t[3],t[4]):(t=Da.exec(e))?Oa(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ta.exec(e))?Ya(t[1],t[2]/100,t[3]/100,1):(t=Ma.exec(e))?Ya(t[1],t[2]/100,t[3]/100,t[4]):Pa.hasOwnProperty(e)?Ia(Pa[e]):"transparent"===e?new Ba(NaN,NaN,NaN,0):null}function Ia(e){return new Ba(e>>16&255,e>>8&255,255&e,1)}function Oa(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ba(e,t,n,r)}function Ha(e,t,n,r){return 1===arguments.length?((o=e)instanceof ya||(o=Va(o)),o?new Ba((o=o.rgb()).r,o.g,o.b,o.opacity):new Ba):new Ba(e,t,n,null==r?1:r);var o}function Ba(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ra(){return"#"+za(this.r)+za(this.g)+za(this.b)}function Wa(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function za(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ya(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qa(e,t,n,r)}function Ua(e){if(e instanceof qa)return new qa(e.h,e.s,e.l,e.opacity);if(e instanceof ya||(e=Va(e)),!e)return new qa;if(e instanceof qa)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new qa(i,s,l,e.opacity)}function qa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Xa(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ja(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function Ga(e){return function(){return e}}function Ka(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ga(isNaN(e)?t:e)}va(ya,Va,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Na,formatHex:Na,formatHsl:function(){return Ua(this).formatHsl()},formatRgb:Fa,toString:Fa}),va(Ba,Ha,_a(ya,{brighter:function(e){return e=null==e?ba:Math.pow(ba,e),new Ba(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?xa:Math.pow(xa,e),new Ba(this.r*e,this.g*e,this.b*e,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:Ra,formatHex:Ra,formatRgb:Wa,toString:Wa})),va(qa,(function(e,t,n,r){return 1===arguments.length?Ua(e):new qa(e,t,n,null==r?1:r)}),_a(ya,{brighter:function(e){return e=null==e?ba:Math.pow(ba,e),new qa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?xa:Math.pow(xa,e),new qa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ba(Xa(e>=240?e-240:e+120,o,r),Xa(e,o,r),Xa(e<120?e+240:e-120,o,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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Za=function e(t){var n=function(e){return 1==(e=+e)?Ka:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ga(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ha(e)).r,(t=Ha(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Ka(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function $a(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Ha(t[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=e(a),i=e(i),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=s(e),r+""}}}function Qa(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=ii(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function Ja(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ei(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ti(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=ii(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}$a((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return ja((n-r/t)*t,i,o,a,s)}})),$a((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return ja((n-r/t)*t,o,a,i,s)}}));var ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ri=new RegExp(ni.source,"g");function oi(e,t){var n,r,o,a=ni.lastIndex=ri.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=ni.exec(e))&&(r=ri.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:ei(n,r)})),a=ri.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function ai(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function ii(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?Ga(t):("number"===o?ei:"string"===o?(n=Va(t))?(t=n,Za):oi:t instanceof Va?Za:t instanceof Date?Ja:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Qa:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ti:ei:ai))(e,t)}function si(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function li(e){return+e}var ci=[0,1];function ui(e){return e}function di(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function hi(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=di(o,r),a=n(i,a)):(r=di(r,o),a=n(a,i)),function(e){return a(r(e))}}function pi(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=di(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=ma(e,t,1,r)-1;return a[n](o[n](t))}}function fi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function gi(){return function(){var e,t,n,r,o,a,i=ci,s=ci,l=ii,c=ui;function u(){var e,t,n,l=Math.min(i.length,s.length);return c!==ui&&(e=i[0],t=i[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?pi:hi,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(s,i.map(e),ei)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,li),u()):i.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=si,u()},d.clamp=function(e){return arguments.length?(c=!!e||ui,u()):c!==ui},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(ui,ui)}function mi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var vi,_i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yi(e){if(!(t=_i.exec(e)))throw new Error("invalid format: "+e);var t;return new xi({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function xi(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function bi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ci(e){return(e=bi(Math.abs(e)))?e[1]:NaN}function Ei(e,t){var n=bi(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}yi.prototype=xi.prototype,xi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Si={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Ei(100*e,t)},r:Ei,s:function(e,t){var n=bi(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(vi=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+bi(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Li(e){return e}var ki,Ai,wi,Di=Array.prototype.map,Ti=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mi(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,a,i,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(i=la(e,t,n))||!isFinite(i))return[];if(i>0){let n=Math.round(e/i),r=Math.round(t/i);for(n*i<e&&++n,r*i>t&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)*i}else{i=-i;let n=Math.round(e*i),r=Math.round(t*i);for(n/i<e&&++n,r/i>t&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)/i}return r&&a.reverse(),a}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var o,a=ca(e,t,n);switch((r=yi(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ci(t)/3)))-Ci(Math.abs(e)))}(a,i))||(r.precision=o),wi(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ci(t)-Ci(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Ci(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return Ai(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=la(l,c,n))===r)return a[i]=l,a[s]=c,t(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Pi(){var e=gi();return e.copy=function(){return fi(e,Pi())},mi.apply(e,arguments),Mi(e)}ki=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Li:(t=Di.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Li:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Di.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=yi(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):Si[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?o:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?a:/[%p]/.test(_)?l:"",b=Si[_],C=/[defgprs%]/.test(_);function E(e){var o,a,l,h=y,E=x;if("c"===_)E=b(e)+E,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==d&&(S=!1),h=(S?"("===d?d:c:"-"===d||"("===d?"":d)+h,E=("s"===_?Ti[8+vi/3]:"")+E+(S&&"("===d?")":""),C)for(o=-1,a=e.length;++o<a;)if(48>(l=e.charCodeAt(o))||l>57){E=(46===l?i+e.slice(o+1):e.slice(o))+E,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var L=h.length+e.length+E.length,k=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?f-E.length:1/0),k=""),n){case"<":e=h+e+E+k;break;case"=":e=h+k+e+E;break;case"^":e=k.slice(0,L=k.length>>1)+h+e+E+k.slice(L);break;default:e=k+h+e+E}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),E.toString=function(){return e+""},E}return{format:d,formatPrefix:function(e,t){var n=d(((e=yi(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ci(t)/3))),o=Math.pow(10,-r),a=Ti[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ai=ki.format,wi=ki.formatPrefix;const Ni=1e3,Fi=6e4,Vi=36e5,Ii=864e5,Oi=6048e5,Hi=31536e6;var Bi=new Date,Ri=new Date;function Wi(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),t(n,a),e(n)}while(i<n&&n<r);return s},o.filter=function(n){return Wi((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Bi.setTime(+t),Ri.setTime(+r),e(Bi),e(Ri),Math.floor(n(Bi,Ri))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var zi=Wi((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));zi.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Wi((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):zi:null};var Yi=zi,Ui=(zi.range,Wi((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ni)}),(function(e,t){return(t-e)/Ni}),(function(e){return e.getUTCSeconds()}))),qi=Ui,Xi=(Ui.range,Wi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni)}),(function(e,t){e.setTime(+e+t*Fi)}),(function(e,t){return(t-e)/Fi}),(function(e){return e.getMinutes()}))),ji=Xi,Gi=(Xi.range,Wi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni-e.getMinutes()*Fi)}),(function(e,t){e.setTime(+e+t*Vi)}),(function(e,t){return(t-e)/Vi}),(function(e){return e.getHours()}))),Ki=Gi,Zi=(Gi.range,Wi((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fi)/Ii),(e=>e.getDate()-1))),$i=Zi;function Qi(e){return Wi((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fi)/Oi}))}Zi.range;var Ji=Qi(0),es=Qi(1),ts=Qi(2),ns=Qi(3),rs=Qi(4),os=Qi(5),as=Qi(6),is=(Ji.range,es.range,ts.range,ns.range,rs.range,os.range,as.range,Wi((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),ss=is,ls=(is.range,Wi((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ls.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wi((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var cs=ls,us=(ls.range,Wi((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Fi)}),(function(e,t){return(t-e)/Fi}),(function(e){return e.getUTCMinutes()}))),ds=us,hs=(us.range,Wi((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Vi)}),(function(e,t){return(t-e)/Vi}),(function(e){return e.getUTCHours()}))),ps=hs,fs=(hs.range,Wi((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ii}),(function(e){return e.getUTCDate()-1}))),gs=fs;function ms(e){return Wi((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Oi}))}fs.range;var vs=ms(0),_s=ms(1),ys=ms(2),xs=ms(3),bs=ms(4),Cs=ms(5),Es=ms(6),Ss=(vs.range,_s.range,ys.range,xs.range,bs.range,Cs.range,Es.range,Wi((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Ls=Ss,ks=(Ss.range,Wi((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));ks.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wi((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var As=ks;function ws(e,t,n,r,o,a){const i=[[qi,1,Ni],[qi,5,5e3],[qi,15,15e3],[qi,30,3e4],[a,1,Fi],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,Vi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ii],[r,2,1728e5],[n,1,Oi],[t,1,2592e6],[t,3,7776e6],[e,1,Hi]];function s(t,n,r){const o=Math.abs(n-t)/r,a=ha((([,,e])=>e)).right(i,o);if(a===i.length)return e.every(ca(t/Hi,n/Hi,r));if(0===a)return Yi.every(Math.max(ca(t,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},s]}ks.range;const[Ds,Ts]=ws(As,Ls,vs,gs,ps,ds),[Ms,Ps]=ws(cs,ss,Ji,$i,Ki,ji);var Ns=new Date,Fs=new Date;function Vs(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),t(n,a),e(n)}while(i<n&&n<r);return s},o.filter=function(n){return Vs((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Ns.setTime(+t),Fs.setTime(+r),e(Ns),e(Fs),Math.floor(n(Ns,Fs))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Is=1e3,Os=6e4,Hs=36e5,Bs=864e5,Rs=6048e5;function Ws(e){return Vs((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Rs}))}var zs=Ws(0),Ys=Ws(1),Us=Ws(2),qs=Ws(3),Xs=Ws(4),js=Ws(5),Gs=Ws(6),Ks=(zs.range,Ys.range,Us.range,qs.range,Xs.range,js.range,Gs.range,Vs((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Bs}),(function(e){return e.getUTCDate()-1}))),Zs=Ks;function $s(e){return Vs((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Os)/Rs}))}Ks.range;var Qs=$s(0),Js=$s(1),el=$s(2),tl=$s(3),nl=$s(4),rl=$s(5),ol=$s(6),al=(Qs.range,Js.range,el.range,tl.range,nl.range,rl.range,ol.range,Vs((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Os)/Bs}),(function(e){return e.getDate()-1}))),il=al,sl=(al.range,Vs((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));sl.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vs((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ll=sl,cl=(sl.range,Vs((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));cl.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vs((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var ul=cl;function dl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function pl(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function fl(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Ll(o),u=kl(o),d=Ll(a),h=kl(a),p=Ll(i),f=kl(i),g=Ll(s),m=kl(s),v=Ll(l),_=kl(l),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Xl,e:Xl,f:$l,H:jl,I:Gl,j:Kl,L:Zl,m:Ql,M:Jl,p:function(e){return o[+(e.getHours()>=12)]},Q:Ac,s:wc,S:ec,u:tc,U:nc,V:rc,w:oc,W:ac,x:null,X:null,y:ic,Y:sc,Z:lc,"%":kc},x={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:cc,e:cc,f:fc,H:uc,I:dc,j:hc,L:pc,m:gc,M:mc,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Ac,s:wc,S:vc,u:_c,U:yc,V:xc,w:bc,W:Cc,x:null,X:null,y:Ec,Y:Sc,Z:Lc,"%":kc},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:Il,e:Il,f:zl,H:Hl,I:Hl,j:Ol,L:Wl,m:Vl,M:Bl,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Ul,s:ql,S:Rl,u:wl,U:Dl,V:Tl,w:Al,W:Ml,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Nl,Y:Pl,Z:Fl,"%":Yl};function C(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(i.push(e.slice(l,s)),null!=(o=yl[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(e.slice(l,s)),i.join("")}}function E(e,t){return function(n){var r,o,a=pl(1900);if(S(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=hl(pl(a.y))).getUTCDay(),r=o>4||0===o?Ys.ceil(r):Ys(r),r=Zs.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=t(pl(a.y))).getDay(),r=o>4||0===o?Js.ceil(r):Js(r),r=il.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?hl(pl(a.y)).getUTCDay():t(pl(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,hl(a)):t(a)}}function S(e,t,n,r){for(var o,a,i=0,s=t.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=b[o in yl?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",dl);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e,hl);return t.toString=function(){return e},t}}}cl.range;var gl,ml,vl,_l,yl={"-":"",_:" ",0:"0"},xl=/^\s*\d+/,bl=/^%/,Cl=/[\\^$*+?|[\]().{}]/g;function El(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function Sl(e){return e.replace(Cl,"\\$&")}function Ll(e){return new RegExp("^(?:"+e.map(Sl).join("|")+")","i")}function kl(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Al(e,t,n){var r=xl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=xl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=xl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Nl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Fl(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Vl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Il(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ol(e,t,n){var r=xl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Hl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Rl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wl(e,t,n){var r=xl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function zl(e,t,n){var r=xl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yl(e,t,n){var r=bl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ul(e,t,n){var r=xl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ql(e,t,n){var r=xl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Xl(e,t){return El(e.getDate(),t,2)}function jl(e,t){return El(e.getHours(),t,2)}function Gl(e,t){return El(e.getHours()%12||12,t,2)}function Kl(e,t){return El(1+il.count(ll(e),e),t,3)}function Zl(e,t){return El(e.getMilliseconds(),t,3)}function $l(e,t){return Zl(e,t)+"000"}function Ql(e,t){return El(e.getMonth()+1,t,2)}function Jl(e,t){return El(e.getMinutes(),t,2)}function ec(e,t){return El(e.getSeconds(),t,2)}function tc(e){var t=e.getDay();return 0===t?7:t}function nc(e,t){return El(Qs.count(ll(e),e),t,2)}function rc(e,t){var n=e.getDay();return e=n>=4||0===n?nl(e):nl.ceil(e),El(nl.count(ll(e),e)+(4===ll(e).getDay()),t,2)}function oc(e){return e.getDay()}function ac(e,t){return El(Js.count(ll(e),e),t,2)}function ic(e,t){return El(e.getFullYear()%100,t,2)}function sc(e,t){return El(e.getFullYear()%1e4,t,4)}function lc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+El(t/60|0,"0",2)+El(t%60,"0",2)}function cc(e,t){return El(e.getUTCDate(),t,2)}function uc(e,t){return El(e.getUTCHours(),t,2)}function dc(e,t){return El(e.getUTCHours()%12||12,t,2)}function hc(e,t){return El(1+Zs.count(ul(e),e),t,3)}function pc(e,t){return El(e.getUTCMilliseconds(),t,3)}function fc(e,t){return pc(e,t)+"000"}function gc(e,t){return El(e.getUTCMonth()+1,t,2)}function mc(e,t){return El(e.getUTCMinutes(),t,2)}function vc(e,t){return El(e.getUTCSeconds(),t,2)}function _c(e){var t=e.getUTCDay();return 0===t?7:t}function yc(e,t){return El(zs.count(ul(e),e),t,2)}function xc(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Xs(e):Xs.ceil(e),El(Xs.count(ul(e),e)+(4===ul(e).getUTCDay()),t,2)}function bc(e){return e.getUTCDay()}function Cc(e,t){return El(Ys.count(ul(e),e),t,2)}function Ec(e,t){return El(e.getUTCFullYear()%100,t,2)}function Sc(e,t){return El(e.getUTCFullYear()%1e4,t,4)}function Lc(){return"+0000"}function kc(){return"%"}function Ac(e){return+e}function wc(e){return Math.floor(+e/1e3)}gl=fl({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"]}),ml=gl.format,gl.parse,vl=gl.utcFormat,_l=gl.utcParse;var Dc="%Y-%m-%dT%H:%M:%S.%LZ";function Tc(e){return new Date(e)}function Mc(e){return e instanceof Date?+e:+new Date(+e)}function Pc(e,t,n,r,o,a,i,s,l,c){var u=gi(),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(e){return(l(e)<e?p:s(e)<e?f:i(e)<e?g:a(e)<e?m:r(e)<e?o(e)<e?v:_:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,Mc)):h().map(Tc)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?b:c(t)},u.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}(n,e)):u},u.copy=function(){return fi(u,Pc(e,t,n,r,o,a,i,s,l,c))},u}function Nc(){return mi.apply(Pc(Ms,Ps,cs,ss,Ji,$i,Ki,ji,qi,ml).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||vl(Dc),+new Date("2000-01-01T00:00:00.000Z")||_l(Dc);class Fc extends Map{constructor(e,t=Bc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Ic(this,e))}has(e){return super.has(Ic(this,e))}set(e,t){return super.set(Oc(this,e),t)}delete(e){return super.delete(Hc(this,e))}}class Vc extends Set{constructor(e,t=Bc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(Ic(this,e))}add(e){return super.add(Oc(this,e))}delete(e){return super.delete(Hc(this,e))}}function Ic({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Oc({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Hc({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Bc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Rc=Symbol("implicit");function Wc(){var e=new Fc,t=[],n=[],r=Rc;function o(o){let a=e.get(o);if(void 0===a){if(r!==Rc)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Fc;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Wc(t,n).unknown(r)},mi.apply(o,arguments),o}function zc(){var e,t,n=Wc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,h=d?i:a,p=d?a:i;e=(p-h)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return h+e*t}));return o(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return zc(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},mi.apply(d(),arguments)}var Yc="http://www.w3.org/1999/xhtml",Uc={svg:"http://www.w3.org/2000/svg",xhtml:Yc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qc(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Uc.hasOwnProperty(t)?{space:Uc[t],local:e}:e}function Xc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Yc&&t.documentElement.namespaceURI===Yc?t.createElement(e):t.createElementNS(n,e)}}function jc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Gc(e){var t=qc(e);return(t.local?jc:Xc)(t)}function Kc(){}function Zc(e){return null==e?Kc:function(){return this.querySelector(e)}}function $c(){return[]}var Qc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Jc=document.documentElement;if(!Jc.matches){var eu=Jc.webkitMatchesSelector||Jc.msMatchesSelector||Jc.mozMatchesSelector||Jc.oMatchesSelector;Qc=function(e){return function(){return eu.call(this,e)}}}}var tu=Qc;function nu(e){return new Array(e.length)}function ru(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ru.prototype={constructor:ru,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ou(e,t,n,r,o,a){for(var i,s=0,l=t.length,c=a.length;s<c;++s)(i=t[s])?(i.__data__=a[s],r[s]=i):n[s]=new ru(e,a[s]);for(;s<l;++s)(i=t[s])&&(o[s]=i)}function au(e,t,n,r,o,a,i){var s,l,c,u={},d=t.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+i.call(l,l.__data__,s,t),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+i.call(e,a[s],s,a)])?(r[s]=l,l.__data__=a[s],u[c]=null):n[s]=new ru(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function iu(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function su(e){return function(){this.removeAttribute(e)}}function lu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cu(e,t){return function(){this.setAttribute(e,t)}}function uu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function du(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function hu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function pu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function fu(e){return function(){this.style.removeProperty(e)}}function gu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function mu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function vu(e){return function(){delete this[e]}}function _u(e,t){return function(){this[e]=t}}function yu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function xu(e){return e.trim().split(/^|\s+/)}function bu(e){return e.classList||new Cu(e)}function Cu(e){this._node=e,this._names=xu(e.getAttribute("class")||"")}function Eu(e,t){for(var n=bu(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Su(e,t){for(var n=bu(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Lu(e){return function(){Eu(this,e)}}function ku(e){return function(){Su(this,e)}}function Au(e,t){return function(){(t.apply(this,arguments)?Eu:Su)(this,e)}}function wu(){this.textContent=""}function Du(e){return function(){this.textContent=e}}function Tu(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Mu(){this.innerHTML=""}function Pu(e){return function(){this.innerHTML=e}}function Nu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Fu(){this.nextSibling&&this.parentNode.appendChild(this)}function Vu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Iu(){return null}function Ou(){var e=this.parentNode;e&&e.removeChild(this)}function Hu(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Bu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Cu.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Ru={},Wu=null;function zu(e,t,n){return e=Yu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Yu(e,t,n){return function(r){var o=Wu;Wu=r;try{e.call(this,this.__data__,t,n)}finally{Wu=o}}}function Uu(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function qu(e,t,n){var r=Ru.hasOwnProperty(e.type)?zu:Yu;return function(o,a,i){var s,l=this.__on,c=r(t,a,i);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Xu(e,t,n){var r=pu(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function ju(e,t){return function(){return Xu(this,e,t)}}function Gu(e,t){return function(){return Xu(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ru={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ku=[null];function Zu(e,t){this._groups=e,this._parents=t}function $u(e){return"string"==typeof e?new Zu([[document.querySelector(e)]],[document.documentElement]):new Zu([[e]],Ku)}Zu.prototype=function(){return new Zu([[document.documentElement]],Ku)}.prototype={constructor:Zu,select:function(e){"function"!=typeof e&&(e=Zc(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i,s=t[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(i=e.call(a,a.__data__,u,s))&&("__data__"in a&&(i.__data__=a.__data__),c[u]=i);return new Zu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?$c:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i,s=t[a],l=s.length,c=0;c<l;++c)(i=s[c])&&(r.push(e.call(i,i.__data__,c,s)),o.push(i));return new Zu(r,o)},filter:function(e){"function"!=typeof e&&(e=tu(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],s=i.length,l=r[o]=[],c=0;c<s;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&l.push(a);return new Zu(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?au:ou,o=this._parents,a=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],h=a[u],p=h.length,f=e.call(d,d&&d.__data__,u,o),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,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Zu(s,o))._enter=l,s._exit=c,s},enter:function(){return new Zu(this._enter||this._groups.map(nu),this._parents)},exit:function(){return new Zu(this._exit||this._groups.map(nu),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l,c=t[s],u=n[s],d=c.length,h=i[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)i[s]=t[s];return new Zu(i,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=iu);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,s=n[a],l=s.length,c=o[a]=new Array(l),u=0;u<l;++u)(i=s[u])&&(c[u]=i);c.sort(t)}return new Zu(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,s=a.length;i<s;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this},attr:function(e,t){var n=qc(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?lu:su:"function"==typeof t?n.local?hu:du:n.local?uu:cu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?fu:"function"==typeof t?mu:gu)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||pu(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?vu:"function"==typeof t?yu:_u)(e,t)):this.node()[e]},classed:function(e,t){var n=xu(e+"");if(arguments.length<2){for(var r=bu(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?Au:t?Lu:ku)(n,t))},text:function(e){return arguments.length?this.each(null==e?wu:("function"==typeof e?Tu:Du)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Mu:("function"==typeof e?Nu:Pu)(e)):this.node().innerHTML},raise:function(){return this.each(Fu)},lower:function(){return this.each(Vu)},append:function(e){var t="function"==typeof e?e:Gc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Gc(e),r=null==t?Iu:"function"==typeof t?t:Zc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ou)},clone:function(e){return this.select(e?Bu:Hu)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,a=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),i=a.length;if(!(arguments.length<2)){for(s=t?qu:Uu,null==n&&(n=!1),r=0;r<i;++r)this.each(s(a[r],t,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<i;++r)if((o=a[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Gu:ju)(e,t))}};var Qu=0;function Ju(){this._="@"+(++Qu).toString(36)}function ed(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function td(e){return"string"==typeof e?new Zu([document.querySelectorAll(e)],[document.documentElement]):new Zu([null==e?[]:e],Ku)}Ju.prototype=function(){return new Ju}.prototype={constructor:Ju,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var nd,rd,od,ad,id=Vs((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Is)}),(function(e,t){return(t-e)/Is}),(function(e){return e.getUTCSeconds()})),sd=id,ld=(id.range,Vs((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Is)}),(function(e,t){e.setTime(+e+t*Os)}),(function(e,t){return(t-e)/Os}),(function(e){return e.getMinutes()}))),cd=ld,ud=(ld.range,Vs((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Is-e.getMinutes()*Os)}),(function(e,t){e.setTime(+e+t*Hs)}),(function(e,t){return(t-e)/Hs}),(function(e){return e.getHours()}))),dd=ud,hd=(ud.range,Vs((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),pd=hd;function fd(e,t,n){var r=e.domainNRangeValues,o=e.showRoundOffXTickValues,a=void 0!==o&&o,i=e.xAxistickSize,s=void 0===i?6:i,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisCount,d=void 0===u?6:u,h=e.xAxisElement,p=Pi().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);a&&p.nice();var f=Zo(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return wd(r,n)}));t===rd.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&$u(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function gd(e,t){var n=t?t.format:ml,r=n(".%L"),o=n(":%S"),a=n("%I:%M"),i=n("%I %p"),s=n("%a %d"),l=n("%b %d"),c=n("%B"),u=n("%Y");return(sd(e)<e?r:cd(e)<e?o:dd(e)<e?a:il(e)<e?i:pd(e)<e?Qs(e)<e?s:l:ll(e)<e?c:u)(e)}function md(e,t,n,r,o,a){return void 0===a&&(a=!1),r===rd.HorizontalBarChartWithAxis?function(e,t,n,r){var o=e.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=e.yAxisElement,s=void 0===i?null:i,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=v||a.endValue,C=b>c?b:c,E=a.startValue<d?0:d,S=Pi().domain([E,C]).range([h-p.bottom,p.top]),L=(t?Ko(S):$o(S)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(Ai(".2~s")),s&&$u(s).call(L).selectAll("text").attr("aria-hidden","true"),S}(e,t):function(e,t,n,r){void 0===r&&(r=!1);var o=e.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=e.yAxisElement,s=void 0===i?null:i,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.containerWidth,f=e.margins,g=e.tickPadding,m=void 0===g?12:g,v=e.maxOfYVal,_=void 0===v?0:v,y=e.yAxisTickFormat,x=e.yAxisTickCount,b=void 0===x?4:x,C=e.eventAnnotationProps,E=e.eventLabelHeight,S=_||a.endValue,L=S>c?S:c,k=a.startValue<d?0:d,A=function(e,t,n){for(var r=Math.ceil((e-t)/n),o=[t,t+r];o[o.length-1]<e;)o.push(o[o.length-1]+r);return o}(L,k,b),w=Pi().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?E:0)]),D=(!t&&r||t&&!r?Ko(w):$o(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(Ai(".2~s")),s&&$u(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(e,t,n,a)}hd.range,function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart",e[e.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(rd||(rd={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(od||(od={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(ad||(ad={}));function vd(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return o(o({},t),{legend:e.legend,color:e.color,index:e.index})}));t=t.concat(n)}));var n={};return t.forEach((function(e){var t=e.x instanceof Date?e.x.getTime():e.x;t in n?n[t].push({legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}):n[t]=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}]})),Object.keys(n).map((function(e){return{x:Number(e),values:n[e]}}))}var _d=function(e,t){void 0===t&&(t="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var o=document.querySelector(t);if(o){var a=window.getComputedStyle(o,null),i=a.getPropertyValue("font-weight"),s=a.getPropertyValue("font-size"),l=a.getPropertyValue("font-family");r.font="".concat(i," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';e.forEach((function(e){n=Math.max(r.measureText(e.toString()).width,n)}))}return n};function yd(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=$u("body").append("div").attr("id",r).attr("class",t).style("opacity",0),a=n.selectAll("#BaseSpan")._groups[0],i=a&&Object.keys(a).length,s=[],l=0;l<i;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){$u(u[e]).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",Wu.pageX+"px").style("top",Wu.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function xd(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function bd(e,t,n,r,o,a,s,l,c){var u;if(a===od.NumericAxis)switch(r){case rd.AreaChart:case rd.LineChart:u=function(e,t,n,r){var o=ra(e,(function(e){return ra(e.data,(function(e){return e.x}))})),a=na(e,(function(e){return na(e.data,(function(e){return e.x}))})),i=t.left,s=n-t.right;return r?{dStartValue:a,dEndValue:o,rStartValue:i,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:i,rEndValue:s}}(e,t,n,o);break;case rd.VerticalStackedBarChart:u=function(e,t,n,r,o){var a=ra(e,(function(e){return e.x})),i=na(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(e,t,n,o,s);break;case rd.VerticalBarChart:u=function(e,t,n,r,o){var a=na(e,(function(e){return e.x})),i=ra(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,o,s);break;case rd.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var a=na(e,(function(e){return e.x})),i=r?t.left:t.left+o,s=r?n-t.right-o:n-t.right;return r?{dStartValue:a,dEndValue:0,rStartValue:i,rEndValue:s}:{dStartValue:0,dEndValue:a,rStartValue:i,rEndValue:s}}(e,t,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===od.DateAxis)switch(r){case rd.AreaChart:case rd.LineChart:u=function(e,t,n,r,o){void 0===o&&(o=[]);var a=ra(e,(function(e){return ra(e.data,(function(e){return e.x}))})),s=na(e,(function(e){return na(e.data,(function(e){return e.x}))})),l=ra(i(i([],o,!0),[a],!1)),c=na(i(i([],o,!0),[s],!1)),u=t.left,d=n-t.right;return r?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,o,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case rd.VerticalStackedBarChart:case rd.GroupedVerticalBarChart:case rd.VerticalBarChart:case rd.HeatMapChart:u=function(e,t,n){var r=e.left,o=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(t,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function Cd(e,t,n){var r,o,a;switch(void 0===n&&(n=ad.NumericAxis),t){case rd.AreaChart:case rd.LineChart:r=function(e){var t=na(e,(function(e){return na(e.data,(function(e){return e.y}))}));return{startValue:ra(e,(function(e){return ra(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case rd.VerticalStackedBarChart:a=na(o=e,(function(e){return e.y})),r={startValue:ra(o,(function(e){return e.y})),endValue:a};break;case rd.VerticalBarChart:r=function(e){var t=na(e,(function(e){return e.y}));return{startValue:ra(e,(function(e){return e.y})),endValue:t}}(e);break;case rd.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===ad.NumericAxis){var n=na(e,(function(e){return e.y}));return{startValue:ra(e,(function(e){return e.y})),endValue:n}}return{startValue:0,endValue:0}}(e,n);break;default:r={startValue:0,endValue:0}}return r}var Ed,Sd,Ld=function(e,t){if(t)switch(typeof e){case"string":return od.StringAxis;case"number":return od.NumericAxis;default:return od.DateAxis}else switch(typeof e){case"string":return ad.StringAxis;case"number":return ad.NumericAxis;default:return ad.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(Ed||(Ed={})),function(e){e[e.dottedLine=0]="dottedLine"}(Sd||(Sd={}));var kd=((nd={})[Ed.circle]={widthRatio:1},nd[Ed.square]={widthRatio:1},nd[Ed.triangle]={widthRatio:1},nd[Ed.diamond]={widthRatio:1},nd[Ed.pyramid]={widthRatio:1},nd[Ed.hexagon]={widthRatio:2},nd[Ed.pentagon]={widthRatio:1.168},nd[Ed.octagon]={widthRatio:2.414},nd),Ad=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},wd=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e};function Dd(e){return wi(e<1e3?".2~":".1",e)(e)}var Td,Md=he(),Pd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,o=e.YValue,a=e.styles,i=e.theme,l=e.ratio,c=e.descriptionMessage,u=e.culture;return this._classNames=Md(a,{theme:i,color:t,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},wd(n,u)),s.createElement("div",{className:this._classNames.calloutContentY},wd(o,u))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},wd(l[0],u)),"/",s.createElement("span",{className:this._classNames.denominator},wd(l[1],u))))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},t}(s.Component),Nd=function(e){var t=e.color,n=e.XValue,r=e.theme,o=e.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid ".concat(t)}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:Bn.bold},denominator:{fontWeight:Bn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(r.semanticColors.menuDivider)}]}},Fd=S(Pd,Nd);function Vd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function Id(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Vd(e,e[n],t[n]))}(e,{componentDidMount:Od,componentDidUpdate:Hd,componentWillUnmount:Bd})}function Od(){Rd(this.props.componentRef,this)}function Hd(e){e.componentRef!==this.props.componentRef&&(Rd(e.componentRef,null),Rd(this.props.componentRef,this))}function Bd(){Rd(this.props.componentRef,null)}function Rd(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Wd(e,t){var n=ke(e,(function(e){return t===e||e.hasAttribute(go)}));return null!==n&&n.hasAttribute(go)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Td||(Td={}));var zd,Yd="data-is-focusable",Ud="data-focuszone-id",qd="tabindex",Xd="data-no-vertical-wrap",jd="data-no-horizontal-wrap",Gd=999999999,Kd=-999999999;function Zd(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var $d,Qd={},Jd=new Set,eh=["text","number","password","email","tel","url","search","textarea"],th=!1,nh=function(e){function t(n){var r,o,a,i,l,c=this;(c=e.call(this,n)||this)._root=s.createRef(),c._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(l.refs,e)||(l.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(l)),l.refs=e,l.resolver}),c._onFocus=function(e){if(!c._portalContainsElement(e.target)){var t,n=c.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,i=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=c._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==c._root.current;){if(Oe(h)&&c._isImmediateDescendantOfZone(h)){t=h;break}h=Le(h,th)}if(l&&e.target===c._root.current){var p=u&&"function"==typeof u&&c._root.current&&u(c._root.current);p&&Oe(p)?(t=p,p.focus()):(c.focus(!0),c._activeElement&&(t=null))}var f=!c._activeElement;t&&t!==c._activeElement&&((d||f)&&c._setFocusAlignment(t,!0,!0),c._activeElement=t,f&&c._updateTabIndexes()),r&&r(c._activeElement,e),(a||o)&&e.stopPropagation(),s?s(e):i&&i()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(e){if(!c._portalContainsElement(e.target)&&!c.props.disabled){for(var t=e.target,n=[];t&&t!==c._root.current;)n.push(t),t=Le(t,th);for(;n.length&&((t=n.pop())&&Oe(t)&&c._setActiveElement(t,!0),!He(t)););}},c._onKeyDown=function(e,t){if(!c._portalContainsElement(e.target)){var n=c.props,r=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,i=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(o||(c.props.onKeyDown&&c.props.onKeyDown(e),e.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(e)||a&&a(e))&&c._isImmediateDescendantOfZone(e.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Be(e.target))return;if(!c.focusElement(Fe(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==Td.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusLeft(t)))break;return;case 39:if(r!==Td.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusRight(t)))break;return;case 38:if(r!==Td.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusUp()))break;return;case 40:if(r!==Td.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusDown()))break;return;case 34:if(!i&&c._moveFocusPaging(!0))break;return;case 33:if(!i&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(e.target)){var u=!1;if(c._processingTabKey=!0,u=r!==Td.vertical&&c._shouldWrapFocus(c._activeElement,jd)?(le(t)?!e.shiftKey:e.shiftKey)?c._moveFocusLeft(t):c._moveFocusRight(t):e.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,u)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!1))return!1;var d=c._root.current&&c._root.current.firstChild;if(c._root.current&&d&&c.focusElement(Fe(c._root.current,d,!0)))break;return;case 35:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!0))return!1;var h=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(Ne(c._root.current,h,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(e,t,n){var r=c._focusAlignment.left||c._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(t.bottom),i=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>a||!e&&i<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):c._shouldWrapFocus(c._activeElement,Xd)?Gd:Kd},Id(c),So("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=xe("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var u=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:u,c._shouldRaiseClicksOnSpace=null!==(i=n.shouldRaiseClicksOnSpace)&&void 0!==i?i:u,c}return r(t,e),t.getOuterZones=function(){return Jd.size},t._onKeyDownCapture=function(e){9===e.which&&Jd.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Qd[this._id]=this,e){for(var n=Le(e,th);n&&n!==this._getDocument().body&&1===n.nodeType;){if(He(n)){this._isInnerZone=!0;break}n=Le(n,th)}this._isInnerZone||(Jd.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._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()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!Ae(this._root.current,this._activeElement,th)||this._defaultFocusElement&&!Ae(this._root.current,this._defaultFocusElement,th))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var a=o[r],i=n.children[Math.min(a,n.children.length-1)];if(!i)break;n=i}return Oe(n)&&Ve(n)?n:Fe(e,n,!0)||Ne(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Qd[this._id],this._isInnerZone||(Jd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,a=t.rootProps,i=t.ariaDescribedBy,l=t.ariaLabelledBy,c=t.className,u=et(this.props,Ze),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Pr=Mr({},h)),Pr);return s.createElement(d,o({"aria-labelledby":l,"aria-describedby":i},u,a,{className:tt((zd||(zd=ot({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),zd),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Yd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Qd[n.getAttribute(Ud)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Ae(this._root.current,this._activeElement)&&Oe(this._activeElement)&&(!t||Ie(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Fe(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Ne(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Ae(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Le(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(He(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;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(Yd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Zd(n,t),!0;n=Le(n,th)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(He(e))return Qd[e.getAttribute(Ud)];for(var t=e.firstElementChild;t;){if(He(t))return Qd[t.getAttribute(Ud)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,a=-1,i=void 0,s=!1,l=this.props.direction===Td.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?Fe(this._root.current,o):Ne(this._root.current,o),!l){i=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===a){i=o;break}if(u>-1&&(-1===a||u<a)&&(a=u,i=o),a>=0&&u<0)break}}while(o);if(i&&i!==this._activeElement)s=!0,this.focusElement(i);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Fe(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ne(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var a=-1,i=Math.floor(o.top),s=Math.floor(r.bottom);return i<s?e._shouldWrapFocus(e._activeElement,Xd)?Gd:Kd:((-1===t&&i>=s||i===t)&&(t=i,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var a=-1,i=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return i>l?e._shouldWrapFocus(e._activeElement,Xd)?Gd:Kd:((-1===t&&i<=l||s===t)&&(t=s,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,jd);return!!this._moveFocus(le(e),(function(r,o){var a=-1;return(le(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==Td.vertical?a=r.right-o.right:n||(a=Kd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,jd);return!!this._moveFocus(!le(e),(function(r,o){var a=-1;return(le(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==Td.vertical?a=o.left-r.left:n||(a=Kd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=it(n);if(!r)return!1;var o=-1,a=void 0,i=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?Fe(this._root.current,n):Ne(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(e,c,u);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>i?(i=d,o=g,a=n):!e&&p<s?(s=p,o=g,a=n):(-1===o||g<=o)&&(o=g,a=n))}}while(n);var m=!1;if(a&&a!==this._activeElement)m=!0,this.focusElement(a),this._setFocusAlignment(a,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Fe(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ne(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===Td.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,a=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:a}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=a)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Le(e,th);t&&t!==this._root.current&&t!==this._getDocument().body;){if(He(t))return t;t=Le(t,th)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Ae(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Oe(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];He(r)?"true"===r.getAttribute(Yd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(qd)&&r.setAttribute(qd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(qd)&&r.setAttribute(qd,"0"))):(r.getAttribute&&"false"===r.getAttribute(Yd)&&r.setAttribute(qd,"-1"),Oe(r)?this.props.disabled?r.setAttribute(qd,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(qd)&&r.setAttribute(qd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(qd)&&r.setAttribute(qd,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&eh.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,a=e.readOnly;if(r||n>0&&!t&&!a||n!==o.length&&t&&!a||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t){return"true"!==function(e,t){var n=ke(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Wd(e,this._root.current)},t.prototype._getDocument=function(){return te(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Td.bidirectional,shouldRaiseClicks:!0},t}(s.Component);function rh(e){return function(e){return e.clientWidth<e.scrollWidth}(e)||function(e){return e.clientHeight<e.scrollHeight}(e)}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}($d||($d={}));var oh,ah=he(),ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?s.createElement("p",{className:t._classNames.subText},e.content):s.createElement("div",{className:t._classNames.subText},e.content)},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,a=e.directionalHintForRTL,i=e.styles,l=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,h=e.targetElement,p=e.theme;return this._classNames=ah(i,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:c}),s.createElement(Vo,o({target:h,directionalHint:r,directionalHintForRTL:a},n,et(this.props,Je,["id"]),{className:this._classNames.root}),s.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)))},t.defaultProps={directionalHint:Se.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),sh=S(ih,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,a=void 0===o?0:o,i=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+a)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Wn.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:i,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],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(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(oh||(oh={}));var lh,ch,uh=he(),dh=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=xe("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case $d.Parent:return r._tooltipHost.current.parentElement;case $d.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n=r.props,o=n.overflowMode,a=n.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==o){var i=r._getTargetElement();if(i&&!rh(i))return}if(!e.target||!Wd(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==oh.zero){var s=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===It||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.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(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case oh.medium:return 300;case oh.long:return 500;default:return 0}},Id(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Ot(r),r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,a=e.directionalHint,i=e.directionalHintForRTL,l=e.hostClassName,c=e.id,u=e.setAriaDescribedBy,d=void 0===u||u,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=uh(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=o(o({id:"".concat(m,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:i,calloutProps:nt({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},et(this.props,Je,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?s.createElement(s.Fragment,null,e.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",o({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}),n,y&&s.createElement(sh,o({},v)),s.createElement("div",{hidden:!0,id:m,style:Gn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:oh.medium},t}(s.Component),hh={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},ph=S(dh,(function(e){var t=e.className,n=e.theme;return{root:[ar(hh,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),fh=function(e){function t(t){var n=e.call(this,t)||this;return n._tooltipChild=s.createRef(),n._checkTextOverflow=function(){var e=n._getTargetElement(),t=!!e&&rh(e);t!==n.state.textOverflow&&n.setState({textOverflow:t})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Ot(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.content,r=e.accessibilityData;return s.createElement(ph,{overflowMode:$d.Self,hostClassName:t,content:n},s.createElement("span",o({},Ad(r),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),n))},t.prototype.componentDidMount=function(){var e=this._getTargetElement();window.ResizeObserver&&e&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(e))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._async.dispose()},t}(s.Component),gh=he(),mh=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=le(),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=gh(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(e){return n.props.barChartCustomData?s.createElement("div",{role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?"".concat(e.horizontalBarChartdata.x,"/").concat(e.horizontalBarChartdata.y):0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xe("callout"),n._emptyChartId=xe("_HBC_empty"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var a=r.palette,i=0;return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){i=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-i,y:t.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=e.props.variant===_e.AbsoluteScale?null:e._getChartDataText(t),o=e._createBars(t,a),l=e._uniqLineText+"_"+n,c=gh(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:c.items},s.createElement(nh,{direction:Td.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(fh,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(nh,{direction:Td.horizontal,className:e._classNames.chartWrapper},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},o)))))})),s.createElement(Vo,o({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Se.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,Ad(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Fd,{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}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=Ee(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],a=r.horizontalBarChartdata.x,i=r.horizontalBarChartdata.y,l=Ad(e.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",o({className:this._classNames.chartTitleRight},l),wd(a,t));case"fraction":return s.createElement("div",o({},l),s.createElement("span",{className:this._classNames.chartTitleRight},wd(a,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+wd(i,t)));case"percentage":var c="".concat(wd(Math.round(a/i*100),t),"%");return s.createElement("div",o({className:this._classNames.chartTitleRight},l),c)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r={left:"calc("+Math.round((n||0)/t*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=[],a=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),i=0,l=0,c=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(l=n/a*100)<0?l=0:l<1&&0!==l&&(l=1),c+=l}));var u=0!==c?c/100:1,d=e.chartData.map((function(t,c){var d=t.color?t.color:r[Math.floor(4*Math.random()+1)],h=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;c>0&&(i+=l),(l=h/a*100)<0?l=0:l<1&&0!==l?l=1/u:l/=u,o.push(i);var p=t.horizontalBarChartdata.x;if(1===c&&n.props.variant===_e.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:c});var f=e.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:c,x:"".concat(n._isRTL?100-o[c]:o[c],"%"),y:n._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(n._isRTL?-4:4,")"),className:n._classNames.barLabel,"aria-hidden":!0},wi(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:c,x:"".concat(n._isRTL?100-o[c]-l:o[c],"%"),y:0,"data-is-focusable":""!==t.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,onFocus:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,role:"img","aria-label":n._getAriaLabel(t),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},t}(s.Component),vh=S(mh,(function(e){var t=e.className,n=e.theme,r=e.width,a=e.barHeight,i=e.showTriangle,s=e.variant,l=e.hideLabels,c=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{marginBottom:i||s===_e.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:a||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:o(o({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===_e.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Hn.medium,color:n.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:o(o({},n.fonts.small),{fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==_e.AbsoluteScale||l?0:40}}})),_h={host:"ms-HoverCard-host"},yh=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var a;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var i=document.createEvent("HTMLEvents");i.initEvent(n,o||!1,!0),nt(i,r),a=t.dispatchEvent(i)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==a;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],h=0;!1!==a&&h<d.length;h++){var p=d[h];p.objectCallback&&(a=p.objectCallback.call(p.parent,r))}t=o?t.parent:null}return a},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var a=this;if(n.indexOf(",")>-1)for(var i=n.split(/[ ,]+/),s=0;s<i.length;s++)this.on(t,i[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((i=t.__events__=t.__events__||{})[n]=i[n]||{count:0},i[n][this._id]=i[n][this._id]||[],i[n][this._id].push(c),i[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!a._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!a._isDisposed)return r.apply(l,e)};this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var a=this._eventRecords[o];if(!(e&&e!==a.target||t&&t!==a.eventName||n&&n!==a.callback||"boolean"==typeof r&&r!==a.options)){var i=a.target.__events__,s=i[a.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(a),1)):(s.count-=l.length,delete i[a.eventName][this._id]),s.count||delete i[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(lh||(lh={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(ch||(ch={}));var xh,bh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Ch(e,t){var n=s.useRef(t);return n.current||(n.current=xe(e)),n.current}function Eh(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return xo((function(){t.current=e}),[e]),Rr((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(xh||(xh={}));var Sh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},Lh=s.forwardRef((function(e,t){var n,r,a,i=s.useRef(null),l=s.useRef(null),c=s.useRef(null),u=Rt(i,t),d=function(){var e;return null===(e=s.useContext(Wt).window)||void 0===e?void 0:e.document}(),h=null===(n=ko(!1))||void 0===n||n,p=Ye(Sh,e),f=Rr({hasFocus:!1,focusStackId:Ch("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,E=p.disableRestoreFocus,S=void 0===E?p.ignoreExternalFocusing:E,L=p.isClickableOutsideFocusTrap,k=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==c.current&&We(e)}),[]),D=Eh((function(){if(i.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&Ae(i.current,e))w(e);else{var t=null;if("string"==typeof C)t=i.current.querySelector(C);else if(C)t=C(i.current);else if(b){var n="string"==typeof b?b:b();t=i.current.querySelector("."+n)}t||(t=Fe(i.current,i.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!v&&i.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),Ne(i.current,c.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Fe(e,t,r,!1,!1,!0,!1,!0)}(i.current,l.current,0,!1);n&&(n===l.current||n===c.current?D():n.focus())}},M=Eh((function(e){if(Lh.focusStack=Lh.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;S||"function"!=typeof(null==e?void 0:e.focus)||!Ae(i.current,t)&&t!==d.body||w(e)}})),P=Eh((function(e){if(!v&&f.focusStackId===Lh.focusStack.slice(-1)[0]){var t=e.target;t&&!Ae(i.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return y&&e.push(ze(window,"focus",P,!0)),L||e.push(ze(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[y,L]),s.useEffect((function(){if(!v&&(h||y)&&i.current){Lh.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return _||Ae(i.current,e)||D(),function(){return M(e)}}}),[y,v]),s.useEffect((function(){if(!v&&k)return Vt(i.current)}),[v,k,i]),r=function(){delete f.previouslyFocusedElementInTrapZone},(a=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=a.current)||void 0===e||e.call(a)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",o({"aria-labelledby":p.ariaLabelledBy},et(p,Je),{ref:u,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===c.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==c.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),Ae(i.current,n)||(f.hasFocus=!1)}}),s.createElement("div",o({},A,{ref:l})),g,s.createElement("div",o({},A,{ref:c})))}));Lh.displayName="FocusTrapZone",Lh.focusStack=[];var kh,Ah=function(e){return s.createElement(Vo,o({},e),s.createElement(Lh,o({disabled:e.hidden},e.focusTrapProps),e.children))},wh=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,a=void 0===r?Se.bottomLeftEdge:r,i=e.directionalHintFixed,l=e.targetElement,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=o(o(o({},et(e,Je)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:i,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,u?s.createElement(Ah,o({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(Vo,o({},m),f))},Dh=he(),Th=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){e.which===It&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return s.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})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new Ot(n),Id(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,a=e.theme,i=e.mode,l=e.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=n+r;this._classNames=Dh(t,{theme:a,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:i===xh.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(wh,o({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),Mh=S(Th,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,a=e.compactCardHeight,i=e.expandedCardHeight,s=e.className,l=n.palette,c=ar(bh,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:a}],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}}},o&&{height:i}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ph={root:"ms-PlainCard-root"},Nh=he(),Fh=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===It&&n.props.onLeave&&n.props.onLeave(e)},Id(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Nh(t,{theme:n,className:r});var a=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(wh,o({},this.props,{content:a,className:this._classNames.root}))},t}(s.Component),Vh=S(Fh,(function(e){var t,n=e.theme,r=e.className;return{root:[ar(Ph,n).root,{pointerEvents:"auto",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Ih=he(),Oh=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=s.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:xh.compact,openMode:"keydown"===e.type?lh.hotKey:lh.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==It)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==It||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:xh.compact,openMode:lh.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:xh.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,a=o?n._getTargetElement(o):n._getTargetElement(n.props.target),i=n._nativeDismissEvent;a&&(n._events.on(a,"mouseenter",n._cardOpen),n._events.on(a,"mouseleave",i),t?n._events.on(a,"keydown",n._cardOpen):(n._events.on(a,"focus",n._cardOpen),n._events.on(a,"blur",i)),r?n._events.on(a,"click",n._instantOpenAsExpanded):(n._events.on(a,"mousedown",i),n._events.on(a,"keydown",i)))},Id(n),n._async=new Ot(n),n._events=new yh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:xh.compact,openMode:lh.hover},n}return r(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:xh.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:xh.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,a=e.setAriaDescribedBy,i=void 0===a||a,l=e.styles,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||xe("hoverCard");this._classNames=Ih(l,{theme:c,className:u});var x=o(o({},et(this.props,Je)),{id:y,trapFocus:!!p,firstFocus:f||_===lh.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=o(o(o({},t),x),{mode:v}),C=o(o({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===ch.expanding?s.createElement(Mh,o({},b)):s.createElement(Vh,o({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return te().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:ch.expanding},t}(s.Component),Hh=S(Oh,(function(e){var t=e.className,n=e.theme;return{host:[ar(_h,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(kh||(kh={}));var Bh=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function a(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var o=t();return r.addMeasurementToCache(e,o),o}function i(e,t,o){for(var i=e,s=a(e,o);s>n;){var l=t(i);if(void 0===l)return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};i=l}return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return o(o({},t),function(e,t,r,a){var i;return i=e>n?a?{resizeDirection:"grow",dataToMeasure:a(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,o(o({},i),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var c=o(o({},t),{measureContainer:!1});return t.dataToMeasure&&(c="grow"===t.resizeDirection&&e.onGrowData?o(o({},c),function(e,t,s,l){for(var c=e,u=a(e,s);u<n;){var d=t(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return o({resizeDirection:"shrink"},i(c,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):o(o({},c),i(t.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:o({},e),resizeDirection:"grow",measureContainer:!0}}}},Rh=s.createContext({isMeasured:!1}),Wh={position:"fixed",visibility:"hidden"},zh={position:"relative"};function Yh(e,t){var n;switch(t.type){case"resizeData":return o({},t.value);case"dataToMeasure":return o(o({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return o(o({},e),((n={})[t.type]=t.value,n))}}var Uh={isMeasured:!0},qh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t),a=function(e,t){var n=Rr(Bh),r=s.useRef(null),a=s.useRef(null),i=s.useRef(!1),l=Ht(),c=function(e,t,n){var r=Rr((function(){return t.getInitialResizeGroupState(e.data)})),a=s.useReducer(Yh,r),i=a[0],l=a[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=s.useRef(r);return c.current=o({},i),[c,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),u=c[0],d=c[1],h=c[2];s.useEffect((function(){var t;u.current.renderedData&&(i.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var o=void 0;if(u.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();o=e.direction===kh.vertical?s.height:s.width}var l=n.getNextState(e,u.current,(function(){var t=i.current?a:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===kh.vertical?n.height:n.width}),o);d(l)}),t.current)})),Bt(zt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!i.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,r,a,p,f]}(e,n),i=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]),function(e){wo({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,m=et(e,Je,["data"]);return s.createElement("div",o({},m,{className:f,ref:r}),s.createElement("div",{style:zh},h&&!p&&s.createElement("div",{style:Wh,ref:d},s.createElement(Rh.Provider,{value:Uh},g(i))),s.createElement("div",{ref:u,style:p?Wh:void 0,"data-automation-id":"visibleContent"},p?g(i):l&&g(l))))}));qh.displayName="ResizeGroupBase";var Xh,jh=qh;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Xh||(Xh={}));var Gh=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Xh.PERSISTED_KEYTIP_ADDED:Xh.KEYTIP_ADDED;yh.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||yh.raise(this,Xh.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Xh.PERSISTED_KEYTIP_REMOVED:Xh.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||yh.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){yh.raise(this,Xh.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){yh.raise(this,Xh.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=i([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return o(o({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){yh.raise(this,Xh.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=xe()),{keytip:o({},e),uniqueID:t}},e._instance=new e,e}(),Kh=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var a=o[r];n[t.register(a,!0)]=a}},Zh=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},$h=function(e){var t=Gh.getInstance(),n=e.className,r=e.overflowItems,a=e.keytipSequences,i=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=Rr({}),u=s.useCallback((function(e){return i?i(e):e.subMenuProps?e.subMenuProps.items:void 0}),[i]),d=s.useMemo((function(){var e=[],n=[];return a?null==r||r.forEach((function(r){var i,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(r)?(l.onExecute=t.menuExecute.bind(t,a,null===(i=null==r?void 0:r.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var c=o(o({},r),{keytipProps:o(o({},s),{overflowSetSequence:a})});null==n||n.push(c)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,u,t,a]),h=d.modifiedOverflowItems;return function(e,t,n){var r=ko(e);s.useEffect((function(){r&&(Zh(n,r),Kh(t,n,e))})),s.useEffect((function(){return Kh(t,n,e),function(){Zh(n,e)}}),[])}(c,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},Qh=he(),Jh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Pe(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&Ae(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var a=e.items,i=e.overflowItems,l=e.className,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=Qh(c,{className:l,vertical:u}),m=!!i&&i.length>0;return s.createElement("div",o({},et(e,Je),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement($h,o({},e,{className:g.overflowButton})),a&&a.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&s.createElement($h,o({},e,{className:g.overflowButton})))}));Jh.displayName="OverflowSet";var ep,tp={flexShrink:0,display:"inherit"},np=S(Jh,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",tp],overflowButton:["ms-OverflowSet-overflowButton",tp]}}),void 0,{scope:"OverflowSet"}),rp=((ep={})["".concat(Ed[Ed.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",ep["".concat(Ed[Ed.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",ep["".concat(Ed[Ed.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ep["".concat(Ed[Ed.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ep["".concat(Ed[Ed.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",ep["".concat(Ed[Ed.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",ep["".concat(Ed[Ed.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",ep["".concat(Ed[Ed.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",ep["".concat(Sd[Sd.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",ep),op=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(rp).indexOf(r)?s.createElement("div",{className:a}):s.createElement("svg",o({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate(".concat(r===Ed[Ed.diamond]?45:r===Ed[Ed.pyramid]?180:0,", 0, 0)")}),s.createElement("path",o({d:rp[r]},n)))},ap=he(),ip=function(e){function t(t){var n=e.call(this,t)||this;return n._isLegendSelected=!1,n._onRenderData=function(e){var t=n.props,r=t.overflowProps,a=t.allowFocusOnLegends,i=void 0===a||a,l=t.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(nh,o({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),s.createElement(np,o({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:o(o({},u),null==r?void 0:r.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=i(i([],e.primary.slice(-1),!0),e.overflow,!0);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:i(i([],e.primary,!0),e.overflow.slice(0,1),!0),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=o({},n.state.selectedLegends);t[e.title]?delete t[e.title]:(t[e.title]=!0,Object.keys(t).length===n.props.legends.length&&(t={})),n.setState({selectedLegends:t})},n._canSelectOnlySingleLegend=function(e){n.state.selectedLegend===e.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.title})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,a=void 0===r||r,i=t.className,l=t.styles,c=t.theme,u=t.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=ap(l,{theme:c,className:i});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(nh,o({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Td.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,a=[];e.forEach((function(e,t){a.push({key:t.toString(),name:e.title,onClick:e.action})}));var i={renderData:e},l=n.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=ap(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:i},g=h||"more";return s.createElement(Hh,{type:ch.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var t=Ee(e,(function(e){return e.title===n.state.activeLegend}));t&&(n.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",o({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":"".concat(a.length," ").concat(g)},{"data-is-focusable":r}),a.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){e.hoverAction&&(n.setState({activeLegend:e.title}),e.hoverAction())},n._onLeave=function(e){e.onMouseOutAction&&(n.setState({activeLegend:""}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var a=n.props.allowFocusOnLegends,i=void 0===a||a,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},c=n._getColor(l.title,l.color),u=n.props,d=u.theme,h=u.className,p=u.styles,f=u.canSelectMultipleLegends,g=void 0!==f&&f,m=ap(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,c);return s.createElement("button",o({},i&&{"aria-selected":g?!!n.state.selectedLegends[l.title]:n.state.selectedLegend===l.title,role:"option","aria-label":"".concat(l.title),"aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&o({},e.nativeButtonProps),{key:t,className:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":i}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=ap(r,{theme:t,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):s.createElement(jh,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return o(o({},n&&{nativeButtonProps:et(t,Qe,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},o={fill:n,strokeWidth:2,stroke:t.color};return s.createElement(op,{svgProps:r,pathProps:o,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===e||this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},t}(s.Component),sp=S(ip,(function(e){var t,n,r=e.className,a=e.theme,i=e.isLineLegendInBarChart,s=void 0!==i&&i,l=a,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:a.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[jn(a,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[Un]={content:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")"),opacity:e.colorOnSelectedState===c.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==a?void 0:a.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(e.colorOnSelectedState," 1px, ").concat(e.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===c.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Un]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")")},n)},text:o(o({},u.small),{lineHeight:"16px",color:null==a?void 0:a.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[jn(a,d),o(o({cursor:"pointer",color:null==a?void 0:a.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[jn(a,d)]}}}}));function lp(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function cp(e){return function(){return e}}function up(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function dp(e){return e}Array.prototype.slice;const hp=Math.abs,pp=Math.atan2,fp=Math.cos,gp=Math.max,mp=Math.min,vp=Math.sin,_p=Math.sqrt,yp=1e-12,xp=Math.PI,bp=xp/2,Cp=2*xp;function Ep(e){return e>=1?bp:e<=-1?-bp:Math.asin(e)}function Sp(){var e=dp,t=up,n=null,r=cp(0),o=cp(Cp),a=cp(0);function i(i){var s,l,c,u,d,h=(i=lp(i)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Cp,Math.max(-Cp,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,a.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(i[s],s,i))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(i[e],i[t])})),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:i[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:cp(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:cp(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:cp(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:cp(+e),i):a},i}const Lp=Math.PI,kp=2*Lp,Ap=1e-6,wp=kp-Ap;function Dp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Tp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Dp:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Dp;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+a}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Ap)if(Math.abs(u*s-l*c)>Ap&&o){let h=n-a,p=r-i,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((Lp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>Ap&&this._append`L${e+y*c},${t+y*u}`,this._append`A${o},${o},0,0,${+(u*h>c*p)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,d=a?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Ap||Math.abs(this._y1-c)>Ap)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%kp+kp),d>wp?this._append`A${n},${n},0,1,${u},${e-i},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Ap&&this._append`A${n},${n},0,${+(d>=Lp)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Mp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Tp(t)}function Pp(e){return e.innerRadius}function Np(e){return e.outerRadius}function Fp(e){return e.startAngle}function Vp(e){return e.endAngle}function Ip(e){return e&&e.padAngle}function Op(e,t,n,r,o,a,i){var s=e-n,l=t-r,c=(i?a:-a)/_p(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-a,C=h*g-f*p,E=(y<0?-1:1)*_p(gp(0,b*b*x-C*C)),S=(C*y-_*E)/x,L=(-C*_-y*E)/x,k=(C*y+_*E)/x,A=(-C*_+y*E)/x,w=S-m,D=L-v,T=k-m,M=A-v;return w*w+D*D>T*T+M*M&&(S=k,L=A),{cx:S,cy:L,x01:-u,y01:-d,x11:S*(o/b-1),y11:L*(o/b-1)}}function Hp(){var e=Pp,t=Np,n=cp(0),r=null,o=Fp,a=Vp,i=Ip,s=null,l=Mp(c);function c(){var c,u,d,h=+e.apply(this,arguments),p=+t.apply(this,arguments),f=o.apply(this,arguments)-bp,g=a.apply(this,arguments)-bp,m=hp(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>yp)if(m>Cp-yp)s.moveTo(p*fp(f),p*vp(f)),s.arc(0,0,p,f,g,!v),h>yp&&(s.moveTo(h*fp(g),h*vp(g)),s.arc(0,0,h,g,f,v));else{var _,y,x=f,b=g,C=f,E=g,S=m,L=m,k=i.apply(this,arguments)/2,A=k>yp&&(r?+r.apply(this,arguments):_p(h*h+p*p)),w=mp(hp(p-h)/2,+n.apply(this,arguments)),D=w,T=w;if(A>yp){var M=Ep(A/h*vp(k)),P=Ep(A/p*vp(k));(S-=2*M)>yp?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(L-=2*P)>yp?(x+=P*=v?1:-1,b-=P):(L=0,x=b=(f+g)/2)}var N=p*fp(x),F=p*vp(x),V=h*fp(E),I=h*vp(E);if(w>yp){var O,H=p*fp(b),B=p*vp(b),R=h*fp(C),W=h*vp(C);if(m<xp)if(O=function(e,t,n,r,o,a,i,s){var l=n-e,c=r-t,u=i-o,d=s-a,h=d*l-u*c;if(!(h*h<yp))return[e+(h=(u*(t-a)-d*(e-o))/h)*l,t+h*c]}(N,F,R,W,H,B,V,I)){var z=N-O[0],Y=F-O[1],U=H-O[0],q=B-O[1],X=1/vp(((d=(z*U+Y*q)/(_p(z*z+Y*Y)*_p(U*U+q*q)))>1?0:d<-1?xp:Math.acos(d))/2),j=_p(O[0]*O[0]+O[1]*O[1]);D=mp(w,(h-j)/(X-1)),T=mp(w,(p-j)/(X+1))}else D=T=0}L>yp?T>yp?(_=Op(R,W,N,F,p,T,v),y=Op(H,B,V,I,p,T,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),T<w?s.arc(_.cx,_.cy,T,pp(_.y01,_.x01),pp(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,T,pp(_.y01,_.x01),pp(_.y11,_.x11),!v),s.arc(0,0,p,pp(_.cy+_.y11,_.cx+_.x11),pp(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,T,pp(y.y11,y.x11),pp(y.y01,y.x01),!v))):(s.moveTo(N,F),s.arc(0,0,p,x,b,!v)):s.moveTo(N,F),h>yp&&S>yp?D>yp?(_=Op(V,I,H,B,h,-D,v),y=Op(N,F,R,W,h,-D,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),D<w?s.arc(_.cx,_.cy,D,pp(_.y01,_.x01),pp(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,pp(_.y01,_.x01),pp(_.y11,_.x11),!v),s.arc(0,0,h,pp(_.cy+_.y11,_.cx+_.x11),pp(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,D,pp(y.y11,y.x11),pp(y.y01,y.x01),!v))):s.arc(0,0,h,E,C,v):s.lineTo(V,I)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-xp/2;return[fp(r)*n,vp(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:cp(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:cp(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:cp(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:cp(+e),c):r},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:cp(+e),c):o},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:cp(+e),c):a},c.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:cp(+e),c):i},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}Tp.prototype;var Bp=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:zn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}},Rp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._isRTL=le(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,o=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},t._renderArcLabel=function(e){var n=t.props,r=n.arc,o=n.data,a=n.innerRadius,i=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue;if(n.hideLabels||Math.abs(o.endAngle-o.startAngle)<Math.PI/12)return null;var u=r.centroid(o),d=u[0],h=u[1],p=Math.sqrt(d*d+h*h),f=Math.max(a,i)+2,g=(o.startAngle+o.endAngle)/2,m=o.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==t._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?Ai(".0%")(0===c?0:m/c):wi(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Wp(e),null},t.prototype.updateChart=function(e){Wp(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,o=t.focusedArcId,a=he()(Bp,{color:this.props.color,href:r,theme:this.props.theme}),i=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!o&&o===i&&s.createElement("path",{id:i+"focusRing",d:n(this.props.focusData),className:a.focusRing}),s.createElement("path",{id:i,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,i),className:a.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:l,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(a.arcLabel))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:Hp()},t}(s.Component);function Wp(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var zp=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[qn]={fill:"rgb(179, 179, 179)"},t)}}},Yp=he(),Up=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,o){var a=e&&e.data&&e.data.color;return s.createElement(Rp,{key:t,data:e,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(e,t,r){n.props.onFocusCallback(e,t,r)},n._computeTotalValue=function(){var e=0;return n.props.data.forEach((function(t){e+=t.data})),e},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Sp().sort(null).value((function(e){return e.data})).padAngle(0),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,o=this._pieForFocusRing(r),a=n(r),i="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=Yp(zp,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:i},a.map((function(t,n){return e.arcGenerator(t,n,o[n],e.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n;e=Yp(zp,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,td(".".concat(e)).each((function(){for(var e=$u(this),r=e.text().split(/\s+/).reverse(),o="",a=[],i=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em");o=r.pop();)a.push(o),l.text(a.join(" ")+" "),l.node().getComputedTextLength()>t&&a.length>1&&(a.pop(),l.text(a.join(" ")+" "),a=[o],l=e.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em").text(o));n+=1}))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:Sp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),qp=he(),Xp=function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=xe("callout"),n._uniqText=xe("_Pie_"),n._emptyChartId=xe("_DonutChart_empty"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){var n,r;return e.width&&e.width!==t._width&&(n={_width:e.width}),e.height&&e.height!==t._height&&(r={_height:e.height-40}),o(o({},n),r)},t.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,a=n.hideLegend,i=void 0!==a&&a,l=this.props.theme.palette;this._classNames=qp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(r,l),u=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-u,this.state._height-d)/2,p=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(nh,{direction:Td.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(Up,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,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(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(Vo,o({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Se.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ad(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Fd,{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})),!i&&s.createElement("div",{className:this._classNames.legendContainer},c))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r=e.parentElement?e.parentElement.clientWidth:this.state._width,o=e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,a="0 0 ".concat(r," ").concat(o);e.setAttribute("viewBox",a)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=e&&e.chartData.map((function(e,t){var o=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:o,action:function(){n.state.selectedLegend===e.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement(sp,o({legends:a,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._hoverLeave=function(){},t.prototype._valueInsideDonut=function(e,t){var n=this._getHighlightedLegend();if(void 0===e||""===n||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=wd(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(e){return e.data>0})).length>0)},t.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),jp=S(Xp,(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}}));function Gp(e){this._context=e}function Kp(e){return new Gp(e)}function Zp(e){return e[0]}function $p(e){return e[1]}function Qp(e,t){var n=cp(!0),r=null,o=Kp,a=null,i=Mp(s);function s(s){var l,c,u,d=(s=lp(s)).length,h=!1;for(null==r&&(a=o(u=i())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(c,l,s),+t(c,l,s));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?Zp:cp(e),t="function"==typeof t?t:void 0===t?$p:cp(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:cp(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:cp(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:cp(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),s):r},s}Gp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Jp=he(),ef=function(e){function t(t){var n,r,a,i,l,c,u,d,h,p,f,g,m,v,_=this;return(_=e.call(this,t)||this).minLegendContainerHeight=32,_._isRtl=le(),_._isFirstRender=!0,_._multiValueCallout=function(e){var t=_._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:_._classNames.calloutContentRoot},s.createElement("div",{className:_._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",o({className:_._classNames.calloutContentX},Ad(e.xAxisCalloutAccessibilityData,"text",!1)),wd(e.hoverXValue,_.props.culture))),s.createElement("div",{className:_._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var a=n+1===r.length,i=e.shouldDrawBorderBottom,l=void 0!==i&&i;return s.createElement("div",o({},Ad(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(n),style:o(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid ".concat(_.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),_._getCalloutContent(e,n,t,a))})),!!e.descriptionMessage&&s.createElement("div",{className:_._classNames.descriptionMessage},e.descriptionMessage)))},_._getData=function(e,t){_.props.getGraphData&&_.props.getGraphData(e,t,_.state.containerHeight-_.state._removalValueForTextTuncate,_.state.containerWidth,_.xAxisElement,_.yAxisElement)},_._onChartLeave=function(){_.props.onChartMouseLeave&&_.props.onChartMouseLeave()},_._calculateChartMinWidth=function(){var e=10;if(!_.props.wrapXAxisLables&&_.props.rotateXAxisLables&&_.props.xAxisType===od.StringAxis){var t=_d(_._tickValues,".".concat(_._classNames.xAxis," text"));e+=Math.ceil(t*Math.cos(Math.PI/4))}else if(_.props.showXAxisLablesTooltip){var n=_._tickValues.map((function(e){var t=_.props.noOfCharsToTruncate||4;return e.toString().length>t?"".concat(e.toString().slice(0,t),"..."):e}));t=_d(n,".".concat(_._classNames.xAxis," text")),e+=Math.ceil(t)}else if(_.props.wrapXAxisLables){var r=[];_._tickValues.forEach((function(e){r.push.apply(r,e.toString().split(/\s+/))})),t=_d(r,".".concat(_._classNames.xAxis," text")),e+=Math.max(Math.ceil(t),10)}else t=_d(_._tickValues,".".concat(_._classNames.xAxis," text")),e+=Math.ceil(t);var o=_.margins.left+_.margins.right+e*(_._tickValues.length-1);return[rd.GroupedVerticalBarChart,rd.VerticalBarChart,rd.VerticalStackedBarChart].includes(_.props.chartType)&&(o+=16),o},_.state={containerHeight:0,containerWidth:0,_width:_.props.width||600,_height:_.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},_.idForGraph=xe("chart_"),_.margins={top:null!==(r=null===(n=_.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(i=null===(a=_.props.margins)||void 0===a?void 0:a.bottom)&&void 0!==i?i:35,right:_._isRtl?null!==(c=null===(l=_.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(d=null===(u=_.props.margins)||void 0===u?void 0:u.right)&&void 0!==d?d:null===(h=_.props)||void 0===h?void 0:h.secondaryYScaleOptions)?40:20,left:_._isRtl?(null!==(f=null===(p=_.props.margins)||void 0===p?void 0:p.right)&&void 0!==f?f:null===(g=_.props)||void 0===g?void 0:g.secondaryYScaleOptions)?40:20:null!==(v=null===(m=_.props.margins)||void 0===m?void 0:m.left)&&void 0!==v?v:40},_}return r(t,e),t.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===rd.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=_d(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===od.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];$u(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(o.push(t[0]),this.setAttribute("transform","translate(".concat(t[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),a=n&&n.height;a>r&&(r=a)}));var a=0;return $u(t).call(n).selectAll(".tick").each((function(){o.length>a&&(this.setAttribute("transform","translate(".concat(o[a],",").concat(r/2,")rotate(-45)")),a+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===rd.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=_d(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==n&&this.setState({startFromX:n})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},t.prototype.render=function(){var e,t,n,r,a,i,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=o({},this.margins);this.props.chartType===rd.HorizontalBarChartWithAxis&&(this._isRtl?S.right+=this.state.startFromX:S.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(S);var L,k,A,w,D,T,M=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var P={domainNRangeValues:bd(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},N={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:Cd(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},F=void 0,V=void 0;switch(this.props.xAxisType){case od.NumericAxis:F=(e=fd(P,this.props.chartType,x)).xScale,V=e.tickValues;break;case od.DateAxis:t=function(e,t,n,r,o,a){var i,s=e.domainNRangeValues,l=e.xAxisElement,c=e.tickPadding,u=void 0===c?6:c,d=e.xAxistickSize,h=void 0===d?6:d,p=e.xAxisCount,f=void 0===p?6:p,g=Nc().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=Zo(g).tickSize(h).tickPadding(u).ticks(f);if(a)m.tickFormat((function(e,t){return a(e)}));else if(n&&r)m.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(o){var v=fl(o);m.tickFormat((function(e,t){return gd(e,v)}))}t.tickValues&&m.tickValues(t.tickValues),void 0===n&&t.tickFormat&&m.tickFormat(ml(t.tickFormat)),l&&$u(l).call(m).selectAll("text").attr("aria-hidden","true");var _=(null!==(i=t.tickValues)&&void 0!==i?i:g.ticks(f)).map((function(e,t){var n=m.tickFormat();return n?n(e,t):gd(e)}));return{xScale:g,tickValues:_}}(P,this.props.tickParams,x,b,C,E),F=t.xScale,V=t.tickValues;break;case od.StringAxis:n=function(e,t,n,r){var o=e.domainNRangeValues,a=e.xAxisCount,i=void 0===a?6:a,s=e.xAxistickSize,l=void 0===s?6:s,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=zc().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Zo(g).tickSize(l).tickPadding(u).ticks(i).tickFormat((function(e,t){return wd(n[t],r)}));return e.xAxisElement&&$u(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}(P,this.props.tickParams,this.props.datasetForXAxisDomain,x),F=n.xScale,V=n.tickValues;break;default:F=(r=fd(P,this.props.chartType,x)).xScale,V=r.tickValues}if(this._xScale=F,this._tickValues=V,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var I={node:this.xAxisElement,xAxis:F,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},O=F&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var a=$u(t).call(n),i=0,s=[];return a.selectAll(".tick text").each((function(){var e=$u(this),t=e.text(),n="".concat(e.text().slice(0,r),"..."),l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(o&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(o&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);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=e.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;a.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),i=(m-_)*v}})),i>0?i:0}}(I);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==O&&this.setState({_removalValueForTextTuncate:O,isRemoveValCalculated:!1})}var H=void 0,B=void 0,R={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===ad.StringAxis?H=function(e,t,n,r,o,a){return r===rd.HorizontalBarChartWithAxis?function(e,t,n,r,o){var a=e.containerHeight,i=e.tickPadding,s=void 0===i?12:i,l=e.margins,c=e.yAxisTickFormat,u=e.yAxisElement,d=zc().domain(t).range([a-l.bottom-r/2,l.top+r/2]),h=(n?Ko(d):$o(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&$u(u).call(h).selectAll("text"),d}(e,t,n,o):function(e,t,n){var r=e.containerHeight,o=e.tickPadding,a=void 0===o?12:o,i=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,c=e.yAxisPadding,u=void 0===c?0:c,d=zc().domain(t).range([r-i.bottom,i.top]).padding(u),h=(n?Ko(d):$o(d)).tickPadding(a).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&$u(l).call(h).selectAll("text"),d}(e,t,n)}(N,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions)&&(B=md({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===(i=this.props.secondaryYScaleOptions)||void 0===i?void 0:i.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:Cd(g,m),yAxisPadding:this.props.yAxisPadding},this._isRtl,R,m,this.props.barwidth,!0)),H=md(N,this._isRtl,R,m,this.props.barwidth)),this.props.chartType===rd.HorizontalBarChartWithAxis&&H&&(L=this.yAxisElement,k=H,A=this.props.noOfCharsToTruncate||4,w=this.props.showYAxisLablesTooltip||!1,D=this.state.startFromX,T=this._isRtl,null!==L&&$u(L).call(k).selectAll(".tick text").each((function(){var e=$u(this),t=e.text(),n="".concat(e.text().slice(0,A),"..."),r=e.text().length,o=w?1.5:1,a=e.attr("y"),i=e.attr("x"),s=parseFloat(e.attr("dy"));e.text(null).append("tspan").attr("x",i).attr("y",a).attr("id","BaseSpan").attr("dy",s+"em").attr("data-",t),w&&r>A?e.append("tspan").attr("id","showDots").attr("x",i).attr("y",a).attr("dy",s).attr("dx",o+0+"em").text(n):e.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",T?D:i).attr("y",a).attr("dx",o+0+"em").text(t)}))),this.props.getAxisData&&this.props.getAxisData(R),this._getData(F,H),M=this.props.children(o(o({},this.state),{xScale:F,yScale:H,yScaleSecondary:B}))}this._classNames=Jp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var W,z={width:this.state.containerWidth,height:this.state.containerHeight};return W=this.props.focusZoneDirection===Td.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Td.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(e){return h.chartContainer=e},onMouseLeave:this._onChartLeave},s.createElement(nh,o({direction:W,className:this._classNames.chartWrapper},_),s.createElement("svg",o({width:z.width,height:z.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),s.createElement("g",{ref:function(e){h.xAxisElement=e},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(z.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),s.createElement("g",{ref:function(e){h.yAxisElement=e},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?z.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&s.createElement("g",{ref:function(e){h.yAxisElementSecondary=e},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:z.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),M)),!this.props.hideLegend&&s.createElement("div",{ref:function(e){return h.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(Vo,o({hidden:!(!this.props.hideTooltip&&f.isCalloutVisible),shouldUpdateWhenHidden:!0},f),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(f),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(Fd,o({XValue:f.XValue,Legend:f.legend,YValue:f.YValue,color:f.color,culture:this.props.culture},v))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,i=Jp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=wd(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return s.createElement("div",{style:o},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return s.createElement("div",{key:e,className:i.calloutBlockContainer},s.createElement("div",{className:i.calloutlegendText}," ",wd(e,l)),s.createElement("div",{className:i.calloutContentY},wd(u[e],l)))})))}return s.createElement("div",{style:n?o:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),s.createElement("div",{id:"".concat(t,"_").concat(e.y),className:i.calloutBlockContainer},a&&s.createElement(op,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:Ed[e.index%Object.keys(kd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},wd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var o=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){var a=e.props.parentRef?e.props.parentRef:e.chartContainer,i=e.props.enableReflow&&!e._isFirstRender?Math.max(a.getBoundingClientRect().width,e._calculateChartMinWidth()):a.getBoundingClientRect().width,s=a.getBoundingClientRect().height>t?a.getBoundingClientRect().height:350;(n!==i||r!==s-t)&&e.setState({containerWidth:i,containerHeight:s-t})}}))},t}(s.Component),tf=function(){var e,t=d();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),nf=S(ef,(function(e){var t,n,r,a,i,s,l,c,u=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],chartWrapper:{overflow:"auto"},xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[qn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(a={},a[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},a)},g:[h&&!tf&&{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:[o(o({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(i={},i[Un]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:o(o({},_.small),{lineHeight:"16px",selectors:(s={},s[qn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[o(o({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[qn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[qn]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),rf=nr((function(e){return nr((function(t){var n=nr((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function of(e,t){return rf(e)(t)}var af=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},sf=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},lf="spacer-",cf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},uf=function(e){return e.getBoundingClientRect()},df=uf,hf=uf,pf=function(e){function t(t){var n=e.call(this,t)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&c()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return s.createElement("div",o({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return s.createElement("div",o({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,i=n.props,l=i.onRenderCell,c=i.onRenderCellConditional,u=i.role,d=e.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=a(e,["page"]),m=void 0===u?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=c?c:l,E=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;c&&!E||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},E))}return s.createElement("div",o({},g),v)},Id(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Ot(n),n._events=new yh(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),a=this._allowedRect,i=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,a),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=hf(this._scrollElement),h=af(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)i+=t(l+g);var m=i+t(e);switch(n){case 1:return void sf(this._scrollElement,i);case 2:return void sf(this._scrollElement,m-d.height);case 3:return void sf(this._scrollElement,(i+m-d.height)/2)}if(i>=p.top&&m<=p.bottom)return;i<p.top||m>p.bottom&&(i=m-d.height)}return void(this._scrollElement&&sf(this._scrollElement,i))}i+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var a=0,i=r.startIndex;i<r.startIndex+r.itemCount;i++){if(o=e(i),r.top+a<=this._scrollTop&&this._scrollTop<r.top+a+o)return i;a+=o}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=it(this._root.current),this._scrollTop=0,this.setState(o(o({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),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._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var a=0;a<n.length;a++){var i=n[a],s=r[a];if(i.key!==s.key||i.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,a=e.onRenderSurface,i=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=et(this.props,Je),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=a?of(a,this._onRenderSurface):this._onRenderSurface;return(i?of(i,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:o(o({},u),{className:tt("ms-List",t),role:c.length>0?r:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),a=this.props.onRenderPage,i=(void 0===a?this._onRenderPage:a)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:i}),i},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return o(o({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Le(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,a=Math.min(t,r+1),i=Math.min(n,o+1);a===r&&i===o||(this._requiredWindowsAhead=a,this._requiredWindowsBehind=i,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>a||n>i)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),o(o(o({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var a={},i=0,s=e;i<s.length;i++)(u=s[i]).items&&(a[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(a[u.startIndex]?delete a[u.startIndex]:this._onPageAdded(u))}for(var d in a)a.hasOwnProperty(d)&&this._onPageRemoved(a[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,a=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var s=o({},cf),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=a+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!i,m=this._allowedRect,v=function(n){var o=_._getPageSpecification(e,n,m),i=o.height,v=o.data,y=o.key;c=o.itemCount;var x,b,C=u+i-1,E=Ce(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,S=!m||C>=m.top&&u<=m.bottom,L=!_._requiredRect||C>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(L||S&&E)||!f||h>=n&&h<n+c||n===a){d&&(l.push(d),d=null);var k=Math.min(c,p-n),A=_._createPage(y,r.slice(n,n+k),n,void 0,void 0,v);A.top=u,A.height=i,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(A),L&&_._allowedRect&&(x=s,b={top:u,bottom:C,height:i,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage(lf+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-u)+1,d.itemCount+=c;if(u+=C-u+1,g&&f)return"break"},_=this,y=a;y<p&&"break"!==v(y);y+=c);return d&&(d.key=lf+"end",l.push(d)),this._materializedRect=s,o(o({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n),a=o.itemCount,i=void 0===a?this._getItemCountForPage(t,n):a,s=o.height;return{itemCount:i,height:void 0===s?this._getPageHeight(t,n,i):s,data:o.data,key:o.key}}return{itemCount:i=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,i)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},t.prototype._createPage=function(e,t,n,r,o,a,i){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:a,isSpacer:i||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,a=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||o({},cf),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),c=af(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=df(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),h=d(this._root.current),p={top:u,left:s.left,bottom:u+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=ff(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=ff(p,a,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function ff(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var gf,mf=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=$u(t.current),r=e.text.split(/\s+/),o=[],a=n.append("tspan"),i=0;return r.forEach((function(t){o.push(t),a.text(o.join(" "));var r=a.node();r&&r.getComputedTextLength()>e.width&&o.length>1&&(i++,o.pop(),a.text(o.join(" ")),o=[t],a=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-i*e.lineHeight),function(){n.selectAll("tspan").remove()}}})),e.lineHeight;var n=a(e,["lineHeight"]);return s.createElement("text",o({ref:t},n))},vf={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"},_f={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"]},yf={qualitative:_f,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},xf=Object.values(_f),bf=Object.values(vf),Cf=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},Ef=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=xf[(e+t)%xf.length];return Cf(r,n)},Sf=function(e,t){if(void 0===t&&(t=!1),bf.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],a=yf[r][o];return Cf(a,t)}return e},Lf=function(e){var t,n,r,o=s.useRef(null),a=s.useState(!1),i=a[0],l=a[1],c=null;if(i){var u=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));u.length>0&&(c=s.createElement(Vo,{target:o.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(nh,{isCircularNavigation:!0,direction:Td.vertical},s.createElement(pf,{items:u,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var d=e.textColor?Sf(e.textColor,null===(t=e.theme)||void 0===t?void 0:t.isInverted):null===(n=e.theme)||void 0===n?void 0:n.palette.black;return r=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:o,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(mf,{text:r,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:d})),c)},kf=function(e){var t,n,r=e.labelWidth?e.labelWidth:105,a=e.chartYTop-20,i=a+7,l=e.scale.range(),c=e.events.map((function(t){return o(o({},t),{x:e.scale(t.date)})}));c.sort((function(e,t){return+e.date-+t.date}));var u=e.strokeColor?Sf(e.strokeColor,null===(t=e.theme)||void 0===t?void 0:t.isInverted):null===(n=e.theme)||void 0===n?void 0:n.palette.black,d=function(e,t){for(var n=[],r=[],o=0,a=e;o<a.length;o++){var i=a[o],s=t(i);-1===n.indexOf(s)&&(r.push(i),n.push(s))}return r}(c,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:i,y2:e.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(e,t,n,r){var o=function(r,o){if(o===e.length)return[];var i=e[o].x,s=i-t;return i<r?[]:o===e.length-1?r<s?[{x:i,anchor:"end",aggregatedIdx:[o]}]:i+t<n?[{x:i,anchor:"start",aggregatedIdx:[o]}]:[]:a(o,r<s?"end":"start")},a=function(r,a){var i="end"===a?e[r].x:e[r].x+t,s=Ce(e,(function(e){return e.x>i&&(e.x-t>=i||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(i,s);return u.unshift({x:e[r].x,anchor:a,aggregatedIdx:l}),u};return o(r,0)}(c,r+5,l[1],l[0]).map((function(t,n){return s.createElement(Lf,o({key:n,theme:e.theme},{lineDefs:c,labelDef:t,textY:a,textWidth:r,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,d,h)},Af=he();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(gf||(gf={}));var wf=Jo((function(e){return e.x})).left,Df=function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){var a,i,s;return s=void 0===e.color?Ef(t,0,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted):Sf(e.color,null===(i=n.props.theme)||void 0===i?void 0:i.isInverted),o(o({},e),{index:r?t:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,o,a){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(a,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var o=n.props,a=o.allowMultipleShapesForPoints,i=void 0!==a&&a,s=o.strokeWidth,l=void 0===s?4:s,c=n.state.activePoint;return i?c===e?gf.hoverSize:1===t||r?2.5*l:gf.invisibleSize:c===e?gf.hoverSize:gf.invisibleSize},n._getPath=function(e,t,r,o,a,i){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,o,a),u=l?i%Object.keys(kd).length:0,d=kd[u].widthRatio;return function(e,t,n,r){return["M".concat(e-n/2," ").concat(t,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(e+n/2," ").concat(t,"\n M").concat(e-n/2," ").concat(t,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(e+n/2," ").concat(t,"\n "),"M".concat(e-n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t+n/2,"\n Z"),"M".concat(e-n/2," ").concat(t-.2886*n,"\n H ").concat(e+n/2,"\n L").concat(e," ").concat(t+.5774*n," Z"),"M".concat(e," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t,"\n L").concat(e," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.5774*n,"\n L").concat(e+n/2," ").concat(t+.2886*n,"\n L").concat(e-n/2," ").concat(t+.2886*n," Z"),"M".concat(e-.5*n," ").concat(t-.866*n,"\n L").concat(e+.5*n," ").concat(t-.866*n,"\n L").concat(e+n," ").concat(t,"\n L").concat(e+.5*n," ").concat(t+.866*n,"\n L").concat(e-.5*n," ").concat(t+.866*n,"\n L").concat(e-n," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.851*n,"\n L").concat(e+.6884*n," ").concat(t-.2633*n,"\n L").concat(e+.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.6884*n," ").concat(t-.2633*n,"\n Z"),"M".concat(e-.5001*n," ").concat(t-1.207*n,"\n L").concat(e+.5001*n," ").concat(t-1.207*n,"\n L").concat(e+1.207*n," ").concat(t-.5001*n,"\n L").concat(e+1.207*n," ").concat(t+.5001*n,"\n L").concat(e+.5001*n," ").concat(t+1.207*n,"\n L").concat(e-.5001*n," ").concat(t+1.207*n,"\n L").concat(e-1.207*n," ").concat(t+.5001*n,"\n L").concat(e-1.207*n," ").concat(t-.5001*n,"\n Z")][r]}(e,t,c=d>1?c/d:c,u)},n._getPointFill=function(e,t,r,o){var a=n.state.activePoint,i=n.props,s=i.theme;return i.allowMultipleShapesForPoints,a===t?s.palette.white:e},n._createColorFillBars=function(e){var t,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var o=Cd(n._points,rd.LineChart),a=0;a<n._colorFillBars.length;a++){var i=n._colorFillBars[a],l=xe(i.legend.replace(/\W/g,"")),c=Sf(i.color,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted);i.applyPattern&&r.push(n._getStripePattern(c,a));for(var u=0;u<i.data.length;u++){var d=i.data[u].startX,h=i.data[u].endX,p=n._legendHighlighted(i.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(i):.1;r.push(s.createElement("rect",{fill:i.applyPattern?"url(#".concat(n._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(o.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return r},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:"".concat(n._colorFillBarPatternId,"_").concat(t),width:16,height:16,key:"".concat(n._colorFillBarPatternId,"_").concat(t),patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,o=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},n._onMouseOverLargeDataset=function(e,t,r){r.persist();var o=n.props.data.lineChartData,a=n._xAxisScale.invert(ed(document.getElementById(n._rectId),r)[0]),i=wf(o[e].data,a),s=o[e].data[i-1],l=o[e].data[i],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=i;else if(void 0!==s&&void 0===l)c=s.x,u=i-1;else{var d=void 0,h=void 0,p=void 0;switch(Ld(o[e].data[0].x,!0)){case od.DateAxis:d=new Date(a).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)?i:i-1;break;case od.NumericAxis:d=a,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)?i:i-1}}var f=o[e].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=c instanceof Date?c.toLocaleString():c,_=c instanceof Date?c.getTime():c,y=Ee(n._calloutPoints,(function(e){return e.x===_})),x=o[e].data[u],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#".concat(n._staticHighlightCircle,"_").concat(e),$u("#".concat(n._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(n._xAxisScale(x.x))).attr("cy","".concat(n._yAxisScale(x.y))).attr("visibility","visibility"),$u("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(n._xAxisScale(x.x),", ").concat(n._yAxisScale(x.y),")")})).attr("visibility","visibility").attr("y2","".concat(t-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#".concat(n._staticHighlightCircle,"_").concat(e),stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:e})},n._handleFocus=function(e,t,r,o,a){n._uniqueCallOutID=o;var i=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=Ee(n._calloutPoints,(function(e){return e.x===s}));if(l){var c=n;$u("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", 0)")})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+i,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:a})}))}else n.setState({activePoint:o})},n._handleHover=function(e,t,r,o,a,i,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,c=e instanceof Date?e.getTime():e,u=n,d=Ee(n._calloutPoints,(function(e){return e.x===c}));d?($u("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(e),", ").concat(u._yAxisScale(t),")")})).attr("visibility","visibility").attr("y2","".concat(r-u._yAxisScale(t))),n._uniqueCallOutID!==a&&(n._uniqueCallOutID=a,n.setState({isCalloutVisible:!0,refSelected:"#".concat(a),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:a,xAxisCalloutAccessibilityData:i,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:a,nearestCircleToHighlight:null,activeLine:null})},n._getClickHandler=function(e){return e?{onClick:e}:{}},n._handleMouseOut=function(){$u("#".concat(n._verticalLine)).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?i(i([],n.state.selectedLegendPoints,!0),[e],!1):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=t.map((function(e){return e.legend}));n._handleLegendClick(e,o)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?i(i([],n.state.selectedColorBarLegend,!0),[e],!1):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=t.map((function(e){return e.legend}));n._handleLegendClick(e,o)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},n._getAriaLabel=function(e,t){var r,o=n._points[e],a=o.data[t],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=vd(n._points)||[],n._circleId=xe("circle"),n._lineId=xe("lineID"),n._borderId=xe("borderID"),n._verticalLine=xe("verticalLine"),n._colorFillBarPatternId=xe("colorFillBarPattern"),n._tooltipId=xe("LineChartTooltipId_"),n._rectId=xe("containerRectLD"),n._staticHighlightCircle=xe("staticHighlightCircle"),n._createLegendsMemoized=tr((function(e){return n._createLegends(e)})),n._firstRenderOptimization=!0,n._emptyChartId=xe("_LineChart_empty"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=vd(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,a=t.eventAnnotationProps,i=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=xd(this._points),u=this._points;i&&i.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=vd(u));var d=this._createLegendsMemoized(this._points),h=o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.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:n,tickFormat:r};return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(nf,o({},this.props,{chartTitle:l.chartTitle,points:u,chartType:rd.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?od.DateAxis:od.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#323130",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?s.createElement("rect",{id:e._rectId,width:t.containerWidth,height:t.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,e._renderedColorFillBars,e.lines),a&&s.createElement(kf,o({theme:e.props.theme},a,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,a=n.allowMultipleShapesForPoints,l=void 0!==a&&a,c=!(!r||!r.canSelectMultipleLegends),u=e.map((function(e){var n=e.color;return o(o({title:e.legend,color:n,action:function(){c?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),l&&{shape:Ed[e.index%Object.keys(kd).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r,o=e.legend,a=Sf(e.color,null===(r=t.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:a,action:function(){c?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:o})},opacity:t._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return s.createElement(sp,o({legends:i(i([],u,!0),d,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},c&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,a,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,E,S,L,k,A,w,D=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var M=function(e){var M=[],N=[],F=[],V=P._points[e].legend,I=P._points[e].color,O=P.state.activePoint,H=P.props.theme,B=t-P.margins.bottom+6;if(1===P._points[e].data.length){var R=P._points[e].data[0],W=R.x,z=R.y,Y=R.xAxisCalloutData,U=R.xAxisCalloutAccessibilityData,q="".concat(P._circleId,"_").concat(e);F.push(s.createElement("circle",o({id:q,key:q,r:O===q?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===q?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseOut:P._handleMouseOut,strokeWidth:O===q?4:0,stroke:O===q?I:"",role:"img","aria-label":P._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){D._refCallback(e,q)},onFocus:function(){return D._handleFocus(q,W,Y,q,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[0].onDataPointClick))))}var X=0,j=null!==(r=null===(n=P._points[e].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[];if(P.props.optimizeLargeData&&P._points[e].data.length>1){for(var G=Qp().x((function(e){return D._xAxisScale(e[0])})).y((function(e){return D._yAxisScale(e[1])})).curve(Kp),K="".concat(P._lineId,"_").concat(e),Z="".concat(P._borderId,"_").concat(e),$=(null===(a=P._points[e].lineOptions)||void 0===a?void 0:a.strokeWidth)||P.props.strokeWidth||4,Q=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,J=[],ee=0;ee<P._points[e].data.length;ee++)J.push([P._points[e].data[ee].x instanceof Date?P._points[e].data[ee].x.getTime():P._points[e].data[ee].x,P._points[e].data[ee].y]);if(Q){var te=(null===(l=P._points[e].lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;te>0&&N.push(s.createElement("path",{id:Z,key:Z,d:G(J),fill:"transparent",strokeLinecap:null!==(u=null===(c=P._points[e].lineOptions)||void 0===c?void 0:c.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat($.toString())+te,stroke:(null===(d=P._points[e].lineOptions)||void 0===d?void 0:d.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("path",o({id:K,key:K,d:G(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(p=null===(h=P._points[e].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==p?p:"round",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOut:P._handleMouseOut},P._getClickHandler(P._points[e].onLineClick),{opacity:1,role:"img","aria-label":"".concat(V,", series ").concat(e+1," of ").concat(P._points.length," with ").concat(P._points[e].data.length," data points.")})))}else M.push(s.createElement("path",{id:K,key:K,d:G(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(g=null===(f=P._points[e].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==g?g:"round",opacity:.1,role:"img","aria-label":"".concat(V,", series ").concat(e+1," of ").concat(P._points.length," with ").concat(P._points[e].data.length," data points.")}));var ne=null!==P.state.activeLine&&P.state.activeLine===e;F.push(s.createElement("circle",{id:"".concat(P._staticHighlightCircle,"_").concat(e),key:"".concat(P._staticHighlightCircle,"_").concat(e),r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:I,visibility:ne?"visibility":"hidden",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOut:P._handleMouseOut}))}else if(!P.props.optimizeLargeData)for(var re=function(t){var n=P._checkInGap(t,j,X),r=n.isInGap;X=n.gapIndex;var a="".concat(P._lineId,"_").concat(e,"_").concat(t),i="".concat(P._borderId,"_").concat(e,"_").concat(t),l="".concat(P._circleId,"_").concat(e,"_").concat(t),c=P._points[e].data[t-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=P._points[e].data[t],g=f.x,T=f.y,R=P._getPath(P._xAxisScale(u),P._yAxisScale(d),l,t,!1,P._points[e].index),W=(null===(m=P._points[e].lineOptions)||void 0===m?void 0:m.strokeWidth)||P.props.strokeWidth||4,z=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,Y=P._points[e].hideNonActiveDots&&O!==l;if(F.push(s.createElement("path",o({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,u,h,l,p)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t-1].onDataPointClick),{opacity:z&&!Y?1:.01,fill:P._getPointFill(I,l,t,!1),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t-1)}))),t+1===P._points[e].data.length){var U="".concat(l).concat(t,"L"),q=P._points[e].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,t,!0,P._points[e].index);var G=P._points[e].data[t],K=G.xAxisCalloutData,Z=G.xAxisCalloutAccessibilityData;F.push(s.createElement("path",o({id:U,key:U,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,g,T,B,K,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,K,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,g,K,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t].onDataPointClick),{opacity:z&&!q?1:.01,fill:P._getPointFill(I,U,t,!0),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t)})))}if(z){if(!r){var $=(null===(v=P._points[e].lineOptions)||void 0===v?void 0:v.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;$>0&&N.push(s.createElement("line",{id:i,key:i,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeLinecap:null!==(y=null===(_=P._points[e].lineOptions)||void 0===_?void 0:_.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(W.toString())+$,stroke:(null===(x=P._points[e].lineOptions)||void 0===x?void 0:x.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("line",o({id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,ref:function(e){D._refCallback(e,a)},onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,stroke:I,strokeLinecap:null!==(C=null===(b=P._points[e].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==C?C:"round",strokeDasharray:null===(E=P._points[e].lineOptions)||void 0===E?void 0:E.strokeDasharray,strokeDashoffset:null===(S=P._points[e].lineOptions)||void 0===S?void 0:S.strokeDashoffset,opacity:1},P._getClickHandler(P._points[e].onLineClick))))}}else r||M.push(s.createElement("line",{id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,stroke:I,strokeLinecap:null!==(k=null===(L=P._points[e].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=P._points[e].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(w=P._points[e].lineOptions)||void 0===w?void 0:w.strokeDashoffset,opacity:.1}))},oe=1;oe<P._points[e].data.length;oe++)re(oe);T.push.apply(T,i(i(i([],N,!1),M,!1),F,!1))},P=this,N=this._points.length-1;N>=0;N--)M(N);var F=Af(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var V=$u(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var I={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:V};V&&yd(I)}return T},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(e){return e.data.length})).length>0)},t.defaultProps={enableReflow:!0},t}(s.Component),Tf=S(Df,(function(e){return{tooltip:o(o({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function Mf(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Pf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Nf(e,t){return e[t]}function Ff(e){const t=[];return t.key=e,t}function Vf(e,t,n){var r=null,o=cp(!0),a=null,i=Kp,s=null,l=Mp(c);function c(c){var u,d,h,p,f,g=(c=lp(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==a&&(s=i(f=l())),u=0;u<=g;++u){if(!(u<g&&o(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]=+e(p,u,c),_[u]=+t(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 Qp().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?Zp:cp(+e),t="function"==typeof t?t:cp(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?$p:cp(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:cp(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:cp(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:cp(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:cp(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:cp(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:cp(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:cp(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),c):a},c}function If(e){return e<0?-1:1}function Of(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(If(a)+If(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function Hf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Bf(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,o+s*t,a-s,i-s*n,a,i)}function Rf(e){this._context=e}function Wf(e){this._context=e}function zf(e){return new Rf(e)}Rf.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:Bf(this,this._t0,Hf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Bf(this,Hf(this,n=Of(this,e,t)),n);break;default:Bf(this,this._t0,n=Of(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Wf(e)}.prototype=Object.create(Rf.prototype)).point=function(e,t){Rf.prototype.point.call(this,t,e)},Wf.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}};var Yf,Uf=he(),qf=Jo((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Yf||(Yf={}));var Xf=function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(ed(document.getElementById(n._rectId),e)[0]),o=qf(t[0].data,r),a=t[0].data[o-1],i=t[0].data[o],s=null,l=null,c=null;if(void 0===a&&void 0!==i)l=i.x,c=o;else if(void 0!==a&&void 0===i)l=a.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=Ld(t[0].data[0].x,!0)){case od.DateAxis:u=new Date(r).getTime(),d=a.x.getTime(),h=i.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case od.NumericAxis:u=r,d=a.x,h=i.x,l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=Ee(n._calloutPoints,(function(e){return e.x===v})),y=s===od.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Yf.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Yf.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Yf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=cp([]),t=Pf,n=Mf,r=Nf;function o(o){var a,i,s=Array.from(e.apply(this,arguments),Ff),l=s.length,c=-1;for(const e of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(e,s[a].key,c,o)]).data=e;for(a=0,i=lp(t(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:cp(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:cp(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Pf:"function"==typeof e?e:cp(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Mf:e,o):n},o}().keys(e)(t),o=na(r[r.length-1],(function(e){return e[1]})),a=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),a.push(t)})),n._isMultiStackChart=!!(a&&a.length>1),{stackedData:a,maxOfYVal:o}},n._createDataSet=function(e){if(n.props.enablePerfOptimization&&n._enableComputationOptimization){var t=[],r=[],o=[],a=[],i=vd(e);e&&e.length&&e.forEach((function(e){o.push(e.color),a.push(e.opacity||1),t.push.apply(t,e.data)}));var s={};t.forEach((function(e){var t=e.x instanceof Date?e.x.toLocaleString():e.x;s[t]?s[t].push(e):s[t]=[e]})),Object.keys(s).forEach((function(e){var t=s[e],n={};t.forEach((function(e,t){n.xVal=e.x,n["chart".concat(t)]=e.y})),r.push(n)}));for(var l=r&&Object.keys(r[0]).length,c=[],u=0;u<l-1;u++){var d="chart".concat(u);c.push(d)}var h=n._getStackedData(c,r);return{colors:o,opacity:a,keys:c,stackedInfo:h,calloutPoints:i}}var p=[],f=[],g=[],m=[];i=vd(e),e&&e.length&&e.forEach((function(e){g.push(e.color),m.push(e.opacity||1),p.push.apply(p,e.data)}));for(var v=p,_=function(){var e=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,t=v.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart".concat(t)]=e.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.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=n._getStackedData(c,f),{colors:g,opacity:m,keys:c,stackedInfo:h,calloutPoints:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,o,a){n._chart=n._drawGraph(r,e,t,a)},n._getLegendData=function(e){var t=[];return e.forEach((function(e){var r=e.color;if(!(t.filter((function(t){return t.title===e.legend&&t.color===r})).length>0)){var o={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};t.push(o)}})),s.createElement(sp,o({legends:t,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){return n._isMultiStackChart?n._legendHighlighted(e)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),n._noLegendHighlighted()||(t=n._legendHighlighted(e)?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var o=t;return n.state.nearestCircleToHighlight!==e&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(o=n.props.theme.palette.white)),o},n._drawGraph=function(e,t,r,a){var i,l=n._addDefaultColors(n.props.data.lineChartData),c=n.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Vf().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(zf),p=Qp().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(zf),f=[];n._stackedData.forEach((function(e,a){f.push(s.createElement(s.Fragment,{key:"".concat(a,"-graph-").concat(n._uniqueIdForGraph)},s.createElement("path",o({id:"".concat(a,"-line-").concat(n._uniqueIdForGraph),d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[a],opacity:n._getLineOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[a].lineOptions)),1===e.length?s.createElement("circle",{id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),cx:t(e[0].xVal),cy:r(e[0].values[1]),r:6,stroke:n._colors[a],strokeWidth:3,fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",o({id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),d:h(e),fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":n._legendHighlighted(l[a].legend)||n._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;n._stackedData.forEach((function(e,a){l.length!==a&&(n.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,c){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(n.state.nearestCircleToHighlight===d){var h="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c);i=l[a].color,f.push(s.createElement("circle",o({key:h,id:h,cx:t(e.xVal),cy:r(e.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(d,i,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick)},u,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:"".concat(a,"-dots-").concat(n._uniqueIdForGraph),d:h(e),clipPath:"url(#clip)"},e.map((function(e,c){var d="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return i=l[a].color,s.createElement("circle",o({key:d,id:d,"data-is-focusable":n._legendHighlighted(l[a].legend)||n._noLegendHighlighted(),cx:t(e.xVal),cy:r(e.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(h,i,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick),onFocus:function(){return n._handleFocus(a,c,d)},onBlur:n._handleBlur},u,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(a,c)}))})))))})),f.push(s.createElement("line",o({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:i,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Uf(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=$u(a).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&yd(_)}return f},n._getCircleRadius=function(e,t,r){var o=n.state,a=o.isCircleClicked,i=o.nearestCircleToHighlight,s=o.activePoint;return a&&i===e?1:i===e||s===r?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(e){return e?e.map((function(e,t){var r,a,i;return i=void 0===e.color?Ef(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):Sf(e.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),o(o({},e),{color:i})})):[]},n._handleFocus=function(e,t,r){var o=n.props.data.lineChartData[e].data[t],a=o.x,i=o.y,s=o.xAxisCalloutData,l=a instanceof Date?a.toLocaleString():a,c=a instanceof Date?a.getTime():a,u=n._calloutPoints.find((function(e){return e.x===c}));u.values=u.values.filter((function(e){return e.y===i})),n.setState({refSelected:"#".concat(r),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(e,t){var r,o=n.props.data.lineChartData[e],a=o.data[t],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n._createSet=tr(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Yf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},So("AREA CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),n._uniqueIdForGraph=xe("areaChart_"),n._verticalLineId=xe("verticalLine_"),n._circleId=xe("circle"),n._rectId=xe("rectangle"),n._tooltipId=xe("AreaChartTooltipID"),n._enableComputationOptimization=!0,n._firstRenderOptimization=!0,n._emptyChartId=xe("_AreaChart_empty"),n}return r(t,e),t.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},t.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var t=this.props.data,n=t.lineChartData,r=t.chartTitle,a=this._addDefaultColors(n),i=this._createSet(a),l=i.colors,c=i.opacity,u=i.stackedInfo,d=i.calloutPoints;this._calloutPoints=d;var h=xd(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=o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.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 s.createElement(nf,o({},this.props,{chartTitle:r,points:a,chartType:rd.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?od.DateAxis:od.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(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),o=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:o,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))}return s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length)},t}(s.Component),jf=S(Xf,(function(e){return{tooltip:o(o({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Gf=function(e){return{root:{fill:e.color,stroke:zn.white,strokeWidth:2}}},Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){$f(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return $f(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,o=he()(Gf,{color:n});return s.createElement("path",{d:r(this.props.data),className:o.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:Hp()},t}(s.Component),Zf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,o=t.culture,a=r.centroid(n),i=a[0],l=a[1],c="translate(".concat(i,", ").concat(l,")");return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:c,textAnchor:"middle"},n.data.x,"-",wd(n.data.y,o)))},t}(Kf);function $f(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Qf,Jf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Zf,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(t))})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,o=t.data,a=t.width,i=t.height,l=t.chartTitle;this.colors=Wc().range(r);var c=n(o),u="translate(".concat(a/2,", ").concat(i/2,")");return s.createElement("svg",{width:a,height:i,"aria-label":l},s.createElement("g",{transform:u},c.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Sp().sort(null).value((function(e){return e.y}))},t}(s.Component),eg=he(),tg=function(e){function t(t){var n=e.call(this,t)||this;return n._emptyChartId=xe("_PieChart_empty"),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,o=e.colors,a=e.chartTitle,i=this.props,l=i.theme,c=i.className,u=i.styles,d=i.culture;this._classNames=eg(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(Jf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:o,chartTitle:a}))},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.y>0})).length>0)},t.defaultProps={data:[],width:600,height:350},t}(s.Component),ng=S(tg,(function(e){var t=e.className,n=e.theme,r=e.width+30,a=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:a,boxSizing:"content-box"}],chartTitle:[o({textAlign:"center"},n.fonts.mediumPlus)]}})),rg=he(),og=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n._emptyChartId=xe("_SBC_empty"),n}return r(t,e),t.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,a=e.hideNumberDisplay,i=e.ignoreFixStyle,l=e.culture,c=this.props.theme.palette,u=i||t.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||c.neutralTertiary),r&&(r.color=r.color||c.neutralSecondary);var d=this._createBarsAndLegends(t,u,c,n,r),h=!1===a&&!i&&2===t.chartData.length,p=!1===a&&!i&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(i||t.chartData.length>2);this._classNames=rg(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return wd(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(nh,{direction:Td.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(fh,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),h&&s.createElement("div",o({},Ad(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+wd(f,l))),p&&s.createElement("div",o({className:this._classNames.ratioNumerator},Ad(t.chartDataAccessibilityData,"text",!1)),_())),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(nh,{direction:Td.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(Vo,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Se.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ad(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Fd,{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&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))}return s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._adjustProps=function(){this._classNames=rg(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,a){var i=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],c=[],u=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=e.chartData.map((function(e,n){var r=e.color?e.color:l[Math.floor(4*Math.random()+1)],o=e.data?e.data:0,a={title:e.legend,color:r,action:d>0?function(){i._onClick(e.legend)}:void 0,hoverAction:d>0?function(){i._handleChartMouseLeave(),i._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(){i._onLeave()}:void 0};e.placeHolder||c.push(a),n>0&&(h+=p),(p=o/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,u.push(h);var f=i.props.styles,m=!(!i._legendHighlighted(e.legend)&&!i._noLegendHighlighted());return i._classNames=rg(f,{theme:i.props.theme,shouldHighlight:m,href:i.props.href}),s.createElement("g",{key:n,className:i._classNames.opacityChangeOnHover,ref:function(e){i._refCallback(e,a.title)},"data-is-focusable":!i.props.hideTooltip,onFocus:i._onBarFocus.bind(i,o,r,e),onBlur:i._onBarLeave,"aria-label":i._getAriaLabel(e),role:"img",onMouseOver:i._onBarHover.bind(i,o,r,e),onMouseMove:i._onBarHover.bind(i,o,r,e),onMouseLeave:i._onBarLeave,pointerEvents:"all",onClick:i.props.href?i._redirectToUrl.bind(i,i.props.href):e.onClick},s.createElement("rect",{key:n,id:xe("_SBC_bar"),x:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(c,r),this._addLegend(c,a);var v=s.createElement(sp,o({legends:c,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},t.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,id:xe("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,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:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},t.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),ag=S(og,(function(e){var t,n,r=e.className,a=e.width,i=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:a||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:i||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:o(o({},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",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.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:(t={},t[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},t)},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:(n={},n[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},n)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(Qf||(Qf={}));var ig,sg=he(),lg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=le(),n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,o=e.styles,a=e.width,i=e.barHeight;n._classNames=sg(o,{legendColor:n.state.color,theme:t,width:a,className:r,barHeight:i})},n._getLegendData=function(e,t,r){var a=[r.blueLight,r.blue,r.blueMid,r.red,r.black],i=[];return e.forEach((function(e,r){var o=e.chartData.filter((function(e){return!e.placeHolder}));o.length<3?void 0!==t[r]&&t[r]&&o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}})):o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}}))})),s.createElement(sp,o({legends:i,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n._computeLongestBarTotalValue=function(){var e=0;return n.props.data.forEach((function(t){var n=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0);e=Math.max(e,n)})),e},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n._emptyChartId=xe("_MSBC_empty"),n}return r(t,e),t.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var t=this.props,n=t.data,r=t.theme,a=t.culture;this._adjustProps();var i=r.palette,l=this._getLegendData(n,this.props.hideRatio,i),c=this.state.isCalloutVisible;this._classNames=sg(this.props.styles,{legendColor:this.state.color,theme:r,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=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,i,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(Vo,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:Se.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ad(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Fd,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._createBarsAndLegends=function(e,t,n,r,a,i){var l=this,c=this.props.culture,u=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=this.props.variant===Qf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(e.chartData.map((function(e,t){var n=e.data?e.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===Qf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=e.chartData.map((function(e,r){var o=e.color?e.color:e.placeHolder?n.neutralLight:u[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;r>0&&(v+=_),(_=a/p*100?a/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var c=l.props.styles,h=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=sg(c,{theme:l.props.theme,shouldHighlight:h,href:i,variant:l.props.variant,hideLabels:l.props.hideLabels}),s.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,o,e),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,a,o,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,a,o,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:i?e.placeHolder?void 0:l._redirectToUrl.bind(l,i):e.onClick},s.createElement("rect",{key:r,x:"".concat(l._isRTL?100-d[r]-_:d[r],"%"),y:0,width:_+"%",height:t,fill:o}))}));this.props.variant===Qf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_,"%"),y:t/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(h),role:"img"},wi(h<1e3?".2~":".1",h)(h))):(0===e.chartData.length&&y.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralLight}))),0===h&&y.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==Qf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==Qf.AbsoluteScale&&!x&&1===e.chartData.length,E=function(){return wd(e.chartData[0].data?e.chartData[0].data:0,c)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(nh,{direction:Td.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(fh,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),b&&s.createElement("div",o({},Ad(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},E()),!a&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+wd(h,c))),C&&s.createElement("div",o({className:this._classNames.ratioNumerator},Ad(e.chartDataAccessibilityData,"text",!1)),E()))),s.createElement(nh,{direction:Td.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},y))))},t.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,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:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return e.chartData&&0===e.chartData.length})).length)},t.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),cg=S(lg,(function(e){var t=e.className,n=e.width,r=e.barHeight,a=e.shouldHighlight,i=e.theme,s=e.href,l=e.variant,c=e.hideLabels;return{root:[i.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:o(o({},i.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:i.palette.neutralPrimary,marginBottom:l===Qf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===Qf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:s?"pointer":"default",stroke:i.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:i.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:i.palette.neutralPrimary},placeHolderOnHover:{opacity:a?"":"0.1",cursor:"default",stroke:i.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},chartWrapper:{paddingRight:l!==Qf.AbsoluteScale||c?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(ig||(ig={}));var ug,dg=he(),hg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._createLine=function(e,t,r,o,a){var i;void 0===r&&(r=0),void 0===o&&(o=0);var l=n._xAxisType===od.NumericAxis,c=n._getScales(r,o,l).xBarScale,u=n._createColors(),d=n.props.theme,h=n.props,p=h.data,f=h.lineLegendColor,g=void 0===f?d.palette.yellow:f,m=h.lineLegendText,v=[],_=[];p&&p.forEach((function(e,t){var n;e.lineData&&e.lineData.y&&v.push({x:e.x,y:e.lineData.y,useSecondaryYScale:null!==(n=e.lineData.useSecondaryYScale)&&void 0!==n&&n,point:e,index:t})}));var y=Qp().x((function(t){return l?e(t.x):c(t.x)+.5*c.bandwidth()})).y((function(e){return e.useSecondaryYScale&&a?a(e.y):t(e.y)})),x=!(!n._legendHighlighted(m)&&!n._noLegendHighlighted()),b=(null===(i=n.props.lineOptions)||void 0===i?void 0:i.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;b>0&&_.push(s.createElement("path",{key:xe("_VBC_line_"),id:xe("_VBC_line_"),opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{key:xe("_VBC_line_"),id:xe("_VBC_line_"),opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var C=v.map((function(r,o){var i;return s.createElement("circle",{key:o,id:xe("_VBC_point_"),cx:l?e(r.x):c(r.x)+.5*c.bandwidth(),cy:r.useSecondaryYScale&&a?a(r.y):t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,u(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:g,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?ig.show:ig.hide,onClick:null===(i=r.point.lineData)||void 0===i?void 0:i.onClick})}));return s.createElement(s.Fragment,null,_,C)},n._checkForLine=function(){return n.props.data.some((function(e){var t;return void 0!==(null===(t=null==e?void 0:e.lineData)||void 0===t?void 0:t.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,a=t.hoverXValue,i=r.map((function(e,t){return s.createElement(Fd,o({key:t,Legend:e.legend},0===t&&{XValue:"".concat(a||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,i)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(Fd,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,o,a){return n._bars=n._xAxisType===od.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,o,a,i=[],s=n.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&i.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(a=m[0].lineData)||void 0===a?void 0:a.yAxisCalloutData}),i.push({legend:m[0].legend,y:m[0].y,color:u?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){var o=n._getCalloutContentForLineAndBar(e),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){o.index===e.legend&&t===s&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData})}))},n._getScales=function(e,t,r){if(r){var o=na(n._points,(function(e){return e.x})),a=ra(n._points,(function(e){return e.x}));return{xBarScale:Pi().domain(n._isRtl?[o,a]:[a,o]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Pi().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:zc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Pi().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,a=r.theme,i=r.useSingleColor,l=n.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(e.forEach((function(e,t){var r=i?n._createColors()(1):e.color,o={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(o)})),n._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){n._onLegendClick(c)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(c)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(sp,o({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,r,o,a=e.xAxisCalloutData||e.x,i=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",c=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(a,". ")+(i?"".concat(i,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},n._getDomainMargins=function(e){if(n._xAxisType!==od.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},n._isHavingLine=n._checkForLine(),n._calloutId=xe("callout"),n._tooltipId=xe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?Ld(n.props.data[0].x,!0):od.StringAxis,n._domainMargin=8,n._emptyChartId=xe("_VBC_empty"),n}return r(t,e),t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(na(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=dg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=o(o(o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.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),Ad(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(nf,o({},this.props,{points:this._points,chartType:rd.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Td.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==od.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),e._isHavingLine&&s.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._yMax);return Pi().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),o=r.YValueHover,a=r.hoverXValue;this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,dataForHoverCard:e.y,calloutLegend:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,i=this._getScales(e,t,!0),l=i.xBarScale,c=i.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var o=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=dg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var i=Math.max(c(t.y),0);if(i<1)return s.createElement(s.Fragment,{key:t.x}," ");var d=l(t.x),h=e-r.margins.bottom-c(t.y);return s.createElement("g",{key:t.x},s.createElement("rect",{id:xe("_VBC_bar_"),x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:i,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(d,h,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=$u(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&yd(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,o=this._getScales(e,t,!1),a=o.xBarScale,i=o.yBarScale,l=this._createColors(),c=this._points.map((function(t,n){var o=Math.max(i(t.y),0);if(o<1)return s.createElement(s.Fragment,{key:t.x}," ");var c=a(t.x),u=e-r.margins.bottom-i(t.y);return s.createElement("g",{key:t.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},s.createElement("rect",{id:xe("_VBC_bar_"),x:c,y:u,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(t),role:"img",ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,l(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,l(t.y)),fill:t.color?t.color:l(t.y)}),r._renderBarLabel(c,u,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=$u(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&yd(d)}return c},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._renderBarLabel=function(e,t,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},wi(n<1e3?".2~":".1",n)(n))},t.prototype._isChartEmpty=function(){return 0===this._points.length||na(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine},t}(s.Component),pg=S(hg,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:o(o({},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:Hn.small,fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}}})),fg=he();!function(e){e.show="visibility",e.hide="hidden"}(ug||(ug={}));var gg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?""===n.state.selectedLegend:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(o(o({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,a,i){var l,c=n._xAxisType===od.NumericAxis,u=n._getScales(r,a,c).xBarScale,d=n._getFormattedLineData(n.props.data),h=[],p=[],f=[],g=n.props.theme,m=(null===(l=n.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,v=c?0:u.bandwidth()/2;return Object.keys(d).forEach((function(r,a){for(var l=n._legendHighlighted(r)||n._noLegendHighlighted(),f=1;f<d[r].length;f++){var _=c?e(d[r][f-1].xItem.xAxisPoint):u(d[r][f-1].xItem.xAxisPoint),y=d[r][f-1].useSecondaryYScale&&d[r][f].useSecondaryYScale&&i,x=y?i(d[r][f-1].y):t(d[r][f-1].y),b=c?e(d[r][f].xItem.xAxisPoint):u(d[r][f].xItem.xAxisPoint),C=y?i(d[r][f].y):t(d[r][f].y);m>0&&p.push(s.createElement("line",{key:"".concat(a,"-").concat(f,"-BorderLine"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.palette.white,transform:"translate(".concat(v,", 0)")})),h.push(s.createElement("line",o({key:"".concat(a,"-").concat(f,"-line"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:d[r][f].color,transform:"translate(".concat(v,", 0)")},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,d[r][f-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(d).forEach((function(r,a){d[r].forEach((function(l,d){f.push(s.createElement("circle",o({key:"".concat(a,"-").concat(d,"-dot"),cx:c?e(l.xItem.xAxisPoint):u(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&i?i(l.y):t(l.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,l):n._onStackHover.bind(n,l.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(v,", 0)")})))}))})),s.createElement(s.Fragment,null,p,h,f)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,o=r.selectedLegend,a=r.activeXAxisDataPoint;return""!==o?e===a&&o===t?{visibility:ug.show,radius:8}:o===t?{visibility:ug.show,radius:.3}:{visibility:ug.hide,radius:0}:{visibility:a===e?ug.show:ug.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:"".concat(e.xItem.xAxisPoint),yCalloutValue:"".concat(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,a){var i=n.props,l=i.barCornerRadius,c=void 0===l?0:l,u=i.barMinimumHeight,d=void 0===u?0:u,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(a,i){var l=r-n.margins.bottom,u=e((n._xAxisType,od.NumericAxis,a.xAxisPoint)),h=n._xAxisType===od.NumericAxis?0:(e.bandwidth()-n._barWidth)/2,f=0,g=a.chartData.filter((function(e){return e.data>0}));if(g.length){var m=n._getBarGapAndScale(g,t),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,t){var r=e.color?e.color:n._colors[t],m={},y=!(!n._legendHighlighted(e.legend)&&!n._noLegendHighlighted());n._classNames=fg(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a,e),onMouseOver:n._onRectHover.bind(n,a.xAxisPoint,e,r),onMouseMove:n._onRectHover.bind(n,a.xAxisPoint,e,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,e,a.xAxisPoint,r,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e),role:"img"},b=_*e.data;return b<d&&(b=d),l=l-b-(t?v:0),f+=e.data,c&&b>c&&t===g.length-1?s.createElement("path",o({key:t+i+"".concat(p),className:n._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(n._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-n._barWidth,"\n z\n "),fill:r,ref:function(e){return m.refElement=e},transform:"translate(".concat(h,", 0)")},x)):b<1?s.createElement(s.Fragment,{key:t+i}," "):s.createElement("rect",o({key:t+i,className:n._classNames.opacityChangeOnHover,x:u,y:l,width:n._barWidth,height:b,fill:r,ref:function(e){return m.refElement=e}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a),onMouseOver:n._onStackHover.bind(n,a),onMouseMove:n._onStackHover.bind(n,a),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,a,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,a),role:"img"};return s.createElement("g",{key:i+"".concat(p)},s.createElement("g",o({id:"".concat(i,"-singleBar"),ref:function(e){return x.refElement=e}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:u+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-label":"Total: ".concat(f),role:"img",transform:"translate(".concat(h,", 0)")},wi(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=$u(a).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&yd(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var o=n._yMax,a=Pi().domain([0,o]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var i=na(n._dataset,(function(e){return e.x})),s=ra(n._dataset,(function(e){return e.x}));return{xBarScale:Pi().domain(n._isRtl?[i,s]:[s,i]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:a}}return{xBarScale:zc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:a}},n._createNumericBars=function(e,t,r){var o=n._getScales(e,t,!0),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,e,r)},n._createStringBars=function(e,t,r){var o=n._getScales(e,t,!1),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,e,r)},n._getGraphData=function(e,t,r,o,a){return n._bars=n._xAxisType===od.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r,o;if(!t){var a=e.xAxisCalloutData||e.xAxisPoint,i=e.chartData.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data;return"".concat(t,", ").concat(n,".")})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data||e.y;return"".concat(t,", ").concat(n,".")})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(a,". ").concat(i)+(s?" ".concat(s):"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,c=t.legend,u=t.yAxisCalloutData||t.data;return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},n._getDomainMargins=function(e){if(n._xAxisType!==od.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},So("VERTICAL STACKED BAR CHART",t,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xe("callout"),n._tooltipId=xe("VSBCTooltipId_"),n._isChartEmpty()&&(n._adjustProps(),n._dataset=n._createDataSetLayer()),n._createLegendsForLine=tr((function(e){return n._getLineLegends(e)})),n._domainMargin=8,n._emptyChartId=xe("_VSBC_empty"),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;if(!this._isChartEmpty()){this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,a=void 0!==r&&r;this._dataset=this._createDataSetLayer();var i=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=fg(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.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),Ad(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(nf,o({},this.props,{points:this._dataset,chartType:rd.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:i,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:a||t?Td.horizontal:Td.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==od.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),s.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))}return s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=Ld(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?s.createElement(Fd,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var a=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};i.push(n)}}))}));var u=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};u.push(t)}));var d=u.concat(i);return s.createElement(sp,o({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?i(i([],n.sort((function(e,t){return e.data<t.data?1:-1})),!0),e.chartData.slice().reverse(),!0):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,o=void 0===r?0:r,a=e.reduce((function(e,t){return e+t.data}),0),i=null!=n?n:t(a),s=o&&e.length-1,l=s&&Math.max(1,Math.min(o,.2*i/s));return{gapHeight:l,heightValueScale:(i-l*s)/a}},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return 0===e.chartData.length})).length)},t}(s.Component),mg=S(gg,(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:o(o({},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:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}})),vg=he(),_g=.1/.9,yg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._getGraphData=function(e,t,r,o,a){var i=n._createX0Scale(o),s=n._createX1Scale(i),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,i,s,r,a))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var o=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:o}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){return n._legendHighlighted(e)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){n._refArray.forEach((function(o,a){o.index===e.legend&&r===a&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,o,a){var i=[],l=[],c=Pi().domain([0,n._yMax]).range([0,o-n.margins.bottom-n.margins.top]),u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(t,a){var d=e.indexNum*u.length+a,h=e[t],p=r(t),f=Math.max(o-n.margins.bottom-c(h.data),0);h.data&&i.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:"".concat(e.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},wi(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=$u(a).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&yd(h)}return s.createElement("g",{key:e.indexNum,transform:"translate(".concat(t(e.xAxisPoint),", 0)")},i,l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var a={},i={},s=[];e.series.forEach((function(e){a[e.key]=e.data,i[e.key]=o({},e),s.push(e)})),i.xAxisPoint=e.name,i.indexNum=n,i.groupSeries=s,i.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(i),r.push(a)})),n._dataset=r,t},n._createX0Scale=function(e){return zc().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*_g))},n._createX1Scale=function(e){var t=e.bandwidth();return zc().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).paddingInner(.1)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,a=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};i.push(r)}}))})),s.createElement(sp,o({legends:i,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,o=e.legend,a=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(a,".")},n._getDomainMargins=function(e){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),a=n._keys.length*r+(n._keys.length-1)*_g*r,i=n._xAxisLabels.length*a+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,t>=i?n._domainMargin+=(t-i)/2:r=(a=t/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*_g))))/(n._keys.length+(n._keys.length-1)*_g),n._barWidth=r,o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=tr((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},So("GROUPED VERTICAL BAR CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),n._refArray=[],n._calloutId=xe("callout"),n._tooltipId=xe("GVBCTooltipId_"),n._domainMargin=8,n._emptyChartId=xe("_GVBC_empty"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,a=n.xAxisLabels,i=n.datasetForBars;this._keys=r,this._xAxisLabels=a,this._datasetForBars=i,this._xAxisType=Ld(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),c=na(this._dataset,(function(t){return na(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=vg(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=o(o(o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.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}),Ad(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(nf,o({},this.props,{points:this._datasetForBars,chartType:rd.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Td.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)*_g),xAxisOuterPadding:0,children:function(){return s.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.series.length})).length>0)},t}(s.Component),xg=S(yg,(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:o(o({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:t.palette.neutralPrimary}}})),bg=he(),Cg=function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){return n._legendHighlighted(e)||n._noLegendHighlighted()?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,o){var a="".concat(r).concat(o),i=s.createElement("g",{key:a,role:"img","aria-label":n._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate(".concat(n._xAxisScale(t.x),", ").concat(n._yAxisScale(t.y),")"),ref:function(e){n._rectRefCallback(e,a,t)},onFocus:n._onRectFocus.bind(n,a,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,a,t),onMouseOut:n._onRectBlurOrMouseOut},s.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate(".concat(n._xAxisScale.bandwidth()/2,", ").concat(n._yAxisScale.bandwidth()/2,")")},wd(t.rectText,n.props.culture)));e.push(i)}))})),e},n._onLegendHover=function(e){n.setState({activeLegend:e})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(e){n.state.selectedLegend===e?n.setState({selectedLegend:""}):n.setState({selectedLegend:e})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,a=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(t)})),s.createElement(sp,o({},r,{legends:a}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Pi().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===od.DateAxis?"".concat(e.getTime()):n._xAxisType===od.StringAxis?e:n._xAxisType===od.NumericAxis?"".concat(e):""},n._getYIndex=function(e){return n._yAxisType===ad.DateAxis?"".concat(e.getTime()):n._yAxisType===ad.StringAxis?e:n._yAxisType===ad.NumericAxis?"".concat(e):""},n._createNewDataSet=function(e,t,r,a,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(o(o({},t),{legend:e.legend}))}))}));var c={},u={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",u[r]="1",c[r]?c[r]=i(i([],c[r],!0),[e],!1):c[r]=[e]})),Object.keys(c).forEach((function(e){c[e].sort((function(e,t){return n._xAxisType===od.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===od.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===od.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===od.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===od.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===od.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===ad.DateAxis&&(e.y=n._getStringFormattedDate(e.y,a)),n._yAxisType===ad.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===ad.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===ad.DateAxis?c[n._getStringFormattedDate(e,a)]=c[e]:n._yAxisType===ad.NumericAxis?c["".concat(n._getStringFormattedNumber(e,s))]=c[e]:c[n._getFormattedLabelForYAxisDataPoint(e)]=c[e]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===od.DateAxis||n._xAxisType===od.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===od.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===od.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===ad.DateAxis||n._yAxisType===ad.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===ad.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===ad.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),ml(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return Ai(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,o=e.legend,a=e.ratio?"".concat(e.ratio[0],"/").concat(e.ratio[1]):e.rectText||e.value,i=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(a,".")+(i?" ".concat(i,"."):"")};var r=n._getXandY(),a=r.x,l=r.y;return n._xAxisType=Ld(a,!0),n._yAxisType=Ld(l,!1),n._createSet=tr((function(e,t,r,o,a){return n._createNewDataSet(e,t,r,o,a)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n._emptyChartId=xe("_HeatMap_empty"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,a=t.xAxisNumberFormatString,i=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var c=this._createSet(n,r,a,i,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=bg(this.props.styles,{theme:this.props.theme});var p=o(o(o(o({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:Se.topAutoEdge,onDismiss:this._closeCallout}),Ad(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=o(o({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(nf,o({},this.props,{points:n,chartType:rd.HeatMapChart,xAxisType:od.StringAxis,yAxisType:ad.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Td.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},t}(s.Component),Eg=S(Cg,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Bn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function Sg(e,t){return t-1-e.height}function Lg(e,t){return e.sourceLinks.length?e.depth:t-1}function kg(e){return function(){return e}}function Ag(e,t){return Dg(e.source,t.source)||e.index-t.index}function wg(e,t){return Dg(e.target,t.target)||e.index-t.index}function Dg(e,t){return e.y0-t.y0}function Tg(e){return e.value}function Mg(e){return e.index}function Pg(e){return e.nodes}function Ng(e){return e.links}function Fg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Vg({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}class Ig{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Og(e){return new Ig(e,!0)}var Hg=he(),Bg="#757575",Rg=[{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"}],Wg="#323130",zg="#FFFFFF",Yg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(e.index),e.borderColor):e.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=xe("callout"),n._linkId=xe("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=tr((function(e){return n._normalizeSankeyData(e)})),n._emptyChartId=xe("_SankeyChart_empty"),n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var t=this.props,n=t.theme,r=t.className,a=t.styles,i=t.pathColor;this._classNames=Hg(a,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:i,className:r});var l,c=this._preRenderLayout(),u=c.height,d=c.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,u-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},s.createElement(nh,{direction:Td.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:u,id:xe("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(Vo,o({},f),s.createElement(Fd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))}return s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._preRenderLayout=function(){var e=this.state.containerWidth-this._margins.right,t=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let e,t,n,r=0,o=0,a=1,i=1,s=24,l=8,c=Mg,u=Lg,d=Pg,h=Ng,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[c(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:o}=n;"object"!=typeof t&&(t=n.source=Fg(r,t)),"object"!=typeof o&&(o=n.target=Fg(r,o)),t.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(oa(t.sourceLinks,Tg),oa(t.targetLinks,Tg)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.depth=o;for(const{target:t}of e.sourceLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.height=o;for(const{source:t}of e.targetLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:e}){const n=na(e,(e=>e.depth))+1,o=(a-r-s)/(n-1),i=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=r+e*o,t.x1=t.x0+s,i[e]?i[e].push(t):i[e]=[t]}if(t)for(const e of i)e.sort(t);return i}(n);e=Math.min(l,(i-o)/(na(c,(e=>e.length))-1)),function(t){const n=ra(t,(t=>(i-o-(t.length-1)*e)/oa(t,Tg)));for(const r of t){let t=o;for(const o of r){o.y0=t,o.y1=t+o.value*n,t=o.y1+e;for(const e of o.sourceLinks)e.width=e.value*n}t=(i-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}b(r)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),Vg(f),f}function g(e,n,r){for(let o=1,a=e.length;o<a;++o){const a=e[o];for(const e of a){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let a=o*(e.layer-n.layer);t+=C(n,e)*a,r+=a}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&a.sort(Dg),v(a,r)}}function m(e,n,r){for(let o=e.length-2;o>=0;--o){const a=e[o];for(const e of a){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let a=o*(n.layer-e.layer);t+=E(e,n)*a,r+=a}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&a.sort(Dg),v(a,r)}}function v(t,n){const r=t.length>>1,a=t[r];y(t,a.y0-e,r-1,n),_(t,a.y1+e,r+1,n),y(t,i,t.length-1,n),_(t,o,0,n)}function _(t,n,r,o){for(;r<t.length;++r){const a=t[r],i=(n-a.y0)*o;i>1e-6&&(a.y0+=i,a.y1+=i),n=a.y1+e}}function y(t,n,r,o){for(;r>=0;--r){const a=t[r],i=(a.y1-n)*o;i>1e-6&&(a.y0-=i,a.y1-=i),n=a.y0-e}}function x({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(wg);for(const{target:{targetLinks:t}}of e)t.sort(Ag)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(wg),n.sort(Ag)}function C(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:a}of t.sourceLinks){if(o===n)break;r+=a+e}for(const{source:e,width:o}of n.targetLinks){if(e===t)break;r-=o}return r}function E(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:o,width:a}of n.targetLinks){if(o===t)break;r+=a+e}for(const{target:e,width:o}of t.sourceLinks){if(e===n)break;r-=o}return r}return f.update=function(e){return Vg(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:kg(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:kg(e),f):u},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:kg(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:kg(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=o=0,a=+e[0],i=+e[1],f):[a-r,i-o]},f.extent=function(e){return arguments.length?(r=+e[0][0],a=+e[1][0],o=+e[0][1],i=+e[1][1],f):[[r,o],[a,i]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[e-1,t-6]]).nodeAlign(this._isRtl?Sg:Lg),{height:t,width:e}},t.prototype._populateNodeActualValue=function(e){e.links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(oa(e.sourceLinks,(function(e){return e.unnormalizedValue})),oa(e.targetLinks,(function(e){return e.unnormalizedValue})))}))},t.prototype._normalizeSankeyData=function(e){this._nodesInColumn=this._populateNodeInColumns(e,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},t.prototype._populateNodeInColumns=function(e,t){t(e);var n={};return e.nodes.forEach((function(e){var t=e.layer;n[t]?n[t].push(e):n[t]=[e]})),n},t.prototype._adjustOnePercentHeightNodes=function(e){var t=this;Object.values(e).map((function(e){return oa(e,(function(e){return e.value}))})).forEach((function(n,r){var o=0;e[r].forEach((function(e){var t=e.value/n*100;e.actualValue=e.value,t<1?(e.value=.01*n,o+=1):o+=t}));var a=0!==o?o/100:1;a>1&&e[r].forEach((function(e){e.value=e.value/a,t._changeColumnValue(e,e.actualValue,e.value)}))}))},t.prototype._changeColumnValue=function(e,t,n){e.sourceLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r})),e.targetLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r}))},t.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-oa(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},t.prototype._createLinks=function(){var e=this,t=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var o,a=[{x:(o=n).source.x1,y0:o.y0+o.width/2,y1:o.y0-o.width/2},{x:o.target.x0,y0:o.y1+o.width/2,y1:o.y1-o.width/2}],i=Vf().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(Og),l="url(#gradient-".concat(e._linkId,"-").concat(r,")"),c=s.createElement("g",{key:"".concat(e._linkId,"-").concat(r)},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-".concat(e._linkId,"-").concat(r),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:i(a),id:xe("link"),fill:e._fillStreamColors(n,l),stroke:e._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:e._getOpacityStreamBorder(n),onMouseOver:e._onStreamHover.bind(e,n),onMouseOut:function(){e._onStreamLeave(n)},onFocus:e._onFocusLink.bind(e,n),onBlur:e._onBlur,fillOpacity:e._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));t.push(c)})),t},t.prototype._createNodes=function(e){var t=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(e,r){var o=e.y1-e.y0>0?e.y1-e.y0:0,a=8,i=0;if(o<36){a+=6;var l=$u(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(e.actualValue),null!==l.node()&&(a+=i=l.node().getComputedTextLength()),l.text(null),td(".tempText").remove()}var c=t._truncateText(e.name,116,a),u="..."===c.slice(-3),d=xe("tooltip"),h=$u("body").append("div").attr("id",d).attr("class",t._classNames.toolTip).style("opacity",0),p=xe("nodeBar"),f=s.createElement("g",{key:r,id:xe("nodeGElement")},s.createElement("rect",{x:e.x0,y:e.y0,height:o,width:e.x1-e.x0,fill:t._fillNodeColors(e),id:p,onMouseOver:t._onHover.bind(t,e),onMouseOut:function(){t._onLeave(e)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(e),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(e.name)+"with weight"+"".concat(e.actualValue),role:"img"}),e.y1-e.y0>24&&s.createElement("g",{className:t._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:"".concat(p,"-name"),x:e.x0,y:e.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?zg:Wg,fontSize:10,onMouseOver:t._showTooltip.bind(t,e.name,u,h),onMouseOut:t._hideTooltip.bind(t,h)},c)),s.createElement("text",{x:o>36?e.x0:e.x1-i-8,y:e.y0,dy:o>36?"2em":"1em",dx:o>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?zg:Wg,fontSize:14},e.actualValue)));n.push(f)})),n},t.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},t.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(e),r=this._getSelectedNodes(n);r.push(e),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(n).map((function(e){return e.index}))),selectedNode:e,refSelected:t,isCalloutVisible:e.y1-e.y0<24,color:e.color,xCalloutValue:e.name,yCalloutValue:e.actualValue})}},t.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(e),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(r).map((function(e){return e.index}))),refSelected:t,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.unnormalizedValue.toString(),descriptionMessage:"from "+e.source.name})}},t.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},t.prototype._onFocusLink=function(e,t){t.persist(),this._onCloseCallout(),this.setState({refSelected:t.currentTarget,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.source.actualValue,descriptionMessage:"from "+e.source.name})},t.prototype._assignNodeColors=function(){var e,t;this.props.colorsForNodes&&this.props.borderColorsForNodes?(e=this.props.colorsForNodes,t=this.props.borderColorsForNodes):(e=Rg.map((function(e){return e.fillColor})),t=Rg.map((function(e){return e.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=e[n],r.borderColor=t[n]),n=(n+1)%e.length}))},t.prototype._fillStreamColors=function(e,t){return this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:void 0},t.prototype._fillStreamBorder=function(e,t){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:Bg:Bg},t.prototype._getSelectedNodes=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t},t.prototype._getSelectedLinks=function(e){var t=new Array,n=new Set;for(e.sourceLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;)(r=t.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(e){n.add(e),t.push(e)}));for(e.targetLinks&&e.targetLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;){var r;(r=t.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(e){n.add(e),t.push(e)}))}return n},t.prototype._getSelectedLinksforStreamHover=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var o=t.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)o=t.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}},t.prototype._getOpacityStream=function(e){if(this.state.selectedState){if(!this.state.selectedLinks.has(e.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(e.index)&&!this.state.selectedNode)return.3}return 1},t.prototype._getOpacityStreamBorder=function(e){return!this.state.selectedState||this.state.selectedLinks.has(e.index)||this.state.selectedNode?1:.5},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,o=t&&t.getBoundingClientRect().width,a=t&&t.getBoundingClientRect().height;(n!==o||r!==a)&&e.setState({containerWidth:o,containerHeight:a})}))},t.prototype._truncateText=function(e,t,n){var r=t-n,o=0,a=$u(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(a.text(e),null!==a.node()&&a.node().getComputedTextLength()<=r)return e;a.text(null),a.text("..."),null!==a.node()&&(o=a.node().getComputedTextLength()),a.text(null);for(var i="",s=0;s<e.length;s++)if(i+=e[s],a.text(i),null!==a.node()&&a.node().getComputedTextLength()>=r-o){i=i.slice(0,-1),i+="...";break}return a.text(null),td(".tempText").remove(),i},t.prototype._showTooltip=function(e,t,n,r){t&&(n.style("opacity",.9),n.html(e).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},t.prototype._hideTooltip=function(e){e.style("opacity",0)},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.SankeyChartData&&this.props.data.SankeyChartData.nodes.length>0&&this.props.data.SankeyChartData.links.length>0)},t}(s.Component),Ug=S(Yg,(function(e){var t,n,r,a=e.className,i=e.theme,s=e.pathColor,l=i.effects;return{root:[i.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},a],links:{stroke:s||i.palette.black,fill:i?i.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(t={},t[qn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[qn]={fill:"#000000"},n)},toolTip:o(o({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function qg(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Xg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Gg)):void 0===t&&(t=jg);for(var n,r,o,a,i,s=new $g(e),l=[s];n=l.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new $g(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Zg)}function jg(e){return e.children}function Gg(e){return Array.isArray(e)?e[1]:null}function Kg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Zg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $g(e){this.data=e,this.depth=this.height=0,this.parent=null}function Qg(e,t){return e.parent===t.parent?1:2}function Jg(e){var t=e.children;return t?t[0]:e.t}function em(e){var t=e.children;return t?t[t.length-1]:e.t}function tm(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function nm(e,t,n){return e.a.parent===t.parent?e.a:n}function rm(e,t){this._=e,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=t}$g.prototype=Xg.prototype={constructor:$g,count:function(){return this.eachAfter(qg)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Xg(this).eachBefore(Kg)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},rm.prototype=Object.create($g.prototype);var om,am,im=he(),sm=function(e){function t(t,n,r,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=[]);var s=e.call(this,t,r,o,a)||this;return s.composition=n,s._treeTraversal=i,s}return r(t,e),t.prototype.createTree=function(e,t){var n,r,o,a,i,s,l=(e=e<65?65:e>90?90:e)||75,c=Xg(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=Qg,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new rm(e,0),s=[i];t=s.pop();)if(r=t._.children)for(t.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=t.children[o]=new rm(r[o],o)),n.parent=t;return(i.parent=new rm(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return o}function a(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,a=o.length;--a>=0;)(t=o[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-a):t.z=a}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,a=t,i=t,s=n,l=a.parent.children[0],c=a.m,u=i.m,d=s.m,h=l.m;s=em(s),a=Jg(a),s&&a;)l=Jg(l),(i=em(i)).a=t,(o=s.z+d-a.z-c+e(s._,a._))>0&&(tm(nm(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=a.m,h+=l.m,u+=i.m;s&&!em(i)&&(i.t=s,i.m+=d-u),a&&!Jg(l)&&(l.t=a,l.m+=c-h,r=t)}return r}(t,o,t.parent.A||r[0])}function i(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var d=[],h=0,p=function(e){var t,n;e.id=h,d.push({id:h,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(e){p(e)})):c.eachBefore((function(e){p(e)}));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,L=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,k=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,A=null===(a=d[x.parentID])||void 0===a?void 0:a.x,w=null===(i=S[0])||void 0===i?void 0:i.y,D=0;D<S.length;++D){var T=S[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===S.length?A:L:k,w,T.data.fill,1===S.length?f:C,g,T.id,b),D%2==1&&(w+=E+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=E+m):S.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:k,w,T.data.fill,1===S.length?f:C,g,T.id,b),D%2==1&&(w+=E+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=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)){var M=ra(S=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=na(S,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},t}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var o,a=e.split(/\s+/).reverse(),i="",s=$u(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];i=a.pop();)if(l.push(i),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),td(".tempText").remove(),o},e.prototype.addNodeShapetoSVG=function(e,t,n,r,o,a,i,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(e,"\nsubText ").concat(t," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(s.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:i,key:"".concat(u).concat(this.styleClassNames.rectNode)})),t&&(t=this.truncateText(t,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)),e=this.truncateText(e,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(s.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)},e,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e))},e.prototype.createPathLink=function(e,t,n,r,o,a,i,s,l){var c="M".concat(n-a/2,",").concat(r-s," H").concat(l+a/2," M").concat(e,",").concat(r-s,"\n V").concat(t+i+s/2),u="M".concat(e,",").concat(t+i+s/2," V").concat(t+5*s,"\n H").concat(e-a/2," H").concat(e+a/2);return o?u:c},e.prototype.addLinktoSVG=function(e,t,n,r,o,a,i,l,c,u){void 0===u&&(u=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,o,a,i,l,c,u),key:"".concat(e).concat(this.styleClassNames.link)}))},e}()),lm=function(e){function t(t){var n,r=this;return(r=e.call(this,t)||this)._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=im(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=td("text"),n=td("rect"),r=td("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new sm(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return s.createElement(nh,null,s.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(s.Component),cm=S(lm,(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:o({fill:"black"},e.theme.fonts.large),rectSubText:o({fill:"#484644"},e.theme.fonts.medium),rectBodyText:o({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:o({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(om||(om={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(am||(am={}));var um,dm=he(),hm=function(e){function t(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n._emptyChartId=xe("_SparklineChart_empty"),n}return r(t,e),t.prototype.componentDidMount=function(){var e=this;if(!this._isChartEmpty()){var t=Vf().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Kp);this.area=t;var n=Qp().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Kp);this.line=n;var r=this.props.data.lineChartData[0].data,o=function(e,t){var n,r,o,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=o=n;++i<a;)null!=(n=e[i])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++i<a;)if(null!=(n=t(e[i]))&&n>=n)for(r=o=n;++i<a;)null!=(n=t(e[i]))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]}(r,(function(e){return e.x})),a=o[0],i=o[1];this.x=Pi().domain([a,i]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Pi().domain([0,na(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},t.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},t.prototype.render=function(){var e=dm(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?s.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(nh,{direction:Td.horizontal,isCircularNavigation:!0,className:e.inlineBlock},s.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},t.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length)},t}(s.Component),pm=S(hm,(function(e){return{inlineBlock:{display:"inline"},valueText:o(o({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),fm=he(),gm=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._getMargins=function(e){n.margins=e},n._renderContentForOnlyBars=function(e){var t,r,o,a=n.props.useSingleColor,i=void 0!==a&&a,l=0;return n.props.data.forEach((function(t,n){t.y===e.y&&(l=n)})),o=i?n.props.colors?n._createColors()(1):Ef(1,0,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted):e.color?e.color:n.props.colors?n._createColors()(e.x):Ef(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Fd,{XValue:e.xAxisCalloutData||e.x.toString(),Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:o,culture:n.props.culture}))},n._renderCallout=function(e){return e?n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,o,a,i){return n._bars=n._yAxisType===ad.NumericAxis?n._createNumericBars(r,o,a,i):n._createStringBars(r,o,a,i)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForBar=function(e){var t,r,o,a=[],i=n.props.useSingleColor,s=void 0!==i&&i,l=n.props.data,c=l.filter((function(t){return t.y===e.y})),u=0;return l.forEach((function(t,n){t.y===e.y&&(u=n)})),o=s?n.props.colors?n._createColors()(1):Ef(1,0,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted):c[0].color?c[0].color:n.props.colors?n._createColors()(c[0].x):Ef(u,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),a.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.yAxisCalloutData||e.y.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var o=n._getCalloutContentForBar(e),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){t===s&&n.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.x,color:n.props.useSingleColor?r:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var o=na(n._points,(function(e){return e.x})),a=na(n._points,(function(e){return e.y}));return{xBarScale:Pi().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,t-n.margins.right]),yBarScale:i=Pi().domain([0,a]).range([e-n.margins.bottom,n.margins.top])}}o=na(n._points,(function(e){return e.x}));var i=zc().domain(n._yAxisLabels).range([e-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Pi().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,t-n.margins.right]),yBarScale:i}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props.useSingleColor,a=[];return e.forEach((function(e,t){var o,i=r?n.props.colors?n._createColors()(1):Ef(1,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):e.color,s={title:e.legend,color:i,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};a.push(s)})),s.createElement(sp,o({legends:a,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._xMax=Math.max(t[t.length-1],n.props.xMaxValue||0)}},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.x,r=e.yAxisCalloutData||e.y;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._calloutId=xe("callout"),n._tooltipId=xe("HBCWATooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?Ld(n.props.data[0].x,!0):od.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?Ld(n.props.data[0].y,!1):ad.StringAxis,n}return r(t,e),t.prototype.render=function(){var e=this;this._adjustProps();var t=i([],this._points,!0).reverse();this._yAxisLabels=t.map((function(e){return e.y})),this._xMax=Math.max(na(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=fm(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Se.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),Ad(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(nf,o({},this.props,{points:this._points,chartType:rd.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:a,legendBars:n,barwidth:this._barHeight,focusZoneDirection:Td.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark]},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._xMax);return Pi().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForBar(e),o=r.YValueHover,a=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.x,selectedLegendTitle:e.legend,color:this.props.useSingleColor?t:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n,r){var o=this,a=this.props.useSingleColor,l=void 0!==a&&a,c=this._getScales(e,t,!0),u=c.xBarScale,d=c.yBarScale,h=i([],this._points,!0);h.sort((function(e,t){var n="number"==typeof e.y?e.y:parseFloat(e.y);return("number"==typeof t.y?t.y:parseFloat(t.y))-n}));var p=h.map((function(e,n){var r,a,i,c=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(c=o.state.selectedLegendTitle===e.legend),o._classNames=fm(o.props.styles,{theme:o.props.theme,legendColor:o.state.color,shouldHighlight:c}),Math.max(d(e.y),0)<1?s.createElement(s.Fragment,{key:e.x}," "):(i=l?o.props.colors?o._createColors()(1):Ef(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):Ef(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{key:e.y,x:o._isRtl?u(e.x):o.margins.left,className:o._classNames.opacityChangeOnHover,y:d(e.y)-o._barHeight/2,"data-is-focusable":!0,width:o._isRtl?t-o.margins.right-Math.max(u(e.x),0):Math.max(u(e.x),0)-o.margins.left,height:o._barHeight,ref:function(t){o._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:o._onBarHover.bind(o,e,i),"aria-label":o._getAriaLabel(e),role:"img","aria-labelledby":"toolTip".concat(o._calloutId),onMouseLeave:o._onBarLeave,onFocus:o._onBarFocus.bind(o,e,n,i),onBlur:o._onBarLeave,fill:e.color&&!l?e.color:i}))}));return p},t.prototype._tooltipOfYAxislabels=function(e){var t=this,n=e.tooltipCls,r=e.yAxis,o=e.id;if(null===r)return null;for(var a=$u("body").append("div").attr("id",o).attr("class",n).style("opacity",0),i=r.selectAll("#BaseSpan")._groups[0],s=i&&Object.keys(i).length,l=[],c=0;c<s;c++){var u=i[c].dataset&&Object.values(i[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(e){$u(d[e]).on("mouseover",(function(n){t.state.tooltipElement||(a.style("opacity",.9),a.html(l[e]).style("left",Wu.pageX+"px").style("top",Wu.pageY-28+"px"))})).on("mouseout",(function(e){a.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},t.prototype._createStringBars=function(e,t,n,r){var o=this,a=this._getScales(e,t,!1),i=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(e,n){var r,a,c;return Math.max(l(e.y),0)<1?s.createElement(s.Fragment,{key:e.x}," "):(c=u?o.props.colors?o._createColors()(1):Ef(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):Ef(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-o._barHeight),")"),key:e.x,x:o._isRtl?i(e.x):o.margins.left,y:l(e.y),width:o._isRtl?t-o.margins.right-Math.max(i(e.x),0):Math.max(i(e.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(e),role:"img",ref:function(t){o._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:o._onBarHover.bind(o,e,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,e,n,c),fill:e.color&&!u?e.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(this.props.showYAxisLablesTooltip){var h=$u(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),mm=S(gm,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(e){e.Percentage="percentage",e.Fraction="fraction"}(um||(um={}));var vm=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=s.createRef(),r._tooltipHostId=xe("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(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n=r.props.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r.state.isOverflowing&&(!e.target||!Wd(e.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),n!==oh.zero){var o=r._getDelayTime(n);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),o)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===It||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.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(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e})},r._getDelayTime=function(e){switch(e){case oh.medium:return 300;case oh.long:return 500;default:return 0}},r._wrapContent=function(){var e=r.props,t=e.content,n=e.wrapContent,o=e.maxWidth,a=void 0===o?Number.POSITIVE_INFINITY:o,i=e.maxHeight,s=!1;t&&n&&n(t,r._tooltipHostId,a,i)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new Ot(r),r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.tooltipProps,r=e.textProps,a=this.state.isTooltipVisible,i=o({content:t,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},n),l=a&&!!t;return s.createElement(s.Fragment,null,s.createElement("text",o({},r,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":this.state.isOverflowing}),t),l&&s.createElement(sh,o({},i)))},t.prototype.componentDidMount=function(){this._wrapContent()},t.prototype.componentDidUpdate=function(e){this.props.maxWidth===e.maxWidth&&this.props.maxHeight===e.maxHeight||this._wrapContent()},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:oh.medium},t}(s.Component),_m=[{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}],ym=he(),xm=function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(){var e=n.props,t=e.hideMinMax;return{left:16+(t?0:40),right:16+(t?0:40),top:16+(e.chartTitle?27:2),bottom:16+(e.sublabel?20:0)}},n._getStylesBasedOnBreakpoint=function(){for(var e=_m.length-1;e>=0;e-=1)if(n._outerRadius>=_m[e].minRadius)return{arcWidth:_m[e].arcWidth,chartValueSize:_m[e].fontSize};return{arcWidth:_m[0].arcWidth,chartValueSize:_m[0].fontSize}},n._initProps=function(){var e=n.props,t=e.minValue,r=void 0===t?0:t,o=e.maxValue,a=e.theme,i=Array.from(n.props.segments),s=r;i.forEach((function(e,t){s+=e.size,e.color=void 0!==e.color?Sf(e.color,a.isInverted):Ef(t,0,a.isInverted)})),void 0!==o&&s<o&&(i.push({legend:"Unknown",size:o-s,color:a.palette.neutralLight}),s=o);var l=Hp().padAngle(2/n._outerRadius).padRadius(n._outerRadius),c=n._isRTL?Array.from(i).reverse():i,u=-Math.PI/2,d=c.map((function(e,t){var o=u+e.size/(s-r)*Math.PI,a=l({innerRadius:n._innerRadius,outerRadius:n._outerRadius,startAngle:u,endAngle:o});return u=o,{d:a,segmentIndex:n._isRTL?i.length-1-t:t}}));return{minValue:r,maxValue:s,segments:i,arcs:d}},n._renderNeedle=function(){var e=n._sweepFraction[0]/n._sweepFraction[1]*180,t=n._isRTL?180-e:e,r=n._outerRadius-n._innerRadius+4;return s.createElement("g",{transform:"rotate(".concat(t,", 0, 0)")},s.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-r,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-r,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:n._classNames.needle,transform:"translate(".concat(2-n._innerRadius,")"),"data-is-focusable":!0,onFocus:function(e){return n._handleFocus(e,"Needle")},onBlur:n._handleBlur,onMouseEnter:function(e){return n._handleMouseOver(e,"Needle")},onMouseMove:function(e){return n._handleMouseOver(e,"Needle")}}))},n._renderLegends=function(){if(n.props.hideLegend)return null;var e=n._segments.map((function(e){return{title:e.legend,color:e.color,action:function(){n.state.selectedLegend===e.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.legend})},hoverAction:function(){n.setState({hoveredLegend:e.legend})},onMouseOutAction:function(){n.setState({hoveredLegend:""})}}}));return s.createElement("div",{className:n._classNames.legendsContainer},s.createElement(sp,o({legends:e,centerLegends:!0},n.props.legendProps)))},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.hoveredLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.hoveredLegend},n._handleFocus=function(e,t){n._showCallout(e.target,t,!0)},n._handleBlur=function(){n._hideCallout(!0)},n._handleMouseOver=function(e,t){n._showCallout(e.target,t,!1)},n._handleMouseOut=function(){n._hideCallout(!1)},n._handleCalloutDismiss=function(){n._hideCallout(!1)},n._showCallout=function(e,t,r){if(n._calloutAnchor!==t){n._calloutAnchor=t;var a="Current value is "+(n.props.chartValueFormat===um.Fraction?"".concat((n._sweepFraction[0]/n._sweepFraction[1]*100).toFixed(),"%"):"".concat(n._sweepFraction[0],"/").concat(n._sweepFraction[1])),i=n._minValue,s=n._segments.map((function(e,t){var n={legend:e.legend,y:"".concat(i+(t>0?1:0)," - ").concat(i+e.size),color:e.color};return i+=e.size,n}));n.setState(o({calloutTarget:e,isCalloutVisible:["Needle","Chart value"].includes(t)||""===n.state.selectedLegend||n.state.selectedLegend===t,hoverXValue:a,hoverYValues:s},r?{focusedElement:t}:{}))}},n._hideCallout=function(e){n._calloutAnchor="",n.setState(o({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},e?{focusedElement:""}:{}))},n._wrapContent=function(e,t,n){var r=$u("#".concat(t));if(r.text(e),!r.node())return!1;for(var o=!1,a=r.node().getComputedTextLength();a>n&&e.length>0;)e=e.slice(0,-1),r.text(e+"..."),o=!0,a=r.node().getComputedTextLength();return o},n._multiValueCallout=function(e){var t=n._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:n._classNames.calloutContentRoot},s.createElement("div",{className:n._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",o({className:n._classNames.calloutContentX},Ad(e.xAxisCalloutAccessibilityData,"text",!1)),wd(e.hoverXValue,n.props.culture))),s.createElement("div",{className:n._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,r,a){var i=r+1===a.length,l=e.shouldDrawBorderBottom,c=void 0!==l&&l;return s.createElement("div",o({},Ad(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:o(t?{display:"inline-block"}:{},c&&{borderBottom:"1px solid ".concat(n.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),n._getCalloutContent(e,r,t,i))})),!!e.descriptionMessage&&s.createElement("div",{className:n._classNames.descriptionMessage},e.descriptionMessage)))},n._margins=n._getMargins(),n._legendsHeight=n.props.hideLegend?0:24,n.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+n._margins.left+n._margins.right,height:70+n._margins.top+n._margins.bottom+n._legendsHeight},n._isRTL=le(),n._calloutAnchor="",n}return r(t,e),t.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},t.prototype.render=function(){var e=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var t=this.props.width||this.state.width,n=this.props.height||this.state.height;this._outerRadius=Math.min((t-(this._margins.left+this._margins.right))/2,n-(this._margins.top+this._margins.bottom+this._legendsHeight));var r=this._getStylesBasedOnBreakpoint(),a=r.arcWidth,i=r.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=ym(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:t,chartHeight:n-this._legendsHeight,chartValueSize:i}),s.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t}},s.createElement(nh,{direction:Td.horizontal},s.createElement("svg",{className:this._classNames.chart,role:"presentation","aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},s.createElement("g",{transform:"translate(".concat(t/2,", ").concat(n-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&s.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&s.createElement(s.Fragment,null,s.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)},Dd(this._minValue)),s.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)},Dd(u))),h.map((function(t,n){return s.createElement("path",o({key:n,d:t.d,fill:e._segments[t.segmentIndex].color,fillOpacity:e._legendHighlighted(e._segments[t.segmentIndex].legend)||e._noLegendHighlighted()?1:.1,strokeWidth:e.state.focusedElement===e._segments[t.segmentIndex].legend?2:0,className:e._classNames.segment},Ad(o({ariaLabel:"".concat(e._segments[t.segmentIndex].legend,", ").concat(e._segments[t.segmentIndex].size," out of ").concat(u-e._minValue," or ").concat((e._segments[t.segmentIndex].size/(u-e._minValue)*100).toFixed(),"%")},e._segments[t.segmentIndex].accessibilityData),"img",!0),{onFocus:function(n){return e._handleFocus(n,e._segments[t.segmentIndex].legend)},onBlur:e._handleBlur,onMouseEnter:function(n){return e._handleMouseOver(n,e._segments[t.segmentIndex].legend)},onMouseMove:function(n){return e._handleMouseOver(n,e._segments[t.segmentIndex].legend)}}))})),this._renderNeedle(),s.createElement("g",{onMouseEnter:function(t){return e._handleMouseOver(t,"Chart value")},onMouseMove:function(t){return e._handleMouseOver(t,"Chart value")}},s.createElement(vm,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===um.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&&s.createElement(vm,{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&&s.createElement(Vo,o({target:this.state.calloutTarget,directionalHint:Se.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,i=ym(this.props.styles,{theme:this.props.theme,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=wd(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return s.createElement("div",{style:o},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return s.createElement("div",{key:e,className:i.calloutBlockContainer},s.createElement("div",{className:i.calloutlegendText}," ",wd(e,l)),s.createElement("div",{className:i.calloutContentY},wd(u[e],l)))})))}return s.createElement("div",{style:n?o:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),s.createElement("div",{id:"".concat(t,"_").concat(e.y),className:i.calloutBlockContainer},a&&s.createElement(op,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:Ed[e.index%Object.keys(kd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},wd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t}(s.Component),bm=S(xm,(function(e){var t,n,r,a,i=e.theme,s=e.chartValueSize,l=e.chartWidth,c=e.chartHeight,u=e.className,d=e.lineColor,h=e.toDrawShape;return{root:[i.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},sublabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},needle:{fill:i.palette.black,stroke:i.palette.white},chartTitle:{fontSize:Hn.small,fill:i.palette.neutralPrimary},segment:{outline:"none",stroke:i.semanticColors.focusBorder},legendsContainer:{width:l},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:[o(o({},i.fonts.small),{lineHeight:"16px",opacity:"0.8",color:i.semanticColors.bodySubtext})],calloutBlockContainer:[i.fonts.mediumPlus,{marginTop:"13px",color:i.semanticColors.bodyText},!h&&{selectors:(t={},t[Un]={forcedColorAdjust:"none"},t),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:o(o({},i.fonts.small),{lineHeight:"16px",selectors:(n={},n[qn]={color:"rgb(255, 255, 255)"},n),color:i.semanticColors.bodySubtext}),calloutContentY:[o(o({},i.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(r={},r[qn]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[i.fonts.small,{selectors:(a={},a[qn]={color:"rgb(255, 255, 255)"},a),color:i.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(i.semanticColors.menuDivider)}]}}));Br("@fluentui/react-charting","5.16.58"),FluentUIReactCharting=t}();
|
|
1
|
+
var FluentUIReactCharting;!function(){"use strict";var e={38:function(e,t,n){function r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function o(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}n.d(t,{YF:function(){return o},We:function(){return a},Fp:function(){return l},VV:function(){return c},Sm:function(){return u}});var i=o(r);function a(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(n=e[a])&&n>=n)for(r=o=n;++a<i;)null!=(n=e[a])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++a<i;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=o=n;++a<i;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]}i.right,i.left;var s=Array.prototype;function l(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r}function c(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&r>n&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&r>n&&(r=n);return r}function u(e,t){var n,r=e.length,o=-1,i=0;if(null==t)for(;++o<r;)(n=+e[o])&&(i+=n);else for(;++o<r;)(n=+t(e[o],o,e))&&(i+=n);return i}s.slice,s.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2)},560:function(e,t,n){n.d(t,{WU:function(){return d},jH:function(){return h}});var r,o=n(783),i=n(371),a=n(74);function s(e,t){var n=(0,a.Z)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}var l={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var n=(0,a.Z)(e,t);if(!n)return e+"";var o=n[0],i=n[1],s=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return s===l?o:s>l?o+new Array(s-l+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}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(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?c:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",h=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function _(e){var t=(e=(0,i.Z)(e)).fill,n=e.align,o=e.sign,c=e.symbol,p=e.zero,_=e.width,y=e.comma,x=e.precision,b=e.trim,C=e.type;"n"===C?(y=!0,C="g"):l[C]||(void 0===x&&(x=12),b=!0,C="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",S="$"===c?u:/[%p]/.test(C)?g:"",L=l[C],k=/[defgprs%]/.test(C);function A(e){var i,s,l,c=E,u=S;if("c"===C)u=L(e)+u,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:L(Math.abs(e),x),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),g&&0==+e&&"+"!==o&&(g=!1),c=(g?"("===o?o:m:"-"===o||"("===o?"":o)+c,u=("s"===C?f[8+r/3]:"")+u+(g&&"("===o?")":""),k)for(i=-1,s=e.length;++i<s;)if(48>(l=e.charCodeAt(i))||l>57){u=(46===l?d+e.slice(i+1):e.slice(i))+u,e=e.slice(0,i);break}}y&&!p&&(e=a(e,1/0));var A=c.length+e.length+u.length,T=A<_?new Array(_-A+1).join(t):"";switch(y&&p&&(e=a(T+e,T.length?_-u.length:1/0),T=""),n){case"<":e=c+e+u+T;break;case"=":e=c+T+e+u;break;case"^":e=T.slice(0,A=T.length>>1)+c+e+u+T.slice(A);break;default:e=T+c+e+u}return h(e)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),A.toString=function(){return e+""},A}return{format:_,formatPrefix:function(e,t){var n=_(((e=(0,i.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(t)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(e){return n(a*e)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=u.format,h=u.formatPrefix},783:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(74);function o(e){return(e=(0,r.Z)(Math.abs(e)))?e[1]:NaN}},74:function(e,t,n){function r(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{Z:function(){return r}})},371:function(e,t,n){n.d(t,{Z:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}o.prototype=i.prototype,i.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}},485:function(e,t,n){n.d(t,{Eb:function(){return fe},B:function(){return te},Ys:function(){return de},td:function(){return ge}});var r="http://www.w3.org/1999/xhtml",o={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 i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),o.hasOwnProperty(t)?{space:o[t],local:e}:e}function a(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===r&&t.documentElement.namespaceURI===r?t.createElement(e):t.createElementNS(n,e)}}function s(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function l(e){var t=i(e);return(t.local?s:a)(t)}function c(){}function u(e){return null==e?c:function(){return this.querySelector(e)}}function d(){return[]}var h=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var p=document.documentElement;if(!p.matches){var f=p.webkitMatchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector;h=function(e){return function(){return f.call(this,e)}}}}var g=h;function m(e){return new Array(e.length)}function v(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}v.prototype={constructor:v,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function _(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new v(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function y(e,t,n,r,o,i,a){var s,l,c,u={},d=t.length,h=i.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,i[s],s,i)])?(r[s]=l,l.__data__=i[s],u[c]=null):n[s]=new v(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function x(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function b(e){return function(){this.removeAttribute(e)}}function C(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E(e,t){return function(){this.setAttribute(e,t)}}function S(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function L(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function k(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function A(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function T(e){return function(){this.style.removeProperty(e)}}function w(e,t,n){return function(){this.style.setProperty(e,t,n)}}function D(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function M(e){return function(){delete this[e]}}function P(e,t){return function(){this[e]=t}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function N(e){return e.trim().split(/^|\s+/)}function V(e){return e.classList||new I(e)}function I(e){this._node=e,this._names=N(e.getAttribute("class")||"")}function H(e,t){for(var n=V(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function O(e,t){for(var n=V(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function B(e){return function(){H(this,e)}}function R(e){return function(){O(this,e)}}function z(e,t){return function(){(t.apply(this,arguments)?H:O)(this,e)}}function W(){this.textContent=""}function Y(e){return function(){this.textContent=e}}function U(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function q(){this.innerHTML=""}function X(e){return function(){this.innerHTML=e}}function Z(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}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 e=this.parentNode;e&&e.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}I.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ee={},te=null;function ne(e,t,n){return e=re(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function re(e,t,n){return function(r){var o=te;te=r;try{e.call(this,this.__data__,t,n)}finally{te=o}}}function oe(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function ie(e,t,n){var r=ee.hasOwnProperty(e.type)?ne:re;return function(o,i,a){var s,l=this.__on,c=r(t,i,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function ae(e,t,n){var r=A(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function se(e,t){return function(){return ae(this,e,t)}}function le(e,t){return function(){return ae(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ee={mouseenter:"mouseover",mouseleave:"mouseout"}));var ce=[null];function ue(e,t){this._groups=e,this._parents=t}function de(e){return"string"==typeof e?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],ce)}ue.prototype=function(){return new ue([[document.documentElement]],ce)}.prototype={constructor:ue,select:function(e){"function"!=typeof e&&(e=u(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=t[o],l=s.length,c=r[o]=new Array(l),d=0;d<l;++d)(i=s[d])&&(a=e.call(i,i.__data__,d,s))&&("__data__"in i&&(a.__data__=i.__data__),c[d]=a);return new ue(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?d:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,s=t[i],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),o.push(a));return new ue(r,o)},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&l.push(i);return new ue(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?y:_,o=this._parents,i=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=i.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=o[u],h=i[u],p=h.length,f=e.call(d,d&&d.__data__,u,o),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,t);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 ue(s,o))._enter=l,s._exit=c,s},enter:function(){return new ue(this._enter||this._groups.map(m),this._parents)},exit:function(){return new ue(this._exit||this._groups.map(m),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var l,c=t[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]=t[s];return new ue(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=x);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],l=s.length,c=o[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new ue(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,s=i.length;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=i(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?C:b:"function"==typeof t?n.local?k:L:n.local?S:E)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?T:"function"==typeof t?D:w)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||A(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?M:"function"==typeof t?F:P)(e,t)):this.node()[e]},classed:function(e,t){var n=N(e+"");if(arguments.length<2){for(var r=V(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?z:t?B:R)(n,t))},text:function(e){return arguments.length?this.each(null==e?W:("function"==typeof e?U:Y)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?q:("function"==typeof e?Z:X)(e)):this.node().innerHTML},raise:function(){return this.each(j)},lower:function(){return this.each(G)},append:function(e){var t="function"==typeof e?e:l(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:l(e),r=null==t?K:"function"==typeof t?t:u(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($)},clone:function(e){return this.select(e?Q:J)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?ie:oe,null==n&&(n=!1),r=0;r<a;++r)this.each(s(i[r],t,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((o=i[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?le:se)(e,t))}};var he=0;function pe(){this._="@"+(++he).toString(36)}function fe(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function ge(e){return"string"==typeof e?new ue([document.querySelectorAll(e)],[document.documentElement]):new ue([null==e?[]:e],ce)}pe.prototype=function(){return new pe}.prototype={constructor:pe,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}}},932:function(e,t,n){n.d(t,{i$:function(){return L},Dq:function(){return E}});var r=n(315),o=n(827);function i(e){return(0,r.Z)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/o.iM}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),h=i(6),p=(a.range,s.range,l.range,c.range,u.range,d.range,h.range,(0,r.Z)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/o.UD}),(function(e){return e.getUTCDate()-1}))),f=p,g=(p.range,n(167)),m=n(645),v=n(507),_=(0,r.Z)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var y=_;function x(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function b(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function C(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function E(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,u=N(o),d=V(o),h=N(i),p=V(i),v=N(a),_=V(a),y=N(l),E=V(l),S=N(c),L=V(c),k={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:te,e:te,f:ae,H:ne,I:re,j:oe,L:ie,m:se,M:le,p:function(e){return o[+(e.getHours()>=12)]},Q:Ie,s:He,S:ce,u:ue,U:de,V:he,w:pe,W:fe,x:null,X:null,y:ge,Y:me,Z:ve,"%":Ve},A={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:_e,e:_e,f:Ee,H:ye,I:xe,j:be,L:Ce,m:Se,M:Le,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Ie,s:He,S:ke,u:Ae,U:Te,V:we,w:De,W:Me,x:null,X:null,y:Pe,Y:Fe,Z:Ne,"%":Ve},w={a:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.w=_[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=S.exec(t.slice(n));return r?(e.m=L[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=E[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return P(e,t,n,r)},d:q,e:q,f:$,H:Z,I:Z,j:X,L:K,m:U,M:j,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d[r[0].toLowerCase()],n+r[0].length):-1},Q:Q,s:ee,S:G,u:H,U:O,V:B,w:I,W:R,x:function(e,t,r){return P(e,n,t,r)},X:function(e,t,n){return P(e,r,t,n)},y:W,Y:z,Z:Y,"%":J};function D(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=T[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,o,i=C(1900);if(P(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=b(C(i.y))).getUTCDay(),r=o>4||0===o?s.ceil(r):s(r),r=f.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(C(i.y))).getDay(),r=o>4||0===o?g.wA.ceil(r):(0,g.wA)(r),r=m.Z.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?b(C(i.y)).getUTCDay():t(C(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,b(i)):t(i)}}function P(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in T?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return k.x=D(n,k),k.X=D(r,k),k.c=D(t,k),A.x=D(n,A),A.X=D(r,A),A.c=D(t,A),{format:function(e){var t=D(e+="",k);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",x);return t.toString=function(){return e},t},utcFormat:function(e){var t=D(e+="",A);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e,b);return t.toString=function(){return e},t}}}_.range;var S,L,k,A,T={"-":"",_:" ",0:"0"},w=/^\s*\d+/,D=/^%/,M=/[\\^$*+?|[\]().{}]/g;function P(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function F(e){return e.replace(M,"\\$&")}function N(e){return new RegExp("^(?:"+e.map(F).join("|")+")","i")}function V(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function I(e,t,n){var r=w.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function H(e,t,n){var r=w.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function O(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function B(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function R(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function z(e,t,n){var r=w.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function W(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Y(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function U(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function q(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function X(e,t,n){var r=w.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function j(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function G(e,t,n){var r=w.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function K(e,t,n){var r=w.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $(e,t,n){var r=w.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function J(e,t,n){var r=D.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Q(e,t,n){var r=w.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ee(e,t,n){var r=w.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function te(e,t){return P(e.getDate(),t,2)}function ne(e,t){return P(e.getHours(),t,2)}function re(e,t){return P(e.getHours()%12||12,t,2)}function oe(e,t){return P(1+m.Z.count((0,v.Z)(e),e),t,3)}function ie(e,t){return P(e.getMilliseconds(),t,3)}function ae(e,t){return ie(e,t)+"000"}function se(e,t){return P(e.getMonth()+1,t,2)}function le(e,t){return P(e.getMinutes(),t,2)}function ce(e,t){return P(e.getSeconds(),t,2)}function ue(e){var t=e.getDay();return 0===t?7:t}function de(e,t){return P(g.OM.count((0,v.Z)(e),e),t,2)}function he(e,t){var n=e.getDay();return e=n>=4||0===n?(0,g.bL)(e):g.bL.ceil(e),P(g.bL.count((0,v.Z)(e),e)+(4===(0,v.Z)(e).getDay()),t,2)}function pe(e){return e.getDay()}function fe(e,t){return P(g.wA.count((0,v.Z)(e),e),t,2)}function ge(e,t){return P(e.getFullYear()%100,t,2)}function me(e,t){return P(e.getFullYear()%1e4,t,4)}function ve(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+P(t/60|0,"0",2)+P(t%60,"0",2)}function _e(e,t){return P(e.getUTCDate(),t,2)}function ye(e,t){return P(e.getUTCHours(),t,2)}function xe(e,t){return P(e.getUTCHours()%12||12,t,2)}function be(e,t){return P(1+f.count(y(e),e),t,3)}function Ce(e,t){return P(e.getUTCMilliseconds(),t,3)}function Ee(e,t){return Ce(e,t)+"000"}function Se(e,t){return P(e.getUTCMonth()+1,t,2)}function Le(e,t){return P(e.getUTCMinutes(),t,2)}function ke(e,t){return P(e.getUTCSeconds(),t,2)}function Ae(e){var t=e.getUTCDay();return 0===t?7:t}function Te(e,t){return P(a.count(y(e),e),t,2)}function we(e,t){var n=e.getUTCDay();return e=n>=4||0===n?u(e):u.ceil(e),P(u.count(y(e),e)+(4===y(e).getUTCDay()),t,2)}function De(e){return e.getUTCDay()}function Me(e,t){return P(s.count(y(e),e),t,2)}function Pe(e,t){return P(e.getUTCFullYear()%100,t,2)}function Fe(e,t){return P(e.getUTCFullYear()%1e4,t,4)}function Ne(){return"+0000"}function Ve(){return"%"}function Ie(e){return+e}function He(e){return Math.floor(+e/1e3)}S=E({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"]}),L=S.format,S.parse,k=S.utcFormat,A=S.utcParse;var Oe="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||k(Oe),+new Date("2000-01-01T00:00:00.000Z")||A(Oe)},645:function(e,t,n){var r=n(315),o=n(827),i=(0,r.Z)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.yB)/o.UD}),(function(e){return e.getDate()-1}));t.Z=i,i.range},827:function(e,t,n){n.d(t,{UD:function(){return a},Y2:function(){return i},Ym:function(){return r},iM:function(){return s},yB:function(){return o}});var r=1e3,o=6e4,i=36e5,a=864e5,s=6048e5},315:function(e,t,n){n.d(t,{Z:function(){return i}});var r=new Date,o=new Date;function i(e,t,n,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return i((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(s.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}},167:function(e,t,n){n.d(t,{OM:function(){return a},bL:function(){return u},wA:function(){return s}});var r=n(315),o=n(827);function i(e){return(0,r.Z)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.yB)/o.iM}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),h=i(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},507:function(e,t,n){var r=n(315),o=(0,r.Z)((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.Z=o,o.range},939:function(e,t,n){n.d(t,{ZT:function(){return o},_T:function(){return a},ev:function(){return s},pi:function(){return i}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create},473:function(e,t,n){function r(e){i!==e&&(i=e)}function o(){return void 0===i&&(i="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),i}var i;function a(){return{rtl:o()}}n.d(t,{Eo:function(){return a},ok:function(){return r}}),i=o()},499:function(e,t,n){n.d(t,{Y:function(){return l}});var r,o=n(939),i="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(e){}var l=function(){function e(e,t){var n,r,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.pi)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(i=this._config.classNameCache)&&void 0!==i?i:null==t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(r=s[i])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null==s?void 0:s.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);r=n,s[i]=n}return r},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,o.pi)((0,o.pi)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},270:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(939);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},i={},a=0,s=e;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)&&(i.hasOwnProperty(d)?i[d].push(u[d]):i[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(i).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(i.hasOwnProperty(e)){var t=i[e];f[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in i)g(d)}return n}},802:function(e,t,n){n.d(t,{U:function(){return o}});var r=n(499);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],i=r.Y.getInstance();return function e(t){for(var r=0,a=t;r<a.length;r++){var s=a[r];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=i.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}},13:function(e,t,n){n.d(t,{y:function(){return a}});var r=n(802),o=n(473),i=n(373);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=e instanceof Array?e:[e],o=(0,r.U)(n),a=o.classes,s=o.objects;return s.length&&a.push((0,i.AE)(t||{},s)),a.join(" ")}(e,(0,o.Eo)())}},373:function(e,t,n){n.d(t,{Jh:function(){return A},dH:function(){return L},AE:function(){return T},aj:function(){return k}});var r,o=n(939),i=n(499),a={},s={"user-select":1};function l(e,t){var n=function(){var e;if(!r){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,o=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();r=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.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}(),o=e[t];if(s[o]){var i=e[t+1];s[o]&&(n.isWebkit&&e.push("-webkit-"+o,i),n.isMoz&&e.push("-moz-"+o,i),n.isMs&&e.push("-ms-"+o,i),n.isOpera&&e.push("-o-"+o,i))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=u.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+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(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(f)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(h)>=0)t[n]=r.replace(h,p);else if(r.indexOf(p)>=0)t[n]=r.replace(p,h);else if(String(o).indexOf(h)>=0)t[n+1]=o.replace(h,p);else if(String(o).indexOf(p)>=0)t[n+1]=o.replace(p,h);else if(g[r])t[n]=g[r];else if(m[o])t[n+1]=m[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}var _="displayName",y=/\:global\((.+?)\)/g;function x(e,t){return e.indexOf(":global(")>=0?e.replace(y,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function b(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?C([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!y.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return C([r],t,x(n,e))})):C([r],t,x(n,e))}function C(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=i.Y.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&C(c,t,n)}else if(Array.isArray(l))C(l,t,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,t,p,h[p])}else"object"==typeof d?null!==d&&b(n,t,u,d):void 0!==d&&("margin"===u||"padding"===u?E(o,u,d):o[u]=d)}}return t}function E(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function S(e,t){return t<=0?"":1===t?e:e+S(e,t-1)}function L(e,t){if(!t)return"";var n,r,o,i=[];for(var s in t)t.hasOwnProperty(s)&&s!==_&&void 0!==t[s]&&i.push(s,t[s]);for(var c=0;c<i.length;c+=2)o=void 0,"-"!==(o=(n=i)[r=c]).charAt(0)&&(n[r]=a[o]=a[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),d(i,c),v(e,i,c),l(i,c);for(c=1;c<i.length;c+=4)i.splice(c,1,":",i[c],";");return i.join("")}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=C(t),o=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[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}(e,r);if(o){var a=i.Y.getInstance(),s={className:a.classNameFromKey(o),key:o,args:t};if(!s.className){s.className=a.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var d=u[c];l.push(d,L(e,r[d]))}s.rulesToInsert=l}return s}}function A(e,t){void 0===t&&(t=1);var n=i.Y.getInstance(),r=e.className,o=e.key,a=e.args,s=e.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(e.className),t));var d="".concat(u,"{").concat(c,"}").concat(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,o,a,s)}}function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=k.apply(void 0,(0,o.ev)([e],t,!1));return r?(A(r,e.specificityMultiplier),r.className):""}},24:function(e,t,n){n.r(t),n.d(t,{ChartHoverCard:function(){return d}});var r=n(85),o=n(939),i=n(363),a=n(461),s=n(55),l=(0,a.y)(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,o=e.YValue,a=e.styles,c=e.theme,u=e.ratio,d=e.descriptionMessage,h=e.culture;return this._classNames=l(a,{theme:c,color:t,XValue:r,isRatioPresent:!!u}),i.createElement("div",{className:this._classNames.calloutContentRoot},i.createElement("div",{className:this._classNames.calloutDateTimeContainer},i.createElement("div",{className:this._classNames.calloutContentX},r," ")),i.createElement("div",{className:this._classNames.calloutInfoContainer},i.createElement("div",{className:this._classNames.calloutBlockContainer},i.createElement("div",{className:this._classNames.calloutlegendText},(0,s.Ts)(n,h)),i.createElement("div",{className:this._classNames.calloutContentY},(0,s.Ts)(o,h))),!!u&&i.createElement("div",{className:this._classNames.ratio},i.createElement(i.Fragment,null,i.createElement("span",{className:this._classNames.numerator},(0,s.Ts)(u[0],h)),"/",i.createElement("span",{className:this._classNames.denominator},(0,s.Ts)(u[1],h))))),!!d&&i.createElement("div",{className:this._classNames.descriptionMessage},d))},t}(i.Component),u=n(286),d=(0,r.z)(c,u.n)},286:function(e,t,n){n.d(t,{n:function(){return o}});var r=n(786),o=function(e){var t=e.color,n=e.XValue,o=e.theme,i=e.isRatioPresent,a=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:o.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[o.fonts.small,{lineHeight:"16px",opacity:"0.8",color:o.semanticColors.bodySubtext}],calloutBlockContainer:[o.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:o.semanticColors.bodyText,borderLeft:"4px solid ".concat(t)}],calloutlegendText:[o.fonts.small,{lineHeight:"16px",color:o.semanticColors.bodyText}],calloutContentY:[o.fonts.xxLarge,{color:t||o.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[o.fonts.small,{marginLeft:"6px",color:o.semanticColors.bodyText}],numerator:{fontWeight:r.lq.bold},denominator:{fontWeight:r.lq.semibold},descriptionMessage:[o.fonts.small,{color:o.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(o.semanticColors.menuDivider)}]}}},55:function(e,t,n){n.d(t,{$X:function(){return Pe},jc:function(){return ft},wo:function(){return pt},xl:function(){return Fe},OH:function(){return Ne},yE:function(){return lt},Wx:function(){return it},Ts:function(){return _t},s8:function(){return Qe},OX:function(){return $e},R:function(){return et},Tj:function(){return nt},Pu:function(){return at},eQ:function(){return tt},Ay:function(){return st},cE:function(){return bt},ey:function(){return vt},dr:function(){return dt},As:function(){return ht},SY:function(){return gt},V4:function(){return ut},Ml:function(){return mt},zs:function(){return yt},$V:function(){return ct},yQ:function(){return xt}});var r=n(939),o=Array.prototype.slice;function i(e){return e}var a=1,s=2,l=3,c=4,u=1e-6;function d(e){return"translate("+(e+.5)+",0)"}function h(e){return"translate(0,"+(e+.5)+")"}function p(e){return function(t){return+e(t)}}function f(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function g(){return!this.__axis}function m(e,t){var n=[],r=null,m=null,v=6,_=6,y=3,x=e===a||e===c?-1:1,b=e===c||e===s?"x":"y",C=e===a||e===l?d:h;function E(o){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,h=null==m?t.tickFormat?t.tickFormat.apply(t,n):i:m,E=Math.max(v,0)+y,S=t.range(),L=+S[0]+.5,k=+S[S.length-1]+.5,A=(t.bandwidth?f:p)(t.copy()),T=o.selection?o.selection():o,w=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,t).order(),M=D.exit(),P=D.enter().append("g").attr("class","tick"),F=D.select("line"),N=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)),N=N.merge(P.append("text").attr("fill","#000").attr(b,x*E).attr("dy",e===a?"0em":e===l?"0.71em":"0.32em")),o!==T&&(w=w.transition(o),D=D.transition(o),F=F.transition(o),N=N.transition(o),M=M.transition(o).attr("opacity",u).attr("transform",(function(e){return isFinite(e=A(e))?C(e):this.getAttribute("transform")})),P.attr("opacity",u).attr("transform",(function(e){var t=this.parentNode.__axis;return C(t&&isFinite(t=t(e))?t:A(e))}))),M.remove(),w.attr("d",e===c||e==s?"M"+x*_+","+L+"H0.5V"+k+"H"+x*_:"M"+L+","+x*_+"V0.5H"+k+"V"+x*_),D.attr("opacity",1).attr("transform",(function(e){return C(A(e))})),F.attr(b+"2",x*v),N.attr(b,x*E).text(h),T.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===s?"start":e===c?"end":"middle"),T.each((function(){this.__axis=A}))}return E.scale=function(e){return arguments.length?(t=e,E):t},E.ticks=function(){return n=o.call(arguments),E},E.tickArguments=function(e){return arguments.length?(n=null==e?[]:o.call(e),E):n.slice()},E.tickValues=function(e){return arguments.length?(r=null==e?null:o.call(e),E):r&&r.slice()},E.tickFormat=function(e){return arguments.length?(m=e,E):m},E.tickSize=function(e){return arguments.length?(v=_=+e,E):v},E.tickSizeInner=function(e){return arguments.length?(v=+e,E):v},E.tickSizeOuter=function(e){return arguments.length?(_=+e,E):_},E.tickPadding=function(e){return arguments.length?(y=+e,E):y},E}function v(e){return m(s,e)}function _(e){return m(l,e)}function y(e){return m(c,e)}var x=n(38),b=n(222),C=n(444),E=n(111);const S=1e3,L=6e4,k=36e5,A=864e5,T=6048e5,w=31536e6;var D=new Date,M=new Date;function P(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return P((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return D.setTime(+t),M.setTime(+r),e(D),e(M),Math.floor(n(D,M))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var F=P((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));F.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?P((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):F:null};var N=F,V=(F.range,P((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*S)}),(function(e,t){return(t-e)/S}),(function(e){return e.getUTCSeconds()}))),I=V,H=(V.range,P((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*S)}),(function(e,t){e.setTime(+e+t*L)}),(function(e,t){return(t-e)/L}),(function(e){return e.getMinutes()}))),O=H,B=(H.range,P((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*S-e.getMinutes()*L)}),(function(e,t){e.setTime(+e+t*k)}),(function(e,t){return(t-e)/k}),(function(e){return e.getHours()}))),R=B,z=(B.range,P((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*L)/A),(e=>e.getDate()-1))),W=z;function Y(e){return P((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*L)/T}))}z.range;var U=Y(0),q=Y(1),X=Y(2),Z=Y(3),j=Y(4),G=Y(5),K=Y(6),$=(U.range,q.range,X.range,Z.range,j.range,G.range,K.range,P((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),J=$,Q=($.range,P((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Q.every=function(e){return isFinite(e=Math.floor(e))&&e>0?P((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ee=Q,te=(Q.range,P((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*L)}),(function(e,t){return(t-e)/L}),(function(e){return e.getUTCMinutes()}))),ne=te,re=(te.range,P((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*k)}),(function(e,t){return(t-e)/k}),(function(e){return e.getUTCHours()}))),oe=re,ie=(re.range,P((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/A}),(function(e){return e.getUTCDate()-1}))),ae=ie;function se(e){return P((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/T}))}ie.range;var le=se(0),ce=se(1),ue=se(2),de=se(3),he=se(4),pe=se(5),fe=se(6),ge=(le.range,ce.range,ue.range,de.range,he.range,pe.range,fe.range,P((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),me=ge,ve=(ge.range,P((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));ve.every=function(e){return isFinite(e=Math.floor(e))&&e>0?P((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var _e=ve;function ye(e,t,n,r,o,i){const a=[[I,1,S],[I,5,5e3],[I,15,15e3],[I,30,3e4],[i,1,L],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,k],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,A],[r,2,1728e5],[n,1,T],[t,1,2592e6],[t,3,7776e6],[e,1,w]];function s(t,n,r){const o=Math.abs(n-t)/r,i=(0,C.Z)((([,,e])=>e)).right(a,o);if(i===a.length)return e.every((0,E.ly)(t/w,n/w,r));if(0===i)return N.every(Math.max((0,E.ly)(t,n,r),1));const[s,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}ve.range;const[xe,be]=ye(_e,me,le,ae,oe,ne),[Ce,Ee]=ye(ee,J,U,W,R,O);var Se=n(932),Le=n(538),ke=n(941);function Ae(e){return new Date(e)}function Te(e){return e instanceof Date?+e:+new Date(+e)}function we(e,t,n,r,o,i,a,s,l,c){var u=(0,Le.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(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:_:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,Te)):h().map(Ae)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?b:c(t)},u.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):u},u.copy=function(){return(0,Le.JG)(u,we(e,t,n,r,o,i,a,s,l,c))},u}function De(){return ke.o.apply(we(Ce,Ee,ee,J,U,W,R,O,I,Se.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Me,Pe,Fe,Ne,Ve=n(232),Ie=n(485),He=n(560),Oe=n(315),Be=n(827),Re=(0,Oe.Z)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Be.Ym)}),(function(e,t){return(t-e)/Be.Ym}),(function(e){return e.getUTCSeconds()})),ze=Re,We=(Re.range,(0,Oe.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Be.Ym)}),(function(e,t){e.setTime(+e+t*Be.yB)}),(function(e,t){return(t-e)/Be.yB}),(function(e){return e.getMinutes()}))),Ye=We,Ue=(We.range,(0,Oe.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Be.Ym-e.getMinutes()*Be.yB)}),(function(e,t){e.setTime(+e+t*Be.Y2)}),(function(e,t){return(t-e)/Be.Y2}),(function(e){return e.getHours()}))),qe=Ue,Xe=(Ue.range,n(645)),Ze=(0,Oe.Z)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),je=Ze,Ge=(Ze.range,n(167)),Ke=n(507);function $e(e,t,n){var r=e.domainNRangeValues,o=e.showRoundOffXTickValues,i=void 0!==o&&o,a=e.xAxistickSize,s=void 0===a?6:a,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisCount,d=void 0===u?6:u,h=e.xAxisElement,p=(0,b.Z)().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);i&&p.nice();var f=_(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return _t(r,n)}));t===Pe.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&(0,Ie.Ys)(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function Je(e,t){var n=t?t.format:Se.i$,r=n(".%L"),o=n(":%S"),i=n("%I:%M"),a=n("%I %p"),s=n("%a %d"),l=n("%b %d"),c=n("%B"),u=n("%Y");return(ze(e)<e?r:Ye(e)<e?o:qe(e)<e?i:(0,Xe.Z)(e)<e?a:je(e)<e?(0,Ge.OM)(e)<e?s:l:(0,Ke.Z)(e)<e?c:u)(e)}function Qe(e,t,n,r,o,i){var a,s=e.domainNRangeValues,l=e.xAxisElement,c=e.tickPadding,u=void 0===c?6:c,d=e.xAxistickSize,h=void 0===d?6:d,p=e.xAxisCount,f=void 0===p?6:p,g=De().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=_(g).tickSize(h).tickPadding(u).ticks(f);if(i)m.tickFormat((function(e,t){return i(e)}));else if(n&&r)m.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(o){var v=Se.Dq(o);m.tickFormat((function(e,t){return Je(e,v)}))}t.tickValues&&m.tickValues(t.tickValues),void 0===n&&t.tickFormat&&m.tickFormat(Se.i$(t.tickFormat)),l&&(0,Ie.Ys)(l).call(m).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=t.tickValues)&&void 0!==a?a:g.ticks(f)).map((function(e,t){var n=m.tickFormat();return n?n(e,t):Je(e)}));return{xScale:g,tickValues:y}}function et(e,t,n,r){var o=e.domainNRangeValues,i=e.xAxisCount,a=void 0===i?6:i,s=e.xAxistickSize,l=void 0===s?6:s,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=(0,Ve.Z)().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=_(g).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(e,t){return _t(n[t],r)}));return e.xAxisElement&&(0,Ie.Ys)(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}function tt(e,t,n,r,o,i){return void 0===i&&(i=!1),r===Pe.HorizontalBarChartWithAxis?function(e,t,n,r){var o=e.yMinMaxValues,i=void 0===o?{startValue:0,endValue:0}:o,a=e.yAxisElement,s=void 0===a?null:a,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,_=void 0===m?0:m,x=e.yAxisTickFormat,C=e.yAxisTickCount,E=void 0===C?4:C,S=_||i.endValue,L=S>c?S:c,k=i.startValue<d?0:d,A=(0,b.Z)().domain([k,L]).range([h-p.bottom,p.top]),T=(t?v(A):y(A)).tickPadding(g).ticks(E);return x?T.tickFormat(x):T.tickFormat((0,He.WU)(".2~s")),s&&(0,Ie.Ys)(s).call(T).selectAll("text").attr("aria-hidden","true"),A}(e,t):function(e,t,n,r){void 0===r&&(r=!1);var o=e.yMinMaxValues,i=void 0===o?{startValue:0,endValue:0}:o,a=e.yAxisElement,s=void 0===a?null:a,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.containerWidth,f=e.margins,g=e.tickPadding,m=void 0===g?12:g,_=e.maxOfYVal,x=void 0===_?0:_,C=e.yAxisTickFormat,E=e.yAxisTickCount,S=void 0===E?4:E,L=e.eventAnnotationProps,k=e.eventLabelHeight,A=x||i.endValue,T=A>c?A:c,w=i.startValue<d?0:d,D=function(e,t,n){for(var r=Math.ceil((e-t)/n),o=[t,t+r];o[o.length-1]<e;)o.push(o[o.length-1]+r);return o}(T,w,S),M=(0,b.Z)().domain([w,D[D.length-1]]).range([h-f.bottom,f.top+(L?k:0)]),P=(!t&&r||t&&!r?v(M):y(M)).tickPadding(m).tickValues(D).tickSizeInner(-(p-f.left-f.right));return C?P.tickFormat(C):P.tickFormat((0,He.WU)(".2~s")),s&&(0,Ie.Ys)(s).call(P).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=D,M}(e,t,n,i)}!function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart",e[e.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(Pe||(Pe={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Fe||(Fe={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Ne||(Ne={}));var nt=function(e,t,n,r,o,i){return r===Pe.HorizontalBarChartWithAxis?rt(e,t,n,o,i):ot(e,t,n)},rt=function(e,t,n,r,o){var i=e.containerHeight,a=e.tickPadding,s=void 0===a?12:a,l=e.margins,c=e.yAxisTickFormat,u=e.yAxisElement,d=(0,Ve.Z)().domain(t).range([i-l.bottom-r/2,l.top+r/2]),h=(n?v(d):y(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&(0,Ie.Ys)(u).call(h).selectAll("text"),d},ot=function(e,t,n){var r=e.containerHeight,o=e.tickPadding,i=void 0===o?12:o,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,c=e.yAxisPadding,u=void 0===c?0:c,d=(0,Ve.Z)().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?v(d):y(d)).tickPadding(i).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&(0,Ie.Ys)(l).call(h).selectAll("text"),d};function it(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return(0,r.pi)((0,r.pi)({},t),{legend:e.legend,color:e.color,index:e.index})}));t=t.concat(n)}));var n={};return t.forEach((function(e){var t=e.x instanceof Date?e.x.getTime():e.x;t in n?n[t].push({legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}):n[t]=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}]})),Object.keys(n).map((function(e){return{x:Number(e),values:n[e]}}))}function at(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var i=(0,Ie.Ys)(t).call(n),a=0,s=[];return i.selectAll(".tick text").each((function(){var e=(0,Ie.Ys)(this),t=e.text(),n="".concat(e.text().slice(0,r),"..."),l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(o&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(o&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);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=e.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;i.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.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 st(e,t,n,r,o,i){null!==e&&(0,Ie.Ys)(e).call(t).selectAll(".tick text").each((function(){var e=(0,Ie.Ys)(this),t=e.text(),a="".concat(e.text().slice(0,n),"..."),s=e.text().length,l=r?1.5:1,c=e.attr("y"),u=e.attr("x"),d=parseFloat(e.attr("dy"));e.text(null).append("tspan").attr("x",u).attr("y",c).attr("id","BaseSpan").attr("dy",d+"em").attr("data-",t),r&&s>n?e.append("tspan").attr("id","showDots").attr("x",u).attr("y",c).attr("dy",d).attr("dx",l+0+"em").text(a):e.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",i?o:u).attr("y",c).attr("dx",l+0+"em").text(t)}))}var lt=function(e,t){void 0===t&&(t="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var o=document.querySelector(t);if(o){var i=window.getComputedStyle(o,null),a=i.getPropertyValue("font-weight"),s=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family");r.font="".concat(a," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';e.forEach((function(e){n=Math.max(r.measureText(e.toString()).width,n)}))}return n};function ct(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=(0,Ie.Ys)("body").append("div").attr("id",r).attr("class",t).style("opacity",0),i=n.selectAll("#BaseSpan")._groups[0],a=i&&Object.keys(i).length,s=[],l=0;l<a;l++){var c=i[l].dataset&&Object.values(i[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){var t=u[e];(0,Ie.Ys)(t).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",Ie.B.pageX+"px").style("top",Ie.B.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ut(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function dt(e,t,n,o,i,a,s,l,c){var u;if(a===Fe.NumericAxis)switch(o){case Pe.AreaChart:case Pe.LineChart:u=function(e,t,n,r){var o=(0,x.VV)(e,(function(e){return(0,x.VV)(e.data,(function(e){return e.x}))})),i=(0,x.Fp)(e,(function(e){return(0,x.Fp)(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case Pe.VerticalStackedBarChart:u=function(e,t,n,r,o){var i=(0,x.VV)(e,(function(e){return e.x})),a=(0,x.Fp)(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case Pe.VerticalBarChart:u=function(e,t,n,r,o){var i=(0,x.Fp)(e,(function(e){return e.x})),a=(0,x.VV)(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case Pe.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var i=(0,x.Fp)(e,(function(e){return e.x})),a=r?t.left:t.left+o,s=r?n-t.right-o:n-t.right;return r?{dStartValue:i,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:i,rStartValue:a,rEndValue:s}}(e,t,n,i,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===Fe.DateAxis)switch(o){case Pe.AreaChart:case Pe.LineChart:u=function(e,t,n,o,i){void 0===i&&(i=[]);var a=(0,x.VV)(e,(function(e){return(0,x.VV)(e.data,(function(e){return e.x}))})),s=(0,x.Fp)(e,(function(e){return(0,x.Fp)(e.data,(function(e){return e.x}))})),l=(0,x.VV)((0,r.ev)((0,r.ev)([],i,!0),[a],!1)),c=(0,x.Fp)((0,r.ev)((0,r.ev)([],i,!0),[s],!1)),u=t.left,d=n-t.right;return o?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(o){case Pe.VerticalStackedBarChart:case Pe.GroupedVerticalBarChart:case Pe.VerticalBarChart:case Pe.HeatMapChart:u=function(e,t,n){var r=e.left,o=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function ht(e,t,n){var r,o,i;switch(void 0===n&&(n=Ne.NumericAxis),t){case Pe.AreaChart:case Pe.LineChart:r=function(e){var t=(0,x.Fp)(e,(function(e){return(0,x.Fp)(e.data,(function(e){return e.y}))}));return{startValue:(0,x.VV)(e,(function(e){return(0,x.VV)(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Pe.VerticalStackedBarChart:o=e,i=(0,x.Fp)(o,(function(e){return e.y})),r={startValue:(0,x.VV)(o,(function(e){return e.y})),endValue:i};break;case Pe.VerticalBarChart:r=function(e){var t=(0,x.Fp)(e,(function(e){return e.y}));return{startValue:(0,x.VV)(e,(function(e){return e.y})),endValue:t}}(e);break;case Pe.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===Ne.NumericAxis){var n=(0,x.Fp)(e,(function(e){return e.y}));return{startValue:(0,x.VV)(e,(function(e){return e.y})),endValue:n}}return{startValue:0,endValue:0}}(e,n);break;default:r={startValue:0,endValue:0}}return r}var pt,ft,gt=function(e,t){if(t)switch(typeof e){case"string":return Fe.StringAxis;case"number":return Fe.NumericAxis;default:return Fe.DateAxis}else switch(typeof e){case"string":return Ne.StringAxis;case"number":return Ne.NumericAxis;default:return Ne.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(pt||(pt={})),function(e){e[e.dottedLine=0]="dottedLine"}(ft||(ft={}));var mt=((Me={})[pt.circle]={widthRatio:1},Me[pt.square]={widthRatio:1},Me[pt.triangle]={widthRatio:1},Me[pt.diamond]={widthRatio:1},Me[pt.pyramid]={widthRatio:1},Me[pt.hexagon]={widthRatio:2},Me[pt.pentagon]={widthRatio:1.168},Me[pt.octagon]={widthRatio:2.414},Me),vt=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},_t=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e};function yt(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];(0,Ie.Ys)(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(o.push(t[0]),this.setAttribute("transform","translate(".concat(t[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),i=n&&n.height;i>r&&(r=i)}));var i=0;return(0,Ie.Ys)(t).call(n).selectAll(".tick").each((function(){o.length>i&&(this.setAttribute("transform","translate(".concat(o[i],",").concat(r/2,")rotate(-45)")),i+=1)})),Math.floor(r/1.414)}}function xt(e,t){var n=0;(0,Ie.td)(".".concat(e)).each((function(){for(var e=(0,Ie.Ys)(this),r=e.text().split(/\s+/).reverse(),o="",i=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");o=r.pop();)i.push(o),l.text(i.join(" ")+" "),l.node().getComputedTextLength()>t&&i.length>1&&(i.pop(),l.text(i.join(" ")+" "),i=[o],l=e.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(o));n+=1}))}function bt(e){var t;return t=e<1e3?".2~":".1",(0,He.jH)(t,e)(e)}},77:function(e,t,n){n.d(t,{x:function(){return i}});var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};n[e]&&r[e]||(r[e]=t,(n[e]=n[e]||[]).push(t))}}i("@fluentui/set-version","6.0.0")},786:function(e,t,n){n.d(t,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return ee.TS},lq:function(){return ee.lq},qJ:function(){return te},$v:function(){return ne},bR:function(){return $},e2:function(){return ie},GL:function(){return oe},Cn:function(){return le},gh:function(){return Le},ul:function(){return ae}});var r=n(13),o=n(473),i=n(499),a=n(373);function s(e){var t=i.Y.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",(0,a.dH)((0,o.Eo)(),e[r]),"}");var s=n.join(""),l=t.classNameFromKey(s);if(l)return l;var c=t.getClassName();return t.insertRule("@keyframes ".concat(c,"{").concat(s,"}"),!0),t.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=Z(-10),v=Z(-20),_=Z(-40),y=Z(-400),x=Z(10),b=Z(20),C=Z(40),E=Z(400),S=j(10),L=j(20),k=j(-10),A=j(-20),T=G(10),w=G(20),D=G(40),M=G(400),P=G(-10),F=G(-20),N=G(-40),V=G(-400),I=K(-10),H=K(-20),O=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)"}}),U=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),q=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Z(e){return s({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function j(e){return s({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(e){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function K(e){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var $,J=function(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=(0,r.y)(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}({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(L),h,l),slideDownIn10:X("".concat(f,",").concat(k),h,l),slideDownIn20:X("".concat(f,",").concat(A),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(N),h,l),slideLeftOut400:X("".concat(g,",").concat(V),h,l),slideUpOut10:X("".concat(g,",").concat(I),h,l),slideUpOut20:X("".concat(g,",").concat(H),h,l),slideDownOut10:X("".concat(g,",").concat(O),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(U,"0.1s",c),rotateN90deg:X(q,"0.1s",c)}),Q=n(45),ee=n(704),te="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",ne="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",re=n(766);function oe(e,t,n,r,o,i,a,s){return function(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,h=t.borderColor,p=void 0===h?e.palette.white:h,f=t.outlineColor,g=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly,v=void 0===m||m,_=t.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(re.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:o,selectors:(r={},r[te]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function ie(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}($||($={}));var ae={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},se=(0,n(156).NF)((function(e,t){var n=i.Y.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function le(e,t,n){return se(e,void 0!==n?n:t.disableGlobalClassNames)}var ce,ue=n(939),de=n(820),he=n(775),pe=function(){return pe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pe.apply(this,arguments)},fe="undefined"==typeof window?n.g:window,ge=fe&&fe.CSPSettings&&fe.CSPSettings.nonce,me=((ce=fe.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ce=pe({},ce,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ce.registeredThemableStyles||(ce=pe({},ce,{registeredThemableStyles:[]})),fe.__themeState__=ce,ce);function ve(e){me.theme=e,function(){if(me.theme){for(var e=[],t=0,n=me.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(_e(me.registeredStyles),me.registeredStyles=[]),3!==i&&1!==i||(_e(me.registeredThemableStyles),me.registeredThemableStyles=[]),o=[].concat.apply([],e),me.loadStyles?me.loadStyles(ye(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ye(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ge&&n.setAttribute("nonce",ge),n.appendChild(document.createTextNode(o)),me.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};i?me.registeredThemableStyles.push(s):me.registeredStyles.push(s)}}(o))}var o,i}()}function _e(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ye(e){var t=me.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}var xe=n(685),be=(0,xe.j)({}),Ce=[],Ee="theme";function Se(){var e,t,n,r=(0,de.J)();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),be=(0,xe.j)(e,t),ve((0,ue.pi)((0,ue.pi)((0,ue.pi)((0,ue.pi)({},be.palette),be.semanticColors),be.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(be))),he.X.applySettings(((n={})[Ee]=be,n)),Ce.forEach((function(e){try{e(be)}catch(e){}}))}(r.FabricConfig.legacyTheme):he.X.getSettings([Ee]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(be=(0,xe.j)(r.FabricConfig.theme)),he.X.applySettings(((e={})[Ee]=be,e)))}function Le(e){return void 0===e&&(e=!1),!0===e&&(be=(0,xe.j)({},e)),be}Se(),(0,n(77).x)("@fluentui/style-utilities","8.9.16"),Se()},45:function(e,t,n){n.d(t,{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(e,t,n){n.d(t,{j:function(){return P}});var r,o=n(45);!function(e){e.depth0="0 0 0 0 transparent",e.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)",e.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)",e.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)",e.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 i={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=n(473),s=n(499),l=n(373),c=n(704),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(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var p,f,g,m,v,_,y=n(874),x=n(820),b=n(114),C="language",E=(f=function(e){for(var t in d)if(d.hasOwnProperty(t)&&e&&0===t.indexOf(e))return d[t];return u}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===p){var t=(0,y.M)(),n="localStorage"===e?function(e){var t=null;try{var n=(0,x.J)();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(C):"sessionStorage"===e?b.r(C):void 0;n&&(p=n),void 0===p&&t&&(p=t.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(e,t,n,r){!function(e){var t=s.Y.getInstance(),n=(0,l.dH)((0,a.Eo)(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function L(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);S(t,i+"-light",c.lq.light,o&&o+" Light"),S(t,i+"-semilight",c.lq.semilight,o&&o+" SemiLight"),S(t,i+"-regular",c.lq.regular,o),S(t,i+"-semibold",c.lq.semibold,o&&o+" SemiBold"),S(t,i+"-bold",c.lq.bold,o&&o+" Bold")}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)A(e||{},o[r]);return e}function A(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:A(e[r]||{},o,n)}}return n.pop(),e}!function(e){if(e){var t="".concat(e,"/fonts");L(t,c.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),L(t,c.Qm.Arabic,"segoeui-arabic"),L(t,c.Qm.Cyrillic,"segoeui-cyrillic"),L(t,c.Qm.EastEuropean,"segoeui-easteuropean"),L(t,c.Qm.Greek,"segoeui-greek"),L(t,c.Qm.Hebrew,"segoeui-hebrew"),L(t,c.Qm.Vietnamese,"segoeui-vietnamese"),L(t,c.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),L(t,c.II.Selawik,"selawik","selawik"),L(t,c.Qm.Armenian,"segoeui-armenian"),L(t,c.Qm.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),c.lq.light),S("Leelawadee UI Web","".concat(t,"/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_20221209.001/assets"));var T=n(939);function w(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(D(e,t,(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),o)}function D(e,t,n,r,o){void 0===o&&(o=!1);var i={},a=e||{},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,L=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),u&&(i.primaryButtonBackgroundPressed=u,i.inputBackgroundCheckedHovered=u,i.inputIconHovered=u),d&&(i.linkHovered=d),h&&(i.primaryButtonBackgroundHovered=h),p&&(i.inputPlaceholderBackgroundChecked=p),f&&(i.bodyBackgroundChecked=f,i.bodyFrameDivider=f,i.bodyDivider=f,i.variantBorder=f,i.buttonBackgroundCheckedHovered=f,i.buttonBackgroundPressed=f,i.listItemBackgroundChecked=f,i.listHeaderBackgroundPressed=f,i.menuItemBackgroundPressed=f,i.menuItemBackgroundChecked=f),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),v&&(i.primaryButtonTextDisabled=v,i.disabledSubtext=v),_&&(i.listItemBackgroundCheckedHovered=_),C&&(i.disabledBodyText=C,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,i.buttonTextDisabled=C,i.inputIconDisabled=C,i.disabledText=C),y&&(i.bodyText=y,i.actionLink=y,i.buttonText=y,i.inputBorderHovered=y,i.inputText=y,i.listText=y,i.menuItemText=y),S&&(i.bodyStandoutBackground=S,i.defaultStateBackground=S),m&&(i.actionLinkHovered=m,i.buttonTextHovered=m,i.buttonTextChecked=m,i.buttonTextPressed=m,i.inputTextHovered=m,i.menuItemTextHovered=m),x&&(i.bodySubtext=x,i.focusBorder=x,i.inputBorder=x,i.smallInputBorder=x,i.inputPlaceholderText=x),b&&(i.buttonBorder=b),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),L&&(i.accentButtonBackground=L),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),(0,T.pi)((0,T.pi)({},i),n)}var M={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function P(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=k({},e,t,{semanticColors:D(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=k(i.fonts[l],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:o.U,effects:i,fonts:E,spacing:M,isInverted:n,disableGlobalClassNames:!1,semanticColors:w(o.U,i,void 0,n,t),rtl:void 0},e)}},704:function(e,t,n){var r,o,i,a,s;n.d(t,{II:function(){return o},Qm:function(){return r},TS:function(){return i},lq:function(){return a}}),function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(e){e.Arabic="'".concat(r.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(r.Cyrillic,"'"),e.EastEuropean="'".concat(r.EastEuropean,"'"),e.Greek="'".concat(r.Greek,"'"),e.Hebrew="'".concat(r.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(r.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(r.Vietnamese,"'"),e.WestEuropean="'".concat(r.WestEuropean,"'"),e.Armenian="'".concat(r.Armenian,"'"),e.Georgian="'".concat(r.Georgian,"'")}(o||(o={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(i||(i={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(a||(a={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(s||(s={}))},461:function(e,t,n){n.d(t,{y:function(){return f}});var r=n(499),o=n(270),i=n(802),a=n(373);var s=n(116),l=n(820),c=50,u=5,d=0,h=r.Y.getInstance();h&&h.onReset&&h.onReset((function(){return d++}));var p="__retval__";function f(e){void 0===e&&(e={});var t=new Map,n=0,r=0,h=d;return function(f,g){var v;if(void 0===g&&(g={}),e.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(g);r++;var _=t,y=g.theme,x=y&&void 0!==y.rtl?y.rtl:(0,s.zg)(),b=e.disableCaching;if(h!==d&&(h=d,t=new Map,n=0),e.disableCaching||(_=m(t,f),_=m(_,g)),!b&&_[p]||(_[p]=void 0===f?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=o.m.apply(void 0,e),s=[];for(var l in r)if(r.hasOwnProperty(l)){if("subComponentStyles"===l){n.subComponentStyles=r.subComponentStyles||{};continue}var c=r[l],u=(0,i.U)(c),d=u.classes,h=u.objects;(null==h?void 0:h.length)?(g=(0,a.aj)(t||{},{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==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof f?f(g):f],{rtl:!!x,specificityMultiplier:e.useStaticStyles?u:void 0}),b||n++),n>(e.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()),t.clear(),n=0,e.disableCaching=!0}return _[p]}}function g(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function m(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=g(e,r[n]);else e=g(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=g(e,t[o]));return e}},775:function(e,t,n){n.d(t,{X:function(){return f}});var r=n(939),o=n(820),i="__globalSettings__",a="__callbacks__",s=0,l=function(){function e(){}return e.getValue=function(e,t){var n=c();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=c(),r=n[a],o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var s in r)r.hasOwnProperty(s)&&r[s](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=u();t||(t=e.__id__=String(s++)),n[t]=e},e.removeChangeListener=function(e){delete u()[e.__id__]},e}();function c(){var e,t=(0,o.J)()||{};return t[i]||(t[i]=((e={})[a]={},e)),t[i]}function u(){return c()[a]}var d={settings:{},scopedSettings:{},inCustomizerContext:!1},h=l.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),p=[],f=function(){function e(){}return e.reset=function(){h.settings={},h.scopedSettings={}},e.applySettings=function(t){h.settings=(0,r.pi)((0,r.pi)({},h.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){h.scopedSettings[t]=(0,r.pi)((0,r.pi)({},h.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=d);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&h.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||h.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){p.push(e)},e.unobserve=function(e){p=p.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||p.forEach((function(e){return e()}))},e}()},49:function(e,t,n){n.d(t,{i:function(){return r}});var r=n(363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},873:function(e,t,n){function r(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}n.d(t,{N:function(){return r}})},874:function(e,t,n){n.d(t,{M:function(){return o}});var r=n(873);function o(e){if((0,r.N)()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},820:function(e,t,n){n.d(t,{J:function(){return i}});var r=n(873),o=void 0;try{o=window}catch(e){}function i(e){if((0,r.N)()&&void 0!==o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},156:function(e,t,n){n.d(t,{Ct:function(){return d},NF:function(){return u}});var r=n(499),o=!1,i=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(){i++}function u(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!l)return e;if(!o){var u=r.Y.getInstance();u&&u.onReset&&r.Y.getInstance().onReset(c),o=!0}var d,p=0,f=i;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var l,c=d;(void 0===d||f!==i||t>0&&p>t)&&(d=h(),p=0,f=i),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=e.apply(void 0,r),p++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function d(e){if(!l)return e;var t=new l;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function h(){return{map:l?new l:null}}},116:function(e,t,n){n.d(t,{zg:function(){return l}});var r,o=n(874),i=n(114),a=n(473),s="isRTL";function l(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===r){var t=(0,i.r)(s);null!==t&&function(e,t){void 0===t&&(t=!1);var n=(0,o.M)();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&(0,i.L)(s,e?"1":"0"),r=e,(0,a.ok)(r)}(r="1"===t);var n=(0,o.M)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,a.ok)(r))}return!!r}},114:function(e,t,n){n.d(t,{L:function(){return i},r:function(){return o}});var r=n(820);function o(e){var t=null;try{var n=(0,r.J)();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function i(e,t){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}},766:function(e,t,n){n.d(t,{G$:function(){return r}});var r="ms-Fabric--isFocusVisible"},85:function(e,t,n){n.d(t,{z:function(){return c}});var r=n(939),o=n(363),i=n(270),a=n(775),s=n(49);var l=["theme","styles"];function c(e,t,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,h=c.fields,p=void 0===h?l:h,f=o.forwardRef((function(l,c){var u,h,f,g,m,v,_=o.useRef(),y=(u=p,h=d,f=o.useState(0)[1],g=function(){return f((function(e){return++e}))},m=o.useContext(s.i).customizations,v=m.inCustomizerContext,o.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 L=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var s=a[o];s&&r.push("function"==typeof s?s(e):s)}return 1===r.length?r[0]:r.length?i.m.apply(void 0,r):{}}(e,t,x,S)};L.__cachedInputs__=[t,x,S],L.__noStyleOverride__=!x&&!S,_.current=L}return o.createElement(e,(0,r.pi)({ref:c},b,C,l,{styles:_.current}))}));f.displayName="Styled".concat(e.displayName||e.name);var g=u?o.memo(f):f;return f.displayName&&(g.displayName=f.displayName),g}},363:function(e){e.exports=React},471:function(e,t,n){function r(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},444:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(471);function o(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(e){let t,n,i;function s(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=r.Z,n=(t,n)=>(0,r.Z)(e(t),n),i=(t,n)=>e(t)-n):(t=e===r.Z||e===o?e:a,n=e,i=e),{left:s,center:function(e,t,n=0,r=e.length){const o=s(e,t,n,r-1);return o>n&&i(e[o-1],t)>-i(e[o],t)?o-1:o},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function a(){return 0}},111:function(e,t,n){n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var r,o,i,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=s(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)/a}return r&&i.reverse(),i}function s(e,t,n){var a=(t-e)/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>=o?5:l>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=o?5:l>=i?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=o?s*=5:l>=i&&(s*=2),t<e?-s:s}},232:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(941),o=n(908);function i(){var e,t,n=(0,o.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,o=r?c:l,i=r?l:c;e=(i-o)/Math.max(1,n-d+2*h),u&&(e=Math.floor(e)),o+=(i-o-e*(n-d))*p,t=e*(1-d),u&&(o=Math.round(o),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return o+e*t}));return s(r?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),f()):a()},n.range=function(e){return arguments.length?([l,c]=e,l=+l,c=+c,f()):[l,c]},n.rangeRound=function(e){return[l,c]=e,l=+l,c=+c,u=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(u=!!e,f()):u},n.padding=function(e){return arguments.length?(d=Math.min(1,h=+e),f()):d},n.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),f()):d},n.paddingOuter=function(e){return arguments.length?(h=+e,f()):h},n.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),f()):p},n.copy=function(){return i(a(),[l,c]).round(u).paddingInner(d).paddingOuter(h).align(p)},r.o.apply(f(),arguments)}},538:function(e,t,n){n.d(t,{JG:function(){return ie},ZP:function(){return ae}});var r=n(471),o=n(444);const i=(0,o.Z)(r.Z),a=i.right;i.left,(0,o.Z)((function(e){return null===e?NaN:+e})).center;var s=a;function l(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function c(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[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 L(){return this.rgb().formatRgb()}function k(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=m.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?A(t):3===n?new D(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new D(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new D(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=v.exec(e))?new D(t[1],t[2],t[3],1):(t=_.exec(e))?new D(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=y.exec(e))?T(t[1],t[2],t[3],t[4]):(t=x.exec(e))?T(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=b.exec(e))?N(t[1],t[2]/100,t[3]/100,1):(t=C.exec(e))?N(t[1],t[2]/100,t[3]/100,t[4]):E.hasOwnProperty(e)?A(E[e]):"transparent"===e?new D(NaN,NaN,NaN,0):null}function A(e){return new D(e>>16&255,e>>8&255,255&e,1)}function T(e,t,n,r){return r<=0&&(e=t=n=NaN),new D(e,t,n,r)}function w(e,t,n,r){return 1===arguments.length?((o=e)instanceof u||(o=k(o)),o?new D((o=o.rgb()).r,o.g,o.b,o.opacity):new D):new D(e,t,n,null==r?1:r);var o}function D(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function M(){return"#"+F(this.r)+F(this.g)+F(this.b)}function P(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function F(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function N(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function V(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof u||(e=k(e)),!e)return new I;if(e instanceof I)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new I(a,s,l,e.opacity)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function H(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function O(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function B(e){return function(){return e}}function R(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):B(isNaN(e)?t:e)}l(u,k,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:S,formatHex:S,formatHsl:function(){return V(this).formatHsl()},formatRgb:L,toString:L}),l(D,w,c(u,{brighter:function(e){return e=null==e?h:Math.pow(h,e),new D(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?d:Math.pow(d,e),new D(this.r*e,this.g*e,this.b*e,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(I,(function(e,t,n,r){return 1===arguments.length?V(e):new I(e,t,n,null==r?1:r)}),c(u,{brighter:function(e){return e=null==e?h:Math.pow(h,e),new I(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?d:Math.pow(d,e),new I(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new D(H(e>=240?e-240:e+120,o,r),H(e,o,r),H(e<120?e+240:e-120,o,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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var z=function e(t){var n=function(e){return 1==(e=+e)?R:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):B(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=w(e)).r,(t=w(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=R(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function W(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=w(t[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=e(i),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=s(e),r+""}}}function Y(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=$(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function U(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function X(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=$(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}W((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r<t-1?e[r+2]:2*i-o;return O((n-r/t)*t,a,o,i,s)}})),W((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return O((n-r/t)*t,o,i,a,s)}}));var Z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j=new RegExp(Z.source,"g");function G(e,t){var n,r,o,i=Z.lastIndex=j.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Z.exec(e))&&(r=j.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:q(n,r)})),i=j.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function K(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?B(t):("number"===o?q:"string"===o?(n=k(t))?(t=n,z):G:t instanceof k?z:t instanceof Date?U:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Y:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?X:q:K))(e,t)}function J(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Q(e){return+e}var ee=[0,1];function te(e){return e}function ne(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function re(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=ne(o,r),i=n(a,i)):(r=ne(r,o),i=n(i,a)),function(e){return i(r(e))}}function oe(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=ne(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=s(e,t,1,r)-1;return i[n](o[n](t))}}function ie(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ae(){return function(){var e,t,n,r,o,i,a=ee,s=ee,l=$,c=te;function u(){var e,t,n,l=Math.min(a.length,s.length);return c!==te&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?oe:re,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),q)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Q),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=J,u()},d.clamp=function(e){return arguments.length?(c=!!e||te,u()):c!==te},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(te,te)}},941:function(e,t,n){function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}n.d(t,{o:function(){return r}})},222:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(111),o=n(538),i=n(941),a=n(371),s=n(783),l=n(560);function c(){var e=(0,o.ZP)();return e.copy=function(){return(0,o.JG)(e,c())},i.o.apply(e,arguments),function(e){var t=e.domain;return e.ticks=function(e){var n=t();return(0,r.ZP)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var o=t();return function(e,t,n,o){var i,c=(0,r.ly)(e,t,n);switch((o=(0,a.Z)(null==o?",f":o)).type){case"s":var u=Math.max(Math.abs(e),Math.abs(t));return null!=o.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3)))-(0,s.Z)(Math.abs(e)))}(c,u))||(o.precision=i),(0,l.jH)(o,u);case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,s.Z)(t)-(0,s.Z)(e))+1}(c,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=i-("e"===o.type));break;case"f":case"%":null!=o.precision||isNaN(i=function(e){return Math.max(0,-(0,s.Z)(Math.abs(e)))}(c))||(o.precision=i-2*("%"===o.type))}return(0,l.WU)(o)}(o[0],o[o.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var o,i,a=t(),s=0,l=a.length-1,c=a[s],u=a[l],d=10;for(u<c&&(i=c,c=u,u=i,i=s,s=l,l=i);d-- >0;){if((i=(0,r.G9)(c,u,n))===o)return a[s]=c,a[l]=u,t(a);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}o=i}return e},e}(e)}},908:function(e,t,n){n.d(t,{Z:function(){return d}});class r extends Map{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class o extends Set{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(i(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function s({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}var c=n(941);const u=Symbol("implicit");function d(){var e=new r,t=[],n=[],o=u;function i(r){let i=e.get(r);if(void 0===i){if(o!==u)return o;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(o=e,i):o},i.copy=function(){return d(t,n).unknown(o)},c.o.apply(i,arguments),i}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{AreaChart:function(){return ci},CartesianChart:function(){return yo},ChartHoverCard:function(){return qt.ChartHoverCard},DataVizPalette:function(){return Fo},DonutChart:function(){return ao},GaugeChart:function(){return Wa},GaugeValueFormat:function(){return Ma},GroupedVerticalBarChart:function(){return Bi},HeatMapChart:function(){return Ui},HorizontalBarChart:function(){return Dn},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return Ha},Legends:function(){return xr},LineChart:function(){return Xo},MultiStackedBarChart:function(){return ki},MultiStackedBarChartVariant:function(){return gi},NodesComposition:function(){return La},PieChart:function(){return yi},SankeyChart:function(){return da},Shape:function(){return vr},Sparkline:function(){return Na},StackedBarChart:function(){return Ci},Textbox:function(){return Po},TreeChart:function(){return Da},TreeTraverse:function(){return ka},VerticalBarChart:function(){return Pi},VerticalStackedBarChart:function(){return Vi},getChartHoverCardStyles:function(){return Ri.n},getColorFromToken:function(){return Ro},getNextColor:function(){return Bo}});var e=n(85),t=n(939),o=n(363),i=n(461),a=n(116),s=n(820),l=n(499),c="__currentId__",u="id__",d=(0,s.J)()||{};void 0===d[c]&&(d[c]=0);var h,p=!1;function f(e){if(!p){var t=l.Y.getInstance();t&&t.onReset&&t.onReset(g),p=!0}var n=d[c]++;return(void 0===e?u:e)+n}function g(e){void 0===e&&(e=0),d[c]=e}function m(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function v(e,t){var n=m(e,t);if(!(n<0))return e[n]}!function(e){e.PartToWhole="part-to-whole",e.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(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function x(e,t){return e&&e!==document.body?t(e)?e:x(y(e),t):null}function b(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=y(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}var C=n(874),E="data-is-focusable",S="data-is-visible",L="data-focuszone-id",k="data-is-sub-focuszone";function A(e,t){var n=w(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(I(n),!0)}function T(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=D(t);if(o&&l&&(i||!F(t)&&!N(t))){var c=T(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&P(c,!0)||!s)return c;var u=T(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var h=T(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&P(t,s)?t:T(e,t.previousElementSibling,!0,!0,!0,i,a,s)||(r?null:T(e,t.parentElement,!0,!1,!1,i,a,s))}function w(e,t,n,r,o,i,a,s,l){if(!t||t===e&&o&&!a)return null;var c=(l?M:D)(t);if(n&&c&&P(t,s))return t;if(!o&&c&&(i||!F(t)&&!N(t))){var u=w(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}return t===e?null:w(e,t.nextElementSibling,!0,!0,!1,i,a,s,l)||(r?null:w(e,t.parentElement,!1,!1,!0,i,a,s,l))}function D(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(S);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function M(e){return!!e&&D(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function P(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute(E):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function F(e){return!!(e&&e.getAttribute&&e.getAttribute(L))}function N(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(k))}var V=void 0;function I(e){if(e){if(V)return void(V=e);V=e;var t=(0,s.J)(e);t&&t.requestAnimationFrame((function(){V&&V.focus(),V=void 0}))}}function H(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function O(e,n){for(var r=(0,t.pi)({},n),o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];void 0===r[a]&&(r[a]=e[a])}return r}var B,R,z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=0,s=Array.isArray(i)?i:Object.keys(i);a<s.length;a++)n[s[a]]=1;return n},W=z(["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"]),Y=z(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),U=z(Y,W),q=(z(U,["form"]),z(U,["height","loop","muted","preload","src","width"])),X=(z(q,["poster"]),z(U,["start"]),z(U,["value"]),z(U,["download","href","hrefLang","media","rel","target","type"]),z(U,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Z=(z(X,["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"]),z(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),z(X,["form","multiple","required"]),z(U,["selected","value"]),z(U,["cellPadding","cellSpacing"]),z(U,["rowSpan","scope"]),z(U,["colSpan","headers","rowSpan","scope"]),z(U,["span"]),z(U,["span"]),z(U,["acceptCharset","action","encType","encType","method","noValidate","target"]),z(U,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),z(U,["alt","crossOrigin","height","src","srcSet","useMap","width"]),U);function j(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}function G(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return $.apply(this,[null,e].concat(t))}function $(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(B||(B={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(R||(R={}));var J,Q=n(13),ee=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function te(e){for(var t=e,n=(0,C.M)(e);t&&t!==n.body;){if("true"===t.getAttribute(ee))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(ee)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=(0,s.J)(e)),t}var ne,re=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function oe(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ie=((ne={})[_.topLeftEdge]=oe(B.top,B.left),ne[_.topCenter]=oe(B.top),ne[_.topRightEdge]=oe(B.top,B.right),ne[_.topAutoEdge]=oe(B.top,void 0,!0),ne[_.bottomLeftEdge]=oe(B.bottom,B.left),ne[_.bottomCenter]=oe(B.bottom),ne[_.bottomRightEdge]=oe(B.bottom,B.right),ne[_.bottomAutoEdge]=oe(B.bottom,void 0,!0),ne[_.leftTopEdge]=oe(B.left,B.top),ne[_.leftCenter]=oe(B.left),ne[_.leftBottomEdge]=oe(B.left,B.bottom),ne[_.rightTopEdge]=oe(B.right,B.top),ne[_.rightCenter]=oe(B.right),ne[_.rightBottomEdge]=oe(B.right,B.bottom),ne);function ae(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function se(e,t){var n=[];return e.top<t.top&&n.push(B.top),e.bottom>t.bottom&&n.push(B.bottom),e.left<t.left&&n.push(B.left),e.right>t.right&&n.push(B.right),n}function le(e,t){return e[B[t]]}function ce(e,t,n){return e[B[t]]=n,e}function ue(e,t){var n=be(t);return(le(e,n.positiveEdge)+le(e,n.negativeEdge))/2}function de(e,t){return e>0?t:-1*t}function he(e,t){return de(e,le(t,e))}function pe(e,t,n){return de(n,le(e,n)-le(t,n))}function fe(e,t,n,r){void 0===r&&(r=!0);var o=le(e,t)-n,i=ce(e,t,n);return r&&(i=ce(e,-1*t,le(e,-1*t)-o)),i}function ge(e,t,n,r){return void 0===r&&(r=0),fe(e,n,le(t,n)+de(n,r))}function me(e,t,n){return he(n,e)>he(n,t)}function ve(e,t){for(var n=0,r=0,o=se(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(pe(e,t,i),2)}return n}function _e(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;r&&r===-1*a?(s=fe(t.elementRectangle,a,le(n,a),!1),t.forcedInBounds=!0):me(s=ge(t.elementRectangle,n,a),n,-1*a)||(s=fe(s,-1*a,le(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function ye(e,t,n){var r=be(t).positiveEdge;return fe(e,r,n-(ue(e,t)-le(e,r)))}function xe(e,t,n,r,o){void 0===r&&(r=0);var i=new re(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return i=o?ge(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=de(-1*n,r);return fe(e,-1*n,le(t,n)+o)}(i,t,s,r),i=a?ge(i,t,a):ye(i,l,ue(t,s))}function be(e){return e===B.top||e===B.bottom?{positiveEdge:B.left,negativeEdge:B.right}:{positiveEdge:B.top,negativeEdge:B.bottom}}function Ce(e,t,n){return n&&Math.abs(pe(e,n,t))>Math.abs(pe(e,n,-1*t))?-1*t:t}function Ee(e,t,n,r,o,i,a,s){var l,c={},u=ke(t),d=i?n:-1*n,h=o||be(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&le(e,t)===le(n,t)}(e,(l=h,-1*l),r)||(h=Ce(e,h,r)),c[B[d]]=pe(e,u,d),c[B[h]]=pe(e,u,h),s&&(c[B[-1*d]]=pe(e,u,-1*d),c[B[-1*h]]=pe(e,u,-1*h)),c}function Se(e,t,n){var r=ue(t,e),o=ue(n,e),i=be(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function Le(e,t,n,r,o,i,s){var l=xe(e,t,r,o,s);return ae(l,n)?{elementRectangle:l,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,o,i,s){void 0===o&&(o=0);var l=r.alignmentEdge,c=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:l};i||s||(u=function(e,t,n,r,o){void 0===o&&(o=0);var i=[B.left,B.right,B.bottom,B.top];(0,a.zg)()&&(i[0]*=-1,i[1]*=-1);for(var s,l=e,c=r.targetEdge,u=r.alignmentEdge,d=c,h=u,p=0;p<4;p++){if(me(l,n,c))return{elementRectangle:l,targetEdge:c,alignmentEdge:u};var f=ve(l,n);(!s||f<s)&&(s=f,d=c,h=u),i.splice(i.indexOf(c),1),i.length>0&&(i.indexOf(-1*c)>-1?c*=-1:(u=c,c=i.slice(-1)[0]),l=xe(e,t,{targetEdge:c,alignmentEdge:u},o))}return{elementRectangle:l=xe(e,t,{targetEdge:d,alignmentEdge:h},o),targetEdge:d,alignmentEdge:h}}(e,t,n,r,o));var d=se(u.elementRectangle,n),h=i?-u.targetEdge:void 0;if(d.length>0)if(c)if(u.alignmentEdge&&d.indexOf(-1*u.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:xe(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(u,t,o,s);if(ae(p.elementRectangle,n))return p;u=_e(se(p.elementRectangle,n),u,n,h)}else u=_e(d,u,n,h);else u=_e(d,u,n,h);return u}(l,t,n,r,o,i,s)}function ke(e){var t=e.getBoundingClientRect();return new re(t.left,t.right,t.top,t.bottom)}function Ae(e,n,r,o){var i=e.gapSpace?e.gapSpace:0,s=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new re(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=ke(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new re(i,s,a,l)}if(!ae(n,e))for(var c=0,u=se(n,e);c<u.length;c++){var d=u[c];n[B[d]]=e[B[d]]}}else n=new re(0,0,0,0);return n}(r,e.target),l=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Se(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(function(e,n,r){if(void 0===e&&(e=_.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,t.pi)({},ie[e]);return(0,a.zg)()?(o.alignmentEdge&&o.alignmentEdge%2==0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?ie[n]:o):o}(e.directionalHint,e.directionalHintForRTL,o),s,r,e.coverTarget,e.alignTargetEdge),c=Le(ke(n),s,r,l,i,e.directionalHintFixed,e.coverTarget);return(0,t.pi)((0,t.pi)({},c),{targetRectangle:s})}function Te(e,n,r,o,i){var a=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var c,u,d,h,p,f,g,m,v,_=e.bounds?(v=e.bounds,new re(v.left,v.right,v.top,v.bottom)):new re(0,window.innerWidth-function(){if(void 0===J){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),J=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return J}(),0,window.innerHeight),y=Ae(l,r,_,o),x=(c=y,u=function(e,t){var n=t.targetRectangle,r=be(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=ue(n,t.targetEdge),s=new re(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new re(0,e,0,e);return me(l=ye(l=fe(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-he(o,t.elementRectangle)),s,o)?me(l,s,i)||(l=ge(l,s,i)):l=ge(l,s,o),l}(a,y),d=_,h=-1*c.targetEdge,p=new re(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=Ce(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:be(h).positiveEdge,d),m=pe(c.elementRectangle,c.targetRectangle,h)>Math.abs(le(u,h)),f[B[h]]=le(u,h),f[B[g]]=pe(u,p,g),{elementPosition:(0,t.pi)({},f),closestEdge:Se(c.targetEdge,u,p),targetEdge:h,hideBeak:!m});return(0,t.pi)((0,t.pi)({},function(e,t,n,r,o){return{elementPosition:Ee(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(y,n,_,e.coverTarget,i)),{beakPosition:x})}var we=["TEMPLATE","STYLE","SCRIPT"];function De(e){var t=(0,C.M)(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var i=o[r],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===we.indexOf(i.tagName)&&n.push([i,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var Me=27,Pe=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=(0,s.J)(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=(0,s.J)(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||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(t){var n=Date.now(),h=n-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||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(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),i=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var o=t-d,a=s-o,f=t-h,v=!1;return null!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),o>=s||v||n?g(t):null!==p&&e||!c||(p=r.setTimeout(m,a)),i},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),i},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=(0,s.J)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=(0,s.J)(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Fe(){var e=o.useRef();return e.current||(e.current=new Pe),o.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Ne(e,t,n,r){var i=o.useRef(n);i.current=n,o.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return H(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function Ve(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=o.useCallback((function(t){r.current=t;for(var n=0,o=e;n<o.length;n++){var i=o[n];"function"==typeof i?i(t):i&&(i.current=t)}}),(0,t.ev)([],e,!0));return r}var Ie=o.createContext({window:"object"==typeof window?window:void 0}),He=function(){return o.useContext(Ie).window};function Oe(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==(0,s.J)()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Be=o.forwardRef((function(e,n){var r=O({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),i=o.useRef(),a=Ve(i,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;o.useEffect((function(){if(n&&t.current)return De(t.current)}),[t,n])}(r,i),function(e,t){var n=e.onRestoreFocus,r=void 0===n?Oe:n,i=o.useRef(),a=o.useRef(!1);o.useEffect((function(){return i.current=(0,C.M)().activeElement,function(e){var t=(0,C.M)(e),n=t&&t.activeElement;return!(!n||!b(e,n))}(t.current)&&(a.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:a.current,documentContainsFocus:(null===(e=(0,C.M)())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Ne(t,"focus",o.useCallback((function(){a.current=!0}),[]),!0),Ne(t,"blur",o.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}(r,i);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(e,t){var n=Fe(),r=o.useState(!1),i=r[0],a=r[1];return o.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var o=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;o>0&&s>o&&(r=s-o>1)}i!==r&&a(r)}})),function(){return n.dispose()}})),i}(r,i),m=o.useCallback((function(e){e.which===Me&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Ne(He(),"keydown",m),o.createElement("div",(0,t.pi)({ref:a},j(r,Z),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:(0,t.pi)({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));Be.displayName="Popup";var Re,ze=n(786);function We(e){var t=o.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}var Ye=((Re={})[B.top]=ze.k4.slideUpIn10,Re[B.bottom]=ze.k4.slideDownIn10,Re[B.left]=ze.k4.slideLeftIn10,Re[B.right]=ze.k4.slideRightIn10,Re),Ue={opacity:0,filter:"opacity(0)",pointerEvents:"none"},qe=["role","aria-roledescription"],Xe={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_.bottomAutoEdge},Ze=(0,i.y)({disableCaching:!0});function je(e,n,r,i,a){var s=o.useState(),l=s[0],c=s[1],u=o.useRef(0),d=o.useRef(),h=Fe(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return o.useEffect((function(){if(!p){var o=h.requestAnimationFrame((function(){var o,s,h,p;if(n.current&&r){var _=(0,t.pi)((0,t.pi)({},e),{target:i.current,bounds:a()}),y=r.cloneNode(!0);y.style.maxHeight=m?"".concat(m):"",y.style.visibility="hidden",null===(o=r.parentElement)||void 0===o||o.appendChild(y);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return Te(e,t,n,r,!0)}(e,t,n,r)}(_,n.current,y,x):function(e,t,n,r){return Te(e,t,n,r)}(_,n.current,y,x);null===(s=r.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!$e((h=l).elementPosition,p.elementPosition)||!$e(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&u.current<5?(u.current++,c(b)):u.current>0&&(u.current=0,null==v||v(l))}}),r);return d.current=f,function(){h.cancelAnimationFrame(o),d.current=void 0}}c(void 0),u.current=0}),[p,_,h,r,m,n,i,g,a,v,l,e,f]),l}var Ge=o.memo(o.forwardRef((function(e,n){var r=O(Xe,e),i=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,L=r.onScroll,k=r.shouldRestoreFocus,T=void 0===k||k,w=r.target,D=r.hidden,M=r.onLayerMounted,P=r.popupProps,F=o.useRef(null),N=o.useState(null),V=N[0],I=N[1],B=o.useCallback((function(e){I(e)}),[]),R=Ve(F,n),z=function(e,t){var n=o.useRef(),r=o.useRef(null),i=He();if(!e||e!==n.current||"string"==typeof e){var a=null==t?void 0:t.current;if(e)if("string"==typeof e){var s=(0,C.M)(a);r.current=s?s.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,i]}(r.target,{current:V}),W=z[0],Y=z[1],U=function(e,t,n){var r=e.bounds,i=e.minPagePadding,a=void 0===i?Xe.minPagePadding:i,s=e.target,l=o.useState(!1),c=l[0],u=l[1],d=o.useRef(),h=o.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(s,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.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&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,s,t,n,c]),p=Fe();return Ne(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(r,W,Y),q=je(r,F,V,W,U),X=function(e,t,n){var r,i=e.calloutMaxHeight,a=e.finalHeight,s=e.directionalHint,l=e.directionalHintFixed,c=e.hidden,u=o.useState(),d=u[0],h=u[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return o.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},o=r.top,a=r.bottom;"number"==typeof f&&a?n=a-f:"number"==typeof g&&"number"==typeof o&&a&&(n=a-o-g),h(!i&&!c||i&&n&&i>n?n:i||void 0)}),[g,i,a,s,l,t,c,n,f]),d}(r,U,q),K=function(e,t,n,r,i){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=o.useRef(!1),g=Fe(),m=We([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return o.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){c||p&&p(e)||null==s||s(e)},o=function(e){u||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,a=n.current&&!b(n.current,o);if(a&&f.current)f.current=!1;else if(!r.current&&a||e.target!==i&&a&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!b(r.current,o))){if(p&&p(e))return;null==s||s(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==s||s(e))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&i){var r=[H(i,"scroll",e,!0),H(i,"resize",t,!0),H(i.document.documentElement,"focus",o,!0),H(i.document.documentElement,"click",o,!0),H(i,"blur",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[a,g,n,r,i,s,h,d,u,c,l,v,p]),m}(r,q,F,W,Y),$=K[0],J=K[1],Q=(null==q?void 0:q.elementPosition.top)&&(null==q?void 0:q.elementPosition.bottom),ee=(0,t.pi)((0,t.pi)({},null==q?void 0:q.elementPosition),{maxHeight:X});if(Q&&(ee.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,a=Fe(),s=!!t;o.useEffect((function(){if(!r&&i&&s&&n){var e=a.requestAnimationFrame((function(){return A(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,s,a,n,i])}(r,q,V),o.useEffect((function(){D||null==M||M()}),[D]),!Y)return null;var te=x,ne=d&&!!w,re=Ze(i,{theme:r.theme,className:u,overflowYHidden:te,calloutWidth:f,positions:q,beakWidth:p,backgroundColor:E,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),oe=(0,t.pi)((0,t.pi)({maxHeight:S||"100%"},a),te&&{overflowY:"hidden"}),ie=r.hidden?{visibility:"hidden"}:void 0;return o.createElement("div",{ref:R,className:re.container,style:ie},o.createElement("div",(0,t.pi)({},j(r,Z,qe),{className:G(re.root,q&&q.targetEdge&&Ye[q.targetEdge]),style:q?(0,t.pi)({},ee):Ue,tabIndex:-1,ref:B}),ne&&o.createElement("div",{className:re.beak,style:Ke(q)}),ne&&o.createElement("div",{className:re.beakCurtain}),o.createElement(Be,(0,t.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:re.calloutMain,onDismiss:r.onDismiss,onMouseDown:$,onMouseUp:J,onRestoreFocus:r.onRestoreFocus,onScroll:L,shouldRestoreFocus:T,style:oe},P),h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}(e,t)}));function Ke(e){var n,r,o=(0,t.pi)((0,t.pi)({},null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null==e?void 0:e.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return o.top||o.bottom||o.left||o.right||(o.left=0,o.top=0),o}function $e(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Je(e){return{height:e,width:e}}Ge.displayName="CalloutContentBase";var Qe={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},et=(0,e.z)(Ge,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=(0,ze.Cn)(Qe,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?ze.bR.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[ze.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},(0,ze.e2)(),r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Je(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},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const tt=o.createContext(void 0),nt=()=>()=>{};tt.Provider;var rt=ReactDOM,ot=n(156);new WeakMap,new WeakMap;var it=o.createContext(void 0),at=function(e){var t=e.providerRef,n=e.layerRoot,r=o.useState([])[0],i=o.useContext(it),a=void 0!==i&&!n,s=o.useMemo((function(){return a?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==i||i.registerProvider(e)},unregisterProvider:function(e){null==i||i.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,i,a]);return o.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?o.createElement(it.Provider,{value:s},e.children):o.createElement(o.Fragment,null,e.children)},st=n(775),lt=n(49);function ct(e,n){void 0===e&&(e={});var r=ut(n)?n:function(e){return function(n){return e?(0,t.pi)((0,t.pi)({},n),e):n}}(n);return r(e)}function ut(e){return"function"==typeof e}var dt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){st.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){st.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,n=this.props.contextTransform;return o.createElement(lt.i.Consumer,null,(function(r){var i=function(e,n){var r,o,i,a=(n||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:ct(s.settings,e.settings),scopedSettings:(r=s.scopedSettings,o=e.scopedSettings,void 0===r&&(r={}),(ut(o)?o:(void 0===(i=o)&&(i={}),function(e){var n=(0,t.pi)({},e);for(var r in i)i.hasOwnProperty(r)&&(n[r]=(0,t.pi)((0,t.pi)({},e[r]),i[r]));return n}))(r)),inCustomizerContext:!0}}}(e.props,r);return n&&(i=n(i)),o.createElement(lt.i.Provider,{value:i},e.props.children)}))},n}(o.Component),ht=n(685),pt=(0,i.y)(),ft=(0,ot.NF)((function(e,n){return(0,ht.j)((0,t.pi)((0,t.pi)({},e),{rtl:n}))})),gt=o.forwardRef((function(e,n){var r=e.className,i=e.theme,s=e.applyTheme,l=e.applyThemeToBody,c=e.styles,u=pt(c,{theme:i,applyTheme:s,className:r}),d=o.useRef(null);return function(e,t,n){var r=t.bodyThemed;o.useEffect((function(){if(e){var t=(0,C.M)(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(l,u,d),o.createElement(o.Fragment,null,function(e,n,r,i){var s=n.root,l=e.as,c=void 0===l?"div":l,u=e.dir,d=e.theme,h=j(e,Z,["dir"]),p=function(e){var t=e.theme,n=e.dir,r=(0,a.zg)(t)?"rtl":"ltr",o=(0,a.zg)()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),f=p.rootDir,g=p.needsTheme,m=o.createElement(at,{providerRef:r},o.createElement(c,(0,t.pi)({dir:f},h,{className:s,ref:Ve(r,i)})));return g&&(m=o.createElement(dt,{settings:{theme:ft(d,"rtl"===u)}},m)),m}(e,u,d,n))}));gt.displayName="FabricBase";var mt,vt={fontFamily:"inherit"},_t={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},yt=(0,e.z)(gt,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[(0,ze.Cn)(_t,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":vt,"& input":vt,"& textarea":vt},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),xt=n(766),bt="data-portal-element",Ct={},Et={},St="fluent-default-layer-host",Lt="#".concat(St),kt=n(873),At=(0,kt.N)()?o.useLayoutEffect:o.useEffect,Tt=void 0;function wt(e){Tt?Tt(e):console&&console.warn&&console.warn(e)}function Dt(e,t,n,r,o){if(!0===o)for(var i=0,a=n;i<a.length;i++){var s=a[i];s in t||wt("".concat(e," property '").concat(s,"' is required when '").concat(r,"' is used.'"))}}function Mt(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),i=n[r];i&&(o+=" Use '".concat(i,"' instead.")),wt(o)}}function Pt(e,t){return void 0!==e[t]&&null!==e[t]}function Ft(e){var t=(0,o.useRef)();return(0,o.useEffect)((function(){t.current=e})),t.current}mt={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Nt=0;function Vt(e){var n=e.name,r=e.props,i=e.other,a=void 0===i?[]:i,s=e.conditionallyRequired,l=e.deprecations,c=e.mutuallyExclusive,u=e.controlledUsage,d=o.useRef(!1),h=We((function(){return"useWarnings_".concat(Nt++)})),p=Ft(r);if(!d.current){d.current=!0;for(var f=0,g=a;f<g.length;f++)wt(g[f]);if(s)for(var m=0,v=s;m<v.length;m++){var _=v[m];Dt(n,r,_.requiredProps,_.conditionalPropName,_.condition)}l&&Mt(n,r,l),c&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&wt("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}(n,r,c)}u&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=i?Pt(i,l):void 0,u=Pt(o,l);if(u){var d=!!o[a],h=!(!s||!o[s]);d||h||mt.valueOnChange[t]||(mt.valueOnChange[t]=!0,wt("Warning: You provided a '".concat(String(l),"' prop to a ").concat(String(n)," without an '").concat(String(a),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(a),"'").concat(s?" or '".concat(String(s),"'"):"","."))),null==o[r]||mt.valueDefaultValue[t]||(mt.valueDefaultValue[t]=!0,wt("Warning: You provided both '".concat(String(l),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(i&&u!==c){var p=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?mt.controlledToUncontrolled:mt.uncontrolledToControlled;g[t]||(g[t]=!0,wt("Warning: A component is changing ".concat(p," ").concat(n," to be ").concat(f,". ")+"".concat(n,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}((0,t.pi)((0,t.pi)({},u),{componentId:h,props:r,componentName:n,oldProps:p}))}var It,Ht=(0,i.y)(),Ot=o.forwardRef((function(e,n){var r,i=null!==(r=o.useContext(tt))&&void 0!==r?r:nt,a=o.useRef(null),s=Ve(a,n),l=o.useRef(),c=o.useRef(null),u=o.useContext(it),d=o.useState(!1),h=d[0],p=d[1],f=o.useCallback((function(e){var t,n=!!(null==(t=null==u?void 0:u.providerRef)?void 0:t.current)&&t.current.classList.contains(xt.G$);e&&n&&e.classList.add(xt.G$)}),[u]),g=e.children,m=e.className,v=e.eventBubblingEnabled,_=e.fabricProps,y=e.hostId,x=e.insertFirst,b=e.onLayerDidMount,E=void 0===b?function(){}:b,S=e.onLayerMounted,L=void 0===S?function(){}:S,k=e.onLayerWillUnmount,A=e.styles,T=e.theme,w=Ve(c,null==_?void 0:_.ref,f),D=Ht(A,{theme:T,className:m,isNotHost:!y}),M=function(){null==k||k();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},P=function(){var e,t=(0,C.M)(a.current);if(t){var n=function(e){var t,n;if(y){var r=function(e){var t=Et[e];return t&&t[0]||void 0}(y);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(y))&&void 0!==n?n:null}var o=Lt,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",St),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),i}(t);if(n){M();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=D.root,r.setAttribute(bt,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,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 At((function(){P(),y&&function(e,t){Ct[e]||(Ct[e]=[]),Ct[e].push(t);var n=Et[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(y,P);var e=l.current?i(l.current):void 0;return function(){e&&e(),M(),y&&function(e,t){var n=Ct[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete Ct[e])}var o=Et[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(y,P)}}),[y]),o.useEffect((function(){l.current&&h&&(null==L||L(),null==E||E(),p(!1))}),[h,L,E]),function(e){Vt({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),o.createElement("span",{className:"ms-layer",ref:s},l.current&&rt.createPortal(o.createElement(at,{layerRoot:!0,providerRef:w},o.createElement(yt,(0,t.pi)({},!v&&(It||(It={},["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(e){return It[e]=Bt}))),It),_,{className:G(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Ot.displayName="LayerBase";var Bt=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},Rt={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},zt=(0,e.z)(Ot,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=(0,ze.Cn)(Rt,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:ze.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Wt=o.forwardRef((function(e,n){var r=e.layerProps,i=e.doNotLayer,a=(0,t._T)(e,["layerProps","doNotLayer"]),s=o.createElement(et,(0,t.pi)({},a,{doNotLayer:i,ref:n}));return i?s:o.createElement(zt,(0,t.pi)({},r),s)}));Wt.displayName="Callout";var Yt,Ut=n(55),qt=n(24);function Xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function Zt(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Xt(e,e[n],t[n]))}(e,{componentDidMount:jt,componentDidUpdate:Gt,componentWillUnmount:Kt})}function jt(){$t(this.props.componentRef,this)}function Gt(e){e.componentRef!==this.props.componentRef&&($t(e.componentRef,null),$t(this.props.componentRef,this))}function Kt(){$t(this.props.componentRef,null)}function $t(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Jt(e,t){var n=x(e,(function(e){return t===e||e.hasAttribute(bt)}));return null!==n&&n.hasAttribute(bt)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Yt||(Yt={}));var Qt,en="data-is-focusable",tn="data-focuszone-id",nn="tabindex",rn="data-no-vertical-wrap",on="data-no-horizontal-wrap",an=999999999,sn=-999999999;function ln(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var cn,un={},dn=new Set,hn=["text","number","password","email","tel","url","search","textarea"],pn=!1,fn=function(e){function n(t){var r,i,s,l,c,u=this;(u=e.call(this,t)||this)._root=o.createRef(),u._mergedRef=(c={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.resolver&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(c.refs,e)||(c.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(c)),c.refs=e,c.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==u._root.current;){if(P(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=y(h,pn)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&P(p)?(t=p,p.focus()):(u.focus(!0),u._activeElement&&(t=null))}var f=!u._activeElement;t&&t!==u._activeElement&&((d||f)&&u._setFocusAlignment(t,!0,!0),u._activeElement=t,f&&u._updateTabIndexes()),r&&r(u._activeElement,e),(i||o)&&e.stopPropagation(),s?s(e):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(e){if(!u._portalContainsElement(e.target)&&!u.props.disabled){for(var t=e.target,n=[];t&&t!==u._root.current;)n.push(t),t=y(t,pn);for(;n.length&&((t=n.pop())&&P(t)&&u._setActiveElement(t,!0),!F(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(o||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((l&&l(e)||i&&i(e))&&u._isImmediateDescendantOfZone(e.target)){var c=u._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!N(e.target))return;if(!u.focusElement(w(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==Yt.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==Yt.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==Yt.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==Yt.horizontal&&(u._preventDefaultWhenHandled(e),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(e.target)){var d=!1;if(u._processingTabKey=!0,d=r!==Yt.vertical&&u._shouldWrapFocus(u._activeElement,on)?((0,a.zg)(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,d)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.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(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.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(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(e,t,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>i||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,rn)?an:sn},Zt(u),Mt("FocusZone",t,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),u._id=f("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var d=null===(i=null!==(r=t.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(s=t.shouldRaiseClicksOnEnter)&&void 0!==s?s:d,u._shouldRaiseClicksOnSpace=null!==(l=t.shouldRaiseClicksOnSpace)&&void 0!==l?l:d,u}return(0,t.ZT)(n,e),n.getOuterZones=function(){return dn.size},n._onKeyDownCapture=function(e){9===e.which&&dn.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(un[this._id]=this,e){for(var t=y(e,pn);t&&t!==this._getDocument().body&&1===t.nodeType;){if(F(t)){this._isInnerZone=!0;break}t=y(t,pn)}this._isInnerZone||(dn.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 e=this._root.current,t=this._getDocument();if((this._activeElement&&!b(this._root.current,this._activeElement,pn)||this._defaultFocusElement&&!b(this._root.current,this._defaultFocusElement,pn))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return P(n)&&D(n)?n:w(e,n,!0)||T(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete un[this._id],this._isInnerZone||(dn.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 e=this,n=this.props,r=n.as,i=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=j(this.props,U),d=r||i||"div";this._evaluateFocusBeforeRender();var h=(0,ze.gh)();return o.createElement(d,(0,t.pi)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:G((Qt||(Qt=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Qt),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(en)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=un[n.getAttribute(tn)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&b(this._root.current,this._activeElement)&&P(this._activeElement)&&(!t||M(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(w(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},n.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(T(this._root.current,e,!0,!0,!0))}return!1},n.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(e){this._focusAlignment=e},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 e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=b(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=y(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},n.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(F(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;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(en)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return ln(n,t),!0;n=y(n,pn)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(F(e))return un[e.getAttribute(tn)];for(var t=e.firstElementChild;t;){if(F(t))return un[t.getAttribute(tn)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},n.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Yt.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?w(this._root.current,o):T(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?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 e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,rn)?an:sn:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,rn)?an:sn:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,on);return!!this._moveFocus((0,a.zg)(e),(function(r,o){var i=-1;return((0,a.zg)(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==Yt.vertical?i=r.right-o.right:n||(i=sn),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,on);return!!this._moveFocus(!(0,a.zg)(e),(function(r,o){var i=-1;return((0,a.zg)(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==Yt.vertical?i=o.left-r.left:n||(i=sn),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=te(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?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(e,c,u);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,o=g,i=n):!e&&p<s?(s=p,o=g,i=n):(-1===o||g<=o)&&(o=g,i=n))}}while(n);var m=!1;if(i&&i!==this._activeElement)m=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?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(e,t,n){if(this.props.direction===Yt.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},n.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},n.prototype._getOwnerZone=function(e){for(var t=y(e,pn);t&&t!==this._root.current&&t!==this._getDocument().body;){if(F(t))return t;t=y(t,pn)}return t},n.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!b(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];F(r)?"true"===r.getAttribute(en)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(nn)&&r.setAttribute(nn,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(nn)&&r.setAttribute(nn,"0"))):(r.getAttribute&&"false"===r.getAttribute(en)&&r.setAttribute(nn,"-1"),P(r)?this.props.disabled?r.setAttribute(nn,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(nn)&&r.setAttribute(nn,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(nn)&&r.setAttribute(nn,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},n.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&hn.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},n.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t){return"true"!==function(e,t){var n=x(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Jt(e,this._root.current)},n.prototype._getDocument=function(){return(0,C.M)(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:Yt.bidirectional,shouldRaiseClicks:!0},n}(o.Component),gn=n(560);function mn(e){return function(e){return e.clientWidth<e.scrollWidth}(e)||function(e){return e.clientHeight<e.scrollHeight}(e)}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(cn||(cn={}));var vn,_n=(0,i.y)(),yn=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?o.createElement("p",{className:t._classNames.subText},e.content):o.createElement("div",{className:t._classNames.subText},e.content)},t}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,r=e.calloutProps,i=e.directionalHint,a=e.directionalHintForRTL,s=e.styles,l=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,h=e.targetElement,p=e.theme;return this._classNames=_n(s,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),o.createElement(Wt,(0,t.pi)({target:h,directionalHint:i,directionalHintForRTL:a},r,j(this.props,Z,["id"]),{className:this._classNames.root}),o.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}(o.Component),xn=(0,e.z)(yn,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,ze.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}}},t],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(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(vn||(vn={}));var bn,Cn,En=(0,i.y)(),Sn=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.createRef(),r._defaultTooltipId=f("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case cn.Parent:return r._tooltipHost.current.parentElement;case cn.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var t=r.props,o=t.overflowMode,i=t.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==o){var a=r._getTargetElement();if(a&&!mn(a))return}if(!e.target||!Jt(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),i!==vn.zero){var s=r._getDelayTime(i);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Me||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.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(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case vn.medium:return 300;case vn.long:return 500;default:return 0}},Zt(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Pe(r),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.calloutProps,r=e.children,i=e.content,a=e.directionalHint,s=e.directionalHintForRTL,l=e.hostClassName,c=e.id,u=e.setAriaDescribedBy,d=void 0===u||u,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=En(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=(0,t.pi)((0,t.pi)({id:"".concat(m,"--tooltip"),content:i,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:K({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},j(this.props,Z,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?o.createElement(o.Fragment,null,e.content):null})):i,y=g&&!!_,x=d&&g&&_?m:void 0;return o.createElement("div",(0,t.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&&o.createElement(xn,(0,t.pi)({},v)),o.createElement("div",{hidden:!0,id:m,style:ze.ul},_))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:vn.medium},n}(o.Component),Ln={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},kn=(0,e.z)(Sn,(function(e){var t=e.className,n=e.theme;return{root:[(0,ze.Cn)(Ln,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),An=function(e){function n(t){var n=e.call(this,t)||this;return n._tooltipChild=o.createRef(),n._checkTextOverflow=function(){var e=n._getTargetElement(),t=!!e&&mn(e);t!==n.state.textOverflow&&n.setState({textOverflow:t})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Pe(n),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,r=e.content,i=e.accessibilityData;return o.createElement(kn,{overflowMode:cn.Self,hostClassName:n,content:r},o.createElement("span",(0,t.pi)({},(0,Ut.ey)(i),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},n.prototype.componentDidMount=function(){var e=this._getTargetElement();window.ResizeObserver&&e&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(e))},n.prototype.componentWillUnmount=function(){var e;null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._async.dispose()},n}(o.Component),Tn=(0,i.y)(),wn=function(e){function n(t){var n=e.call(this,t)||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=Tn(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(e){return n.props.barChartCustomData?o.createElement("div",{role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?"".concat(e.horizontalBarChartdata.x,"/").concat(e.horizontalBarChartdata.y):0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},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}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this.props,r=n.data,i=n.theme;this._adjustProps();var a=i.palette,s=0;return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(t,n){s=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-s,y:t.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=e.props.variant===h.AbsoluteScale?null:e._getChartDataText(t),i=e._createBars(t,a),l=e._uniqLineText+"_"+n,c=Tn(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return o.createElement("div",{key:n},o.createElement("div",{className:c.items},o.createElement(fn,{direction:Yt.horizontal},o.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&o.createElement(An,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),o.createElement(fn,{direction:Yt.horizontal,className:e._classNames.chartWrapper},o.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},o.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},i)))))})),o.createElement(Wt,(0,t.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,Ut.ey)(this.state.callOutAccessibilityData)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):o.createElement(qt.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(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=v(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(e){var n=this.props.culture,r=this.props.chartDataMode||"default",i=e.chartData[0],a=i.horizontalBarChartdata.x,s=i.horizontalBarChartdata.y,l=(0,Ut.ey)(e.chartDataAccessibilityData,"text",!1);switch(r){case"default":return o.createElement("div",(0,t.pi)({className:this._classNames.chartTitleRight},l),(0,Ut.Ts)(a,n));case"fraction":return o.createElement("div",(0,t.pi)({},l),o.createElement("span",{className:this._classNames.chartTitleRight},(0,Ut.Ts)(a,n)),o.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Ut.Ts)(s,n)));case"percentage":var c="".concat((0,Ut.Ts)(Math.round(a/s*100),n),"%");return o.createElement("div",(0,t.pi)({className:this._classNames.chartTitleRight},l),c)}},n.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r={left:"calc("+Math.round((n||0)/t*100)+"% - 4px)"};return o.createElement("div",{className:this._classNames.benchmarkContainer},o.createElement("div",{className:this._classNames.triangle,style:r}))},n.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],a=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),s=0,l=0,c=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(l=n/a*100)<0?l=0:l<1&&0!==l&&(l=1),c+=l}));var u=0!==c?c/100:1,d=e.chartData.map((function(t,c){var d=t.color?t.color:r[Math.floor(4*Math.random()+1)],p=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;c>0&&(s+=l),(l=p/a*100)<0?l=0:l<1&&0!==l?l=1/u:l/=u,i.push(s);var f=t.horizontalBarChartdata.x;if(1===c&&n.props.variant===h.AbsoluteScale){if(n.props.hideLabels)return o.createElement("text",{key:c});var g=e.chartData[0].horizontalBarChartdata.x;return o.createElement("text",{key:c,x:"".concat(n._isRTL?100-i[c]:i[c],"%"),y:n._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(n._isRTL?-4:4,")"),className:n._classNames.barLabel,"aria-hidden":!0},(0,gn.jH)(g<1e3?".2~":".1",g)(g))}return o.createElement("rect",{key:c,x:"".concat(n._isRTL?100-i[c]-l:i[c],"%"),y:0,"data-is-focusable":""!==t.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==t.legend?n._hoverOn.bind(n,f,t):void 0,onFocus:""!==t.legend?n._hoverOn.bind(n,f,t):void 0,role:"img","aria-label":n._getAriaLabel(t),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(o.Component),Dn=(0,e.z)(wn,(function(e){var n=e.className,r=e.theme,o=e.width,i=e.barHeight,a=e.showTriangle,s=e.variant,l=e.hideLabels,c=r.palette;return{root:[{display:"flex",flexDirection:"column",width:o||"100%"},n],items:{marginBottom:a||s===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:i||12,display:"block",overflow:"visible"},barWrapper:{stroke:r.palette.white,strokeWidth:2},chartTitle:(0,t.pi)((0,t.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:ze.TS.medium,fontWeight:ze.lq.semibold,color:r.palette.neutralPrimary},chartDataTextDenominator:{fontSize:ze.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,t.pi)((0,t.pi)({},r.fonts.small),{fontWeight:ze.lq.semibold,fill:r.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==h.AbsoluteScale||l?0:40}}})),Mn={host:"ms-HoverCard-host"},Pn=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var i;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,o||!1,!0),K(a,r),i=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==i;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],h=0;!1!==i&&h<d.length;h++){var p=d[h];p.objectCallback&&(i=p.objectCallback.call(p.parent,r))}t=o?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)};this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if(!(e&&e!==i.target||t&&t!==i.eventName||n&&n!==i.callback||"boolean"==typeof r&&r!==i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(bn||(bn={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Cn||(Cn={}));var Fn,Nn={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Vn(e,t){var n=o.useRef(t);return n.current||(n.current=f(e)),n.current}function In(e){var t=o.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return At((function(){t.current=e}),[e]),We((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Fn||(Fn={}));var Hn={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},On=o.forwardRef((function(e,n){var r,i,a,s=o.useRef(null),l=o.useRef(null),c=o.useRef(null),u=Ve(s,n),d=function(){var e;return null===(e=o.useContext(Ie).window)||void 0===e?void 0:e.document}(),h=null===(r=Ft(!1))||void 0===r||r,p=O(Hn,e),f=We({hasFocus:!1,focusStackId:Vn("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,C=p.firstFocusableSelector,E=p.firstFocusableTarget,S=p.disableRestoreFocus,L=void 0===S?p.ignoreExternalFocusing:S,k=p.isClickableOutsideFocusTrap,A=p.enableAriaHiddenSiblings,D={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},M=o.useCallback((function(e){e!==l.current&&e!==c.current&&I(e)}),[]),P=In((function(){if(s.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&b(s.current,e))M(e);else{var t=null;if("string"==typeof E)t=s.current.querySelector(E);else if(E)t=E(s.current);else if(C){var n="string"==typeof C?C:C();t=s.current.querySelector("."+n)}t||(t=w(s.current,s.current.firstChild,!1,!1,!1,!0)),t&&M(t)}}})),F=function(e){if(!v&&s.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),T(s.current,c.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),w(e,t,r,!1,!1,!0,!1,!0)}(s.current,l.current,0,!1);n&&(n===l.current||n===c.current?P():n.focus())}},N=In((function(e){if(On.focusStack=On.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;L||"function"!=typeof(null==e?void 0:e.focus)||!b(s.current,t)&&t!==d.body||M(e)}})),V=In((function(e){if(!v&&f.focusStackId===On.focusStack.slice(-1)[0]){var t=e.target;t&&!b(s.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(P(),f.hasFocus=!0)}),0):(P(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return o.useEffect((function(){var e=[];return y&&e.push(H(window,"focus",V,!0)),k||e.push(H(window,"click",V,!0)),function(){e.forEach((function(e){return e()}))}}),[y,k]),o.useEffect((function(){if(!v&&(h||y)&&s.current){On.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return _||b(s.current,e)||P(),function(){return N(e)}}}),[y,v]),o.useEffect((function(){if(!v&&A)return De(s.current)}),[v,A,s]),i=function(){delete f.previouslyFocusedElementInTrapZone},(a=o.useRef(i)).current=i,o.useEffect((function(){return function(){var e;null===(e=a.current)||void 0===e||e.call(a)}}),[]),function(e,t,n){o.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,P),o.createElement("div",(0,t.pi)({"aria-labelledby":p.ariaLabelledBy},j(p,Z),{ref:u,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?F(!0):e.target===c.current&&F(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==c.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),b(s.current,n)||(f.hasFocus=!1)}}),o.createElement("div",(0,t.pi)({},D,{ref:l})),g,o.createElement("div",(0,t.pi)({},D,{ref:c})))}));On.displayName="FocusTrapZone",On.focusStack=[];var Bn,Rn=function(e){return o.createElement(Wt,(0,t.pi)({},e),o.createElement(On,(0,t.pi)({disabled:e.hidden},e.focusTrapProps),e.children))},zn=function(e){var n=e.gapSpace,r=void 0===n?0:n,i=e.directionalHint,a=void 0===i?_.bottomLeftEdge:i,s=e.directionalHintFixed,l=e.targetElement,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=(0,t.pi)((0,t.pi)((0,t.pi)({},j(e,Z)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:s,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:r}),g);return o.createElement(o.Fragment,null,u?o.createElement(Rn,(0,t.pi)({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):o.createElement(Wt,(0,t.pi)({},m),f))},Wn=(0,i.y)(),Yn=function(e){function n(t){var n=e.call(this,t)||this;return n._expandedElem=o.createRef(),n._onKeyDown=function(e){e.which===Me&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return o.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})})),o.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},o.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new Pe(n),Zt(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var e=this.props,n=e.styles,r=e.compactCardHeight,i=e.expandedCardHeight,a=e.theme,s=e.mode,l=e.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=r+i;this._classNames=Wn(n,{theme:a,compactCardHeight:r,className:l,expandedCardHeight:i,needsScroll:u,expandedCardFirstFrameRendered:s===Fn.expanded&&d});var p=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return o.createElement(zn,(0,t.pi)({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(o.Component),Un=(0,e.z)(Yn,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=(0,ze.Cn)(Nn,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[ze.qJ]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],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}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),qn={root:"ms-PlainCard-root"},Xn=(0,i.y)(),Zn=function(e){function n(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===Me&&n.props.onLeave&&n.props.onLeave(e)},Zt(n),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.styles,r=e.theme,i=e.className;this._classNames=Xn(n,{theme:r,className:i});var a=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return o.createElement(zn,(0,t.pi)({},this.props,{content:a,className:this._classNames.root}))},n}(o.Component),jn=(0,e.z)(Zn,(function(e){var t,n=e.theme,r=e.className;return{root:[(0,ze.Cn)(qn,n).root,{pointerEvents:"auto",selectors:(t={},t[ze.qJ]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Gn=(0,i.y)(),Kn=function(e){function n(t){var n=e.call(this,t)||this;return n._hoverCard=o.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Fn.compact,openMode:"keydown"===e.type?bn.hotKey:bn.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==Me)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==Me||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:Fn.compact,openMode:bn.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Fn.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},Zt(n),n._async=new Pe(n),n._events=new Pn(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Fn.compact,openMode:bn.hover},n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:Fn.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Fn.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var e=this.props,n=e.expandingCardProps,r=e.children,i=e.id,a=e.setAriaDescribedBy,s=void 0===a||a,l=e.styles,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,g=e.setInitialFocus,m=this.state,v=m.isHoverCardVisible,_=m.mode,y=m.openMode,x=i||f("hoverCard");this._classNames=Gn(l,{theme:c,className:u});var b=(0,t.pi)((0,t.pi)({},j(this.props,Z)),{id:x,trapFocus:!!p,firstFocus:g||y===bn.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,t.pi)((0,t.pi)((0,t.pi)({},n),b),{mode:_}),E=(0,t.pi)((0,t.pi)({},h),b);return o.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===Cn.expanding?o.createElement(Un,(0,t.pi)({},C)):o.createElement(jn,(0,t.pi)({},E))))},n.prototype._getTargetElement=function(e){switch(typeof e){case"string":return(0,C.M)().querySelector(e);case"object":return e;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:Cn.expanding},n}(o.Component),$n=(0,e.z)(Kn,(function(e){var t=e.className,n=e.theme;return{host:[(0,ze.Cn)(Mn,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Bn||(Bn={}));var Jn=function(e){var n;void 0===e&&(n={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&n.hasOwnProperty(e.cacheKey))return n[e.cacheKey]},addMeasurementToCache:function(e,t){e.cacheKey&&(n[e.cacheKey]=t)}});var r,o=e;function i(e,t){var n=o.getCachedMeasurement(e);if(void 0!==n)return n;var r=t();return o.addMeasurementToCache(e,r),r}function a(e,t,n){for(var a=e,s=i(e,n);s>r;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=o.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,n,s,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(r&&n.renderedData&&!n.dataToMeasure)return(0,t.pi)((0,t.pi)({},n),function(e,n,o,i){var a;return a=e>r?i?{resizeDirection:"grow",dataToMeasure:i(o)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:o},r=e,(0,t.pi)((0,t.pi)({},a),{measureContainer:!1})}(l,e.data,n.renderedData,e.onGrowData));r=l}var c=(0,t.pi)((0,t.pi)({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&e.onGrowData?(0,t.pi)((0,t.pi)({},c),function(e,n,s,l){for(var c=e,u=i(e,s);u<r;){var d=n(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=o.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,t.pi)({resizeDirection:"shrink"},a(c,l,s))}(n.dataToMeasure,e.onGrowData,s,e.onReduceData)):(0,t.pi)((0,t.pi)({},c),a(n.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==o.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:(0,t.pi)({},e),resizeDirection:"grow",measureContainer:!0}}}},Qn=o.createContext({isMeasured:!1}),er={position:"fixed",visibility:"hidden"},tr={position:"relative"};function nr(e,n){var r;switch(n.type){case"resizeData":return(0,t.pi)({},n.value);case"dataToMeasure":return(0,t.pi)((0,t.pi)({},e),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,t.pi)((0,t.pi)({},e),((r={})[n.type]=n.value,r))}}var rr={isMeasured:!0},or=o.forwardRef((function(e,n){var r=o.useRef(null),i=Ve(r,n),a=function(e,n){var r=We(Jn),i=o.useRef(null),a=o.useRef(null),s=o.useRef(!1),l=Fe(),c=function(e,n,r){var i=We((function(){return n.getInitialResizeGroupState(e.data)})),a=o.useReducer(nr,i),s=a[0],l=a[1];o.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=o.useRef(i);return c.current=(0,t.pi)({},s),[c,o.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),o.useCallback((function(){r.current&&l({type:"measureContainer",value:!0})}),[r])]}(e,r,n),u=c[0],d=c[1],h=c[2];o.useEffect((function(){var t;u.current.renderedData&&(s.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),o.useEffect((function(){l.requestAnimationFrame((function(){var t=void 0;if(u.current.measureContainer&&n.current){var o=n.current.getBoundingClientRect();t=e.direction===Bn.vertical?o.height:o.width}var l=r.getNextState(e,u.current,(function(){var t=s.current?a:i;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===Bn.vertical?n.height:n.width}),t);d(l)}),n.current)})),Ne(He(),"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,i,a,p,f]}(e,r),s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];o.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]),function(e){Vt({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,m=j(e,Z,["data"]);return o.createElement("div",(0,t.pi)({},m,{className:f,ref:i}),o.createElement("div",{style:tr},h&&!p&&o.createElement("div",{style:er,ref:d},o.createElement(Qn.Provider,{value:rr},g(s))),o.createElement("div",{ref:u,style:p?er:void 0,"data-automation-id":"visibleContent"},p?g(s):l&&g(l))))}));or.displayName="ResizeGroupBase";var ir,ar=or;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(ir||(ir={}));var sr=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?ir.PERSISTED_KEYTIP_ADDED:ir.KEYTIP_ADDED;Pn.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Pn.raise(this,ir.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?ir.PERSISTED_KEYTIP_REMOVED:ir.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Pn.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Pn.raise(this,ir.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Pn.raise(this,ir.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var n=(0,t.ev)([],e.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,t.pi)((0,t.pi)({},e),{overflowSetSequence:r.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Pn.raise(this,ir.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,n){return void 0===n&&(n=f()),{keytip:(0,t.pi)({},e),uniqueID:n}},e._instance=new e,e}(),lr=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},cr=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},ur=function(e){var n=sr.getInstance(),r=e.className,i=e.overflowItems,a=e.keytipSequences,s=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=We({}),u=o.useCallback((function(e){return s?s(e):e.subMenuProps?e.subMenuProps.items:void 0}),[s]),d=o.useMemo((function(){var e=[],r=[];return a?null==i||i.forEach((function(o){var i,s=o.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!o.disabled&&!o.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(o)?(l.onExecute=n.menuExecute.bind(n,a,null===(i=null==o?void 0:o.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var c=(0,t.pi)((0,t.pi)({},o),{keytipProps:(0,t.pi)((0,t.pi)({},s),{overflowSetSequence:a})});null==r||r.push(c)}else null==r||r.push(o)})):r=i,{modifiedOverflowItems:r,keytipsToRegister:e}}),[i,u,n,a]),h=d.modifiedOverflowItems;return function(e,t,n){var r=Ft(e);o.useEffect((function(){r&&(cr(n,r),lr(t,n,e))})),o.useEffect((function(){return lr(t,n,e),function(){cr(n,e)}}),[])}(c,d.keytipsToRegister,n),o.createElement("div",{className:r},l(h))},dr=(0,i.y)(),hr=o.forwardRef((function(e,n){var r=o.useRef(null),i=Ve(r,n);!function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=A(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&b(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,r);var a=e.items,s=e.overflowItems,l=e.className,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=dr(c,{className:l,vertical:u}),m=!!s&&s.length>0;return o.createElement("div",(0,t.pi)({},j(e,Z),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:i}),"start"===p&&m&&o.createElement(ur,(0,t.pi)({},e,{className:g.overflowButton})),a&&a.map((function(e,t){return o.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&o.createElement(ur,(0,t.pi)({},e,{className:g.overflowButton})))}));hr.displayName="OverflowSet";var pr,fr={flexShrink:0,display:"inherit"},gr=(0,e.z)(hr,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",fr],overflowButton:["ms-OverflowSet-overflowButton",fr]}}),void 0,{scope:"OverflowSet"}),mr=((pr={})["".concat(Ut.wo[Ut.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",pr["".concat(Ut.wo[Ut.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",pr["".concat(Ut.wo[Ut.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",pr["".concat(Ut.wo[Ut.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",pr["".concat(Ut.wo[Ut.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",pr["".concat(Ut.wo[Ut.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",pr["".concat(Ut.wo[Ut.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",pr["".concat(Ut.wo[Ut.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",pr["".concat(Ut.jc[Ut.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",pr),vr=function(e){var n=e.svgProps,r=e.pathProps,i=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(mr).indexOf(i)?o.createElement("div",{className:a}):o.createElement("svg",(0,t.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},n,{transform:"rotate(".concat(i===Ut.wo[Ut.wo.diamond]?45:i===Ut.wo[Ut.wo.pyramid]?180:0,", 0, 0)")}),o.createElement("path",(0,t.pi)({d:mr[i]},r)))},_r=(0,i.y)(),yr=function(e){function n(n){var r=e.call(this,n)||this;return r._isLegendSelected=!1,r._onRenderData=function(e){var n=r.props,i=n.overflowProps,a=n.allowFocusOnLegends,s=void 0===a||a,l=n.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:r.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return o.createElement(fn,(0,t.pi)({},s&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),o.createElement(gr,(0,t.pi)({items:e.primary,overflowItems:e.overflow,onRenderItem:r._renderButton,onRenderOverflowButton:r._renderOverflowItems},i,{styles:(0,t.pi)((0,t.pi)({},u),null==i?void 0:i.styles)})))},r._onReduceData=function(e){if(0!==e.primary.length){var n=(0,t.ev)((0,t.ev)([],e.primary.slice(-1),!0),e.overflow,!0);return{primary:e.primary.slice(0,-1),overflow:n}}},r._onGrowData=function(e){if(0!==e.overflow.length){var n=e.overflow.slice(1);return{primary:(0,t.ev)((0,t.ev)([],e.primary,!0),e.overflow.slice(0,1),!0),overflow:n}}},r._canSelectMultipleLegends=function(e){var n=(0,t.pi)({},r.state.selectedLegends);n[e.title]?delete n[e.title]:(n[e.title]=!0,Object.keys(n).length===r.props.legends.length&&(n={})),r.setState({selectedLegends:n})},r._canSelectOnlySingleLegend=function(e){r.state.selectedLegend===e.title?r.setState({selectedLegend:""}):r.setState({selectedLegend:e.title})},r._onClick=function(e){if(e.action){var t=r.props.canSelectMultipleLegends;void 0!==t&&t?r._canSelectMultipleLegends(e):r._canSelectOnlySingleLegend(e),e.action()}},r._onRenderCompactCard=function(e){var n=r.props,i=n.allowFocusOnLegends,a=void 0===i||i,s=n.className,l=n.styles,c=n.theme,u=n.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=_r(l,{theme:c,className:s});return e.renderData.forEach((function(e,t){var n=r._renderButton(e,t,!0);h.push(n)})),o.createElement(fn,(0,t.pi)({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Yt.vertical},r.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},r._renderOverflowItems=function(e){var n=r.props.allowFocusOnLegends,i=void 0===n||n,a=[];e.forEach((function(e,t){a.push({key:t.toString(),name:e.title,onClick:e.action})}));var s={renderData:e},l=r.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=_r(d,{theme:c,className:u}),f={onRenderPlainCard:r._onRenderCompactCard,renderData:s},g=h||"more";return o.createElement($n,{type:Cn.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){r.setState({isHoverCardVisible:!1});var t=v(e,(function(e){return e.title===r.state.activeLegend}));t&&(r.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:r._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:r._hoverCardRef},o.createElement("div",(0,t.pi)({className:p.overflowIndicationTextStyle,ref:function(e){return r._hoverCardRef=e}},i&&{role:"button","aria-expanded":r.state.isHoverCardVisible,"aria-label":"".concat(a.length," ").concat(g)},{"data-is-focusable":i}),a.length," ",g))},r._hoverCardVisible=function(){r.setState({isHoverCardVisible:!0})},r._onHoverOverLegend=function(e){e.hoverAction&&(r.setState({activeLegend:e.title}),e.hoverAction())},r._onLeave=function(e){e.onMouseOutAction&&(r.setState({activeLegend:""}),e.onMouseOutAction())},r._renderButton=function(e,n,i){var a=r.props.allowFocusOnLegends,s=void 0===a||a,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},c=r._getColor(l.title,l.color),u=r.props,d=u.theme,h=u.className,p=u.styles,f=u.canSelectMultipleLegends,g=void 0!==f&&f,m=_r(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:i,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){r._onHoverOverLegend(l)},_=function(){r._onLeave(l)},y=r._getShape(m,l,c);return o.createElement("button",(0,t.pi)({},s&&{"aria-selected":g?!!r.state.selectedLegends[l.title]:r.state.selectedLegend===l.title,role:"option","aria-label":"".concat(l.title),"aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&(0,t.pi)({},e.nativeButtonProps),{key:n,className:m.legend,onClick:function(){r._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":s}),y,o.createElement("div",{className:m.text},l.title))},r.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=_r(r,{theme:t,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var i=this._generateData();return o.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):o.createElement(ar,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var e=this,n=this.props.allowFocusOnLegends,r=void 0===n||n;return{primary:this.props.legends.map((function(n,o){return(0,t.pi)((0,t.pi)({},r&&{nativeButtonProps:j(n,X,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":o+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:o})})),overflow:[]}},n.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return o.createElement(vr,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},n.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===e||this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},n}(o.Component),xr=(0,e.z)(yr,(function(e){var n,r,o=e.className,i=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=i,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:i.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},o],legend:[(0,ze.GL)(i,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[ze.qJ]={content:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")"),opacity:e.colorOnSelectedState===c.white?"0.6":""},n),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==i?void 0:i.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(e.colorOnSelectedState," 1px, ").concat(e.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===c.white?"0.6":e.opacity?e.opacity:"",selectors:(r={},r[ze.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")")},r)},text:(0,t.pi)((0,t.pi)({},u.small),{lineHeight:"16px",color:null==i?void 0:i.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[(0,ze.GL)(i,d),(0,t.pi)((0,t.pi)({cursor:"pointer",color:null==i?void 0:i.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,ze.GL)(i,d)]}}}}));function br(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Cr(e){return function(){return e}}function Er(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Sr(e){return e}Array.prototype.slice;const Lr=Math.abs,kr=Math.atan2,Ar=Math.cos,Tr=Math.max,wr=Math.min,Dr=Math.sin,Mr=Math.sqrt,Pr=1e-12,Fr=Math.PI,Nr=Fr/2,Vr=2*Fr;function Ir(e){return e>=1?Nr:e<=-1?-Nr:Math.asin(e)}function Hr(){var e=Sr,t=Er,n=null,r=Cr(0),o=Cr(Vr),i=Cr(0);function a(a){var s,l,c,u,d,h=(a=br(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Vr,Math.max(-Vr,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,i.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),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(t){return arguments.length?(e="function"==typeof t?t:Cr(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Cr(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Cr(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Cr(+e),a):i},a}const Or=Math.PI,Br=2*Or,Rr=1e-6,zr=Br-Rr;function Wr(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Yr{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Wr:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Wr;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,l=r-t,c=i-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Rr)if(Math.abs(u*s-l*c)>Rr&&o){let h=n-i,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((Or-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>Rr&&this._append`L${e+y*c},${t+y*u}`,this._append`A${o},${o},0,0,${+(u*h>c*p)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Rr||Math.abs(this._y1-c)>Rr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Br+Br),d>zr?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Rr&&this._append`A${n},${n},0,${+(d>=Or)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Ur(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Yr(t)}function qr(e){return e.innerRadius}function Xr(e){return e.outerRadius}function Zr(e){return e.startAngle}function jr(e){return e.endAngle}function Gr(e){return e&&e.padAngle}function Kr(e,t,n,r,o,i,a){var s=e-n,l=t-r,c=(a?i:-i)/Mr(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-i,C=h*g-f*p,E=(y<0?-1:1)*Mr(Tr(0,b*b*x-C*C)),S=(C*y-_*E)/x,L=(-C*_-y*E)/x,k=(C*y+_*E)/x,A=(-C*_+y*E)/x,T=S-m,w=L-v,D=k-m,M=A-v;return T*T+w*w>D*D+M*M&&(S=k,L=A),{cx:S,cy:L,x01:-u,y01:-d,x11:S*(o/b-1),y11:L*(o/b-1)}}function $r(){var e=qr,t=Xr,n=Cr(0),r=null,o=Zr,i=jr,a=Gr,s=null,l=Ur(c);function c(){var c,u,d,h=+e.apply(this,arguments),p=+t.apply(this,arguments),f=o.apply(this,arguments)-Nr,g=i.apply(this,arguments)-Nr,m=Lr(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>Pr)if(m>Vr-Pr)s.moveTo(p*Ar(f),p*Dr(f)),s.arc(0,0,p,f,g,!v),h>Pr&&(s.moveTo(h*Ar(g),h*Dr(g)),s.arc(0,0,h,g,f,v));else{var _,y,x=f,b=g,C=f,E=g,S=m,L=m,k=a.apply(this,arguments)/2,A=k>Pr&&(r?+r.apply(this,arguments):Mr(h*h+p*p)),T=wr(Lr(p-h)/2,+n.apply(this,arguments)),w=T,D=T;if(A>Pr){var M=Ir(A/h*Dr(k)),P=Ir(A/p*Dr(k));(S-=2*M)>Pr?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(L-=2*P)>Pr?(x+=P*=v?1:-1,b-=P):(L=0,x=b=(f+g)/2)}var F=p*Ar(x),N=p*Dr(x),V=h*Ar(E),I=h*Dr(E);if(T>Pr){var H,O=p*Ar(b),B=p*Dr(b),R=h*Ar(C),z=h*Dr(C);if(m<Fr)if(H=function(e,t,n,r,o,i,a,s){var l=n-e,c=r-t,u=a-o,d=s-i,h=d*l-u*c;if(!(h*h<Pr))return[e+(h=(u*(t-i)-d*(e-o))/h)*l,t+h*c]}(F,N,R,z,O,B,V,I)){var W=F-H[0],Y=N-H[1],U=O-H[0],q=B-H[1],X=1/Dr(((d=(W*U+Y*q)/(Mr(W*W+Y*Y)*Mr(U*U+q*q)))>1?0:d<-1?Fr:Math.acos(d))/2),Z=Mr(H[0]*H[0]+H[1]*H[1]);w=wr(T,(h-Z)/(X-1)),D=wr(T,(p-Z)/(X+1))}else w=D=0}L>Pr?D>Pr?(_=Kr(R,z,F,N,p,D,v),y=Kr(O,B,V,I,p,D,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),D<T?s.arc(_.cx,_.cy,D,kr(_.y01,_.x01),kr(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,kr(_.y01,_.x01),kr(_.y11,_.x11),!v),s.arc(0,0,p,kr(_.cy+_.y11,_.cx+_.x11),kr(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,D,kr(y.y11,y.x11),kr(y.y01,y.x01),!v))):(s.moveTo(F,N),s.arc(0,0,p,x,b,!v)):s.moveTo(F,N),h>Pr&&S>Pr?w>Pr?(_=Kr(V,I,O,B,h,-w,v),y=Kr(F,N,R,z,h,-w,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),w<T?s.arc(_.cx,_.cy,w,kr(_.y01,_.x01),kr(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,w,kr(_.y01,_.x01),kr(_.y11,_.x11),!v),s.arc(0,0,h,kr(_.cy+_.y11,_.cx+_.x11),kr(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,w,kr(y.y11,y.x11),kr(y.y01,y.x01),!v))):s.arc(0,0,h,E,C,v):s.lineTo(V,I)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Fr/2;return[Ar(r)*n,Dr(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Cr(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Cr(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Cr(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Cr(+e),c):r},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:Cr(+e),c):o},c.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Cr(+e),c):i},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Cr(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}Yr.prototype;var Jr=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:ze.UK.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:ze.TS.small,fontWeight:ze.lq.semibold,fill:r.palette.neutralPrimary}}},Qr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=o.createRef(),t._isRTL=(0,a.zg)(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,o=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},t._renderArcLabel=function(e){var n=t.props,r=n.arc,i=n.data,a=n.innerRadius,s=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue;if(n.hideLabels||Math.abs(i.endAngle-i.startAngle)<Math.PI/12)return null;var u=r.centroid(i),d=u[0],h=u[1],p=Math.sqrt(d*d+h*h),f=Math.max(a,s)+2,g=(i.startAngle+i.endAngle)/2,m=i.value;return o.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==t._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?(0,gn.WU)(".0%")(0===c?0:m/c):(0,gn.jH)(m<1e3?".2~":".1",m)(m))},t}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e){return eo(e),null},n.prototype.updateChart=function(e){eo(e)},n.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,a=t.focusedArcId,s=(0,i.y)()(Jr,{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 o.createElement("g",{ref:this.currentRef},!!a&&a===l&&o.createElement("path",{id:l+"focusRing",d:n(this.props.focusData),className:s.focusRing}),o.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===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(s.arcLabel))},n.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},n.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.defaultProps={arc:$r()},n}(o.Component);function eo(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var to=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:ze.TS.xLargePlus,fontWeight:ze.lq.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[ze.$v]={fill:"rgb(179, 179, 179)"},t)}}},no=(0,i.y)(),ro=function(e){function n(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var a=e&&e.data&&e.data.color;return o.createElement(Qr,{key:t,data:e,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:i,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(e,t,r){n.props.onFocusCallback(e,t,r)},n._computeTotalValue=function(){var e=0;return n.props.data.forEach((function(t){e+=t.data})),e},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Hr().sort(null).value((function(e){return e.data})).padAngle(0),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),a=n(r),s="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=no(to,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),o.createElement("g",{transform:s},a.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})),this.props.valueInsideDonut&&o.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var e=no(to,{theme:this.props.theme});(0,Ut.yQ)(e.insideDonutString,2*this.props.innerRadius-5)},n.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},n.defaultProps={pie:Hr().sort(null).value((function(e){return e.data})).padAngle(.02)},n}(o.Component),oo=(0,i.y)(),io=function(e){function n(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=f("callout"),n._uniqText=f("_Pie_"),n._emptyChartId=f("_DonutChart_empty"),n}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e,n){var r,o;return e.width&&e.width!==n._width&&(r={_width:e.width}),e.height&&e.height!==n._height&&(o={_height:e.height-40}),(0,t.pi)((0,t.pi)({},r),o)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.render=function(){var e,n=this,r=this.props,i=r.data,a=r.hideLegend,s=void 0!==a&&a,l=this.props.theme.palette;this._classNames=oo(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(i,l),u=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-u,this.state._height-d)/2,p=i&&(null===(e=i.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root,ref:function(e){return n._rootElem=e},onMouseLeave:this._handleChartMouseLeave},o.createElement(fn,{direction:Yt.horizontal,handleTabKey:1},o.createElement("div",null,o.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(e){return n._setViewBox(e)}},o.createElement(ro,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,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(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),o.createElement(Wt,(0,t.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,Ut.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement(qt.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})),!s&&o.createElement("div",{className:this._classNames.legendContainer},c))},n.prototype._setViewBox=function(e){var t,n;if(null!==e){var r=e.parentElement?e.parentElement.clientWidth:this.state._width,o=e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,i="0 0 ".concat(r," ").concat(o);e.setAttribute("viewBox",i)}},n.prototype._createLegends=function(e,n){var r=this,i=[n.blueLight,n.blue,n.blueMid,n.red,n.black],a=e&&e.chartData.map((function(e,t){var n=e.color?e.color:i[Math.floor(4*Math.random()+1)];return{title:e.legend,color:n,action:function(){r.state.selectedLegend===e.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:e.legend})},hoverAction:function(){r._handleChartMouseLeave(),r.setState({activeLegend:e.legend})},onMouseOutAction:function(){r.setState({activeLegend:""})}}}));return o.createElement(xr,(0,t.pi)({legends:a,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(e,t){var n=this._getHighlightedLegend();if(void 0===e||""===n||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},n.prototype._toLocaleString=function(e){var t=(0,Ut.Ts)(e,this.props.culture);return t?null==t?void 0:t.toString():e},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(e){return e.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(o.Component),ao=(0,e.z)(io,(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}})),so=n(485),lo=n(38);function co(e){this._context=e}function uo(e){return new co(e)}function ho(e){return e[0]}function po(e){return e[1]}function fo(e,t){var n=Cr(!0),r=null,o=uo,i=null,a=Ur(s);function s(s){var l,c,u,d=(s=br(s)).length,h=!1;for(null==r&&(i=o(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,l,s),+t(c,l,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?ho:Cr(e),t="function"==typeof t?t:void 0===t?po:Cr(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Cr(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Cr(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:Cr(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}co.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var go=(0,i.y)(),mo=(0,o.lazy)((function(){return Promise.resolve().then(n.bind(n,24)).then((function(e){return{default:e.ChartHoverCard}}))})),vo=function(e){function n(n){var r,i,s,l,c,u,d,h,p,g,m,v,_,y,x=this;return(x=e.call(this,n)||this).minLegendContainerHeight=32,x._isRtl=(0,a.zg)(),x._isFirstRender=!0,x._multiValueCallout=function(e){var n=x._yValueHoverSubCountsExists(e.YValueHover);return o.createElement("div",{className:x._classNames.calloutContentRoot},o.createElement("div",{className:x._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},o.createElement("div",(0,t.pi)({className:x._classNames.calloutContentX},(0,Ut.ey)(e.xAxisCalloutAccessibilityData,"text",!1)),(0,Ut.Ts)(e.hoverXValue,x.props.culture))),o.createElement("div",{className:x._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,r,i){var a=r+1===i.length,s=e.shouldDrawBorderBottom,l=void 0!==s&&s;return o.createElement("div",(0,t.pi)({},(0,Ut.ey)(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:n?(0,t.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(x.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,t.pi)({},l&&{borderBottom:"1px solid ".concat(x.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),x._getCalloutContent(e,r,n,a))})),!!e.descriptionMessage&&o.createElement("div",{className:x._classNames.descriptionMessage},e.descriptionMessage)))},x._getData=function(e,t){x.props.getGraphData&&x.props.getGraphData(e,t,x.state.containerHeight-x.state._removalValueForTextTuncate,x.state.containerWidth,x.xAxisElement,x.yAxisElement)},x._onChartLeave=function(){x.props.onChartMouseLeave&&x.props.onChartMouseLeave()},x._calculateChartMinWidth=function(){var e=10;if(!x.props.wrapXAxisLables&&x.props.rotateXAxisLables&&x.props.xAxisType===Ut.xl.StringAxis){var t=(0,Ut.yE)(x._tickValues,".".concat(x._classNames.xAxis," text"));e+=Math.ceil(t*Math.cos(Math.PI/4))}else if(x.props.showXAxisLablesTooltip){var n=x._tickValues.map((function(e){var t=x.props.noOfCharsToTruncate||4;return e.toString().length>t?"".concat(e.toString().slice(0,t),"..."):e}));t=(0,Ut.yE)(n,".".concat(x._classNames.xAxis," text")),e+=Math.ceil(t)}else if(x.props.wrapXAxisLables){var r=[];x._tickValues.forEach((function(e){r.push.apply(r,e.toString().split(/\s+/))})),t=(0,Ut.yE)(r,".".concat(x._classNames.xAxis," text")),e+=Math.max(Math.ceil(t),10)}else t=(0,Ut.yE)(x._tickValues,".".concat(x._classNames.xAxis," text")),e+=Math.ceil(t);var o=x.margins.left+x.margins.right+e*(x._tickValues.length-1);return[Ut.$X.GroupedVerticalBarChart,Ut.$X.VerticalBarChart,Ut.$X.VerticalStackedBarChart].includes(x.props.chartType)&&(o+=16),o},x.state={containerHeight:0,containerWidth:0,_width:x.props.width||600,_height:x.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},x.idForGraph=f("chart_"),x.margins={top:null!==(i=null===(r=x.props.margins)||void 0===r?void 0:r.top)&&void 0!==i?i:20,bottom:null!==(l=null===(s=x.props.margins)||void 0===s?void 0:s.bottom)&&void 0!==l?l:35,right:x._isRtl?null!==(u=null===(c=x.props.margins)||void 0===c?void 0:c.left)&&void 0!==u?u:40:(null!==(h=null===(d=x.props.margins)||void 0===d?void 0:d.right)&&void 0!==h?h:null===(p=x.props)||void 0===p?void 0:p.secondaryYScaleOptions)?40:20,left:x._isRtl?(null!==(m=null===(g=x.props.margins)||void 0===g?void 0:g.right)&&void 0!==m?m:null===(v=x.props)||void 0===v?void 0:v.secondaryYScaleOptions)?40:20:null!==(y=null===(_=x.props.margins)||void 0===_?void 0:_.left)&&void 0!==y?y:40},x}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===Ut.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=(0,Ut.yE)(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Ut.xl.StringAxis){var t={node:this.xAxisElement,xAxis:this._xScale},n=(0,Ut.zs)(t);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===Ut.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var r=(0,Ut.yE)(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==r&&this.setState({startFromX:r})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},n.prototype.render=function(){var e,n,r,i,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,t.pi)({},this.margins);this.props.chartType===Ut.$X.HorizontalBarChartWithAxis&&(this._isRtl?S.right+=this.state.startFromX:S.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(S);var L=null,k=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var A={domainNRangeValues:(0,Ut.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,Ut.As)(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},w=void 0,D=void 0;switch(this.props.xAxisType){case Ut.xl.NumericAxis:w=(e=(0,Ut.OX)(A,this.props.chartType,x)).xScale,D=e.tickValues;break;case Ut.xl.DateAxis:w=(n=(0,Ut.s8)(A,this.props.tickParams,x,b,C,E)).xScale,D=n.tickValues;break;case Ut.xl.StringAxis:w=(r=(0,Ut.R)(A,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:w=(i=(0,Ut.OX)(A,this.props.chartType,x)).xScale,D=i.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,Ut.Pu)(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var F=void 0,N=void 0,V={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===Ut.OH.StringAxis)F=(0,Ut.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 I={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,Ut.As)(g,m),yAxisPadding:this.props.yAxisPadding};N=(0,Ut.eQ)(I,this._isRtl,V,m,this.props.barwidth,!0)}F=(0,Ut.eQ)(T,this._isRtl,V,m,this.props.barwidth)}this.props.chartType===Ut.$X.HorizontalBarChartWithAxis&&F&&(0,Ut.Ay)(this.yAxisElement,F,this.props.noOfCharsToTruncate||4,this.props.showYAxisLablesTooltip||!1,this.state.startFromX,this._isRtl),this.props.getAxisData&&this.props.getAxisData(V),this._getData(w,F),k=this.props.children((0,t.pi)((0,t.pi)({},this.state),{xScale:w,yScale:F,yScaleSecondary:N})),!this.props.hideTooltip&&f.isCalloutVisible&&(L=this._generateCallout(f,v))}this._classNames=go(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var H,O={width:this.state.containerWidth,height:this.state.containerHeight};return H=this.props.focusZoneDirection===Yt.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Yt.horizontal,o.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(e){return h.chartContainer=e},onMouseLeave:this._onChartLeave},o.createElement(fn,(0,t.pi)({direction:H,className:this._classNames.chartWrapper},_),o.createElement("svg",(0,t.pi)({width:O.width,height:O.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),o.createElement("g",{ref:function(e){h.xAxisElement=e},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(O.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),o.createElement("g",{ref:function(e){h.yAxisElement=e},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?O.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&o.createElement("g",{ref:function(e){h.yAxisElementSecondary=e},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:O.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),k)),!this.props.hideLegend&&o.createElement("div",{ref:function(e){return h.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),L&&o.createElement(o.Suspense,{fallback:o.createElement("div",null,"Loading...")},L))},n.prototype._generateCallout=function(e,n){return o.createElement(Wt,(0,t.pi)({hidden:!(!this.props.hideTooltip&&e.isCalloutVisible),shouldUpdateWhenHidden:!0},e),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(e),!this.props.customizedCallout&&!this.props.isCalloutForStack&&o.createElement(mo,(0,t.pi)({XValue:e.XValue,Legend:e.legend,YValue:e.YValue,color:e.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},n.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,s=go(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=(0,Ut.Ts)(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return o.createElement("div",{style:i},o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return o.createElement("div",{key:e,className:s.calloutBlockContainer},o.createElement("div",{className:s.calloutlegendText}," ",(0,Ut.Ts)(e,l)),o.createElement("div",{className:s.calloutContentY},(0,Ut.Ts)(u[e],l)))})))}return o.createElement("div",{style:n?i:{}},n&&o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),o.createElement("div",{id:"".concat(t,"_").concat(e.y),className:s.calloutBlockContainer},a&&o.createElement(vr,{svgProps:{className:s.shapeStyles},pathProps:{fill:e.color},shape:Ut.wo[e.index%Object.keys(Ut.Ml).length]}),o.createElement("div",null,o.createElement("div",{className:s.calloutlegendText}," ",e.legend),o.createElement("div",{className:s.calloutContentY},(0,Ut.Ts)(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},n.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var o=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){var i=e.props.parentRef?e.props.parentRef:e.chartContainer,a=e.props.enableReflow&&!e._isFirstRender?Math.max(i.getBoundingClientRect().width,e._calculateChartMinWidth()):i.getBoundingClientRect().width,s=i.getBoundingClientRect().height>t?i.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}}))},n}(o.Component),_o=function(){var e,t=(0,s.J)();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),yo=(0,e.z)(vo,(function(e){var n,r,o,i,a,s,l,c,u=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],chartWrapper:{overflow:"auto"},xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[ze.$v]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(r={},r[ze.$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:(o={},o[ze.$v]={fill:"rgb(179, 179, 179)"},o)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(i={},i[ze.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},g:[h&&!_o&&{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,t.pi)((0,t.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[ze.qJ]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,t.pi)((0,t.pi)({},_.small),{lineHeight:"16px",selectors:(s={},s[ze.$v]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[(0,t.pi)((0,t.pi)({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[ze.$v]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[ze.$v]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),xo=(0,ot.Ct)((function(e){return(0,ot.Ct)((function(t){var n=(0,ot.Ct)((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function bo(e,t){return xo(e)(t)}var Co=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Eo=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},So="spacer-",Lo={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},ko=function(e){return e.getBoundingClientRect()},Ao=ko,To=ko,wo=function(e){function n(n){var r=e.call(this,n)||this;return r._root=o.createRef(),r._surface=o.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(e,t){return e.items!==r.props.items||e.renderCount!==r.props.renderCount||e.startIndex!==r.props.startIndex||e.version!==r.props.version||!t.hasMounted&&r.props.renderEarly&&(0,kt.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(e,t)):t},r._onRenderRoot=function(e){var n=e.rootRef,r=e.surfaceElement,i=e.divProps;return o.createElement("div",(0,t.pi)({ref:n},i),r)},r._onRenderSurface=function(e){var n=e.surfaceRef,r=e.pageElements,i=e.divProps;return o.createElement("div",(0,t.pi)({ref:n},i),r)},r._onRenderPage=function(e,n){for(var i,a=r.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=e.page,d=u.items,h=void 0===d?[]:d,p=u.startIndex,f=(0,t._T)(e,["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!==(i=null==b?void 0:b(y,_,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==i?i:null;l&&!C||m.push(o.createElement("div",{role:g,className:"ms-List-cell",key:x,"data-list-index":_,"data-automationid":"ListCell"},C))}return o.createElement("div",(0,t.pi)({},f),m)},Zt(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._async=new Pe(r),r._events=new Pn(r),r._estimatedPageHeight=0,r._totalEstimates=0,r._requiredWindowsAhead=0,r._requiredWindowsBehind=0,r._measureVersion=0,r._onAsyncScroll=r._async.debounce(r._onAsyncScroll,100,{leading:!1,maxWait:500}),r._onAsyncIdle=r._async.debounce(r._onAsyncIdle,200,{leading:!1}),r._onAsyncResize=r._async.debounce(r._onAsyncResize,16,{leading:!1}),r._onScrollingDone=r._async.debounce(r._onScrollingDone,500,{leading:!1}),r._cachedPageHeights={},r._estimatedPageHeight=0,r._focusedIndex=-1,r._pageCache={},r}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=To(this._scrollElement),h=Co(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)a+=t(l+g);var m=a+t(e);switch(n){case 1:return void Eo(this._scrollElement,a);case 2:return void Eo(this._scrollElement,m-d.height);case 3:return void Eo(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&&Eo(this._scrollElement,a))}a+=u}},n.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(o=e(a),r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},n.prototype.componentDidMount=function(){this._scrollElement=te(this._root.current),this._scrollTop=0,this.setState((0,t.pi)((0,t.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),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._onAsyncScroll))},n.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var e=this.props,n=e.className,r=e.role,o=void 0===r?"list":r,i=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=j(this.props,Z),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=i?bo(i,this._onRenderSurface):this._onRenderSurface;return(a?bo(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,t.pi)((0,t.pi)({},u),{className:G("ms-List",n),role:c.length>0?o:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},n.prototype._getPageStyle=function(e){var n=this.props.getPageStyle;return(0,t.pi)((0,t.pi)({},n?n(e):{}),e.items?{}:{height:e.height})},n.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=y(t)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdle()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(e,n){this._requiredRect||this._updateRenderRects(e,n);var r=this._buildPages(e,n),o=n.pages;return this._notifyPageChanges(o,r.pages,this.props),(0,t.pi)((0,t.pi)((0,t.pi)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++)(u=s[a]).items&&(i[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},n.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},n.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},n.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},n.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},n.prototype._buildPages=function(e,n){var r=e.renderCount,o=e.items,i=e.startIndex,a=e.getPageHeight;r=this._getRenderCount(e);for(var s=(0,t.pi)({},Lo),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=i+r,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,_=function(t){var r=y._getPageSpecification(e,t,v),a=r.height,_=r.data,x=r.key;c=r.itemCount;var b,C,E=u+a-1,S=m(n.pages,(function(e){return!!e.items&&e.startIndex===t}))>-1,L=!v||E>=v.top&&u<=v.bottom,k=!y._requiredRect||E>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!g&&(k||L&&S)||!f||h>=t&&h<t+c||t===i){d&&(l.push(d),d=null);var A=Math.min(c,p-t),T=y._createPage(x,o.slice(t,t+A),t,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),k&&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(So+t,void 0,t,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=i;x<p&&"break"!==_(x);x+=c);return d&&(d.key=So+"end",l.push(d)),this._materializedRect=s,(0,t.pi)((0,t.pi)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n),i=o.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=o.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:o.data,key:o.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},n.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},n.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},n.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},n.prototype._updateRenderRects=function(e,n,r){var o=e.renderedWindowsAhead,i=e.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(e)){var l=this._surfaceRect||(0,t.pi)({},Lo),c=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),u=Co(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(l=this._surfaceRect=Ao(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=Do(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Do(p,i,o),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return o.createElement(o.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n}(o.Component);function Do(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var Mo,Po=function(e){var n=o.useRef(null);o.useEffect((function(){if(n.current){var t=(0,so.Ys)(n.current),r=e.text.split(/\s+/),o=[],i=t.append("tspan"),a=0;return r.forEach((function(n){o.push(n),i.text(o.join(" "));var r=i.node();r&&r.getComputedTextLength()>e.width&&o.length>1&&(a++,o.pop(),i.text(o.join(" ")),o=[n],i=t.append("tspan").text(n).attr("dy",e.lineHeight).attr("x",e.x))})),t.attr("dy",-a*e.lineHeight),function(){t.selectAll("tspan").remove()}}})),e.lineHeight;var r=(0,t._T)(e,["lineHeight"]);return o.createElement("text",(0,t.pi)({ref:n},r))},Fo={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"},No={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"]},Vo={qualitative:No,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Io=Object.values(No),Ho=Object.values(Fo),Oo=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},Bo=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=Io[(e+t)%Io.length];return Oo(r,n)},Ro=function(e,t){if(void 0===t&&(t=!1),Ho.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],i=Vo[r][o];return Oo(i,t)}return e},zo=function(e){var t,n,r,i=o.useRef(null),a=o.useState(!1),s=a[0],l=a[1],c=null;if(s){var u=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));u.length>0&&(c=o.createElement(Wt,{target:i.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},o.createElement(fn,{isCircularNavigation:!0,direction:Yt.vertical},o.createElement(wo,{items:u,onRenderCell:function(e){return o.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var d=e.textColor?Ro(e.textColor,null===(t=e.theme)||void 0===t?void 0:t.isInverted):null===(n=e.theme)||void 0===n?void 0:n.palette.black;return r=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),o.createElement(o.Fragment,null,o.createElement("g",{ref:i,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},o.createElement(Po,{text:r,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:d})),c)},Wo=function(e){var n,r,i=e.labelWidth?e.labelWidth:105,a=e.chartYTop-20,s=a+7,l=e.scale.range(),c=e.events.map((function(n){return(0,t.pi)((0,t.pi)({},n),{x:e.scale(n.date)})}));c.sort((function(e,t){return+e.date-+t.date}));var u=e.strokeColor?Ro(e.strokeColor,null===(n=e.theme)||void 0===n?void 0:n.isInverted):null===(r=e.theme)||void 0===r?void 0:r.palette.black,d=function(e,t){for(var n=[],r=[],o=0,i=e;o<i.length;o++){var a=i[o],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(c,(function(e){return e.date.toString()})).map((function(t,n){return o.createElement("line",{key:n,x1:t.x,x2:t.x,y1:s,y2:e.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(e,t,n,r){var o=function(r,o){if(o===e.length)return[];var a=e[o].x,s=a-t;return a<r?[]:o===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[o]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[o]}]:[]:i(o,r<s?"end":"start")},i=function(r,i){var a="end"===i?e[r].x:e[r].x+t,s=m(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(a,s);return u.unshift({x:e[r].x,anchor:i,aggregatedIdx:l}),u};return o(r,0)}(c,i+5,l[1],l[0]).map((function(n,r){return o.createElement(zo,(0,t.pi)({key:r,theme:e.theme},{lineDefs:c,labelDef:n,textY:a,textWidth:i,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return o.createElement(o.Fragment,null,d,h)},Yo=(0,i.y)();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Mo||(Mo={}));var Uo=(0,lo.YF)((function(e){return e.x})).left,qo=function(e){function n(n){var r=e.call(this,n)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._injectIndexPropertyInLineChartData=function(e){var n=r.props.allowMultipleShapesForPoints,o=void 0!==n&&n;return e?e.map((function(e,n){var i,a,s;return s=void 0===e.color?Bo(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):Ro(e.color,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted),(0,t.pi)((0,t.pi)({},e),{index:o?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(e){r.margins=e},r._initializeLineChartData=function(e,t,n,o,i){r._xAxisScale=e,r._yAxisScale=t,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(n):[],r.lines=r._createLines(i,n)},r._handleSingleLegendSelectionAction=function(e){r.state.selectedLegend===e.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(e,null)):(r.setState({selectedLegend:e.legend}),r._handleLegendClick(e,e.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(e,t,n){var o=r.props,i=o.allowMultipleShapesForPoints,a=void 0!==i&&i,s=o.strokeWidth,l=void 0===s?4:s,c=r.state.activePoint;return a?c===e?Mo.hoverSize:1===t||n?2.5*l:Mo.invisibleSize:c===e?Mo.hoverSize:Mo.invisibleSize},r._getPath=function(e,t,n,o,i,a){var s=r.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=r._getBoxWidthOfShape(n,o,i),u=l?a%Object.keys(Ut.Ml).length:0,d=Ut.Ml[u].widthRatio;return function(e,t,n,r){return["M".concat(e-n/2," ").concat(t,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(e+n/2," ").concat(t,"\n M").concat(e-n/2," ").concat(t,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(e+n/2," ").concat(t,"\n "),"M".concat(e-n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t+n/2,"\n Z"),"M".concat(e-n/2," ").concat(t-.2886*n,"\n H ").concat(e+n/2,"\n L").concat(e," ").concat(t+.5774*n," Z"),"M".concat(e," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t,"\n L").concat(e," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.5774*n,"\n L").concat(e+n/2," ").concat(t+.2886*n,"\n L").concat(e-n/2," ").concat(t+.2886*n," Z"),"M".concat(e-.5*n," ").concat(t-.866*n,"\n L").concat(e+.5*n," ").concat(t-.866*n,"\n L").concat(e+n," ").concat(t,"\n L").concat(e+.5*n," ").concat(t+.866*n,"\n L").concat(e-.5*n," ").concat(t+.866*n,"\n L").concat(e-n," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.851*n,"\n L").concat(e+.6884*n," ").concat(t-.2633*n,"\n L").concat(e+.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.6884*n," ").concat(t-.2633*n,"\n Z"),"M".concat(e-.5001*n," ").concat(t-1.207*n,"\n L").concat(e+.5001*n," ").concat(t-1.207*n,"\n L").concat(e+1.207*n," ").concat(t-.5001*n,"\n L").concat(e+1.207*n," ").concat(t+.5001*n,"\n L").concat(e+.5001*n," ").concat(t+1.207*n,"\n L").concat(e-.5001*n," ").concat(t+1.207*n,"\n L").concat(e-1.207*n," ").concat(t+.5001*n,"\n L").concat(e-1.207*n," ").concat(t-.5001*n,"\n Z")][r]}(e,t,c=d>1?c/d:c,u)},r._getPointFill=function(e,t,n,o){var i=r.state.activePoint,a=r.props,s=a.theme;return a.allowMultipleShapesForPoints,i===t?s.palette.white:e},r._createColorFillBars=function(e){var t,n=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var i=(0,Ut.As)(r._points,Ut.$X.LineChart),a=0;a<r._colorFillBars.length;a++){var s=r._colorFillBars[a],l=f(s.legend.replace(/\W/g,"")),c=Ro(s.color,null===(t=r.props.theme)||void 0===t?void 0:t.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(o.createElement("rect",{fill:s.applyPattern?"url(#".concat(r._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:r._xAxisScale(d),y:r._yAxisScale(i.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(d)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(i.endValue)+3,key:"".concat(l).concat(u)}))}}return n},r._getStripePattern=function(e,t){return o.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(t),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(t),patternUnits:"userSpaceOnUse"},o.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},r._checkInGap=function(e,t,n){for(var r=n,o=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},r._onMouseOverLargeDataset=function(e,t,n){n.persist();var o=r.props.data.lineChartData,i=r._xAxisScale.invert((0,so.Eb)(document.getElementById(r._rectId),n)[0]),a=Uo(o[e].data,i),s=o[e].data[a-1],l=o[e].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,Ut.SY)(o[e].data[0].x,!0)){case Ut.xl.DateAxis:d=new Date(i).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 Ut.xl.NumericAxis:d=i,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=o[e].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(e){return e.x===y})),b=o[e].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(e),(0,so.Ys)("#".concat(r._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(r._xAxisScale(b.x))).attr("cy","".concat(r._yAxisScale(b.y))).attr("visibility","visibility"),(0,so.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(t-r._yAxisScale(b.y))),r.setState({nearestCircleToHighlight:b,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(e),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:g||_,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:b,activePoint:"",activeLine:e})},r._handleFocus=function(e,t,n,o,i){r._uniqueCallOutID=o;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=v(r._calloutPoints,(function(e){return e.x===s}));if(l){var c=r;(0,so.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(t){t.index===e&&r.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:n||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:i})}))}else r.setState({activePoint:o})},r._handleHover=function(e,t,n,o,i,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,c=e instanceof Date?e.getTime():e,u=r,d=v(r._calloutPoints,(function(e){return e.x===c}));d?((0,so.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(e),", ").concat(u._yAxisScale(t),")")})).attr("visibility","visibility").attr("y2","".concat(n-u._yAxisScale(t))),r._uniqueCallOutID!==i&&(r._uniqueCallOutID=i,r.setState({isCalloutVisible:!0,refSelected:"#".concat(i),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:i,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:i,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(e){return e?{onClick:e}:{}},r._handleMouseOut=function(){(0,so.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},r._handleMultipleLineLegendSelectionAction=function(e){var n,o=r.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);n=-1===o?(0,t.ev)((0,t.ev)([],r.state.selectedLegendPoints,!0),[e],!1):r.state.selectedLegendPoints.slice(0,o).concat(r.state.selectedLegendPoints.slice(o+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 i=n.map((function(e){return e.legend}));r._handleLegendClick(e,i)},r._handleMultipleColorFillBarLegendSelectionAction=function(e){var n,o=r.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(n=-1===o?(0,t.ev)((0,t.ev)([],r.state.selectedColorBarLegend,!0),[e],!1):r.state.selectedColorBarLegend.slice(0,o).concat(r.state.selectedColorBarLegend.slice(o+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 i=n.map((function(e){return e.legend}));r._handleLegendClick(e,i)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},r._getAriaLabel=function(e,t){var n,o=r._points[e],i=o.data[t],a=i.x instanceof Date?i.x.toLocaleString():i.x,s=i.xAxisCalloutData||a,l=o.legend,c=i.yAxisCalloutData||i.y;return(null===(n=i.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,Ut.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,ot.NF)((function(e){return r._createLegends(e)})),r._firstRenderOptimization=!0,r._emptyChartId=f("_LineChart_empty"),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=n.eventAnnotationProps.labelHeight),r}return(0,t.ZT)(n,e),n.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=(0,Ut.Wx)(this._points)||[])},n.prototype.render=function(){var e=this,n=this.props,r=n.tickValues,i=n.tickFormat,a=n.eventAnnotationProps,s=n.legendProps,l=n.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=(0,Ut.V4)(this._points),u=this._points;s&&s.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,Ut.Wx)(u));var d=null;this.props.hideLegend||(d=this._createLegendsMemoized(this._points));var h=(0,t.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:i};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(yo,(0,t.pi)({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Ut.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Ut.xl.DateAxis:Ut.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){return e._xAxisScale=n.xScale,e._yAxisScale=n.yScale,o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?o.createElement("rect",{id:e._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):o.createElement(o.Fragment,null),o.createElement("g",null,e._renderedColorFillBars,e.lines),a&&o.createElement(Wo,(0,t.pi)({theme:e.props.theme},a,{scale:n.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},n.prototype._createLegends=function(e){var n=this,r=this.props,i=r.legendProps,a=r.allowMultipleShapesForPoints,s=void 0!==a&&a,l=!(!i||!i.canSelectMultipleLegends),c=e.map((function(e){var r=e.color;return(0,t.pi)((0,t.pi)({title:e.legend,color:r,action:function(){l?n._handleMultipleLineLegendSelectionAction(e):n._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),s&&{shape:Ut.wo[e.index%Object.keys(Ut.Ml).length]})})),u=this.props.colorFillBars?this.props.colorFillBars.map((function(e,t){var r,o=e.legend,i=Ro(e.color,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:i,action:function(){l?n._handleMultipleColorFillBarLegendSelectionAction(e):n._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:o})},opacity:n._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return o.createElement(xr,(0,t.pi)({legends:(0,t.ev)((0,t.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(e,n){var r,i,a,s,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,E,S,L,k,A,T=this,w=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(e){var D=[],P=[],F=[],N=M._points[e].legend,V=M._points[e].color,I=M.state.activePoint,H=M.props.theme,O=n-M.margins.bottom+6;if(1===M._points[e].data.length){var B=M._points[e].data[0],R=B.x,z=B.y,W=B.xAxisCalloutData,Y=B.xAxisCalloutAccessibilityData,U="".concat(M._circleId,"_").concat(e);F.push(o.createElement("circle",(0,t.pi)({id:U,key:U,r:I===U?5.5:3.5,cx:M._xAxisScale(R),cy:M._yAxisScale(z),fill:I===U?H.palette.white:V,onMouseOver:M._handleHover.bind(M,R,z,O,W,U,Y),onMouseMove:M._handleHover.bind(M,R,z,O,W,U,Y),onMouseOut:M._handleMouseOut,strokeWidth:I===U?4:0,stroke:I===U?V:"",role:"img","aria-label":M._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){T._refCallback(e,U)},onFocus:function(){return T._handleFocus(U,R,W,U,Y)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[0].onDataPointClick))))}var q=0,X=null!==(i=null===(r=M._points[e].gaps)||void 0===r?void 0:r.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==i?i:[];if(M.props.optimizeLargeData&&M._points[e].data.length>1){for(var Z=fo().x((function(e){return T._xAxisScale(e[0])})).y((function(e){return T._yAxisScale(e[1])})).curve(uo),j="".concat(M._lineId,"_").concat(e),G="".concat(M._borderId,"_").concat(e),K=(null===(a=M._points[e].lineOptions)||void 0===a?void 0:a.strokeWidth)||M.props.strokeWidth||4,$=M._legendHighlighted(N)||M._noLegendHighlighted()||M.state.isSelectedLegend,J=[],Q=0;Q<M._points[e].data.length;Q++)J.push([M._points[e].data[Q].x instanceof Date?M._points[e].data[Q].x.getTime():M._points[e].data[Q].x,M._points[e].data[Q].y]);if($){var ee=(null===(s=M._points[e].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(M._points[e].lineOptions.lineBorderWidth.toString()):0;ee>0&&P.push(o.createElement("path",{id:G,key:G,d:Z(J),fill:"transparent",strokeLinecap:null!==(c=null===(l=M._points[e].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(K.toString())+ee,stroke:(null===(u=M._points[e].lineOptions)||void 0===u?void 0:u.lineBorderColor)||H.palette.white,opacity:1})),D.push(o.createElement("path",(0,t.pi)({id:j,key:j,d:Z(J),fill:"transparent","data-is-focusable":!0,stroke:V,strokeWidth:K,strokeLinecap:null!==(h=null===(d=M._points[e].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:M._onMouseOverLargeDataset.bind(M,e,O),onMouseOver:M._onMouseOverLargeDataset.bind(M,e,O),onMouseOut:M._handleMouseOut},M._getClickHandler(M._points[e].onLineClick),{opacity:1,role:"img","aria-label":"".concat(N,", series ").concat(e+1," of ").concat(M._points.length," with ").concat(M._points[e].data.length," data points.")})))}else D.push(o.createElement("path",{id:j,key:j,d:Z(J),fill:"transparent","data-is-focusable":!0,stroke:V,strokeWidth:K,strokeLinecap:null!==(f=null===(p=M._points[e].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1,role:"img","aria-label":"".concat(N,", series ").concat(e+1," of ").concat(M._points.length," with ").concat(M._points[e].data.length," data points.")}));var te=null!==M.state.activeLine&&M.state.activeLine===e;F.push(o.createElement("circle",{id:"".concat(M._staticHighlightCircle,"_").concat(e),key:"".concat(M._staticHighlightCircle,"_").concat(e),r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:V,visibility:te?"visibility":"hidden",onMouseMove:M._onMouseOverLargeDataset.bind(M,e,O),onMouseOver:M._onMouseOverLargeDataset.bind(M,e,O),onMouseOut:M._handleMouseOut}))}else if(!M.props.optimizeLargeData)for(var ne=function(n){var r=M._checkInGap(n,X,q),i=r.isInGap;q=r.gapIndex;var a="".concat(M._lineId,"_").concat(e,"_").concat(n),s="".concat(M._borderId,"_").concat(e,"_").concat(n),l="".concat(M._circleId,"_").concat(e,"_").concat(n),c=M._points[e].data[n-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=M._points[e].data[n],w=f.x,B=f.y,R=M._getPath(M._xAxisScale(u),M._yAxisScale(d),l,n,!1,M._points[e].index),z=(null===(g=M._points[e].lineOptions)||void 0===g?void 0:g.strokeWidth)||M.props.strokeWidth||4,W=M._legendHighlighted(N)||M._noLegendHighlighted()||M.state.isSelectedLegend,Y=M._points[e].hideNonActiveDots&&I!==l;if(F.push(o.createElement("path",(0,t.pi)({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,u,d,O,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,O,h,l,p),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,u,h,l,p)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[n-1].onDataPointClick),{opacity:W&&!Y?1:.01,fill:M._getPointFill(V,l,n,!1),stroke:V,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(e,n-1)}))),n+1===M._points[e].data.length){var U="".concat(l).concat(n,"L"),Z=M._points[e].hideNonActiveDots&&I!==U;R=M._getPath(M._xAxisScale(w),M._yAxisScale(B),U,n,!0,M._points[e].index);var j=M._points[e].data[n],G=j.xAxisCalloutData,K=j.xAxisCalloutAccessibilityData;F.push(o.createElement("path",(0,t.pi)({id:U,key:U,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,w,B,O,G,U,K),onMouseMove:M._handleHover.bind(M,w,B,O,G,U,K),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,w,G,U,K)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[n].onDataPointClick),{opacity:W&&!Z?1:.01,fill:M._getPointFill(V,U,n,!0),stroke:V,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(e,n)})))}if(W){if(!i){var $=(null===(m=M._points[e].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(M._points[e].lineOptions.lineBorderWidth.toString()):0;$>0&&P.push(o.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[e].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(z.toString())+$,stroke:(null===(y=M._points[e].lineOptions)||void 0===y?void 0:y.lineBorderColor)||H.palette.white,opacity:1})),D.push(o.createElement("line",(0,t.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(e){T._refCallback(e,a)},onMouseOver:M._handleHover.bind(M,u,d,O,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,O,h,l,p),onMouseOut:M._handleMouseOut,stroke:V,strokeLinecap:null!==(b=null===(x=M._points[e].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=M._points[e].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(E=M._points[e].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},M._getClickHandler(M._points[e].onLineClick))))}}else i||D.push(o.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:V,strokeLinecap:null!==(L=null===(S=M._points[e].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(k=M._points[e].lineOptions)||void 0===k?void 0:k.strokeDasharray,strokeDashoffset:null===(A=M._points[e].lineOptions)||void 0===A?void 0:A.strokeDashoffset,opacity:.1}))},re=1;re<M._points[e].data.length;re++)ne(re);w.push.apply(w,(0,t.ev)((0,t.ev)((0,t.ev)([],P,!1),D,!1),F,!1))},M=this,P=this._points.length-1;P>=0;P--)D(P);var F=Yo(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var N=(0,so.Ys)(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var V={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:N};N&&(0,Ut.$V)(V)}return w},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(e){return e.data.length})).length>0)},n.defaultProps={enableReflow:!0},n}(o.Component),Xo=(0,e.z)(qo,(function(e){return{tooltip:(0,t.pi)((0,t.pi)({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function Zo(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function jo(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Go(e,t){return e[t]}function Ko(e){const t=[];return t.key=e,t}function $o(e,t,n){var r=null,o=Cr(!0),i=null,a=uo,s=null,l=Ur(c);function c(c){var u,d,h,p,f,g=(c=br(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==i&&(s=a(f=l())),u=0;u<=g;++u){if(!(u<g&&o(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]=+e(p,u,c),_[u]=+t(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 fo().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?ho:Cr(+e),t="function"==typeof t?t:Cr(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?po:Cr(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Cr(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Cr(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Cr(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Cr(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Cr(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Cr(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:Cr(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c}function Jo(e){return e<0?-1:1}function Qo(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(Jo(i)+Jo(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function ei(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ti(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function ni(e){this._context=e}function ri(e){this._context=e}function oi(e){return new ni(e)}ni.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:ti(this,this._t0,ei(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ti(this,ei(this,n=Qo(this,e,t)),n);break;default:ti(this,this._t0,n=Qo(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new ri(e)}.prototype=Object.create(ni.prototype)).point=function(e,t){ni.prototype.point.call(this,t,e)},ri.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};var ii,ai=(0,i.y)(),si=(0,lo.YF)((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(ii||(ii={}));var li=function(e){function n(n){var r=e.call(this,n)||this;return r._getMargins=function(e){r.margins=e},r._onRectMouseMove=function(e){e.persist();var t=r.props.data.lineChartData,n=r._xAxisRectScale.invert((0,so.Eb)(document.getElementById(r._rectId),e)[0]),o=si(t[0].data,n),i=t[0].data[o-1],a=t[0].data[o],s=null,l=null,c=null;if(void 0===i&&void 0!==a)l=a.x,c=o;else if(void 0!==i&&void 0===a)l=i.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=(0,Ut.SY)(t[0].data[0].x,!0)){case Ut.xl.DateAxis:u=new Date(n).getTime(),d=i.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:i.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case Ut.xl.NumericAxis:u=n,d=i.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:i.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=t[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(e){return e.x===_})),x=s===Ut.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:ii.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),y||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:ii.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:ii.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(e,t){var n=function(){var e=Cr([]),t=jo,n=Zo,r=Go;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Ko),l=s.length,c=-1;for(const e of o)for(i=0,++c;i<l;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=br(t(s));i<l;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Cr(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Cr(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?jo:"function"==typeof e?e:Cr(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Zo:e,o):n},o}().keys(e)(t),o=(0,lo.Fp)(n[n.length-1],(function(e){return e[1]})),i=[];return n.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),i.push(t)})),r._isMultiStackChart=!!(i&&i.length>1),{stackedData:i,maxOfYVal:o}},r._createDataSet=function(e){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var t=[],n=[],o=[],i=[],a=(0,Ut.Wx)(e);e&&e.length&&e.forEach((function(e){o.push(e.color),i.push(e.opacity||1),t.push.apply(t,e.data)}));var s={};t.forEach((function(e){var t=e.x instanceof Date?e.x.toLocaleString():e.x;s[t]?s[t].push(e):s[t]=[e]})),Object.keys(s).forEach((function(e){var t=s[e],r={};t.forEach((function(e,t){r.xVal=e.x,r["chart".concat(t)]=e.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:o,opacity:i,keys:c,stackedInfo:h,calloutPoints:a}}var p=[],f=[],g=[],m=[];a=(0,Ut.Wx)(e),e&&e.length&&e.forEach((function(e){g.push(e.color),m.push(e.opacity||1),p.push.apply(p,e.data)}));for(var v=p,_=function(){var e=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,t=v.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart".concat(t)]=e.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.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(e,t,n,o,i){r._chart=r._drawGraph(n,e,t,i)},r._getLegendData=function(e){var n=[];return e.forEach((function(e){var t=e.color;if(!(n.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var o={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};n.push(o)}})),o.createElement(xr,(0,t.pi)({legends:n,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(e){e&&e(),r.setState({isCircleClicked:!0})},r._getOpacity=function(e){return r._isMultiStackChart?r._legendHighlighted(e)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(e){if(r._isMultiStackChart){var t=.3;return r.state.isCalloutVisible&&(t=1),r._noLegendHighlighted()||(t=r._legendHighlighted(e)?0:.1),t}return 1},r._updateCircleFillColor=function(e,t,n){var o=t;return r.state.nearestCircleToHighlight!==e&&r.state.activePoint!==n||(r._highlightedCircleId=n,r.state.isCircleClicked||(o=r.props.theme.palette.white)),o},r._drawGraph=function(e,n,i,a){var s,l=r._addDefaultColors(r.props.data.lineChartData),c=r.props.data,u=c.pointOptions,d=c.pointLineOptions,h=$o().x((function(e){return n(e.xVal)})).y0((function(e){return i(e.values[0])})).y1((function(e){return i(e.values[1])})).curve(oi),p=fo().x((function(e){return n(e.xVal)})).y((function(e){return i(e.values[1])})).curve(oi),f=[];r._stackedData.forEach((function(e,a){f.push(o.createElement(o.Fragment,{key:"".concat(a,"-graph-").concat(r._uniqueIdForGraph)},o.createElement("path",(0,t.pi)({id:"".concat(a,"-line-").concat(r._uniqueIdForGraph),d:p(e),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===e.length?o.createElement("circle",{id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),cx:n(e[0].xVal),cy:i(e[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}):o.createElement("path",(0,t.pi)({id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),d:h(e),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(e,a){l.length!==a&&(r.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,c){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(r.state.nearestCircleToHighlight===d){var h="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c);s=l[a].color,f.push(o.createElement("circle",(0,t.pi)({key:h,id:h,cx:n(e.xVal),cy:i(e.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(o.createElement("g",{key:"".concat(a,"-dots-").concat(r._uniqueIdForGraph),d:h(e),clipPath:"url(#clip)"},e.map((function(e,c){var d="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return s=l[a].color,o.createElement("circle",(0,t.pi)({key:d,id:d,"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),cx:n(e.xVal),cy:i(e.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(o.createElement("line",(0,t.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:r.state.displayOfLine},d)));var m=ai(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var v=(0,so.Ys)(a).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:r._tooltipId,xAxis:v};v&&(0,Ut.$V)(_)}return f},r._getCircleRadius=function(e,t,n){var o=r.state,i=o.isCircleClicked,a=o.nearestCircleToHighlight,s=o.activePoint;return i&&a===e?1:a===e||s===n?t:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(e){return e?e.map((function(e,n){var o,i,a;return a=void 0===e.color?Bo(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):Ro(e.color,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted),(0,t.pi)((0,t.pi)({},e),{color:a})})):[]},r._handleFocus=function(e,t,n){var o=r.props.data.lineChartData[e].data[t],i=o.x,a=o.y,s=o.xAxisCalloutData,l=i instanceof Date?i.toLocaleString():i,c=i instanceof Date?i.getTime():i,u=r._calloutPoints.find((function(e){return e.x===c}));u.values=u.values.filter((function(e){return e.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._getAriaLabel=function(e,t){var n,o=r.props.data.lineChartData[e],i=o.data[t],a=i.x instanceof Date?i.x.toLocaleString():i.x,s=i.xAxisCalloutData||a,l=o.legend,c=i.yAxisCalloutData||i.y;return(null===(n=i.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},r._createSet=(0,ot.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:ii.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},Mt("AREA CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),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,t.ZT)(n,e),n.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props.data,r=n.lineChartData,i=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,Ut.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,t.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 o.createElement(yo,(0,t.pi)({},this.props,{chartTitle:i,points:a,chartType:Ut.$X.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Ut.xl.DateAxis:Ut.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(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),o.createElement("g",null,e._chart))}}))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},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(e){return 0===e.data.length})).length)},n}(o.Component),ci=(0,e.z)(li,(function(e){return{tooltip:(0,t.pi)((0,t.pi)({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),ui=n(908),di=function(e){return{root:{fill:e.color,stroke:ze.UK.white,strokeWidth:2}}},hi=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){fi(e)},t}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e){return fi(e),null},n.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,a=(0,i.y)()(di,{color:n});return o.createElement("path",{d:r(this.props.data),className:a.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},n.defaultProps={arc:$r()},n}(o.Component),pi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.ZT)(n,e),n.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,a=r.centroid(n),s=a[0],l=a[1],c="translate(".concat(s,", ").concat(l,")");return o.createElement("g",{className:"arc"},e.prototype.render.call(this),o.createElement("text",{transform:c,textAnchor:"middle"},n.data.x,"-",(0,Ut.Ts)(n.data.y,i)))},n}(hi);function fi(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var gi,mi=function(e){function n(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return o.createElement(pi,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(t))})},n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,a=t.width,s=t.height,l=t.chartTitle;this.colors=ui.Z().range(r);var c=n(i),u="translate(".concat(a/2,", ").concat(s/2,")");return o.createElement("svg",{width:a,height:s,"aria-label":l},o.createElement("g",{transform:u},c.map((function(t,n){return e.arcGenerator(t,n)}))))},n.defaultProps={pie:Hr().sort(null).value((function(e){return e.y}))},n}(o.Component),vi=(0,i.y)(),_i=function(e){function n(t){var n=e.call(this,t)||this;return n._emptyChartId=f("_PieChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,a=e.chartTitle,s=this.props,l=s.theme,c=s.className,u=s.styles,d=s.culture;this._classNames=vi(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root},this.props.chartTitle&&o.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),o.createElement(mi,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:a}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(o.Component),yi=(0,e.z)(_i,(function(e){var n=e.className,r=e.theme,o=e.width+30,i=e.height+10;return{root:[r.fonts.medium,"ms-PieChart",n,{width:o+40}],chart:[{padding:20,width:o,height:i,boxSizing:"content-box"}],chartTitle:[(0,t.pi)({textAlign:"center"},r.fonts.mediumPlus)]}})),xi=(0,i.y)(),bi=function(e){function n(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},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}return(0,t.ZT)(n,e),n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var e=this.props,n=e.data,r=e.benchmarkData,i=e.targetData,a=e.hideNumberDisplay,s=e.ignoreFixStyle,l=e.culture,c=this.props.theme.palette,u=s||n.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||c.neutralTertiary),i&&(i.color=i.color||c.neutralSecondary);var d=this._createBarsAndLegends(n,u,c,r,i),h=!1===a&&!s&&2===n.chartData.length,p=!1===a&&!s&&1===n.chartData.length,f=n.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;r&&f&&(g=r.data/f*100);var m=0;i&&f&&(m=i.data/f*100);var v=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=xi(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:g,targetColor:i?i.color:"",targetRatio:m,showTriangle:!(!r&&!i)});var y=function(){return(0,Ut.Ts)(n.chartData[0].data?n.chartData[0].data:0,l)};return o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},o.createElement(fn,{direction:Yt.horizontal},o.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&o.createElement(An,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&o.createElement("div",(0,t.pi)({},(0,Ut.ey)(n.chartDataAccessibilityData,"text",!1)),o.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&o.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Ut.Ts)(f,l))),p&&o.createElement("div",(0,t.pi)({className:this._classNames.ratioNumerator},(0,Ut.ey)(n.chartDataAccessibilityData,"text",!1)),y())),(r||i)&&o.createElement("div",{className:this._classNames.benchmarkContainer},r&&o.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&o.createElement("div",{className:this._classNames.target,role:"text"}))),o.createElement(fn,{direction:Yt.horizontal},o.createElement("div",null,o.createElement("svg",{className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},o.createElement("g",null,d[0]),o.createElement(Wt,(0,t.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,Ut.ey)(this.state.callOutAccessibilityData,"text",!1)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement(qt.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&&o.createElement("div",{className:this._classNames.legendContainer},d[1]))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=xi(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(e,n,r,i,a){var s=this,l=[r.blueLight,r.blue,r.blueMid,r.red,r.black],c=[],u=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,g=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),g+=p}));var m=0!==g?g/100:1,v=e.chartData.map((function(e,t){var r=e.color?e.color:l[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,a={title:e.legend,color:r,action:d>0?function(){s._onClick(e.legend)}:void 0,hoverAction:d>0?function(){s._handleChartMouseLeave(),s._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(){s._onLeave()}:void 0};e.placeHolder||c.push(a),t>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1/m:p>99&&100!==p?p=99/m:p/=m,u.push(h);var g=s.props.styles,v=!(!s._legendHighlighted(e.legend)&&!s._noLegendHighlighted());return s._classNames=xi(g,{theme:s.props.theme,shouldHighlight:v,href:s.props.href}),o.createElement("g",{key:t,className:s._classNames.opacityChangeOnHover,ref:function(e){s._refCallback(e,a.title)},"data-is-focusable":!s.props.hideTooltip,onFocus:s._onBarFocus.bind(s,i,r,e),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(e),role:"img",onMouseOver:s._onBarHover.bind(s,i,r,e),onMouseMove:s._onBarHover.bind(s,i,r,e),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):e.onClick},o.createElement("rect",{key:t,id:f("_SBC_bar"),x:u[t]+"%",y:0,width:p+"%",height:n,fill:r}))}));this._addLegend(c,i),this._addLegend(c,a);var _=o.createElement(xr,(0,t.pi)({legends:c,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:r.neutralLight)]:v,_]},n.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},n.prototype._generateEmptyBar=function(e,t){return o.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},o.createElement("rect",{key:0,id:f("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:e,fill:t}))},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onHover=function(e){this.setState({activeLegend:e})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(e,t,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:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},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}(o.Component),Ci=(0,e.z)(bi,(function(e){var n,r,o=e.className,i=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:i||"100%",display:"flex",flexDirection:"column"},o],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:(0,t.pi)((0,t.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",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:ze.TS.medium,fontWeight:ze.lq.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:ze.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[ze.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[ze.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(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(gi||(gi={}));var Ei,Si=(0,i.y)(),Li=function(e){function n(n){var r=e.call(this,n)||this;return r._isRTL=(0,a.zg)(),r._adjustProps=function(){var e=r.props,t=e.theme,n=e.className,o=e.styles,i=e.width,a=e.barHeight;r._classNames=Si(o,{legendColor:r.state.color,theme:t,width:i,className:n,barHeight:a})},r._getLegendData=function(e,n,i){var a=[i.blueLight,i.blue,i.blueMid,i.red,i.black],s=[];return e.forEach((function(e,t){var o=e.chartData.filter((function(e){return!e.placeHolder}));o.length<3?void 0!==n[t]&&n[t]&&o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(e.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}})):o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(e.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}}))})),o.createElement(xr,(0,t.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(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},r._computeLongestBarTotalValue=function(){var e=0;return r.props.data.forEach((function(t){var n=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0);e=Math.max(e,n)})),e},r.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},r._onLeave=r._onLeave.bind(r),r._onBarLeave=r._onBarLeave.bind(r),r._calloutId=f("callout"),r._emptyChartId=f("_MSBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props,r=n.data,i=n.theme,a=n.culture;this._adjustProps();var s=i.palette,l=this._getLegendData(r,this.props.hideRatio,s),c=this.state.isCalloutVisible;this._classNames=Si(this.props.styles,{legendColor:this.state.color,theme:i,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(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,s,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return o.createElement("div",{key:n},r)}));return o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&o.createElement("div",{className:this._classNames.legendContainer},l),o.createElement(Wt,(0,t.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,Ut.ey)(this.state.callOutAccessibilityData,"text",!1)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement(qt.ChartHoverCard,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(e,n,r,i,a,s){var l=this,c=this.props.culture,u=[r.blueLight,r.blue,r.blueMid,r.red,r.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=this.props.variant===gi.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(e.chartData.map((function(e,t){var n=e.data?e.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===gi.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=e.chartData.map((function(e,t){var i=e.color?e.color:e.placeHolder?r.neutralLight:u[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;t>0&&(v+=_),(_=a/p*100?a/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var c=l.props.styles,h=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=Si(c,{theme:l.props.theme,shouldHighlight:h,href:s,variant:l.props.variant,hideLabels:l.props.hideLabels}),o.createElement("g",{key:t,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,i,e),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,a,i,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,a,i,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:s?e.placeHolder?void 0:l._redirectToUrl.bind(l,s):e.onClick},o.createElement("rect",{key:t,x:"".concat(l._isRTL?100-d[t]-_:d[t],"%"),y:0,width:_+"%",height:n,fill:i}))}));this.props.variant===gi.AbsoluteScale?this.props.hideLabels||y.push(o.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_,"%"),y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(h),role:"img"},(0,gn.jH)(h<1e3?".2~":".1",h)(h))):(0===e.chartData.length&&y.push(o.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},o.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))),0===h&&y.push(o.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},o.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))));var x=void 0!==i&&i,b=this.props.variant!==gi.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==gi.AbsoluteScale&&!x&&1===e.chartData.length,E=function(){return(0,Ut.Ts)(e.chartData[0].data?e.chartData[0].data:0,c)};return o.createElement("div",{className:this._classNames.singleChartRoot},o.createElement(fn,{direction:Yt.horizontal},o.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&o.createElement(An,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),b&&o.createElement("div",(0,t.pi)({},(0,Ut.ey)(e.chartDataAccessibilityData,"text",!1)),o.createElement("span",{className:this._classNames.ratioNumerator},E()),!a&&o.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Ut.Ts)(h,c))),C&&o.createElement("div",(0,t.pi)({className:this._classNames.ratioNumerator},(0,Ut.ey)(e.chartDataAccessibilityData,"text",!1)),E()))),o.createElement(fn,{direction:Yt.horizontal},o.createElement("div",{className:this._classNames.chartWrapper},o.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},y))))},n.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},n.prototype._onHover=function(e){this.setState({activeLegend:e})},n.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(e,t,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:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return e.chartData&&0===e.chartData.length})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(o.Component),ki=(0,e.z)(Li,(function(e){var n=e.className,r=e.width,o=e.barHeight,i=e.shouldHighlight,a=e.theme,s=e.href,l=e.variant,c=e.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:r||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},chartTitle:(0,t.pi)((0,t.pi)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===gi.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:r||"100%",display:"flex",flexDirection:"column",marginBottom:l===gi.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:i?"":"0.1",cursor:s?"pointer":"default",stroke:a.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:ze.TS.medium,fontWeight:ze.lq.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:ze.TS.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:i?"":"0.1",cursor:"default",stroke:a.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:ze.TS.small,fontWeight:ze.lq.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==gi.AbsoluteScale||c?0:40}}})),Ai=n(222),Ti=n(232);!function(e){e.show="visibility",e.hide="hidden"}(Ei||(Ei={}));var wi,Di=(0,i.y)(),Mi=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._createLine=function(e,t,n,i,a){var s;void 0===n&&(n=0),void 0===i&&(i=0);var l=r._xAxisType===Ut.xl.NumericAxis,c=r._getScales(n,i,l).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(e,t){var n;e.lineData&&e.lineData.y&&_.push({x:e.x,y:e.lineData.y,useSecondaryYScale:null!==(n=e.lineData.useSecondaryYScale)&&void 0!==n&&n,point:e,index:t})}));var x=fo().x((function(t){return l?e(t.x):c(t.x)+.5*c.bandwidth()})).y((function(e){return e.useSecondaryYScale&&a?a(e.y):t(e.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(o.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(o.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,i){var s;return o.createElement("circle",{key:i,id:f("_VBC_point_"),cx:l?e(n.x):c(n.x)+.5*c.bandwidth(),cy:n.useSecondaryYScale&&a?a(n.y):t(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?Ei.show:Ei.hide,onClick:null===(s=n.point.lineData)||void 0===s?void 0:s.onClick})}));return o.createElement(o.Fragment,null,y,E)},r._checkForLine=function(){return r.props.data.some((function(e){var t;return void 0!==(null===(t=null==e?void 0:e.lineData)||void 0===t?void 0:t.y)}))},r._getMargins=function(e){r.margins=e},r._renderContentForBothLineAndBars=function(e){var n=r._getCalloutContentForLineAndBar(e),i=n.YValueHover,a=n.hoverXValue,s=i.map((function(e,n){return o.createElement(qt.ChartHoverCard,(0,t.pi)({key:n,Legend:e.legend},0===n&&{XValue:"".concat(a||e.data)},{color:e.color,YValue:e.data||e.y,culture:r.props.culture}))}));return o.createElement(o.Fragment,null,s)},r._renderContentForOnlyBars=function(e){var t=r.props.useSingleColor,n=void 0!==t&&t;return o.createElement(o.Fragment,null,o.createElement(qt.ChartHoverCard,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!n&&e.color?e.color:r._createColors()(e.y),culture:r.props.culture}))},r._renderCallout=function(e){return e?r._isHavingLine?r._renderContentForBothLineAndBars(e):r._renderContentForOnlyBars(e):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(e,t,n,o,i){return r._bars=r._xAxisType===Ut.xl.NumericAxis?r._createNumericBars(n,o,i):r._createStringBars(n,o,i)},r._refCallback=function(e,t){r._refArray.push({index:t,refElement:e})},r._getCalloutContentForLineAndBar=function(e){var t,n,o,i,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(t){return t.x===e.x}));return r._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(n=m[0].lineData)||void 0===n?void 0:n.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(i=m[0].lineData)||void 0===i?void 0:i.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}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(e,t,n){var o=r._getCalloutContentForLineAndBar(e),i=o.YValueHover,a=o.hoverXValue;r._refArray.forEach((function(o,s){o.index===e.legend&&t===s&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.y,color:e.color||n,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))},r._getScales=function(e,t,n){if(n){var o=(0,lo.Fp)(r._points,(function(e){return e.x})),i=(0,lo.VV)(r._points,(function(e){return e.x}));return{xBarScale:(0,Ai.Z)().domain(r._isRtl?[o,i]:[i,o]).nice().range([r.margins.left+r._domainMargin,t-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:(0,Ai.Z)().domain([0,r._yMax]).range([0,e-r.margins.bottom-r.margins.top])}}return{xBarScale:(0,Ti.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:(0,Ai.Z)().domain([0,r._yMax]).range([0,e-r.margins.bottom-r.margins.top])}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=r.props,a=i.theme,s=i.useSingleColor,l=r.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(e.forEach((function(e,t){var n=s?r._createColors()(1):e.color,o={title:e.legend,color:n,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(o)})),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 o.createElement(xr,(0,t.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(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n,o,i=e.xAxisCalloutData||e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=r.props.lineLegendText||"Line",c=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(n=e.lineData)||void 0===n?void 0:n.y);return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(i,". ")+(a?"".concat(a,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},r._getDomainMargins=function(e){if(r._xAxisType!==Ut.xl.NumericAxis){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barWidth||16,24),i=(3*r._xAxisLabels.length-2)*o;r._domainMargin=8,n>=i?r._domainMargin+=(n-i)/2:o=n/(3*r._xAxisLabels.length-2),r._barWidth=o}return(0,t.pi)((0,t.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,Ut.SY)(r.props.data[0].x,!0):Ut.xl.StringAxis,r._domainMargin=8,r._emptyChartId=f("_VBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max((0,lo.Fp)(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Di(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,t.pi)((0,t.pi)((0,t.pi)((0,t.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,Ut.ey)(this.state.callOutAccessibilityData)),i={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(yo,(0,t.pi)({},this.props,{points:this._points,chartType:Ut.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:i},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Yt.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Ut.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars),e._isHavingLine&&o.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},n.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._yMax);return(0,Ai.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),o=r.YValueHover,i=r.hoverXValue;this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,dataForHoverCard:e.y,calloutLegend:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,a=void 0!==i&&i,s=this._getScales(e,t,!0),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Di(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var s=Math.max(c(t.y),0);if(s<1)return o.createElement(o.Fragment,{key:t.x}," ");var d=l(t.x),h=e-r.margins.bottom-c(t.y);return o.createElement("g",{key:t.x},o.createElement("rect",{id:f("_VBC_bar_"),x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(d,h,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,so.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,Ut.$V)(p)}return d},n.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t,!1),a=i.xBarScale,s=i.yBarScale,l=this._createColors(),c=this._points.map((function(t,n){var i=Math.max(s(t.y),0);if(i<1)return o.createElement(o.Fragment,{key:t.x}," ");var c=a(t.x),u=e-r.margins.bottom-s(t.y);return o.createElement("g",{key:t.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},o.createElement("rect",{id:f("_VBC_bar_"),x:c,y:u,width:r._barWidth,height:i,"aria-label":r._getAriaLabel(t),role:"img",ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,l(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,l(t.y)),fill:t.color?t.color:l(t.y)}),r._renderBarLabel(c,u,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=(0,so.Ys)(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&(0,Ut.$V)(d)}return c},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._renderBarLabel=function(e,t,n){return this.props.hideLabels||this._barWidth<16?null:o.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,gn.jH)(n<1e3?".2~":".1",n)(n))},n.prototype._isChartEmpty=function(){return 0===this._points.length||(0,lo.Fp)(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine},n}(o.Component),Pi=(0,e.z)(Mi,(function(e){var n=e.shouldHighlight,r=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,t.pi)((0,t.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:ze.TS.small,fontWeight:ze.lq.semibold,fill:r.palette.neutralPrimary}}})),Fi=(0,i.y)();!function(e){e.show="visibility",e.hide="hidden"}(wi||(wi={}));var Ni=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._toFocusWholeStack=function(e){var t=r.props.isCalloutForStack,n=void 0!==t&&t;return e?""===r.state.selectedLegend:n},r._getFormattedLineData=function(e){var n=[],r={};return e.forEach((function(e,r){e.lineData&&e.lineData.forEach((function(o){n.push((0,t.pi)((0,t.pi)({},o),{index:r,xItem:e}))}))})),n.forEach((function(e){r[e.legend]?r[e.legend].push(e):r[e.legend]=[e]})),r},r._getLineLegends=function(e){var t=r._lineObject,n=[];return Object.keys(t).forEach((function(e){n.push({title:e,color:t[e][0].color})})),n},r._createLines=function(e,n,i,a,s){var l,c=r._xAxisType===Ut.xl.NumericAxis,u=r._getScales(i,a,c).xBarScale,d=r._getFormattedLineData(r.props.data),h=[],p=[],f=[],g=r.props.theme,m=(null===(l=r.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0,v=c?0:u.bandwidth()/2;return Object.keys(d).forEach((function(i,a){for(var l=r._legendHighlighted(i)||r._noLegendHighlighted(),f=1;f<d[i].length;f++){var _=c?e(d[i][f-1].xItem.xAxisPoint):u(d[i][f-1].xItem.xAxisPoint),y=d[i][f-1].useSecondaryYScale&&d[i][f].useSecondaryYScale&&s,x=y?s(d[i][f-1].y):n(d[i][f-1].y),b=c?e(d[i][f].xItem.xAxisPoint):u(d[i][f].xItem.xAxisPoint),C=y?s(d[i][f].y):n(d[i][f].y);m>0&&p.push(o.createElement("line",{key:"".concat(a,"-").concat(f,"-BorderLine"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.palette.white,transform:"translate(".concat(v,", 0)")})),h.push(o.createElement("line",(0,t.pi)({key:"".concat(a,"-").concat(f,"-line"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:d[i][f].color,transform:"translate(".concat(v,", 0)")},r.state.selectedLegend===i&&{onMouseOver:r._lineHover.bind(r,d[i][f-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(d).forEach((function(i,a){d[i].forEach((function(l,d){f.push(o.createElement("circle",(0,t.pi)({key:"".concat(a,"-").concat(d,"-dot"),cx:c?e(l.xItem.xAxisPoint):u(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&s?s(l.y):n(l.y),onMouseOver:r.state.selectedLegend===i?r._lineHover.bind(r,l):r._onStackHover.bind(r,l.xItem)},r.state.selectedLegend===i&&{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(v,", 0)")})))}))})),o.createElement(o.Fragment,null,p,h,f)},r._getCircleVisibilityAndRadius=function(e,t){var n=r.state,o=n.selectedLegend,i=n.activeXAxisDataPoint;return""!==o?e===i&&o===t?{visibility:wi.show,radius:8}:o===t?{visibility:wi.show,radius:.3}:{visibility:wi.hide,radius:0}:{visibility:i===e?wi.show:wi.hide,radius:8}},r._getMargins=function(e){r.margins=e},r._getCustomizedCallout=function(){var e=r.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!e?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(e,t){t.persist(),r.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:"".concat(e.xItem.xAxisPoint),yCalloutValue:"".concat(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.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(e,n,i,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(e){return e.lineData&&e.lineData.length>0})),p=r._toFocusWholeStack(h),f=r._points.map((function(a,s){var l=i-r.margins.bottom,u=e((r._xAxisType,Ut.xl.NumericAxis,a.xAxisPoint)),h=r._xAxisType===Ut.xl.NumericAxis?0:(e.bandwidth()-r._barWidth)/2,f=0,g=a.chartData.filter((function(e){return e.data>0}));if(g.length){var m=r._getBarGapAndScale(g,n),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,n){var i=e.color?e.color:r._colors[n],m={},y=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=Fi(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,e),onMouseOver:r._onRectHover.bind(r,a.xAxisPoint,e,i),onMouseMove:r._onRectHover.bind(r,a.xAxisPoint,e,i),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,e,a.xAxisPoint,i,m),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,e),role:"img"},b=_*e.data;return b<d&&(b=d),l=l-b-(n?v:0),f+=e.data,c&&b>c&&n===g.length-1?o.createElement("path",(0,t.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:i,ref:function(e){return m.refElement=e},transform:"translate(".concat(h,", 0)")},x)):b<1?o.createElement(o.Fragment,{key:n+s}," "):o.createElement("rect",(0,t.pi)({key:n+s,className:r._classNames.opacityChangeOnHover,x:u,y:l,width:r._barWidth,height:b,fill:i,ref:function(e){return m.refElement=e}},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"};return o.createElement("g",{key:s+"".concat(p)},o.createElement("g",(0,t.pi)({id:"".concat(s,"-singleBar"),ref:function(e){return x.refElement=e}},b),y),!r.props.hideLabels&&r._barWidth>=16&&o.createElement("text",{x:u+r._barWidth/2,y:l-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-label":"Total: ".concat(f),role:"img",transform:"translate(".concat(h,", 0)")},(0,gn.jH)(f<1e3?".2~":".1",f)(f)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var g=(0,so.Ys)(a).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var m={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:g};g&&(0,Ut.$V)(m)}return f.filter((function(e){return!!e}))},r._getScales=function(e,t,n){var o=r._yMax,i=(0,Ai.Z)().domain([0,o]).range([0,e-r.margins.bottom-r.margins.top]);if(n){var a=(0,lo.Fp)(r._dataset,(function(e){return e.x})),s=(0,lo.VV)(r._dataset,(function(e){return e.x}));return{xBarScale:(0,Ai.Z)().domain(r._isRtl?[a,s]:[s,a]).nice().range([r.margins.left+r._domainMargin,t-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:i}}return{xBarScale:(0,Ti.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:i}},r._createNumericBars=function(e,t,n){var o=r._getScales(e,t,!0),i=o.xBarScale,a=o.yBarScale;return r._createBar(i,a,e,n)},r._createStringBars=function(e,t,n){var o=r._getScales(e,t,!1),i=o.xBarScale,a=o.yBarScale;return r._createBar(i,a,e,n)},r._getGraphData=function(e,t,n,o,i){return r._bars=r._xAxisType===Ut.xl.NumericAxis?r._createNumericBars(n,o,i):r._createStringBars(n,o,i)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e,t){var n,r,o;if(!t){var i=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data;return"".concat(t,", ").concat(n,".")})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data||e.y;return"".concat(t,", ").concat(n,".")})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(i,". ").concat(a)+(s?" ".concat(s):"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,c=t.legend,u=t.yAxisCalloutData||t.data;return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},r._getDomainMargins=function(e){if(r._xAxisType!==Ut.xl.NumericAxis){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barWidth||16,24),i=(3*r._xAxisLabels.length-2)*o;r._domainMargin=8,n>=i?r._domainMargin+=(n-i)/2:o=n/(3*r._xAxisLabels.length-2),r._barWidth=o}return(0,t.pi)((0,t.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:""},Mt("VERTICAL STACKED BAR CHART",n,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),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,ot.NF)((function(e){return r._getLineLegends(e)})),r._domainMargin=8,r._emptyChartId=f("_VSBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),r=this._toFocusWholeStack(n),i=this.props.isCalloutForStack,a=void 0!==i&&i;this._dataset=this._createDataSetLayer();var s=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Fi(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=(0,t.pi)((0,t.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,Ut.ey)(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return o.createElement(yo,(0,t.pi)({},this.props,{points:this._dataset,chartType:Ut.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:s,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:a||n?Yt.horizontal:Yt.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Ut.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars),o.createElement("g",null,n&&e._createLines(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))}return o.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 e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=(0,Ut.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},n.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},n.prototype._renderCallout=function(e){return e?o.createElement(qt.ChartHoverCard,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getLegendData=function(e,n,r){var i=this;if(this.props.hideLegend)return o.createElement(o.Fragment,null);var a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){i._onLegendClick(e.legend)},hoverAction:c?function(){i._handleChartMouseLeave(),i._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(){return i._onLegendLeave()}:void 0};s.push(n)}}))}));var u=[];r&&r.length>0&&r.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){i._onLegendClick(e.title)},hoverAction:c?function(){i._handleChartMouseLeave(),i._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(){return i._onLegendLeave()}:void 0};u.push(t)}));var d=u.concat(s);return o.createElement(xr,(0,t.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(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},n.prototype._onRectFocusHover=function(e,t,n,r){this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},n.prototype._onStackHoverFocus=function(e,n){var r=e.lineData,o=void 0!==r&&r.length>0;o&&r.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:!0,YValueHover:o?(0,t.ev)((0,t.ev)([],r.sort((function(e,t){return e.data<t.data?1:-1})),!0),e.chartData.slice().reverse(),!0):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},n.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},n.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,o=void 0===r?0:r,i=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(i),s=o&&e.length-1,l=s&&Math.max(1,Math.min(o,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/i}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return 0===e.chartData.length})).length)},n}(o.Component),Vi=(0,e.z)(Ni,(function(e){var n=e.shouldHighlight,r=e.href,o=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:r?"pointer":"default"},tooltip:(0,t.pi)((0,t.pi)({},o.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:o.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:ze.TS.small,fontWeight:ze.lq.semibold,fill:o.palette.neutralPrimary}}})),Ii=(0,i.y)(),Hi=.1/.9,Oi=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getGraphData=function(e,t,n,o,i){var a=r._createX0Scale(o),s=r._createX1Scale(a),l=[];r._datasetForBars.forEach((function(e){l.push(r._buildGraph(e,a,s,n,i))})),r._groupedVerticalBarGraph=l},r._getMargins=function(e){return r.margins=e},r._createDataSetOfGVBC=function(e){var t=[],n=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var o=r._createDataset(e);return{keys:t,xAxisLabels:n,datasetForBars:o}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(e){return r._legendHighlighted(e)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(e,t,n){n.persist(),r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r.setState({refSelected:n,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:r.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(e,t,n){r._refArray.forEach((function(o,i){o.index===e.legend&&n===i&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:r.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},r._redirectToUrl=function(e){e&&(window.location.href=e)},r._buildGraph=function(e,t,n,i,a){var s=[],l=[],c=(0,Ai.Z)().domain([0,r._yMax]).range([0,i-r.margins.bottom-r.margins.top]),u=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(u.forEach((function(t,a){var d=e.indexNum*u.length+a,h=e[t],p=n(t),f=Math.max(i-r.margins.bottom-c(h.data),0);h.data&&s.push(o.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(e.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(e){r._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,e),onMouseMove:r._onBarHover.bind(r,h,e),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,e,d),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&l.push(o.createElement("text",{x:p+r._barWidth/2,y:f-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,gn.jH)(h.data<1e3?".2~":".1",h.data)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var d=(0,so.Ys)(a).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:d};d&&(0,Ut.$V)(h)}return o.createElement("g",{key:e.indexNum,transform:"translate(".concat(t(e.xAxisPoint),", 0)")},s,l)},r._createDataset=function(e){var n=[],o=[];return e.forEach((function(e,r){var i={},a={},s=[];e.series.forEach((function(e){i[e.key]=e.data,a[e.key]=(0,t.pi)({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,n.push(a),o.push(i)})),r._dataset=o,n},r._createX0Scale=function(e){return(0,Ti.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/(2+r._keys.length+(r._keys.length-1)*Hi))},r._createX1Scale=function(e){var t=e.bandwidth();return(0,Ti.Z)().domain(r._keys).range(r._isRtl?[t,0]:[0,t]).paddingInner(.1)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=e,a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[];return i.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};s.push(n)}}))})),o.createElement(xr,(0,t.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,o=e.legend,i=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(i,".")},r._getDomainMargins=function(e){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barwidth||16,24),i=r._keys.length*o+(r._keys.length-1)*Hi*o,a=r._xAxisLabels.length*i+2*(r._xAxisLabels.length-1)*o;return r._domainMargin=8,n>=a?r._domainMargin+=(n-a)/2:o=(i=n/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*Hi))))/(r._keys.length+(r._keys.length-1)*Hi),r._barWidth=o,(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,ot.NF)((function(e){return r._createDataSetOfGVBC(e)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},Mt("GROUPED VERTICAL BAR CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),r._refArray=[],r._calloutId=f("callout"),r._tooltipId=f("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=f("_GVBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this.props.data,r=this._createSet(n),i=r.keys,a=r.xAxisLabels,s=r.datasetForBars;this._keys=i,this._xAxisLabels=a,this._datasetForBars=s,this._xAxisType=(0,Ut.SY)(n[0].name,!0);var l=this._getLegendData(n,this.props.theme.palette),c=(0,lo.Fp)(this._dataset,(function(t){return(0,lo.Fp)(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=Ii(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=(0,t.pi)((0,t.pi)((0,t.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,Ut.ey)(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(yo,(0,t.pi)({},this.props,{points:this._datasetForBars,chartType:Ut.$X.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Yt.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)*Hi),xAxisOuterPadding:0,children:function(){return o.createElement("g",null,e._groupedVerticalBarGraph)}}))},n.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},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(e){return e.series.length})).length>0)},n}(o.Component),Bi=(0,e.z)(Oi,(function(e){var n=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:(0,t.pi)((0,t.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:ze.TS.small,fontWeight:ze.lq.semibold,fill:n.palette.neutralPrimary}}})),Ri=n(286),zi=n(932),Wi=(0,i.y)(),Yi=function(e){function n(n){var r=e.call(this,n)||this;r._rectRefArray={},r._getXandY=function(){var e="",t="";return r.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},r._getOpacity=function(e){return r._legendHighlighted(e)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(e,t,n){r._rectRefArray[t]={data:n,refElement:e}},r._onRectFocus=function(e,t){r.setState({target:r._rectRefArray[e].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:r._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},r._onRectMouseOver=function(e,t,n){n.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({target:r._rectRefArray[e].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:r._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var e=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(t,n){r._dataSet[t].forEach((function(t,i){var a="".concat(n).concat(i),s=o.createElement("g",{key:a,role:"img","aria-label":r._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:r._getOpacity(t.legend),transform:"translate(".concat(r._xAxisScale(t.x),", ").concat(r._yAxisScale(t.y),")"),ref:function(e){r._rectRefCallback(e,a,t)},onFocus:r._onRectFocus.bind(r,a,t),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,a,t),onMouseOut:r._onRectBlurOrMouseOut},o.createElement("rect",{fill:r._colorScale(t.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:t.onClick}),o.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,Ut.Ts)(t.rectText,r.props.culture)));e.push(s)}))})),e},r._onLegendHover=function(e){r.setState({activeLegend:e})},r._onLegendLeave=function(){r.setState({activeLegend:""})},r._onLegendClick=function(e){r.state.selectedLegend===e?r.setState({selectedLegend:""}):r.setState({selectedLegend:e})},r._createLegendBars=function(){var e=r.props,n=e.data,i=e.legendProps,a=[];return n.forEach((function(e){var t={title:e.legend,color:r._colorScale(e.value),action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(t)})),o.createElement(xr,(0,t.pi)({},i,{legends:a}))},r._getColorScale=function(){var e=r.props,t=e.domainValuesForColorScale,n=e.rangeValuesForColorScale;return(0,Ai.Z)().domain(t).range(n)},r._getXIndex=function(e){return r._xAxisType===Ut.xl.DateAxis?"".concat(e.getTime()):r._xAxisType===Ut.xl.StringAxis?e:r._xAxisType===Ut.xl.NumericAxis?"".concat(e):""},r._getYIndex=function(e){return r._yAxisType===Ut.OH.DateAxis?"".concat(e.getTime()):r._yAxisType===Ut.OH.StringAxis?e:r._yAxisType===Ut.OH.NumericAxis?"".concat(e):""},r._createNewDataSet=function(e,n,o,i,a){var s=[];e.forEach((function(e){e.data.forEach((function(n){s.push((0,t.pi)((0,t.pi)({},n),{legend:e.legend}))}))}));var l={},c={},u={};return s.forEach((function(e){var n=r._getXIndex(e.x),o=r._getYIndex(e.y);u[n]="1",c[o]="1",l[o]?l[o]=(0,t.ev)((0,t.ev)([],l[o],!0),[e],!1):l[o]=[e]})),Object.keys(l).forEach((function(e){l[e].sort((function(e,t){return r._xAxisType===Ut.xl.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:r._xAxisType===Ut.xl.DateAxis?e.x.getTime()-t.x.getTime():r._xAxisType===Ut.xl.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){r._xAxisType===Ut.xl.DateAxis&&(e.x=r._getStringFormattedDate(e.x,n)),r._xAxisType===Ut.xl.NumericAxis&&(e.x=r._getStringFormattedNumber(e.x,o)),r._xAxisType===Ut.xl.StringAxis&&(e.x=r._getFormattedLabelForXAxisDataPoint(e.x)),r._yAxisType===Ut.OH.DateAxis&&(e.y=r._getStringFormattedDate(e.y,i)),r._yAxisType===Ut.OH.NumericAxis&&(e.y=r._getStringFormattedNumber(e.y,a)),r._yAxisType===Ut.OH.StringAxis&&(e.y=r._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(l).forEach((function(e){r._yAxisType===Ut.OH.DateAxis?l[r._getStringFormattedDate(e,i)]=l[e]:r._yAxisType===Ut.OH.NumericAxis?l["".concat(r._getStringFormattedNumber(e,a))]=l[e]:l[r._getFormattedLabelForYAxisDataPoint(e)]=l[e]})),{dataSet:l,yAxisPoints:r._getYAxisDataPoints(c),xAxisPoints:r._getXAxisDataPoints(u)}},r._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return r._xAxisType===Ut.xl.DateAxis||r._xAxisType===Ut.xl.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return r._xAxisType===Ut.xl.DateAxis?r._getStringFormattedDate(e,r.props.xAxisDateFormatString):r._xAxisType===Ut.xl.NumericAxis?r._getStringFormattedNumber(e,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(e)}))},r._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return r._yAxisType===Ut.OH.DateAxis||r._yAxisType===Ut.OH.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return r._yAxisType===Ut.OH.DateAxis?r._getStringFormattedDate(e,r.props.yAxisDateFormatString):r._yAxisType===Ut.OH.NumericAxis?r._getStringFormattedNumber(e,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(e)}))},r._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),zi.i$(t||"%b/%d")(n)},r._getStringFormattedNumber=function(e,t){return(0,gn.WU)(t||".2~s")(+e)},r._getFormattedLabelForXAxisDataPoint=function(e){var t=r.props.xAxisStringFormatter;return t?t(e):e},r._getFormattedLabelForYAxisDataPoint=function(e){var t=r.props.yAxisStringFormatter;return t?t(e):e},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n=e.x,r=e.y,o=e.legend,i=e.ratio?"".concat(e.ratio[0],"/").concat(e.ratio[1]):e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(i,".")+(a?" ".concat(a,"."):"")};var i=r._getXandY(),a=i.x,s=i.y;return r._xAxisType=(0,Ut.SY)(a,!0),r._yAxisType=(0,Ut.SY)(s,!1),r._createSet=(0,ot.NF)((function(e,t,n,o,i){return r._createNewDataSet(e,t,n,o,i)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=f("_HeatMap_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this.props,r=n.data,i=n.xAxisDateFormatString,a=n.xAxisNumberFormatString,s=n.yAxisDateFormatString,l=n.yAxisNumberFormatString;this._colorScale=this._getColorScale();var c=this._createSet(r,i,a,s,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=Wi(this.props.styles,{theme:this.props.theme});var p=(0,t.pi)((0,t.pi)((0,t.pi)((0,t.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,Ut.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=(0,t.pi)((0,t.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(yo,(0,t.pi)({},this.props,{points:r,chartType:Ut.$X.HeatMapChart,xAxisType:Ut.xl.StringAxis,yAxisType:Ut.OH.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Yt.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(o.Component),Ui=(0,e.z)(Yi,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:ze.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function qi(e,t){return t-1-e.height}function Xi(e,t){return e.sourceLinks.length?e.depth:t-1}function Zi(e){return function(){return e}}function ji(e,t){return Ki(e.source,t.source)||e.index-t.index}function Gi(e,t){return Ki(e.target,t.target)||e.index-t.index}function Ki(e,t){return e.y0-t.y0}function $i(e){return e.value}function Ji(e){return e.index}function Qi(e){return e.nodes}function ea(e){return e.links}function ta(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function na({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}class ra{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function oa(e){return new ra(e,!0)}var ia=(0,i.y)(),aa="#757575",sa=[{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"}],la="#323130",ca="#FFFFFF",ua=function(e){function n(t){var n=e.call(this,t)||this;return n._isRtl=(0,a.zg)(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(e.index),e.borderColor):e.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,ot.NF)((function(e){return n._normalizeSankeyData(e)})),n._emptyChartId=f("_SankeyChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props,r=n.theme,i=n.className,a=n.styles,s=n.pathColor;this._classNames=ia(a,{theme:r,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:s,className:i});var l,c=this._preRenderLayout(),u=c.height,d=c.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,u-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),g={isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return o.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},o.createElement(fn,{direction:Yt.bidirectional,isCircularNavigation:!0,handleTabKey:1},o.createElement("svg",{width:d,height:u,id:f("sankeyChart")},o.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),o.createElement("g",{className:this._classNames.nodes},h),g.isCalloutVisible&&o.createElement(Wt,(0,t.pi)({},g),o.createElement(qt.ChartHoverCard,{XValue:g.XValue,YValue:g.YValue,color:g.color,descriptionMessage:g.descriptionMessage?g.descriptionMessage:""})))))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._preRenderLayout=function(){var e=this.state.containerWidth-this._margins.right,t=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let e,t,n,r=0,o=0,i=1,a=1,s=24,l=8,c=Ji,u=Xi,d=Qi,h=ea,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[c(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:o}=n;"object"!=typeof t&&(t=n.source=ta(r,t)),"object"!=typeof o&&(o=n.target=ta(r,o)),t.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max((0,lo.Sm)(t.sourceLinks,$i),(0,lo.Sm)(t.targetLinks,$i)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.depth=o;for(const{target:t}of e.sourceLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.height=o;for(const{source:t}of e.targetLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:e}){const n=(0,lo.Fp)(e,(e=>e.depth))+1,o=(i-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=r+e*o,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const e of a)e.sort(t);return a}(n);e=Math.min(l,(a-o)/((0,lo.Fp)(c,(e=>e.length))-1)),function(t){const n=(0,lo.VV)(t,(t=>(a-o-(t.length-1)*e)/(0,lo.Sm)(t,$i)));for(const r of t){let t=o;for(const o of r){o.y0=t,o.y1=t+o.value*n,t=o.y1+e;for(const e of o.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}b(r)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),na(f),f}function g(e,n,r){for(let o=1,i=e.length;o<i;++o){const i=e[o];for(const e of i){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let i=o*(e.layer-n.layer);t+=C(n,e)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&i.sort(Ki),v(i,r)}}function m(e,n,r){for(let o=e.length-2;o>=0;--o){const i=e[o];for(const e of i){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let i=o*(n.layer-e.layer);t+=E(e,n)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&i.sort(Ki),v(i,r)}}function v(t,n){const r=t.length>>1,i=t[r];y(t,i.y0-e,r-1,n),_(t,i.y1+e,r+1,n),y(t,a,t.length-1,n),_(t,o,0,n)}function _(t,n,r,o){for(;r<t.length;++r){const i=t[r],a=(n-i.y0)*o;a>1e-6&&(i.y0+=a,i.y1+=a),n=i.y1+e}}function y(t,n,r,o){for(;r>=0;--r){const i=t[r],a=(i.y1-n)*o;a>1e-6&&(i.y0-=a,i.y1-=a),n=i.y0-e}}function x({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(Gi);for(const{target:{targetLinks:t}}of e)t.sort(ji)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(Gi),n.sort(ji)}function C(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:i}of t.sourceLinks){if(o===n)break;r+=i+e}for(const{source:e,width:o}of n.targetLinks){if(e===t)break;r-=o}return r}function E(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:o,width:i}of n.targetLinks){if(o===t)break;r+=i+e}for(const{target:e,width:o}of t.sourceLinks){if(e===n)break;r-=o}return r}return f.update=function(e){return na(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:Zi(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:Zi(e),f):u},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:Zi(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:Zi(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=o=0,i=+e[0],a=+e[1],f):[i-r,a-o]},f.extent=function(e){return arguments.length?(r=+e[0][0],i=+e[1][0],o=+e[0][1],a=+e[1][1],f):[[r,o],[i,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[e-1,t-6]]).nodeAlign(this._isRtl?qi:Xi),{height:t,width:e}},n.prototype._populateNodeActualValue=function(e){e.links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max((0,lo.Sm)(e.sourceLinks,(function(e){return e.unnormalizedValue})),(0,lo.Sm)(e.targetLinks,(function(e){return e.unnormalizedValue})))}))},n.prototype._normalizeSankeyData=function(e){this._nodesInColumn=this._populateNodeInColumns(e,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},n.prototype._populateNodeInColumns=function(e,t){t(e);var n={};return e.nodes.forEach((function(e){var t=e.layer;n[t]?n[t].push(e):n[t]=[e]})),n},n.prototype._adjustOnePercentHeightNodes=function(e){var t=this;Object.values(e).map((function(e){return(0,lo.Sm)(e,(function(e){return e.value}))})).forEach((function(n,r){var o=0;e[r].forEach((function(e){var t=e.value/n*100;e.actualValue=e.value,t<1?(e.value=.01*n,o+=1):o+=t}));var i=0!==o?o/100:1;i>1&&e[r].forEach((function(e){e.value=e.value/i,t._changeColumnValue(e,e.actualValue,e.value)}))}))},n.prototype._changeColumnValue=function(e,t,n){e.sourceLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r})),e.targetLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r}))},n.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-(0,lo.Sm)(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},n.prototype._createLinks=function(){var e=this,t=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var i,a=[{x:(i=n).source.x1,y0:i.y0+i.width/2,y1:i.y0-i.width/2},{x:i.target.x0,y0:i.y1+i.width/2,y1:i.y1-i.width/2}],s=$o().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(oa),l="url(#gradient-".concat(e._linkId,"-").concat(r,")"),c=o.createElement("g",{key:"".concat(e._linkId,"-").concat(r)},o.createElement("defs",null,o.createElement("linearGradient",{id:"gradient-".concat(e._linkId,"-").concat(r),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},o.createElement("stop",{offset:"0",stopColor:n.source.color}),o.createElement("stop",{offset:"100%",stopColor:n.target.color}))),o.createElement("path",{d:s(a),id:f("link"),fill:e._fillStreamColors(n,l),stroke:e._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:e._getOpacityStreamBorder(n),onMouseOver:e._onStreamHover.bind(e,n),onMouseOut:function(){e._onStreamLeave(n)},onFocus:e._onFocusLink.bind(e,n),onBlur:e._onBlur,fillOpacity:e._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));t.push(c)})),t},n.prototype._createNodes=function(e){var t=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(e,r){var i=e.y1-e.y0>0?e.y1-e.y0:0,a=8,s=0;if(i<36){a+=6;var l=(0,so.Ys)(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(e.actualValue),null!==l.node()&&(a+=s=l.node().getComputedTextLength()),l.text(null),(0,so.td)(".tempText").remove()}var c=t._truncateText(e.name,116,a),u="..."===c.slice(-3),d=f("tooltip"),h=(0,so.Ys)("body").append("div").attr("id",d).attr("class",t._classNames.toolTip).style("opacity",0),p=f("nodeBar"),g=o.createElement("g",{key:r,id:f("nodeGElement")},o.createElement("rect",{x:e.x0,y:e.y0,height:i,width:e.x1-e.x0,fill:t._fillNodeColors(e),id:p,onMouseOver:t._onHover.bind(t,e),onMouseOut:function(){t._onLeave(e)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(e),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(e.name)+"with weight"+"".concat(e.actualValue),role:"img"}),e.y1-e.y0>24&&o.createElement("g",{className:t._classNames.nodeTextContainer},o.createElement("g",{className:"nodeName"},o.createElement("text",{id:"".concat(p,"-name"),x:e.x0,y:e.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?ca:la,fontSize:10,onMouseOver:t._showTooltip.bind(t,e.name,u,h),onMouseOut:t._hideTooltip.bind(t,h)},c)),o.createElement("text",{x:i>36?e.x0:e.x1-s-8,y:e.y0,dy:i>36?"2em":"1em",dx:i>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?ca:la,fontSize:14},e.actualValue)));n.push(g)})),n},n.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(e),r=this._getSelectedNodes(n);r.push(e),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(n).map((function(e){return e.index}))),selectedNode:e,refSelected:t,isCalloutVisible:e.y1-e.y0<24,color:e.color,xCalloutValue:e.name,yCalloutValue:e.actualValue})}},n.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(e),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(r).map((function(e){return e.index}))),refSelected:t,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.unnormalizedValue.toString(),descriptionMessage:"from "+e.source.name})}},n.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(e,t){t.persist(),this._onCloseCallout(),this.setState({refSelected:t.currentTarget,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.source.actualValue,descriptionMessage:"from "+e.source.name})},n.prototype._assignNodeColors=function(){var e,t;this.props.colorsForNodes&&this.props.borderColorsForNodes?(e=this.props.colorsForNodes,t=this.props.borderColorsForNodes):(e=sa.map((function(e){return e.fillColor})),t=sa.map((function(e){return e.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=e[n],r.borderColor=t[n]),n=(n+1)%e.length}))},n.prototype._fillStreamColors=function(e,t){return this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:void 0},n.prototype._fillStreamBorder=function(e,t){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:aa:aa},n.prototype._getSelectedNodes=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t},n.prototype._getSelectedLinks=function(e){var t=new Array,n=new Set;for(e.sourceLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;)(r=t.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(e){n.add(e),t.push(e)}));for(e.targetLinks&&e.targetLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;){var r;(r=t.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(e){n.add(e),t.push(e)}))}return n},n.prototype._getSelectedLinksforStreamHover=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var o=t.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)o=t.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}},n.prototype._getOpacityStream=function(e){if(this.state.selectedState){if(!this.state.selectedLinks.has(e.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(e.index)&&!this.state.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(e){return!this.state.selectedState||this.state.selectedLinks.has(e.index)||this.state.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,o=t&&t.getBoundingClientRect().width,i=t&&t.getBoundingClientRect().height;(n!==o||r!==i)&&e.setState({containerWidth:o,containerHeight:i})}))},n.prototype._truncateText=function(e,t,n){var r=t-n,o=0,i=(0,so.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(i.text(e),null!==i.node()&&i.node().getComputedTextLength()<=r)return e;i.text(null),i.text("..."),null!==i.node()&&(o=i.node().getComputedTextLength()),i.text(null);for(var a="",s=0;s<e.length;s++)if(a+=e[s],i.text(a),null!==i.node()&&i.node().getComputedTextLength()>=r-o){a=a.slice(0,-1),a+="...";break}return i.text(null),(0,so.td)(".tempText").remove(),a},n.prototype._showTooltip=function(e,t,n,r){t&&(n.style("opacity",.9),n.html(e).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},n.prototype._hideTooltip=function(e){e.style("opacity",0)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.SankeyChartData&&this.props.data.SankeyChartData.nodes.length>0&&this.props.data.SankeyChartData.links.length>0)},n}(o.Component),da=(0,e.z)(ua,(function(e){var n,r,o,i=e.className,a=e.theme,s=e.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},i],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[ze.$v]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(r={},r[ze.$v]={fill:"#000000"},r)},toolTip:(0,t.pi)((0,t.pi)({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(o={},o[ze.$v]={fill:"rgb(179, 179, 179)"},o)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function ha(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function pa(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ga)):void 0===t&&(t=fa);for(var n,r,o,i,a,s=new _a(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new _a(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(va)}function fa(e){return e.children}function ga(e){return Array.isArray(e)?e[1]:null}function ma(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function va(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _a(e){this.data=e,this.depth=this.height=0,this.parent=null}function ya(e,t){return e.parent===t.parent?1:2}function xa(e){var t=e.children;return t?t[0]:e.t}function ba(e){var t=e.children;return t?t[t.length-1]:e.t}function Ca(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Ea(e,t,n){return e.a.parent===t.parent?e.a:n}function Sa(e,t){this._=e,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=t}_a.prototype=pa.prototype={constructor:_a,count:function(){return this.eachAfter(ha)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return pa(this).eachBefore(ma)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Sa.prototype=Object.create(_a.prototype);var La,ka,Aa=(0,i.y)(),Ta=function(e){function n(t,n,r,o,i,a){void 0===o&&(o=[]),void 0===i&&(i=[]);var s=e.call(this,t,r,o,i)||this;return s.composition=n,s._treeTraversal=a,s}return(0,t.ZT)(n,e),n.prototype.createTree=function(e,t){var n,r,o,i,a,s,l=(e=e<65?65:e>90?90:e)||75,c=pa(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=ya,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,i,a=new Sa(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Sa(r[o],o)),n.parent=t;return(a.parent=new Sa(null,0)).children=[a],a}(o);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(a),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,l=i.parent.children[0],c=i.m,u=a.m,d=s.m,h=l.m;s=ba(s),i=xa(i),s&&i;)l=xa(l),(a=ba(a)).a=t,(o=s.z+d-i.z-c+e(s._,i._))>0&&(Ca(Ea(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=i.m,h+=l.m,u+=a.m;s&&!ba(a)&&(a.t=s,a.m+=d-u),i&&!xa(l)&&(l.t=i,l.m+=c-h,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var d=[],h=0,p=function(e){var t,n;e.id=h,d.push({id:h,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(e){p(e)})):c.eachBefore((function(e){p(e)}));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,L=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,k=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,A=null===(i=d[x.parentID])||void 0===i?void 0:i.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?A:L:k,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,A,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?L:k,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,A,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,lo.VV)(S,(function(e){return e.x})),P=(0,lo.Fp)(S,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},n}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var o,i=e.split(/\s+/).reverse(),a="",s=(0,so.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=i.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),(0,so.td)(".tempText").remove(),o},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,a,s,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(e,"\nsubText ").concat(t," ").concat(d),p=i-l/2;!r&&0===u&&n||this._nodeElements.push(o.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)})),t&&(t=this.truncateText(t,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)),e=this.truncateText(e,l,l/4,this.styleClassNames.rectText);var f=r?o.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?o.createElement(o.Fragment,null,o.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),o.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):o.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(o.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)},e,f)):this._nodeElements.push(o.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e))},e.prototype.createPathLink=function(e,t,n,r,o,i,a,s,l){var c="M".concat(n-i/2,",").concat(r-s," H").concat(l+i/2," M").concat(e,",").concat(r-s,"\n V").concat(t+a+s/2),u="M".concat(e,",").concat(t+a+s/2," V").concat(t+5*s,"\n H").concat(e-i/2," H").concat(e+i/2);return o?u:c},e.prototype.addLinktoSVG=function(e,t,n,r,i,a,s,l,c,u){void 0===u&&(u=0),this._linkElements.push(o.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,a,s,l,c,u),key:"".concat(e).concat(this.styleClassNames.link)}))},e}()),wa=function(e){function n(t){var n,r=this;return(r=e.call(this,t)||this)._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Aa(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=(0,so.td)("text"),n=(0,so.td)("rect"),r=(0,so.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},n.prototype.createTreeChart=function(){var e=[],t=[],n=new Ta(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},n.prototype.render=function(){var e;return o.createElement(fn,null,o.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},o.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},o.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),o.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},n}(o.Component),Da=(0,e.z)(wa,(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:(0,t.pi)({fill:"black"},e.theme.fonts.large),rectSubText:(0,t.pi)({fill:"#484644"},e.theme.fonts.medium),rectBodyText:(0,t.pi)({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:(0,t.pi)({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(La||(La={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(ka||(ka={}));var Ma,Pa=(0,i.y)(),Fa=function(e){function n(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},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,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this;if(!this._isChartEmpty()){var t=$o().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(uo);this.area=t;var n=fo().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(uo);this.line=n;var r=this.props.data.lineChartData[0].data,o=(0,lo.We)(r,(function(e){return e.x})),i=o[0],a=o[1];this.x=(0,Ai.Z)().domain([i,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,Ai.Z)().domain([0,(0,lo.Fp)(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},n.prototype.drawSparkline=function(){return o.createElement(o.Fragment,null,o.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),o.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},n.prototype.render=function(){var e=Pa(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(fn,{direction:Yt.horizontal,isCircularNavigation:!0,className:e.inlineBlock},o.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?o.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):o.createElement(o.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?o.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},o.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):o.createElement(o.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(e){return 0===e.data.length})).length)},n}(o.Component),Na=(0,e.z)(Fa,(function(e){return{inlineBlock:{display:"inline"},valueText:(0,t.pi)((0,t.pi)({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),Va=(0,i.y)(),Ia=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getMargins=function(e){r.margins=e},r._renderContentForOnlyBars=function(e){var t,n,i,a=r.props.useSingleColor,s=void 0!==a&&a,l=0;return r.props.data.forEach((function(t,n){t.y===e.y&&(l=n)})),i=s?r.props.colors?r._createColors()(1):Bo(1,0,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted):e.color?e.color:r.props.colors?r._createColors()(e.x):Bo(l,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),o.createElement(o.Fragment,null,o.createElement(qt.ChartHoverCard,{XValue:e.xAxisCalloutData||e.x.toString(),Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:i,culture:r.props.culture}))},r._renderCallout=function(e){return e?r._renderContentForOnlyBars(e):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(e,t,n,o,i,a){return r._bars=r._yAxisType===Ut.OH.NumericAxis?r._createNumericBars(n,o,i,a):r._createStringBars(n,o,i,a)},r._refCallback=function(e,t){r._refArray.push({index:t,refElement:e})},r._getCalloutContentForBar=function(e){var t,n,o,i=[],a=r.props.useSingleColor,s=void 0!==a&&a,l=r.props.data,c=l.filter((function(t){return t.y===e.y})),u=0;return l.forEach((function(t,n){t.y===e.y&&(u=n)})),o=s?r.props.colors?r._createColors()(1):Bo(1,0,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted):c[0].color?c[0].color:r.props.colors?r._createColors()(c[0].x):Bo(u,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),i.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:e.yAxisCalloutData||e.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(e,t,n){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===e.legend){var o=r._getCalloutContentForBar(e),i=o.YValueHover,a=o.hoverXValue;r._refArray.forEach((function(o,s){t===s&&r.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.x,color:r.props.useSingleColor?n:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},r._getScales=function(e,t,n){if(n){var o=(0,lo.Fp)(r._points,(function(e){return e.x})),i=(0,lo.Fp)(r._points,(function(e){return e.y}));return{xBarScale:(0,Ai.Z)().domain(r._isRtl?[o,0]:[0,o]).nice().range([r.margins.left,t-r.margins.right]),yBarScale:a=(0,Ai.Z)().domain([0,i]).range([e-r.margins.bottom,r.margins.top])}}o=(0,lo.Fp)(r._points,(function(e){return e.x}));var a=(0,Ti.Z)().domain(r._yAxisLabels).range([e-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,Ai.Z)().domain(r._isRtl?[o,0]:[0,o]).nice().range([r.margins.left,t-r.margins.right]),yBarScale:a}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=r.props.useSingleColor,a=[];return e.forEach((function(e,t){var n,o=i?r.props.colors?r._createColors()(1):Bo(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):e.color,s={title:e.legend,color:o,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._onLegendHover(e.legend)},onMouseOutAction:function(e){r._onLegendLeave(e)}};a.push(s)})),o.createElement(xr,(0,t.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(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._xMax=Math.max(t[t.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.x,r=e.yAxisCalloutData||e.y;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.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,Ut.SY)(r.props.data[0].x,!0):Ut.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,Ut.SY)(r.props.data[0].y,!1):Ut.OH.StringAxis,r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;this._adjustProps();var n=(0,t.ev)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(e){return e.y})),this._xMax=Math.max((0,lo.Fp)(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Va(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,t.pi)((0,t.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,Ut.ey)(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return o.createElement(yo,(0,t.pi)({},this.props,{points:this._points,chartType:Ut.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:i,tickParams:a,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Yt.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark]},n.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._xMax);return(0,Ai.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForBar(e),o=r.YValueHover,i=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.x,selectedLegendTitle:e.legend,color:this.props.useSingleColor?t:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._createNumericBars=function(e,n,r,i){var a=this,s=this.props.useSingleColor,l=void 0!==s&&s,c=this._getScales(e,n,!0),u=c.xBarScale,d=c.yBarScale,h=(0,t.ev)([],this._points,!0);h.sort((function(e,t){var n="number"==typeof e.y?e.y:parseFloat(e.y);return("number"==typeof t.y?t.y:parseFloat(t.y))-n}));var p=h.map((function(e,t){var r,i,s,c=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(c=a.state.selectedLegendTitle===e.legend),a._classNames=Va(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:c}),Math.max(d(e.y),0)<1?o.createElement(o.Fragment,{key:e.x}," "):(s=l?a.props.colors?a._createColors()(1):Bo(1,0,null===(r=a.props.theme)||void 0===r?void 0:r.isInverted):a.props.colors?a._createColors()(e.x):Bo(t,0,null===(i=a.props.theme)||void 0===i?void 0:i.isInverted),o.createElement("rect",{key:e.y,x:a._isRtl?u(e.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:d(e.y)-a._barHeight/2,"data-is-focusable":!0,width:a._isRtl?n-a.margins.right-Math.max(u(e.x),0):Math.max(u(e.x),0)-a.margins.left,height:a._barHeight,ref:function(t){a._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:a._onBarHover.bind(a,e,s),"aria-label":a._getAriaLabel(e),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,e,t,s),onBlur:a._onBarLeave,fill:e.color&&!l?e.color:s}))}));return p},n.prototype._tooltipOfYAxislabels=function(e){var t=this,n=e.tooltipCls,r=e.yAxis,o=e.id;if(null===r)return null;for(var i=(0,so.Ys)("body").append("div").attr("id",o).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(e){var n=d[e];(0,so.Ys)(n).on("mouseover",(function(n){t.state.tooltipElement||(i.style("opacity",.9),i.html(l[e]).style("left",so.B.pageX+"px").style("top",so.B.pageY-28+"px"))})).on("mouseout",(function(e){i.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},n.prototype._createStringBars=function(e,t,n,r){var i=this,a=this._getScales(e,t,!1),s=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(e,n){var r,a,c;return Math.max(l(e.y),0)<1?o.createElement(o.Fragment,{key:e.x}," "):(c=u?i.props.colors?i._createColors()(1):Bo(1,0,null===(r=i.props.theme)||void 0===r?void 0:r.isInverted):i.props.colors?i._createColors()(e.x):Bo(n,0,null===(a=i.props.theme)||void 0===a?void 0:a.isInverted),o.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-i._barHeight),")"),key:e.x,x:i._isRtl?s(e.x):i.margins.left,y:l(e.y),width:i._isRtl?t-i.margins.right-Math.max(s(e.x),0):Math.max(s(e.x),0)-i.margins.left,height:i._barHeight,"aria-labelledby":"toolTip".concat(i._calloutId),"aria-label":i._getAriaLabel(e),role:"img",ref:function(t){i._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:i._onBarHover.bind(i,e,c),onMouseLeave:i._onBarLeave,onBlur:i._onBarLeave,"data-is-focusable":!0,onFocus:i._onBarFocus.bind(i,e,n,c),fill:e.color&&!u?e.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(this.props.showYAxisLablesTooltip){var h=(0,so.Ys)(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},n.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},n.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},n.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},n}(o.Component),Ha=(0,e.z)(Ia,(function(e){var n=e.shouldHighlight,r=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,t.pi)((0,t.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(e){e.Percentage="percentage",e.Fraction="fraction"}(Ma||(Ma={}));var Oa=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.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(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var t=r.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r.state.isOverflowing&&(!e.target||!Jt(e.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),t!==vn.zero){var o=r._getDelayTime(t);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),o)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Me||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.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(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e})},r._getDelayTime=function(e){switch(e){case vn.medium:return 300;case vn.long:return 500;default:return 0}},r._wrapContent=function(){var e=r.props,t=e.content,n=e.wrapContent,o=e.maxWidth,i=void 0===o?Number.POSITIVE_INFINITY:o,a=e.maxHeight,s=!1;t&&n&&n(t,r._tooltipHostId,i,a)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new Pe(r),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.content,r=e.tooltipProps,i=e.textProps,a=this.state.isTooltipVisible,s=(0,t.pi)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},r),l=a&&!!n;return o.createElement(o.Fragment,null,o.createElement("text",(0,t.pi)({},i,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":this.state.isOverflowing}),n),l&&o.createElement(xn,(0,t.pi)({},s)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(e){this.props.maxWidth===e.maxWidth&&this.props.maxHeight===e.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:vn.medium},n}(o.Component),Ba=[{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}],Ra=(0,i.y)(),za=function(e){function n(n){var r=e.call(this,n)||this;return r._getMargins=function(){var e=r.props,t=e.hideMinMax;return{left:16+(t?0:40),right:16+(t?0:40),top:16+(e.chartTitle?27:2),bottom:16+(e.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var e=Ba.length-1;e>=0;e-=1)if(r._outerRadius>=Ba[e].minRadius)return{arcWidth:Ba[e].arcWidth,chartValueSize:Ba[e].fontSize};return{arcWidth:Ba[0].arcWidth,chartValueSize:Ba[0].fontSize}},r._initProps=function(){var e=r.props,t=e.minValue,n=void 0===t?0:t,o=e.maxValue,i=e.theme,a=Array.from(r.props.segments),s=n;a.forEach((function(e,t){s+=e.size,e.color=void 0!==e.color?Ro(e.color,i.isInverted):Bo(t,0,i.isInverted)})),void 0!==o&&s<o&&(a.push({legend:"Unknown",size:o-s,color:i.palette.neutralLight}),s=o);var l=$r().padAngle(2/r._outerRadius).padRadius(r._outerRadius),c=r._isRTL?Array.from(a).reverse():a,u=-Math.PI/2,d=c.map((function(e,t){var o=u+e.size/(s-n)*Math.PI,i=l({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:u,endAngle:o});return u=o,{d:i,segmentIndex:r._isRTL?a.length-1-t:t}}));return{minValue:n,maxValue:s,segments:a,arcs:d}},r._renderNeedle=function(){var e=r._sweepFraction[0]/r._sweepFraction[1]*180,t=r._isRTL?180-e:e,n=r._outerRadius-r._innerRadius+4;return o.createElement("g",{transform:"rotate(".concat(t,", 0, 0)")},o.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(e){return r._handleFocus(e,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(e){return r._handleMouseOver(e,"Needle")},onMouseMove:function(e){return r._handleMouseOver(e,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var e=r._segments.map((function(e){return{title:e.legend,color:e.color,action:function(){r.state.selectedLegend===e.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:e.legend})},hoverAction:function(){r.setState({hoveredLegend:e.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return o.createElement("div",{className:r._classNames.legendsContainer},o.createElement(xr,(0,t.pi)({legends:e,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.hoveredLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(e,t){r._showCallout(e.target,t,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(e,t){r._showCallout(e.target,t,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(e,n,o){if(r._calloutAnchor!==n){r._calloutAnchor=n;var i="Current value is "+(r.props.chartValueFormat===Ma.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(e,t){var n={legend:e.legend,y:"".concat(a+(t>0?1:0)," - ").concat(a+e.size),color:e.color};return a+=e.size,n}));r.setState((0,t.pi)({calloutTarget:e,isCalloutVisible:["Needle","Chart value"].includes(n)||""===r.state.selectedLegend||r.state.selectedLegend===n,hoverXValue:i,hoverYValues:s},o?{focusedElement:n}:{}))}},r._hideCallout=function(e){r._calloutAnchor="",r.setState((0,t.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},e?{focusedElement:""}:{}))},r._wrapContent=function(e,t,n){var r=(0,so.Ys)("#".concat(t));if(r.text(e),!r.node())return!1;for(var o=!1,i=r.node().getComputedTextLength();i>n&&e.length>0;)e=e.slice(0,-1),r.text(e+"..."),o=!0,i=r.node().getComputedTextLength();return o},r._multiValueCallout=function(e){var n=r._yValueHoverSubCountsExists(e.YValueHover);return o.createElement("div",{className:r._classNames.calloutContentRoot},o.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},o.createElement("div",(0,t.pi)({className:r._classNames.calloutContentX},(0,Ut.ey)(e.xAxisCalloutAccessibilityData,"text",!1)),(0,Ut.Ts)(e.hoverXValue,r.props.culture))),o.createElement("div",{className:r._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,i,a){var s=i+1===a.length,l=e.shouldDrawBorderBottom,c=void 0!==l&&l;return o.createElement("div",(0,t.pi)({},(0,Ut.ey)(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,t.pi)({display:"inline-block"},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,t.pi)({},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(e,i,n,s))})),!!e.descriptionMessage&&o.createElement("div",{className:r._classNames.descriptionMessage},e.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,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.render=function(){var e=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 i=this._getStylesBasedOnBreakpoint(),a=i.arcWidth,s=i.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=Ra(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:r-this._legendsHeight,chartValueSize:s}),o.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t}},o.createElement(fn,{direction:Yt.horizontal},o.createElement("svg",{className:this._classNames.chart,role:"presentation","aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},o.createElement("g",{transform:"translate(".concat(n/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&o.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&o.createElement(o.Fragment,null,o.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,Ut.cE)(this._minValue)),o.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,Ut.cE)(u))),h.map((function(n,r){return o.createElement("path",(0,t.pi)({key:r,d:n.d,fill:e._segments[n.segmentIndex].color,fillOpacity:e._legendHighlighted(e._segments[n.segmentIndex].legend)||e._noLegendHighlighted()?1:.1,strokeWidth:e.state.focusedElement===e._segments[n.segmentIndex].legend?2:0,className:e._classNames.segment},(0,Ut.ey)((0,t.pi)({ariaLabel:"".concat(e._segments[n.segmentIndex].legend,", ").concat(e._segments[n.segmentIndex].size," out of ").concat(u-e._minValue," or ").concat((e._segments[n.segmentIndex].size/(u-e._minValue)*100).toFixed(),"%")},e._segments[n.segmentIndex].accessibilityData),"img",!0),{onFocus:function(t){return e._handleFocus(t,e._segments[n.segmentIndex].legend)},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,e._segments[n.segmentIndex].legend)},onMouseMove:function(t){return e._handleMouseOver(t,e._segments[n.segmentIndex].legend)}}))})),this._renderNeedle(),o.createElement("g",{onMouseEnter:function(t){return e._handleMouseOver(t,"Chart value")},onMouseMove:function(t){return e._handleMouseOver(t,"Chart value")}},o.createElement(Oa,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===Ma.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&&o.createElement(Oa,{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&&o.createElement(Wt,(0,t.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(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},n.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,s=Ra(this.props.styles,{theme:this.props.theme,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=(0,Ut.Ts)(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return o.createElement("div",{style:i},o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return o.createElement("div",{key:e,className:s.calloutBlockContainer},o.createElement("div",{className:s.calloutlegendText}," ",(0,Ut.Ts)(e,l)),o.createElement("div",{className:s.calloutContentY},(0,Ut.Ts)(u[e],l)))})))}return o.createElement("div",{style:n?i:{}},n&&o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),o.createElement("div",{id:"".concat(t,"_").concat(e.y),className:s.calloutBlockContainer},a&&o.createElement(vr,{svgProps:{className:s.shapeStyles},pathProps:{fill:e.color},shape:Ut.wo[e.index%Object.keys(Ut.Ml).length]}),o.createElement("div",null,o.createElement("div",{className:s.calloutlegendText}," ",e.legend),o.createElement("div",{className:s.calloutContentY},(0,Ut.Ts)(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},n}(o.Component),Wa=(0,e.z)(za,(function(e){var n,r,o,i,a=e.theme,s=e.chartValueSize,l=e.chartWidth,c=e.chartHeight,u=e.className,d=e.lineColor,h=e.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:ze.TS.small,fontWeight:ze.lq.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:ze.lq.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:ze.TS.small,fontWeight:ze.lq.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.palette.white},chartTitle:{fontSize:ze.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,t.pi)((0,t.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[ze.qJ]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,t.pi)((0,t.pi)({},a.fonts.small),{lineHeight:"16px",selectors:(r={},r[ze.$v]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,t.pi)((0,t.pi)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(o={},o[ze.$v]={color:"rgb(255, 255, 255)"},o)})],descriptionMessage:[a.fonts.small,{selectors:(i={},i[ze.$v]={color:"rgb(255, 255, 255)"},i),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,n(77).x)("@fluentui/react-charting","5.16.59")}(),FluentUIReactCharting=r}();
|