@fluentui/react-charting 5.16.48 → 5.16.49
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/AreaChart/AreaChart.base.d.ts +6 -1
- package/lib/components/AreaChart/AreaChart.base.js +96 -42
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.types.d.ts +5 -0
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +1 -0
- package/lib/components/LineChart/LineChart.base.js +3 -2
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/utilities/utilities.d.ts +12 -1
- package/lib/utilities/utilities.js +39 -33
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +6 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +96 -42
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.types.d.ts +5 -0
- package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +1 -0
- package/lib-amd/components/LineChart/LineChart.base.js +2 -1
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +12 -1
- package/lib-amd/utilities/utilities.js +39 -33
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +6 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +96 -42
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +5 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +1 -0
- package/lib-commonjs/components/LineChart/LineChart.base.js +2 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +12 -1
- package/lib-commonjs/utilities/utilities.js +39 -33
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +3 -3
- package/src/components/AreaChart/AreaChart.types.ts +6 -0
|
@@ -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 Bf},CartesianChart:function(){return Kp},ChartHoverCard:function(){return Ld},DataVizPalette:function(){return cf},DonutChart:function(){return Bp},GaugeChart:function(){return fm},GaugeValueFormat:function(){return rm},GroupedVerticalBarChart:function(){return hg},HeatMapChart:function(){return gg},HorizontalBarChart:function(){return lh},HorizontalBarChartVariant:function(){return _e},HorizontalBarChartWithAxis:function(){return cm},Legends:function(){return Jh},LineChart:function(){return Cf},MultiStackedBarChart:function(){return tg},MultiStackedBarChartVariant:function(){return Uf},NodesComposition:function(){return Zg},PieChart:function(){return Kf},SankeyChart:function(){return Ig},Shape:function(){return Zh},Sparkline:function(){return im},StackedBarChart:function(){return $f},Textbox:function(){return lf},TreeChart:function(){return nm},TreeTraverse:function(){return $g},VerticalBarChart:function(){return ag},VerticalStackedBarChart:function(){return lg},getChartHoverCardStyles:function(){return Ed},getColorFromToken:function(){return mf},getNextColor:function(){return gf}});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 S=["theme","styles"];function E(e,t,n,r,i){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?S: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"])),S=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],L=r.styles;if(!v.current||y!==E[1]||L!==E[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,S,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,X="displayName",q=/\:global\((.+?)\)/g;function j(e,t){return e.indexOf(":global(")>=0?e.replace(q,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function K(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?G([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!q.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 G([r],t,j(n,e))})):G([r],t,j(n,e))}function G(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&&G(l,t,n)}else if(Array.isArray(s))G(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)&&K(n,t,h,d[h])}else"object"==typeof u?null!==u&&K(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!==X&&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=G(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 Se(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 Ee={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,Xe,qe,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},Ke=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"]),Ge=je(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ze=je(Ge,Ke),$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"}(Xe||(Xe={})),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={})[Ee.topLeftEdge]=ct(Ue.top,Ue.left),st[Ee.topCenter]=ct(Ue.top),st[Ee.topRightEdge]=ct(Ue.top,Ue.right),st[Ee.topAutoEdge]=ct(Ue.top,void 0,!0),st[Ee.bottomLeftEdge]=ct(Ue.bottom,Ue.left),st[Ee.bottomCenter]=ct(Ue.bottom),st[Ee.bottomRightEdge]=ct(Ue.bottom,Ue.right),st[Ee.bottomAutoEdge]=ct(Ue.bottom,void 0,!0),st[Ee.leftTopEdge]=ct(Ue.left,Ue.top),st[Ee.leftCenter]=ct(Ue.left),st[Ee.leftBottomEdge]=ct(Ue.left,Ue.bottom),st[Ee.rightTopEdge]=ct(Ue.right,Ue.top),st[Ee.rightCenter]=ct(Ue.right),st[Ee.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 St(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 Et(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):Et(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=St(ht(h.elementRectangle,n),c,n,d)}else c=St(u,c,n,d);else c=St(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=Ee.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===qe){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),qe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return qe}(),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=Et(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 Xt(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 qt="cubic-bezier(.1,.9,.2,1)",jt="cubic-bezier(.1,.25,.75,.9)",Kt="0.167s",Gt="0.267s",Zt="0.367s",$t="0.467s",Qt=Xt({from:{opacity:0},to:{opacity:1}}),Jt=Xt({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),Sn=Vn(10),En=Vn(20),Ln=Xt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=Xt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=Xt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=Xt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=Xt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=Xt({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 Xt({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(e){return Xt({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(e){return Xt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Vn(e){return Xt({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,qt),slideRightIn20:Mn("".concat(Qt,",").concat(tn),Zt,qt),slideRightIn40:Mn("".concat(Qt,",").concat(nn),Zt,qt),slideRightIn400:Mn("".concat(Qt,",").concat(rn),Zt,qt),slideLeftIn10:Mn("".concat(Qt,",").concat(on),Zt,qt),slideLeftIn20:Mn("".concat(Qt,",").concat(an),Zt,qt),slideLeftIn40:Mn("".concat(Qt,",").concat(sn),Zt,qt),slideLeftIn400:Mn("".concat(Qt,",").concat(ln),Zt,qt),slideUpIn10:Mn("".concat(Qt,",").concat(cn),Zt,qt),slideUpIn20:Mn("".concat(Qt,",").concat(un),Zt,qt),slideDownIn10:Mn("".concat(Qt,",").concat(dn),Zt,qt),slideDownIn20:Mn("".concat(Qt,",").concat(hn),Zt,qt),slideRightOut10:Mn("".concat(Jt,",").concat(pn),Zt,qt),slideRightOut20:Mn("".concat(Jt,",").concat(fn),Zt,qt),slideRightOut40:Mn("".concat(Jt,",").concat(gn),Zt,qt),slideRightOut400:Mn("".concat(Jt,",").concat(mn),Zt,qt),slideLeftOut10:Mn("".concat(Jt,",").concat(vn),Zt,qt),slideLeftOut20:Mn("".concat(Jt,",").concat(_n),Zt,qt),slideLeftOut40:Mn("".concat(Jt,",").concat(yn),Zt,qt),slideLeftOut400:Mn("".concat(Jt,",").concat(xn),Zt,qt),slideUpOut10:Mn("".concat(Jt,",").concat(bn),Zt,qt),slideUpOut20:Mn("".concat(Jt,",").concat(Cn),Zt,qt),slideDownOut10:Mn("".concat(Jt,",").concat(Sn),Zt,qt),slideDownOut20:Mn("".concat(Jt,",").concat(En),Zt,qt),scaleUpIn100:Mn("".concat(Qt,",").concat(Ln),Zt,qt),scaleDownIn100:Mn("".concat(Qt,",").concat(An),Zt,qt),scaleUpOut103:Mn("".concat(Jt,",").concat(wn),Kt,jt),scaleDownOut98:Mn("".concat(Jt,",").concat(kn),Kt,jt),fadeIn100:Mn(Qt,Kt,jt),fadeIn200:Mn(Qt,Gt,jt),fadeIn400:Mn(Qt,Zt,jt),fadeIn500:Mn(Qt,$t,jt),fadeOut100:Mn(Jt,Kt,jt),fadeOut200:Mn(Jt,Gt,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)",Xn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",qn="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(qn," &").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 Kn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Gn=!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(!Gn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(er),Gn=!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",Sr=(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 Er(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);Er(t,a+"-light",Bn.light,o&&o+" Light"),Er(t,a+"-semilight",Bn.semilight,o&&o+" SemiLight"),Er(t,a+"-regular",Bn.regular,o),Er(t,a+"-semibold",Bn.semibold,o&&o+" SemiBold"),Er(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,S=s.neutralTertiary,E=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),S&&(i.disabledBodyText=S,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,i.buttonTextDisabled=S,i.inputIconDisabled=S,i.disabledText=S),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),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),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"),Er("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Bn.light),Er("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:Sr,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:Ee.bottomAutoEdge},Xr=he({disableCaching:!0});function qr(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,!Gr((h=l).elementPosition,p.elementPosition)||!Gr(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,S=n.onScroll,E=n.shouldRestoreFocus,L=void 0===E||E,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=qr(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],X=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),q=o(o({},null==R?void 0:R.elementPosition),{maxHeight:W});if(X&&(q.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,K=d&&!!k,G=Xr(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:G.container,style:$},s.createElement("div",o({},et(n,Je,Yr),{className:tt(G.root,R&&R.targetEdge&&Wr[R.targetEdge]),style:R?o({},q):zr,tabIndex:-1,ref:F}),K&&s.createElement("div",{className:G.beak,style:Kr(R)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ut,o({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:i,ariaLabelledBy:c,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:Y,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,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 Kr(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 Gr(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=E(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=E(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=he(),Co=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(qn);e&&n&&e.classList.add(qn)}),[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,S=e.onLayerMounted,E=void 0===S?function(){}:S,L=e.onLayerWillUnmount,k=e.styles,A=e.theme,w=Rt(c,null==_?void 0:_.ref,f),D=bo(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==E||E(),null==C||C(),p(!1))}),[h,E,C]),s.createElement("span",{className:"ms-layer",ref:i},l.current&&to.createPortal(s.createElement(ro,{layerRoot:!0,providerRef:w},s.createElement(fo,o({},!v&&(uo||(uo={},["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 uo[e]=So}))),uo),_,{className:tt(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Co.displayName="LayerBase";var So=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},Eo={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Lo=E(Co,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=ar(Eo,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"]}),ko=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(Lo,o({},n),l)}));ko.displayName="Callout";var Ao=Array.prototype.slice;function wo(e){return e}var Do=1,To=2,Mo=3,Po=4,No=1e-6;function Fo(e){return"translate("+(e+.5)+",0)"}function Vo(e){return"translate(0,"+(e+.5)+")"}function Io(e){return function(t){return+e(t)}}function Oo(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ho(){return!this.__axis}function Bo(e,t){var n=[],r=null,o=null,a=6,i=6,s=3,l=e===Do||e===Po?-1:1,c=e===Po||e===To?"x":"y",u=e===Do||e===Mo?Fo:Vo;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):wo:o,f=Math.max(a,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Oo:Io)(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(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(c+"2",l*a)),L=L.merge(S.append("text").attr("fill","#000").attr(c,l*f).attr("dy",e===Do?"0em":e===Mo?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",No).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),S.attr("opacity",No).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",e===Po||e==To?"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))})),E.attr(c+"2",l*a),L.attr(c,l*f).text(p),y.filter(Ho).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===To?"start":e===Po?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Ao.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Ao.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Ao.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 Ro(e){return Bo(To,e)}function Wo(e){return Bo(Mo,e)}function zo(e){return Bo(Po,e)}function Yo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Uo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Yo(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 Xo=Uo(Yo);Xo.right,Xo.left;var qo=Array.prototype;function jo(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 Ko(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 Go(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}qo.slice,qo.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Zo=Math.sqrt(50),$o=Math.sqrt(10),Qo=Math.sqrt(2);function Jo(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>=Zo?10:a>=$o?5:a>=Qo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=Zo?10:a>=$o?5:a>=Qo?2:1)}function ea(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>=Zo?o*=10:a>=$o?o*=5:a>=Qo&&(o*=2),t<e?-o:o}function ta(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function na(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ra(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=ta,n=(t,n)=>ta(e(t),n),r=(t,n)=>e(t)-n):(t=e===ta||e===na?e:oa,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 oa(){return 0}const aa=ra(ta),ia=aa.right;aa.left,ra((function(e){return null===e?NaN:+e})).center;var sa=ia;function la(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ca(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ua(){}var da=.7,ha=1/da,pa="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ma=/^#([0-9a-f]{3,8})$/,va=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),_a=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),ya=new RegExp("^rgba\\("+[pa,pa,pa,fa]+"\\)$"),xa=new RegExp("^rgba\\("+[ga,ga,ga,fa]+"\\)$"),ba=new RegExp("^hsl\\("+[fa,ga,ga]+"\\)$"),Ca=new RegExp("^hsla\\("+[fa,ga,ga,fa]+"\\)$"),Sa={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 Ea(){return this.rgb().formatHex()}function La(){return this.rgb().formatRgb()}function ka(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ma.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Aa(t):3===n?new Ta(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Ta(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Ta(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=va.exec(e))?new Ta(t[1],t[2],t[3],1):(t=_a.exec(e))?new Ta(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ya.exec(e))?wa(t[1],t[2],t[3],t[4]):(t=xa.exec(e))?wa(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ba.exec(e))?Fa(t[1],t[2]/100,t[3]/100,1):(t=Ca.exec(e))?Fa(t[1],t[2]/100,t[3]/100,t[4]):Sa.hasOwnProperty(e)?Aa(Sa[e]):"transparent"===e?new Ta(NaN,NaN,NaN,0):null}function Aa(e){return new Ta(e>>16&255,e>>8&255,255&e,1)}function wa(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ta(e,t,n,r)}function Da(e,t,n,r){return 1===arguments.length?((o=e)instanceof ua||(o=ka(o)),o?new Ta((o=o.rgb()).r,o.g,o.b,o.opacity):new Ta):new Ta(e,t,n,null==r?1:r);var o}function Ta(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ma(){return"#"+Na(this.r)+Na(this.g)+Na(this.b)}function Pa(){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 Na(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Fa(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,n,r)}function Va(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof ua||(e=ka(e)),!e)return new Ia;if(e instanceof Ia)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 Ia(i,s,l,e.opacity)}function Ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Oa(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 Ha(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 Ba(e){return function(){return e}}function Ra(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ba(isNaN(e)?t:e)}la(ua,ka,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ea,formatHex:Ea,formatHsl:function(){return Va(this).formatHsl()},formatRgb:La,toString:La}),la(Ta,Da,ca(ua,{brighter:function(e){return e=null==e?ha:Math.pow(ha,e),new Ta(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?da:Math.pow(da,e),new Ta(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:Ma,formatHex:Ma,formatRgb:Pa,toString:Pa})),la(Ia,(function(e,t,n,r){return 1===arguments.length?Va(e):new Ia(e,t,n,null==r?1:r)}),ca(ua,{brighter:function(e){return e=null==e?ha:Math.pow(ha,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?da:Math.pow(da,e),new Ia(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 Ta(Oa(e>=240?e-240:e+120,o,r),Oa(e,o,r),Oa(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 Wa=function e(t){var n=function(e){return 1==(e=+e)?Ra: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):Ba(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Da(e)).r,(t=Da(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Ra(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 za(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=Da(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 Ya(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]=$a(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 Ua(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Xa(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function qa(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]=$a(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}za((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 Ha((n-r/t)*t,i,o,a,s)}})),za((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 Ha((n-r/t)*t,o,a,i,s)}}));var ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ka=new RegExp(ja.source,"g");function Ga(e,t){var n,r,o,a=ja.lastIndex=Ka.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=ja.exec(e))&&(r=Ka.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:Xa(n,r)})),a=Ka.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 Za(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 $a(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?Ba(t):("number"===o?Xa:"string"===o?(n=ka(t))?(t=n,Wa):Ga:t instanceof ka?Wa:t instanceof Date?Ua:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Ya:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qa:Xa:Za))(e,t)}function Qa(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ja(e){return+e}var ei=[0,1];function ti(e){return e}function ni(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ri(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=ni(o,r),a=n(i,a)):(r=ni(r,o),a=n(a,i)),function(e){return a(r(e))}}function oi(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]=ni(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=sa(e,t,1,r)-1;return a[n](o[n](t))}}function ai(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ii(){return function(){var e,t,n,r,o,a,i=ei,s=ei,l=$a,c=ti;function u(){var e,t,n,l=Math.min(i.length,s.length);return c!==ti&&(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?oi:ri,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),Xa)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,Ja),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=Qa,u()},d.clamp=function(e){return arguments.length?(c=!!e||ti,u()):c!==ti},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()}}()(ti,ti)}function si(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var li,ci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ui(e){if(!(t=ci.exec(e)))throw new Error("invalid format: "+e);var t;return new di({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 di(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 hi(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 pi(e){return(e=hi(Math.abs(e)))?e[1]:NaN}function fi(e,t){var n=hi(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")}ui.prototype=di.prototype,di.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 gi={"%":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 fi(100*e,t)},r:fi,s:function(e,t){var n=hi(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(li=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")+hi(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 mi(e){return e}var vi,_i,yi,xi=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ci(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=Jo(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=ea(e,t,n);switch((r=ui(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(pi(t)/3)))-pi(Math.abs(e)))}(a,i))||(r.precision=o),yi(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,pi(t)-pi(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,-pi(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return _i(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=Jo(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 Si(){var e=ii();return e.copy=function(){return ai(e,Si())},si.apply(e,arguments),Ci(e)}vi=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?mi:(t=xi.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?mi:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xi.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=ui(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"):gi[_]||(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=gi[_],C=/[defgprs%]/.test(_);function S(e){var o,a,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(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)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:c:"-"===d||"("===d?"":d)+h,S=("s"===_?bi[8+li/3]:"")+S+(E&&"("===d?")":""),C)for(o=-1,a=e.length;++o<a;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var L=h.length+e.length+S.length,k=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?f-S.length:1/0),k=""),n){case"<":e=h+e+S+k;break;case"=":e=h+k+e+S;break;case"^":e=k.slice(0,L=k.length>>1)+h+e+S+k.slice(L);break;default:e=k+h+e+S}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)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=ui(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pi(t)/3))),o=Math.pow(10,-r),a=bi[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_i=vi.format,yi=vi.formatPrefix;const Ei=1e3,Li=6e4,ki=36e5,Ai=864e5,wi=6048e5,Di=31536e6;var Ti=new Date,Mi=new Date;function Pi(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 Pi((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 Ti.setTime(+t),Mi.setTime(+r),e(Ti),e(Mi),Math.floor(n(Ti,Mi))},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 Ni=Pi((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Ni.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Pi((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Ni:null};var Fi=Ni,Vi=(Ni.range,Pi((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ei)}),(function(e,t){return(t-e)/Ei}),(function(e){return e.getUTCSeconds()}))),Ii=Vi,Oi=(Vi.range,Pi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei)}),(function(e,t){e.setTime(+e+t*Li)}),(function(e,t){return(t-e)/Li}),(function(e){return e.getMinutes()}))),Hi=Oi,Bi=(Oi.range,Pi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei-e.getMinutes()*Li)}),(function(e,t){e.setTime(+e+t*ki)}),(function(e,t){return(t-e)/ki}),(function(e){return e.getHours()}))),Ri=Bi,Wi=(Bi.range,Pi((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Li)/Ai),(e=>e.getDate()-1))),zi=Wi;function Yi(e){return Pi((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())*Li)/wi}))}Wi.range;var Ui=Yi(0),Xi=Yi(1),qi=Yi(2),ji=Yi(3),Ki=Yi(4),Gi=Yi(5),Zi=Yi(6),$i=(Ui.range,Xi.range,qi.range,ji.range,Ki.range,Gi.range,Zi.range,Pi((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()}))),Qi=$i,Ji=($i.range,Pi((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()})));Ji.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pi((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 es=Ji,ts=(Ji.range,Pi((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Li)}),(function(e,t){return(t-e)/Li}),(function(e){return e.getUTCMinutes()}))),ns=ts,rs=(ts.range,Pi((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ki)}),(function(e,t){return(t-e)/ki}),(function(e){return e.getUTCHours()}))),os=rs,as=(rs.range,Pi((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ai}),(function(e){return e.getUTCDate()-1}))),is=as;function ss(e){return Pi((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)/wi}))}as.range;var ls=ss(0),cs=ss(1),us=ss(2),ds=ss(3),hs=ss(4),ps=ss(5),fs=ss(6),gs=(ls.range,cs.range,us.range,ds.range,hs.range,ps.range,fs.range,Pi((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()}))),ms=gs,vs=(gs.range,Pi((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()})));vs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pi((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 _s=vs;function ys(e,t,n,r,o,a){const i=[[Ii,1,Ei],[Ii,5,5e3],[Ii,15,15e3],[Ii,30,3e4],[a,1,Li],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,ki],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ai],[r,2,1728e5],[n,1,wi],[t,1,2592e6],[t,3,7776e6],[e,1,Di]];function s(t,n,r){const o=Math.abs(n-t)/r,a=ra((([,,e])=>e)).right(i,o);if(a===i.length)return e.every(ea(t/Di,n/Di,r));if(0===a)return Fi.every(Math.max(ea(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]}vs.range;const[xs,bs]=ys(_s,ms,ls,is,os,ns),[Cs,Ss]=ys(es,Qi,Ui,zi,Ri,Hi);var Es=new Date,Ls=new Date;function ks(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 ks((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 Es.setTime(+t),Ls.setTime(+r),e(Es),e(Ls),Math.floor(n(Es,Ls))},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 As=1e3,ws=6e4,Ds=36e5,Ts=864e5,Ms=6048e5;function Ps(e){return ks((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)/Ms}))}var Ns=Ps(0),Fs=Ps(1),Vs=Ps(2),Is=Ps(3),Os=Ps(4),Hs=Ps(5),Bs=Ps(6),Rs=(Ns.range,Fs.range,Vs.range,Is.range,Os.range,Hs.range,Bs.range,ks((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getUTCDate()-1}))),Ws=Rs;function zs(e){return ks((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())*ws)/Ms}))}Rs.range;var Ys=zs(0),Us=zs(1),Xs=zs(2),qs=zs(3),js=zs(4),Ks=zs(5),Gs=zs(6),Zs=(Ys.range,Us.range,Xs.range,qs.range,js.range,Ks.range,Gs.range,ks((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())*ws)/Ts}),(function(e){return e.getDate()-1}))),$s=Zs,Qs=(Zs.range,ks((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()})));Qs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ks((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 Js=Qs,el=(Qs.range,ks((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()})));el.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ks((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 tl=el;function nl(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 rl(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 ol(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function al(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=ml(o),u=vl(o),d=ml(a),h=vl(a),p=ml(i),f=vl(i),g=ml(s),m=vl(s),v=ml(l),_=vl(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:Ol,e:Ol,f:zl,H:Hl,I:Bl,j:Rl,L:Wl,m:Yl,M:Ul,p:function(e){return o[+(e.getHours()>=12)]},Q:_c,s:yc,S:Xl,u:ql,U:jl,V:Kl,w:Gl,W:Zl,x:null,X:null,y:$l,Y:Ql,Z:Jl,"%":vc},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:ec,e:ec,f:ac,H:tc,I:nc,j:rc,L:oc,m:ic,M:sc,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:_c,s:yc,S:lc,u:cc,U:uc,V:dc,w:hc,W:pc,x:null,X:null,y:fc,Y:gc,Z:mc,"%":vc},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 E(e,t,n,r)},d:Al,e:Al,f:Nl,H:Dl,I:Dl,j:wl,L:Pl,m:kl,M:Tl,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:Vl,s:Il,S:Ml,u:yl,U:xl,V:bl,w:_l,W:Cl,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:El,Y:Sl,Z:Ll,"%":Fl};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=ul[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 S(e,t){return function(n){var r,o,a=ol(1900);if(E(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=rl(ol(a.y))).getUTCDay(),r=o>4||0===o?Fs.ceil(r):Fs(r),r=Ws.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(ol(a.y))).getDay(),r=o>4||0===o?Us.ceil(r):Us(r),r=$s.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?rl(ol(a.y)).getUTCDay():t(ol(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,rl(a)):t(a)}}function E(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 ul?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=S(e+="",nl);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=S(e,rl);return t.toString=function(){return e},t}}}el.range;var il,sl,ll,cl,ul={"-":"",_:" ",0:"0"},dl=/^\s*\d+/,hl=/^%/,pl=/[\\^$*+?|[\]().{}]/g;function fl(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 gl(e){return e.replace(pl,"\\$&")}function ml(e){return new RegExp("^(?:"+e.map(gl).join("|")+")","i")}function vl(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function _l(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yl(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=dl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function El(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ll(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 kl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Al(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=dl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=dl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Nl(e,t,n){var r=dl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fl(e,t,n){var r=hl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vl(e,t,n){var r=dl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Il(e,t,n){var r=dl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ol(e,t){return fl(e.getDate(),t,2)}function Hl(e,t){return fl(e.getHours(),t,2)}function Bl(e,t){return fl(e.getHours()%12||12,t,2)}function Rl(e,t){return fl(1+$s.count(Js(e),e),t,3)}function Wl(e,t){return fl(e.getMilliseconds(),t,3)}function zl(e,t){return Wl(e,t)+"000"}function Yl(e,t){return fl(e.getMonth()+1,t,2)}function Ul(e,t){return fl(e.getMinutes(),t,2)}function Xl(e,t){return fl(e.getSeconds(),t,2)}function ql(e){var t=e.getDay();return 0===t?7:t}function jl(e,t){return fl(Ys.count(Js(e),e),t,2)}function Kl(e,t){var n=e.getDay();return e=n>=4||0===n?js(e):js.ceil(e),fl(js.count(Js(e),e)+(4===Js(e).getDay()),t,2)}function Gl(e){return e.getDay()}function Zl(e,t){return fl(Us.count(Js(e),e),t,2)}function $l(e,t){return fl(e.getFullYear()%100,t,2)}function Ql(e,t){return fl(e.getFullYear()%1e4,t,4)}function Jl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fl(t/60|0,"0",2)+fl(t%60,"0",2)}function ec(e,t){return fl(e.getUTCDate(),t,2)}function tc(e,t){return fl(e.getUTCHours(),t,2)}function nc(e,t){return fl(e.getUTCHours()%12||12,t,2)}function rc(e,t){return fl(1+Ws.count(tl(e),e),t,3)}function oc(e,t){return fl(e.getUTCMilliseconds(),t,3)}function ac(e,t){return oc(e,t)+"000"}function ic(e,t){return fl(e.getUTCMonth()+1,t,2)}function sc(e,t){return fl(e.getUTCMinutes(),t,2)}function lc(e,t){return fl(e.getUTCSeconds(),t,2)}function cc(e){var t=e.getUTCDay();return 0===t?7:t}function uc(e,t){return fl(Ns.count(tl(e),e),t,2)}function dc(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Os(e):Os.ceil(e),fl(Os.count(tl(e),e)+(4===tl(e).getUTCDay()),t,2)}function hc(e){return e.getUTCDay()}function pc(e,t){return fl(Fs.count(tl(e),e),t,2)}function fc(e,t){return fl(e.getUTCFullYear()%100,t,2)}function gc(e,t){return fl(e.getUTCFullYear()%1e4,t,4)}function mc(){return"+0000"}function vc(){return"%"}function _c(e){return+e}function yc(e){return Math.floor(+e/1e3)}il=al({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"]}),sl=il.format,il.parse,ll=il.utcFormat,cl=il.utcParse;var xc="%Y-%m-%dT%H:%M:%S.%LZ";function bc(e){return new Date(e)}function Cc(e){return e instanceof Date?+e:+new Date(+e)}function Sc(e,t,n,r,o,a,i,s,l,c){var u=ii(),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,Cc)):h().map(bc)},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 ai(u,Sc(e,t,n,r,o,a,i,s,l,c))},u}function Ec(){return si.apply(Sc(Cs,Ss,es,Qi,Ui,zi,Ri,Hi,Ii,sl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||ll(xc),+new Date("2000-01-01T00:00:00.000Z")||cl(xc);class Lc extends Map{constructor(e,t=Tc){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(Ac(this,e))}has(e){return super.has(Ac(this,e))}set(e,t){return super.set(wc(this,e),t)}delete(e){return super.delete(Dc(this,e))}}class kc extends Set{constructor(e,t=Tc){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(Ac(this,e))}add(e){return super.add(wc(this,e))}delete(e){return super.delete(Dc(this,e))}}function Ac({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wc({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dc({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Tc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Mc=Symbol("implicit");function Pc(){var e=new Lc,t=[],n=[],r=Mc;function o(o){let a=e.get(o);if(void 0===a){if(r!==Mc)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 Lc;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 Pc(t,n).unknown(r)},si.apply(o,arguments),o}function Nc(){var e,t,n=Pc().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 Nc(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},si.apply(d(),arguments)}var Fc="http://www.w3.org/1999/xhtml",Vc={svg:"http://www.w3.org/2000/svg",xhtml:Fc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ic(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Vc.hasOwnProperty(t)?{space:Vc[t],local:e}:e}function Oc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fc&&t.documentElement.namespaceURI===Fc?t.createElement(e):t.createElementNS(n,e)}}function Hc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bc(e){var t=Ic(e);return(t.local?Hc:Oc)(t)}function Rc(){}function Wc(e){return null==e?Rc:function(){return this.querySelector(e)}}function zc(){return[]}var Yc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Uc=document.documentElement;if(!Uc.matches){var Xc=Uc.webkitMatchesSelector||Uc.msMatchesSelector||Uc.mozMatchesSelector||Uc.oMatchesSelector;Yc=function(e){return function(){return Xc.call(this,e)}}}}var qc=Yc;function jc(e){return new Array(e.length)}function Kc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Kc.prototype={constructor:Kc,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 Gc(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 Kc(e,a[s]);for(;s<l;++s)(i=t[s])&&(o[s]=i)}function Zc(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 Kc(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function $c(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Qc(e){return function(){this.removeAttribute(e)}}function Jc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function eu(e,t){return function(){this.setAttribute(e,t)}}function tu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ru(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 ou(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function au(e){return function(){this.style.removeProperty(e)}}function iu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function su(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lu(e){return function(){delete this[e]}}function cu(e,t){return function(){this[e]=t}}function uu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function du(e){return e.trim().split(/^|\s+/)}function hu(e){return e.classList||new pu(e)}function pu(e){this._node=e,this._names=du(e.getAttribute("class")||"")}function fu(e,t){for(var n=hu(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function gu(e,t){for(var n=hu(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function mu(e){return function(){fu(this,e)}}function vu(e){return function(){gu(this,e)}}function _u(e,t){return function(){(t.apply(this,arguments)?fu:gu)(this,e)}}function yu(){this.textContent=""}function xu(e){return function(){this.textContent=e}}function bu(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Cu(){this.innerHTML=""}function Su(e){return function(){this.innerHTML=e}}function Eu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Lu(){this.nextSibling&&this.parentNode.appendChild(this)}function ku(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Au(){return null}function wu(){var e=this.parentNode;e&&e.removeChild(this)}function Du(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Tu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}pu.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 Mu={},Pu=null;function Nu(e,t,n){return e=Fu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Fu(e,t,n){return function(r){var o=Pu;Pu=r;try{e.call(this,this.__data__,t,n)}finally{Pu=o}}}function Vu(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 Iu(e,t,n){var r=Mu.hasOwnProperty(e.type)?Nu:Fu;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 Ou(e,t,n){var r=ou(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 Hu(e,t){return function(){return Ou(this,e,t)}}function Bu(e,t){return function(){return Ou(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Mu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Wu(e,t){this._groups=e,this._parents=t}function zu(e){return"string"==typeof e?new Wu([[document.querySelector(e)]],[document.documentElement]):new Wu([[e]],Ru)}Wu.prototype=function(){return new Wu([[document.documentElement]],Ru)}.prototype={constructor:Wu,select:function(e){"function"!=typeof e&&(e=Wc(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 Wu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?zc: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 Wu(r,o)},filter:function(e){"function"!=typeof e&&(e=qc(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 Wu(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?Zc:Gc,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 Wu(s,o))._enter=l,s._exit=c,s},enter:function(){return new Wu(this._enter||this._groups.map(jc),this._parents)},exit:function(){return new Wu(this._exit||this._groups.map(jc),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 Wu(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=$c);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 Wu(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=Ic(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?Jc:Qc:"function"==typeof t?n.local?ru:nu:n.local?tu:eu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?au:"function"==typeof t?su:iu)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||ou(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?lu:"function"==typeof t?uu:cu)(e,t)):this.node()[e]},classed:function(e,t){var n=du(e+"");if(arguments.length<2){for(var r=hu(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?_u:t?mu:vu)(n,t))},text:function(e){return arguments.length?this.each(null==e?yu:("function"==typeof e?bu:xu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Cu:("function"==typeof e?Eu:Su)(e)):this.node().innerHTML},raise:function(){return this.each(Lu)},lower:function(){return this.each(ku)},append:function(e){var t="function"==typeof e?e:Bc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Bc(e),r=null==t?Au:"function"==typeof t?t:Wc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wu)},clone:function(e){return this.select(e?Tu:Du)},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?Iu:Vu,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?Bu:Hu)(e,t))}};var Yu=0;function Uu(){this._="@"+(++Yu).toString(36)}function Xu(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 qu(e){return"string"==typeof e?new Wu([document.querySelectorAll(e)],[document.documentElement]):new Wu([null==e?[]:e],Ru)}Uu.prototype=function(){return new Uu}.prototype={constructor:Uu,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 ju,Ku,Gu,Zu,$u=ks((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*As)}),(function(e,t){return(t-e)/As}),(function(e){return e.getUTCSeconds()})),Qu=$u,Ju=($u.range,ks((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*As)}),(function(e,t){e.setTime(+e+t*ws)}),(function(e,t){return(t-e)/ws}),(function(e){return e.getMinutes()}))),ed=Ju,td=(Ju.range,ks((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*As-e.getMinutes()*ws)}),(function(e,t){e.setTime(+e+t*Ds)}),(function(e,t){return(t-e)/Ds}),(function(e){return e.getHours()}))),nd=td,rd=(td.range,ks((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()}))),od=rd;function ad(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=Si().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);a&&p.nice();var f=Wo(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return yd(r,n)}));t===Ku.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&zu(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function id(e,t){var n=t?t.format:sl,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(Qu(e)<e?r:ed(e)<e?o:nd(e)<e?a:$s(e)<e?i:od(e)<e?Ys(e)<e?s:l:Js(e)<e?c:u)(e)}function sd(e,t,n,r,o,a){return void 0===a&&(a=!1),r===Ku.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,S=a.startValue<d?0:d,E=Si().domain([S,C]).range([h-p.bottom,p.top]),L=(t?Ro(E):zo(E)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(_i(".2~s")),s&&zu(s).call(L).selectAll("text").attr("aria-hidden","true"),E}(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,S=e.eventLabelHeight,E=_||a.endValue,L=E>c?E: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=Si().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?S:0)]),D=(!t&&r||t&&!r?Ro(w):zo(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(_i(".2~s")),s&&zu(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(e,t,n,a)}rd.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"}(Ku||(Ku={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Gu||(Gu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Zu||(Zu={}));function ld(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return o(o({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var o=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&o.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),r.push({x:e.x,values:o})})),"x",(n=r).map((function(e){return e.x})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}var cd=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 ud(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=zu("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){zu(u[e]).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function dd(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 hd(e,t,n,r,o,a,s,l,c){var u;if(a===Gu.NumericAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(e,t,n,r){var o=Ko(e,(function(e){return Ko(e.data,(function(e){return e.x}))})),a=jo(e,(function(e){return jo(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 Ku.VerticalStackedBarChart:u=function(e,t,n,r,o){var a=Ko(e,(function(e){return e.x})),i=jo(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 Ku.VerticalBarChart:u=function(e,t,n,r,o){var a=jo(e,(function(e){return e.x})),i=Ko(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 Ku.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var a=jo(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===Gu.DateAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(e,t,n,r,o){void 0===o&&(o=[]);var a=Ko(e,(function(e){return Ko(e.data,(function(e){return e.x}))})),s=jo(e,(function(e){return jo(e.data,(function(e){return e.x}))})),l=Ko(i(i([],o,!0),[a],!1)),c=jo(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 Ku.VerticalStackedBarChart:case Ku.GroupedVerticalBarChart:case Ku.VerticalBarChart:case Ku.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 pd(e,t,n){var r,o,a;switch(void 0===n&&(n=Zu.NumericAxis),t){case Ku.AreaChart:case Ku.LineChart:r=function(e){var t=jo(e,(function(e){return jo(e.data,(function(e){return e.y}))}));return{startValue:Ko(e,(function(e){return Ko(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Ku.VerticalStackedBarChart:a=jo(o=e,(function(e){return e.y})),r={startValue:Ko(o,(function(e){return e.y})),endValue:a};break;case Ku.VerticalBarChart:r=function(e){var t=jo(e,(function(e){return e.y}));return{startValue:Ko(e,(function(e){return e.y})),endValue:t}}(e);break;case Ku.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===Zu.NumericAxis){var n=jo(e,(function(e){return e.y}));return{startValue:Ko(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 fd,gd,md=function(e,t){if(t)switch(typeof e){case"string":return Gu.StringAxis;case"number":return Gu.NumericAxis;default:return Gu.DateAxis}else switch(typeof e){case"string":return Zu.StringAxis;case"number":return Zu.NumericAxis;default:return Zu.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"}(fd||(fd={})),function(e){e[e.dottedLine=0]="dottedLine"}(gd||(gd={}));var vd=((ju={})[fd.circle]={widthRatio:1},ju[fd.square]={widthRatio:1},ju[fd.triangle]={widthRatio:1},ju[fd.diamond]={widthRatio:1},ju[fd.pyramid]={widthRatio:1},ju[fd.hexagon]={widthRatio:2},ju[fd.pentagon]={widthRatio:1.168},ju[fd.octagon]={widthRatio:2.414},ju),_d=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}},yd=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 xd(e){return yi(e<1e3?".2~":".1",e)(e)}var bd,Cd=he(),Sd=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=Cd(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},yd(n,u)),s.createElement("div",{className:this._classNames.calloutContentY},yd(o,u))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},yd(l[0],u)),"/",s.createElement("span",{className:this._classNames.denominator},yd(l[1],u))))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},t}(s.Component),Ed=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)}]}},Ld=E(Sd,Ed);function kd(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 Ad(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=kd(e,e[n],t[n]))}(e,{componentDidMount:wd,componentDidUpdate:Dd,componentWillUnmount:Td})}function wd(){Md(this.props.componentRef,this)}function Dd(e){e.componentRef!==this.props.componentRef&&(Md(e.componentRef,null),Md(this.props.componentRef,this))}function Td(){Md(this.props.componentRef,null)}function Md(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Pd(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"}(bd||(bd={}));var Nd,Fd="data-is-focusable",Vd="data-focuszone-id",Id="tabindex",Od="data-no-vertical-wrap",Hd="data-no-horizontal-wrap",Bd=999999999,Rd=-999999999;function Wd(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 zd,Yd={},Ud=new Set,Xd=["text","number","password","email","tel","url","search","textarea"],qd=!1,jd=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,qd)}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,qd);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!==bd.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusLeft(t)))break;return;case 39:if(r!==bd.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusRight(t)))break;return;case 38:if(r!==bd.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusUp()))break;return;case 40:if(r!==bd.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!==bd.vertical&&c._shouldWrapFocus(c._activeElement,Hd)?(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,Od)?Bd:Rd},Ad(c),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 Ud.size},t._onKeyDownCapture=function(e){9===e.which&&Ud.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Yd[this._id]=this,e){for(var n=Le(e,qd);n&&n!==this._getDocument().body&&1===n.nodeType;){if(He(n)){this._isInnerZone=!0;break}n=Le(n,qd)}this._isInnerZone||(Ud.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,qd)||this._defaultFocusElement&&!Ae(this._root.current,this._defaultFocusElement,qd))&&(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 Yd[this._id],this._isInnerZone||(Ud.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((Nd||(Nd=ot({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Nd),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(Fd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Yd[n.getAttribute(Vd)];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(Fd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Wd(n,t),!0;n=Le(n,qd)}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 Yd[e.getAttribute(Vd)];for(var t=e.firstElementChild;t;){if(He(t))return Yd[t.getAttribute(Vd)];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===bd.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,Od)?Bd:Rd:((-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,Od)?Bd:Rd:((-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,Hd);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!==bd.vertical?a=r.right-o.right:n||(a=Rd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Hd);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!==bd.vertical?a=o.left-r.left:n||(a=Rd),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===bd.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,qd);t&&t!==this._root.current&&t!==this._getDocument().body;){if(He(t))return t;t=Le(t,qd)}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(Fd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Id)&&r.setAttribute(Id,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Id)&&r.setAttribute(Id,"0"))):(r.getAttribute&&"false"===r.getAttribute(Fd)&&r.setAttribute(Id,"-1"),Oe(r)?this.props.disabled?r.setAttribute(Id,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Id)&&r.setAttribute(Id,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Id)&&r.setAttribute(Id,"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&&Xd.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&&Pd(e,this._root.current)},t.prototype._getDocument=function(){return te(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:bd.bidirectional,shouldRaiseClicks:!0},t}(s.Component);function Kd(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"}(zd||(zd={}));var Gd,Zd=he(),$d=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=Zd(i,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:c}),s.createElement(ko,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:Ee.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),Qd=E($d,(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"}(Gd||(Gd={}));var Jd,eh,th=he(),nh=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 zd.Parent:return r._tooltipHost.current.parentElement;case zd.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&&!Kd(i))return}if(!e.target||!Pd(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==Gd.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 Gd.medium:return 300;case Gd.long:return 500;default:return 0}},Ad(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=th(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(Qd,o({},v)),s.createElement("div",{hidden:!0,id:m,style:Kn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Gd.medium},t}(s.Component),rh={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},oh=E(nh,(function(e){var t=e.className,n=e.theme;return{root:[ar(rh,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),ah=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&&Kd(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(oh,{overflowMode:zd.Self,hostClassName:t,content:n},s.createElement("span",o({},_d(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),ih=he(),sh=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=ih(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:"",emptyChart:!1},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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.state.emptyChart?s.createElement("div",{id:xe("_HBC_"),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=ih(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(jd,{direction:bd.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(ah,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(jd,{direction:bd.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(ko,o({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Ld,{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=Se(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=_d(e.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",o({className:this._classNames.chartTitleRight},l),yd(a,t));case"fraction":return s.createElement("div",o({},l),s.createElement("span",{className:this._classNames.chartTitleRight},yd(a,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+yd(i,t)));case"percentage":var c="".concat(yd(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},yi(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}(s.Component),lh=E(sh,(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}}})),ch={host:"ms-HoverCard-host"},uh=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"}(Jd||(Jd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(eh||(eh={}));var dh,hh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function ph(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}function fh(e,t){var n=s.useRef(t);return n.current||(n.current=xe(e)),n.current}function gh(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"}(dh||(dh={}));var mh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},vh=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=ph(!1))||void 0===n||n,p=Ye(mh,e),f=Rr({hasFocus:!1,focusStackId:fh("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,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,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=gh((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=gh((function(e){if(vh.focusStack=vh.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;E||"function"!=typeof(null==e?void 0:e.focus)||!Ae(i.current,t)&&t!==d.body||w(e)}})),P=gh((function(e){if(!v&&f.focusStackId===vh.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){vh.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})))}));vh.displayName="FocusTrapZone",vh.focusStack=[];var _h,yh=function(e){return s.createElement(ko,o({},e),s.createElement(vh,o({disabled:e.hidden},e.focusTrapProps),e.children))},xh=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,a=void 0===r?Ee.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(yh,o({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(ko,o({},m),f))},bh=he(),Ch=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),Ad(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=bh(t,{theme:a,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:i===dh.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(xh,o({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),Sh=E(Ch,(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(hh,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"}),Eh={root:"ms-PlainCard-root"},Lh=he(),kh=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)},Ad(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=Lh(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(xh,o({},this.props,{content:a,className:this._classNames.root}))},t}(s.Component),Ah=E(kh,(function(e){var t,n=e.theme,r=e.className;return{root:[ar(Eh,n).root,{pointerEvents:"auto",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),wh=he(),Dh=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:dh.compact,openMode:"keydown"===e.type?Jd.hotKey:Jd.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:dh.compact,openMode:Jd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:dh.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)))},Ad(n),n._async=new Ot(n),n._events=new uh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:dh.compact,openMode:Jd.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:dh.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:dh.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=wh(l,{theme:c,className:u});var x=o(o({},et(this.props,Je)),{id:y,trapFocus:!!p,firstFocus:f||_===Jd.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===eh.expanding?s.createElement(Sh,o({},b)):s.createElement(Ah,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:eh.expanding},t}(s.Component),Th=E(Dh,(function(e){var t=e.className,n=e.theme;return{host:[ar(ch,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(_h||(_h={}));var Mh=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}}}},Ph=s.createContext({isMeasured:!1}),Nh={position:"fixed",visibility:"hidden"},Fh={position:"relative"};function Vh(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 Ih={isMeasured:!0},Oh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t),a=function(e,t){var n=Rr(Mh),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(Vh,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===_h.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===_h.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]);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:Fh},h&&!p&&s.createElement("div",{style:Nh,ref:d},s.createElement(Ph.Provider,{value:Ih},g(i))),s.createElement("div",{ref:u,style:p?Nh:void 0,"data-automation-id":"visibleContent"},p?g(i):l&&g(l))))}));Oh.displayName="ResizeGroupBase";var Hh,Bh=Oh;!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"}(Hh||(Hh={}));var Rh=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?Hh.PERSISTED_KEYTIP_ADDED:Hh.KEYTIP_ADDED;uh.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||uh.raise(this,Hh.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?Hh.PERSISTED_KEYTIP_REMOVED:Hh.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||uh.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){uh.raise(this,Hh.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){uh.raise(this,Hh.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){uh.raise(this,Hh.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}(),Wh=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]}},Yh=function(e){var t=Rh.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=ph(e);s.useEffect((function(){r&&(zh(n,r),Wh(t,n,e))})),s.useEffect((function(){return Wh(t,n,e),function(){zh(n,e)}}),[])}(c,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},Uh=he(),Xh=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=Uh(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(Yh,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(Yh,o({},e,{className:g.overflowButton})))}));Xh.displayName="OverflowSet";var qh,jh={flexShrink:0,display:"inherit"},Kh=E(Xh,(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",jh],overflowButton:["ms-OverflowSet-overflowButton",jh]}}),void 0,{scope:"OverflowSet"}),Gh=((qh={})["".concat(fd[fd.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",qh["".concat(fd[fd.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",qh["".concat(fd[fd.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",qh["".concat(fd[fd.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",qh["".concat(fd[fd.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",qh["".concat(fd[fd.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",qh["".concat(fd[fd.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",qh["".concat(fd[fd.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",qh["".concat(gd[gd.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",qh),Zh=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(Gh).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===fd[fd.diamond]?45:r===fd[fd.pyramid]?180:0,", 0, 0)")}),s.createElement("path",o({d:Gh[r]},n)))},$h=he(),Qh=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(jd,o({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),s.createElement(Kh,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=$h(l,{theme:c,className:i});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(jd,o({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:bd.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=$h(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:i},g=h||"more";return s.createElement(Th,{type:eh.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var t=Se(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=$h(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=$h(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(Bh,{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(Zh,{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),Jh=E(Qh,(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 ep(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function tp(e){return function(){return e}}function np(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function rp(e){return e}Array.prototype.slice;var op=Math.abs,ap=Math.atan2,ip=Math.cos,sp=Math.max,lp=Math.min,cp=Math.sin,up=Math.sqrt,dp=1e-12,hp=Math.PI,pp=hp/2,fp=2*hp;function gp(e){return e>=1?pp:e<=-1?-pp:Math.asin(e)}function mp(){var e=rp,t=np,n=null,r=tp(0),o=tp(fp),a=tp(0);function i(i){var s,l,c,u,d,h=(i=ep(i)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(fp,Math.max(-fp,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:tp(+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:tp(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:tp(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:tp(+e),i):a},i}var vp=Math.PI,_p=2*vp,yp=1e-6,xp=_p-yp;function bp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Cp(){return new bp}bp.prototype=Cp.prototype={constructor:bp,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,d=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>yp)if(Math.abs(u*s-l*c)>yp&&o){var 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((vp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>yp&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+o+","+o+",0,0,"+ +(u*h>c*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,a){e=+e,t=+t;var i=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>yp||Math.abs(this._y1-c)>yp)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%_p+_p),d>xp?this._+="A"+n+","+n+",0,1,"+u+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>yp&&(this._+="A"+n+","+n+",0,"+ +(d>=vp)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Sp=Cp;function Ep(e){return e.innerRadius}function Lp(e){return e.outerRadius}function kp(e){return e.startAngle}function Ap(e){return e.endAngle}function wp(e){return e&&e.padAngle}function Dp(e,t,n,r,o,a,i){var s=e-n,l=t-r,c=(i?a:-a)/up(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,S=(y<0?-1:1)*up(sp(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,k=(C*y+_*S)/x,A=(-C*_+y*S)/x,w=E-m,D=L-v,T=k-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=k,L=A),{cx:E,cy:L,x01:-u,y01:-d,x11:E*(o/b-1),y11:L*(o/b-1)}}function Tp(){var e=Ep,t=Lp,n=tp(0),r=null,o=kp,a=Ap,i=wp,s=null;function l(){var l,c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=o.apply(this,arguments)-pp,f=a.apply(this,arguments)-pp,g=op(f-p),m=f>p;if(s||(s=l=Sp()),h<d&&(c=h,h=d,d=c),h>dp)if(g>fp-dp)s.moveTo(h*ip(p),h*cp(p)),s.arc(0,0,h,p,f,!m),d>dp&&(s.moveTo(d*ip(f),d*cp(f)),s.arc(0,0,d,f,p,m));else{var v,_,y=p,x=f,b=p,C=f,S=g,E=g,L=i.apply(this,arguments)/2,k=L>dp&&(r?+r.apply(this,arguments):up(d*d+h*h)),A=lp(op(h-d)/2,+n.apply(this,arguments)),w=A,D=A;if(k>dp){var T=gp(k/d*cp(L)),M=gp(k/h*cp(L));(S-=2*T)>dp?(b+=T*=m?1:-1,C-=T):(S=0,b=C=(p+f)/2),(E-=2*M)>dp?(y+=M*=m?1:-1,x-=M):(E=0,y=x=(p+f)/2)}var P=h*ip(y),N=h*cp(y),F=d*ip(C),V=d*cp(C);if(A>dp){var I,O=h*ip(x),H=h*cp(x),B=d*ip(b),R=d*cp(b);if(g<hp&&(I=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<dp))return[e+(h=(u*(t-a)-d*(e-o))/h)*l,t+h*c]}(P,N,B,R,O,H,F,V))){var W=P-I[0],z=N-I[1],Y=O-I[0],U=H-I[1],X=1/cp(((u=(W*Y+z*U)/(up(W*W+z*z)*up(Y*Y+U*U)))>1?0:u<-1?hp:Math.acos(u))/2),q=up(I[0]*I[0]+I[1]*I[1]);w=lp(A,(d-q)/(X-1)),D=lp(A,(h-q)/(X+1))}}E>dp?D>dp?(v=Dp(B,R,P,N,h,D,m),_=Dp(O,H,F,V,h,D,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),D<A?s.arc(v.cx,v.cy,D,ap(v.y01,v.x01),ap(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,D,ap(v.y01,v.x01),ap(v.y11,v.x11),!m),s.arc(0,0,h,ap(v.cy+v.y11,v.cx+v.x11),ap(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,D,ap(_.y11,_.x11),ap(_.y01,_.x01),!m))):(s.moveTo(P,N),s.arc(0,0,h,y,x,!m)):s.moveTo(P,N),d>dp&&S>dp?w>dp?(v=Dp(F,V,O,H,d,-w,m),_=Dp(P,N,B,R,d,-w,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<A?s.arc(v.cx,v.cy,w,ap(v.y01,v.x01),ap(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,w,ap(v.y01,v.x01),ap(v.y11,v.x11),!m),s.arc(0,0,d,ap(v.cy+v.y11,v.cx+v.x11),ap(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,w,ap(_.y11,_.x11),ap(_.y01,_.x01),!m))):s.arc(0,0,d,C,b,m):s.lineTo(F,V)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-hp/2;return[ip(r)*n,cp(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:tp(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:tp(+e),l):r},l.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:tp(+e),l):o},l.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:tp(+e),l):a},l.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:tp(+e),l):i},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var Mp=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}}},Pp=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?_i(".0%")(0===c?0:m/c):yi(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Np(e),null},t.prototype.updateChart=function(e){Np(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,o=t.focusedArcId,a=he()(Mp,{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:Tp()},t}(s.Component);function Np(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Fp=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[Xn]={fill:"rgb(179, 179, 179)"},t)}}},Vp=he(),Ip=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(Pp,{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=mp().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=Vp(Fp,{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=Vp(Fp,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,qu(".".concat(e)).each((function(){for(var e=zu(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:mp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Op=he(),Hp=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:"",emptyChart:!1},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}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});var e=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(e){return e.data>0})).length>0);this.state.emptyChart!==e&&this.setState({emptyChart:e})},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=Op(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.state.emptyChart?s.createElement("div",{id:xe("_DonutChart_"),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(jd,{direction:bd.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(Ip,{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(ko,o({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Ee.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Ld,{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(Jh,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=yd(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.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),Bp=E(Hp,(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 Rp(e){this._context=e}function Wp(e){return new Rp(e)}function zp(e){return e[0]}function Yp(e){return e[1]}function Up(e,t){var n=tp(!0),r=null,o=Wp,a=null;function i(i){var s,l,c,u=(i=ep(i)).length,d=!1;for(null==r&&(a=o(c=Sp())),s=0;s<=u;++s)!(s<u&&n(l=i[s],s,i))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,s,i),+t(l,s,i));if(c)return a=null,c+""||null}return e="function"==typeof e?e:void 0===e?zp:tp(e),t="function"==typeof t?t:void 0===t?Yp:tp(t),i.x=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),i):e},i.y=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),i):t},i.defined=function(e){return arguments.length?(n="function"==typeof e?e:tp(!!e),i):n},i.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),i):o},i.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),i):r},i}Rp.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 Xp=he(),qp=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(),_._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},_d(e.xAxisCalloutAccessibilityData,"text",!1)),yd(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({},_d(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===Gu.StringAxis){var t=cd(_._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=cd(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=cd(r,".".concat(_._classNames.xAxis," text")),e+=Math.max(Math.ceil(t),10)}else t=cd(_._tickValues,".".concat(_._classNames.xAxis," text")),e+=Math.ceil(t);var o=_.margins.left+_.margins.right+e*(_._tickValues.length-1);return[Ku.GroupedVerticalBarChart,Ku.VerticalBarChart,Ku.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===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=cd(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===Gu.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];zu(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 zu(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===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=cd(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,S=p.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var E=o({},this.margins);this.props.chartType===Ku.HorizontalBarChartWithAxis&&(this._isRtl?E.right+=this.state.startFromX:E.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(E);var L,k,A,w,D={domainNRangeValues:hd(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:pd(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0};switch(this.props.xAxisType){case Gu.NumericAxis:L=(e=ad(D,this.props.chartType,x)).xScale,k=e.tickValues;break;case Gu.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=Ec().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=Wo(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=al(o);m.tickFormat((function(e,t){return id(e,v)}))}t.tickValues&&m.tickValues(t.tickValues),void 0===n&&t.tickFormat&&m.tickFormat(sl(t.tickFormat)),l&&zu(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):id(e)}));return{xScale:g,tickValues:_}}(D,this.props.tickParams,x,b,C,S),L=t.xScale,k=t.tickValues;break;case Gu.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=Nc().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Wo(g).tickSize(l).tickPadding(u).ticks(i).tickFormat((function(e,t){return yd(n[t],r)}));return e.xAxisElement&&zu(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}(D,this.props.tickParams,this.props.datasetForXAxisDomain,x),L=n.xScale,k=n.tickValues;break;default:L=(r=ad(D,this.props.chartType,x)).xScale,k=r.tickValues}if(this._xScale=L,this._tickValues=k,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var M={node:this.xAxisElement,xAxis:L,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=L&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var a=zu(t).call(n),i=0,s=[];return a.selectAll(".tick text").each((function(){var e=zu(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}}(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var N,F,V,I,O,H,B={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Zu.StringAxis?A=function(e,t,n,r,o,a){return r===Ku.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=Nc().domain(t).range([a-l.bottom-r/2,l.top+r/2]),h=(n?Ro(d):zo(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&zu(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=Nc().domain(t).range([r-i.bottom,i.top]).padding(u),h=(n?Ro(d):zo(d)).tickPadding(a).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&zu(l).call(h).selectAll("text"),d}(e,t,n)}(T,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions)&&(w=sd({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:pd(g,m),yAxisPadding:this.props.yAxisPadding},this._isRtl,B,m,this.props.barwidth,!0)),A=sd(T,this._isRtl,B,m,this.props.barwidth)),this.props.chartType===Ku.HorizontalBarChartWithAxis&&A&&(N=this.yAxisElement,F=A,V=this.props.noOfCharsToTruncate||4,I=this.props.showYAxisLablesTooltip||!1,O=this.state.startFromX,H=this._isRtl,null!==N&&zu(N).call(F).selectAll(".tick text").each((function(){var e=zu(this),t=e.text(),n="".concat(e.text().slice(0,V),"..."),r=e.text().length,o=I?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),I&&r>V?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",H?O:i).attr("y",a).attr("dx",o+0+"em").text(t)}))),this.props.getAxisData&&this.props.getAxisData(B),this._getData(L,A),this._classNames=Xp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var R,W={width:this.state.containerWidth,height:this.state.containerHeight},z=this.props.children(o(o({},this.state),{xScale:L,yScale:A,yScaleSecondary:w}));return R=this.props.focusZoneDirection===bd.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:bd.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(jd,o({direction:R,className:this._classNames.chartWrapper},_),s.createElement("svg",o({width:W.width,height:W.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(W.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?W.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:W.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),z)),!this.props.hideLegend&&s.createElement("div",{ref:function(e){return h.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(ko,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(Ld,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=Xp(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=yd(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}," ",yd(e,l)),s.createElement("div",{className:i.calloutContentY},yd(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(Zh,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:fd[e.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},yd(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?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),jp=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}(),Kp=E(qp,(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[Xn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[Xn]={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[Xn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(a={},a[Xn]={opacity:.1,stroke:"rgb(179, 179, 179)"},a)},g:[h&&!jp&&{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[Xn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[o(o({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Xn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Xn]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),Gp=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 Zp(e,t){return Gp(e)(t)}var $p=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)},Qp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Jp="spacer-",ef={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},tf=function(e){return e.getBoundingClientRect()},nf=tf,rf=tf,of=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,S=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;c&&!S||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},S))}return s.createElement("div",o({},g),v)},Ad(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Ot(n),n._events=new uh(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=rf(this._scrollElement),h=$p(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 Qp(this._scrollElement,i);case 2:return void Qp(this._scrollElement,m-d.height);case 3:return void Qp(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&&Qp(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?Zp(a,this._onRenderSurface):this._onRenderSurface;return(i?Zp(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({},ef),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,S=Ce(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,E=!m||C>=m.top&&u<=m.bottom,L=!_._requiredRect||C>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(L||E&&S)||!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(Jp+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=Jp+"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({},ef),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=$p(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=nf(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=af(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=af(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 af(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 sf,lf=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=zu(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))},cf={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"},uf={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"]},df={qualitative:uf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},hf=Object.values(uf),pf=Object.values(cf),ff=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},gf=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=hf[(e+t)%hf.length];return ff(r,n)},mf=function(e,t){if(void 0===t&&(t=!1),pf.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],a=df[r][o];return ff(a,t)}return e},vf=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(ko,{target:o.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(jd,{isCircularNavigation:!0,direction:bd.vertical},s.createElement(of,{items:u,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var d=e.textColor?mf(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(lf,{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)},_f=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?mf(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(vf,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)},yf=he();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(sf||(sf={}));var xf=Uo((function(e){return e.x})).left,bf=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?gf(t,0,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted):mf(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?sf.hoverSize:1===t||r?2.5*l:sf.invisibleSize:c===e?sf.hoverSize:sf.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(vd).length:0,d=vd[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=pd(n._points,Ku.LineChart),a=0;a<n._colorFillBars.length;a++){var i=n._colorFillBars[a],l=xe(i.legend.replace(/\W/g,"")),c=mf(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(Xu(document.getElementById(n._rectId),r)[0]),i=xf(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(md(o[e].data[0].x,!0)){case Gu.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 Gu.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=Se(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),zu("#".concat(n._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(n._xAxisScale(x.x))).attr("cy","".concat(n._yAxisScale(x.y))).attr("visibility","visibility"),zu("#".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=Se(n._calloutPoints,(function(e){return e.x===s}));if(l){var c=n;zu("#".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=Se(n._calloutPoints,(function(e){return e.x===c}));d?(zu("#".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(){zu("#".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,emptyChart:!1},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=ld(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"),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=ld(this._points)||[])},t.prototype.componentDidMount=function(){var e=!(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);this.state.emptyChart!==e&&this.setState({emptyChart:e})},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=dd(this._points),u=this._points;i&&i.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=ld(u));var d=this._createLegends(this._points),h=o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.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.state.emptyChart?s.createElement("div",{id:xe("_LineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Ku.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Gu.DateAxis:Gu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,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:"#C8C8C8",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(_f,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:fd[e.index%Object.keys(vd).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r,o=e.legend,a=mf(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(Jh,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,S,E,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,X="".concat(P._circleId,"_").concat(e);F.push(s.createElement("circle",o({id:X,key:X,r:O===X?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===X?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,X,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,X,U),onMouseOut:P._handleMouseOut,strokeWidth:O===X?4:0,stroke:O===X?I:"",role:"img","aria-label":P._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){D._refCallback(e,X)},onFocus:function(){return D._handleFocus(X,W,Y,X,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[0].onDataPointClick))))}var q=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 K=Up().x((function(e){return D._xAxisScale(e[0])})).y((function(e){return D._yAxisScale(e[1])})).curve(Wp),G="".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:K(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:G,key:G,d:K(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:G,key:G,d:K(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,q),r=n.isInGap;q=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"),X=P._points[e].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,t,!0,P._points[e].index);var K=P._points[e].data[t],G=K.xAxisCalloutData,Z=K.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,G,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,g,G,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t].onDataPointClick),{opacity:z&&!X?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===(S=P._points[e].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(E=P._points[e].lineOptions)||void 0===E?void 0:E.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=yf(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=zu(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&&ud(I)}return T},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.defaultProps={enableReflow:!0},t}(s.Component),Cf=E(bf,(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 Sf(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 Ef(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Lf(e,t){return e[t]}function kf(e){const t=[];return t.key=e,t}function Af(e,t,n){var r=null,o=tp(!0),a=null,i=Wp,s=null;function l(l){var c,u,d,h,p,f=(l=ep(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==a&&(s=i(p=Sp())),c=0;c<=f;++c){if(!(c<f&&o(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+e(h,c,l),v[c]=+t(h,c,l),s.point(r?+r(h,c,l):m[c],n?+n(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return Up().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?zp:tp(+e),t="function"==typeof t?t:tp(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Yp:tp(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:tp(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:tp(+e),l):n},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(n)},l.lineX1=function(){return c().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:tp(!!e),l):o},l.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),l):i},l.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),l):a},l}function wf(e){return e<0?-1:1}function Df(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(wf(a)+wf(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function Tf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mf(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 Pf(e){this._context=e}function Nf(e){this._context=e}function Ff(e){return new Pf(e)}Pf.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:Mf(this,this._t0,Tf(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,Mf(this,Tf(this,n=Df(this,e,t)),n);break;default:Mf(this,this._t0,n=Df(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 Nf(e)}.prototype=Object.create(Pf.prototype)).point=function(e,t){Pf.prototype.point.call(this,t,e)},Nf.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 Vf,If=he(),Of=Uo((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Vf||(Vf={}));var Hf=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(Xu(document.getElementById(n._rectId),e)[0]),o=Of(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=md(t[0].data[0].x,!0)){case Gu.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 Gu.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,_=Se(n._calloutPoints,(function(e){return e.x===v})),y=s===Gu.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:Vf.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Vf.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Vf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=tp([]),t=Ef,n=Sf,r=Lf;function o(o){var a,i,s=Array.from(e.apply(this,arguments),kf),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=ep(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:tp(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:tp(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Ef:"function"==typeof e?e:tp(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Sf:e,o):n},o}().keys(e)(t),o=jo(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){var t=[],r=[],o=[],a=[],i=ld(e);e&&e.length&&e.forEach((function(e){o.push(e.color),a.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.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})),r.push(n);var o=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==o}))};s.length;)l();for(var c=r&&Object.keys(r[0]).length,u=[],d=0;d<c-1;d++){var h="chart".concat(d);u.push(h)}var p=n._getStackedData(u,r);return{colors:o,opacity:a,keys:u,stackedInfo:p,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(Jh,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=Af().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Ff),p=Up().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Ff),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":!0,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":!0,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=If(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=zu(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&&ud(_)}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?gf(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):mf(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:Vf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,emptyChart:!(n.props.data&&n.props.data.lineChartData&&n.props.data.lineChartData.length>0&&0===n.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length),activePoint:""},n._uniqueIdForGraph=xe("areaChart_"),n._verticalLineId=xe("verticalLine_"),n._circleId=xe("circle"),n._rectId=xe("rectangle"),n._tooltipId=xe("AreaChartTooltipID"),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.state.emptyChart){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=dd(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:Ee.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(Kp,o({},this.props,{chartTitle:r,points:a,chartType:Ku.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Gu.DateAxis:Gu.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,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:xe("_AreaChart_"),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}(s.Component),Bf=E(Hf,(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"})}})),Rf=function(e){return{root:{fill:e.color,stroke:zn.white,strokeWidth:2}}},Wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Yf(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Yf(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,o=he()(Rf,{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:Tp()},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,"-",yd(n.data.y,o)))},t}(Wf);function Yf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Uf,Xf=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=Pc().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:mp().sort(null).value((function(e){return e.y}))},t}(s.Component),qf=he(),jf=function(e){function t(t){var n=e.call(this,t)||this;return n.state={emptyChart:!1},n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.y>0})).length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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=qf(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return this.state.emptyChart?s.createElement("div",{id:xe("_PieChart_"),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(Xf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:o,chartTitle:a}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),Kf=E(jf,(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)]}})),Gf=he(),Zf=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:"",emptyChart:!1},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}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0);this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){if(!this.state.emptyChart){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=Gf(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 yd(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(jd,{direction:bd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(ah,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),h&&s.createElement("div",o({},_d(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(f,l))),p&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(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(jd,{direction:bd.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(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Ld,{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:xe("_SBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._adjustProps=function(){this._classNames=Gf(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=Gf(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,x:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(c,r),this._addLegend(c,a);var v=s.createElement(Jh,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,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.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),$f=E(Zf,(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"}(Uf||(Uf={}));var Qf,Jf=he(),eg=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=Jf(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(Jh,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:"",emptyChart:!1},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return e.chartData&&0===e.chartData.length})).length);this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;if(!this.state.emptyChart){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=Jf(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(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Ld,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return s.createElement("div",{id:xe("_MSBC_"),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===Uf.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===Uf.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=Jf(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===Uf.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"},yi(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!==Uf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==Uf.AbsoluteScale&&!x&&1===e.chartData.length,S=function(){return yd(e.chartData[0].data?e.chartData[0].data:0,c)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(jd,{direction:bd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(ah,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),b&&s.createElement("div",o({},_d(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},S()),!a&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(h,c))),C&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(e.chartDataAccessibilityData,"text",!1)),S()))),s.createElement(jd,{direction:bd.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.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),tg=E(eg,(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===Uf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===Uf.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!==Uf.AbsoluteScale||c?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(Qf||(Qf={}));var ng,rg=he(),og=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===Gu.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=Up().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",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{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,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?Qf.show:Qf.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(Ld,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(Ld,{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===Gu.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=jo(n._points,(function(e){return e.x})),a=Ko(n._points,(function(e){return e.x}));return{xBarScale:Si().domain(n._isRtl?[o,a]:[a,o]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Si().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Nc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Si().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(Jh,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!==Gu.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:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=xe("callout"),n._tooltipId=xe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?md(n.props.data[0].x,!0):Gu.StringAxis,n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.state.emptyChart||0===this._points.length||jo(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(jo(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=rg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=o(o(o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.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),_d(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xe("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{points:this._points,chartType:Ku.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:bd.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.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 Si().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=rg(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",{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=zu(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&&ud(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",{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=zu(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&&ud(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},yi(n<1e3?".2~":".1",n)(n))},t}(s.Component),ag=E(og,(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}}})),ig=he();!function(e){e.show="visibility",e.hide="hidden"}(ng||(ng={}));var sg=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===Gu.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:ng.show,radius:8}:o===t?{visibility:ng.show,radius:.3}:{visibility:ng.hide,radius:0}:{visibility:a===e?ng.show:ng.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,Gu.NumericAxis,a.xAxisPoint)),h=n._xAxisType===Gu.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=ig(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)")},yi(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=zu(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&&ud(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var o=n._yMax,a=Si().domain([0,o]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var i=jo(n._dataset,(function(e){return e.x})),s=Ko(n._dataset,(function(e){return e.x}));return{xBarScale:Si().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:Nc().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===Gu.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!==Gu.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:"",emptyChart:!(n.props.data&&n.props.data.length>0&&0===n.props.data.filter((function(e){return 0===e.chartData.length})).length)},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xe("callout"),n._tooltipId=xe("VSBCTooltipId_"),n.props.data&&n.props.data.length&&!n.props.data.filter((function(e){return void 0===e.xAxisPoint})).length?(n._adjustProps(),n._dataset=n._createDataSetLayer()):n.state=o(o({},n.state),{emptyChart:!0}),n._createLegendsForLine=tr((function(e){return n._getLineLegends(e)})),n._domainMargin=8,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.state.emptyChart){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=ig(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.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),_d(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Kp,o({},this.props,{points:this._dataset,chartType:Ku.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:i,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:a||t?bd.horizontal:bd.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.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:xe("_VSBC_"),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=md(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(Ld,{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(Jh,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}(s.Component),lg=E(sg,(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}}})),cg=he(),ug=.1/.9,dg=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=Si().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},yi(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=zu(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&&ud(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 Nc().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)*ug))},n._createX1Scale=function(e){var t=e.bandwidth();return Nc().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(Jh,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)*ug*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)*ug))))/(n._keys.length+(n._keys.length-1)*ug),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:"",emptyChart:!1},n._refArray=[],n._calloutId=xe("callout"),n._tooltipId=xe("GVBCTooltipId_"),n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.series.length})).length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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=md(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),c=jo(this._dataset,(function(t){return jo(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=cg(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:Ee.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}),_d(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xe("_GVBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{points:this._datasetForBars,chartType:Ku.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:bd.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)*ug),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}(s.Component),hg=E(dg,(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}}})),pg=he(),fg=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,")")},yd(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(Jh,o({},r,{legends:a}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Si().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Gu.DateAxis?"".concat(e.getTime()):n._xAxisType===Gu.StringAxis?e:n._xAxisType===Gu.NumericAxis?"".concat(e):""},n._getYIndex=function(e){return n._yAxisType===Zu.DateAxis?"".concat(e.getTime()):n._yAxisType===Zu.StringAxis?e:n._yAxisType===Zu.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===Gu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Gu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Gu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Gu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Gu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Gu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Zu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,a)),n._yAxisType===Zu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Zu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(e,a)]=c[e]:n._yAxisType===Zu.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===Gu.DateAxis||n._xAxisType===Gu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Gu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Gu.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===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),sl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return _i(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=md(a,!0),n._yAxisType=md(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:"",emptyChart:!1},n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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=pg(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:Ee.topAutoEdge,onDismiss:this._closeCallout}),_d(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=o(o({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this.state.emptyChart?s.createElement("div",{id:xe("_HeatMap_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{points:n,chartType:Ku.HeatMapChart,xAxisType:Gu.StringAxis,yAxisType:Zu.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:bd.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),gg=E(fg,(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 mg(e,t){return t-1-e.height}function vg(e,t){return e.sourceLinks.length?e.depth:t-1}function _g(e){return function(){return e}}function yg(e,t){return bg(e.source,t.source)||e.index-t.index}function xg(e,t){return bg(e.target,t.target)||e.index-t.index}function bg(e,t){return e.y0-t.y0}function Cg(e){return e.value}function Sg(e){return e.index}function Eg(e){return e.nodes}function Lg(e){return e.links}function kg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ag({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 wg{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 Dg(e){return new wg(e,!0)}var Tg=he(),Mg="#757575",Pg=[{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"}],Ng="#323130",Fg="#FFFFFF",Vg=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,emptyChart:!(n.props.data&&n.props.data.SankeyChartData&&n.props.data.SankeyChartData.nodes.length>0&&n.props.data.SankeyChartData.links.length>0)},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}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.state.emptyChart){var t=this.props,n=t.theme,r=t.className,a=t.styles,i=t.pathColor;this._classNames=Tg(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:Ee.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(jd,{direction:bd.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(ko,o({},f),s.createElement(Ld,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))}return s.createElement("div",{id:xe("_SankeyChart_"),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=Sg,u=vg,d=Eg,h=Lg,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=kg(r,t)),"object"!=typeof o&&(o=n.target=kg(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(Go(t.sourceLinks,Cg),Go(t.targetLinks,Cg)):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=jo(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)/(jo(c,(e=>e.length))-1)),function(t){const n=Ko(t,(t=>(i-o-(t.length-1)*e)/Go(t,Cg)));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),Ag(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(bg),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+=S(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(bg),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(xg);for(const{target:{targetLinks:t}}of e)t.sort(yg)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(xg),n.sort(yg)}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 S(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 Ag(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:_g(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:_g(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:_g(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:_g(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?mg:vg),{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(Go(e.sourceLinks,(function(e){return e.unnormalizedValue})),Go(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 Go(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-Go(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=Af().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(Dg),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=zu(".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),qu(".tempText").remove()}var c=t._truncateText(e.name,116,a),u="..."===c.slice(-3),d=xe("tooltip"),h=zu("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?Fg:Ng,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?Fg:Ng,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=Pg.map((function(e){return e.fillColor})),t=Pg.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:Mg:Mg},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.getBoundingClientRect().width,a=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=zu(".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),qu(".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}(s.Component),Ig=E(Vg,(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[Xn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[Xn]={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[Xn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Og(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 Hg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Rg)):void 0===t&&(t=Bg);for(var n,r,o,a,i,s=new Yg(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 Yg(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(zg)}function Bg(e){return e.children}function Rg(e){return Array.isArray(e)?e[1]:null}function Wg(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 Yg(e){this.data=e,this.depth=this.height=0,this.parent=null}function Ug(e,t){return e.parent===t.parent?1:2}function Xg(e){var t=e.children;return t?t[0]:e.t}function qg(e){var t=e.children;return t?t[t.length-1]:e.t}function jg(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 Kg(e,t,n){return e.a.parent===t.parent?e.a:n}function Gg(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}Yg.prototype=Hg.prototype={constructor:Yg,count:function(){return this.eachAfter(Og)},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 Hg(this).eachBefore(Wg)},[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)}},Gg.prototype=Object.create(Yg.prototype);var Zg,$g,Qg=he(),Jg=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=zu(".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),qu(".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}(),em=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=Hg(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=Ug,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new Gg(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 Gg(r[o],o)),n.parent=t;return(i.parent=new Gg(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=qg(s),a=Xg(a),s&&a;)l=Xg(l),(i=qg(i)).a=t,(o=s.z+d-a.z-c+e(s._,a._))>0&&(jg(Kg(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=a.m,h+=l.m,u+=i.m;s&&!qg(i)&&(i.t=s,i.m+=d-u),a&&!Xg(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,S=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 E=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=E[0])||void 0===i?void 0:i.y,D=0;D<E.length;++D){var T=E[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===E.length?A:L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+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+=S+m):E.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===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+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+=S+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=Ko(E=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=jo(E,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},t}(Jg),tm=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=Qg(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=qu("text"),n=qu("rect"),r=qu("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 em(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(jd,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),nm=E(tm,(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"}(Zg||(Zg={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}($g||($g={}));var rm,om=he(),am=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,_emptyChart:!1},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=!(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);if(this.state._emptyChart!==t)this.setState({_emptyChart:t});else{var n=Af().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Wp);this.area=n;var r=Up().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Wp);this.line=r;var o=this.props.data.lineChartData[0].data,a=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]}(o,(function(e){return e.x})),i=a[0],s=a[1];this.x=Si().domain([i,s]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Si().domain([0,jo(o,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:o})}},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=om(this.props.styles,{theme:this.props.theme});return this.state._emptyChart?s.createElement("div",{id:xe("_SparklineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(jd,{direction:bd.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}(s.Component),im=E(am,(function(e){return{inlineBlock:{display:"inline"},valueText:o(o({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),sm=he(),lm=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):gf(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):gf(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Ld,{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===Zu.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):gf(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):gf(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=jo(n._points,(function(e){return e.x})),a=jo(n._points,(function(e){return e.y}));return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,t-n.margins.right]),yBarScale:i=Si().domain([0,a]).range([e-n.margins.bottom,n.margins.top])}}o=jo(n._points,(function(e){return e.x}));var i=Nc().domain(n._yAxisLabels).range([e-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).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):gf(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(Jh,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?md(n.props.data[0].x,!0):Gu.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?md(n.props.data[0].y,!1):Zu.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(jo(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=sm(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.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),_d(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Kp,o({},this.props,{points:this._points,chartType:Ku.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:a,legendBars:n,barwidth:this._barHeight,focusZoneDirection:bd.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 Si().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=sm(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):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):gf(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=zu("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){zu(d[e]).on("mouseover",(function(n){t.state.tooltipElement||(a.style("opacity",.9),a.html(l[e]).style("left",Pu.pageX+"px").style("top",Pu.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):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):gf(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=zu(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),cm=E(lm,(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"}(rm||(rm={}));var um=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||!Pd(e.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),n!==Gd.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 Gd.medium:return 300;case Gd.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(Qd,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:Gd.medium},t}(s.Component),dm=[{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}],hm=he(),pm=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=dm.length-1;e>=0;e-=1)if(n._outerRadius>=dm[e].minRadius)return{arcWidth:dm[e].arcWidth,chartValueSize:dm[e].fontSize};return{arcWidth:dm[0].arcWidth,chartValueSize:dm[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?mf(e.color,a.isInverted):gf(t,0,a.isInverted)})),void 0!==o&&s<o&&(i.push({legend:"Unknown",size:o-s,color:a.palette.neutralLight}),s=o);var l=Tp().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(Jh,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===rm.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=zu("#".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},_d(e.xAxisCalloutAccessibilityData,"text",!1)),yd(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({},_d(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=hm(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(jd,{direction:bd.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)},xd(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)},xd(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},_d(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(um,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===rm.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(um,{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(ko,o({target:this.state.calloutTarget,directionalHint:Ee.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=hm(this.props.styles,{theme:this.props.theme,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=yd(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}," ",yd(e,l)),s.createElement("div",{className:i.calloutContentY},yd(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(Zh,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:fd[e.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},yd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t}(s.Component),fm=E(pm,(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[Xn]={color:"rgb(255, 255, 255)"},n),color:i.semanticColors.bodySubtext}),calloutContentY:[o(o({},i.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(r={},r[Xn]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[i.fonts.small,{selectors:(a={},a[Xn]={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.48"),FluentUIReactCharting=t}();
|
|
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 Bf},CartesianChart:function(){return Kp},ChartHoverCard:function(){return Ld},DataVizPalette:function(){return cf},DonutChart:function(){return Bp},GaugeChart:function(){return pm},GaugeValueFormat:function(){return nm},GroupedVerticalBarChart:function(){return hg},HeatMapChart:function(){return gg},HorizontalBarChart:function(){return lh},HorizontalBarChartVariant:function(){return _e},HorizontalBarChartWithAxis:function(){return lm},Legends:function(){return Jh},LineChart:function(){return Cf},MultiStackedBarChart:function(){return tg},MultiStackedBarChartVariant:function(){return Uf},NodesComposition:function(){return Zg},PieChart:function(){return Kf},SankeyChart:function(){return Ig},Shape:function(){return Zh},Sparkline:function(){return am},StackedBarChart:function(){return $f},Textbox:function(){return lf},TreeChart:function(){return tm},TreeTraverse:function(){return $g},VerticalBarChart:function(){return ag},VerticalStackedBarChart:function(){return lg},getChartHoverCardStyles:function(){return Sd},getColorFromToken:function(){return mf},getNextColor:function(){return gf}});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,X="displayName",q=/\:global\((.+?)\)/g;function j(e,t){return e.indexOf(":global(")>=0?e.replace(q,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function K(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?G([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!q.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 G([r],t,j(n,e))})):G([r],t,j(n,e))}function G(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&&G(l,t,n)}else if(Array.isArray(s))G(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)&&K(n,t,h,d[h])}else"object"==typeof u?null!==u&&K(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!==X&&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=G(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,Xe,qe,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},Ke=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"]),Ge=je(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ze=je(Ge,Ke),$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"}(Xe||(Xe={})),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===qe){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),qe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return qe}(),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 Xt(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 qt="cubic-bezier(.1,.9,.2,1)",jt="cubic-bezier(.1,.25,.75,.9)",Kt="0.167s",Gt="0.267s",Zt="0.367s",$t="0.467s",Qt=Xt({from:{opacity:0},to:{opacity:1}}),Jt=Xt({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=Xt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=Xt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=Xt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=Xt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=Xt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=Xt({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 Xt({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(e){return Xt({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(e){return Xt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Vn(e){return Xt({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,qt),slideRightIn20:Mn("".concat(Qt,",").concat(tn),Zt,qt),slideRightIn40:Mn("".concat(Qt,",").concat(nn),Zt,qt),slideRightIn400:Mn("".concat(Qt,",").concat(rn),Zt,qt),slideLeftIn10:Mn("".concat(Qt,",").concat(on),Zt,qt),slideLeftIn20:Mn("".concat(Qt,",").concat(an),Zt,qt),slideLeftIn40:Mn("".concat(Qt,",").concat(sn),Zt,qt),slideLeftIn400:Mn("".concat(Qt,",").concat(ln),Zt,qt),slideUpIn10:Mn("".concat(Qt,",").concat(cn),Zt,qt),slideUpIn20:Mn("".concat(Qt,",").concat(un),Zt,qt),slideDownIn10:Mn("".concat(Qt,",").concat(dn),Zt,qt),slideDownIn20:Mn("".concat(Qt,",").concat(hn),Zt,qt),slideRightOut10:Mn("".concat(Jt,",").concat(pn),Zt,qt),slideRightOut20:Mn("".concat(Jt,",").concat(fn),Zt,qt),slideRightOut40:Mn("".concat(Jt,",").concat(gn),Zt,qt),slideRightOut400:Mn("".concat(Jt,",").concat(mn),Zt,qt),slideLeftOut10:Mn("".concat(Jt,",").concat(vn),Zt,qt),slideLeftOut20:Mn("".concat(Jt,",").concat(_n),Zt,qt),slideLeftOut40:Mn("".concat(Jt,",").concat(yn),Zt,qt),slideLeftOut400:Mn("".concat(Jt,",").concat(xn),Zt,qt),slideUpOut10:Mn("".concat(Jt,",").concat(bn),Zt,qt),slideUpOut20:Mn("".concat(Jt,",").concat(Cn),Zt,qt),slideDownOut10:Mn("".concat(Jt,",").concat(En),Zt,qt),slideDownOut20:Mn("".concat(Jt,",").concat(Sn),Zt,qt),scaleUpIn100:Mn("".concat(Qt,",").concat(Ln),Zt,qt),scaleDownIn100:Mn("".concat(Qt,",").concat(An),Zt,qt),scaleUpOut103:Mn("".concat(Jt,",").concat(wn),Kt,jt),scaleDownOut98:Mn("".concat(Jt,",").concat(kn),Kt,jt),fadeIn100:Mn(Qt,Kt,jt),fadeIn200:Mn(Qt,Gt,jt),fadeIn400:Mn(Qt,Zt,jt),fadeIn500:Mn(Qt,$t,jt),fadeOut100:Mn(Jt,Kt,jt),fadeOut200:Mn(Jt,Gt,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)",Xn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",qn="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(qn," &").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 Kn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Gn=!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(!Gn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(er),Gn=!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},Xr=he({disableCaching:!0});function qr(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,!Gr((h=l).elementPosition,p.elementPosition)||!Gr(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=qr(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],X=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),q=o(o({},null==R?void 0:R.elementPosition),{maxHeight:W});if(X&&(q.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,K=d&&!!k,G=Xr(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:G.container,style:$},s.createElement("div",o({},et(n,Je,Yr),{className:tt(G.root,R&&R.targetEdge&&Wr[R.targetEdge]),style:R?o({},q):zr,tabIndex:-1,ref:F}),K&&s.createElement("div",{className:G.beak,style:Kr(R)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ut,o({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:i,ariaLabelledBy:c,className:G.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 Kr(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 Gr(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=he(),Co=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(qn);e&&n&&e.classList.add(qn)}),[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=bo(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]),s.createElement("span",{className:"ms-layer",ref:i},l.current&&to.createPortal(s.createElement(ro,{layerRoot:!0,providerRef:w},s.createElement(fo,o({},!v&&(uo||(uo={},["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 uo[e]=Eo}))),uo),_,{className:tt(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Co.displayName="LayerBase";var Eo=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},So={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Lo=S(Co,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=ar(So,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"]}),ko=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(Lo,o({},n),l)}));ko.displayName="Callout";var Ao=Array.prototype.slice;function wo(e){return e}var Do=1,To=2,Mo=3,Po=4,No=1e-6;function Fo(e){return"translate("+(e+.5)+",0)"}function Vo(e){return"translate(0,"+(e+.5)+")"}function Io(e){return function(t){return+e(t)}}function Oo(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ho(){return!this.__axis}function Bo(e,t){var n=[],r=null,o=null,a=6,i=6,s=3,l=e===Do||e===Po?-1:1,c=e===Po||e===To?"x":"y",u=e===Do||e===Mo?Fo:Vo;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):wo:o,f=Math.max(a,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Oo:Io)(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===Do?"0em":e===Mo?"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",No).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),E.attr("opacity",No).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",e===Po||e==To?"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(Ho).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===To?"start":e===Po?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Ao.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Ao.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Ao.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 Ro(e){return Bo(To,e)}function Wo(e){return Bo(Mo,e)}function zo(e){return Bo(Po,e)}function Yo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Uo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Yo(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 Xo=Uo(Yo);Xo.right,Xo.left;var qo=Array.prototype;function jo(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 Ko(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 Go(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}qo.slice,qo.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Zo=Math.sqrt(50),$o=Math.sqrt(10),Qo=Math.sqrt(2);function Jo(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>=Zo?10:a>=$o?5:a>=Qo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=Zo?10:a>=$o?5:a>=Qo?2:1)}function ea(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>=Zo?o*=10:a>=$o?o*=5:a>=Qo&&(o*=2),t<e?-o:o}function ta(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function na(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ra(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=ta,n=(t,n)=>ta(e(t),n),r=(t,n)=>e(t)-n):(t=e===ta||e===na?e:oa,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 oa(){return 0}const aa=ra(ta),ia=aa.right;aa.left,ra((function(e){return null===e?NaN:+e})).center;var sa=ia;function la(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ca(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ua(){}var da=.7,ha=1/da,pa="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ma=/^#([0-9a-f]{3,8})$/,va=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),_a=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),ya=new RegExp("^rgba\\("+[pa,pa,pa,fa]+"\\)$"),xa=new RegExp("^rgba\\("+[ga,ga,ga,fa]+"\\)$"),ba=new RegExp("^hsl\\("+[fa,ga,ga]+"\\)$"),Ca=new RegExp("^hsla\\("+[fa,ga,ga,fa]+"\\)$"),Ea={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 Sa(){return this.rgb().formatHex()}function La(){return this.rgb().formatRgb()}function ka(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ma.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Aa(t):3===n?new Ta(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Ta(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Ta(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=va.exec(e))?new Ta(t[1],t[2],t[3],1):(t=_a.exec(e))?new Ta(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ya.exec(e))?wa(t[1],t[2],t[3],t[4]):(t=xa.exec(e))?wa(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ba.exec(e))?Fa(t[1],t[2]/100,t[3]/100,1):(t=Ca.exec(e))?Fa(t[1],t[2]/100,t[3]/100,t[4]):Ea.hasOwnProperty(e)?Aa(Ea[e]):"transparent"===e?new Ta(NaN,NaN,NaN,0):null}function Aa(e){return new Ta(e>>16&255,e>>8&255,255&e,1)}function wa(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ta(e,t,n,r)}function Da(e,t,n,r){return 1===arguments.length?((o=e)instanceof ua||(o=ka(o)),o?new Ta((o=o.rgb()).r,o.g,o.b,o.opacity):new Ta):new Ta(e,t,n,null==r?1:r);var o}function Ta(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ma(){return"#"+Na(this.r)+Na(this.g)+Na(this.b)}function Pa(){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 Na(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Fa(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,n,r)}function Va(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof ua||(e=ka(e)),!e)return new Ia;if(e instanceof Ia)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 Ia(i,s,l,e.opacity)}function Ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Oa(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 Ha(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 Ba(e){return function(){return e}}function Ra(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ba(isNaN(e)?t:e)}la(ua,ka,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Sa,formatHex:Sa,formatHsl:function(){return Va(this).formatHsl()},formatRgb:La,toString:La}),la(Ta,Da,ca(ua,{brighter:function(e){return e=null==e?ha:Math.pow(ha,e),new Ta(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?da:Math.pow(da,e),new Ta(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:Ma,formatHex:Ma,formatRgb:Pa,toString:Pa})),la(Ia,(function(e,t,n,r){return 1===arguments.length?Va(e):new Ia(e,t,n,null==r?1:r)}),ca(ua,{brighter:function(e){return e=null==e?ha:Math.pow(ha,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?da:Math.pow(da,e),new Ia(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 Ta(Oa(e>=240?e-240:e+120,o,r),Oa(e,o,r),Oa(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 Wa=function e(t){var n=function(e){return 1==(e=+e)?Ra: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):Ba(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Da(e)).r,(t=Da(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Ra(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 za(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=Da(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 Ya(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]=$a(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 Ua(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Xa(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function qa(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]=$a(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}za((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 Ha((n-r/t)*t,i,o,a,s)}})),za((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 Ha((n-r/t)*t,o,a,i,s)}}));var ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ka=new RegExp(ja.source,"g");function Ga(e,t){var n,r,o,a=ja.lastIndex=Ka.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=ja.exec(e))&&(r=Ka.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:Xa(n,r)})),a=Ka.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 Za(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 $a(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?Ba(t):("number"===o?Xa:"string"===o?(n=ka(t))?(t=n,Wa):Ga:t instanceof ka?Wa:t instanceof Date?Ua:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Ya:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qa:Xa:Za))(e,t)}function Qa(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ja(e){return+e}var ei=[0,1];function ti(e){return e}function ni(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ri(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=ni(o,r),a=n(i,a)):(r=ni(r,o),a=n(a,i)),function(e){return a(r(e))}}function oi(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]=ni(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=sa(e,t,1,r)-1;return a[n](o[n](t))}}function ai(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ii(){return function(){var e,t,n,r,o,a,i=ei,s=ei,l=$a,c=ti;function u(){var e,t,n,l=Math.min(i.length,s.length);return c!==ti&&(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?oi:ri,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),Xa)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,Ja),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=Qa,u()},d.clamp=function(e){return arguments.length?(c=!!e||ti,u()):c!==ti},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()}}()(ti,ti)}function si(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var li,ci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ui(e){if(!(t=ci.exec(e)))throw new Error("invalid format: "+e);var t;return new di({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 di(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 hi(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 pi(e){return(e=hi(Math.abs(e)))?e[1]:NaN}function fi(e,t){var n=hi(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")}ui.prototype=di.prototype,di.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 gi={"%":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 fi(100*e,t)},r:fi,s:function(e,t){var n=hi(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(li=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")+hi(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 mi(e){return e}var vi,_i,yi,xi=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ci(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=Jo(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=ea(e,t,n);switch((r=ui(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(pi(t)/3)))-pi(Math.abs(e)))}(a,i))||(r.precision=o),yi(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,pi(t)-pi(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,-pi(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return _i(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=Jo(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 Ei(){var e=ii();return e.copy=function(){return ai(e,Ei())},si.apply(e,arguments),Ci(e)}vi=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?mi:(t=xi.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?mi:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xi.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=ui(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"):gi[_]||(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=gi[_],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"===_?bi[8+li/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=ui(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pi(t)/3))),o=Math.pow(10,-r),a=bi[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_i=vi.format,yi=vi.formatPrefix;const Si=1e3,Li=6e4,ki=36e5,Ai=864e5,wi=6048e5,Di=31536e6;var Ti=new Date,Mi=new Date;function Pi(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 Pi((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 Ti.setTime(+t),Mi.setTime(+r),e(Ti),e(Mi),Math.floor(n(Ti,Mi))},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 Ni=Pi((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Ni.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Pi((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Ni:null};var Fi=Ni,Vi=(Ni.range,Pi((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Si)}),(function(e,t){return(t-e)/Si}),(function(e){return e.getUTCSeconds()}))),Ii=Vi,Oi=(Vi.range,Pi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si)}),(function(e,t){e.setTime(+e+t*Li)}),(function(e,t){return(t-e)/Li}),(function(e){return e.getMinutes()}))),Hi=Oi,Bi=(Oi.range,Pi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Si-e.getMinutes()*Li)}),(function(e,t){e.setTime(+e+t*ki)}),(function(e,t){return(t-e)/ki}),(function(e){return e.getHours()}))),Ri=Bi,Wi=(Bi.range,Pi((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Li)/Ai),(e=>e.getDate()-1))),zi=Wi;function Yi(e){return Pi((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())*Li)/wi}))}Wi.range;var Ui=Yi(0),Xi=Yi(1),qi=Yi(2),ji=Yi(3),Ki=Yi(4),Gi=Yi(5),Zi=Yi(6),$i=(Ui.range,Xi.range,qi.range,ji.range,Ki.range,Gi.range,Zi.range,Pi((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()}))),Qi=$i,Ji=($i.range,Pi((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()})));Ji.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pi((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 es=Ji,ts=(Ji.range,Pi((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Li)}),(function(e,t){return(t-e)/Li}),(function(e){return e.getUTCMinutes()}))),ns=ts,rs=(ts.range,Pi((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ki)}),(function(e,t){return(t-e)/ki}),(function(e){return e.getUTCHours()}))),os=rs,as=(rs.range,Pi((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ai}),(function(e){return e.getUTCDate()-1}))),is=as;function ss(e){return Pi((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)/wi}))}as.range;var ls=ss(0),cs=ss(1),us=ss(2),ds=ss(3),hs=ss(4),ps=ss(5),fs=ss(6),gs=(ls.range,cs.range,us.range,ds.range,hs.range,ps.range,fs.range,Pi((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()}))),ms=gs,vs=(gs.range,Pi((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()})));vs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pi((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 _s=vs;function ys(e,t,n,r,o,a){const i=[[Ii,1,Si],[Ii,5,5e3],[Ii,15,15e3],[Ii,30,3e4],[a,1,Li],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,ki],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ai],[r,2,1728e5],[n,1,wi],[t,1,2592e6],[t,3,7776e6],[e,1,Di]];function s(t,n,r){const o=Math.abs(n-t)/r,a=ra((([,,e])=>e)).right(i,o);if(a===i.length)return e.every(ea(t/Di,n/Di,r));if(0===a)return Fi.every(Math.max(ea(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]}vs.range;const[xs,bs]=ys(_s,ms,ls,is,os,ns),[Cs,Es]=ys(es,Qi,Ui,zi,Ri,Hi);var Ss=new Date,Ls=new Date;function ks(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 ks((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 Ss.setTime(+t),Ls.setTime(+r),e(Ss),e(Ls),Math.floor(n(Ss,Ls))},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 As=1e3,ws=6e4,Ds=36e5,Ts=864e5,Ms=6048e5;function Ps(e){return ks((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)/Ms}))}var Ns=Ps(0),Fs=Ps(1),Vs=Ps(2),Is=Ps(3),Os=Ps(4),Hs=Ps(5),Bs=Ps(6),Rs=(Ns.range,Fs.range,Vs.range,Is.range,Os.range,Hs.range,Bs.range,ks((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getUTCDate()-1}))),Ws=Rs;function zs(e){return ks((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())*ws)/Ms}))}Rs.range;var Ys=zs(0),Us=zs(1),Xs=zs(2),qs=zs(3),js=zs(4),Ks=zs(5),Gs=zs(6),Zs=(Ys.range,Us.range,Xs.range,qs.range,js.range,Ks.range,Gs.range,ks((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())*ws)/Ts}),(function(e){return e.getDate()-1}))),$s=Zs,Qs=(Zs.range,ks((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()})));Qs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ks((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 Js=Qs,el=(Qs.range,ks((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()})));el.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ks((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 tl=el;function nl(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 rl(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 ol(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function al(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=ml(o),u=vl(o),d=ml(a),h=vl(a),p=ml(i),f=vl(i),g=ml(s),m=vl(s),v=ml(l),_=vl(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:Ol,e:Ol,f:zl,H:Hl,I:Bl,j:Rl,L:Wl,m:Yl,M:Ul,p:function(e){return o[+(e.getHours()>=12)]},Q:_c,s:yc,S:Xl,u:ql,U:jl,V:Kl,w:Gl,W:Zl,x:null,X:null,y:$l,Y:Ql,Z:Jl,"%":vc},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:ec,e:ec,f:ac,H:tc,I:nc,j:rc,L:oc,m:ic,M:sc,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:_c,s:yc,S:lc,u:cc,U:uc,V:dc,w:hc,W:pc,x:null,X:null,y:fc,Y:gc,Z:mc,"%":vc},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:Al,e:Al,f:Nl,H:Dl,I:Dl,j:wl,L:Pl,m:kl,M:Tl,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:Vl,s:Il,S:Ml,u:yl,U:xl,V:bl,w:_l,W:Cl,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Sl,Y:El,Z:Ll,"%":Fl};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=ul[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=ol(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=rl(ol(a.y))).getUTCDay(),r=o>4||0===o?Fs.ceil(r):Fs(r),r=Ws.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(ol(a.y))).getDay(),r=o>4||0===o?Us.ceil(r):Us(r),r=$s.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?rl(ol(a.y)).getUTCDay():t(ol(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,rl(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 ul?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+="",nl);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,rl);return t.toString=function(){return e},t}}}el.range;var il,sl,ll,cl,ul={"-":"",_:" ",0:"0"},dl=/^\s*\d+/,hl=/^%/,pl=/[\\^$*+?|[\]().{}]/g;function fl(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 gl(e){return e.replace(pl,"\\$&")}function ml(e){return new RegExp("^(?:"+e.map(gl).join("|")+")","i")}function vl(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function _l(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yl(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function El(e,t,n){var r=dl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ll(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 kl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Al(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=dl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=dl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Nl(e,t,n){var r=dl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fl(e,t,n){var r=hl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vl(e,t,n){var r=dl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Il(e,t,n){var r=dl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ol(e,t){return fl(e.getDate(),t,2)}function Hl(e,t){return fl(e.getHours(),t,2)}function Bl(e,t){return fl(e.getHours()%12||12,t,2)}function Rl(e,t){return fl(1+$s.count(Js(e),e),t,3)}function Wl(e,t){return fl(e.getMilliseconds(),t,3)}function zl(e,t){return Wl(e,t)+"000"}function Yl(e,t){return fl(e.getMonth()+1,t,2)}function Ul(e,t){return fl(e.getMinutes(),t,2)}function Xl(e,t){return fl(e.getSeconds(),t,2)}function ql(e){var t=e.getDay();return 0===t?7:t}function jl(e,t){return fl(Ys.count(Js(e),e),t,2)}function Kl(e,t){var n=e.getDay();return e=n>=4||0===n?js(e):js.ceil(e),fl(js.count(Js(e),e)+(4===Js(e).getDay()),t,2)}function Gl(e){return e.getDay()}function Zl(e,t){return fl(Us.count(Js(e),e),t,2)}function $l(e,t){return fl(e.getFullYear()%100,t,2)}function Ql(e,t){return fl(e.getFullYear()%1e4,t,4)}function Jl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fl(t/60|0,"0",2)+fl(t%60,"0",2)}function ec(e,t){return fl(e.getUTCDate(),t,2)}function tc(e,t){return fl(e.getUTCHours(),t,2)}function nc(e,t){return fl(e.getUTCHours()%12||12,t,2)}function rc(e,t){return fl(1+Ws.count(tl(e),e),t,3)}function oc(e,t){return fl(e.getUTCMilliseconds(),t,3)}function ac(e,t){return oc(e,t)+"000"}function ic(e,t){return fl(e.getUTCMonth()+1,t,2)}function sc(e,t){return fl(e.getUTCMinutes(),t,2)}function lc(e,t){return fl(e.getUTCSeconds(),t,2)}function cc(e){var t=e.getUTCDay();return 0===t?7:t}function uc(e,t){return fl(Ns.count(tl(e),e),t,2)}function dc(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Os(e):Os.ceil(e),fl(Os.count(tl(e),e)+(4===tl(e).getUTCDay()),t,2)}function hc(e){return e.getUTCDay()}function pc(e,t){return fl(Fs.count(tl(e),e),t,2)}function fc(e,t){return fl(e.getUTCFullYear()%100,t,2)}function gc(e,t){return fl(e.getUTCFullYear()%1e4,t,4)}function mc(){return"+0000"}function vc(){return"%"}function _c(e){return+e}function yc(e){return Math.floor(+e/1e3)}il=al({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"]}),sl=il.format,il.parse,ll=il.utcFormat,cl=il.utcParse;var xc="%Y-%m-%dT%H:%M:%S.%LZ";function bc(e){return new Date(e)}function Cc(e){return e instanceof Date?+e:+new Date(+e)}function Ec(e,t,n,r,o,a,i,s,l,c){var u=ii(),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,Cc)):h().map(bc)},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 ai(u,Ec(e,t,n,r,o,a,i,s,l,c))},u}function Sc(){return si.apply(Ec(Cs,Es,es,Qi,Ui,zi,Ri,Hi,Ii,sl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||ll(xc),+new Date("2000-01-01T00:00:00.000Z")||cl(xc);class Lc extends Map{constructor(e,t=Tc){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(Ac(this,e))}has(e){return super.has(Ac(this,e))}set(e,t){return super.set(wc(this,e),t)}delete(e){return super.delete(Dc(this,e))}}class kc extends Set{constructor(e,t=Tc){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(Ac(this,e))}add(e){return super.add(wc(this,e))}delete(e){return super.delete(Dc(this,e))}}function Ac({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wc({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dc({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Tc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Mc=Symbol("implicit");function Pc(){var e=new Lc,t=[],n=[],r=Mc;function o(o){let a=e.get(o);if(void 0===a){if(r!==Mc)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 Lc;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 Pc(t,n).unknown(r)},si.apply(o,arguments),o}function Nc(){var e,t,n=Pc().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 Nc(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},si.apply(d(),arguments)}var Fc="http://www.w3.org/1999/xhtml",Vc={svg:"http://www.w3.org/2000/svg",xhtml:Fc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ic(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Vc.hasOwnProperty(t)?{space:Vc[t],local:e}:e}function Oc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fc&&t.documentElement.namespaceURI===Fc?t.createElement(e):t.createElementNS(n,e)}}function Hc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bc(e){var t=Ic(e);return(t.local?Hc:Oc)(t)}function Rc(){}function Wc(e){return null==e?Rc:function(){return this.querySelector(e)}}function zc(){return[]}var Yc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Uc=document.documentElement;if(!Uc.matches){var Xc=Uc.webkitMatchesSelector||Uc.msMatchesSelector||Uc.mozMatchesSelector||Uc.oMatchesSelector;Yc=function(e){return function(){return Xc.call(this,e)}}}}var qc=Yc;function jc(e){return new Array(e.length)}function Kc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Kc.prototype={constructor:Kc,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 Gc(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 Kc(e,a[s]);for(;s<l;++s)(i=t[s])&&(o[s]=i)}function Zc(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 Kc(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function $c(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Qc(e){return function(){this.removeAttribute(e)}}function Jc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function eu(e,t){return function(){this.setAttribute(e,t)}}function tu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ru(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 ou(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function au(e){return function(){this.style.removeProperty(e)}}function iu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function su(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lu(e){return function(){delete this[e]}}function cu(e,t){return function(){this[e]=t}}function uu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function du(e){return e.trim().split(/^|\s+/)}function hu(e){return e.classList||new pu(e)}function pu(e){this._node=e,this._names=du(e.getAttribute("class")||"")}function fu(e,t){for(var n=hu(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function gu(e,t){for(var n=hu(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function mu(e){return function(){fu(this,e)}}function vu(e){return function(){gu(this,e)}}function _u(e,t){return function(){(t.apply(this,arguments)?fu:gu)(this,e)}}function yu(){this.textContent=""}function xu(e){return function(){this.textContent=e}}function bu(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Cu(){this.innerHTML=""}function Eu(e){return function(){this.innerHTML=e}}function Su(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Lu(){this.nextSibling&&this.parentNode.appendChild(this)}function ku(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Au(){return null}function wu(){var e=this.parentNode;e&&e.removeChild(this)}function Du(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Tu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}pu.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 Mu={},Pu=null;function Nu(e,t,n){return e=Fu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Fu(e,t,n){return function(r){var o=Pu;Pu=r;try{e.call(this,this.__data__,t,n)}finally{Pu=o}}}function Vu(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 Iu(e,t,n){var r=Mu.hasOwnProperty(e.type)?Nu:Fu;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 Ou(e,t,n){var r=ou(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 Hu(e,t){return function(){return Ou(this,e,t)}}function Bu(e,t){return function(){return Ou(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Mu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Wu(e,t){this._groups=e,this._parents=t}function zu(e){return"string"==typeof e?new Wu([[document.querySelector(e)]],[document.documentElement]):new Wu([[e]],Ru)}Wu.prototype=function(){return new Wu([[document.documentElement]],Ru)}.prototype={constructor:Wu,select:function(e){"function"!=typeof e&&(e=Wc(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 Wu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?zc: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 Wu(r,o)},filter:function(e){"function"!=typeof e&&(e=qc(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 Wu(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?Zc:Gc,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 Wu(s,o))._enter=l,s._exit=c,s},enter:function(){return new Wu(this._enter||this._groups.map(jc),this._parents)},exit:function(){return new Wu(this._exit||this._groups.map(jc),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 Wu(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=$c);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 Wu(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=Ic(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?Jc:Qc:"function"==typeof t?n.local?ru:nu:n.local?tu:eu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?au:"function"==typeof t?su:iu)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||ou(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?lu:"function"==typeof t?uu:cu)(e,t)):this.node()[e]},classed:function(e,t){var n=du(e+"");if(arguments.length<2){for(var r=hu(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?_u:t?mu:vu)(n,t))},text:function(e){return arguments.length?this.each(null==e?yu:("function"==typeof e?bu:xu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Cu:("function"==typeof e?Su:Eu)(e)):this.node().innerHTML},raise:function(){return this.each(Lu)},lower:function(){return this.each(ku)},append:function(e){var t="function"==typeof e?e:Bc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Bc(e),r=null==t?Au:"function"==typeof t?t:Wc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wu)},clone:function(e){return this.select(e?Tu:Du)},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?Iu:Vu,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?Bu:Hu)(e,t))}};var Yu=0;function Uu(){this._="@"+(++Yu).toString(36)}function Xu(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 qu(e){return"string"==typeof e?new Wu([document.querySelectorAll(e)],[document.documentElement]):new Wu([null==e?[]:e],Ru)}Uu.prototype=function(){return new Uu}.prototype={constructor:Uu,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 ju,Ku,Gu,Zu,$u=ks((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*As)}),(function(e,t){return(t-e)/As}),(function(e){return e.getUTCSeconds()})),Qu=$u,Ju=($u.range,ks((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*As)}),(function(e,t){e.setTime(+e+t*ws)}),(function(e,t){return(t-e)/ws}),(function(e){return e.getMinutes()}))),ed=Ju,td=(Ju.range,ks((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*As-e.getMinutes()*ws)}),(function(e,t){e.setTime(+e+t*Ds)}),(function(e,t){return(t-e)/Ds}),(function(e){return e.getHours()}))),nd=td,rd=(td.range,ks((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()}))),od=rd;function ad(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=Ei().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);a&&p.nice();var f=Wo(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return yd(r,n)}));t===Ku.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&zu(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function id(e,t){var n=t?t.format:sl,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(Qu(e)<e?r:ed(e)<e?o:nd(e)<e?a:$s(e)<e?i:od(e)<e?Ys(e)<e?s:l:Js(e)<e?c:u)(e)}function sd(e,t,n,r,o,a){return void 0===a&&(a=!1),r===Ku.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=Ei().domain([E,C]).range([h-p.bottom,p.top]),L=(t?Ro(S):zo(S)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(_i(".2~s")),s&&zu(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=Ei().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?E:0)]),D=(!t&&r||t&&!r?Ro(w):zo(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(_i(".2~s")),s&&zu(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(e,t,n,a)}rd.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"}(Ku||(Ku={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Gu||(Gu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Zu||(Zu={}));function ld(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 cd=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 ud(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=zu("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){zu(u[e]).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function dd(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 hd(e,t,n,r,o,a,s,l,c){var u;if(a===Gu.NumericAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(e,t,n,r){var o=Ko(e,(function(e){return Ko(e.data,(function(e){return e.x}))})),a=jo(e,(function(e){return jo(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 Ku.VerticalStackedBarChart:u=function(e,t,n,r,o){var a=Ko(e,(function(e){return e.x})),i=jo(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 Ku.VerticalBarChart:u=function(e,t,n,r,o){var a=jo(e,(function(e){return e.x})),i=Ko(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 Ku.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var a=jo(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===Gu.DateAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(e,t,n,r,o){void 0===o&&(o=[]);var a=Ko(e,(function(e){return Ko(e.data,(function(e){return e.x}))})),s=jo(e,(function(e){return jo(e.data,(function(e){return e.x}))})),l=Ko(i(i([],o,!0),[a],!1)),c=jo(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 Ku.VerticalStackedBarChart:case Ku.GroupedVerticalBarChart:case Ku.VerticalBarChart:case Ku.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 pd(e,t,n){var r,o,a;switch(void 0===n&&(n=Zu.NumericAxis),t){case Ku.AreaChart:case Ku.LineChart:r=function(e){var t=jo(e,(function(e){return jo(e.data,(function(e){return e.y}))}));return{startValue:Ko(e,(function(e){return Ko(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Ku.VerticalStackedBarChart:a=jo(o=e,(function(e){return e.y})),r={startValue:Ko(o,(function(e){return e.y})),endValue:a};break;case Ku.VerticalBarChart:r=function(e){var t=jo(e,(function(e){return e.y}));return{startValue:Ko(e,(function(e){return e.y})),endValue:t}}(e);break;case Ku.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===Zu.NumericAxis){var n=jo(e,(function(e){return e.y}));return{startValue:Ko(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 fd,gd,md=function(e,t){if(t)switch(typeof e){case"string":return Gu.StringAxis;case"number":return Gu.NumericAxis;default:return Gu.DateAxis}else switch(typeof e){case"string":return Zu.StringAxis;case"number":return Zu.NumericAxis;default:return Zu.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"}(fd||(fd={})),function(e){e[e.dottedLine=0]="dottedLine"}(gd||(gd={}));var vd=((ju={})[fd.circle]={widthRatio:1},ju[fd.square]={widthRatio:1},ju[fd.triangle]={widthRatio:1},ju[fd.diamond]={widthRatio:1},ju[fd.pyramid]={widthRatio:1},ju[fd.hexagon]={widthRatio:2},ju[fd.pentagon]={widthRatio:1.168},ju[fd.octagon]={widthRatio:2.414},ju),_d=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}},yd=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 xd(e){return yi(e<1e3?".2~":".1",e)(e)}var bd,Cd=he(),Ed=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=Cd(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},yd(n,u)),s.createElement("div",{className:this._classNames.calloutContentY},yd(o,u))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},yd(l[0],u)),"/",s.createElement("span",{className:this._classNames.denominator},yd(l[1],u))))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},t}(s.Component),Sd=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)}]}},Ld=S(Ed,Sd);function kd(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 Ad(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=kd(e,e[n],t[n]))}(e,{componentDidMount:wd,componentDidUpdate:Dd,componentWillUnmount:Td})}function wd(){Md(this.props.componentRef,this)}function Dd(e){e.componentRef!==this.props.componentRef&&(Md(e.componentRef,null),Md(this.props.componentRef,this))}function Td(){Md(this.props.componentRef,null)}function Md(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Pd(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"}(bd||(bd={}));var Nd,Fd="data-is-focusable",Vd="data-focuszone-id",Id="tabindex",Od="data-no-vertical-wrap",Hd="data-no-horizontal-wrap",Bd=999999999,Rd=-999999999;function Wd(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 zd,Yd={},Ud=new Set,Xd=["text","number","password","email","tel","url","search","textarea"],qd=!1,jd=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,qd)}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,qd);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!==bd.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusLeft(t)))break;return;case 39:if(r!==bd.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusRight(t)))break;return;case 38:if(r!==bd.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusUp()))break;return;case 40:if(r!==bd.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!==bd.vertical&&c._shouldWrapFocus(c._activeElement,Hd)?(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,Od)?Bd:Rd},Ad(c),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 Ud.size},t._onKeyDownCapture=function(e){9===e.which&&Ud.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Yd[this._id]=this,e){for(var n=Le(e,qd);n&&n!==this._getDocument().body&&1===n.nodeType;){if(He(n)){this._isInnerZone=!0;break}n=Le(n,qd)}this._isInnerZone||(Ud.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,qd)||this._defaultFocusElement&&!Ae(this._root.current,this._defaultFocusElement,qd))&&(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 Yd[this._id],this._isInnerZone||(Ud.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((Nd||(Nd=ot({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Nd),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(Fd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Yd[n.getAttribute(Vd)];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(Fd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Wd(n,t),!0;n=Le(n,qd)}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 Yd[e.getAttribute(Vd)];for(var t=e.firstElementChild;t;){if(He(t))return Yd[t.getAttribute(Vd)];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===bd.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,Od)?Bd:Rd:((-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,Od)?Bd:Rd:((-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,Hd);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!==bd.vertical?a=r.right-o.right:n||(a=Rd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Hd);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!==bd.vertical?a=o.left-r.left:n||(a=Rd),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===bd.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,qd);t&&t!==this._root.current&&t!==this._getDocument().body;){if(He(t))return t;t=Le(t,qd)}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(Fd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Id)&&r.setAttribute(Id,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Id)&&r.setAttribute(Id,"0"))):(r.getAttribute&&"false"===r.getAttribute(Fd)&&r.setAttribute(Id,"-1"),Oe(r)?this.props.disabled?r.setAttribute(Id,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Id)&&r.setAttribute(Id,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Id)&&r.setAttribute(Id,"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&&Xd.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&&Pd(e,this._root.current)},t.prototype._getDocument=function(){return te(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:bd.bidirectional,shouldRaiseClicks:!0},t}(s.Component);function Kd(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"}(zd||(zd={}));var Gd,Zd=he(),$d=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=Zd(i,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:c}),s.createElement(ko,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),Qd=S($d,(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"}(Gd||(Gd={}));var Jd,eh,th=he(),nh=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 zd.Parent:return r._tooltipHost.current.parentElement;case zd.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&&!Kd(i))return}if(!e.target||!Pd(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==Gd.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 Gd.medium:return 300;case Gd.long:return 500;default:return 0}},Ad(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=th(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(Qd,o({},v)),s.createElement("div",{hidden:!0,id:m,style:Kn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Gd.medium},t}(s.Component),rh={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},oh=S(nh,(function(e){var t=e.className,n=e.theme;return{root:[ar(rh,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),ah=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&&Kd(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(oh,{overflowMode:zd.Self,hostClassName:t,content:n},s.createElement("span",o({},_d(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),ih=he(),sh=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=ih(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:"",emptyChart:!1},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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.state.emptyChart?s.createElement("div",{id:xe("_HBC_"),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=ih(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(jd,{direction:bd.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(ah,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(jd,{direction:bd.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(ko,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,_d(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Ld,{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=_d(e.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",o({className:this._classNames.chartTitleRight},l),yd(a,t));case"fraction":return s.createElement("div",o({},l),s.createElement("span",{className:this._classNames.chartTitleRight},yd(a,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+yd(i,t)));case"percentage":var c="".concat(yd(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},yi(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}(s.Component),lh=S(sh,(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}}})),ch={host:"ms-HoverCard-host"},uh=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"}(Jd||(Jd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(eh||(eh={}));var dh,hh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function ph(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}function fh(e,t){var n=s.useRef(t);return n.current||(n.current=xe(e)),n.current}function gh(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"}(dh||(dh={}));var mh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},vh=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=ph(!1))||void 0===n||n,p=Ye(mh,e),f=Rr({hasFocus:!1,focusStackId:fh("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=gh((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=gh((function(e){if(vh.focusStack=vh.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=gh((function(e){if(!v&&f.focusStackId===vh.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){vh.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})))}));vh.displayName="FocusTrapZone",vh.focusStack=[];var _h,yh=function(e){return s.createElement(ko,o({},e),s.createElement(vh,o({disabled:e.hidden},e.focusTrapProps),e.children))},xh=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(yh,o({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(ko,o({},m),f))},bh=he(),Ch=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),Ad(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=bh(t,{theme:a,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:i===dh.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(xh,o({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),Eh=S(Ch,(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(hh,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"}),Sh={root:"ms-PlainCard-root"},Lh=he(),kh=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)},Ad(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=Lh(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(xh,o({},this.props,{content:a,className:this._classNames.root}))},t}(s.Component),Ah=S(kh,(function(e){var t,n=e.theme,r=e.className;return{root:[ar(Sh,n).root,{pointerEvents:"auto",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),wh=he(),Dh=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:dh.compact,openMode:"keydown"===e.type?Jd.hotKey:Jd.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:dh.compact,openMode:Jd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:dh.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)))},Ad(n),n._async=new Ot(n),n._events=new uh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:dh.compact,openMode:Jd.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:dh.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:dh.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=wh(l,{theme:c,className:u});var x=o(o({},et(this.props,Je)),{id:y,trapFocus:!!p,firstFocus:f||_===Jd.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===eh.expanding?s.createElement(Eh,o({},b)):s.createElement(Ah,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:eh.expanding},t}(s.Component),Th=S(Dh,(function(e){var t=e.className,n=e.theme;return{host:[ar(ch,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(_h||(_h={}));var Mh=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}}}},Ph=s.createContext({isMeasured:!1}),Nh={position:"fixed",visibility:"hidden"},Fh={position:"relative"};function Vh(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 Ih={isMeasured:!0},Oh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t),a=function(e,t){var n=Rr(Mh),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(Vh,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===_h.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===_h.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]);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:Fh},h&&!p&&s.createElement("div",{style:Nh,ref:d},s.createElement(Ph.Provider,{value:Ih},g(i))),s.createElement("div",{ref:u,style:p?Nh:void 0,"data-automation-id":"visibleContent"},p?g(i):l&&g(l))))}));Oh.displayName="ResizeGroupBase";var Hh,Bh=Oh;!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"}(Hh||(Hh={}));var Rh=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?Hh.PERSISTED_KEYTIP_ADDED:Hh.KEYTIP_ADDED;uh.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||uh.raise(this,Hh.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?Hh.PERSISTED_KEYTIP_REMOVED:Hh.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||uh.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){uh.raise(this,Hh.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){uh.raise(this,Hh.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){uh.raise(this,Hh.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}(),Wh=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]}},Yh=function(e){var t=Rh.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=ph(e);s.useEffect((function(){r&&(zh(n,r),Wh(t,n,e))})),s.useEffect((function(){return Wh(t,n,e),function(){zh(n,e)}}),[])}(c,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},Uh=he(),Xh=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=Uh(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(Yh,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(Yh,o({},e,{className:g.overflowButton})))}));Xh.displayName="OverflowSet";var qh,jh={flexShrink:0,display:"inherit"},Kh=S(Xh,(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",jh],overflowButton:["ms-OverflowSet-overflowButton",jh]}}),void 0,{scope:"OverflowSet"}),Gh=((qh={})["".concat(fd[fd.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",qh["".concat(fd[fd.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",qh["".concat(fd[fd.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",qh["".concat(fd[fd.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",qh["".concat(fd[fd.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",qh["".concat(fd[fd.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",qh["".concat(fd[fd.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",qh["".concat(fd[fd.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",qh["".concat(gd[gd.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",qh),Zh=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(Gh).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===fd[fd.diamond]?45:r===fd[fd.pyramid]?180:0,", 0, 0)")}),s.createElement("path",o({d:Gh[r]},n)))},$h=he(),Qh=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(jd,o({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),s.createElement(Kh,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=$h(l,{theme:c,className:i});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(jd,o({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:bd.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=$h(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:i},g=h||"more";return s.createElement(Th,{type:eh.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=$h(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=$h(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(Bh,{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(Zh,{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),Jh=S(Qh,(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 ep(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function tp(e){return function(){return e}}function np(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function rp(e){return e}Array.prototype.slice;const op=Math.abs,ap=Math.atan2,ip=Math.cos,sp=Math.max,lp=Math.min,cp=Math.sin,up=Math.sqrt,dp=1e-12,hp=Math.PI,pp=hp/2,fp=2*hp;function gp(e){return e>=1?pp:e<=-1?-pp:Math.asin(e)}function mp(){var e=rp,t=np,n=null,r=tp(0),o=tp(fp),a=tp(0);function i(i){var s,l,c,u,d,h=(i=ep(i)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(fp,Math.max(-fp,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:tp(+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:tp(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:tp(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:tp(+e),i):a},i}const vp=Math.PI,_p=2*vp,yp=1e-6,xp=_p-yp;function bp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Cp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?bp:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bp;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>yp)if(Math.abs(u*s-l*c)>yp&&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((vp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>yp&&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)>yp||Math.abs(this._y1-c)>yp)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%_p+_p),d>xp?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>yp&&this._append`A${n},${n},0,${+(d>=vp)},${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 Ep(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 Cp(t)}function Sp(e){return e.innerRadius}function Lp(e){return e.outerRadius}function kp(e){return e.startAngle}function Ap(e){return e.endAngle}function wp(e){return e&&e.padAngle}function Dp(e,t,n,r,o,a,i){var s=e-n,l=t-r,c=(i?a:-a)/up(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)*up(sp(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 Tp(){var e=Sp,t=Lp,n=tp(0),r=null,o=kp,a=Ap,i=wp,s=null,l=Ep(c);function c(){var c,u,d,h=+e.apply(this,arguments),p=+t.apply(this,arguments),f=o.apply(this,arguments)-pp,g=a.apply(this,arguments)-pp,m=op(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>dp)if(m>fp-dp)s.moveTo(p*ip(f),p*cp(f)),s.arc(0,0,p,f,g,!v),h>dp&&(s.moveTo(h*ip(g),h*cp(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>dp&&(r?+r.apply(this,arguments):up(h*h+p*p)),w=lp(op(p-h)/2,+n.apply(this,arguments)),D=w,T=w;if(A>dp){var M=gp(A/h*cp(k)),P=gp(A/p*cp(k));(S-=2*M)>dp?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(L-=2*P)>dp?(x+=P*=v?1:-1,b-=P):(L=0,x=b=(f+g)/2)}var N=p*ip(x),F=p*cp(x),V=h*ip(E),I=h*cp(E);if(w>dp){var O,H=p*ip(b),B=p*cp(b),R=h*ip(C),W=h*cp(C);if(m<hp)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<dp))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],X=B-O[1],q=1/cp(((d=(z*U+Y*X)/(up(z*z+Y*Y)*up(U*U+X*X)))>1?0:d<-1?hp:Math.acos(d))/2),j=up(O[0]*O[0]+O[1]*O[1]);D=lp(w,(h-j)/(q-1)),T=lp(w,(p-j)/(q+1))}else D=T=0}L>dp?T>dp?(_=Dp(R,W,N,F,p,T,v),y=Dp(H,B,V,I,p,T,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),T<w?s.arc(_.cx,_.cy,T,ap(_.y01,_.x01),ap(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,T,ap(_.y01,_.x01),ap(_.y11,_.x11),!v),s.arc(0,0,p,ap(_.cy+_.y11,_.cx+_.x11),ap(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,T,ap(y.y11,y.x11),ap(y.y01,y.x01),!v))):(s.moveTo(N,F),s.arc(0,0,p,x,b,!v)):s.moveTo(N,F),h>dp&&S>dp?D>dp?(_=Dp(V,I,H,B,h,-D,v),y=Dp(N,F,R,W,h,-D,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),D<w?s.arc(_.cx,_.cy,D,ap(_.y01,_.x01),ap(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,ap(_.y01,_.x01),ap(_.y11,_.x11),!v),s.arc(0,0,h,ap(_.cy+_.y11,_.cx+_.x11),ap(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,D,ap(y.y11,y.x11),ap(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-hp/2;return[ip(r)*n,cp(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:tp(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:tp(+e),c):r},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:tp(+e),c):o},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:tp(+e),c):a},c.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:tp(+e),c):i},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}Cp.prototype;var Mp=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}}},Pp=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?_i(".0%")(0===c?0:m/c):yi(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Np(e),null},t.prototype.updateChart=function(e){Np(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,o=t.focusedArcId,a=he()(Mp,{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:Tp()},t}(s.Component);function Np(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Fp=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[Xn]={fill:"rgb(179, 179, 179)"},t)}}},Vp=he(),Ip=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(Pp,{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=mp().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=Vp(Fp,{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=Vp(Fp,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,qu(".".concat(e)).each((function(){for(var e=zu(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:mp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Op=he(),Hp=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:"",emptyChart:!1},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}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});var e=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(e){return e.data>0})).length>0);this.state.emptyChart!==e&&this.setState({emptyChart:e})},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=Op(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.state.emptyChart?s.createElement("div",{id:xe("_DonutChart_"),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(jd,{direction:bd.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(Ip,{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(ko,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,_d(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Ld,{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(Jh,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=yd(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.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),Bp=S(Hp,(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 Rp(e){this._context=e}function Wp(e){return new Rp(e)}function zp(e){return e[0]}function Yp(e){return e[1]}function Up(e,t){var n=tp(!0),r=null,o=Wp,a=null,i=Ep(s);function s(s){var l,c,u,d=(s=ep(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:tp(e),t="function"==typeof t?t:void 0===t?Yp:tp(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:tp(!!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}Rp.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 Xp=he(),qp=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(),_._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},_d(e.xAxisCalloutAccessibilityData,"text",!1)),yd(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({},_d(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===Gu.StringAxis){var t=cd(_._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=cd(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=cd(r,".".concat(_._classNames.xAxis," text")),e+=Math.max(Math.ceil(t),10)}else t=cd(_._tickValues,".".concat(_._classNames.xAxis," text")),e+=Math.ceil(t);var o=_.margins.left+_.margins.right+e*(_._tickValues.length-1);return[Ku.GroupedVerticalBarChart,Ku.VerticalBarChart,Ku.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===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=cd(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===Gu.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];zu(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 zu(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===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=cd(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===Ku.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={domainNRangeValues:hd(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:pd(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0};switch(this.props.xAxisType){case Gu.NumericAxis:L=(e=ad(D,this.props.chartType,x)).xScale,k=e.tickValues;break;case Gu.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=Sc().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=Wo(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=al(o);m.tickFormat((function(e,t){return id(e,v)}))}t.tickValues&&m.tickValues(t.tickValues),void 0===n&&t.tickFormat&&m.tickFormat(sl(t.tickFormat)),l&&zu(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):id(e)}));return{xScale:g,tickValues:_}}(D,this.props.tickParams,x,b,C,E),L=t.xScale,k=t.tickValues;break;case Gu.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=Nc().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Wo(g).tickSize(l).tickPadding(u).ticks(i).tickFormat((function(e,t){return yd(n[t],r)}));return e.xAxisElement&&zu(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}(D,this.props.tickParams,this.props.datasetForXAxisDomain,x),L=n.xScale,k=n.tickValues;break;default:L=(r=ad(D,this.props.chartType,x)).xScale,k=r.tickValues}if(this._xScale=L,this._tickValues=k,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var M={node:this.xAxisElement,xAxis:L,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=L&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var a=zu(t).call(n),i=0,s=[];return a.selectAll(".tick text").each((function(){var e=zu(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}}(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var N,F,V,I,O,H,B={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Zu.StringAxis?A=function(e,t,n,r,o,a){return r===Ku.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=Nc().domain(t).range([a-l.bottom-r/2,l.top+r/2]),h=(n?Ro(d):zo(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&zu(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=Nc().domain(t).range([r-i.bottom,i.top]).padding(u),h=(n?Ro(d):zo(d)).tickPadding(a).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&zu(l).call(h).selectAll("text"),d}(e,t,n)}(T,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions)&&(w=sd({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:pd(g,m),yAxisPadding:this.props.yAxisPadding},this._isRtl,B,m,this.props.barwidth,!0)),A=sd(T,this._isRtl,B,m,this.props.barwidth)),this.props.chartType===Ku.HorizontalBarChartWithAxis&&A&&(N=this.yAxisElement,F=A,V=this.props.noOfCharsToTruncate||4,I=this.props.showYAxisLablesTooltip||!1,O=this.state.startFromX,H=this._isRtl,null!==N&&zu(N).call(F).selectAll(".tick text").each((function(){var e=zu(this),t=e.text(),n="".concat(e.text().slice(0,V),"..."),r=e.text().length,o=I?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),I&&r>V?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",H?O:i).attr("y",a).attr("dx",o+0+"em").text(t)}))),this.props.getAxisData&&this.props.getAxisData(B),this._getData(L,A),this._classNames=Xp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var R,W={width:this.state.containerWidth,height:this.state.containerHeight},z=this.props.children(o(o({},this.state),{xScale:L,yScale:A,yScaleSecondary:w}));return R=this.props.focusZoneDirection===bd.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:bd.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(jd,o({direction:R,className:this._classNames.chartWrapper},_),s.createElement("svg",o({width:W.width,height:W.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(W.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?W.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:W.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),z)),!this.props.hideLegend&&s.createElement("div",{ref:function(e){return h.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(ko,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(Ld,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=Xp(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=yd(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}," ",yd(e,l)),s.createElement("div",{className:i.calloutContentY},yd(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(Zh,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:fd[e.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},yd(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?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),jp=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}(),Kp=S(qp,(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[Xn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[Xn]={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[Xn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(a={},a[Xn]={opacity:.1,stroke:"rgb(179, 179, 179)"},a)},g:[h&&!jp&&{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[Xn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[o(o({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Xn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Xn]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),Gp=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 Zp(e,t){return Gp(e)(t)}var $p=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)},Qp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Jp="spacer-",ef={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},tf=function(e){return e.getBoundingClientRect()},nf=tf,rf=tf,of=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)},Ad(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Ot(n),n._events=new uh(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=rf(this._scrollElement),h=$p(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 Qp(this._scrollElement,i);case 2:return void Qp(this._scrollElement,m-d.height);case 3:return void Qp(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&&Qp(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?Zp(a,this._onRenderSurface):this._onRenderSurface;return(i?Zp(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({},ef),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(Jp+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=Jp+"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({},ef),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=$p(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=nf(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=af(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=af(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 af(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 sf,lf=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=zu(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))},cf={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"},uf={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"]},df={qualitative:uf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},hf=Object.values(uf),pf=Object.values(cf),ff=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},gf=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=hf[(e+t)%hf.length];return ff(r,n)},mf=function(e,t){if(void 0===t&&(t=!1),pf.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],a=df[r][o];return ff(a,t)}return e},vf=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(ko,{target:o.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(jd,{isCircularNavigation:!0,direction:bd.vertical},s.createElement(of,{items:u,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var d=e.textColor?mf(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(lf,{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)},_f=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?mf(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(vf,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)},yf=he();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(sf||(sf={}));var xf=Uo((function(e){return e.x})).left,bf=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?gf(t,0,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted):mf(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?sf.hoverSize:1===t||r?2.5*l:sf.invisibleSize:c===e?sf.hoverSize:sf.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(vd).length:0,d=vd[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=pd(n._points,Ku.LineChart),a=0;a<n._colorFillBars.length;a++){var i=n._colorFillBars[a],l=xe(i.legend.replace(/\W/g,"")),c=mf(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(Xu(document.getElementById(n._rectId),r)[0]),i=xf(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(md(o[e].data[0].x,!0)){case Gu.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 Gu.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),zu("#".concat(n._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(n._xAxisScale(x.x))).attr("cy","".concat(n._yAxisScale(x.y))).attr("visibility","visibility"),zu("#".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;zu("#".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?(zu("#".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(){zu("#".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,emptyChart:!1},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=ld(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)})),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=ld(this._points)||[])},t.prototype.componentDidMount=function(){var e=!(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);this.state.emptyChart!==e&&this.setState({emptyChart:e})},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=dd(this._points),u=this._points;i&&i.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=ld(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.state.emptyChart?s.createElement("div",{id:xe("_LineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Ku.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Gu.DateAxis:Gu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,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:"#C8C8C8",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(_f,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:fd[e.index%Object.keys(vd).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r,o=e.legend,a=mf(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(Jh,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,X="".concat(P._circleId,"_").concat(e);F.push(s.createElement("circle",o({id:X,key:X,r:O===X?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===X?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,X,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,X,U),onMouseOut:P._handleMouseOut,strokeWidth:O===X?4:0,stroke:O===X?I:"",role:"img","aria-label":P._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){D._refCallback(e,X)},onFocus:function(){return D._handleFocus(X,W,Y,X,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[0].onDataPointClick))))}var q=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 K=Up().x((function(e){return D._xAxisScale(e[0])})).y((function(e){return D._yAxisScale(e[1])})).curve(Wp),G="".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:K(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:G,key:G,d:K(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:G,key:G,d:K(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,q),r=n.isInGap;q=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"),X=P._points[e].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,t,!0,P._points[e].index);var K=P._points[e].data[t],G=K.xAxisCalloutData,Z=K.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,G,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,g,G,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t].onDataPointClick),{opacity:z&&!X?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=yf(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=zu(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&&ud(I)}return T},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.defaultProps={enableReflow:!0},t}(s.Component),Cf=S(bf,(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 Ef(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 Sf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Lf(e,t){return e[t]}function kf(e){const t=[];return t.key=e,t}function Af(e,t,n){var r=null,o=tp(!0),a=null,i=Wp,s=null,l=Ep(c);function c(c){var u,d,h,p,f,g=(c=ep(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 Up().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?zp:tp(+e),t="function"==typeof t?t:tp(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Yp:tp(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:tp(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:tp(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:tp(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:tp(+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:tp(!!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 wf(e){return e<0?-1:1}function Df(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(wf(a)+wf(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function Tf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mf(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 Pf(e){this._context=e}function Nf(e){this._context=e}function Ff(e){return new Pf(e)}Pf.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:Mf(this,this._t0,Tf(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,Mf(this,Tf(this,n=Df(this,e,t)),n);break;default:Mf(this,this._t0,n=Df(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 Nf(e)}.prototype=Object.create(Pf.prototype)).point=function(e,t){Pf.prototype.point.call(this,t,e)},Nf.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 Vf,If=he(),Of=Uo((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Vf||(Vf={}));var Hf=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(Xu(document.getElementById(n._rectId),e)[0]),o=Of(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=md(t[0].data[0].x,!0)){case Gu.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 Gu.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===Gu.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:Vf.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Vf.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Vf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=tp([]),t=Sf,n=Ef,r=Lf;function o(o){var a,i,s=Array.from(e.apply(this,arguments),kf),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=ep(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:tp(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:tp(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Sf:"function"==typeof e?e:tp(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Ef:e,o):n},o}().keys(e)(t),o=jo(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=ld(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=ld(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(Jh,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=Af().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Ff),p=Up().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Ff),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":!0,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":!0,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=If(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=zu(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&&ud(_)}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?gf(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):mf(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:Vf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,emptyChart:!(n.props.data&&n.props.data.lineChartData&&n.props.data.lineChartData.length>0&&0===n.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length),activePoint:""},n._uniqueIdForGraph=xe("areaChart_"),n._verticalLineId=xe("verticalLine_"),n._circleId=xe("circle"),n._rectId=xe("rectangle"),n._tooltipId=xe("AreaChartTooltipID"),n._enableComputationOptimization=!0,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.state.emptyChart){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=dd(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(Kp,o({},this.props,{chartTitle:r,points:a,chartType:Ku.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Gu.DateAxis:Gu.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,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:xe("_AreaChart_"),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}(s.Component),Bf=S(Hf,(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"})}})),Rf=function(e){return{root:{fill:e.color,stroke:zn.white,strokeWidth:2}}},Wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Yf(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Yf(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,o=he()(Rf,{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:Tp()},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,"-",yd(n.data.y,o)))},t}(Wf);function Yf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Uf,Xf=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=Pc().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:mp().sort(null).value((function(e){return e.y}))},t}(s.Component),qf=he(),jf=function(e){function t(t){var n=e.call(this,t)||this;return n.state={emptyChart:!1},n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.y>0})).length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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=qf(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return this.state.emptyChart?s.createElement("div",{id:xe("_PieChart_"),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(Xf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:o,chartTitle:a}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),Kf=S(jf,(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)]}})),Gf=he(),Zf=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:"",emptyChart:!1},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}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0);this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){if(!this.state.emptyChart){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=Gf(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 yd(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(jd,{direction:bd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(ah,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),h&&s.createElement("div",o({},_d(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(f,l))),p&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(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(jd,{direction:bd.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(ko,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,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Ld,{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:xe("_SBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},t.prototype._adjustProps=function(){this._classNames=Gf(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=Gf(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,x:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(c,r),this._addLegend(c,a);var v=s.createElement(Jh,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,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.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),$f=S(Zf,(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"}(Uf||(Uf={}));var Qf,Jf=he(),eg=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=Jf(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(Jh,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:"",emptyChart:!1},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return e.chartData&&0===e.chartData.length})).length);this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;if(!this.state.emptyChart){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=Jf(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(ko,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,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Ld,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return s.createElement("div",{id:xe("_MSBC_"),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===Uf.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===Uf.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=Jf(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===Uf.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"},yi(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!==Uf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==Uf.AbsoluteScale&&!x&&1===e.chartData.length,E=function(){return yd(e.chartData[0].data?e.chartData[0].data:0,c)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(jd,{direction:bd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(ah,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),b&&s.createElement("div",o({},_d(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},E()),!a&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(h,c))),C&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(e.chartDataAccessibilityData,"text",!1)),E()))),s.createElement(jd,{direction:bd.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.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),tg=S(eg,(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===Uf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===Uf.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!==Uf.AbsoluteScale||c?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(Qf||(Qf={}));var ng,rg=he(),og=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===Gu.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=Up().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",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{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,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?Qf.show:Qf.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(Ld,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(Ld,{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===Gu.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=jo(n._points,(function(e){return e.x})),a=Ko(n._points,(function(e){return e.x}));return{xBarScale:Ei().domain(n._isRtl?[o,a]:[a,o]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Ei().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Nc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Ei().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(Jh,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!==Gu.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:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=xe("callout"),n._tooltipId=xe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?md(n.props.data[0].x,!0):Gu.StringAxis,n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.state.emptyChart||0===this._points.length||jo(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(jo(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=rg(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),_d(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xe("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{points:this._points,chartType:Ku.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:bd.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.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 Ei().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=rg(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",{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=zu(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&&ud(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",{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=zu(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&&ud(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},yi(n<1e3?".2~":".1",n)(n))},t}(s.Component),ag=S(og,(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}}})),ig=he();!function(e){e.show="visibility",e.hide="hidden"}(ng||(ng={}));var sg=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===Gu.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:ng.show,radius:8}:o===t?{visibility:ng.show,radius:.3}:{visibility:ng.hide,radius:0}:{visibility:a===e?ng.show:ng.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,Gu.NumericAxis,a.xAxisPoint)),h=n._xAxisType===Gu.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=ig(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)")},yi(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=zu(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&&ud(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var o=n._yMax,a=Ei().domain([0,o]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var i=jo(n._dataset,(function(e){return e.x})),s=Ko(n._dataset,(function(e){return e.x}));return{xBarScale:Ei().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:Nc().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===Gu.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!==Gu.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:"",emptyChart:!(n.props.data&&n.props.data.length>0&&0===n.props.data.filter((function(e){return 0===e.chartData.length})).length)},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xe("callout"),n._tooltipId=xe("VSBCTooltipId_"),n.props.data&&n.props.data.length&&!n.props.data.filter((function(e){return void 0===e.xAxisPoint})).length?(n._adjustProps(),n._dataset=n._createDataSetLayer()):n.state=o(o({},n.state),{emptyChart:!0}),n._createLegendsForLine=tr((function(e){return n._getLineLegends(e)})),n._domainMargin=8,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.state.emptyChart){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=ig(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),_d(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Kp,o({},this.props,{points:this._dataset,chartType:Ku.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:i,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:a||t?bd.horizontal:bd.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.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:xe("_VSBC_"),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=md(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(Ld,{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(Jh,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}(s.Component),lg=S(sg,(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}}})),cg=he(),ug=.1/.9,dg=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=Ei().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},yi(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=zu(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&&ud(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 Nc().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)*ug))},n._createX1Scale=function(e){var t=e.bandwidth();return Nc().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(Jh,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)*ug*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)*ug))))/(n._keys.length+(n._keys.length-1)*ug),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:"",emptyChart:!1},n._refArray=[],n._calloutId=xe("callout"),n._tooltipId=xe("GVBCTooltipId_"),n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.series.length})).length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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=md(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),c=jo(this._dataset,(function(t){return jo(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=cg(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}),_d(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xe("_GVBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{points:this._datasetForBars,chartType:Ku.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:bd.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)*ug),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}(s.Component),hg=S(dg,(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}}})),pg=he(),fg=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,")")},yd(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(Jh,o({},r,{legends:a}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Ei().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Gu.DateAxis?"".concat(e.getTime()):n._xAxisType===Gu.StringAxis?e:n._xAxisType===Gu.NumericAxis?"".concat(e):""},n._getYIndex=function(e){return n._yAxisType===Zu.DateAxis?"".concat(e.getTime()):n._yAxisType===Zu.StringAxis?e:n._yAxisType===Zu.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===Gu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Gu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Gu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Gu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Gu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Gu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Zu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,a)),n._yAxisType===Zu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Zu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(e,a)]=c[e]:n._yAxisType===Zu.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===Gu.DateAxis||n._xAxisType===Gu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Gu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Gu.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===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),sl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return _i(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=md(a,!0),n._yAxisType=md(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:"",emptyChart:!1},n}return r(t,e),t.prototype.componentDidMount=function(){var e=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==e&&this.setState({emptyChart: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=pg(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}),_d(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=o(o({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this.state.emptyChart?s.createElement("div",{id:xe("_HeatMap_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Kp,o({},this.props,{points:n,chartType:Ku.HeatMapChart,xAxisType:Gu.StringAxis,yAxisType:Zu.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:bd.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),gg=S(fg,(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 mg(e,t){return t-1-e.height}function vg(e,t){return e.sourceLinks.length?e.depth:t-1}function _g(e){return function(){return e}}function yg(e,t){return bg(e.source,t.source)||e.index-t.index}function xg(e,t){return bg(e.target,t.target)||e.index-t.index}function bg(e,t){return e.y0-t.y0}function Cg(e){return e.value}function Eg(e){return e.index}function Sg(e){return e.nodes}function Lg(e){return e.links}function kg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ag({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 wg{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 Dg(e){return new wg(e,!0)}var Tg=he(),Mg="#757575",Pg=[{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"}],Ng="#323130",Fg="#FFFFFF",Vg=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,emptyChart:!(n.props.data&&n.props.data.SankeyChartData&&n.props.data.SankeyChartData.nodes.length>0&&n.props.data.SankeyChartData.links.length>0)},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}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.state.emptyChart){var t=this.props,n=t.theme,r=t.className,a=t.styles,i=t.pathColor;this._classNames=Tg(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(jd,{direction:bd.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(ko,o({},f),s.createElement(Ld,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))}return s.createElement("div",{id:xe("_SankeyChart_"),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=Eg,u=vg,d=Sg,h=Lg,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=kg(r,t)),"object"!=typeof o&&(o=n.target=kg(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(Go(t.sourceLinks,Cg),Go(t.targetLinks,Cg)):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=jo(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)/(jo(c,(e=>e.length))-1)),function(t){const n=Ko(t,(t=>(i-o-(t.length-1)*e)/Go(t,Cg)));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),Ag(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(bg),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(bg),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(xg);for(const{target:{targetLinks:t}}of e)t.sort(yg)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(xg),n.sort(yg)}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 Ag(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:_g(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:_g(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:_g(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:_g(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?mg:vg),{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(Go(e.sourceLinks,(function(e){return e.unnormalizedValue})),Go(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 Go(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-Go(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=Af().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(Dg),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=zu(".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),qu(".tempText").remove()}var c=t._truncateText(e.name,116,a),u="..."===c.slice(-3),d=xe("tooltip"),h=zu("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?Fg:Ng,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?Fg:Ng,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=Pg.map((function(e){return e.fillColor})),t=Pg.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:Mg:Mg},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.getBoundingClientRect().width,a=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=zu(".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),qu(".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}(s.Component),Ig=S(Vg,(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[Xn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[Xn]={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[Xn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Og(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 Hg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Rg)):void 0===t&&(t=Bg);for(var n,r,o,a,i,s=new Yg(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 Yg(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(zg)}function Bg(e){return e.children}function Rg(e){return Array.isArray(e)?e[1]:null}function Wg(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 Yg(e){this.data=e,this.depth=this.height=0,this.parent=null}function Ug(e,t){return e.parent===t.parent?1:2}function Xg(e){var t=e.children;return t?t[0]:e.t}function qg(e){var t=e.children;return t?t[t.length-1]:e.t}function jg(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 Kg(e,t,n){return e.a.parent===t.parent?e.a:n}function Gg(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}Yg.prototype=Hg.prototype={constructor:Yg,count:function(){return this.eachAfter(Og)},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 Hg(this).eachBefore(Wg)},[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)}},Gg.prototype=Object.create(Yg.prototype);var Zg,$g,Qg=he(),Jg=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=Hg(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=Ug,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new Gg(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 Gg(r[o],o)),n.parent=t;return(i.parent=new Gg(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=qg(s),a=Xg(a),s&&a;)l=Xg(l),(i=qg(i)).a=t,(o=s.z+d-a.z-c+e(s._,a._))>0&&(jg(Kg(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=a.m,h+=l.m,u+=i.m;s&&!qg(i)&&(i.t=s,i.m+=d-u),a&&!Xg(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=Ko(S=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=jo(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=zu(".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),qu(".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}()),em=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=Qg(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=qu("text"),n=qu("rect"),r=qu("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 Jg(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(jd,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),tm=S(em,(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"}(Zg||(Zg={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}($g||($g={}));var nm,rm=he(),om=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,_emptyChart:!1},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=!(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);if(this.state._emptyChart!==t)this.setState({_emptyChart:t});else{var n=Af().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Wp);this.area=n;var r=Up().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Wp);this.line=r;var o=this.props.data.lineChartData[0].data,a=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]}(o,(function(e){return e.x})),i=a[0],s=a[1];this.x=Ei().domain([i,s]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ei().domain([0,jo(o,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:o})}},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=rm(this.props.styles,{theme:this.props.theme});return this.state._emptyChart?s.createElement("div",{id:xe("_SparklineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(jd,{direction:bd.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}(s.Component),am=S(om,(function(e){return{inlineBlock:{display:"inline"},valueText:o(o({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),im=he(),sm=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):gf(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):gf(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Ld,{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===Zu.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):gf(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):gf(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=jo(n._points,(function(e){return e.x})),a=jo(n._points,(function(e){return e.y}));return{xBarScale:Ei().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,t-n.margins.right]),yBarScale:i=Ei().domain([0,a]).range([e-n.margins.bottom,n.margins.top])}}o=jo(n._points,(function(e){return e.x}));var i=Nc().domain(n._yAxisLabels).range([e-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Ei().domain(n._isRtl?[o,0]:[0,o]).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):gf(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(Jh,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?md(n.props.data[0].x,!0):Gu.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?md(n.props.data[0].y,!1):Zu.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(jo(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=im(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),_d(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Kp,o({},this.props,{points:this._points,chartType:Ku.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:a,legendBars:n,barwidth:this._barHeight,focusZoneDirection:bd.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 Ei().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=im(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):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):gf(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=zu("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){zu(d[e]).on("mouseover",(function(n){t.state.tooltipElement||(a.style("opacity",.9),a.html(l[e]).style("left",Pu.pageX+"px").style("top",Pu.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):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):gf(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=zu(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),lm=S(sm,(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"}(nm||(nm={}));var cm=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||!Pd(e.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),n!==Gd.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 Gd.medium:return 300;case Gd.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(Qd,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:Gd.medium},t}(s.Component),um=[{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}],dm=he(),hm=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=um.length-1;e>=0;e-=1)if(n._outerRadius>=um[e].minRadius)return{arcWidth:um[e].arcWidth,chartValueSize:um[e].fontSize};return{arcWidth:um[0].arcWidth,chartValueSize:um[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?mf(e.color,a.isInverted):gf(t,0,a.isInverted)})),void 0!==o&&s<o&&(i.push({legend:"Unknown",size:o-s,color:a.palette.neutralLight}),s=o);var l=Tp().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(Jh,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===nm.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=zu("#".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},_d(e.xAxisCalloutAccessibilityData,"text",!1)),yd(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({},_d(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=dm(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(jd,{direction:bd.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)},xd(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)},xd(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},_d(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(cm,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===nm.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(cm,{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(ko,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=dm(this.props.styles,{theme:this.props.theme,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=yd(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}," ",yd(e,l)),s.createElement("div",{className:i.calloutContentY},yd(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(Zh,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:fd[e.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},yd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t}(s.Component),pm=S(hm,(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[Xn]={color:"rgb(255, 255, 255)"},n),color:i.semanticColors.bodySubtext}),calloutContentY:[o(o({},i.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(r={},r[Xn]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[i.fonts.small,{selectors:(a={},a[Xn]={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.49"),FluentUIReactCharting=t}();
|