@fluentui/react-charting 5.23.87 → 5.23.88
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 +40 -1
- package/CHANGELOG.md +15 -2
- package/dist/react-charting.d.ts +6 -3
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +6 -3
- package/lib/components/DeclarativeChart/DeclarativeChart.js +9 -8
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +7 -5
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +63 -42
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +6 -3
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +9 -8
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +7 -5
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +66 -43
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +6 -3
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +9 -8
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +7 -5
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +66 -43
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
var FluentUIReactCharting;!function(){"use strict";var t={40:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(823),o=i(638),a="__stylesheet__",u="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,n){var i,e,o,a,u,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.Cl)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(u=null==n?void 0:n.preservedRules)&&void 0!==u?u:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(n){if(e=s[a],s[o.Se])return s[o.Se].getInstance(n);if(!e||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var i=(null==s?void 0:s.FabricConfig)||{},r=new t(i.mergeStyles,i.serializedStylesheet);e=r,s[a]=r}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.Cl)((0,r.Cl)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[this._getCacheKey(n)]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[this._getCacheKey(t)]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n,i){void 0===i&&(i=o.P6);var e=this._config.injectionMode,r=0!==e?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),r)switch(e){case 1:this._insertRuleIntoSheet(r.sheet,t);break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(n){return n({key:i,sheet:r?r.sheet:void 0,rule:t})}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._createStyleElement=function(){var t,n=(null===(t=this._config.window)||void 0===t?void 0:t.document)||document,i=n.head,e=n.createElement("style"),r=null;e.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&e.setAttribute("nonce",o.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();r=a?a.nextElementSibling:i.childNodes[0]}return i.insertBefore(e,i.contains(r)?r:null),this._lastStyleElement=e,e},t.prototype._insertRuleIntoSheet=function(t,n){if(!t)return!1;try{return t.insertRule(n,t.cssRules.length),!0}catch(t){}return!1},t.prototype._getCacheKey=function(t){return t},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||(this._styleElement=this._createStyleElement(),u||(this._config.window||window).requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},41:function(t,n,i){var e,r,o,a,u;i.d(n,{BO:function(){return a},Dn:function(){return e},bi:function(){return r},s:function(){return o}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(u||(u={}))},143:function(t,n,i){i.d(n,{a:function(){return D}});var e,r=i(302);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=i(800),u=i(40),s=i(289),l=i(41),c="'Segoe UI', '".concat(l.Dn.WestEuropean,"'"),f={ar:l.bi.Arabic,bg:l.bi.Cyrillic,cs:l.bi.EastEuropean,el:l.bi.Greek,et:l.bi.EastEuropean,he:l.bi.Hebrew,hi:l.bi.Hindi,hr:l.bi.EastEuropean,hu:l.bi.EastEuropean,ja:l.bi.Japanese,kk:l.bi.EastEuropean,ko:l.bi.Korean,lt:l.bi.EastEuropean,lv:l.bi.EastEuropean,pl:l.bi.EastEuropean,ru:l.bi.Cyrillic,sk:l.bi.EastEuropean,"sr-latn":l.bi.EastEuropean,th:l.bi.Thai,tr:l.bi.EastEuropean,uk:l.bi.Cyrillic,vi:l.bi.Vietnamese,"zh-hans":l.bi.ChineseSimplified,"zh-hant":l.bi.ChineseTraditional,hy:l.bi.Armenian,ka:l.bi.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g=i(543),m=i(338),y=i(468),b="language",x=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,g.Y)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,m.z)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(b):"sessionStorage"===t?y.G(b):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.s.mini,l.BO.regular,p),xSmall:h(l.s.xSmall,l.BO.regular,p),small:h(l.s.small,l.BO.regular,p),smallPlus:h(l.s.smallPlus,l.BO.regular,p),medium:h(l.s.medium,l.BO.regular,p),mediumPlus:h(l.s.mediumPlus,l.BO.regular,p),large:h(l.s.large,l.BO.regular,p),xLarge:h(l.s.xLarge,l.BO.semibold,p),xLargePlus:h(l.s.xLargePlus,l.BO.semibold,p),xxLarge:h(l.s.xxLarge,l.BO.semibold,p),xxLargePlus:h(l.s.xxLargePlus,l.BO.semibold,p),superLarge:h(l.s.superLarge,l.BO.semibold,p),mega:h(l.s.mega,l.BO.semibold,p)});function w(t,n,i,e){!function(t){var n=u.nr.getInstance(),i=(0,s.bz)((0,a.Iy)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function C(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);w(n,o+"-light",l.BO.light,r&&r+" Light"),w(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),w(n,o+"-regular",l.BO.regular,r),w(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),w(n,o+"-bold",l.BO.bold,r&&r+" Bold")}function M(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)k(t||{},r[e]);return t}function k(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:k(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");C(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),C(n,l.Dn.Arabic,"segoeui-arabic"),C(n,l.Dn.Cyrillic,"segoeui-cyrillic"),C(n,l.Dn.EastEuropean,"segoeui-easteuropean"),C(n,l.Dn.Greek,"segoeui-greek"),C(n,l.Dn.Hebrew,"segoeui-hebrew"),C(n,l.Dn.Vietnamese,"segoeui-vietnamese"),C(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),C(n,l.bi.Selawik,"selawik","selawik"),C(n,l.Dn.Armenian,"segoeui-armenian"),C(n,l.Dn.Georgian,"segoeui-georgian"),w("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),w("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.BO.semibold)}}(function(){var t,n,i=null===(t=(0,m.z)())||void 0===t?void 0:t.FabricConfig;return null!==(n=null==i?void 0:i.fontBaseUrl)&&void 0!==n?n:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var S=i(823);function A(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(L(t,n,(0,S.Cl)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function L(t,n,i,e,r){void 0===r&&(r=!1);var o={},a=t||{},u=a.white,s=a.black,l=a.themePrimary,c=a.themeDark,f=a.themeDarker,h=a.themeDarkAlt,d=a.themeLighter,v=a.neutralLight,p=a.neutralLighter,g=a.neutralDark,m=a.neutralQuaternary,y=a.neutralQuaternaryAlt,b=a.neutralPrimary,x=a.neutralSecondary,w=a.neutralSecondaryAlt,C=a.neutralTertiary,M=a.neutralTertiaryAlt,k=a.neutralLighterAlt,A=a.accent;return u&&(o.bodyBackground=u,o.bodyFrameBackground=u,o.accentButtonText=u,o.buttonBackground=u,o.primaryButtonText=u,o.primaryButtonTextHovered=u,o.primaryButtonTextPressed=u,o.inputBackground=u,o.inputForegroundChecked=u,o.listBackground=u,o.menuBackground=u,o.cardStandoutBackground=u),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),A&&(o.accentButtonBackground=A),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,S.Cl)((0,S.Cl)({},o),i)}var V={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function D(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=M({},t,n,{semanticColors:L(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var a=0,u=Object.keys(o.fonts);a<u.length;a++){var s=u[a];o.fonts[s]=M(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.b,effects:o,fonts:x,spacing:V,isInverted:i,disableGlobalClassNames:!1,semanticColors:A(r.b,o,void 0,i,n),rtl:void 0},t)}},259:function(t,n,i){i.d(n,{jI:function(){return s}});var e,r=i(543),o=i(468),a=i(800),u="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.G)(u);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.Y)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.S)(u,t?"1":"0"),e=t,(0,a.DU)(e)}(e="1"===n);var i=(0,r.Y)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,a.DU)(e))}return!!e}},263:function(t,n,i){i.d(n,{J:function(){return r}});var e=i(419),r=function(t){var n,i,r,o=t.color,a=t.XValue,u=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[u.fonts.small,{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext}],calloutBlockContainer:[u.fonts.xxLarge,{marginTop:a?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:u.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[u.fonts.small,{lineHeight:"16px",color:u.semanticColors.bodyText,selectors:(i={},i[e.up]={color:"CanvasText"},i)}],calloutContentY:[u.fonts.xxLarge,{color:o||u.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.up]={color:"CanvasText"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[u.fonts.small,{marginLeft:"6px",color:u.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[u.fonts.small,{color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}}},289:function(t,n,i){i.d(n,{Ae:function(){return L},bz:function(){return S},kG:function(){return V},GJ:function(){return A}});var e,r=i(823),o=i(40),a={},u={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(u[r]){var o=t[n+1];u[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,a=r||o?"":"px";t[n+1]="".concat(e).concat(a)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t){var n=t.split(" "),i=parseInt(n[0],10);return n[0]=n[0].replace(String(i),String(-1*i)),n.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":host(")?t:0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function w(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([e],n,i=i+"{"+t,r):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return C([e],n,x(i,t),r)})):C([e],n,x(i,t),r)}function C(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r,o=n[i];o||(o={},n[i]=o,n.__order.push(i));for(var a=0,u=t;a<u.length;a++){var s=u[a];if("string"==typeof s){var l=e.argsFromClassName(s);l&&C(l,n,i,e)}else if(Array.isArray(s))C(s,n,i,e);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&w(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&w(i,n,c,f,e):void 0!==f&&("margin"===c||"padding"===c?M(o,c,f):o[c]=f)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function S(t,n){if(!n)return"";var i,e,r,o=[];for(var u in n)n.hasOwnProperty(u)&&u!==y&&void 0!==n[u]&&o.push(u,n[u]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=a[r]=a[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function A(t){for(var n,i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r=null!==(n=t.stylesheet)&&void 0!==n?n:o.nr.getInstance(t.shadowConfig),a=C(i,void 0,void 0,r),u=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var a=o[r];i.push(a);var u=n[a];for(var s in u)u.hasOwnProperty(s)&&void 0!==u[s]&&(e=!0,i.push(s,u[s]))}return e?i.join(""):void 0}(t,a);if(u){var s={className:r.classNameFromKey(u),key:u,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(a));for(var l=[],c=0,f=a.__order;c<f.length;c++){var h=f[c];l.push(h,S(t,a[h]))}s.rulesToInsert=l}return s}}function L(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),a=t.className,u=t.key,s=t.args,l=t.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var f=l[c+1];if(f){var h=l[c];h=h.replace(/&/g,k(".".concat(t.className),n));var d="".concat(h,"{").concat(f,"}").concat(0===h.indexOf("@")?"}":"");r.insertRule(d)}}r.cacheClassName(a,u,s,l)}}function V(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=A.apply(void 0,(0,r.fX)([t],n,!1));return e?(L(e,t.specificityMultiplier,t.shadowConfig,t.stylesheet),e.className):""}},302:function(t,n,i){i.d(n,{b:function(){return e}});var e={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"}},338:function(t,n,i){i.d(n,{z:function(){return o}});var e=i(921),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.S)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},357:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(566),r=i(823),o=i(594),a=i(873),u=i(607),s=(0,a.Z)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,a=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(a,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,u.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,u.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,u.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,u.U)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(263),f=(0,e.I)(l,c.J)},419:function(t,n,i){i.d(n,{lw:function(){return K},bp:function(){return Mt.b},s:function(){return kt.s},BO:function(){return kt.BO},up:function(){return it},nA:function(){return nt},QN:function(){return ot},gm:function(){return rt},Km:function(){return tt},O4:function(){return Ct},dX:function(){return J}});var e=i(916),r=i(800),o=i(40),a=i(289);function u(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,a.bz)((0,r.Iy)(),t[e]),"}");var u=i.join(""),s=n.classNameFromKey(u);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(u,"}"),!0),n.cacheClassName(l,u,[],["keyframes",u]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=u({from:{opacity:0},to:{opacity:1}}),p=u({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=G(-10),m=G(-20),y=G(-40),b=G(-400),x=G(10),w=G(20),C=G(40),M=G(400),k=q(10),S=q(20),A=q(-10),L=q(-20),V=U(10),D=U(20),N=U(40),T=U(400),O=U(-10),E=U(-20),F=U(-40),B=U(-400),P=Z(-10),_=Z(-20),H=Z(10),I=Z(20),W=u({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=u({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),$=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Y=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function G(t){return u({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function q(t){return u({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.Z)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:X("".concat(v,",").concat(g),h,s),slideRightIn20:X("".concat(v,",").concat(m),h,s),slideRightIn40:X("".concat(v,",").concat(y),h,s),slideRightIn400:X("".concat(v,",").concat(b),h,s),slideLeftIn10:X("".concat(v,",").concat(x),h,s),slideLeftIn20:X("".concat(v,",").concat(w),h,s),slideLeftIn40:X("".concat(v,",").concat(C),h,s),slideLeftIn400:X("".concat(v,",").concat(M),h,s),slideUpIn10:X("".concat(v,",").concat(k),h,s),slideUpIn20:X("".concat(v,",").concat(S),h,s),slideDownIn10:X("".concat(v,",").concat(A),h,s),slideDownIn20:X("".concat(v,",").concat(L),h,s),slideRightOut10:X("".concat(p,",").concat(V),h,s),slideRightOut20:X("".concat(p,",").concat(D),h,s),slideRightOut40:X("".concat(p,",").concat(N),h,s),slideRightOut400:X("".concat(p,",").concat(T),h,s),slideLeftOut10:X("".concat(p,",").concat(O),h,s),slideLeftOut20:X("".concat(p,",").concat(E),h,s),slideLeftOut40:X("".concat(p,",").concat(F),h,s),slideLeftOut400:X("".concat(p,",").concat(B),h,s),slideUpOut10:X("".concat(p,",").concat(P),h,s),slideUpOut20:X("".concat(p,",").concat(_),h,s),slideDownOut10:X("".concat(p,",").concat(H),h,s),slideDownOut20:X("".concat(p,",").concat(I),h,s),scaleUpIn100:X("".concat(v,",").concat(W),h,s),scaleDownIn100:X("".concat(v,",").concat(z),h,s),scaleUpOut103:X("".concat(p,",").concat(j),c,l),scaleDownOut98:X("".concat(p,",").concat(R),c,l),fadeIn100:X(v,c,l),fadeIn200:X(v,f,l),fadeIn400:X(v,h,l),fadeIn500:X(v,d,l),fadeOut100:X(p,c,l),fadeOut200:X(p,f,l),fadeOut400:X(p,h,l),fadeOut500:X(p,d,l),rotate90deg:X($,"0.1s",l),rotateN90deg:X(Y,"0.1s",l)}),J={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Q=(0,i(753).J9)((function(t,n){var i=o.nr.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function tt(t,n,i){return Q(t,void 0!==i?i:n.disableGlobalClassNames)}var nt,it="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",et=i(517);function rt(t,n,i,e,r,o,a,u){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,a=void 0===o?0:o,u=n.width,s=void 0===u?1:u,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(et.Y2," &").concat(m?":focus":"",":after, :host(.").concat(et.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:nt.FocusStyle,borderRadius:r,selectors:(e={},e[it]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:a,borderRadius:u})}function ot(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(nt||(nt={}));var at,ut=i(823),st=i(338),lt=i(540),ct=function(){return ct=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},ct.apply(this,arguments)},ft="undefined"==typeof window?i.g:window,ht=ft&&ft.CSPSettings&&ft.CSPSettings.nonce,dt=((at=ft.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(at=ct({},at,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),at.registeredThemableStyles||(at=ct({},at,{registeredThemableStyles:[]})),ft.__themeState__=at,at);function vt(t){dt.theme=t,function(){if(dt.theme){for(var t=[],n=0,i=dt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(pt(dt.registeredStyles),dt.registeredStyles=[]),3!==o&&1!==o||(pt(dt.registeredThemableStyles),dt.registeredThemableStyles=[]),r=[].concat.apply([],t),dt.loadStyles?dt.loadStyles(gt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=gt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",ht&&i.setAttribute("nonce",ht),i.appendChild(document.createTextNode(r)),dt.perf.count++,n.appendChild(i);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:i},document.dispatchEvent(a);var u={styleElement:i,themableStyle:t};o?dt.registeredThemableStyles.push(u):dt.registeredStyles.push(u)}}(r))}var r,o}()}function pt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function gt(t){var n=dt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var mt=i(143),yt=(0,mt.a)({}),bt=[],xt="theme";function wt(){var t,n,i,e=(0,st.z)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),yt=(0,mt.a)(t,n),vt((0,ut.Cl)((0,ut.Cl)((0,ut.Cl)((0,ut.Cl)({},yt.palette),yt.semanticColors),yt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],a=0,u=Object.keys(o);a<u.length;a++){var s=u[a],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(yt))),lt.X.applySettings(((i={})[xt]=yt,i)),bt.forEach((function(t){try{t(yt)}catch(t){}}))}(e.FabricConfig.legacyTheme):lt.X.getSettings([xt]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(yt=(0,mt.a)(e.FabricConfig.theme)),lt.X.applySettings(((t={})[xt]=yt,t)))}function Ct(t){return void 0===t&&(t=!1),!0===t&&(yt=(0,mt.a)({},t)),yt}wt();var Mt=i(302),kt=i(41);(0,i(887).v)("@fluentui/style-utilities","8.12.1"),wt()},468:function(t,n,i){i.d(n,{G:function(){return r},S:function(){return o}});var e=i(338);function r(t){var n=null;try{var i=(0,e.z)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.z)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},506:function(t,n,i){i.d(n,{T:function(){return o}});var e=i(823),r=i(638);function o(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles&&!(0,r.db)(t[0]))return t[0];for(var i={},a={},u=0,s=t;u<s.length;u++){var l=s[u];if(l&&!(0,r.db)(l))for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var f=l.subComponentStyles;for(var h in f)f.hasOwnProperty(h)&&(a.hasOwnProperty(h)?a[h].push(f[h]):a[h]=[f[h]]);continue}var d=i[c],v=l[c];i[c]=void 0===d?v:(0,e.fX)((0,e.fX)([],Array.isArray(d)?d:[d],!0),Array.isArray(v)?v:[v],!0)}}if(Object.keys(a).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(a.hasOwnProperty(t)){var n=a[t];p[t]=function(t){return o.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var h in a)g(h)}return i}},517:function(t,n,i){i.d(n,{Y2:function(){return e}});var e="ms-Fabric--isFocusVisible"},540:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(823),r=i(338),o="__globalSettings__",a="__callbacks__",u=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[a],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var u in e)e.hasOwnProperty(u)&&e[u](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(u++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.z)()||{};return n[o]||(n[o]=((t={})[a]={},t)),n[o]}function c(){return l()[a]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.Cl)((0,e.Cl)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.Cl)((0,e.Cl)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},a=0,u=t;a<u.length;a++){var s=u[a];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},543:function(t,n,i){i.d(n,{Y:function(){return r}});var e=i(921);function r(t){if((0,e.S)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},566:function(t,n,i){i.d(n,{I:function(){return d}});var e=i(823),r=i(594),o=i(506),a=i(638),u=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:u,useAdoptedStylesheet:u,useShadowConfig:function(){return a.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:u,useMergeStylesRootStylesheets:function(){return new Map},useWindow:s,useStyled:s}),c=function(){var t=r.useContext(l);return{useAdoptedStylesheet:t.useAdoptedStylesheet,useAdoptedStylesheetEx:t.useAdoptedStylesheetEx,useShadowConfig:t.useShadowConfig,useMergeStylesShadowRootContext:t.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:t.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:t.useMergeStylesRootStylesheets,useWindow:t.useWindow,useStyled:t.useStyled}},f=i(927),h=["theme","styles"];function d(t,n,i,a,u){var s=(a=a||{scope:"",fields:void 0}).scope,l=a.fields,d=void 0===l?h:l,v=r.forwardRef((function(a,u){var l=r.useRef(),h=(0,f.m)(d,s),v=h.styles,p=(h.dir,(0,e.Tt)(h,["styles","dir"])),g=i?i(a):void 0,m=c().useStyled,y=l.current&&l.current.__cachedInputs__||[],b=a.styles;if(!l.current||v!==y[1]||b!==y[2]){var x=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,a=n;r<a.length;r++){var u=a[r];u&&e.push("function"==typeof u?u(t):u)}return 1===e.length?e[0]:e.length?o.T.apply(void 0,e):{}}(t,n,v,b)};x.__cachedInputs__=[n,v,b],x.__noStyleOverride__=!v&&!b,l.current=x}return l.current.__shadowConfig__=m(s),r.createElement(t,(0,e.Cl)({ref:u},p,g,a,{styles:l.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=u?r.memo(v):v;return v.displayName&&(p.displayName=v.displayName),p}},594:function(t){t.exports=React},607:function(t,n,i){i.d(n,{U:function(){return e}});var e=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t}},638:function(t,n,i){i.d(n,{P6:function(){return e},Se:function(){return r},db:function(){return a},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},a=function(t){return!(!t||!function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}(t))&&!0===t.__isShadowConfig__}},753:function(t,n,i){i.d(n,{J5:function(){return f},J9:function(){return c}});var e=i(40),r=!1,o=0,a={empty:!0},u={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.nr.getInstance();c&&c.onReset&&e.nr.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(u[s]||(u[s]={val:s}),u[s]):a;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},770:function(t,n,i){i.d(n,{z:function(){return e}});var e=i(594).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},800:function(t,n,i){i.d(n,{DU:function(){return o},Iy:function(){return u}});var e,r=i(638);function o(t){e!==t&&(e=t)}function a(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function u(){return{rtl:a(),shadowConfig:r.ou}}e=a()},823:function(t,n,i){i.d(n,{C6:function(){return r},Cl:function(){return o},Tt:function(){return a},fX:function(){return u}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function a(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function u(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},873:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(40),r=i(823),o=i(506),a=i(962),u=i(289),s=i(638);var l=i(259),c=i(338),f=50,h=5,d=0,v=e.nr.getInstance();v&&v.onReset&&v.onReset((function(){return d++}));var p="__retval__";function g(t){void 0===t&&(t={});var n=new Map,i=0,v=0,g=d;return function(m,b){var x;if(void 0===b&&(b={}),t.useStaticStyles&&"function"==typeof m&&m.__noStyleOverride__)return m(b);v++;var w=m?m.__shadowConfig__:void 0,C=w&&w.window?w.window:"__default__";n.has(C)||n.set(C,new Map);var M=n.get(C),k=b.theme,S=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),A=t.disableCaching;if(g!==d&&(g=d,n.set(C,new Map),M=n.get(C),i=0),t.disableCaching||(M=y(n.get(C),m),M=y(M,b)),!A&&M[p]||(M[p]=void 0===m?{}:function(t,n){var i,l={subComponentStyles:{}},c=void 0;(0,s.db)(t[0])?(c=t[0],i=t[1]):i=t[0],null!=c||(c=null==n?void 0:n.shadowConfig);var f=(0,r.Cl)((0,r.Cl)({},n),{shadowConfig:c});if(!i&&t.length<=1)return{subComponentStyles:{}};var h=e.nr.getInstance(c);f.stylesheet=h;var d=o.T.apply(void 0,t),v=[];for(var p in d)if(d.hasOwnProperty(p)){if("subComponentStyles"===p){l.subComponentStyles=d.subComponentStyles||{};continue}if("__shadowConfig__"===p)continue;var g=d[p],m=(0,a.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(C=(0,u.GJ)(f||{},{displayName:p},b))&&(v.push(C),l[p]=y.concat([C.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var C;(C=w[x])&&(0,u.Ae)(C,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!S,specificityMultiplier:t.useStaticStyles?h:void 0}),A||i++),i>(t.cacheSize||f)){var L=(0,c.z)();(null===(x=null==L?void 0:L.FabricConfig)||void 0===x?void 0:x.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(v,".")),console.trace()),n.get(C).clear(),i=0,t.disableCaching=!0}return M[p]}}function m(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function y(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=m(t,e[i]);else t=m(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=m(t,n[r]));return t}},887:function(t,n,i){i.d(n,{v:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},916:function(t,n,i){i.d(n,{Z:function(){return s}});var e=i(962),r=i(638),o=i(800),a=i(40),u=i(289);function s(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],o=n||{};(0,r.db)(i[0])&&(o.shadowConfig=i[0]),o.stylesheet=a.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,u.kG)(o,c)),l.join(" ")}(t,(0,o.Iy)())}},921:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{S:function(){return e}})},927:function(t,n,i){i.d(n,{m:function(){return a}});var e=i(594),r=i(540),o=i(770);function a(t,n){var i,a=(i=e.useState(0)[1],function(){return i((function(t){return++t}))}),u=e.useContext(o.z).customizations,s=u.inCustomizerContext;return e.useEffect((function(){return s||r.X.observe(a),function(){s||r.X.unobserve(a)}}),[s]),r.X.getSettings(t,n,u)}},962:function(t,n,i){i.d(n,{h:function(){return r}});var e=i(638);function r(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=[],o=[],a=t;return function t(n){for(var i=0,u=n;i<u.length;i++){var s=u[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=a.argsFromClassName(s);l?t(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&o.push(s)}}(n),{classes:r,objects:o}}}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};i.r(e),i.d(e,{AreaChart:function(){return Dh},CartesianChart:function(){return Xf},ChartHoverCard:function(){return js.ChartHoverCard},DataVizGradientPalette:function(){return $s},DataVizPalette:function(){return bf},DeclarativeChart:function(){return kp},DonutChart:function(){return Of},GaugeChart:function(){return mv},GaugeChartVariant:function(){return ov},GaugeValueFormat:function(){return rv},GroupedVerticalBarChart:function(){return ed},HeatMapChart:function(){return ud},HorizontalBarChart:function(){return Bl},HorizontalBarChartVariant:function(){return d},HorizontalBarChartWithAxis:function(){return fv},Legends:function(){return Fc},LineChart:function(){return hh},MultiStackedBarChart:function(){return zh},MultiStackedBarChartVariant:function(){return Fh},NodesComposition:function(){return Bd},PieChart:function(){return Hh},ResponsiveContainer:function(){return hp},SankeyChart:function(){return Id},Shape:function(){return Sc},Sparkline:function(){return sv},StackedBarChart:function(){return Yh},Textbox:function(){return ah},TreeChart:function(){return iv},TreeTraverse:function(){return Pd},VerticalBarChart:function(){return Zh},VerticalStackedBarChart:function(){return Qh},getChartHoverCardStyles:function(){return rd.J},getColorFromToken:function(){return Af},getGradientFromToken:function(){return Ks},getNextColor:function(){return Sf},getNextGradient:function(){return Zs},withResponsiveContainer:function(){return dp}});var r=i(566),o=i(823),a=i(594),u=i(873),s=i(259),l=i(338),c=i(40),f="__currentId__",h=(0,l.z)()||{};void 0===h[f]&&(h[f]=0);var d,v=!1;function p(t){if(!v){var n=c.nr.getInstance();n&&n.onReset&&n.onReset(g),v=!0}return(void 0===t?"id__":t)+h[f]++}function g(t){void 0===t&&(t=0),h[f]=t}function m(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function y(t,n){var i=m(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(d||(d={}));function b(t,n){var i,e;if(void 0===n&&(n=!0),!t)return null;var r=n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t);return r||("function"!=typeof t.assignedElements&&(null===(i=t.assignedSlot)||void 0===i?void 0:i.parentNode)?t.assignedSlot:11===(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)?t.parentNode.host:t.parentNode)}function x(t,n,i){return null!=i||(i=document),!t||t===i.body||t instanceof Document?null:n(t)?t:x(b(t),n)}function w(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=b(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var C=i(543);function M(t,n,i){var e=S(t,t,!0,!1,!1,!0,void 0,void 0,n,i);return!!e&&(O(e),!0)}function k(t,n,i,e,r,o,a,u,s){var l;if(!n||!a&&n===t)return null;var c=A(n);if(r&&c&&(o||!D(n)&&!N(n))){var f=k(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,a,u,s);if(f){if(u&&V(f,!0,s)||!u)return f;var h=k(t,f.previousElementSibling,!0,!0,!0,o,a,u,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=k(t,d.previousElementSibling,!0,!0,!0,o,a,u,s);if(v)return v;d=d.parentElement}}}return i&&c&&V(n,u,s)?n:k(t,n.previousElementSibling,!0,!0,!0,o,a,u,s)||(e?null:k(t,n.parentElement,!0,!1,!1,o,a,u,s))}function S(t,n,i,e,r,o,a,u,s,l){var c;if(!n||n===t&&r&&!a)return null;var f=(s?L:A)(n);if(i&&f&&V(n,u,l))return n;if(!r&&f&&(o||!D(n)&&!N(n))){var h=S(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,a,u,s,l);if(h)return h}return n===t?null:S(t,n.nextElementSibling,!0,!0,!1,o,a,u,s,l)||(e?null:S(t,n.parentElement,!1,!1,!0,o,a,u,s,l))}function A(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute("data-is-visible");return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function L(t,n){var i=null!=n?n:(0,l.z)();return!!t&&A(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function V(t,n,i){if(void 0===i&&(i=!0),!t||t.disabled)return!1;var e=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(e=parseInt(r,10));var o=t.getAttribute?t.getAttribute("data-is-focusable"):null,a=null!==r&&e>=0,u=!(!i||!t.shadowRoot||!t.shadowRoot.delegatesFocus),s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||a||u);return n?-1!==e&&s:s}function D(t){return!!(t&&t.getAttribute&&t.getAttribute("data-focuszone-id"))}function N(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute("data-is-sub-focuszone"))}var T=void 0;function O(t){if(t){var n=(0,l.z)(t);n&&(void 0!==T&&n.cancelAnimationFrame(T),T=n.requestAnimationFrame((function(){t&&t.focus(),T=void 0})))}}function E(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function F(t,n){for(var i=(0,o.Cl)({},n),e=0,r=Object.keys(t);e<r.length;e++){var a=r[e];void 0===i[a]&&(i[a]=t[a])}return i}var B=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],a=0,u=Array.isArray(o)?o:Object.keys(o);a<u.length;a++)i[u[a]]=1;return i},P=B(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),_=B(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),H=B(_,P),I=(B(H,["form"]),B(H,["height","loop","muted","preload","src","width"])),W=(B(I,["poster"]),B(H,["start"]),B(H,["value"]),B(H,["download","href","hrefLang","media","rel","target","type"]),B(H,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),R=(B(W,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),B(W,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),B(W,["form","multiple","required"]),B(H,["selected","value"]),B(H,["cellPadding","cellSpacing"]),B(H,["rowSpan","scope"]),B(H,["colSpan","headers","rowSpan","scope"]),B(H,["span"]),B(H,["span"]),B(H,["acceptCharset","action","encType","encType","method","noValidate","target"]),B(H,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),B(H,["alt","crossOrigin","height","src","srcSet","useMap","width"]),H);function z(t,n,i){for(var e=Array.isArray(n),r={},o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];!(!e&&n[u]||e&&n.indexOf(u)>=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(u))||(r[u]=t[u])}return r}function j(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var a in o)o[a]&&i.push(a)}return i.join(" ")}function $(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return Y.apply(this,[null,t].concat(n))}function Y(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var a=o[r];if(a)for(var u in a)!a.hasOwnProperty(u)||t&&!t(u)||(n[u]=a[u])}return n}var X,G,q,U=i(916),Z=((0,U.Z)({overflow:"hidden !important"}),"data-is-scrollable");function K(t){for(var n=t,i=(0,C.Y)(t);n&&n!==i.body;){if("true"===n.getAttribute(Z))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(Z)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,l.z)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(G||(G={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(q||(q={}));var J,Q=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function tt(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var nt=((J={})[0]=tt(G.top,G.left),J[1]=tt(G.top),J[2]=tt(G.top,G.right),J[3]=tt(G.top,void 0,!0),J[4]=tt(G.bottom,G.left),J[5]=tt(G.bottom),J[6]=tt(G.bottom,G.right),J[7]=tt(G.bottom,void 0,!0),J[8]=tt(G.left,G.top),J[9]=tt(G.left),J[10]=tt(G.left,G.bottom),J[11]=tt(G.right,G.top),J[12]=tt(G.right),J[13]=tt(G.right,G.bottom),J);function it(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function et(t,n){var i=[];return t.top<n.top&&i.push(G.top),t.bottom>n.bottom&&i.push(G.bottom),t.left<n.left&&i.push(G.left),t.right>n.right&&i.push(G.right),i}function rt(t,n){return t[G[n]]}function ot(t,n,i){return t[G[n]]=i,t}function at(t,n){var i=yt(n);return(rt(t,i.positiveEdge)+rt(t,i.negativeEdge))/2}function ut(t,n){return t>0?n:-1*n}function st(t,n){return ut(t,rt(n,t))}function lt(t,n,i){return ut(i,rt(t,i)-rt(n,i))}function ct(t,n,i,e){void 0===e&&(e=!0);var r=rt(t,n)-i,o=ot(t,n,i);return e&&(o=ot(t,-1*n,rt(t,-1*n)-r)),o}function ft(t,n,i,e){return void 0===e&&(e=0),ct(t,i,rt(n,i)+ut(i,e))}function ht(t,n,i){return st(i,t)>st(i,n)}function dt(t,n){for(var i=0,e=0,r=et(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(lt(t,n,o),2)}return i}function vt(t,n,i,e){return void 0===e&&(e=200),(i===G.bottom||i===G.top)&<(t,n,i)>=e}function pt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var a=o[r],u=void 0;e&&e===-1*a?(u=ct(n.elementRectangle,a,rt(i,a),!1),n.forcedInBounds=!0):ht(u=ft(n.elementRectangle,i,a),i,-1*a)||(u=ct(u,-1*a,rt(i,-1*a),!1),n.forcedInBounds=!0),n.elementRectangle=u}return n}function gt(t,n,i){var e=yt(n).positiveEdge;return ct(t,e,i-(at(t,n)-rt(t,e)))}function mt(t,n,i,e,r){void 0===e&&(e=0);var o=new Q(t.left,t.right,t.top,t.bottom),a=i.alignmentEdge,u=i.targetEdge,s=r?u:-1*u;return o=r?ft(o,n,u,e):function(t,n,i,e){void 0===e&&(e=0);var r=ut(-1*i,e);return ct(t,-1*i,rt(n,i)+r)}(o,n,u,e),o=a?ft(o,n,a):gt(o,s,at(n,u))}function yt(t){return t===G.top||t===G.bottom?{positiveEdge:G.left,negativeEdge:G.right}:{positiveEdge:G.top,negativeEdge:G.bottom}}function bt(t,n,i){return i&&Math.abs(lt(t,i,n))>Math.abs(lt(t,i,-1*n))?-1*n:n}function xt(t,n,i,e,r,o,a,u){var s,l={},c=Mt(n),f=o?i:-1*i,h=r||yt(i).positiveEdge;return a&&!function(t,n,i){return void 0!==i&&rt(t,n)===rt(i,n)}(t,(s=h,-1*s),e)||(h=bt(t,h,e)),l[G[f]]=lt(t,c,f),l[G[h]]=lt(t,c,h),u&&(l[G[-1*f]]=lt(t,c,-1*f),l[G[-1*h]]=lt(t,c,-1*h)),l}function wt(t,n,i){var e=at(n,t),r=at(i,t),o=yt(t),a=o.positiveEdge,u=o.negativeEdge;return e<=r?a:u}function Ct(t,n,i,e,r,o,a,u,l){void 0===o&&(o=!1);var c=mt(t,n,e,r,l);return it(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,a,u,l){void 0===r&&(r=!1),void 0===a&&(a=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};u||l||(h=function(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===a&&(a=0);var u=[G.left,G.right,G.bottom,G.top];(0,s.jI)()&&(u[0]*=-1,u[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(ht(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&vt(n,i,f,o)){switch(f){case G.bottom:c.bottom=i.bottom;break;case G.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=dt(c,i);(!l||g<l)&&(l=g,d=f,v=h),u.splice(u.indexOf(f),1),u.length>0&&(u.indexOf(-1*f)>-1?f*=-1:(h=f,f=u.slice(-1)[0]),c=mt(t,n,{targetEdge:f,alignmentEdge:h},a))}return{elementRectangle:c=mt(t,n,{targetEdge:d,alignmentEdge:v},a),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,a));var d=et(h.elementRectangle,i),v=u?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,a=-1*r;return{elementRectangle:mt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:a},i,e),targetEdge:o,alignmentEdge:a}}(h,n,a,l);if(it(p.elementRectangle,i))return p;h=pt(et(p.elementRectangle,i),h,i,v)}else h=pt(d,h,i,v);else h=pt(d,h,i,v);return h}(c,n,i,e,o,a,r,u,l)}function Mt(t){var n=t.getBoundingClientRect();return new Q(n.left,n.right,n.top,n.bottom)}function kt(t,n,i,e,r,a){void 0===r&&(r=!1);var u=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new Q(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=Mt(n);else{var r=n,o=r.left||r.x,a=r.top||r.y,u=r.right||o,s=r.bottom||a;i=new Q(o,u,a,s)}if(!it(i,t))for(var l=0,c=et(i,t);l<c.length;l++){var f=c[l];i[G[f]]=t[G[f]]}}else i=new Q(0,0,0,0);return i}(i,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=wt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,n,i){if(void 0===t&&(t=7),i)return{alignmentEdge:i.alignmentEdge,isAuto:i.isAuto,targetEdge:i.targetEdge};var e=(0,o.Cl)({},nt[t]);return(0,s.jI)()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==n?nt[n]:e):e}(t.directionalHint,t.directionalHintForRTL,e),l,i,t.coverTarget,t.alignTargetEdge),f=Ct(Mt(n),l,i,c,u,r,a,t.directionalHintFixed,t.coverTarget);return(0,o.Cl)((0,o.Cl)({},f),{targetRectangle:l})}function St(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function At(t,n,i,e,r,a,u,s){void 0===r&&(r=!1);var c=null!=s?s:(0,l.z)(),f=t.isBeakVisible&&t.beakWidth||0,h=St(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,w,M,k=t.bounds?(M=t.bounds,new Q(M.left,M.right,M.top,M.bottom)):new Q(0,c.innerWidth-function(){if(void 0===X){var t=(0,C.Y)(),n=t.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),t.body.appendChild(n),X=n.offsetWidth-n.clientWidth,t.body.removeChild(n)}return X}(),0,c.innerHeight),S=kt(d,i,k,e,r,a),A=(v=S,p=function(t,n){var i=n.targetRectangle,e=yt(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,a=at(i,n.targetEdge),u=new Q(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new Q(0,t,0,t);return ht(s=gt(s=ct(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,a-st(r,n.elementRectangle)),u,r)?ht(s,u,o)||(s=ft(s,u,o)):s=ft(s,u,r),s}(f,S),g=k,m=-1*v.targetEdge,y=new Q(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=bt(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:yt(m).positiveEdge,g),w=lt(v.elementRectangle,v.targetRectangle,m)>Math.abs(rt(p,m)),b[G[m]]=rt(p,m),b[G[x]]=lt(p,y,x),{elementPosition:(0,o.Cl)({},b),closestEdge:wt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){return{elementPosition:xt(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(S,n,k,t.coverTarget,u)),{beakPosition:A})}var Lt=["TEMPLATE","STYLE","SCRIPT"];function Vt(t){var n=(0,C.Y)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Lt.indexOf(o.tagName)&&i.push([o,a])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Dt=27,Nt=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,l.z)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,l.z)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,a=n||0,u=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(u=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=u?a-h:a;return h>=a&&(!n||u)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,a,u=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,a)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=u&&(i=!0),f=n);var r=n-f,a=u-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:a=Math.min(a,c-v)),r>=u||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,a)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,l.z)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,l.z)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Tt(){var t=a.useRef();return t.current||(t.current=new Nt),a.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Ot(t,n,i,e){var r=a.useRef(i);r.current=i,a.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return E(i,n,(function(t){return r.current(t)}),e)}),[t,n,e])}function Et(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=a.useCallback((function(n){i.current=n;for(var e=0,r=t;e<r.length;e++){var o=r[e];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,o.fX)([],t,!0));return i}var Ft=a.createContext({window:"object"==typeof window?window:void 0}),Bt=function(){return a.useContext(Ft).window},Pt=function(){var t;return null===(t=a.useContext(Ft).window)||void 0===t?void 0:t.document};function _t(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,l.z)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var Ht=a.forwardRef((function(t,n){var i=F({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),e=a.useRef(),r=Et(e,n);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;a.useEffect((function(){if(i&&n.current)return Vt(n.current)}),[n,i])}(i,e),function(t,n){var i=t.onRestoreFocus,e=void 0===i?_t:i,r=a.useRef(),o=a.useRef(!1);a.useEffect((function(){var t,i,a;return r.current=(0,C.Y)().activeElement,t=n.current,(a=(i=(0,C.Y)(t))&&i.activeElement)&&w(t,a)&&(o.current=!0),function(){var t;null==e||e({originalElement:r.current,containsFocus:o.current,documentContainsFocus:(null===(t=(0,C.Y)())||void 0===t?void 0:t.hasFocus())||!1}),r.current=void 0}}),[]),Ot(n,"focus",a.useCallback((function(){o.current=!0}),[]),!0),Ot(n,"blur",a.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(o.current=!1)}),[]),!0)}(i,e);var u=i.role,s=i.className,l=i.ariaLabel,c=i.ariaLabelledBy,f=i.ariaDescribedBy,h=i.style,d=i.children,v=i.onDismiss,p=function(t,n){var i=Tt(),e=a.useState(!1),r=e[0],o=e[1];return a.useEffect((function(){return i.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var a=n.current.clientHeight,u=n.current.firstElementChild.clientHeight;a>0&&u>a&&(e=u-a>1)}r!==e&&o(e)}})),function(){return i.dispose()}})),r}(i,e),g=a.useCallback((function(t){t.which===Dt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Ot(Bt(),"keydown",g),a.createElement("div",(0,o.Cl)({ref:r},z(i,R),{className:s,role:u,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,o.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));Ht.displayName="Popup";var It=i(419);function Wt(t){var n=a.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Rt,zt=function(){var t;return null!==(t=Bt())&&void 0!==t?t:"undefined"!=typeof window?window:void 0},jt=function(t){var n,i;return null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document?document:void 0},$t=((Rt={})[G.top]=It.lw.slideUpIn10,Rt[G.bottom]=It.lw.slideDownIn10,Rt[G.left]=It.lw.slideLeftIn10,Rt[G.right]=It.lw.slideRightIn10,Rt),Yt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Xt=["role","aria-roledescription"],Gt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},qt=(0,u.Z)({disableCaching:!0});function Ut(t,n,i,e){var r,o=t.calloutMaxHeight,u=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=a.useState(),g=p[0],m=p[1],y=null!==(r=null==e?void 0:e.elementPosition)&&void 0!==r?r:{},b=y.top,x=y.bottom,w=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,a=t,u=t,s=null!==(n=u.left)&&void 0!==n?n:u.x,l=null!==(i=u.top)&&void 0!==i?i:u.y,c=null!==(e=u.right)&&void 0!==e?e:s,f=null!==(r=u.bottom)&&void 0!==r?r:l;return o.stopPropagation?new Q(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new Q(s,c,l,f):Mt(a)}(i.current):void 0;return a.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},a=r.top,u=r.bottom;(null==e?void 0:e.targetEdge)===G.top&&(null==w?void 0:w.top)&&!v&&(u=w.top-function(t,n,i){return St(t,n,i)}(d,h,f)),"number"==typeof b&&u?i=u-b:"number"==typeof x&&"number"==typeof a&&u&&(i=u-a-x),m(!o&&!c||o&&i&&o>i?i:o||void 0)}),[x,o,u,s,l,n,c,e,b,f,h,d,w,v]),g}function Zt(t,n,i,e,r,u){var s,c=a.useState(),f=c[0],h=c[1],d=a.useRef(0),v=a.useRef(),p=Tt(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=zt(),S=a.useRef();S.current!==u.current&&(S.current=u.current,s=u.current?null==k?void 0:k.getComputedStyle(u.current):void 0);var A=null==s?void 0:s.overflowY;return a.useEffect((function(){if(!g){var a=p.requestAnimationFrame((function(){var a,u,s,c;if(n.current&&i){var p=(0,o.Cl)((0,o.Cl)({},t),{target:e.current,bounds:r()}),g=i.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(a=i.parentElement)||void 0===a||a.appendChild(g);var w=v.current===m?f:void 0,S=M&&!(C||"clip"===A||"hidden"===A),L=y?function(t,n,i,e,r){return function(t,n,i,e,r){return At(t,n,i,e,!1,void 0,!0,null!=r?r:(0,l.z)())}(t,n,i,e,r)}(p,n.current,g,w,k):function(t,n,i,e,r,o,a){return At(t,n,i,e,r,void 0,void 0,a)}(p,n.current,g,w,S,0,k);null===(u=i.parentElement)||void 0===u||u.removeChild(g),!f&&L||f&&L&&(c=L,!Qt((s=f).elementPosition,c.elementPosition)||!Qt(s.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(L)):d.current>0&&(d.current=0,null==x||x(f))}}),i);return v.current=m,function(){p.cancelAnimationFrame(a),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,i,b,n,e,y,r,x,f,t,m,C,M,A,k]),f}var Kt=a.memo(a.forwardRef((function(t,n){var i=F(Gt,t),e=i.styles,r=i.style,u=i.ariaLabel,s=i.ariaDescribedBy,l=i.ariaLabelledBy,c=i.className,f=i.isBeakVisible,h=i.children,d=i.beakWidth,v=i.calloutWidth,p=i.calloutMaxWidth,g=i.calloutMinWidth,m=i.doNotLayer,y=i.finalHeight,b=i.hideOverflow,x=void 0===b?!!y:b,k=i.backgroundColor,S=i.calloutMaxHeight,A=i.onScroll,L=i.shouldRestoreFocus,V=void 0===L||L,D=i.target,N=i.hidden,T=i.onLayerMounted,O=i.popupProps,B=a.useRef(null),P=Et(a.useRef(null),null==O?void 0:O.ref),_=a.useState(null),H=_[0],I=_[1],W=a.useCallback((function(t){I(t)}),[]),$=Et(B,n),Y=function(t,n){var i,e,r,o=a.useRef(),u=a.useRef(null),s=Bt();if(!t||t!==o.current||"string"==typeof t){var l=null==n?void 0:n.current;if(t)if("string"==typeof t)if(null===(i=null==l?void 0:l.getRootNode())||void 0===i?void 0:i.host)u.current=null!==(r=null===(e=null==l?void 0:l.getRootNode())||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null;else{var c=(0,C.Y)(l);u.current=c?c.querySelector(t):null}else u.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;o.current=t}return[u,s]}(i.target,{current:H}),X=Y[0],G=Y[1],q=function(t,n,i){var e=t.bounds,r=t.minPagePadding,o=void 0===r?Gt.minPagePadding:r,u=t.target,s=a.useState(!1),l=s[0],c=s[1],f=a.useRef(),h=a.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(u,i):void 0:e;!t&&i&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,s=i;u<s.length;u++){var l=s[u];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return a}(t,n)}(n.current,i),t={top:t.top+o,left:t.left+o,right:t.right-o,bottom:t.bottom-o,width:t.width-2*o,height:t.height-2*o}),f.current=t,l&&c(!1)}return f.current}),[e,o,u,n,i,l]),d=Tt();return Ot(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(i,X,G),U=Zt(i,B,H,X,q,P),Z=Ut(i,q,X,U),K=function(t,n,i,e,r){var o=t.hidden,u=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=a.useRef(!1),p=Tt(),g=Wt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return a.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==u||u(t)},a=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],o=n.length>0?n[0]:t.target,a=i.current&&!w(i.current,o);if(a&&v.current)v.current=!1;else if(!e.current&&a||t.target!==r&&a&&(!e.current||"stopPropagation"in e.current||f||o!==e.current&&!w(e.current,o))){if(d&&d(t))return;null==u||u(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==r?void 0:r.document.hasFocus())||null!==t.relatedTarget||null==u||u(t))},b=new Promise((function(i){p.setTimeout((function(){if(!o&&r){var e=[E(r,"scroll",t,!0),E(r,"resize",n,!0),E(r.document.documentElement,"focus",a,!0),E(r.document.documentElement,"click",a,!0),E(r,"blur",y,!0)];i((function(){e.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[o,p,i,e,r,u,h,f,c,l,s,m,d]),g}(i,U,B,X,G),J=K[0],Q=K[1],tt=(null==U?void 0:U.elementPosition.top)&&(null==U?void 0:U.elementPosition.bottom),nt=(0,o.Cl)((0,o.Cl)({},null==U?void 0:U.elementPosition),{maxHeight:Z});if(tt&&(nt.bottom=void 0),function(t,n,i){var e=t.hidden,r=t.setInitialFocus,o=Tt(),u=!!n;a.useEffect((function(){if(!e&&r&&u&&i){var t=o.requestAnimationFrame((function(){return M(i)}),i);return function(){return o.cancelAnimationFrame(t)}}}),[e,u,o,i,r])}(i,U,H),a.useEffect((function(){N||null==T||T()}),[N]),!G)return null;var it=x,et=f&&!!D,rt=qt(e,{theme:i.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:U,beakWidth:d,backgroundColor:k,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,o.Cl)((0,o.Cl)({maxHeight:S||"100%"},r),it&&{overflowY:"hidden"}),at=i.hidden?{visibility:"hidden"}:void 0;return a.createElement("div",{ref:$,className:rt.container,style:at},a.createElement("div",(0,o.Cl)({},z(i,R,Xt),{className:j(rt.root,U&&U.targetEdge&&$t[U.targetEdge]),style:U?(0,o.Cl)({},nt):Yt,tabIndex:-1,ref:W}),et&&a.createElement("div",{className:rt.beak,style:Jt(U)}),et&&a.createElement("div",{className:rt.beakCurtain}),a.createElement(Ht,(0,o.Cl)({role:i.role,"aria-roledescription":i["aria-roledescription"],ariaDescribedBy:s,ariaLabel:u,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:i.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:i.onRestoreFocus,onScroll:A,shouldRestoreFocus:V,style:ot},O,{ref:P}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function Jt(t){var n,i,e=(0,o.Cl)((0,o.Cl)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.hideBeak)?"none":void 0});return e.top||e.bottom||e.left||e.right||(e.left=0,e.top=0),e}function Qt(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function tn(t){return{height:t,width:t}}Kt.displayName="CalloutContentBase";var nn={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},en=(0,r.I)(Kt,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,a=t.beakWidth,u=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,It.Km)(nn,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?It.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[It.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,It.QN)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},tn(a),u&&{backgroundColor:u}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},u&&{backgroundColor:u}]}}),void 0,{scope:"CalloutContent"}),rn=a.createContext(void 0),on=function(){return function(){}};rn.Provider;var an=ReactDOM,un=i(753);new WeakMap,new WeakMap;var sn=a.createContext(void 0),ln=function(t){var n=t.providerRef,i=t.layerRoot,e=a.useState([])[0],r=a.useContext(sn),o=void 0!==r&&!i,u=a.useMemo((function(){return o?void 0:{providerRef:n,registeredProviders:e,registerProvider:function(t){e.push(t),null==r||r.registerProvider(t)},unregisterProvider:function(t){null==r||r.unregisterProvider(t);var n=e.indexOf(t);n>=0&&e.splice(n,1)}}}),[n,e,r,o]);return a.useEffect((function(){if(u)return u.registerProvider(u.providerRef),function(){return u.unregisterProvider(u.providerRef)}}),[u]),u?a.createElement(sn.Provider,{value:u},t.children):a.createElement(a.Fragment,null,t.children)},cn=i(540),fn=i(770);function hn(t,n){void 0===t&&(t={});var i=dn(n)?n:function(t){return function(n){return t?(0,o.Cl)((0,o.Cl)({},n),t):n}}(n);return i(t)}function dn(t){return"function"==typeof t}var vn=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){cn.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){cn.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return a.createElement(fn.z.Consumer,null,(function(i){var e=function(t,n){var i,e,r,a=(n||{}).customizations,u=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:hn(u.settings,t.settings),scopedSettings:(i=u.scopedSettings,e=t.scopedSettings,void 0===i&&(i={}),(dn(e)?e:(void 0===(r=e)&&(r={}),function(t){var n=(0,o.Cl)({},t);for(var i in r)r.hasOwnProperty(i)&&(n[i]=(0,o.Cl)((0,o.Cl)({},t[i]),r[i]));return n}))(i)),inCustomizerContext:!0}}}(t.props,i);return n&&(e=n(e)),a.createElement(fn.z.Provider,{value:e},t.props.children)}))},n}(a.Component),pn=i(143),gn=(0,u.Z)(),mn=(0,un.J9)((function(t,n){return(0,pn.a)((0,o.Cl)((0,o.Cl)({},t),{rtl:n}))})),yn=a.forwardRef((function(t,n){var i=t.className,e=t.theme,r=t.applyTheme,u=t.applyThemeToBody,l=t.styles,c=gn(l,{theme:e,applyTheme:r,className:i}),f=a.useRef(null);return function(t,n,i){var e=n.bodyThemed;a.useEffect((function(){if(t){var n=(0,C.Y)(i.current);if(n)return n.body.classList.add(e),function(){n.body.classList.remove(e)}}}),[e,t,i])}(u,c,f),a.createElement(a.Fragment,null,function(t,n,i,e){var r=n.root,u=t.as,l=void 0===u?"div":u,c=t.dir,f=t.theme,h=z(t,R,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,s.jI)(n)?"rtl":"ltr",r=(0,s.jI)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=a.createElement(ln,{providerRef:i},a.createElement(l,(0,o.Cl)({dir:v},h,{className:r,ref:Et(i,e)})));return p&&(g=a.createElement(vn,{settings:{theme:mn(f,"rtl"===c)}},g)),g}(t,c,f,n))}));yn.displayName="FabricBase";var bn,xn={fontFamily:"inherit"},wn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Cn=(0,r.I)(yn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,It.Km)(wn,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":xn,"& input":xn,"& textarea":xn},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Mn=i(517),kn="data-portal-element",Sn={},An={},Ln="fluent-default-layer-host",Vn="#".concat(Ln),Dn=i(921),Nn=(0,Dn.S)()?a.useLayoutEffect:a.useEffect,Tn=(0,u.Z)(),On=a.forwardRef((function(t,n){var i,e=null!==(i=a.useContext(rn))&&void 0!==i?i:on,r=a.useRef(null),u=Et(r,n),s=a.useRef(),l=a.useRef(null),c=a.useContext(sn),f=a.useState(!1),h=f[0],d=f[1],v=a.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Mn.Y2);t&&i&&t.classList.add(Mn.Y2)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,w=t.onLayerDidMount,M=void 0===w?function(){}:w,k=t.onLayerMounted,S=void 0===k?function(){}:k,A=t.onLayerWillUnmount,L=t.styles,V=t.theme,D=Et(l,null==y?void 0:y.ref,v),N=Tn(L,{theme:V,className:g,isNotHost:!b}),T=function(){null==A||A();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,o=(0,C.Y)(r.current),a=(null===(n=null===(t=r.current)||void 0===t?void 0:t.getRootNode())||void 0===n?void 0:n.host)?null===(i=null==r?void 0:r.current)||void 0===i?void 0:i.getRootNode():void 0;if(o&&(o||a)){var u=function(t,n){var i,e;void 0===n&&(n=null);var r=null!=n?n:t;if(b){var o=function(t){var n=An[t];return n&&n[0]||void 0}(b);return o?null!==(i=o.rootRef.current)&&void 0!==i?i:null:null!==(e=r.getElementById(b))&&void 0!==e?e:null}var a=Vn,u=a?r.querySelector(a):null;return u||(u=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",Ln),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),u}(o,a);if(u){u.__tabsterElementFlags||(u.__tabsterElementFlags={}),u.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=u.ownerDocument)&&void 0!==e?e:o).createElement("div");l.className=N.root,l.setAttribute(kn,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(l,r.current),x?u.insertBefore(l,u.firstChild):u.appendChild(l),s.current=l,d(!0)}}};return Nn((function(){O(),b&&function(t,n){Sn[t]||(Sn[t]=[]),Sn[t].push(n);var i=An[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);var t=s.current?e(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=Sn[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete Sn[t])}var r=An[t];if(r)for(var o=0,a=r;o<a.length;o++)a[o].notifyLayersChanged()}(b,O)}}),[b]),a.useEffect((function(){s.current&&h&&(null==S||S(),null==M||M(),d(!1))}),[h,S,M]),a.createElement("span",{className:"ms-layer",ref:u},s.current&&an.createPortal(a.createElement(ln,{layerRoot:!0,providerRef:D},a.createElement(Cn,(0,o.Cl)({},!m&&(bn||(bn={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return bn[t]=En}))),bn),y,{className:j(N.content,null==y?void 0:y.className),ref:D}),p)),s.current))}));On.displayName="LayerBase";var En=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Fn={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Bn=(0,r.I)(On,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,It.Km)(Fn,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:It.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Pn=a.forwardRef((function(t,n){var i=t.layerProps,e=t.doNotLayer,r=(0,o.Tt)(t,["layerProps","doNotLayer"]),u=a.createElement(en,(0,o.Cl)({},r,{doNotLayer:e,ref:n}));return e?u:a.createElement(Bn,(0,o.Cl)({},i),u)}));Pn.displayName="Callout";var _n=i(607);function Hn(t){return t}var In=1e-6;function Wn(t){return"translate("+t+",0)"}function Rn(t){return"translate(0,"+t+")"}function zn(t){return n=>+t(n)}function jn(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function $n(){return!this.__axis}function Yn(t,n){var i=[],e=null,r=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",f=1===t||3===t?Wn:Rn;function h(h){var d=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,v=null==r?n.tickFormat?n.tickFormat.apply(n,i):Hn:r,p=Math.max(o,0)+u,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?jn:zn)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),C=x.selectAll(".tick").data(d,n).order(),M=C.exit(),k=C.enter().append("g").attr("class","tick"),S=C.select("line"),A=C.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),A=A.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),C=C.transition(h),S=S.transition(h),A=A.transition(h),M=M.transition(h).attr("opacity",In).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",In).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),w.attr("d",4===t||2===t?a?"M"+l*a+","+m+"H"+s+"V"+y+"H"+l*a:"M"+s+","+m+"V"+y:a?"M"+m+","+l*a+"V"+s+"H"+y+"V"+l*a:"M"+m+","+s+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),S.attr(c+"2",l*o),A.attr(c,l*p).text(v),x.filter($n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return i=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:Array.from(t),h):e&&e.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function Xn(t){return Yn(2,t)}function Gn(t){return Yn(3,t)}function qn(t){return Yn(4,t)}const Un=Math.sqrt(50),Zn=Math.sqrt(10),Kn=Math.sqrt(2);function Jn(t,n,i){const e=(n-t)/Math.max(0,i),r=Math.floor(Math.log10(e)),o=e/Math.pow(10,r),a=o>=Un?10:o>=Zn?5:o>=Kn?2:1;let u,s,l;return r<0?(l=Math.pow(10,-r)/a,u=Math.round(t*l),s=Math.round(n*l),u/l<t&&++u,s/l>n&&--s,l=-l):(l=Math.pow(10,r)*a,u=Math.round(t/l),s=Math.round(n/l),u*l<t&&++u,s*l>n&&--s),s<u&&.5<=i&&i<2?Jn(t,n,2*i):[u,s,l]}function Qn(t,n,i){if(!((i=+i)>0))return[];if((t=+t)===(n=+n))return[t];const e=n<t,[r,o,a]=e?Jn(n,t,i):Jn(t,n,i);if(!(o>=r))return[];const u=o-r+1,s=new Array(u);if(e)if(a<0)for(let t=0;t<u;++t)s[t]=(o-t)/-a;else for(let t=0;t<u;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)s[t]=(r+t)/-a;else for(let t=0;t<u;++t)s[t]=(r+t)*a;return s}function ti(t,n,i){return Jn(t=+t,n=+n,i=+i)[2]}function ni(t,n,i){i=+i;const e=(n=+n)<(t=+t),r=e?ti(n,t,i):ti(t,n,i);return(e?-1:1)*(r<0?1/-r:r)}function ii(t,n,i){let e;for(;;){const r=ti(t,n,i);if(r===e||0===r||!isFinite(r))return[t,n];r>0?(t=Math.floor(t/r)*r,n=Math.ceil(n/r)*r):r<0&&(t=Math.ceil(t*r)/r,n=Math.floor(n*r)/r),e=r}}function ei(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}function ri(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function oi(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function ai(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function ui(t){let n,i,e;function r(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<0?r=n+1:o=n}while(r<o)}return r}return 2!==t.length?(n=oi,i=(n,i)=>oi(t(n),i),e=(n,i)=>t(n)-i):(n=t===oi||t===ai?t:si,i=t,e=t),{left:r,center:function(t,n,i=0,o=t.length){const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<=0?r=n+1:o=n}while(r<o)}return r}}}function si(){return 0}const li=ui(oi),ci=li.right;li.left,ui((function(t){return null===t?NaN:+t})).center;var fi=ci;function hi(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function di(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function vi(){}var pi=.7,gi=1/pi,mi="\\s*([+-]?\\d+)\\s*",yi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xi=/^#([0-9a-f]{3,8})$/,wi=new RegExp(`^rgb\\(${mi},${mi},${mi}\\)$`),Ci=new RegExp(`^rgb\\(${bi},${bi},${bi}\\)$`),Mi=new RegExp(`^rgba\\(${mi},${mi},${mi},${yi}\\)$`),ki=new RegExp(`^rgba\\(${bi},${bi},${bi},${yi}\\)$`),Si=new RegExp(`^hsl\\(${yi},${bi},${bi}\\)$`),Ai=new RegExp(`^hsla\\(${yi},${bi},${bi},${yi}\\)$`),Li={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 Vi(){return this.rgb().formatHex()}function Di(){return this.rgb().formatRgb()}function Ni(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=xi.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ti(n):3===i?new Fi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?Oi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?Oi(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=wi.exec(t))?new Fi(n[1],n[2],n[3],1):(n=Ci.exec(t))?new Fi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Mi.exec(t))?Oi(n[1],n[2],n[3],n[4]):(n=ki.exec(t))?Oi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Si.exec(t))?Wi(n[1],n[2]/100,n[3]/100,1):(n=Ai.exec(t))?Wi(n[1],n[2]/100,n[3]/100,n[4]):Li.hasOwnProperty(t)?Ti(Li[t]):"transparent"===t?new Fi(NaN,NaN,NaN,0):null}function Ti(t){return new Fi(t>>16&255,t>>8&255,255&t,1)}function Oi(t,n,i,e){return e<=0&&(t=n=i=NaN),new Fi(t,n,i,e)}function Ei(t,n,i,e){return 1===arguments.length?((r=t)instanceof vi||(r=Ni(r)),r?new Fi((r=r.rgb()).r,r.g,r.b,r.opacity):new Fi):new Fi(t,n,i,null==e?1:e);var r}function Fi(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function Bi(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function Pi(){const t=_i(this.opacity);return`${1===t?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${1===t?")":`, ${t})`}`}function _i(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Hi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ii(t){return((t=Hi(t))<16?"0":"")+t.toString(16)}function Wi(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new zi(t,n,i,e)}function Ri(t){if(t instanceof zi)return new zi(t.h,t.s,t.l,t.opacity);if(t instanceof vi||(t=Ni(t)),!t)return new zi;if(t instanceof zi)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),a=NaN,u=o-r,s=(o+r)/2;return u?(a=n===o?(i-e)/u+6*(i<e):i===o?(e-n)/u+2:(n-i)/u+4,u/=s<.5?o+r:2-o-r,a*=60):u=s>0&&s<1?0:a,new zi(a,u,s,t.opacity)}function zi(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function ji(t){return(t=(t||0)%360)<0?t+360:t}function $i(t){return Math.max(0,Math.min(1,t||0))}function Yi(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function Xi(t,n,i,e,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*e+a*r)/6}hi(vi,Ni,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Vi,formatHex:Vi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ri(this).formatHsl()},formatRgb:Di,toString:Di}),hi(Fi,Ei,di(vi,{brighter(t){return t=null==t?gi:Math.pow(gi,t),new Fi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pi:Math.pow(pi,t),new Fi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Fi(Hi(this.r),Hi(this.g),Hi(this.b),_i(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bi,formatHex:Bi,formatHex8:function(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pi,toString:Pi})),hi(zi,(function(t,n,i,e){return 1===arguments.length?Ri(t):new zi(t,n,i,null==e?1:e)}),di(vi,{brighter(t){return t=null==t?gi:Math.pow(gi,t),new zi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pi:Math.pow(pi,t),new zi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new Fi(Yi(t>=240?t-240:t+120,r,e),Yi(t,r,e),Yi(t<120?t+240:t-120,r,e),this.opacity)},clamp(){return new zi(ji(this.h),$i(this.s),$i(this.l),_i(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=_i(this.opacity);return`${1===t?"hsl(":"hsla("}${ji(this.h)}, ${100*$i(this.s)}%, ${100*$i(this.l)}%${1===t?")":`, ${t})`}`}}));var Gi=t=>()=>t;function qi(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):Gi(isNaN(t)?n:t)}var Ui=function t(n){var i=function(t){return 1===(t=+t)?qi:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):Gi(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Ei(t)).r,(n=Ei(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),a=qi(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=a(n),t+""}}return e.gamma=t,e}(1);function Zi(t){return function(n){var i,e,r=n.length,o=new Array(r),a=new Array(r),u=new Array(r);for(i=0;i<r;++i)e=Ei(n[i]),o[i]=e.r||0,a[i]=e.g||0,u[i]=e.b||0;return o=t(o),a=t(a),u=t(u),e.opacity=1,function(t){return e.r=o(t),e.g=a(t),e.b=u(t),e+""}}}function Ki(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),a=new Array(e);for(i=0;i<r;++i)o[i]=oe(t[i],n[i]);for(;i<e;++i)a[i]=n[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function Ji(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function Qi(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function te(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=oe(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}Zi((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],a=e>0?t[e-1]:2*r-o,u=e<n-1?t[e+2]:2*o-r;return Xi((i-e/n)*n,a,r,o,u)}})),Zi((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],a=t[(e+1)%n],u=t[(e+2)%n];return Xi((i-e/n)*n,r,o,a,u)}}));var ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ie=new RegExp(ne.source,"g");function ee(t,n){var i,e,r,o=ne.lastIndex=ie.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(i=ne.exec(t))&&(e=ie.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),u[a]?u[a]+=r:u[++a]=r),(i=i[0])===(e=e[0])?u[a]?u[a]+=e:u[++a]=e:(u[++a]=null,s.push({i:a,x:Qi(i,e)})),o=ie.lastIndex;return o<n.length&&(r=n.slice(o),u[a]?u[a]+=r:u[++a]=r),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)u[(i=s[e]).i]=i.x(t);return u.join("")})}function re(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function oe(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?Gi(n):("number"===r?Qi:"string"===r?(i=Ni(n))?(n=i,Ui):ee:n instanceof Ni?Ui:n instanceof Date?Ji:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?Ki:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?te:Qi:re))(t,n)}function ae(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function ue(t){return+t}var se=[0,1];function le(t){return t}function ce(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function fe(t,n,i){var e=t[0],r=t[1],o=n[0],a=n[1];return r<e?(e=ce(r,e),o=i(a,o)):(e=ce(e,r),o=i(o,a)),function(t){return o(e(t))}}function he(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),a=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<e;)r[a]=ce(t[a],t[a+1]),o[a]=i(n[a],n[a+1]);return function(n){var i=fi(t,n,1,e)-1;return o[i](r[i](n))}}function de(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ve(){return function(){var t,n,i,e,r,o,a=se,u=se,s=oe,l=le;function c(){var t,n,i,s=Math.min(a.length,u.length);return l!==le&&(t=a[0],n=a[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?he:fe,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(a.map(t),u,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(u,a.map(t),Qi)))(i)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ue),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ae,c()},f.clamp=function(t){return arguments.length?(l=!!t||le,c()):l!==le},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(le,le)}function pe(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var ge,me=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ye(t){if(!(n=me.exec(t)))throw new Error("invalid format: "+t);var n;return new be({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function be(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xe(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function we(t){return(t=xe(Math.abs(t)))?t[1]:NaN}function Ce(t,n){var i=xe(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}ye.prototype=be.prototype,be.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 Me={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ce(100*t,n),r:Ce,s:function(t,n){var i=xe(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(ge=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=e.length;return o===a?e:o>a?e+new Array(o-a+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+xe(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ke(t){return t}var Se,Ae,Le,Ve=Array.prototype.map,De=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ne(){var t=ve();return t.copy=function(){return de(t,Ne())},pe.apply(t,arguments),function(t){var n=t.domain;return t.ticks=function(t){var i=n();return Qn(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var e=n();return function(t,n,i,e){var r,o=ni(t,n,i);switch((e=ye(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(we(n)/3)))-we(Math.abs(t)))}(o,a))||(e.precision=r),Le(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,we(n)-we(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-we(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Ae(e)}(e[0],e[e.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(r=s,s=l,l=r,r=a,a=u,u=r);c-- >0;){if((r=ti(s,l,i))===e)return o[a]=s,o[u]=l,n(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}e=r}return t},t}(t)}Se=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?ke:(n=Ve.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?ke:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ve.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=ye(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Me[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",w=Me[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0===+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?De[8+ge/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?a+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+M.length,A=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(A+t,A.length?v-M.length:1/0),A=""),i){case"<":t=h+t+M+A;break;case"=":t=h+A+t+M;break;case"^":t=A.slice(0,S=A.length>>1)+h+t+M+A.slice(S);break;default:t=A+h+t+M}return u(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i=f(((t=ye(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(we(n)/3))),r=Math.pow(10,-e),o=De[8+e/3];return function(t){return i(r*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ae=Se.format,Le=Se.formatPrefix;const Te=1e3,Oe=6e4,Ee=36e5,Fe=864e5,Be=6048e5,Pe=31536e6,_e=new Date,He=new Date;function Ie(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=n=>(t(n=new Date(+n)),n),r.ceil=i=>(t(i=new Date(i-1)),n(i,1),t(i),i),r.round=t=>{const n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=(t,i)=>(n(t=new Date(+t),null==i?1:Math.floor(i)),t),r.range=(i,e,o)=>{const a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;let u;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=i=>Ie((n=>{if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),((t,e)=>{if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););})),i&&(r.count=(n,e)=>(_e.setTime(+n),He.setTime(+e),t(_e),t(He),Math.floor(i(_e,He))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?n=>e(n)%t===0:n=>r.count(0,n)%t===0):r:null)),r}const We=Ie((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));We.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Ie((n=>{n.setTime(Math.floor(n/t)*t)}),((n,i)=>{n.setTime(+n+i*t)}),((n,i)=>(i-n)/t)):We:null),We.range;const Re=Ie((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Te)}),((t,n)=>(n-t)/Te),(t=>t.getUTCSeconds())),ze=(Re.range,Ie((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Te)}),((t,n)=>{t.setTime(+t+n*Oe)}),((t,n)=>(n-t)/Oe),(t=>t.getMinutes()))),je=(ze.range,Ie((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*Oe)}),((t,n)=>(n-t)/Oe),(t=>t.getUTCMinutes()))),$e=(je.range,Ie((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Te-t.getMinutes()*Oe)}),((t,n)=>{t.setTime(+t+n*Ee)}),((t,n)=>(n-t)/Ee),(t=>t.getHours()))),Ye=($e.range,Ie((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*Ee)}),((t,n)=>(n-t)/Ee),(t=>t.getUTCHours()))),Xe=(Ye.range,Ie((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oe)/Fe),(t=>t.getDate()-1))),Ge=(Xe.range,Ie((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Fe),(t=>t.getUTCDate()-1))),qe=(Ge.range,Ie((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Fe),(t=>Math.floor(t/Fe))));function Ue(t){return Ie((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+7*n)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oe)/Be))}qe.range;const Ze=Ue(0),Ke=Ue(1),Je=Ue(2),Qe=Ue(3),tr=Ue(4),nr=Ue(5),ir=Ue(6);function er(t){return Ie((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+7*n)}),((t,n)=>(n-t)/Be))}Ze.range,Ke.range,Je.range,Qe.range,tr.range,nr.range,ir.range;const rr=er(0),or=er(1),ar=er(2),ur=er(3),sr=er(4),lr=er(5),cr=er(6),fr=(rr.range,or.range,ar.range,ur.range,sr.range,lr.range,cr.range,Ie((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),hr=(fr.range,Ie((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),dr=(hr.range,Ie((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));dr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ie((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),((n,i)=>{n.setFullYear(n.getFullYear()+i*t)})):null,dr.range;const vr=Ie((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function pr(t,n,i,e,r,o){const a=[[Re,1,Te],[Re,5,5e3],[Re,15,15e3],[Re,30,3e4],[o,1,Oe],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,Ee],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,Fe],[e,2,1728e5],[i,1,Be],[n,1,2592e6],[n,3,7776e6],[t,1,Pe]];function u(n,i,e){const r=Math.abs(i-n)/e,o=ui((([,,t])=>t)).right(a,r);if(o===a.length)return t.every(ni(n/Pe,i/Pe,e));if(0===o)return We.every(Math.max(ni(n,i,e),1));const[u,s]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return u.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:u(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},u]}vr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ie((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),((n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null,vr.range;const[gr,mr]=pr(vr,hr,rr,qe,Ye,je),[yr,br]=pr(dr,fr,Ze,Xe,$e,ze);var xr=new Date,wr=new Date;function Cr(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=function(n){return t(n=new Date(+n)),n},r.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},r.round=function(t){var n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},r.range=function(i,e,o){var a,u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=function(i){return Cr((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(r.count=function(n,e){return xr.setTime(+n),wr.setTime(+e),t(xr),t(wr),Math.floor(i(xr,wr))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?function(n){return e(n)%t===0}:function(n){return r.count(0,n)%t===0}):r:null}),r}const Mr=864e5,kr=6048e5;function Sr(t){return Cr((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/kr}))}var Ar=Sr(0),Lr=Sr(1),Vr=Sr(2),Dr=Sr(3),Nr=Sr(4),Tr=Sr(5),Or=Sr(6),Er=(Ar.range,Lr.range,Vr.range,Dr.range,Nr.range,Tr.range,Or.range,Cr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Mr}),(function(t){return t.getUTCDate()-1}))),Fr=Er;function Br(t){return Cr((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/kr}))}Er.range;var Pr=Br(0),_r=Br(1),Hr=Br(2),Ir=Br(3),Wr=Br(4),Rr=Br(5),zr=Br(6),jr=(Pr.range,_r.range,Hr.range,Ir.range,Wr.range,Rr.range,zr.range,Cr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/Mr),(t=>t.getDate()-1))),$r=jr,Yr=(jr.range,Cr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Yr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cr((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null};var Xr=Yr,Gr=(Yr.range,Cr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Gr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cr((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null};var qr=Gr;function Ur(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Zr(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Kr(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function Jr(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=lo(r),c=co(r),f=lo(o),h=co(o),d=lo(a),v=co(a),p=lo(u),g=co(u),m=lo(s),y=co(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Oo,e:Oo,f:_o,g:qo,G:Zo,H:Eo,I:Fo,j:Bo,L:Po,m:Ho,M:Io,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ba,s:xa,S:Wo,u:Ro,U:zo,V:$o,w:Yo,W:Xo,x:null,X:null,y:Go,Y:Uo,Z:Ko,"%":ya},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Jo,e:Jo,f:ea,g:va,G:ga,H:Qo,I:ta,j:na,L:ia,m:ra,M:oa,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ba,s:xa,S:aa,u:ua,U:sa,V:ca,w:fa,W:ha,x:null,X:null,y:da,Y:pa,Z:ma,"%":ya},w={a:function(t,n,i){var e=d.exec(n.slice(i));return e?(t.w=v.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=f.exec(n.slice(i));return e?(t.w=h.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.m=y.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=p.exec(n.slice(i));return e?(t.m=g.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return k(t,n,i,e)},d:Co,e:Co,f:Vo,g:yo,G:mo,H:ko,I:ko,j:Mo,L:Lo,m:wo,M:So,p:function(t,n,i){var e=l.exec(n.slice(i));return e?(t.p=c.get(e[0].toLowerCase()),i+e[0].length):-1},q:xo,Q:No,s:To,S:Ao,u:ho,U:vo,V:po,w:fo,W:go,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:yo,Y:mo,Z:bo,"%":Do};function C(t,n){return function(i){var e,r,o,a=[],u=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(r=eo[e=t.charAt(++u)])?e=t.charAt(++u):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),a.push(e),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(i){var e,r,o=Kr(1900,void 0,1);if(k(o,t,i+="",0)!=i.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(e=Zr(Kr(o.y,0,1))).getUTCDay(),e=r>4||0===r?Lr.ceil(e):Lr(e),e=Fr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=Ur(Kr(o.y,0,1))).getDay(),e=r>4||0===r?_r.ceil(e):_r(e),e=$r.offset(e,7*(o.V-1)),o.y=e.getFullYear(),o.m=e.getMonth(),o.d=e.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Zr(Kr(o.y,0,1)).getUTCDay():Ur(Kr(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Zr(o)):Ur(o)}}function k(t,n,i,e){for(var r,o,a=0,u=n.length,s=i.length;a<u;){if(e>=s)return-1;if(37===(r=n.charCodeAt(a++))){if(r=n.charAt(a++),!(o=w[r in eo?n.charAt(a++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=C(i,b),b.X=C(e,b),b.c=C(n,b),x.x=C(i,x),x.X=C(e,x),x.c=C(n,x),{format:function(t){var n=C(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=C(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}Gr.range;var Qr,to,no,io,eo={"-":"",_:" ",0:"0"},ro=/^\s*\d+/,oo=/^%/,ao=/[\\^$*+?|[\]().{}]/g;function uo(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function so(t){return t.replace(ao,"\\$&")}function lo(t){return new RegExp("^(?:"+t.map(so).join("|")+")","i")}function co(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function fo(t,n,i){var e=ro.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function ho(t,n,i){var e=ro.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function vo(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function po(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function go(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function mo(t,n,i){var e=ro.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function yo(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function bo(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function xo(t,n,i){var e=ro.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function wo(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Co(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function Mo(t,n,i){var e=ro.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function ko(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function So(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function Ao(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function Lo(t,n,i){var e=ro.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Vo(t,n,i){var e=ro.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Do(t,n,i){var e=oo.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function No(t,n,i){var e=ro.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function To(t,n,i){var e=ro.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function Oo(t,n){return uo(t.getDate(),n,2)}function Eo(t,n){return uo(t.getHours(),n,2)}function Fo(t,n){return uo(t.getHours()%12||12,n,2)}function Bo(t,n){return uo(1+$r.count(Xr(t),t),n,3)}function Po(t,n){return uo(t.getMilliseconds(),n,3)}function _o(t,n){return Po(t,n)+"000"}function Ho(t,n){return uo(t.getMonth()+1,n,2)}function Io(t,n){return uo(t.getMinutes(),n,2)}function Wo(t,n){return uo(t.getSeconds(),n,2)}function Ro(t){var n=t.getDay();return 0===n?7:n}function zo(t,n){return uo(Pr.count(Xr(t)-1,t),n,2)}function jo(t){var n=t.getDay();return n>=4||0===n?Wr(t):Wr.ceil(t)}function $o(t,n){return t=jo(t),uo(Wr.count(Xr(t),t)+(4===Xr(t).getDay()),n,2)}function Yo(t){return t.getDay()}function Xo(t,n){return uo(_r.count(Xr(t)-1,t),n,2)}function Go(t,n){return uo(t.getFullYear()%100,n,2)}function qo(t,n){return uo((t=jo(t)).getFullYear()%100,n,2)}function Uo(t,n){return uo(t.getFullYear()%1e4,n,4)}function Zo(t,n){var i=t.getDay();return uo((t=i>=4||0===i?Wr(t):Wr.ceil(t)).getFullYear()%1e4,n,4)}function Ko(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+uo(n/60|0,"0",2)+uo(n%60,"0",2)}function Jo(t,n){return uo(t.getUTCDate(),n,2)}function Qo(t,n){return uo(t.getUTCHours(),n,2)}function ta(t,n){return uo(t.getUTCHours()%12||12,n,2)}function na(t,n){return uo(1+Fr.count(qr(t),t),n,3)}function ia(t,n){return uo(t.getUTCMilliseconds(),n,3)}function ea(t,n){return ia(t,n)+"000"}function ra(t,n){return uo(t.getUTCMonth()+1,n,2)}function oa(t,n){return uo(t.getUTCMinutes(),n,2)}function aa(t,n){return uo(t.getUTCSeconds(),n,2)}function ua(t){var n=t.getUTCDay();return 0===n?7:n}function sa(t,n){return uo(Ar.count(qr(t)-1,t),n,2)}function la(t){var n=t.getUTCDay();return n>=4||0===n?Nr(t):Nr.ceil(t)}function ca(t,n){return t=la(t),uo(Nr.count(qr(t),t)+(4===qr(t).getUTCDay()),n,2)}function fa(t){return t.getUTCDay()}function ha(t,n){return uo(Lr.count(qr(t)-1,t),n,2)}function da(t,n){return uo(t.getUTCFullYear()%100,n,2)}function va(t,n){return uo((t=la(t)).getUTCFullYear()%100,n,2)}function pa(t,n){return uo(t.getUTCFullYear()%1e4,n,4)}function ga(t,n){var i=t.getUTCDay();return uo((t=i>=4||0===i?Nr(t):Nr.ceil(t)).getUTCFullYear()%1e4,n,4)}function ma(){return"+0000"}function ya(){return"%"}function ba(t){return+t}function xa(t){return Math.floor(+t/1e3)}function wa(t){return new Date(t)}function Ca(t){return t instanceof Date?+t:+new Date(+t)}function Ma(t,n,i,e,r,o,a,u,s,l){var c=ve(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:u(t)<t?v:a(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Ca)):h().map(wa)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],a=t[r];return a<o&&(i=e,e=r,r=i,i=o,o=a,a=i),t[e]=n.floor(o),t[r]=n.ceil(a),t}(i,t)):c},c.copy=function(){return de(c,Ma(t,n,i,e,r,o,a,u,s,l))},c}function ka(){return pe.apply(Ma(yr,br,dr,fr,Ze,Xe,$e,ze,Re,to).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sa(){return pe.apply(Ma(gr,mr,vr,hr,rr,Ge,Ye,je,Re,io).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Aa(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}Qr=Jr({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"]}),to=Qr.format,no=Qr.parse,io=Qr.utcFormat,Qr.utcParse;class La extends Map{constructor(t,n=Da){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Va(this,t))}has(t){return super.has(Va(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}(this,t))}}function Va({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function Da(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Na=Symbol("implicit");function Ta(){var t=new La,n=[],i=[],e=Na;function r(r){let o=t.get(r);if(void 0===o){if(e!==Na)return e;t.set(r,o=n.push(r)-1)}return i[o%i.length]}return r.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new La;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Ta(n,i).unknown(e)},pe.apply(r,arguments),r}function Oa(){var t,n,i=Ta().unknown(void 0),e=i.domain,r=i.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,i-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var v=Aa(i).map((function(n){return h+t*n}));return r(f?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(e(t),f()):e()},i.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},i.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(u=!!t,f()):u},i.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},i.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},i.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},i.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},i.copy=function(){return Oa(e(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},pe.apply(f(),arguments)}function Ea(){}function Fa(t){return null==t?Ea:function(){return this.querySelector(t)}}function Ba(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Pa(){return[]}function _a(t){return function(n){return n.matches(t)}}var Ha=Array.prototype.find;function Ia(){return this.firstElementChild}var Wa=Array.prototype.filter;function Ra(){return Array.from(this.children)}function za(t){return new Array(t.length)}function ja(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function $a(t,n,i,e,r,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],e[u]=a):i[u]=new ja(t,o[u]);for(;u<s;++u)(a=n[u])&&(r[u]=a)}function Ya(t,n,i,e,r,o,a){var u,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(d[u]=l=a.call(s,s.__data__,u,n)+"",c.has(l)?r[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(e[u]=s,s.__data__=o[u],c.delete(l)):i[u]=new ja(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c.get(d[u])===s&&(r[u]=s)}function Xa(t){return t.__data__}function Ga(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function qa(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}ja.prototype={constructor:ja,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ua="http://www.w3.org/1999/xhtml",Za={svg:"http://www.w3.org/2000/svg",xhtml:Ua,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ka(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),Za.hasOwnProperty(n)?{space:Za[n],local:t}:t}function Ja(t){return function(){this.removeAttribute(t)}}function Qa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tu(t,n){return function(){this.setAttribute(t,n)}}function nu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function eu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function ru(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ou(t){return function(){this.style.removeProperty(t)}}function au(t,n,i){return function(){this.style.setProperty(t,n,i)}}function uu(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function su(t){return function(){delete this[t]}}function lu(t,n){return function(){this[t]=n}}function cu(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function fu(t){return t.trim().split(/^|\s+/)}function hu(t){return t.classList||new du(t)}function du(t){this._node=t,this._names=fu(t.getAttribute("class")||"")}function vu(t,n){for(var i=hu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function pu(t,n){for(var i=hu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function gu(t){return function(){vu(this,t)}}function mu(t){return function(){pu(this,t)}}function yu(t,n){return function(){(n.apply(this,arguments)?vu:pu)(this,t)}}function bu(){this.textContent=""}function xu(t){return function(){this.textContent=t}}function wu(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Cu(){this.innerHTML=""}function Mu(t){return function(){this.innerHTML=t}}function ku(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function Su(){this.nextSibling&&this.parentNode.appendChild(this)}function Au(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Lu(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Ua&&n.documentElement.namespaceURI===Ua?n.createElement(t):n.createElementNS(i,t)}}function Vu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Du(t){var n=Ka(t);return(n.local?Vu:Lu)(n)}function Nu(){return null}function Tu(){var t=this.parentNode;t&&t.removeChild(this)}function Ou(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Eu(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Fu(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?n.length=r:delete this.__on}}}function Bu(t,n,i){return function(){var e,r=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var a=0,u=r.length;a<u;++a)if((e=r[a]).type===t.type&&e.name===t.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=o,e.options=i),void(e.value=n);this.addEventListener(t.type,o,i),e={type:t.type,name:t.name,value:n,listener:o,options:i},r?r.push(e):this.__on=[e]}}function Pu(t,n,i){var e=ru(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function _u(t,n){return function(){return Pu(this,t,n)}}function Hu(t,n){return function(){return Pu(this,t,n.apply(this,arguments))}}du.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Iu,Wu,Ru,zu,ju=[null];function $u(t,n){this._groups=t,this._parents=n}function Yu(t){return"string"==typeof t?new $u([[document.querySelector(t)]],[document.documentElement]):new $u([[t]],ju)}function Xu(t){return"string"==typeof t?new $u([document.querySelectorAll(t)],[document.documentElement]):new $u([Ba(t)],ju)}function Gu(t){this._context=t}function qu(t){return new Gu(t)}function Uu(t){this._context=t}function Zu(t){var n,i,e=t.length-1,r=new Array(e),o=new Array(e),a=new Array(e);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<e-1;++n)r[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(r[e-1]=2,o[e-1]=7,a[e-1]=8*t[e-1]+t[e],n=1;n<e;++n)i=r[n]/o[n-1],o[n]-=i,a[n]-=i*a[n-1];for(r[e-1]=a[e-1]/o[e-1],n=e-2;n>=0;--n)r[n]=(a[n]-r[n+1])/o[n];for(o[e-1]=(t[e]+r[e-1])/2,n=0;n<e-1;++n)o[n]=2*t[n+1]-r[n+1];return[r,o]}function Ku(t){return new Uu(t)}function Ju(t,n){this._context=t,this._t=n}function Qu(t){return new Ju(t,.5)}function ts(t){return new Ju(t,0)}function ns(t){return new Ju(t,1)}function is(t,n){void 0===n&&(n=!1);var i=Le(".2~",t);Math.abs(t)<1?i=Ae(".2~g"):n&&Math.abs(t)>=1e3&&(i=Le(".1~",t));var e=i(t);return Math.abs(t)>=1e9?e.replace("G","B"):e}function es(t){return is(t)}function rs(t,n,i,e){var r,o=t.domainNRangeValues,a=t.showRoundOffXTickValues,u=void 0===a||a,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,f=void 0===c?10:c,h=t.xAxisCount,d=t.xAxisElement,v=t.hideTickOverlap,p=Ne().domain([o.dStartValue,o.dEndValue]).range([o.rStartValue,o.rEndValue]);u&&p.nice();var g=null!=h?h:6,m=function(t,i){if(n.tickFormat)return Ae(n.tickFormat)(t);var r="number"==typeof t?t:t.valueOf();return Vs(r,e)};if(v&&void 0===h){var y=hs(p.ticks().map(m),'[class^="xAxis-"] text')+20,b=p.range(),x=b[0],w=b[1];g=Math.min(Math.max(1,Math.floor(Math.abs(w-x)/y)),10)}var C=Gn(p).tickSize(l).tickPadding(f).ticks(g).tickFormat(m);i===Wu.HorizontalBarChartWithAxis&&C.tickSizeInner(-(t.containerHeight-t.margins.top)),n.tickValues&&C.tickValues(n.tickValues),d&&Yu(d).call(C).selectAll("text").attr("aria-hidden","true");var M=(null!==(r=n.tickValues)&&void 0!==r?r:p.ticks(g)).map(C.tickFormat());return{xScale:p,tickValues:M}}function os(t,n,i,e,r){if(r)return function(t,n,i){var e,r=t<0&&t===n?0:n,o=ii(t>=0&&t===n?0:t,r,i),a=Qn(o[0],o[o.length-1],i);return a[a.length-1]>r&&(e=function(t){var n=Math.round(t);return Math.abs(t-n)<1e-6?n:t}(r),Math.log10(e)%1==0)&&a.pop(),a}(n,t,i);var o=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,a=[n<0&&t>=0?0:n];if(a[0]===n&&a.push(n+o),n<0&&t>=0){for(;a[a.length-1]>n;)a.push(a[a.length-1]-o);a.reverse()}for(;a[a.length-1]<t;)a.push(a[a.length-1]+o);return a}function as(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,a=t.yMaxValue,u=void 0===a?0:a,s=t.yMinValue,l=void 0===s?0:s,c=t.containerHeight,f=t.margins,h=t.tickPadding,d=void 0===h?12:h,v=t.maxOfYVal,p=void 0===v?0:v,g=t.yAxisTickFormat,m=t.yAxisTickCount,y=void 0===m?4:m,b=p||e.endValue,x=b>u?b:u,w=e.startValue<l?Math.min(0,e.startValue):l,C=Ne().domain([w,x]).range([c-f.bottom,f.top]),M=(n?Xn(C):qn(C)).tickPadding(d).ticks(y);return g?M.tickFormat(g):M.tickFormat(es),o&&Yu(o).call(M).selectAll("text").attr("aria-hidden","true"),C}function us(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===a&&(a=!1);var u=t.yMinMaxValues,s=void 0===u?{startValue:0,endValue:0}:u,l=t.yAxisElement,c=void 0===l?null:l,f=t.yMaxValue,h=void 0===f?0:f,d=t.yMinValue,v=void 0===d?0:d,p=t.containerHeight,g=t.containerWidth,m=t.margins,y=t.tickPadding,b=void 0===y?12:y,x=t.maxOfYVal,w=void 0===x?0:x,C=t.yAxisTickFormat,M=t.yAxisTickCount,k=void 0===M?4:M,S=t.eventAnnotationProps,A=t.eventLabelHeight,L=w||s.endValue,V=L>h?L:h,D=o?Math.min(s.startValue,v||0):s.startValue<v?0:v,N=os(V,D,k,e,a),T=Ne().domain([o?N[0]:D,N[N.length-1]]).range([p-m.bottom,m.top+(S?A:0)]),O=(!n&&r||n&&!r?Xn(T):qn(T)).tickPadding(b).tickValues(N).tickSizeInner(-(g-m.left-m.right));return C?O.tickFormat(C):O.tickFormat(es),c&&Yu(c).call(O).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=N,T}$u.prototype=function(){return new $u([[document.documentElement]],ju)}.prototype={constructor:$u,select:function(t){"function"!=typeof t&&(t=Fa(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a,u=n[r],s=u.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new $u(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Ba(t.apply(this,arguments))}}(t):function(t){return null==t?Pa:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(e.push(t.call(a,a.__data__,l,u)),r.push(a));return new $u(e,r)},selectChild:function(t){return this.select(null==t?Ia:function(t){return function(){return Ha.call(this.children,t)}}("function"==typeof t?t:_a(t)))},selectChildren:function(t){return this.selectAll(null==t?Ra:function(t){return function(){return Wa.call(this.children,t)}}("function"==typeof t?t:_a(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a=n[r],u=a.length,s=e[r]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new $u(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,Xa);var i,e=n?Ya:$a,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=r[c],h=o[c],d=h.length,v=Ga(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=u[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,w=0;x<p;++x)if(y=g[x]){for(x>=w&&(w=x+1);!(b=m[w])&&++w<p;);y._next=b||null}}return(u=new $u(u,r))._enter=s,u._exit=l,u},enter:function(){return new $u(this._enter||this._groups.map(za),this._parents)},exit:function(){return new $u(this._exit||this._groups.map(za),this._parents)},join:function(t,n,i){var e=this.enter(),r=this,o=this.exit();return"function"==typeof t?(e=t(e))&&(e=e.selection()):e=e.append(t+""),null!=n&&(r=n(r))&&(r=r.selection()),null==i?o.remove():i(o),e&&r?e.merge(r).order():r},merge:function(t){for(var n=t.selection?t.selection():t,i=this._groups,e=n._groups,r=i.length,o=e.length,a=Math.min(r,o),u=new Array(r),s=0;s<a;++s)for(var l,c=i[s],f=e[s],h=c.length,d=u[s]=new Array(h),v=0;v<h;++v)(l=c[v]||f[v])&&(d[v]=l);for(;s<r;++s)u[s]=i[s];return new $u(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,a=r[o];--o>=0;)(e=r[o])&&(a&&4^e.compareDocumentPosition(a)&&a.parentNode.insertBefore(e,a),a=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=qa);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var a,u=i[o],s=u.length,l=r[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new $u(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var a=e[r];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],a=0,u=o.length;a<u;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,n){var i=Ka(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?Qa:Ja:"function"==typeof n?i.local?eu:iu:i.local?nu:tu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?ou:"function"==typeof n?uu:au)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||ru(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?su:"function"==typeof n?cu:lu)(t,n)):this.node()[t]},classed:function(t,n){var i=fu(t+"");if(arguments.length<2){for(var e=hu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?yu:n?gu:mu)(i,n))},text:function(t){return arguments.length?this.each(null==t?bu:("function"==typeof t?wu:xu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Cu:("function"==typeof t?ku:Mu)(t)):this.node().innerHTML},raise:function(){return this.each(Su)},lower:function(){return this.each(Au)},append:function(t){var n="function"==typeof t?t:Du(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:Du(t),e=null==n?Nu:"function"==typeof n?n:Fa(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Tu)},clone:function(t){return this.select(t?Eu:Ou)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Bu:Fu,e=0;e<a;++e)this.each(u(o[e],n,i));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(e=0,s=u[l];e<a;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?Hu:_u)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e,r=t[n],o=0,a=r.length;o<a;++o)(e=r[o])&&(yield e)}},Gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},Uu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===i)this._context.lineTo(t[1],n[1]);else for(var e=Zu(t),r=Zu(n),o=0,a=1;a<i;++o,++a)this._context.bezierCurveTo(e[0][o],r[0][o],e[1][o],r[1][o],t[a],n[a]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},Ju.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,n)}}this._x=t,this._y=n}},function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(Wu||(Wu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ru||(Ru={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(zu||(zu={}));var ss=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,a=void 0===o?12:o,u=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,f=null!=c?c:.5;f=1===f?.99:f;var h=Oa().domain(n).range([r-u.bottom,u.top]).padding(f),d=(i?Xn(h):qn(h)).tickPadding(a).ticks(n);return s&&d.tickFormat(s),l&&Yu(l).call(d).selectAll("text"),h},ls=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,a=t.margins,u=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=Oa().domain(n).range([e-a.bottom,a.top]).padding(c),h=(i?Xn(f):qn(f)).tickPadding(o).tickValues(n).tickSize(0);return u&&h.tickFormat(u),s&&Yu(s).call(h).selectAll("text"),f};function cs(t){var n=[];t.forEach((function(t){var i=t.data.filter((function(t){return!t.hideCallout})).map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{legend:t.legend,color:t.color,index:t.index})}));n=n.concat(i)}));var i={};return n.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in i?i[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):i[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(i).map((function(t){return{x:Number(t),values:i[t]}}))}var fs=function(t,n,i){var e=Yu("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},hs=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),a=o.getPropertyValue("font-weight"),u=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(a," ").concat(u," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function ds(t){var n=t.tooltipCls,i=t.axis,e=t.id;if(null===i)return null;for(var r=Yu("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,u=[],s=0;s<a;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];u.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){Yu(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.text(u[t]).style("left",n.pageX+"px").style("top",n.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function vs(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function ps(t,n,i,e){var r=ei(t,(function(t){return ei(t.data,(function(t){return t.x}))})),o=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}function gs(t){var n={};return t.forEach((function(t){var i=t.y;n[i]||(n[i]=[]),n[i].push(t)})),Object.values(n)}function ms(t,n){var i=0,e=0;return t.forEach((function(t){var r=t.reduce((function(t,n){return t+(n.x>0?n.x:0)}),n),o=t.reduce((function(t,n){return t+(n.x<0?n.x:0)}),n);i=Math.max(i,r),e=Math.min(e,o)})),{longestPositiveBar:i,longestNegativeBar:e}}function ys(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}function bs(t,n,i,e,r,a,u){var s,l;void 0===r&&(r=[]),a===Wu.AreaChart||a===Wu.LineChart?(s=ei(t,(function(t){return ei(t.data,(function(t){return t.x}))})),l=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),s=ei((0,o.fX)((0,o.fX)([],r,!0),[s],!1)),l=ri((0,o.fX)((0,o.fX)([],r,!0),[l],!1))):(s=ei(t,(function(t){return t.x})),l=ri(t,(function(t){return t.x})));var c=n.left,f=i-n.right;return e?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}function xs(t,n,i){var e=[];return t.forEach((function(t){!i==!t.useSecondaryYScale&&t.data.forEach((function(t){e.push(t.y)}))})),{startValue:ei(e),endValue:ri(e)}}function ws(t,n,i){var e=[];return t.forEach((function(t){i||e.push(t.y),void 0!==t.lineData&&!i==!t.lineData.useSecondaryYScale&&e.push(t.lineData.y)})),{startValue:ei(e),endValue:ri(e)}}function Cs(t,n){if(void 0!==n&&n===zu.NumericAxis){var i=ri(t,(function(t){return t.y}));return{startValue:ei(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var Ms,ks,Ss=function(t,n){if(n)switch(typeof t){case"string":return Ru.StringAxis;case"number":return Ru.NumericAxis;default:return Ru.DateAxis}else switch(typeof t){case"string":return zu.StringAxis;case"number":return zu.NumericAxis;default:return zu.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(Ms||(Ms={})),function(t){t[t.dottedLine=0]="dottedLine"}(ks||(ks={}));var As=((Iu={})[Ms.circle]={widthRatio:1},Iu[Ms.square]={widthRatio:1},Iu[Ms.triangle]={widthRatio:1},Iu[Ms.diamond]={widthRatio:1},Iu[Ms.pyramid]={widthRatio:1},Iu[Ms.hexagon]={widthRatio:2},Iu[Ms.pentagon]={widthRatio:1.168},Iu[Ms.octagon]={widthRatio:2.414},Iu),Ls=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},Vs=function(t,n){if(null==t||Number.isNaN(t))return t;if(n=n||void 0,"number"==typeof t)return Math.abs(t)<1e4?t.toString():t.toLocaleString(n);if("string"==typeof t&&!window.isNaN(Number(t))){var i=Number(t);return Math.abs(i)<1e4?i.toString():i.toLocaleString(n)}return t instanceof Date?t.toLocaleDateString(n):t};function Ds(t){return is(t,!0)}var Ns=function(t,n,i,e){var r;return void 0===i&&(i=16),r="auto"===t||"histogram"===e?i:"number"==typeof t?t:Math.min(i,16),"number"==typeof n&&(r=Math.min(r,n)),Math.max(r,1)},Ts=function(t,n,i){void 0===i&&(i=0);var e="number"==typeof t?t:"number"==typeof n?n:i;return Math.max(0,Math.min(e,1))},Os=function(t,n){return"number"==typeof t||"number"==typeof n},Es=function(t,n){return(n?io:to)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")};function Fs(t){return void 0===t&&(t={}),t.dangerouslySetInnerHTML,(0,o.Tt)(t,["dangerouslySetInnerHTML"])}function Bs(t,n){if(t===n)return!0;if(!t&&!n)return!0;if(!t||!n||t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}var Ps=/var\((--[a-zA-Z0-9\-]+)\)/g;function _s(t,n){var i=getComputedStyle(t);return n.replace(Ps,(function(t,n){return i.getPropertyValue(n)}))}function Hs(t,n,i){var e=getComputedStyle(n);Array.isArray(t)?t.forEach((function(t){Yu(i).style(t,e.getPropertyValue(t))})):Object.entries(t).forEach((function(t){var n=t[0],r=t[1];Yu(i).style(r,e.getPropertyValue(n))}))}var Is={position:"absolute",visibility:"hidden",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ws=p("measurement_span_");function Rs(t,n){if(void 0===n&&(n=qu),"function"==typeof t)return t;switch(t){case"linear":return qu;case"natural":return Ku;case"step":return Qu;case"stepAfter":return ns;case"stepBefore":return ts;default:return n}}var zs,js=i(357),$s={gradient1:"default.1",gradient2:"default.2",gradient3:"default.3",gradient4:"default.4",gradient5:"default.5",gradient6:"default.6",gradient7:"default.7",gradient8:"default.8",gradient9:"default.9",gradient10:"default.10",gradient1Ext:"extended.1",gradient2Ext:"extended.2",gradient3Ext:"extended.3",gradient4Ext:"extended.4",gradient5Ext:"extended.5",gradient6Ext:"extended.6",gradient7Ext:"extended.7",gradient8Ext:"extended.8",gradient9Ext:"extended.9",gradient10Ext:"extended.10",success:"semantic.success",highSuccess:"semantic.highSuccess",warning:"semantic.warning",error:"semantic.error",highError:"semantic.highError",disabled:"semantic.disabled"},Ys={1:[["#4760D5","#637CEF"],["#4F6BED","#637CEF"]],2:[["#795AA6","#9373C0"],["#8764B8","#A083C9"]],3:[["#159195","#2AA0A4"],["#159195","#2AA0A4"]],4:[["#B146C2","#C36BD1"],["#B146C2","#C36BD1"]],5:[["#3487C7","#3A96DD"],["#3487C7","#3A96DD"]],6:[["#0E7A0B","#13A10E"],["#11910D","#27AC22"]],7:[["#E61C99","#EE5FB7"],["#E61C99","#EE5FB7"]],8:[["#CA5010","#D77440"],["#CA5010","#D77440"]],9:[["#57811B","#689920"],["#57811B","#689920"]],10:[["#937700","#AE8C00"],["#937700","#AE8C00"]]},Xs={default:Ys,semantic:{success:[["#0C5E0C","#107C10"],["#218C21","#359B35"]],highSuccess:[["#107C10","#359B35"],["#359B35","#9FD89F"]],warning:[["#DE590B","#F7630C"],["#DE590B","#F87528"]],error:[["#B10E1C","#CC2635"],["#D33F4C","#EEACB2"]],highError:[["#6E0811","#B10E1C"],["#D33F4C","#DC626D"]],disabled:[["#E6E6E6","#E6E6E6"],["#E6E6E6","#E6E6E6"]]},extended:{1:[["#2C3C85","#3C51B4"],["#93A4F4","#C8D1FA"]],2:[["#4C3867","#674C8C"],["#A083C9","#B29AD4"]],3:[["#02494C","#038387"],["#4CB4B7","#9BD9DB"]],4:[["#63276D","#863593"],["#C36BD1","#CF87DA"]],5:[["#20547C","#2C72A8"],["#4FA1E1","#83BDEB"]],6:[["#0B5A08","#0E7A0B"],["#27AC22","#5EC75A"]],7:[["#AD006A","#E3008C"],["#EE5FB7","#F7ADDA"]],8:[["#9A3D0C","#CA5010"],["#D77440","#DF8E64"]],9:[["#405F14","#57811B"],["#73AA24","#A4CC6C"]],10:[["#6D5700","#937700"],["#D0B232","#DAC157"]]}},Gs=Object.values(Ys),qs=Object.values($s),Us=function(t,n){if(0===t.length)return["",""];var i=Number(n);return i<t.length?t[i]:t[0]},Zs=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Gs[(t+n)%Gs.length];return Us(e,i)},Ks=function(t,n){if(void 0===n&&(n=!1),qs.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Xs[e][r];return Us(o,n)}return[t,t]};function Js(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function Qs(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=Js(t,t[i],n[i]))}(t,{componentDidMount:tl,componentDidUpdate:nl,componentWillUnmount:il})}function tl(){el(this.props.componentRef,this)}function nl(t){t.componentRef!==this.props.componentRef&&(el(t.componentRef,null),el(this.props.componentRef,this))}function il(){el(this.props.componentRef,null)}function el(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function rl(t,n,i){var e,r=x(t,(function(t){var i;return n===t||!!(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,kn))}),i);return null!==r&&!!(null===(e=r.hasAttribute)||void 0===e?void 0:e.call(r,kn))}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(zs||(zs={}));var ol,al=a.createContext(void 0),ul="data-is-focusable",sl="data-focuszone-id",ll="tabindex",cl="data-no-vertical-wrap",fl="data-no-horizontal-wrap",hl=999999999,dl=-999999999;function vl(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var pl,gl={},ml=new Set,yl=["text","number","password","email","tel","url","search","textarea"],bl=!1,xl=function(t){function n(i){var e,r,o,u,l,c=t.call(this,i)||this;c._root=a.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,a=i.onFocusNotification,u=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(V(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=b(h,bl)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&V(d,void 0,c._inShadowRoot)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),u?u(t):a&&a()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=b(n,bl);for(;i.length&&((n=i.pop())&&V(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!D(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,a=i.pagingSupportDisabled,u=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((u&&u(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!N(t.target))return;if(!c.focusElement(S(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==zs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==zs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==zs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==zs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==zs.vertical&&c._shouldWrapFocus(c._activeElement,fl)?((0,s.jI)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(S(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(k(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),a=Math.floor(i.bottom),u=Math.floor(n.top);return t&&r>o||!t&&a<u?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,cl)?hl:dl},Qs(c),c._id=p("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(r=null!==(e=i.shouldRaiseClicks)&&void 0!==e?e:n.defaultProps.shouldRaiseClicks)||void 0===r||r;return c._shouldRaiseClicksOnEnter=null!==(o=i.shouldRaiseClicksOnEnter)&&void 0!==o?o:f,c._shouldRaiseClicksOnSpace=null!==(u=i.shouldRaiseClicksOnSpace)&&void 0!==u?u:f,c}return(0,o.C6)(n,t),n.getOuterZones=function(){return ml.size},n._onKeyDownCapture=function(t){9===t.which&&ml.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t,i=this._root.current;if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),gl[this._id]=this,i){for(var e=b(i,bl);e&&e!==this._getDocument().body&&1===e.nodeType;){if(D(e)){this._isInnerZone=!0;break}e=b(e,bl)}this._isInnerZone||(ml.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t,n=this._root.current,i=this._getDocument();if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),(this._activeElement&&!w(this._root.current,this._activeElement,bl)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,bl))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&i&&this._lastIndexPath&&(i.activeElement===i.body||null===i.activeElement||i.activeElement===n)){var e=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],a=i.children[Math.min(o,i.children.length-1)];if(!a)break;i=a}return V(i)&&A(i)?i:S(t,i,!0)||k(t,i)}(n,this._lastIndexPath);e?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete gl[this._id],this._isInnerZone||(ml.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,i=n.as,e=n.elementType,r=n.rootProps,u=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=z(this.props,H),f=i||e||"div";this._evaluateFocusBeforeRender();var h=(0,It.O4)();return a.createElement(f,(0,o.Cl)({"aria-labelledby":s,"aria-describedby":u},c,r,{className:j((ol||(ol=(0,U.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ol),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(ul)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=gl[i.getAttribute(sl)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&w(this._root.current,this._activeElement)&&V(this._activeElement,void 0,this._inShadowRoot)&&(!n||L(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(S(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(k(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=w(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=b(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},n.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(D(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(ul)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return vl(i,n),!0;i=b(i,bl)}while(i!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(D(t))return gl[t.getAttribute(sl)];for(var n=t.firstElementChild;n;){if(D(n))return gl[n.getAttribute(sl)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},n.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,a=void 0,u=!1,s=this.props.direction===zs.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?S(this._root.current,r):k(this._root.current,r),!s){a=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){a=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=r),o>=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)u=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(S(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(k(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},n.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,a=Math.floor(r.top),u=Math.floor(e.bottom);return a<u?t._shouldWrapFocus(t._activeElement,cl)?hl:dl:((-1===n&&a>=u||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,a=Math.floor(r.bottom),u=Math.floor(r.top),s=Math.floor(e.top);return a>s?t._shouldWrapFocus(t._activeElement,cl)?hl:dl:((-1===n&&a<=s||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,fl);return!!this._moveFocus((0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==zs.vertical?o=e.right-r.right:i||(o=dl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,fl);return!!this._moveFocus(!(0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==zs.vertical?o=r.left-e.left:i||(o=dl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=K(i);if(!e)return!1;var r=-1,o=void 0,a=-1,u=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?S(this._root.current,i):k(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>a?(a=f,r=p,o=i):!t&&d<u?(u=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(S(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(k(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===zs.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var n=b(t,bl);n&&n!==this._root.current&&n!==this._getDocument().body;){if(D(n))return n;n=b(n,bl)}return n},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!w(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!V(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];D(e)?"true"===e.getAttribute(ul)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ll)&&e.setAttribute(ll,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ll)&&e.setAttribute(ll,"0"))):(e.getAttribute&&"false"===e.getAttribute(ul)&&e.setAttribute(ll,"-1"),V(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(ll,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ll)&&e.setAttribute(ll,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ll)&&e.setAttribute(ll,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&yl.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=x(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,C.Y)())}(t,n)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&rl(t,this._root.current)},n.prototype._getDocument=function(){return(0,C.Y)(this._root.current)},n.contextType=al,n.defaultProps={isCircularNavigation:!1,direction:zs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(a.Component);function wl(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(pl||(pl={}));var Cl,Ml=(0,u.Z)(),kl=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?a.createElement("p",{className:n._classNames.subText},t.content):a.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.calloutProps,e=t.directionalHint,r=t.directionalHintForRTL,u=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=Ml(u,{theme:d,className:n||i&&i.className,beakWidth:i&&i.isBeakVisible?i.beakWidth:0,gapSpace:i&&i.gapSpace,maxWidth:l}),a.createElement(Pn,(0,o.Cl)({target:h,directionalHint:e,directionalHintForRTL:r},i,z(this.props,R,["id"]),{className:this._classNames.root}),a.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:1,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(a.Component),Sl=(0,r.I)(kl,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,a=t.maxWidth,u=t.theme,s=u.semanticColors,l=u.fonts,c=u.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,It.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(Cl||(Cl={}));var Al,Ll,Vl=(0,u.Z)(),Dl=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.createRef(),e._defaultTooltipId=p("tooltip"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current){var t=e.props.overflowMode;if(void 0!==t)switch(t){case pl.Parent:return e._tooltipHost.current.parentElement;case pl.Self:return e._tooltipHost.current}return e._tooltipHost.current}},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e._clearDismissTimer(),e._clearOpenTimer()},e._onTooltipBlur=function(t){var n;e._ignoreNextFocusEvent=(null===(n=jt(e.context))||void 0===n?void 0:n.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props,r=i.overflowMode,o=i.delay,a=jt(e.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,void 0!==r){var u=e._getTargetElement();if(u&&!wl(u))return}if(!t.target||!rl(t.target,e._getTargetElement(),a))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==Cl.zero){var s=e._getDelayTime(o);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),s)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Dt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t},(function(){return e.props.onTooltipToggle&&e.props.onTooltipToggle(t)}))},e._getDelayTime=function(t){switch(t){case Cl.medium:return 300;case Cl.long:return 500;default:return 0}},Qs(e),e.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,i=t.children,e=t.content,r=t.directionalHint,u=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=Vl(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,o.Cl)((0,o.Cl)({id:"".concat(g,"--tooltip"),content:e,targetElement:this._getTargetElement(),directionalHint:r,directionalHintForRTL:u,calloutProps:$({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},z(this.props,R,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?a.createElement(a.Fragment,null,t.content):null})):e,b=p&&!!y,x=f&&p&&y?g:void 0;return a.createElement("div",{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},i,b&&a.createElement(Sl,(0,o.Cl)({},m)),a.createElement("div",{hidden:!0,id:g,style:It.dX},y))},n.prototype.componentDidMount=function(){this._async=new Nt(this)},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cl.medium},n.contextType=Ft,n}(a.Component),Nl={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Tl=(0,r.I)(Dl,(function(t){var n=t.className,i=t.theme;return{root:[(0,It.Km)(Nl,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Ol=function(t){function n(n){var i=t.call(this,n)||this;return i._tooltipChild=a.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&wl(t);n!==i.state.textOverflow&&i.setState({textOverflow:n})},i._getTargetElement=function(){if(i._tooltipChild.current&&i._tooltipChild.current.parentElement)return i._tooltipChild.current.parentElement},i.state={textOverflow:!1},i._async=new Nt(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.content,e=t.accessibilityData;return a.createElement(Tl,{overflowMode:pl.Self,hostClassName:n,content:i},a.createElement("span",(0,o.Cl)({},Ls(e),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),i))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(a.Component),El=(0,u.Z)(),Fl=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.state.isCalloutVisible&&i.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},i._adjustProps=function(){i._barHeight=i.props.barHeight||12,i._classNames=El(i.props.styles,{theme:i.props.theme,width:i.props.width,className:i.props.className,barHeight:i._barHeight,color:i.state.lineColor,variant:i.props.variant,hideLabels:i.props.hideLabels})},i._getChartDataText=function(t){return i.props.barChartCustomData?a.createElement("div",{role:"text"},i.props.barChartCustomData(t)):i._getDefaultTextData(t)},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.data,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(r,".")+(e?"with benchmark at "+"".concat(e,", "):"")},i.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},i._refArray=[],i._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),i._hoverOff=i._hoverOff.bind(i),i._calloutId=p("callout"),i._emptyChartId=p("_HBC_empty"),i.barChartSvgRef=a.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.theme;this._adjustProps();var r=e.palette,u=0;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.map((function(n,i){u=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-u,y:n.chartData[0].horizontalBarChartdata.y},color:r.neutralLight};var e=t.props.variant===d.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,r,i),s=t._uniqLineText+"_"+i,l=El(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return a.createElement("div",{key:i},a.createElement("div",{className:l.items},a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&a.createElement(Ol,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),a.createElement(xl,{direction:zs.horizontal,className:t._classNames.chartWrapper},a.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},a.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),a.createElement(Pn,(0,o.Cl)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):a.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._hoverOn=function(t,n){var i,e,r,o;if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var a=y(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n;var u=n.color;if(this.props.enableGradient){var s=Math.max((null===(e=null===(i=this.props.data)||void 0===i?void 0:i.map((function(t){return t.chartData})))||void 0===e?void 0:e.findIndex((function(t){return(null==t?void 0:t[0].data)===n.data&&(null==t?void 0:t[0].legend)===n.legend})))||0,0);u=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(s,0,null===(o=this.props.theme)||void 0===o?void 0:o.isInverted)[0]}this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:u,legend:n.legend,refSelected:a.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,i=this.props.chartDataMode||"default",e=t.chartData[0],r=e.horizontalBarChartdata.x,u=e.horizontalBarChartdata.y,s=Ls(t.chartDataAccessibilityData,"text",!1);switch(i){case"default":return a.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),(0,_n.U)(r,n));case"fraction":return a.createElement("div",(0,o.Cl)({},s),a.createElement("span",{className:this._classNames.chartTitleRight},(0,_n.U)(r,n)),a.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,_n.U)(u,n)));case"percentage":var l="".concat((0,_n.U)(Math.round(r/u*100),n),"%");return a.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),l)}},n.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,i=t.chartData[0].data,e={left:"calc("+Math.round((i||0)/n*100)+"% - 4px)"};return a.createElement("div",{className:this._classNames.benchmarkContainer},a.createElement("div",{className:this._classNames.triangle,style:e}))},n.prototype._createBars=function(t,n,i){var e,r=this,o=(null===(e=t.chartData)||void 0===e?void 0:e.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(o-1),s=[n.blueLight,n.blue,n.blueMid,n.red,n.black],l=[],c=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),f=0,h=0,v=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(h=i/c*100)<0?h=0:h<1&&0!==h&&(h=1),v+=h}));var g=0!==v?(v-u)/100:1,m=t.chartData.map((function(n,e){var o,u,v,m,y=n.color?n.color:s[Math.floor(4*Math.random()+1)],b=y;r.props.enableGradient&&1!==e&&(y=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(i,0,null===(u=r.props.theme)||void 0===u?void 0:u.isInverted)[0],b=(null===(v=n.gradient)||void 0===v?void 0:v[1])||Zs(i,0,null===(m=r.props.theme)||void 0===m?void 0:m.isInverted)[1]);var x=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;e>0&&(f+=h),(h=x/c*100)<0?h=0:h<1&&0!==h?h=1/g:h/=g,l.push(f);var w=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===d.AbsoluteScale){if(r.props.hideLabels)return a.createElement("text",{key:e});var C=t.chartData[0].horizontalBarChartdata.x;return a.createElement("text",{key:e,x:"".concat(r._isRTL?100-l[e]:l[e],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},Ds(C))}var M=p("HBC_Gradient")+"_".concat(i,"_").concat(e);return a.createElement(a.Fragment,{key:e},r.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:M},a.createElement("stop",{offset:"0",stopColor:y}),a.createElement("stop",{offset:"100%",stopColor:b}))),a.createElement("rect",{key:e,x:"".concat(r._isRTL?100-l[e]-h-e*r.state.barSpacingInPercent:l[e]+e*r.state.barSpacingInPercent,"%"),y:0,rx:r.props.roundCorners?3:0,"data-is-focusable":""!==n.legend,width:h+"%",height:r._barHeight,fill:r.props.enableGradient?"url(#".concat(M,")"):y,onMouseOver:""!==n.legend?r._hoverOn.bind(r,w,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,w,n):void 0,role:"img","aria-label":r._getAriaLabel(n),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper}))}));return m},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(a.Component),Bl=(0,r.I)(Fl,(function(t){var n,i=t.className,e=t.theme,r=t.width,a=t.barHeight,u=t.showTriangle,s=t.variant,l=t.hideLabels,c=e.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},i],items:{marginBottom:u||s===d.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:a||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,o.Cl)((0,o.Cl)({},e.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:e.palette.neutralPrimary,marginBottom:s===d.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:It.s.medium,fontWeight:It.BO.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:It.s.medium,color:e.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,o.Cl)((0,o.Cl)({},e.fonts.small),{fontWeight:It.BO.semibold,fill:e.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}),chartWrapper:{paddingRight:s!==d.AbsoluteScale||l?0:40}}})),Pl={host:"ms-HoverCard-host"},_l=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var a,u=null!=o?o:(0,C.Y)();if(t._isElement(n)){if(void 0!==u&&u.createEvent){var s=u.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),$(s,e),a=n.dispatchEvent(s)}else if(void 0!==u&&u.createEventObject){var l=u.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==a;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==a&&v<d.length;v++){var p=d[v];p.objectCallback&&(a=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return a},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var a=i.split(/[ ,]+/),u=0;u<a.length;u++)this.on(n,a[u],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((a=n.__events__=n.__events__||{})[i]=a[i]||{count:0},a[i][this._id]=a[i][this._id]||[],a[i][this._id].push(l),a[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var a=o.target.__events__,u=a[o.eventName],s=u?u[this._id]:null;s&&(1!==s.length&&i?(u.count--,s.splice(s.indexOf(o),1)):(u.count-=s.length,delete a[o.eventName][this._id]),u.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(Al||(Al={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Ll||(Ll={}));var Hl,Il={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(Hl||(Hl={}));var Wl=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},Rl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function zl(t){var n=a.useRef();return a.useEffect((function(){n.current=t})),n.current}function jl(t,n){var i=a.useRef(n);return i.current||(i.current=p(t)),i.current}function $l(t){var n=a.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Nn((function(){n.current=t}),[t]),Wt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var Yl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Xl=a.forwardRef((function(t,n){var i,e,r,u=a.useRef(null),s=a.useRef(null),l=a.useRef(null),c=Et(u,n),f=Pt(),h=zt(),d=!!a.useContext(al),v=null===(i=zl(!1))||void 0===i||i,p=F(Yl,t),g=Wt({hasFocus:!1,focusStackId:jl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,C=p.forceFocusInsideTrap,M=p.focusPreviouslyFocusedInnerElement,A=p.firstFocusableSelector,L=p.firstFocusableTarget,V=p.disableRestoreFocus,D=void 0===V?p.ignoreExternalFocusing:V,N=p.isClickableOutsideFocusTrap,T=p.enableAriaHiddenSiblings,B={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=a.useCallback((function(t){t!==s.current&&t!==l.current&&O(t)}),[]),_=$l((function(){if(u.current){var t=g.previouslyFocusedElementInTrapZone;if(M&&t&&w(u.current,t))P(t);else{var n=null;if("string"==typeof L)n=u.current.querySelector(L);else if(L)n=L(u.current);else if(A){var i="string"==typeof A?A:A();n=u.current.querySelector("."+i)}n||(n=S(u.current,u.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&P(n)}}})),H=function(t){if(!b&&u.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),k(u.current,l.current,n,!1,!0,!0,!1,!0,d)):function(t,n,i,e,r){return void 0===e&&(e=!0),S(t,n,e,!1,!1,!0,!1,!0,void 0,r)}(u.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?_():i.focus())}},I=$l((function(t){if(Xl.focusStack=Xl.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;D||"function"!=typeof(null==t?void 0:t.focus)||!w(u.current,n)&&n!==f.body&&!n.shadowRoot||P(t)}})),W=$l((function(t){if(!b&&g.focusStackId===Xl.focusStack.slice(-1)[0]){var n=Rl(t);n&&!w(u.current,n)&&(f&&Wl(f)===f.body?setTimeout((function(){f&&Wl(f)===f.body&&(_(),g.hasFocus=!0)}),0):(_(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return a.useEffect((function(){var t=[];return C&&t.push(E(h,"focus",W,!0)),N||t.push(E(h,"click",W,!0)),function(){t.forEach((function(t){return t()}))}}),[C,N,h]),a.useEffect((function(){if(!b&&(v||C)&&u.current){Xl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||Wl(f);return x||w(u.current,t)||_(),function(){return I(t)}}}),[C,b]),a.useEffect((function(){if(!b&&T)return Vt(u.current)}),[b,T,u]),e=function(){delete g.previouslyFocusedElementInTrapZone},(r=a.useRef(e)).current=e,a.useEffect((function(){return function(){var t;null===(t=r.current)||void 0===t||t.call(r)}}),[]),function(t,n,i){a.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,_),a.createElement("div",(0,o.Cl)({"aria-labelledby":p.ariaLabelledBy},z(p,R),{ref:c,onFocusCapture:function(t){var n;null===(n=p.onFocusCapture)||void 0===n||n.call(p,t),t.target===s.current?H(!0):t.target===l.current&&H(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=Rl(t.nativeEvent))},onBlurCapture:function(t){var n;null===(n=p.onBlurCapture)||void 0===n||n.call(p,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=Wl(f)),w(u.current,i)||(g.hasFocus=!1)}}),a.createElement("div",(0,o.Cl)({},B,{ref:s})),m,a.createElement("div",(0,o.Cl)({},B,{ref:l})))}));Xl.displayName="FocusTrapZone",Xl.focusStack=[];var Gl,ql=function(t){return a.createElement(Pn,(0,o.Cl)({},t),a.createElement(Xl,(0,o.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},Ul=function(t){var n=t.gapSpace,i=void 0===n?0:n,e=t.directionalHint,r=void 0===e?4:e,u=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},z(t,R)),{className:h,target:s,isBeakVisible:!1,directionalHint:r,directionalHintFixed:u,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:i}),p);return a.createElement(a.Fragment,null,c?a.createElement(ql,(0,o.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):a.createElement(Pn,(0,o.Cl)({},g),v))},Zl=(0,u.Z)(),Kl=function(t){function n(n){var i=t.call(this,n)||this;return i._expandedElem=a.createRef(),i._onKeyDown=function(t){t.which===Dt&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return a.createElement("div",{className:i._classNames.compactCard},i.props.onRenderCompactCard(i.props.renderData))},i._onRenderExpandedCard=function(){return!i.state.firstFrameRendered&&i._async.requestAnimationFrame((function(){i.setState({firstFrameRendered:!0})})),a.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},a.createElement("div",{className:i._classNames.expandedCardScroll},i.props.onRenderExpandedCard&&i.props.onRenderExpandedCard(i.props.renderData)))},i._checkNeedsScroll=function(){var t=i.props.expandedCardHeight;i._async.requestAnimationFrame((function(){i._expandedElem.current&&i._expandedElem.current.scrollHeight>=t&&i.setState({needsScroll:!0})}))},i._async=new Nt(i),Qs(i),i.state={firstFrameRendered:!1,needsScroll:!1},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,i=t.compactCardHeight,e=t.expandedCardHeight,r=t.theme,u=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=i+e;this._classNames=Zl(n,{theme:r,compactCardHeight:i,className:s,expandedCardHeight:e,needsScroll:c,expandedCardFirstFrameRendered:u===Hl.expanded&&f});var d=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return a.createElement(Ul,(0,o.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(a.Component),Jl=(0,r.I)(Kl,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,u=t.className,s=i.palette,l=(0,It.Km)(Il,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[It.up]={border:"1px solid WindowText"},n)},u],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.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:s.neutralLighter}}},r&&{height:a}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ql={root:"ms-PlainCard-root"},tc=(0,u.Z)(),nc=function(t){function n(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Dt&&i.props.onLeave&&i.props.onLeave(t)},Qs(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,i=t.theme,e=t.className;this._classNames=tc(n,{theme:i,className:e});var r=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return a.createElement(Ul,(0,o.Cl)({},this.props,{content:r,className:this._classNames.root}))},n}(a.Component),ic=(0,r.I)(nc,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,It.Km)(Ql,i).root,{pointerEvents:"auto",selectors:(n={},n[It.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),ec=(0,u.Z)(),rc=function(t){function n(n){var i=t.call(this,n)||this;return i._hoverCard=a.createRef(),i.dismiss=function(t){i._async.clearTimeout(i._openTimerId),i._async.clearTimeout(i._dismissTimerId),t?i._dismissTimerId=i._async.setTimeout((function(){i._setDismissedState()}),i.props.cardDismissDelay):i._setDismissedState()},i._cardOpen=function(t){i._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==i.props.openHotKey||(i._async.clearTimeout(i._dismissTimerId),"mouseenter"===t.type&&(i._currentMouseTarget=t.currentTarget),i._executeCardOpen(t))},i._executeCardOpen=function(t){i._async.clearTimeout(i._openTimerId),i._openTimerId=i._async.setTimeout((function(){i.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:Hl.compact,openMode:"keydown"===t.type?Al.hotKey:Al.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Dt)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Dt||i.dismiss(!0)}else{if(i.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;i.dismiss(!0)}},i._setDismissedState=function(){i.setState({isHoverCardVisible:!1,mode:Hl.compact,openMode:Al.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Hl.expanded}}))},i._setEventListeners=function(){var t=i.props,n=t.trapFocus,e=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?i._getTargetElement(r):i._getTargetElement(i.props.target),a=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",a),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",a)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",a),i._events.on(o,"keydown",a)))},Qs(i),i._async=new Nt(i),i._events=new _l(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:Hl.compact,openMode:Al.hover},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:Hl.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hl.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,i=t.children,e=t.id,r=t.setAriaDescribedBy,u=void 0===r||r,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,v=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,y=g.mode,b=g.openMode,x=e||p("hoverCard");this._classNames=ec(s,{theme:l,className:c});var w=(0,o.Cl)((0,o.Cl)({},z(this.props,R)),{id:x,trapFocus:!!d,firstFocus:v||b===Al.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),w),{mode:y}),M=(0,o.Cl)((0,o.Cl)({},h),w);return a.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":u&&m?x:void 0,"data-is-focusable":!this.props.target},i,m&&(f===Ll.expanding?a.createElement(Jl,(0,o.Cl)({},C)):a.createElement(ic,(0,o.Cl)({},M))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.Y)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Ll.expanding},n}(a.Component),oc=(0,r.I)(rc,(function(t){var n=t.className,i=t.theme;return{host:[(0,It.Km)(Pl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Gl||(Gl={}));var ac=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,i){t.cacheKey&&(n[t.cacheKey]=i)}});var i,e=t;function r(t,n){var i=e.getCachedMeasurement(t);if(void 0!==i)return i;var r=n();return e.addMeasurementToCache(t,r),r}function a(t,n,o){for(var a=t,u=r(t,o);u>i;){var s=n(a);if(void 0===s)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=e.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};a=s}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,u,s){if(void 0!==s||void 0!==n.dataToMeasure){if(s){if(i&&n.renderedData&&!n.dataToMeasure)return(0,o.Cl)((0,o.Cl)({},n),function(t,n,e,r){var a;return a=t>i?r?{resizeDirection:"grow",dataToMeasure:r(e)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:e},i=t,(0,o.Cl)((0,o.Cl)({},a),{measureContainer:!1})}(s,t.data,n.renderedData,t.onGrowData));i=s}var l=(0,o.Cl)((0,o.Cl)({},n),{measureContainer:!1});return n.dataToMeasure&&(l="grow"===n.resizeDirection&&t.onGrowData?(0,o.Cl)((0,o.Cl)({},l),function(t,n,u,s){for(var l=t,c=r(t,u);c<i;){var f=n(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=e.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,o.Cl)({resizeDirection:"shrink"},a(l,s,u))}(n.dataToMeasure,t.onGrowData,u,t.onReduceData)):(0,o.Cl)((0,o.Cl)({},l),a(n.dataToMeasure,t.onReduceData,u))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==e.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,o.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},uc=a.createContext({isMeasured:!1}),sc={position:"fixed",visibility:"hidden"},lc={position:"relative"};function cc(t,n){var i;switch(n.type){case"resizeData":return(0,o.Cl)({},n.value);case"dataToMeasure":return(0,o.Cl)((0,o.Cl)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,o.Cl)((0,o.Cl)({},t),((i={})[n.type]=n.value,i))}}var fc={isMeasured:!0},hc=a.forwardRef((function(t,n){var i=a.useRef(null),e=Et(i,n),r=function(t,n){var i=Wt(ac),e=a.useRef(null),r=a.useRef(null),u=a.useRef(!1),s=Tt(),l=function(t,n,i){var e=Wt((function(){return n.getInitialResizeGroupState(t.data)})),r=a.useReducer(cc,e),u=r[0],s=r[1];a.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=a.useRef(e);return l.current=(0,o.Cl)({},u),[l,a.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),a.useCallback((function(){i.current&&s({type:"measureContainer",value:!0})}),[i])]}(t,i,n),c=l[0],f=l[1],h=l[2];a.useEffect((function(){var n;c.current.renderedData&&(u.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),a.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&n.current){var a=n.current.getBoundingClientRect();o=t.direction===Gl.vertical?a.height:a.width}var s=i.getNextState(t,c.current,(function(){var n=u.current?r:e;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===Gl.vertical?i.height:i.width}),o);f(s)}),n.current)})),Ot(Bt(),"resize",s.debounce(h,16,{leading:!0}));var d=i.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!u.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,e,r,d,v]}(t,i),u=r[0],s=r[1],l=r[2],c=r[3],f=r[4],h=r[5],d=r[6];a.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]);var v=t.className,p=t.onRenderData,g=z(t,R,["data"]);return a.createElement("div",(0,o.Cl)({},g,{className:v,ref:e}),a.createElement("div",{style:lc},h&&!d&&a.createElement("div",{style:sc,ref:f},a.createElement(uc.Provider,{value:fc},p(u))),a.createElement("div",{ref:c,style:d?sc:void 0,"data-automation-id":"visibleContent"},d?p(u):s&&p(s))))}));hc.displayName="ResizeGroupBase";var dc,vc=hc;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(dc||(dc={}));var pc=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?dc.PERSISTED_KEYTIP_ADDED:dc.KEYTIP_ADDED;_l.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||_l.raise(this,dc.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?dc.PERSISTED_KEYTIP_REMOVED:dc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||_l.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){_l.raise(this,dc.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){_l.raise(this,dc.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,o.fX)([],t.keySequences,!0);if(n.pop(),0!==n.length){var i=this.sequenceMapping[n.toString()];if(i&&i.overflowSetSequence)return(0,o.Cl)((0,o.Cl)({},t),{overflowSetSequence:i.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){_l.raise(this,dc.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=p()),{keytip:(0,o.Cl)({},t),uniqueID:n}},t._instance=new t,t}(),gc=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},mc=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},yc=function(t){var n=pc.getInstance(),i=t.className,e=t.overflowItems,r=t.keytipSequences,u=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Wt({}),c=a.useCallback((function(t){return u?u(t):t.subMenuProps?t.subMenuProps.items:void 0}),[u]),f=a.useMemo((function(){var t=[],i=[];return r?null==e||e.forEach((function(e){var a,u=e.keytipProps;if(u){var s={content:u.content,keySequences:u.keySequences,disabled:u.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:u.hasDynamicChildren,hasMenu:u.hasMenu};u.hasDynamicChildren||c(e)?(s.onExecute=n.menuExecute.bind(n,r,null===(a=null==e?void 0:e.keytipProps)||void 0===a?void 0:a.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=u.onExecute,t.push(s);var l=(0,o.Cl)((0,o.Cl)({},e),{keytipProps:(0,o.Cl)((0,o.Cl)({},u),{overflowSetSequence:r})});null==i||i.push(l)}else null==i||i.push(e)})):i=e,{modifiedOverflowItems:i,keytipsToRegister:t}}),[e,c,n,r]),h=f.modifiedOverflowItems;return function(t,n,i){var e=zl(t);a.useEffect((function(){e&&(mc(i,e),gc(n,i,t))})),a.useEffect((function(){return gc(n,i,t),function(){mc(i,t)}}),[])}(l,f.keytipsToRegister,n),a.createElement("div",{className:i},s(h))},bc=(0,u.Z)(),xc=a.forwardRef((function(t,n){var i=a.useRef(null),e=Et(i,n);!function(t,n){var i=function(){var t;return null!==(t=Pt())&&void 0!==t?t:"undefined"!=typeof document?document:void 0}();a.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=M(n.current,i)),e},focusElement:function(t){var e=!1;return!!t&&(n.current&&w(n.current,t)&&(t.focus(),e=(null==i?void 0:i.activeElement)===t),e)}}}),[n,i])}(t,i);var r=t.items,u=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=bc(l,{className:s,vertical:c}),g=!!u&&u.length>0;return a.createElement("div",(0,o.Cl)({},z(t,R),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:e}),"start"===d&&g&&a.createElement(yc,(0,o.Cl)({},t,{className:p.overflowButton})),r&&r.map((function(t,n){return a.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&a.createElement(yc,(0,o.Cl)({},t,{className:p.overflowButton})))}));xc.displayName="OverflowSet";var wc,Cc={flexShrink:0,display:"inherit"},Mc=(0,r.I)(xc,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",Cc],overflowButton:["ms-OverflowSet-overflowButton",Cc]}}),void 0,{scope:"OverflowSet"}),kc=((wc={})["".concat(Ms[Ms.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",wc["".concat(Ms[Ms.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",wc["".concat(Ms[Ms.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",wc["".concat(Ms[Ms.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",wc["".concat(Ms[Ms.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",wc["".concat(Ms[Ms.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",wc["".concat(Ms[Ms.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",wc["".concat(Ms[Ms.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",wc["".concat(ks[ks.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",wc),Sc=function(t){var n=t.svgProps,i=t.pathProps,e=t.shape,r=t.classNameForNonSvg;return-1===Object.keys(kc).indexOf(e)?a.createElement("div",{className:r}):a.createElement("svg",(0,o.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},Fs(n),{transform:"rotate(".concat(e===Ms[Ms.diamond]?45:e===Ms[Ms.pyramid]?180:0,", 0, 0)")}),a.createElement("path",(0,o.Cl)({d:kc[e]},Fs(i))))};function Ac(t,n,i,e){return void 0===i&&(i=!1),void 0===e&&(e={}),new Promise((function(r,a){if(!t)return a(new Error("Chart container is not defined"));try{var u="string"==typeof e.background?_s(t,e.background):"transparent",s=function(t,n,i,e){var r=t.querySelector("svg");if(!r)throw new Error("SVG not found");for(var a=Yu(r.cloneNode(!0)).attr("width",null).attr("height",null).attr("viewBox",null),u=r.getElementsByTagName("*"),s=a.node().getElementsByTagName("*"),l=0;l<u.length;l++)"text"===u[l].tagName.toLowerCase()?Hs((0,o.fX)((0,o.fX)([],Lc,!0),Vc,!0),u[l],s[l]):Hs(Lc,u[l],s[l]);var c=r.getBoundingClientRect(),f=c.width,h=c.height,d="function"==typeof n?n(f,i):{node:null,width:0,height:0},v=Math.max(f,d.width),p=h+d.height;return d.node&&(Yu(d.node).attr("transform","translate(0, ".concat(h,")")),a.append((function(){return d.node}))),a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v).attr("height",p).attr("fill",e),a.attr("width",v).attr("height",p).attr("viewBox","0 0 ".concat(v," ").concat(p)).attr("direction",i?"rtl":"ltr"),{node:a.node(),width:v,height:p}}(t,n,i,u),l=(new XMLSerializer).serializeToString(s.node);(function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){var r=n.scale||1,o=n.width||300,a=n.height||150,u=r*o,s=r*a,l=document.createElement("canvas"),c=new Image;l.width=u,l.height=s,c.onload=function(){var t=l.getContext("2d");if(!t)return e(new Error("Canvas context is null"));t.clearRect(0,0,u,s),t.drawImage(c,0,0,u,s);var n=l.toDataURL("image/png");i(n)},c.onerror=function(t){e(t)},c.src=t}))})("data:image/svg+xml;base64,"+btoa(function(t){for(var n,i,e="",r=t.length,o=0;o<r;){if("%"===(n=t.charAt(o++)))if("u"===t.charAt(o)){if(i=t.slice(o+1,o+5),Tc.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=5;continue}}else if(i=t.slice(o,o+2),Nc.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=2;continue}e+=n}return e}(encodeURIComponent(l))),{width:e.width||s.width,height:e.height||s.height,scale:e.scale}).then(r).catch(a)}catch(t){return a(t)}}))}var Lc=["display","fill","fill-opacity","opacity","stroke","stroke-width","transform"],Vc=["font-family","font-size","font-weight","text-anchor"],Dc={color:"fill","font-family":"font-family","font-size":"font-size","font-weight":"font-weight"};var Nc=/^[\da-f]{2}$/i,Tc=/^[\da-f]{4}$/i,Oc=(0,u.Z)(),Ec=function(t){function n(n){var i,e,r,u,s=t.call(this,n)||this;s._isLegendSelected=!1,s.toSVG=function(t,n){return void 0===n&&(n=!1),function(t,n,i,e){if(0===t.length)return{node:null,width:0,height:0};for(var r=i.selectedLegends,a=i.centerLegends,u=i.textClassName,s=i.isRTL,l=Yu(Du("svg:g").call(document.documentElement)),c=a?0:12,f=8,h=[],d=[],v=[],p=0===Object.keys(r).length,g=function(i){var o,g,m,y,b=(o=t[i].title,g=u,m=e,(y=document.getElementById(Ws))||((y=document.createElement("span")).setAttribute("id",Ws),y.setAttribute("aria-hidden","true"),m?m.appendChild(y):document.body.appendChild(y)),y.setAttribute("class",g),Object.assign(y.style,Is),y.textContent="".concat(o),y),x=29+b.getBoundingClientRect().width+8,w=l.append("g");h.push({elem:w,width:x}),c+x>n&&h.length>1&&(h.pop(),d.push(h),v.push(c),h=[{elem:w,width:x}],c=a?0:12,f+=32);var C=r[t[i].title]||p;w.append("rect").attr("x",c+(s?x-8-13:8)).attr("y",f+8).attr("width",13).attr("height",13).style("fill",C?t[i].color:"transparent").style("stroke-width",1).style("stroke",t[i].color),w.append("text").attr("x",c+(s?x-29:29)).attr("y",f+8).attr("dominant-baseline","hanging").style("opacity",C?1:.67).text(t[i].title).call((function(t){return Hs(Dc,b,t.node())})),c+=x},m=0;m<t.length;m++)g(m);if(d.push(h),v.push(c),f+=32,a)d.forEach((function(t,i){var e=Math.max((n-v[i])/2,0),r=v[i],o=0;t.forEach((function(t){var n=e+(s?r-t.width-o:0);t.elem.attr("transform","translate(".concat(n,", 0)")),r-=t.width,o+=t.width}))}));else if(s){var y=Math.max.apply(Math,(0,o.fX)([n],v,!1));d.forEach((function(t){var n=y-12,i=12;t.forEach((function(t){var e=n-t.width-i;t.elem.attr("transform","translate(".concat(e,", 0)")),n-=t.width,i+=t.width}))}))}return{node:l.node(),width:Math.max.apply(Math,v),height:f}}(s.props.legends,t,{selectedLegends:s.state.selectedLegends,centerLegends:!!s.props.centerLegends,textClassName:s._classNames.text,isRTL:n},s._rootElem)},s._onRenderData=function(t){var n=s.props,i=n.overflowProps,e=n.allowFocusOnLegends,r=void 0===e||e,u=n.canSelectMultipleLegends,l=void 0!==u&&u,c={root:{justifyContent:s.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return a.createElement(xl,(0,o.Cl)({},r&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),a.createElement(Mc,(0,o.Cl)({items:t.primary,overflowItems:t.overflow,onRenderItem:s._renderButton,onRenderOverflowButton:s._renderOverflowItems},i,{styles:(0,o.Cl)((0,o.Cl)({},c),null==i?void 0:i.styles)})))},s._onReduceData=function(t){if(0!==t.primary.length){var n=(0,o.fX)((0,o.fX)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},s._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,o.fX)((0,o.fX)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},s._getNewSelectedLegendsForMultiselect=function(t){var n=(0,o.Cl)({},s.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===s.props.legends.length&&(n={})),n},s._getNewSelectedLegendsForSingleSelect=function(t){var n;return s.state.selectedLegends[t.title]?{}:((n={})[t.title]=!0,n)},s._onClick=function(t,n){var i,e,r,o=s.props.canSelectMultipleLegends,a=void 0!==o&&o?s._getNewSelectedLegendsForMultiselect(t):s._getNewSelectedLegendsForSingleSelect(t);s.setState({selectedLegends:a}),null===(e=(i=s.props).onChange)||void 0===e||e.call(i,Object.keys(a),n,t),null===(r=t.action)||void 0===r||r.call(t)},s._onRenderCompactCard=function(t){var n=s.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.className,u=n.styles,l=n.theme,c=n.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=Oc(u,{theme:l,className:r});return t.renderData.forEach((function(t,n){var i=s._renderButton(t,n,!0);h.push(i)})),a.createElement(xl,(0,o.Cl)({},e&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:zs.vertical,handleTabKey:1,isCircularNavigation:!0},s.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},s._renderOverflowItems=function(t){var n=s.props.allowFocusOnLegends,i=void 0===n||n,e=[];t.forEach((function(t,n){e.push({key:n.toString(),name:t.title,onClick:t.action})}));var r={renderData:t},u=s.props,l=u.theme,c=u.className,f=u.styles,h=u.overflowText,d=Oc(f,{theme:l,className:c}),v={onRenderPlainCard:s._onRenderCompactCard,renderData:r},p=h||"more";return a.createElement(oc,{type:Ll.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){s.setState({isHoverCardVisible:!1});var n=y(t,(function(t){return t.title===s.state.activeLegend}));n&&(s.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:s._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:s._hoverCardRef},a.createElement("div",{role:"option"},a.createElement("div",(0,o.Cl)({className:d.overflowIndicationTextStyle,ref:function(t){return s._hoverCardRef=t}},i&&{role:"button","aria-expanded":s.state.isHoverCardVisible,"aria-label":"".concat(e.length," ").concat(p)},{"data-is-focusable":i}),e.length," ",p)))},s._hoverCardVisible=function(){s.setState({isHoverCardVisible:!0})},s._onHoverOverLegend=function(t){t.hoverAction&&(s.setState({activeLegend:t.title}),t.hoverAction())},s._onLeave=function(t){t.onMouseOutAction&&(s.setState({activeLegend:""}),t.onMouseOutAction())},s._renderButton=function(t,n,i){var e=s.props.allowFocusOnLegends,r=void 0===e||e,u={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=s._getColor(u.title,u.color),c=s.props,f=c.theme,h=c.className,d=c.styles,v=Oc(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:u.color,overflow:i,stripePattern:u.stripePattern,isLineLegendInBarChart:u.isLineLegendInBarChart,opacity:u.opacity}),p=function(){s._onHoverOverLegend(u)},g=function(){s._onLeave(u)},m=s._getShape(v,u,l);return a.createElement("button",(0,o.Cl)({},r&&{"aria-selected":!!s.state.selectedLegends[u.title],role:"option","aria-label":"".concat(u.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,o.Cl)({},t.nativeButtonProps),{key:n,className:v.legend,onClick:function(t){s._onClick(u,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":r}),m,a.createElement("div",{className:v.text},u.title))};var l=null!==(e=n.selectedLegends)&&void 0!==e?e:n.defaultSelectedLegends,c=null!==(r=n.selectedLegend)&&void 0!==r?r:n.defaultSelectedLegend,f={};return n.canSelectMultipleLegends?f=(null===(u=null!=l?l:[])||void 0===u?void 0:u.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{}))||{}:c&&((i={})[c]=!0,f=i),s.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:f},s}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e=t.selectedLegend,r=t.selectedLegends;return t.canSelectMultipleLegends&&void 0!==r?(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:r.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{})}):t.canSelectMultipleLegends||void 0===e?n:(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:(i={},i[e]=!0,i)})},n.prototype.render=function(){var t=this,n=this.props,i=n.theme,e=n.className,r=n.styles;this._classNames=Oc(r,{theme:i,className:e}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},this.props.enabledWrapLines?this._onRenderData(o):a.createElement(vc,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.shape;return{primary:this.props.legends.map((function(n,i){return(0,o.Cl)((0,o.Cl)({},e&&{nativeButtonProps:z(n,W,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:r||n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,n,i){var e={className:t.shape},r={fill:i,strokeWidth:2,stroke:n.color};return a.createElement(Sc,{svgProps:e,pathProps:r,shape:n.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},n}(a.Component),Fc=(0,r.I)(Ec,(function(t){var n,i,e=t.className,r=t.theme,a=t.isLineLegendInBarChart,u=void 0!==a&&a,s=r,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:r.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},e],legend:[(0,It.gm)(r,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"".concat(8,"px"),background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[It.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":""},n),width:"".concat(12,"px"),height:u?"4px":"".concat(12,"px"),backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"".concat(8,"px"),border:"".concat(1,"px solid"),borderColor:t.borderColor?t.borderColor:null==r?void 0:r.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"".concat(8,"px")}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(i={},i[It.up]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},i)},text:(0,o.Cl)((0,o.Cl)({},c.small),{lineHeight:"16px",color:null==r?void 0:r.semanticColors.bodyText,opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"".concat(.67):""}),hoverChange:{width:"12px",height:"12px",backgroundColor:r.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,It.gm)(r,f),(0,o.Cl)((0,o.Cl)({cursor:"pointer",color:null==r?void 0:r.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"".concat(8,"px")})],hoverCardRoot:{padding:"8px",position:"relative",overflowY:"auto",maxHeight:"300px"},subComponentStyles:{hoverCardStyles:{host:[(0,It.gm)(r,f)]}}}}));function Bc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Pc(t){return function(){return t}}function _c(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Hc(t){return t}Array.prototype.slice;const Ic=Math.abs,Wc=Math.atan2,Rc=Math.cos,zc=Math.max,jc=Math.min,$c=Math.sin,Yc=Math.sqrt,Xc=1e-12,Gc=Math.PI,qc=Gc/2,Uc=2*Gc;function Zc(t){return t>=1?qc:t<=-1?-qc:Math.asin(t)}function Kc(){var t=Hc,n=_c,i=null,e=Pc(0),r=Pc(Uc),o=Pc(0);function a(a){var u,s,l,c,f,h=(a=Bc(a)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(Uc,Math.max(-Uc,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u<h;++u)(f=p[v[u]=u]=+t(a[u],u,a))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(a[t],a[n])})),u=0,l=d?(m-h*b)/d:0;u<h;++u,g=c)s=v[u],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:a[s],index:u,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,i=null,a):n},a.sort=function(t){return arguments.length?(i=t,n=null,a):i},a.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Pc(+t),a):e},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Pc(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Pc(+t),a):o},a}const Jc=Math.PI,Qc=2*Jc,tf=1e-6,nf=Qc-tf;function ef(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class rf{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ef:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return ef;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,a=this._y1,u=i-t,s=e-n,l=o-t,c=a-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>tf)if(Math.abs(c*u-s*l)>tf&&r){let h=i-o,d=e-a,v=u*u+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((Jc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>tf&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*u},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(e),u=i*Math.sin(e),s=t+a,l=n+u,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>tf||Math.abs(this._y1-l)>tf)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%Qc+Qc),f>nf?this._append`A${i},${i},0,1,${c},${t-a},${n-u}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>tf&&this._append`A${i},${i},0,${+(f>=Jc)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function of(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new rf(n)}function af(t){return t.innerRadius}function uf(t){return t.outerRadius}function sf(t){return t.startAngle}function lf(t){return t.endAngle}function cf(t){return t&&t.padAngle}function ff(t,n,i,e,r,o,a){var u=t-i,s=n-e,l=(a?o:-o)/Yc(u*u+s*s),c=l*s,f=-l*u,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*Yc(zc(0,w*w*x-C*C)),k=(C*b-y*M)/x,S=(-C*y-b*M)/x,A=(C*b+y*M)/x,L=(-C*y+b*M)/x,V=k-g,D=S-m,N=A-g,T=L-m;return V*V+D*D>N*N+T*T&&(k=A,S=L),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(r/w-1),y11:S*(r/w-1)}}function hf(){var t=af,n=uf,i=Pc(0),e=null,r=sf,o=lf,a=cf,u=null,s=of(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-qc,p=o.apply(this,arguments)-qc,g=Ic(p-v),m=p>v;if(u||(u=l=s()),d<h&&(c=d,d=h,h=c),d>Xc)if(g>Uc-Xc)u.moveTo(d*Rc(v),d*$c(v)),u.arc(0,0,d,v,p,!m),h>Xc&&(u.moveTo(h*Rc(p),h*$c(p)),u.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,S=g,A=a.apply(this,arguments)/2,L=A>Xc&&(e?+e.apply(this,arguments):Yc(h*h+d*d)),V=jc(Ic(d-h)/2,+i.apply(this,arguments)),D=V,N=V;if(L>Xc){var T=Zc(L/h*$c(A)),O=Zc(L/d*$c(A));(k-=2*T)>Xc?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(S-=2*O)>Xc?(x+=O*=m?1:-1,w-=O):(S=0,x=w=(v+p)/2)}var E=d*Rc(x),F=d*$c(x),B=h*Rc(M),P=h*$c(M);if(V>Xc){var _,H=d*Rc(w),I=d*$c(w),W=h*Rc(C),R=h*$c(C);if(g<Gc)if(_=function(t,n,i,e,r,o,a,u){var s=i-t,l=e-n,c=a-r,f=u-o,h=f*s-c*l;if(!(h*h<Xc))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(E,F,W,R,H,I,B,P)){var z=E-_[0],j=F-_[1],$=H-_[0],Y=I-_[1],X=1/$c(((f=(z*$+j*Y)/(Yc(z*z+j*j)*Yc($*$+Y*Y)))>1?0:f<-1?Gc:Math.acos(f))/2),G=Yc(_[0]*_[0]+_[1]*_[1]);D=jc(V,(h-G)/(X-1)),N=jc(V,(d-G)/(X+1))}else D=N=0}S>Xc?N>Xc?(y=ff(W,R,E,F,d,N,m),b=ff(H,I,B,P,d,N,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),N<V?u.arc(y.cx,y.cy,N,Wc(y.y01,y.x01),Wc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,N,Wc(y.y01,y.x01),Wc(y.y11,y.x11),!m),u.arc(0,0,d,Wc(y.cy+y.y11,y.cx+y.x11),Wc(b.cy+b.y11,b.cx+b.x11),!m),u.arc(b.cx,b.cy,N,Wc(b.y11,b.x11),Wc(b.y01,b.x01),!m))):(u.moveTo(E,F),u.arc(0,0,d,x,w,!m)):u.moveTo(E,F),h>Xc&&k>Xc?D>Xc?(y=ff(B,P,H,I,h,-D,m),b=ff(E,F,W,R,h,-D,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),D<V?u.arc(y.cx,y.cy,D,Wc(y.y01,y.x01),Wc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,D,Wc(y.y01,y.x01),Wc(y.y11,y.x11),!m),u.arc(0,0,h,Wc(y.cy+y.y11,y.cx+y.x11),Wc(b.cy+b.y11,b.cx+b.x11),m),u.arc(b.cx,b.cy,D,Wc(b.y11,b.x11),Wc(b.y01,b.x01),!m))):u.arc(0,0,h,M,C,m):u.lineTo(B,P)}else u.moveTo(0,0);if(u.closePath(),l)return u=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-Gc/2;return[Rc(e)*i,$c(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Pc(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Pc(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Pc(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Pc(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Pc(+t),l):a},l.context=function(t){return arguments.length?(u=null==t?null:t,l):u},l}var df=function(t){var n,i=t.solidFill,e=t.gradientFill,r=t.href,o=t.theme,a=t.opacity;return{root:{fill:i,cursor:r?"pointer":"default",stroke:o.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}},opacity:a},gradientArc:{width:"100%",height:"100%",background:e,opacity:a},focusRing:{stroke:o.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:o.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}},vf=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=a.createRef(),n._isRTL=(0,s.jI)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._shouldHighlightArc=function(t){var i=n.props.activeArc;return!i||0===i.length||void 0===t||i.includes(t)},n._renderArcLabel=function(t){var i=n.props,e=i.arc,r=i.data,o=i.innerRadius,u=i.outerRadius,s=i.showLabelsInPercent,l=i.totalValue;if(i.hideLabels||Math.abs(r.endAngle-r.startAngle)<Math.PI/12||!n._shouldHighlightArc(r.data.legend))return null;var c=e.centroid(r),f=c[0],h=c[1],d=Math.sqrt(f*f+h*h),v=Math.max(o,u)+2,p=(r.startAngle+r.endAngle)/2,g=r.value;return a.createElement("text",{x:(0===d?0:f/d)*v,y:(0===d?0:h/d)*v,textAnchor:p>Math.PI!==n._isRTL?"end":"start",dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?Ae(".0%")(0===l?0:g/l):Ds(g))},n}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return pf(t),null},n.prototype.updateChart=function(t){pf(t)},n.prototype.render=function(){var t,n,i,e,r,o,s,l=this.props,c=l.arc,f=l.href,h=l.focusedArcId,d=l.activeArc,v=(0,u.Z)(),g=this.props.uniqText+("string"==typeof this.props.data.data.legend?this.props.data.data.legend.replace(/\s+/g,""):"")+this.props.data.data.data,m=d&&d.length>0?d.includes(null===(t=this.props.data)||void 0===t?void 0:t.data.legend)?1:.1:1,y=null!==(i=null===(n=this.props.data)||void 0===n?void 0:n.startAngle)&&void 0!==i?i:0,b=(null!==(r=null===(e=this.props.data)||void 0===e?void 0:e.endAngle)&&void 0!==r?r:0)-y,x=this.props.roundCorners?3:0,w=v(df,{solidFill:this.props.enableGradient?"transparent":this.props.color,gradientFill:"conic-gradient(\n from ".concat(y,"rad,\n ").concat(this.props.color,",\n ").concat(this.props.nextColor," ").concat(b,"rad\n )"),href:f,theme:this.props.theme,opacity:m}),C=p("Arc_clip")+"".concat(this.props.color,"_").concat(this.props.nextColor);return a.createElement("g",{ref:this.currentRef},!!h&&h===g&&a.createElement("path",{id:g+"focusRing",d:c.cornerRadius(x)(this.props.focusData),className:w.focusRing}),a.createElement("path",{id:g,d:c.cornerRadius(x)(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,g),className:w.root,"data-is-focusable":this._shouldHighlightArc(this.props.data.data.legend)||0===(null===(o=this.props.activeArc)||void 0===o?void 0:o.length),onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,onClick:f?this._redirectToUrl.bind(this,f):null===(s=this.props.data)||void 0===s?void 0:s.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(w.arcLabel),this.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:C},a.createElement("path",{d:c.cornerRadius(x)(this.props.data)})),a.createElement("foreignObject",{x:"-50%",y:"-50%",width:"100%",height:"100%",clipPath:"url(#".concat(C,")")},a.createElement("div",{className:w.gradientArc}))))},n.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},n.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:hf()},n}(a.Component);function pf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var gf=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:It.s.xLargePlus,fontWeight:It.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}},mf=(0,u.Z)(),yf=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,r){var o,u,s,l,c=t&&t.data&&t.data.color,f=c;return i.props.enableGradient&&(c=null!==(u=null===(o=i.props.data[n].gradient)||void 0===o?void 0:o[0])&&void 0!==u?u:Zs(n,0,i.props.theme.isInverted)[0],f=null!==(l=null===(s=i.props.data[n].gradient)||void 0===s?void 0:s[1])&&void 0!==l?l:Zs(n,0,i.props.theme.isInverted)[1]),a.createElement(vf,{key:n,data:t,focusData:e,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:c,nextColor:f,enableGradient:i.props.enableGradient,roundCorners:i.props.roundCorners,onFocusCallback:i._focusCallback,hoverOnCallback:i._hoverCallback,onBlurCallback:i.props.onBlurCallback,hoverLeaveCallback:i.props.hoverLeaveCallback,uniqText:i.props.uniqText,activeArc:i.props.activeArc,href:r,calloutId:i.props.calloutId,valueInsideDonut:i.props.valueInsideDonut,theme:i.props.theme,focusedArcId:i.props.focusedArcId,showLabelsInPercent:i.props.showLabelsInPercent,totalValue:i._totalValue,hideLabels:i.props.hideLabels})},i._focusCallback=function(t,n,e){i.props.onFocusCallback(t,n,e)},i._computeTotalValue=function(){var t=0;return i.props.data.forEach((function(n){t+=n.data})),t},i._hoverCallback=i._hoverCallback.bind(i),i._pieForFocusRing=Kc().sort(null).value((function(t){return t.data})).padAngle(0),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=this._pieForFocusRing(e),o=i(e),u="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=mf(gf,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),a.createElement("g",{transform:u},o.map((function(n,i){return t.arcGenerator(n,i,r[i],t.props.href)})),this.props.valueInsideDonut&&a.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t,n,i;t=mf(gf,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,Xu(".".concat(t)).each((function(){for(var t=Yu(this),e=t.text().split(/\s+/).reverse(),r="",o=[],a=0,u=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em").text(r));i+=1}))},n.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},n.defaultProps={pie:Kc().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(a.Component),bf={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"},xf={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"]},wf={qualitative:xf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Cf=Object.values(xf),Mf=Object.values(bf),kf=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},Sf=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Cf[(t+n)%Cf.length];return kf(e,i)},Af=function(t,n){if(void 0===n&&(n=!1),Mf.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=wf[e][r];return kf(o,n)}return t},Lf=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Vf=function(t){var n=t.r,i=t.g,e=t.b;return{r:Lf(n/255),g:Lf(i/255),b:Lf(e/255)}},Df=function(t){return.2126*t.r+.7152*t.g+.0722*t.b},Nf=(0,u.Z)(),Tf=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Ac(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,(0,s.jI)(),t)},e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){var i,r,o,a;if(e._calloutAnchorPoint!==t){e._calloutAnchorPoint=t,e._currentHoverElement=n;var u=t.color;if(e.props.enableGradient){var s=Math.max((null===(r=null===(i=e.props.data)||void 0===i?void 0:i.chartData)||void 0===r?void 0:r.findIndex((function(n){return n.legend===t.legend})))||0,0);u=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(s,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0]}e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:u,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendsHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){return t?t.map((function(t,n){var i,r,a;return a=void 0===t.color?Sf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Af(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},Qs(e),e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:void 0,color:"",xCalloutValue:"",yCalloutValue:"",focusedArcId:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[]},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=p("callout"),e._uniqText=p("_Pie_"),e._emptyChartId=p("_DonutChart_empty"),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e;return t.width&&t.width!==n._width&&(i={_width:t.width}),t.height&&t.height!==n._height&&(e={_height:t.height-40}),(0,o.Cl)((0,o.Cl)({},i),e)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.hideLegend,r=void 0!==e&&e,u=this._addDefaultColors(null==i?void 0:i.chartData);this._classNames=Nf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(u),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=this._elevateToMinimums(u.filter((function(t){return t.data>=0}))),d=0!==this.props.innerRadius?this._valueInsideDonut(this.props.valueInsideDonut,h):"";return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},a.createElement(xl,{direction:zs.horizontal,handleTabKey:1},a.createElement("div",null,a.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(n){return t._setViewBox(n)}},a.createElement(yf,{width:this.state._width,height:this.state._height,outerRadius:f,innerRadius:this.props.innerRadius,data:h,enableGradient:this.props.enableGradient,roundCorners:this.props.roundCorners,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(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),a.createElement(Pn,(0,o.Cl)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:3,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!r&&a.createElement("div",{className:this._classNames.legendContainer},s))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._elevateToMinimums=function(t){var n=0,i=[];return t.forEach((function(t){n+=t.data})),t.forEach((function(t){i.push(.01*n>t.data&&t.data>0?(0,o.Cl)((0,o.Cl)({},t),{data:.01*n,yAxisCalloutData:void 0===t.yAxisCalloutData?t.data.toLocaleString():t.yAxisCalloutData}):t)})),i},n.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,i=t.map((function(t,i){var e,r,o=n.props.enableGradient?(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(i,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted)[0]:t.color;return{title:t.legend,color:o,hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:void 0})}}}));return a.createElement(Fc,(0,o.Cl)({legends:i,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this),ref:this._legendsRef}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;this.props.legendProps&&(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||1!==e.length&&!this.state.showHover){if(e.length>0){var r=0;return n.forEach((function(t){e.includes(t.legend)&&(r+=t.data)})),r}return t}var o=n.find((function(t){return i._isLegendHighlighted(t.legend)}));return o?o.yAxisCalloutData?o.yAxisCalloutData:o.data:t},n.prototype._toLocaleString=function(t){var n=(0,_n.U)(t,this.props.culture);return n?null==n?void 0:n.toString():t},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(a.Component),Of=(0,r.I)(Tf,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}}));function Ef(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function Ff(t){return t[0]}function Bf(t){return t[1]}function Pf(t,n){var i=Pc(!0),e=null,r=qu,o=null,a=of(u);function u(u){var s,l,c,f=(u=Bc(u)).length,h=!1;for(null==e&&(o=r(c=a())),s=0;s<=f;++s)!(s<f&&i(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+n(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Ff:Pc(t),n="function"==typeof n?n:void 0===n?Bf:Pc(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),u):n},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:Pc(!!t),u):i},u.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),u):r},u.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),u):e},u}var _f,Hf,If,Wf=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.createRef(),e._tooltipHostId=p("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._measureText=function(){if(e._tooltipHost.current&&"function"==typeof e._tooltipHost.current.getBBox){var t=e._tooltipHost.current.getBBox();e.setState({textX:t.x,textY:t.y,textWidth:t.width,textHeight:t.height})}},e._getTargetElement=function(){if(e._tooltipHost.current)return e._tooltipHost.current},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipBlur=function(t){e._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e.state.isOverflowing&&(!t.target||!rl(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),i!==Cl.zero){var r=e._getDelayTime(i);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),r)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Dt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t})},e._getDelayTime=function(t){switch(t){case Cl.medium:return 300;case Cl.long:return 500;default:return 0}},e._wrapContent=function(){var t=e.props,n=t.content,i=t.wrapContent,r=t.maxWidth,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.maxHeight,u=!1;n&&i&&i(n,e._tooltipHostId,o,a)&&(u=!0),e.state.isOverflowing!==u&&e.setState({isOverflowing:u})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Nt(e),e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,i=t.tooltipProps,e=t.textProps,r=t.shouldReceiveFocus,u=void 0===r||r,s=t.showBackground,l=void 0!==s&&s,c=this.state,f=c.isTooltipVisible,h=c.textWidth,d=c.textHeight,v=(0,o.Cl)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},i),p=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||f&&!!n,g=this.props.theme?this.props.theme.semanticColors.bodyBackground:void 0,m=("number"==typeof(null==e?void 0:e.x)?e.x:0)-(null!=h?h:0)/2-4,y=("number"==typeof(null==e?void 0:e.y)?e.y:0)-(null!=d?d:0)/2-4;return a.createElement(a.Fragment,null,l&&a.createElement("rect",{x:m,y:y,width:(null!=h?h:0)+8,height:(null!=d?d:0)+8,fill:g,transform:null==e?void 0:e.transform}),a.createElement("text",(0,o.Cl)({},e,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":u&&this.state.isOverflowing}),n),p&&a.createElement(Sl,(0,o.Cl)({},v)))},n.prototype.componentDidMount=function(){this._wrapContent(),this._measureText()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||(this._wrapContent(),this._measureText())},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cl.medium},n}(a.Component),Rf=(0,u.Z)(),zf=a.lazy((function(){return Promise.resolve().then(i.bind(i,357)).then((function(t){return{default:t.ChartHoverCard}}))})),jf=[Wu.HorizontalBarChartWithAxis,Wu.HeatMapChart],$f=function(t){function n(n){var i,e,r,u,l,c,f,h,d,v,g,m,y,b,x,w,C,M,k,S,A,L,V,D,N,T,O=t.call(this,n)||this;return O.minLegendContainerHeight=32,O._isRtl=(0,s.jI)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O.calculateMaxYAxisLabelLength=function(t,n,i){var e=function(t){return O.props.showYAxisLablesTooltip?function(t,n,i){return void 0===i&&(i="..."),t.length<=n?t:t.slice(0,n)+i}(t,O.props.noOfCharsToTruncate||4):t};return t===Wu.HeatMapChart?hs(n[0].data.map((function(t){return e("".concat(t.y))})),".".concat(i," text")):hs(n.map((function(t){return e("".concat(t.y))})),".".concat(i," text"))},O._multiValueCallout=function(t){var n=O._yValueHoverSubCountsExists(t.YValueHover);return a.createElement("div",{className:O._classNames.calloutContentRoot},a.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:O._classNames.calloutContentX},Ls(t.xAxisCalloutAccessibilityData,"text",!1)),(0,_n.U)(t.hoverXValue,O.props.culture))),a.createElement("div",{className:O._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,e){var r=i+1===e.length,u=t.shouldDrawBorderBottom,s=void 0!==u&&u;return a.createElement("div",(0,o.Cl)({},Ls(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,i,n,r))})),!!t.descriptionMessage&&a.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n,i){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement,i)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===Ru.StringAxis){var n=hs(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=hs(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=hs(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=hs(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[Wu.GroupedVerticalBarChart,Wu.VerticalBarChart,Wu.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O._getChartDescription=function(){return(O.props.chartTitle||"Chart. ")+O._getAxisTitle("X",O.props.xAxisTitle,O.props.xAxisType)+O._getAxisTitle("Y",O.props.yAxisTitle,O.props.yAxisType||zu.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,zu.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===Ru.StringAxis||i===zu.StringAxis?"categories":i===Ru.DateAxis||i===zu.DateAxis?"time":"values"))+". "},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=p("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=p("defaultTabbableElement_"),O._tooltipId=p("tooltip_"),O.margins={top:null!==(e=null===(i=O.props.margins)||void 0===i?void 0:i.top)&&void 0!==e?e:20,bottom:null!==(u=null===(r=O.props.margins)||void 0===r?void 0:r.bottom)&&void 0!==u?u:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(g=null===(v=O.props.margins)||void 0===v?void 0:v.right)&&void 0!==g?g:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?80:40:null!==(A=null===(S=O.props.margins)||void 0===S?void 0:S.left)&&void 0!==A?A:60,O.margins.right=O._isRtl?null!==(V=null===(L=O.props.margins)||void 0===L?void 0:L.left)&&void 0!==V?V:60:(null!==(N=null===(D=O.props.margins)||void 0===D?void 0:D.right)&&void 0!==N?N:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?80:40),O}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),jf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var t=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Ru.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];Yu(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return Yu(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(jf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var i=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==i&&this.setState({startFromX:i})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,i,e,r,u,s,l,c,f=this,h=this.props,d=h.calloutProps,v=h.points,p=h.chartType,g=h.chartHoverProps,m=h.svgFocusZoneProps,y=h.svgProps,b=h.culture,x=h.dateLocalizeOptions,w=h.timeFormatLocale,C=h.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var M=(0,o.Cl)({},this.margins);jf.includes(this.props.chartType)&&(this._isRtl?M.right+=this.state.startFromX:M.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(M),this._classNames=Rf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,enableReflow:this.props.enableReflow});var k,S,A,L,V,D=null,N=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var T={domainNRangeValues:this.props.getDomainNRangeValues(v,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,p,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:null===(r=this.props.showRoundOffXTickValues)||void 0===r||r,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,containerWidth:this.state.containerWidth,hideTickOverlap:this.props.hideTickOverlap&&!this.props.rotateXAxisLables&&!this.props.showXAxisLablesTooltip&&!this.props.wrapXAxisLables},O={margins:this.props.getYDomainMargins?this.props.getYDomainMargins(this.state.containerHeight):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:this.props.showYAxisLablesTooltip?15:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:this.props.getMinMaxOfYAxis(v,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,F=void 0;switch(this.props.xAxisType){case Ru.NumericAxis:E=(t=rs(T,this.props.tickParams,this.props.chartType,b)).xScale,F=t.tickValues;break;case Ru.DateAxis:E=(n=function(t,n,i,e,r,o,a){var u,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,f=void 0===c?6:c,h=t.xAxistickSize,d=void 0===h?6:h,v=t.xAxisCount,p=a?Sa():ka();p.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]).nice();var g=null!=v?v:6,m=100,y=-1,b=r?Jr(r):void 0;p.ticks().forEach((function(t){var n=function(t,n){var i,e=Re,r=n?je:ze,o=n?Ye:$e,a=n?Ge:Xe,u=n?hr:fr,s=n?rr:Ze,l=n?vr:dr,c=[{formatLevel:0,condition:function(t){return e(t)<t}},{formatLevel:1,condition:function(t){return r(t)<t}},{formatLevel:2,condition:function(t){return o(t)<t}},{formatLevel:3,condition:function(t){return a(t)<t}},{formatLevel:4,condition:function(t){return u(t)<t&&s(t)<t}},{formatLevel:5,condition:function(t){return u(t)<t}},{formatLevel:6,condition:function(t){return l(t)<t}},{formatLevel:7,condition:function(){return!0}}].find((function(n){return(0,n.condition)(t)}));return null!==(i=null==c?void 0:c.formatLevel)&&void 0!==i?i:7}(t,a);n>y&&(y=n),n<m&&(m=n)}));var x=function(t,n,i,e){var r="%c",o="%a %d, %X",a="%b %d, %X",u="%-I:%M %p",s="%b %d, %-I:%M %p",l="%b %d, %-I %p",c="%b %d";return(i?e?i.utcFormat:i.format:e?io:to)([[".%L",":%S.%L","%M:%S.%L","%-I:%M:%S.%L %p",o,a,a,r],[r,":%S","%-I:%M:%S","%X",o,a,a,r],[r,r,u,u,"%a %d, %-I:%M %p",s,s,"%x, %-I:%M %p"],[r,r,r,"%-I %p","%a %d, %-I %p",l,l,"%x, %-I %p"],[r,r,r,r,"%a %d",c,c,"%x"],[r,r,r,r,r,c,c,"%x"],[r,r,r,r,r,r,"%B","%b %Y"],[r,r,r,r,r,r,r,"%Y"]][t][n])}(m,y,b,a),w=function(t,u){return o?o(t):i&&e?t.toLocaleString(i,e):r?x(t):void 0===i&&n.tickFormat?a?io(n.tickFormat)(t):to(n.tickFormat)(t):x(t)},C=hs(p.ticks().map(w),'[class^="xAxis-"] text')+40,M=p.range(),k=M[0],S=M[1];g=Math.min(Math.max(1,Math.floor(Math.abs(S-k)/C)),10),g=Math.min(g,null!=v?v:g);var A=Gn(p).tickSize(d).tickPadding(f).ticks(g).tickFormat(w);n.tickValues&&A.tickValues(n.tickValues),l&&Yu(l).call(A).selectAll("text").attr("aria-hidden","true");var L=(null!==(u=n.tickValues)&&void 0!==u?u:p.ticks(g)).map(A.tickFormat());return{xScale:p,tickValues:L}}(T,this.props.tickParams,b,x,w,C,this.props.useUTC)).xScale,F=n.tickValues;break;case Ru.StringAxis:i=function(t,n,i){var e,r=t.domainNRangeValues,o=t.xAxistickSize,a=void 0===o?6:o,u=t.tickPadding,s=void 0===u?10:u,l=t.xAxisPadding,c=void 0===l?.1:l,f=t.xAxisInnerPadding,h=t.xAxisOuterPadding,d=t.containerWidth,v=t.hideTickOverlap,p=Oa().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==f?f:c).paddingOuter(void 0!==h?h:c),g=null!==(e=n.tickValues)&&void 0!==e?e:i;if(v){var m=[],y=g.map((function(t){return hs([t],'[class^="xAxis-"] text')})),b=0,x=d,w=1,C=p.range();C[1]-C[0]<0&&(b=d,x=0,w=-1);for(var M=g.length-1;M>=0;M--){var k=p(g[M]);w*(k-w*y[M]/2-b)>=0&&w*(k+w*y[M]/2-x)<=0&&(m.push(g[M]),x=k-w*(y[M]/2+10))}g=m=m.reverse()}var S=Gn(p).tickSize(a).tickPadding(s).tickValues(g);return t.xAxisElement&&Yu(t.xAxisElement).call(S).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:g}}(T,this.props.tickParams,this.props.datasetForXAxisDomain),E=i.xScale,F=i.tickValues;break;default:E=(e=rs(T,this.props.tickParams,this.props.chartType,b)).xScale,F=e.tickValues}if(this._xScale=E,this._tickValues=F,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var B={node:this.xAxisElement,xAxis:E,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=E&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=Yu(n).call(i),a=0,u=[];return o.selectAll(".tick text").each((function(){var t=Yu(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();u.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,u),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),a=(g-y)*m}})),a>0?a:0}}(B);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var _=void 0,H=void 0,I={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===zu.StringAxis)_=this.props.createStringYAxis(O,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(u=this.props)||void 0===u?void 0:u.secondaryYScaleOptions){var W={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,yMinMaxValues:this.props.getMinMaxOfYAxis(v,this.props.yAxisType,!0),yAxisPadding:this.props.yAxisPadding};H=this.props.createYAxis(W,this._isRtl,I,this.isIntegralDataset,!0,this.props.supportNegativeData,this.props.roundedTicks)}_=this.props.createYAxis(O,this._isRtl,I,this.isIntegralDataset,!1,this.props.supportNegativeData,this.props.roundedTicks)}if(jf.includes(this.props.chartType)){if(_&&(k=this.yAxisElement,S=_,A=this.props.noOfCharsToTruncate||4,L=this.props.showYAxisLablesTooltip||!1,V=this._isRtl,null!==k&&Yu(k).call(S).selectAll(".tick text").each((function(){var t=Yu(this),n=t.text(),i=V?"...".concat(t.text().slice(0,A)):"".concat(t.text().slice(0,A),"..."),e=t.text().length,r=L?1.5:1,o=t.attr("y"),a=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",a).attr("y",o).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",n),L&&e>A?t.append("tspan").attr("id","showDots").attr("x",V?0:a).attr("y",o).attr("dy",u).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",V?0:a).attr("y",o).attr("dx",r+0+"em").text(n)}))),!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var R=Yu(this.yAxisElement).call(_);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var z={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:R};R&&ds(z)}}this.props.getAxisData&&this.props.getAxisData(I),this._getData(E,_,H),N=this.props.children((0,o.Cl)((0,o.Cl)({},this.state),{xScale:E,yScalePrimary:_,yScaleSecondary:H})),!this.props.hideTooltip&&d.isCalloutVisible&&(D=this._generateCallout(d,g))}var j,$={width:this.state.containerWidth,height:this.state.containerHeight};j=this.props.focusZoneDirection===zs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:zs.horizontal;var Y=$.width-this.margins.left-this.margins.right-this.state.startFromX,X=$.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return a.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return f.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement(xl,(0,o.Cl)({direction:j,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},m),this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement("svg",(0,o.Cl)({width:$.width,height:$.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},Fs(y)),a.createElement("g",{ref:function(t){f.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat($.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&a.createElement(Wf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+Y/2,y:$.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:Y,wrapContent:fs,theme:this.props.theme,showBackground:!0}),a.createElement("g",{ref:function(t){f.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?$.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&a.createElement("g",null,a.createElement("g",{ref:function(t){f.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left+this.state.startFromX:$.width-this.margins.right-this.state.startFromX,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&a.createElement(Wf,{content:this.props.secondaryYAxistitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:$.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat($.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:fs,theme:this.props.theme,showBackground:!0})),N,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&a.createElement(Wf,{content:this.props.yAxisTitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?$.width-this.margins.right/2+this.titleMargin:this.margins.left/2-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat($.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:fs,theme:this.props.theme,showBackground:!0}))),!this.props.hideLegend&&a.createElement("div",{ref:function(t){return f.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),D&&a.createElement(a.Suspense,{fallback:a.createElement("div",null,"Loading...")},D))},n.prototype._generateCallout=function(t,n){return a.createElement(Pn,(0,o.Cl)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&a.createElement(zf,(0,o.Cl)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r,o=e?{}:{marginRight:"16px"},u=void 0!==t.index&&-1!==t.index,s=Rf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:u}),l=this.props.culture,c=(0,_n.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return a.createElement("div",{style:o},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return a.createElement("div",{key:t,className:s.calloutBlockContainer},a.createElement("div",{className:s.calloutlegendText}," ",(0,_n.U)(t,l)),a.createElement("div",{className:s.calloutContentY},(0,_n.U)(f[t],l)))})))}return a.createElement("div",{style:i?o:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},u&&a.createElement(Sc,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:Ms[t.index%Object.keys(As).length]}),a.createElement("div",null,a.createElement("div",{className:s.calloutlegendText}," ",t.legend),a.createElement("div",{className:s.calloutContentY},(0,_n.U)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(r=t.y)&&void 0!==r?r:t.data,l)))))},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,u=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==a||e!==u-n)&&t.setState({containerWidth:a,containerHeight:u-n})}}))},n}(a.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(_f||(_f={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(Hf||(Hf={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(If||(If={}));var Yf=function(){var t,n=(0,l.z)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),Xf=(0,r.I)($f,(function(t){var n,i,e,r,a,u,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=t.enableReflow,b=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:(0,o.Cl)({},y?{overflow:"auto"}:{}),axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:It.BO.semibold,fontStyle:"normal",lineHeight:It.s.medium,color:Hf.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[It.up]={fill:"CanvasText"},n)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(i={},i[It.up]={opacity:.1,stroke:"CanvasText"},i)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[It.up]={fill:"CanvasText"},e)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(r={},r[It.up]={opacity:.1,stroke:"CanvasText"},r)},g:[h&&!Yf&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},b.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(a={},a[It.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},b.small),{lineHeight:"16px",selectors:(u={},u[It.up]={color:"CanvasText"},u),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},b.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[It.up]={color:"CanvasText"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[It.up]={color:"CanvasText"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}],tooltip:(0,o.Cl)((0,o.Cl)({},f.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:f.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Gf=(0,un.J5)((function(t){return(0,un.J5)((function(n){var i=(0,un.J5)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function qf(t,n){return Gf(t)(n)}var Uf=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},Zf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},Kf="spacer-",Jf=1/3,Qf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},th=function(t){return t.getBoundingClientRect()},nh=th,ih=th,eh=function(t){function n(n){var i=t.call(this,n)||this;return i._root=a.createRef(),i._surface=a.createRef(),i._pageRefs={},i._getDerivedStateFromProps=function(t,n){return t.items!==i.props.items||t.renderCount!==i.props.renderCount||t.startIndex!==i.props.startIndex||t.version!==i.props.version||!n.hasMounted&&i.props.renderEarly&&(0,Dn.S)()?(i._resetRequiredWindows(),i._requiredRect=null,i._measureVersion++,i._invalidatePageCache(),i._updatePages(t,n)):n},i._onRenderRoot=function(t){var n=t.rootRef,i=t.surfaceElement,e=t.divProps;return a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderSurface=function(t){var n=t.surfaceRef,i=t.pageElements,e=t.divProps;return a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderPage=function(t,n){for(var e,r=i.props,u=r.onRenderCell,s=r.onRenderCellConditional,l=r.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,o.Tt)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=i.props.getKey?i.props.getKey(b,y):b&&b.key;null==x&&(x=y);var w=null!=s?s:u,C=null!==(e=null==w?void 0:w(b,y,i.props.ignoreScrollingState?void 0:i.state.isScrolling))&&void 0!==e?e:null;s&&!C||g.push(a.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return a.createElement("div",(0,o.Cl)({},v),g)},Qs(i),i.state={pages:[],isScrolling:!1,getDerivedStateFromProps:i._getDerivedStateFromProps,hasMounted:!1},i._estimatedPageHeight=0,i._totalEstimates=0,i._requiredWindowsAhead=0,i._requiredWindowsBehind=0,i._measureVersion=0,i._cachedPageHeights={},i._estimatedPageHeight=0,i._focusedIndex=-1,i._pageCache={},i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,a=0,u=1,s=e;s<r;s+=u){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(u=l.itemCount,s<=t&&s+u>t){if(n&&this._scrollElement){for(var f=ih(this._scrollElement),h=Uf(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)a+=n(s+p);var g=a+n(t);switch(i){case 1:return void Zf(this._scrollElement,a);case 2:return void Zf(this._scrollElement,g-f.height);case 3:return void Zf(this._scrollElement,(a+g-f.height)/2)}if(a>=d.top&&g<=d.bottom)return;a<d.top||g>d.bottom&&(a=g-f.height)}return void(this._scrollElement&&Zf(this._scrollElement,a))}a+=c}},n.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,a=e.startIndex;a<e.startIndex+e.itemCount;a++){if(r=t(a),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return a;o+=r}}}return 0},n.prototype.componentDidMount=function(){this._async=new Nt(this),this._events=new _l(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=K(this._root.current),this._scrollTop=0,this.setState((0,o.Cl)((0,o.Cl)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},n.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var a=i[o],u=e[o];if(a.key!==u.key||a.itemCount!==u.itemCount){r=!0;break}}else r=!0;return r},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,i=t.role,e=void 0===i?"list":i,r=t.onRenderSurface,a=t.onRenderRoot,u=this.state.pages,s=void 0===u?[]:u,l=[],c=z(this.props,R),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=r?qf(r,this._onRenderSurface):this._onRenderSurface;return(a?qf(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,o.Cl)((0,o.Cl)({},c),{className:j("ms-List",n),role:l.length>0?e:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:a}),a},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,o.Cl)((0,o.Cl)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=b(n)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),a=Math.min(i,r+1);o===e&&a===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>a)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var i=this._buildPages(t,n),e=n.pages;return this._notifyPageChanges(e,i.pages,this.props),(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),i),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},a=0,u=t;a<u.length;a++)(c=u[a]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},n.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},n.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},n.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},n.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},n.prototype._buildPages=function(t,n){var i=t.renderCount,e=t.items,r=t.startIndex,a=t.getPageHeight;i=this._getRenderCount(t);for(var u=(0,o.Cl)({},Qf),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=r+i,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!a,g=this._allowedRect,y=function(i){var o=b._getPageSpecification(t,i,g),a=o.height,y=o.data,x=o.key;l=o.itemCount;var w,C,M=c+a-1,k=m(n.pages,(function(t){return!!t.items&&t.startIndex===i}))>-1,S=!g||M>=g.top&&c<=g.bottom,A=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(A||S&&k)||!v||h>=i&&h<i+l||i===r){f&&(s.push(f),f=null);var L=Math.min(l,d-i),V=b._createPage(x,e.slice(i,i+L),i,void 0,void 0,y);V.top=c,V.height=a,b._visibleRect&&b._visibleRect.bottom&&(V.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(V),A&&b._allowedRect&&(w=u,C={top:c,bottom:M,height:a,left:g.left,right:g.right,width:g.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(Kf+i,void 0,i,0,void 0,y,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=r;x<d&&"break"!==y(x);x+=l);return f&&(f.key=Kf+"end",s.push(f)),this._materializedRect=u,(0,o.Cl)((0,o.Cl)({},n),{pages:s,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,a=void 0===o?this._getItemCountForPage(n,i):o,u=r.height;return{itemCount:a,height:void 0===u?this._getPageHeight(n,i,a):u,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,a)}},n.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},n.prototype._createPage=function(t,n,i,e,r,o,a){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var u=this._pageCache[t];return u&&u.page?u.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:a||!1}},n.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},n.prototype._updateRenderRects=function(t,n,i){var e=t.renderedWindowsAhead,r=t.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(t)){var u=this._surfaceRect||(0,o.Cl)({},Qf),s=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=Uf(this._scrollElement);this._surface.current&&(i||!a||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight*Jf)&&(u=this._surfaceRect=nh(this._surface.current),this._scrollTop=c),!i&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var f=Math.max(0,-u.top),h=(0,l.z)(this._root.current),d={top:f,left:u.left,bottom:f+h.innerHeight,right:u.right,width:u.width,height:h.innerHeight};this._requiredRect=rh(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=rh(d,r,e),this._visibleRect=d}},n.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return a.createElement(a.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Ft,n}(a.Component);function rh(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var oh,ah=function(t){var n=a.useRef(null);a.useEffect((function(){if(n.current){var i=Yu(n.current),e=t.text.split(/\s+/),r=[],o=i.append("tspan"),a=0;return e.forEach((function(n){r.push(n),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(a++,r.pop(),o.text(r.join(" ")),r=[n],o=i.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),i.attr("dy",-a*t.lineHeight),function(){i.selectAll("tspan").remove()}}})),t.lineHeight;var i=(0,o.Tt)(t,["lineHeight"]);return a.createElement("text",(0,o.Cl)({ref:n},Fs(i)))},uh=function(t){var n,i,e,r=a.useRef(null),o=a.useState(!1),u=o[0],s=o[1],l=null;if(u){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=a.createElement(Pn,{target:r.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},a.createElement(xl,{isCircularNavigation:!0,direction:zs.vertical},a.createElement(eh,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return a.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Af(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.semanticColors.messageText;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),a.createElement(a.Fragment,null,a.createElement("g",{ref:r,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"},role:"button"},a.createElement(ah,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},sh=function(t){var n,i,e=t.labelWidth?t.labelWidth:105,r=t.chartYTop-20,u=r+7,s=t.scale.range(),l=t.events.map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{x:t.scale(n.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?Af(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var a=o[r],u=n(a);-1===i.indexOf(u)&&(e.push(a),i.push(u))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return a.createElement("line",{key:i,x1:n.x,x2:n.x,y1:u,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var a=t[r].x,u=a-n;return a<e?[]:r===t.length-1?e<u?[{x:a,anchor:"end",aggregatedIdx:[r]}]:a+n<i?[{x:a,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<u?"end":"start")},o=function(e,o){var a="end"===o?t[e].x:t[e].x+n,u=m(t,(function(t){return t.x>a&&(t.x-n>=a||t.x+n<i)}),e+1);-1===u&&(u=t.length);for(var s=[],l=e;l<u;l++)s.push(l);var c=r(a,u);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,e+5,s[1],s[0]).map((function(n,i){return a.createElement(uh,{key:i,theme:t.theme,lineDefs:l,labelDef:n,textY:r,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel})}));return a.createElement(a.Fragment,null,f,h)},lh=(0,u.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(oh||(oh={}));var ch=ui((function(t){return t.x})).left,fh=function(t){function n(n){var i,e,r,u,l,c=t.call(this,n)||this;return c._xAxisScale="",c._yScalePrimary="",c.eventLabelHeight=36,c._isRTL=(0,s.jI)(),c._xMin=Number.NEGATIVE_INFINITY,c._xMax=Number.POSITIVE_INFINITY,c._xPadding=0,c._yPaddingPrimary=0,c._yPaddingSecondary=0,c.toImage=function(t){var n,i;return Ac(null===(n=c._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=c._legendsRef.current)||void 0===i?void 0:i.toSVG,c._isRTL,t)},c._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return"scatter"===c.props.lineMode&&o===Ru.NumericAxis?c._getDomainNRangeValuesWithPadding(t,n,i,r):o===Ru.NumericAxis?ps(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},c._injectIndexPropertyInLineChartData=function(t,n){void 0===n&&(n=!1);var i=c.props.allowMultipleShapesForPoints,e=void 0!==i&&i,r=n?null==t?void 0:t.filter((function(t){var n,i,e;return(null===(i=null===(n=c.props.legendProps)||void 0===n?void 0:n.selectedLegends)||void 0===i?void 0:i.includes(t.legend))||(null===(e=c.props.legendProps)||void 0===e?void 0:e.selectedLegend)===t.legend})):t;return r?r.map((function(t,n){var i,r,a;return a=void 0===t.color?Sf(n,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted):Af(t.color,null===(r=c.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{index:e?n:-1,color:a})})):[]},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerStack?c.props.onRenderCalloutPerStack(c.state.stackCalloutProps):c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps):null},c._getNumericMinMaxOfY=function(t,n,i){var e=xs(t,0,i),r=e.startValue,o=e.endValue,a=0;return"scatter"===c.props.lineMode&&(a=.1*(o-r),i?c._yPaddingSecondary=a:c._yPaddingPrimary=a),{startValue:r-a,endValue:o+a}},c._getMargins=function(t){c.margins=t},c._initializeLineChartData=function(t,n,i,e,r,o,a){c._xAxisScale=t,c._yScalePrimary=n,c._yScaleSecondary=a,c._renderedColorFillBars=c.props.colorFillBars?c._createColorFillBars(i):[],c.lines=c._createLines(r,i)},c._handleSingleLegendSelectionAction=function(t){c.state.selectedLegend===t.legend?(c.setState({selectedLegend:""}),c._handleLegendClick(t,null)):(c.setState({selectedLegend:t.legend}),c._handleLegendClick(t,t.legend))},c._onHoverCardHide=function(){c.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},c._closeCallout=function(){c.setState({isCalloutVisible:!1})},c._getBoxWidthOfShape=function(t,n,i){var e=c.props,r=e.allowMultipleShapesForPoints,o=void 0!==r&&r,a=e.strokeWidth,u=void 0===a?4:a,s=c.state.activePoint;return o?s===t?oh.hoverSize:1===n||i?2.5*u:oh.invisibleSize:s===t?oh.hoverSize:oh.invisibleSize},c._getPath=function(t,n,i,e,r,o){var a=c.props.allowMultipleShapesForPoints,u=void 0!==a&&a,s=c._getBoxWidthOfShape(i,e,r),l=u?o%Object.keys(As).length:0,f=As[l].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,s=f>1?s/f:s,l)},c._getPointFill=function(t,n,i,e){var r=c.state.activePoint,o=c.props,a=o.theme;return o.allowMultipleShapesForPoints,r===n?a.semanticColors.bodyBackground:t},c._createColorFillBars=function(t){var n,i=[];c.state.isSelectedLegend?c._colorFillBars=c.state.selectedColorBarLegend:c._colorFillBars=c.props.colorFillBars;for(var e=xs(c._points),r=0;r<c._colorFillBars.length;r++){var o=c._colorFillBars[r],u=p("string"==typeof o.legend?o.legend.replace(/\W/g,""):""),s=Af(o.color,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted);o.applyPattern&&i.push(c._getStripePattern(s,r));for(var l=0;l<o.data.length;l++){var f=o.data[l].startX,h=o.data[l].endX,d=c._legendHighlighted(o.legend)||c._noLegendHighlighted()||c.state.isSelectedLegend?c._getColorFillBarOpacity(o):.1;i.push(a.createElement("rect",{fill:o.applyPattern?"url(#".concat(c._colorFillBarPatternId,"_").concat(r,")"):s,fillOpacity:d,x:c._isRTL?c._xAxisScale(h):c._xAxisScale(f),y:c._yScalePrimary(e.endValue)-3,width:Math.abs(c._xAxisScale(h)-c._xAxisScale(f)),height:c._yScalePrimary(c.props.yMinValue||0)-c._yScalePrimary(e.endValue)+3,key:"".concat(u).concat(l)}))}}return i},c._getStripePattern=function(t,n){return a.createElement("pattern",{id:"".concat(c._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(c._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},a.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},c._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},c._onMouseOverLargeDataset=function(t,n,i,e){e.persist();var r=c.props.data.lineChartData,o=c._xAxisScale.invert(Ef(e)[0],document.getElementById(c._rectId)),a=ch(r[t].data,o),u=r[t].data[a-1],s=r[t].data[a],l=null,f=null;if(void 0===u&&void 0!==s)l=s.x,f=a;else if(void 0!==u&&void 0===s)l=u.x,f=a-1;else{var h=void 0,d=void 0,v=void 0;switch(Ss(r[t].data[0].x,!0)){case Ru.DateAxis:h=new Date(o).getTime(),d=u.x.getTime(),v=s.x.getTime(),l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1;break;case Ru.NumericAxis:h=o,d=u.x,v=s.x,l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1}}var p=r[t].data[f],g=p.xAxisCalloutData,m=p.xAxisCalloutAccessibilityData,b=l instanceof Date?Es(l,c.props.useUTC):l,x=l instanceof Date?l.getTime():l,w=y(c._calloutPoints,(function(t){return t.x===x})),C=r[t].data[f],M=null===c.state.nearestCircleToHighlight||null!==c.state.nearestCircleToHighlight&&null!==C&&(c.state.nearestCircleToHighlight.x!==C.x||c.state.nearestCircleToHighlight.y!==C.y);w&&M&&(c._uniqueCallOutID="#".concat(c._staticHighlightCircle,"_").concat(t),Yu("#".concat(c._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(c._xAxisScale(C.x))).attr("cy","".concat(i(C.y))).attr("visibility","visibility"),Yu("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(C.x),", ").concat(i(C.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-i(C.y))),c.setState({nearestCircleToHighlight:C,isCalloutVisible:!0,refSelected:"#".concat(c._staticHighlightCircle,"_").concat(t),stackCalloutProps:w,YValueHover:w.values,dataPointCalloutProps:w,hoverXValue:g||b,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),w||c.setState({isCalloutVisible:!1,nearestCircleToHighlight:C,activePoint:"",activeLine:t})},c._handleFocus=function(t,n,i,e,r){c._uniqueCallOutID=e;var o=n instanceof Date?Es(n,c.props.useUTC):n,a=n instanceof Date?n.getTime():n,u=y(c._calloutPoints,(function(t){return t.x===a}));if(u){var s=c;Yu("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(s._xAxisScale(n),", 0)")})).attr("visibility","visibility"),c._refArray.forEach((function(n){n.index===t&&c.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+o,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:e,xAxisCalloutAccessibilityData:r})}))}else c.setState({activePoint:e})},c._handleHover=function(t,n,i,e,r,o,a,u){u.persist();var s=t instanceof Date?Es(t,c.props.useUTC):t,l=t instanceof Date?t.getTime():t,f=c,h=y(c._calloutPoints,(function(t){return t.x===l}));h?(Yu("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(f._xAxisScale(t),", ").concat(a(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-a(n))),c._uniqueCallOutID!==r&&(c._uniqueCallOutID=r,c.setState({isCalloutVisible:!0,refSelected:"#".concat(r),hoverXValue:e||""+s,YValueHover:h.values,stackCalloutProps:h,dataPointCalloutProps:h,activePoint:r,xAxisCalloutAccessibilityData:o,nearestCircleToHighlight:null,activeLine:null}))):c.setState({activePoint:r,nearestCircleToHighlight:null,activeLine:null})},c._getClickHandler=function(t){return t?{onClick:t}:{}},c._handleMouseOut=function(){Yu("#".concat(c._verticalLine)).attr("visibility","hidden")},c._handleChartMouseLeave=function(){c._uniqueCallOutID=null,c.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},c._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},c._handleMultipleLineLegendSelectionAction=function(t){var n,i=c.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedLegendPoints,!0),[t],!1):c.state.selectedLegendPoints.slice(0,i).concat(c.state.selectedLegendPoints.slice(i+1)),c.props.data&&n.length===c.props.data.lineChartData.length&&(c.props.colorFillBars&&c.props.colorFillBars.length===c.state.selectedColorBarLegend.length||!c.props.colorFillBars)?c._clearMultipleLegendSelections():n.length||c.state.selectedColorBarLegend.length?c.setState({selectedLegendPoints:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=c.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedColorBarLegend,!0),[t],!1):c.state.selectedColorBarLegend.slice(0,i).concat(c.state.selectedColorBarLegend.slice(i+1))).length===(c.props.colorFillBars&&c.props.colorFillBars.length)&&(c.props.data&&c.props.data.lineChartData.length===c.state.selectedLegendPoints.length||!c.props.data)?c._clearMultipleLegendSelections():n.length||c.state.selectedLegendPoints.length?c.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._clearMultipleLegendSelections=function(){c.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},c._legendHighlighted=function(t){return c.state.selectedLegend===t||""===c.state.selectedLegend&&c.state.activeLegend===t},c._noLegendHighlighted=function(){return""===c.state.selectedLegend&&""===c.state.activeLegend},c._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},c._getAriaLabel=function(t,n){var i,e=c._points[t],r=e.data[n],o=r.x instanceof Date?Es(r.x,c.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},c._getDomainNRangeValuesWithPadding=function(t,n,i,e){c._xMin=ei(t,(function(t){return ei(t.data,(function(t){return t.x}))})),c._xMax=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),"scatter"===c.props.lineMode&&(c._xPadding=.1*(c._xMax-c._xMin));var r=n.left,o=i-n.right;return e?{dStartValue:c._xMax+c._xPadding,dEndValue:c._xMin-c._xPadding,rStartValue:r,rEndValue:o}:{dStartValue:c._xMin-c._xPadding,dEndValue:c._xMax+c._xPadding,rStartValue:r,rEndValue:o}},c._getChartTitle=function(){var t=c.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Line chart with ".concat((null==i?void 0:i.length)||0," lines. ")},Qs(c),c.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",isCalloutVisible:!1,selectedLegendPoints:c._injectIndexPropertyInLineChartData(c.props.data.lineChartData,!0),selectedColorBarLegend:[],isSelectedLegend:(null!==(l=null===(u=null===(r=c.props.legendProps)||void 0===r?void 0:r.selectedLegends)||void 0===u?void 0:u.length)&&void 0!==l?l:0)>0,activePoint:"",nearestCircleToHighlight:null,activeLine:null},c._refArray=[],c._points=c._injectIndexPropertyInLineChartData(c.props.data.lineChartData),c._colorFillBars=[],c._calloutPoints=cs(c._points)||[],c._circleId=p("circle"),c._lineId=p("lineID"),c._borderId=p("borderID"),c._verticalLine=p("verticalLine"),c._colorFillBarPatternId=p("colorFillBarPattern"),c._tooltipId=p("LineChartTooltipId_"),c._rectId=p("containerRectLD"),c._staticHighlightCircle=p("staticHighlightCircle"),c._createLegendsMemoized=(0,un.J9)((function(t){return c._createLegends(t)})),c._firstRenderOptimization=!0,c._emptyChartId=p("_LineChart_empty"),c._cartesianChartRef=a.createRef(),c._legendsRef=a.createRef(),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(c.eventLabelHeight=n.eventAnnotationProps.labelHeight),c}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r,o,a,u,s,l;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)===(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&Bs(null===(e=t.legendProps)||void 0===e?void 0:e.selectedLegends,null===(r=this.props.legendProps)||void 0===r?void 0:r.selectedLegends)||this.setState({selectedLegend:null!==(a=null===(o=this.props.legendProps)||void 0===o?void 0:o.selectedLegend)&&void 0!==a?a:"",selectedLegendPoints:this._injectIndexPropertyInLineChartData(this.props.data.lineChartData,!0),isSelectedLegend:(null!==(l=null===(s=null===(u=this.props.legendProps)||void 0===u?void 0:u.selectedLegends)||void 0===s?void 0:s.length)&&void 0!==l?l:0)>0}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=cs(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,i=n.tickValues,e=n.tickFormat,r=n.eventAnnotationProps,u=n.legendProps,s=n.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=vs(this._points),c=this._points;u&&u.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=cs(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),d={tickValues:i,tickFormat:e};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:Wu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:us,getmargins:this._getMargins,getMinMaxOfYAxis:this._getNumericMinMaxOfY,getGraphData:this._initializeLineChartData,xAxisType:l?Ru.DateAxis:Ru.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ls,onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yScalePrimary=n.yScalePrimary,t._yScaleSecondary=n.yScaleSecondary,a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?a.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):a.createElement(a.Fragment,null),a.createElement("g",null,t._renderedColorFillBars,t.lines),r&&a.createElement(sh,(0,o.Cl)({theme:t.props.theme},r,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._createLegends=function(t){var n=this,i=this.props,e=i.legendProps,r=i.allowMultipleShapesForPoints,u=void 0!==r&&r,s=!(!e||!e.canSelectMultipleLegends),l=t.map((function(t){var i=t.color;return(0,o.Cl)((0,o.Cl)({title:t.legend,color:i,action:function(){s?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),u&&{shape:Ms[t.index%Object.keys(As).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,i){var e,r=t.legend,o=Af(t.color,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted);return{title:r,color:o,action:function(){s?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:r})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return a.createElement(Fc,(0,o.Cl)({legends:(0,o.fX)((0,o.fX)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps,{ref:this._legendsRef}))},n.prototype._getRangeForScatterMarkerSize=function(t,n){var i=this._isRTL?this._xAxisScale(this._xMax-this._xPadding)-this._xAxisScale(this._xMax):this._xAxisScale(this._xMin+this._xPadding)-this._xAxisScale(this._xMin),e=t.domain()[0],r=t(e)-t(e+n);return Math.min(i,r)},n.prototype._createLines=function(t,n){var i,e,r,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,S,A,L,V,D,N,T=this,O=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var E=ri(this._points,(function(t){return ri(t.data,(function(t){return t.markerSize}))})),F=function(t){var F=[],P=[],_=[],H=B._points[t].legend,I=B._points[t].color,W=B.state.activePoint,R=B.props.theme,z=n-B.margins.bottom+6,j=B._points[t].useSecondaryYScale&&B._yScaleSecondary?B._yScaleSecondary:B._yScalePrimary,$=B._points[t].useSecondaryYScale&&B._yScaleSecondary?B._yPaddingSecondary:B._yPaddingPrimary,Y="scatter"===B.props.lineMode?B._getRangeForScatterMarkerSize(j,$):0;if(1===B._points[t].data.length){var X=B._points[t].data[0],G=X.x,q=X.y,U=X.xAxisCalloutData,Z=X.xAxisCalloutAccessibilityData,K="".concat(B._circleId,"_").concat(t),J=B._legendHighlighted(H)||B._noLegendHighlighted()||B.state.isSelectedLegend,Q=B._points[t].data[0].markerSize;_.push(a.createElement("circle",(0,o.Cl)({id:K,key:K,r:Q?Q*Y/E:W===K?5.5:3.5,cx:B._xAxisScale(G),cy:j(q),fill:W===K?R.semanticColors.bodyBackground:I,opacity:J?1:.1,onMouseOver:B._handleHover.bind(B,G,q,z,U,K,Z,j),onMouseMove:B._handleHover.bind(B,G,q,z,U,K,Z,j),onMouseOut:B._handleMouseOut,strokeWidth:W===K?4:0,stroke:W===K?I:"",role:"img","aria-label":B._getAriaLabel(t,0),"data-is-focusable":J,ref:function(t){T._refCallback(t,K)},onFocus:function(){return T._handleFocus(K,G,U,K,Z)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[0].onDataPointClick))))}var tt=0,nt=null!==(e=null===(i=B._points[t].gaps)||void 0===i?void 0:i.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==e?e:[],it=null===(r=B._points[t].lineOptions)||void 0===r?void 0:r.curve;if((B.props.optimizeLargeData||it)&&B._points[t].data.length>1){for(var et=Pf().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return j(t[1])})).curve(Rs(it)),rt="".concat(B._lineId,"_").concat(t),ot="".concat(B._borderId,"_").concat(t),at=(null===(u=B._points[t].lineOptions)||void 0===u?void 0:u.strokeWidth)||B.props.strokeWidth||4,ut=(J=B._legendHighlighted(H)||B._noLegendHighlighted()||B.state.isSelectedLegend,[]),st=0;st<B._points[t].data.length;st++)ut.push([B._points[t].data[st].x instanceof Date?B._points[t].data[st].x.getTime():B._points[t].data[st].x,B._points[t].data[st].y]);if(J){var lt=(null===(s=B._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(B._points[t].lineOptions.lineBorderWidth.toString()):0;lt>0&&P.push(a.createElement("path",{id:ot,key:ot,d:et(ut),fill:"transparent",strokeLinecap:null!==(c=null===(l=B._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(at.toString())+lt,stroke:(null===(f=B._points[t].lineOptions)||void 0===f?void 0:f.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),F.push(a.createElement("path",(0,o.Cl)({id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:at,strokeLinecap:null!==(d=null===(h=B._points[t].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==d?d:"round",strokeDasharray:null===(v=B._points[t].lineOptions)||void 0===v?void 0:v.strokeDasharray,onMouseMove:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOver:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOut:B._handleMouseOut},B._getClickHandler(B._points[t].onLineClick),{opacity:1})))}else F.push(a.createElement("path",{id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!1,stroke:I,strokeWidth:at,strokeLinecap:null!==(g=null===(p=B._points[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==g?g:"round",strokeDasharray:null===(m=B._points[t].lineOptions)||void 0===m?void 0:m.strokeDasharray,opacity:.1}));var ct=null!==B.state.activeLine&&B.state.activeLine===t;_.push(a.createElement("circle",{id:"".concat(B._staticHighlightCircle,"_").concat(t),key:"".concat(B._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:R.semanticColors.bodyBackground,strokeWidth:4,stroke:I,visibility:ct?"visibility":"hidden",onMouseMove:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOver:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOut:B._handleMouseOut}))}else if(!B.props.optimizeLargeData)for(var ft=function(n){var i=B._checkInGap(n,nt,tt),e=i.isInGap;tt=i.gapIndex;var r="".concat(B._lineId,"_").concat(t,"_").concat(n),u="".concat(B._borderId,"_").concat(t,"_").concat(n),s="".concat(B._circleId,"_").concat(t,"_").concat(n),l=B._points[t].data[n-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=B._points[t].data[n],p=v.x,g=v.y,m=B._getPath(B._xAxisScale(c),j(f),s,n,!1,B._points[t].index),O=(null===(y=B._points[t].lineOptions)||void 0===y?void 0:y.strokeWidth)||B.props.strokeWidth||4,$=B._legendHighlighted(H)||B._noLegendHighlighted()||B.state.isSelectedLegend,X=B._points[t].hideNonActiveDots&&W!==s,G=B._points[t].data[n-1].markerSize;if(_.push("scatter"===B.props.lineMode?a.createElement("circle",(0,o.Cl)({id:s,key:s,r:G?G*Y/E:4,cx:B._xAxisScale(c),cy:j(f),"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseMove:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:B._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n-1)})):a.createElement("path",(0,o.Cl)({id:s,key:s,d:m,"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseMove:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:B._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n-1)}))),n+1===B._points[t].data.length){var q="".concat(s).concat(n,"L"),U="".concat(s).concat(n,"D"),Z=B._points[t].hideNonActiveDots&&W!==q;m=B._getPath(B._xAxisScale(p),j(g),q,n,!0,B._points[t].index);var K=B._points[t].data[n],J=K.xAxisCalloutData,Q=K.xAxisCalloutAccessibilityData;G=B._points[t].data[n].markerSize,_.push(a.createElement(a.Fragment,{key:"".concat(q,"_container")},"scatter"===B.props.lineMode?a.createElement("circle",(0,o.Cl)({id:q,key:q,r:G?G*Y/E:4,cx:B._xAxisScale(p),cy:j(g),"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseMove:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:B._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n)})):a.createElement("path",(0,o.Cl)({id:q,key:q,d:m,"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseMove:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:B._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n)})),a.createElement("circle",{id:U,key:U,r:8,cx:B._xAxisScale(p),cy:j(g),opacity:0,width:0,onMouseOver:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseMove:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseOut:B._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:B._handleMouseOut})))}if("scatter"!==B.props.lineMode)if($){if(!e){var it=(null===(b=B._points[t].lineOptions)||void 0===b?void 0:b.lineBorderWidth)?Number.parseFloat(B._points[t].lineOptions.lineBorderWidth.toString()):0;it>0&&P.push(a.createElement("line",{id:u,key:u,x1:B._xAxisScale(c),y1:j(f),x2:B._xAxisScale(p),y2:j(g),strokeLinecap:null!==(w=null===(x=B._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeWidth:Number.parseFloat(O.toString())+it,stroke:(null===(C=B._points[t].lineOptions)||void 0===C?void 0:C.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),F.push(a.createElement("line",(0,o.Cl)({id:r,key:r,x1:B._xAxisScale(c),y1:j(f),x2:B._xAxisScale(p),y2:j(g),strokeWidth:O,ref:function(t){T._refCallback(t,r)},onMouseOver:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseMove:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseOut:B._handleMouseOut,stroke:I,strokeLinecap:null!==(k=null===(M=B._points[t].lineOptions)||void 0===M?void 0:M.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(S=B._points[t].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(A=B._points[t].lineOptions)||void 0===A?void 0:A.strokeDashoffset,opacity:1},B._getClickHandler(B._points[t].onLineClick))))}}else e||F.push(a.createElement("line",{id:r,key:r,x1:B._xAxisScale(c),y1:j(f),x2:B._xAxisScale(p),y2:j(g),strokeWidth:O,stroke:I,strokeLinecap:null!==(V=null===(L=B._points[t].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==V?V:"round",strokeDasharray:null===(D=B._points[t].lineOptions)||void 0===D?void 0:D.strokeDasharray,strokeDashoffset:null===(N=B._points[t].lineOptions)||void 0===N?void 0:N.strokeDashoffset,opacity:.1}))},ht=1;ht<B._points[t].data.length;ht++)ft(ht);O.push(a.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(H,", line ").concat(t+1," of ").concat(B._points.length," with ").concat(B._points[t].data.length," data points.")},P,F,_))},B=this,P=this._points.length-1;P>=0;P--)F(P);var _=lh(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var H=Yu(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var I={tooltipCls:_.tooltip,id:this._tooltipId,axis:H};H&&ds(I)}return O},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0,useUTC:!0},n}(a.Component),hh=(0,r.I)(fh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:t.theme.semanticColors.bodyText})}}));function dh(t,n){if((r=t.length)>1)for(var i,e,r,o=1,a=t[n[0]],u=a.length;o<r;++o)for(e=a,a=t[n[o]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function vh(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function ph(t,n){return t[n]}function gh(t){const n=[];return n.key=t,n}function mh(t){return t<0?-1:1}function yh(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),a=(i-t._y1)/(r||e<0&&-0),u=(o*r+a*e)/(e+r);return(mh(o)+mh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function bh(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function xh(t,n,i){var e=t._x0,r=t._y0,o=t._x1,a=t._y1,u=(o-e)/3;t._context.bezierCurveTo(e+u,r+u*n,o-u,a-u*i,o,a)}function wh(t){this._context=t}function Ch(t){this._context=t}function Mh(t){return new wh(t)}function kh(t,n,i){var e=null,r=Pc(!0),o=null,a=qu,u=null,s=of(l);function l(l){var c,f,h,d,v,p=(l=Bc(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(u=a(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=c-1;h>=f;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),u.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return u=null,v+""||null}function c(){return Pf().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Ff:Pc(+t),n="function"==typeof n?n:Pc(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Bf:Pc(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Pc(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Pc(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:Pc(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}wh.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:xh(this,this._t0,bh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,xh(this,bh(this,i=yh(this,t,n)),i);break;default:xh(this,this._t0,i=yh(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new Ch(t)}.prototype=Object.create(wh.prototype)).point=function(t,n){wh.prototype.point.call(this,n,t)},Ch.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var Sh,Ah=(0,u.Z)(),Lh=ui((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Sh||(Sh={}));var Vh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._containsSecondaryYAxis=!1,e._hasDuplicateXValues=!1,e._hasMissingXValues=!1,e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u){return o===Ru.NumericAxis?ps(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e._xAxisRectScale.invert(Ef(t)[0],document.getElementById(e._rectId)),r=Lh(n[0].data,i),a=n[0].data[r-1],u=n[0].data[r],s=null,l=null,c=n[0].data.length>0?Ss(n[0].data[0].x,!0):null;if(void 0===a&&void 0!==u)s=u.x,l=r;else if(void 0!==a&&void 0===u)s=a.x,l=r-1;else{var f=void 0,h=void 0,d=void 0;switch(c){case Ru.DateAxis:f=new Date(i).getTime(),h=a.x.getTime(),d=u.x.getTime(),s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1;break;case Ru.NumericAxis:f=i,h=a.x,d=u.x,s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1}}var v=n[0].data[l],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,m=s instanceof Date?Es(s,e.props.useUTC):s,b=s instanceof Date?s.getTime():s,x=y(e._calloutPoints,(function(t){return t.x===b})),w=c===Ru.DateAxis?s.getTime():s,C=e.state.nearestCircleToHighlight!==w;if(x&&C&&!e.state.isShowCalloutPending){var M=e._getFilteredLegendValues(x.values);e.setState({nearestCircleToHighlight:w,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(s),displayOfLine:Sh.show,isCircleClicked:!1,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),YValueHover:M,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),hoverXValue:p||m,xAxisCalloutAccessibilityData:g,activePoint:""})}x||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,displayOfLine:Sh.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Sh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getDataPoints=function(t,n){var i,r=[],o=0;if(e._shouldFillToZeroY())t.forEach((function(t,i){var e=[];n.forEach((function(n){e.push({values:[0,n[t]],xVal:n.xVal}),n[t]>o&&(o=n[t])})),r.push(e)}));else{var a=function(){var t=Pc([]),n=vh,i=dh,e=ph;function r(r){var o,a,u=Array.from(t.apply(this,arguments),gh),s=u.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(u[o][l]=[0,+e(t,u[o].key,l,r)]).data=t;for(o=0,a=Bc(n(u));o<s;++o)u[a[o]].index=o;return i(u,a),u}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Pc(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Pc(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?vh:"function"==typeof t?t:Pc(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?dh:t,r):i},r}().keys(t)(n);o=ri(a[a.length-1],(function(t){return t[1]})),a.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),r.push(n)}))}return e._isMultiStackChart=!!((null===(i=e.props.legendProps)||void 0===i?void 0:i.selectedLegends)?(null==r?void 0:r.length)>=1:(null==r?void 0:r.length)>1),{renderData:r,maxOfYVal:e._containsSecondaryYAxis?xs(e.props.data.lineChartData).endValue:o}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization&&!e._hasDuplicateXValues){var n=[],i=[],r=[],o=[],a=cs(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var u={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;u[n]?u[n].push(t):u[n]=[t]})),Object.keys(u).forEach((function(t){var n=u[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=e._getDataPoints(l,i);return{colors:r,opacity:o,keys:l,data:h,calloutPoints:a}}var d=[],v=[],p=[],g=[],m=(a=cs(t),h={},l=[],0);if(t&&t.length&&t.forEach((function(t){e._hasDuplicateXValues&&!t.legend&&(t.legend="chart".concat(m),++m),t.data.forEach((function(n){n.legend=t.legend})),p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)})),e._hasDuplicateXValues){var y=e._createDatasetForXCoordinateWithMultipleYValues(d);h=e._getDataPoints(y.keys,y.filteredDataSet)}else{for(var b=d,x=function(){var t=b[0].x instanceof Date?b[0].x.toLocaleString():b[0].x,n=b.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=b[0].x instanceof Date?b[0].x.toLocaleString():b[0].x;b=b.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};b.length;)x();for(s=v&&Object.keys(v[0]).length,c=0;c<s-1;c++)f="chart".concat(c),l.push(f);h=e._getDataPoints(l,v)}return{colors:p,opacity:g,keys:l,data:h,calloutPoints:a}},e._createDatasetForXCoordinateWithMultipleYValues=function(t){var n=[],i={};t.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;i[n]||(i[n]=[]),i[n].push(t)})),Object.keys(i).forEach((function(t){var e=i[t];e.forEach((function(t,i){var r={xVal:e[0].x};r[t.legend?t.legend:"chart".concat(i)]=t.y,n.push(r)}))}));var e=[];n.forEach((function(t){Object.keys(t).forEach((function(t){"xVal"===t||e.includes(t)||e.push(t)}))})),n.forEach((function(t){e.forEach((function(n){t[n]||(t[n]=0)}))}));var r=n.filter((function(t){return e.some((function(n){return 0!==t[n]}))}));return{keys:Array.from(new Set(r.flatMap((function(t){return Object.keys(t).filter((function(t){return"xVal"!==t}))})))),filteredDataSet:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getGraphData=function(t,n,i,r,o,a,u){e._chart=e._drawGraph(i,t,n,u,o)},e._getLegendData=function(t){var n=[];return t.forEach((function(t){var i=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===i})).length>0)){var r={title:t.legend,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};n.push(r)}})),a.createElement(Fc,(0,o.Cl)({legends:n,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},e._onDataPointClick=function(t){t&&t(),e.setState({isCircleClicked:!0})},e._getOpacity=function(t){return e._isMultiStackChart?e._legendHighlighted(t)||e._noLegendHighlighted()?.7:.1:.7},e._getLineOpacity=function(t){if(e._isMultiStackChart){var n=.3;return e.state.isCalloutVisible&&(n=1),e._noLegendHighlighted()||(n=e._legendHighlighted(t)?0:.1),n}return 1},e._updateCircleFillColor=function(t,n,i){var r=n;return e.state.nearestCircleToHighlight!==t&&e.state.activePoint!==i||(e._highlightedCircleId=i,e.state.isCircleClicked||(r=e.props.theme.semanticColors.bodyBackground)),r},e._drawGraph=function(t,n,i,r,u){var s,l=e._addDefaultColors(e.props.data.lineChartData),c=e.props.data,f=c.pointOptions,h=c.pointLineOptions,d=[];e._data.forEach((function(t,u){var s,c,f,h,v,p,g,m,y,b,x,w,C=(null===(s=l[u])||void 0===s?void 0:s.useSecondaryYScale)&&r?r:i,M=Rs(null===(f=null===(c=l[u])||void 0===c?void 0:c.lineOptions)||void 0===f?void 0:f.curve,Mh),k=kh().x((function(t){return n(t.xVal)})).y0((function(t){return C(t.values[0])})).y1((function(t){return C(t.values[1])})).curve(M),S=Pf().x((function(t){return n(t.xVal)})).y((function(t){return C(t.values[1])})).curve(M),A=e._shouldFillToZeroY()?.8:e._opacity[u];d.push(a.createElement(a.Fragment,{key:"".concat(u,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:"gradient_".concat(u),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},a.createElement("stop",{offset:"0",stopColor:e._colors[u]}),a.createElement("stop",{offset:"100%",stopColor:"transparent"}))),a.createElement("path",{id:"".concat(u,"-line-").concat(e._uniqueIdForGraph),d:S(t),fill:"transparent",strokeWidth:null!==(p=null===(v=null===(h=l[u])||void 0===h?void 0:h.lineOptions)||void 0===v?void 0:v.strokeWidth)&&void 0!==p?p:3,stroke:e._colors[u],opacity:e._getLineOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,strokeDasharray:null===(m=null===(g=l[u])||void 0===g?void 0:g.lineOptions)||void 0===m?void 0:m.strokeDasharray,strokeDashoffset:null===(b=null===(y=l[u])||void 0===y?void 0:y.lineOptions)||void 0===b?void 0:b.strokeDashoffset,strokeLinecap:null===(w=null===(x=l[u])||void 0===x?void 0:x.lineOptions)||void 0===w?void 0:w.strokeLinecap}),1===t.length?a.createElement("circle",{id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),cx:n(t[0].xVal),cy:C(t[0].values[1]),r:6,stroke:e._colors[u],strokeWidth:3,fill:e._colors[u],opacity:A,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):a.createElement("path",(0,o.Cl)({id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),d:k(t),fill:e.props.enableGradient?"url(#gradient_".concat(u,")"):e._colors[u],opacity:A,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")}))))}));var v=f&&f.r?Number(f.r):8;e._data.forEach((function(t,u){var c;if(l.length!==u){var h=(null===(c=l[u])||void 0===c?void 0:c.useSecondaryYScale)&&r?r:i;e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,i){var r=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===r){var c="".concat(e._circleId,"_").concat(u*e._data[0].length+i);s=l[u].color;var p=l[u].legend;d.push(a.createElement("circle",(0,o.Cl)({key:c,id:c,cx:n(t.xVal),cy:h(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(r,s,c),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e._getOnClickHandler(l,u,i),Fs(f),{r:e._getCircleRadius(r,v,c,p)})))}})):d.push(a.createElement("g",{key:"".concat(u,"-dots-").concat(e._uniqueIdForGraph),clipPath:"url(#clip)",role:"region","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")},t.map((function(t,i){var r="".concat(e._circleId,"_").concat(u*e._data[0].length+i),c=t.xVal instanceof Date?t.xVal.getTime():t.xVal;s=l[u].color;var d=l[u].legend;return a.createElement("circle",(0,o.Cl)({key:r,id:r,"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),cx:n(t.xVal),cy:h(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(c,s,r),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e._getOnClickHandler(l,u,i),{onFocus:function(){return e._handleFocus(u,i,r)},onBlur:e._handleBlur},Fs(f),{r:e._getCircleRadius(c,v,r,d),role:"img","aria-label":!e._hasDuplicateXValues&&!e._hasMissingXValues&&e._getAriaLabel(u,i)||void 0}))}))))}})),d.push(a.createElement("line",(0,o.Cl)({id:e._verticalLineId,key:e._verticalLineId,x1:e.state.lineXValue,y1:0,x2:e.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:e.state.displayOfLine},Fs(h))));var p=Ah(e.props.styles,{theme:e.props.theme});if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var g=Yu(u).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:p.tooltip,id:e._tooltipId,axis:g};g&&ds(m)}return d},e._getOnClickHandler=function(t,n,i){return!e._hasDuplicateXValues&&!e._hasMissingXValues&&{onClick:e._onDataPointClick.bind(e,t[n].data[i].onDataPointClick)}},e._getCircleRadius=function(t,n,i,r){var o=e.state,a=o.isCircleClicked,u=o.nearestCircleToHighlight,s=o.activePoint;return e._noLegendHighlighted()||e._legendHighlighted(r)?a&&u===t?1:u===t||s===i?n:0:0},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){if(e._hasMissingXValues){var n=new Set;t&&t.forEach((function(t){t.data.forEach((function(t){var i=t.x instanceof Date?t.x.toLocaleString():t.x;n.add(i)}))})),t&&t.forEach((function(t){n.forEach((function(n){t.data.find((function(t){return t.x instanceof Date?t.x.toLocaleString()===n:t.x===n}))||t.data.push({x:"string"==typeof n?new Date(n):n,y:0,legend:t.legend})})),t.data.sort((function(t,n){var i=t.x instanceof Date?t.x.getTime():t.x,e=n.x instanceof Date?n.x.getTime():n.x;return i<e?-1:i>e?1:0}))}))}return t?t.map((function(t,n){var i,r,a;return a=void 0===t.color?Sf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Af(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],a=r.x,u=r.y,s=r.xAxisCalloutData,l=a instanceof Date?Es(a,e.props.useUTC):a,c=a instanceof Date?a.getTime():a,f=e._calloutPoints.find((function(t){return t.x===c}));f.values=f.values.filter((function(t){return t.y===u}));var h=e._getFilteredLegendValues(f.values);e.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:h,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),activePoint:i})},e._getFilteredLegendValues=function(t){return e._noLegendHighlighted()?t:t.filter((function(t){return e._legendHighlighted(t.legend)}))},e._handleBlur=function(){e.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},e._getChartTitle=function(){var t=e.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Area chart with ".concat((null==i?void 0:i.length)||0," data series. ")},Qs(e),e._createSet=(0,un.J9)(e._createDataSet),e.state={selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Sh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},e._hasMissingXValues=e._containsMissingXValues(),e._uniqueIdForGraph=p("areaChart_"),e._verticalLineId=p("verticalLine_"),e._circleId=p("circle"),e._rectId=p("rectangle"),e._tooltipId=p("AreaChartTooltipID"),e._enableComputationOptimization=!0,e._firstRenderOptimization=!0,e._emptyChartId=p("_AreaChart_empty"),e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data.lineChartData,i=this._addDefaultColors(n);this._hasDuplicateXValues=this._xCoordinateContainsMultipleY(),this._containsSecondaryYAxis=!!this.props.secondaryYScaleOptions&&i.some((function(t){return t.useSecondaryYScale}));var e=this._createSet(i),r=e.colors,u=e.opacity,s=e.data,l=e.calloutPoints;this._calloutPoints=l;var c=vs(i);this._colors=r,this._opacity=u,this._data=s.renderData;var f=this._getLegendData(i),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},d=(0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible&&!this._hasDuplicateXValues&&!this._hasMissingXValues,directionalHint:3,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 a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:i,chartType:Wu.AreaChart,calloutProps:d,legendBars:f,createYAxis:us,isCalloutForStack:!0,xAxisType:c?Ru.DateAxis:Ru.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ls,getmargins:this._getMargins,getMinMaxOfYAxis:xs,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){t._xAxisRectScale=n.xScale;var i=t._xAxisRectScale.ticks(),e=t._xAxisRectScale(i[i.length-1]),r=n.containerHeight-t.margins.top;return a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("rect",{id:t._rectId,width:e,height:r,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),a.createElement("g",null,t._chart))}}))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?Es(r.x,this.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n.prototype._xCoordinateContainsMultipleY=function(){var t=this.props.data.lineChartData;if(!t)return!1;for(var n=0,i=t;n<i.length;n++)for(var e={},r=0,o=i[n].data;r<o.length;r++){var a=o[r],u=a.x instanceof Date?a.x.toLocaleString():a.x;if(e[u]||(e[u]=[]),e[u].push(a.y),e[u].length>1)return!0}return!1},n.prototype._containsMissingXValues=function(){var t=this.props.data.lineChartData;if(!t)return!1;var n=new Set;t.forEach((function(t){t.data.forEach((function(t){var i=t.x instanceof Date?t.x.toLocaleString():t.x;n.add(i)}))}));var i=!1;return t.forEach((function(t){n.forEach((function(n){t.data.find((function(t){return t.x instanceof Date?t.x.toLocaleString()===n:t.x===n}))||(i=!0)}))})),i},n.prototype._shouldFillToZeroY=function(){return"tozeroy"===this.props.mode||this._containsSecondaryYAxis},n.defaultProps={useUTC:!0},n}(a.Component),Dh=(0,r.I)(Vh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:t.theme.semanticColors.bodyText})}})),Nh=function(t,n){var i,e=t.color;return{arcRoot:{fill:e},arcRootFocussed:{fill:e,stroke:(null==n?void 0:n.palette.black)||It.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.semanticColors.bodyText)||It.bp.black,outline:"none",selectors:(i={},i[It.up]={fill:"CanvasText"},i)}}},Th=function(t){function n(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Eh(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=p("piechart_arc"),i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return Eh(t),null},n.prototype.render=function(){var t,n=this,i=this.props.arc,e=(0,u.Z)()((function(t){return Nh(t,n.props.theme)}),(0,o.Cl)({},this.props));return a.createElement("path",{d:i(this.props.data),className:"".concat(this.state.isArcFocused?e.arcRootFocussed:e.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:hf()},n}(a.Component),Oh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._arcId=p("piechart_arc"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var n,i,e=this,r=this.props,o=r.data,s=r.culture,l=hf().centroid({endAngle:(null==o?void 0:o.endAngle)||0,startAngle:(null==o?void 0:o.startAngle)||0,padAngle:null==o?void 0:o.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(i=this.props)||void 0===i?void 0:i.outerRadius)||4}),c=l[0],f=l[1],h=(0,u.Z)()((function(t){return Nh(t,e.props.theme)})),d=(((null==o?void 0:o.startAngle)||0)+((null==o?void 0:o.endAngle)||0))/2,v="".concat(null==o?void 0:o.data.x,"-").concat((0,_n.U)(null==o?void 0:o.data.y,s));return a.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),a.createElement(Wf,{content:v,textProps:{x:c+(d>Math.PI?-10:10),y:f+(d>Math.PI/2&&d<3*Math.PI/2?10:-10),dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==o?void 0:o.data.x,"-").concat((0,_n.U)(null==o?void 0:o.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:fs}))},n}(Th);function Eh(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Fh,Bh=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return a.createElement(Oh,{culture:i.props.culture,key:n,data:t,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:"".concat(i.colors(n)),theme:i.props.theme})},i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=n.width,o=n.height,u=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(Sf(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Ta().range(h.map((function(t){return Af(t)})));var d=i(e),v="translate(".concat(r/2,", ").concat(o/2,")");return a.createElement(xl,{direction:zs.domOrder},a.createElement("svg",{width:r,height:o,"aria-label":u},a.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},n.defaultProps={pie:Kc().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(a.Component),Ph=(0,u.Z)(),_h=function(t){function n(n){var i=t.call(this,n)||this;return i._emptyChartId=p("_PieChart_empty"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.data,i=t.width,e=t.height,r=t.colors,o=t.chartTitle,u=this.props,s=u.theme,l=u.className,c=u.styles,f=u.culture;this._classNames=Ph(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root},this.props.chartTitle&&a.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),a.createElement(Bh,{culture:f,width:i+8,height:e+8,outerRadius:h,innerRadius:1,data:n,colors:r,chartTitle:o,theme:s}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(a.Component),Hh=(0,r.I)(_h,(function(t){var n=t.className,i=t.theme,e=t.width+30,r=t.height+10;return{root:[i.fonts.medium,"ms-PieChart",n,{width:e+40}],chart:[{padding:20,width:e,height:r,boxSizing:"content-box"}],chartTitle:[(0,o.Cl)((0,o.Cl)({textAlign:"center"},i.fonts.mediumPlus),{color:i.semanticColors.bodyText})]}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(Fh||(Fh={}));var Ih,Wh=(0,u.Z)(),Rh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._adjustProps=function(){var t=i.props,n=t.theme,e=t.className,r=t.styles,o=t.width,a=t.barHeight;i._classNames=Wh(r,{legendColor:i.state.color,theme:n,width:o,className:e,barHeight:a})},i._getLegendData=function(t,n,e){var r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],u=[];return t.forEach((function(t,e){var o=t.chartData.filter((function(t){return!t.placeHolder}));o.length<3?void 0!==n[e]&&n[e]&&o.forEach((function(t,n){var e,o,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}})):o.forEach((function(t,n){var e,o,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}}))})),a.createElement(Fc,(0,o.Cl)({legends:u,overflowProps:i.props.legendsOverflowProps,focusZonePropsInHoverCard:i.props.focusZonePropsForLegendsInHoverCard,overflowText:i.props.legendsOverflowText},i.props.legendProps))},i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):t.placeHolder?"Remaining, ":"")+"".concat(e,".")},i._computeLongestBarTotalValue=function(){var t=0;return i.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},i.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._onLeave=i._onLeave.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=p("callout"),i.barChartSvgRef=a.createRef(),i._emptyChartId=p("_MSBC_empty"),i._barId=p("_MSBC_rect_"),i._barIdPlaceholderPartToWhole=p("_MSBC_rect_partToWhole_"),i._barIdEmpty=p("_MSBC_rect_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.data,e=n.theme,r=n.culture;this._adjustProps();var u=e.palette,s=this._getLegendData(i,this.props.hideRatio,u),l=this.state.isCalloutVisible;this._classNames=Wh(this.props.styles,{legendColor:this.state.color,theme:e,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=i.map((function(n,i){var e=t._createBarsAndLegends(n,t.props.barHeight,u,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return a.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&a.createElement("div",{className:this._classNames.legendContainer},s),a.createElement(Pn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(js.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:r}))))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,i,e,r,u,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,g=[i.blueLight,i.blue,i.blueMid,i.red,i.black],m=[],y=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),b=this.props.variant===Fh.AbsoluteScale?this._longestBarTotalValue:y,x=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/b*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),x+=i})),this.props.variant===Fh.AbsoluteScale){var w=0===b?0:(b-y)/b*100;w<1&&0!==w?w=1:w>99&&100!==w&&(w=99),x+=w}var C=0!==x?x/(100-d):1,M=0,k=0,S=t.chartData.map((function(t,e){var r,o,l,c,h=t.color?t.color:t.placeHolder?i.neutralLight:g[Math.floor(4*Math.random()+1)],d=h;f.props.enableGradient&&(h=(null===(r=t.gradient)||void 0===r?void 0:r[0])||Zs(e,0,null===(o=f.props.theme)||void 0===o?void 0:o.isInverted)[0],d=(null===(l=t.gradient)||void 0===l?void 0:l[1])||Zs(e,0,null===(c=f.props.theme)||void 0===c?void 0:c.isInverted)[1]);var v=t.data?t.data:0;e>0&&(M+=k),(k=v/b*100?v/b*100:0)<1&&0!==k?k=1/C:k>99&&100!==k?k=99/C:k/=C,m.push(M);var y=f.props.styles,x=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),w=t.placeHolder?f.props.theme.semanticColors.bodyText:h;f._classNames=Wh(y,{theme:f.props.theme,shouldHighlight:x,href:u,variant:f.props.variant,hideLabels:f.props.hideLabels});var S=p("MSBC_Gradient")+"_".concat(s,"_").concat(e);return a.createElement("g",{key:e,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip&&x,onFocus:f._onBarFocus.bind(f,v,w,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,v,w,t),onMouseMove:f._onBarHover.bind(f,v,w,t),onMouseLeave:f._onBarLeave,onClick:u?t.placeHolder?void 0:f._redirectToUrl.bind(f,u):t.onClick},f.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:S},a.createElement("stop",{offset:"0",stopColor:h}),a.createElement("stop",{offset:"100%",stopColor:d}))),a.createElement("rect",{key:e,id:"".concat(f._barId,"-").concat(s,"-").concat(e),x:"".concat(f._isRTL?100-m[e]-k-f.state.barSpacingInPercent*e:m[e]+f.state.barSpacingInPercent*e,"%"),y:0,width:k+"%",height:n,rx:f.props.roundCorners?3:0,fill:f.props.enableGradient?"url(#".concat(S,")"):h}))}));if(this.props.variant!==Fh.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(a.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0}))),0===y&&S.push(a.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=y):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(a.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-k-d:(m[m.length-1]||0)+k+d,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},Ds(L)))}var V=void 0!==e&&e,D=this.props.variant!==Fh.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==Fh.AbsoluteScale&&!V&&1===t.chartData.length,T=function(){return(0,_n.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return a.createElement("div",{className:this._classNames.singleChartRoot},a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&a.createElement(Ol,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),D&&a.createElement("div",(0,o.Cl)({},Ls(t.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},T()),!r&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,_n.U)(y,v))),N&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ls(t.chartDataAccessibilityData,"text",!1)),T()))),a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:this._classNames.chartWrapper},a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(a.Component),zh=(0,r.I)(Rh,(function(t){var n,i=t.className,e=t.width,r=t.barHeight,a=t.shouldHighlight,u=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[u.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:e||"100%"},i],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},u.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:u.palette.neutralPrimary,marginBottom:l===Fh.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:l===Fh.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:It.s.medium,fontWeight:It.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:It.s.medium,color:u.palette.neutralPrimary},placeHolderOnHover:{opacity:a?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:u.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)},chartWrapper:{paddingRight:l!==Fh.AbsoluteScale||c?0:40}}})),jh=(0,u.Z)(),$h=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):t.placeHolder?"Remaining, ":"")+"".concat(e,".")},i.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._refArray=[],i._onLeave=i._onLeave.bind(i),i._refCallback=i._refCallback.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=p("callout"),i._emptyChartId=p("_SBC_empty"),i.barChartSvgRef=a.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,i=t.benchmarkData,e=t.targetData,r=t.hideNumberDisplay,u=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=u||n.chartData.length>2?this.props.barHeight:12;i&&(i.color=i.color||l.neutralTertiary),e&&(e.color=e.color||l.neutralSecondary);var f=this._createBarsAndLegends(n,c,l,i,e),h=!1===r&&!u&&2===n.chartData.length,d=!1===r&&!u&&1===n.chartData.length,v=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;i&&v&&(p=i.data/v*100);var g=0;e&&v&&(g=e.data/v*100);var m=!1===this.props.hideLegend&&(u||n.chartData.length>2);this._classNames=jh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:i?i.color:"",benchmarkRatio:p,targetColor:e?e.color:"",targetRatio:g,showTriangle:!(!i&&!e)});var y=function(){return(0,_n.U)(n.chartData[0].data?n.chartData[0].data:0,s)};return a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&a.createElement(Ol,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&a.createElement("div",(0,o.Cl)({},Ls(n.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,_n.U)(v,s))),d&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ls(n.chartDataAccessibilityData,"text",!1)),y())),(i||e)&&a.createElement("div",{className:this._classNames.benchmarkContainer},i&&a.createElement("div",{className:this._classNames.benchmark,role:"text"}),e&&a.createElement("div",{className:this._classNames.target,role:"text"}))),a.createElement(xl,{direction:zs.horizontal},a.createElement("div",null,a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},a.createElement("g",null,f[0]),a.createElement(Pn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&a.createElement("div",{className:this._classNames.legendContainer},f[1]))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=jh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,i,e,r){var u,s=this,l=(null===(u=t.chartData)||void 0===u?void 0:u.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[i.blueLight,i.blue,i.blueMid,i.red,i.black],h=[],d=[],v=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),g=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/v*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,i){var e,r,o,u,l=t.color?t.color:f[Math.floor(4*Math.random()+1)],c=l;s.props.enableGradient&&(l=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted)[0],c=(null===(o=t.gradient)||void 0===o?void 0:o[1])||Zs(i,0,null===(u=s.props.theme)||void 0===u?void 0:u.isInverted)[1]);var y=t.data?t.data:0,x={title:t.legend,color:l,action:v>0?function(){s._onClick(t.legend)}:void 0,hoverAction:v>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:v>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(x),i>0&&(g+=m),(m=y/v*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(g);var w=s.props.styles,C=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted()),M=t.placeHolder?s.props.theme.semanticColors.bodyText:l;s._classNames=jh(w,{theme:s.props.theme,shouldHighlight:C,href:s.props.href});var k=p("SBC_Gradient")+"_".concat(i);return a.createElement("g",{key:i,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,x.title)},"data-is-focusable":!s.props.hideTooltip&&C,onFocus:s._onBarFocus.bind(s,y,M,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,y,M,t),onMouseMove:s._onBarHover.bind(s,y,M,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:k},a.createElement("stop",{offset:"0",stopColor:l}),a.createElement("stop",{offset:"100%",stopColor:c}))),a.createElement("rect",{key:i,id:p("_SBC_bar"),x:"".concat(s._isRTL?100-d[i]-m-s.state.barSpacingInPercent*i:d[i]+s.state.barSpacingInPercent*i,"%"),y:0,width:m+"%",height:n,rx:s.props.roundCorners?3:0,fill:s.props.enableGradient?"url(#".concat(k,")"):l}))}));this._addLegend(h,e),this._addLegend(h,r);var w=a.createElement(Fc,(0,o.Cl)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===v?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:i.neutralLight)]:x,w]},n.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},n.prototype._generateEmptyBar=function(t,n){return a.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},a.createElement("rect",{key:0,id:p("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(a.Component),Yh=(0,r.I)($h,(function(t){var n,i,e=t.className,r=t.width,a=t.barHeight,u=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:r||"100%",display:"flex",flexDirection:"column"},e],chart:{width:"100%",height:a||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:u?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:It.s.medium,fontWeight:It.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:It.s.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(n={},n[It.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},n)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(i={},i[It.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},i)}}})),Xh=function(t){if(!(t.length<2)){t=t.sort((function(t,n){return t instanceof Date?t.getTime()-n.getTime():t-n}));for(var n=Number.MAX_VALUE,i=1;i<t.length;i++){var e=t[i]instanceof Date?t[i].getTime()-t[i-1].getTime():t[i]-t[i-1];n=Math.min(n,e)}return[n,t[0]instanceof Date?t[t.length-1].getTime()-t[0].getTime():t[t.length-1]-t[0]]}},Gh=function(t,n,i){var e=Xh(t);if(!e||0===e[1])return 16;var r=e[0],o=e[1];return Math.floor(n*r*(1-i)/(o+r*(1-i)))};!function(t){t.show="visibility",t.hide="hidden"}(Ih||(Ih={}));var qh=(0,u.Z)(),Uh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ru.NumericAxis?function(t,n,i,e){var r=ri(t,(function(t){return t.x})),o=ei(t,(function(t){return t.x})),a=n.left,u=i-n.right;return e?{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}:{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}}(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):ys(n,i,r)},e._createLine=function(t,n,i,r,o){var u;void 0===i&&(i=0),void 0===r&&(r=0);var s=e._xAxisType===Ru.StringAxis,l=e._getScales(i,r).xBarScale,c=e._createColors(),f=e.props.theme,h=e.props,d=h.data,v=h.lineLegendColor,g=void 0===v?f.palette.yellow:v,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=Pf().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&o?o(t.y):n(t.y)})),w=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),C=(null===(u=e.props.lineOptions)||void 0===u?void 0:u.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(a.createElement("path",{key:p("_VBC_line_"),id:p("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(a.createElement("path",{key:p("_VBC_line_"),id:p("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var M=y.map((function(i,r){var u,f={refElement:null};return a.createElement("circle",{key:r,id:p("_VBC_point_"),cx:s?l(i.x)+.5*l.bandwidth():t(i.x),cy:i.useSecondaryYScale&&o?o(i.y):n(i.y),onMouseOver:e._legendHighlighted(m)?e._lineHover.bind(e,i.point):e._onBarHover.bind(e,i.point,c(i.y)),onMouseOut:e._onBarLeave,r:e._getCircleVisibilityAndRadius(i.x,m).radius,stroke:g,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(i.x,m).visibility,onClick:null===(u=i.point.lineData)||void 0===u?void 0:u.onClick,"data-is-focusable":e._legendHighlighted(m),ref:function(t){return f.refElement=t},onFocus:e._lineFocus.bind(e,i.point,f),onBlur:e._handleChartMouseLeave})}));return a.createElement(a.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXdataPoint;return e._noLegendHighlighted()?{visibility:i===t?Ih.show:Ih.hide,radius:8}:t===i&&e._legendHighlighted(n)?{visibility:Ih.show,radius:8}:e._legendHighlighted(n)?{visibility:Ih.show,radius:.3}:{visibility:Ih.hide,radius:0}},e._checkForLine=function(){return e.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},e._getMargins=function(t){e.margins=t},e._renderContentForBothLineAndBars=function(t){var n=e._getCalloutContentForLineAndBar(t),i=n.YValueHover,r=n.hoverXValue,u=i.map((function(t,n){return a.createElement(js.ChartHoverCard,(0,o.Cl)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(r||t.data)},{color:t.color,YValue:t.data||t.y,culture:e.props.culture}))}));return a.createElement(a.Fragment,null,u)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return a.createElement(a.Fragment,null,a.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!i&&t.color?t.color:e._createColors()(t.y),culture:e.props.culture}))},e._renderCallout=function(t){return t?e._isHavingLine?e._renderContentForBothLineAndBars(t):e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o){return e._bars=e._xAxisType===Ru.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===Ru.DateAxis?e._createDateBars(i,r,o):e._createStringBars(i,r,o)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForLineAndBar=function(t){var n,i,r,o,a,u=[],s=e.props,l=s.theme,c=s.useSingleColor,f=void 0!==c&&c,h=s.enableGradient,d=e.props,v=d.data,p=d.lineLegendText,g=d.lineLegendColor,m=void 0===g?l.palette.yellow:g,y=v.filter((function(n){return n.x===t.x})),b=v.indexOf(y[0]),x=f?e._createColors()(1):y[0].color?y[0].color:e._createColors()(y[0].y);e._isHavingLine&&void 0!==(null===(n=y[0].lineData)||void 0===n?void 0:n.y)&&(e._legendHighlighted(p)||e._noLegendHighlighted())&&u.push({legend:p,color:m,y:null===(i=y[0].lineData)||void 0===i?void 0:i.y,data:null===(r=y[0].lineData)||void 0===r?void 0:r.yAxisCalloutData,yAxisCalloutData:null===(o=y[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),(e._legendHighlighted(y[0].legend)||e._noLegendHighlighted())&&u.push({legend:y[0].legend,y:y[0].y,color:h?f?Zs(0,0)[0]:(null===(a=y[0].gradient)||void 0===a?void 0:a[0])||Zs(b,0)[0]:x,data:y[0].yAxisCalloutData,yAxisCalloutData:y[0].yAxisCalloutData});var w=t.x instanceof Date?Es(t.x,e.props.useUTC):t.x.toString();return{YValueHover:u,hoverXValue:t.xAxisCalloutData||w}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){var r=e._getCalloutContentForLineAndBar(t),o=r.YValueHover,a=r.hoverXValue;e._refArray.forEach((function(r,u){r.index===t.legend&&n===u&&e.setState({refSelected:r.refElement,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Es(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){var i=e.props.theme,r=e.props,o=r.lineLegendText,a=void 0===o?"":o,u=r.lineLegendColor,s=void 0===u?i.palette.yellow:u;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:a,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Es(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=Ne().domain([e.props.supportNegativeData?e._yMin:0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ru.NumericAxis){var o=ri(e._points,(function(t){return t.x})),a=ei(e._points,(function(t){return t.x}));i=Ne().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),Os(e.props.xAxisInnerPadding,e.props.xAxisPadding)||"histogram"===e.props.mode||i.nice()}else if(e._xAxisType===Ru.DateAxis){var u=ei(e._points,(function(t){return t.x})),s=ri(e._points,(function(t){return t.x}));(i=e.props.useUTC?Sa():ka()).domain([u,s]).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else i=Oa().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding);return{xBarScale:i,yBarScale:r}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,n){var i=e.props,r=i.theme,u=i.useSingleColor,s=e.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?r.palette.yellow:c,h=[],d={};if(t.forEach((function(t,n){var i,o,a,s=u?e._createColors()(1):t.color;if(e.props.enableGradient){var l=Math.max((null===(i=e.props.data)||void 0===i?void 0:i.findIndex((function(n){return n.legend===t.legend})))||0,0);s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(l,0,null==r?void 0:r.isInverted)[0],u&&(s=Zs(0,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0])}d[t.legend]=s})),Object.entries(d).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};h.push(r)})),e._isHavingLine&&l&&f){var v={title:l,color:f,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(l)},onMouseOutAction:function(){e._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(v)}return a.createElement(Fc,(0,o.Cl)({legends:h,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0),e._yMin=Math.min(n[0],e.props.yMinValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t){var n,i,r,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?Es(t.x,e.props.useUTC):t.x,a=t.legend,u=t.yAxisCalloutData||t.y,s=e.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(r=t.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ")+(a?"".concat(a,", "):"")+"".concat(u,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i={};null===(n=e.props.data)||void 0===n||n.forEach((function(t){t.x instanceof Date?i[t.x.getTime()]=t.x:i[t.x]=t.x}));var r=Object.values(i),a=t-(e.margins.left+8)-(e.margins.right+8),u=e._xAxisInnerPadding/(1-e._xAxisInnerPadding),s=r.length+(r.length-1)*u;if(e._xAxisType===Ru.StringAxis){if(Os(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth&&"histogram"!==e.props.mode)e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth),a>=(d=s*e._barWidth)&&(e._domainMargin=8+(a-d)/2);else if(["plotly","histogram"].includes(e.props.mode)&&r.length>1){var l=a/s,c=(a-(d=s*Ns(e.props.barWidth,e.props.maxBarWidth,l,e.props.mode)))/2,f=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var h=hs(r)+20;f=(a-(d=(r.length-e._xAxisInnerPadding)*h))/2}e._domainMargin=8+Math.max(0,Math.min(c,f))}}else{if("histogram"===e.props.mode){var d=s*e.props.maxBarWidth;e._domainMargin+=Math.max(0,(a-d)/2)}e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,Gh(r,a-2*(e._domainMargin-8),e._xAxisInnerPadding),e.props.mode),e._domainMargin+=e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," bars")+(e._isHavingLine?" and 1 line":"")+". "},Qs(e),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},e._isHavingLine=e._checkForLine(),e._calloutId=p("callout"),e._tooltipId=p("VCTooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?Ss(e.props.data[0].x,!0):Ru.StringAxis,e._emptyChartId=p("_VBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(ri(this._points,(function(t){return t.y})),this.props.yMaxValue||0),this._yMin=Math.min(ei(this._points,(function(t){return t.y})),this.props.yMinValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=qh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),Ls(this.state.callOutAccessibilityData)),e={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,supportNegativeData:this.props.supportNegativeData,chartType:Wu.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:us,calloutProps:i,tickParams:e},this._isHavingLine&&(this._noLegendHighlighted()||this._getHighlightedLegend().length>1)&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:zs.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:ls,getmargins:this._getMargins,getMinMaxOfYAxis:ws,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ru.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Os(this.props.xAxisInnerPadding,this.props.xAxisPadding)&&"histogram"!==this.props.mode,children:function(n){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),t._isHavingLine&&a.createElement("g",null,t._createLine(n.xScale,n.yScalePrimary,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Ns(this.props.barWidth,this.props.maxBarWidth,void 0,this.props.mode);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine(),this._xAxisInnerPadding=Ts(this.props.xAxisInnerPadding,this.props.xAxisPadding,"histogram"===this.props.mode?0:this._xAxisType===Ru.StringAxis?2/3:.5),this._xAxisOuterPadding=Ts(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return Ne().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:this._noLegendHighlighted()||this._legendHighlighted(t.legend),dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Es(t.x,this.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:this._noLegendHighlighted()||this._legendHighlighted(t.legend)?t.x:null,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._calculateMinBarHeight=function(t,n,i,e){var r=n<0?Math.abs(t-i):Math.max(Math.abs(n-i),Math.abs(t-i));return Math.ceil(e(r)/100)},n.prototype._createNumericBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,g,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=qh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[1]),e._points[i].color=S);var L=p("VBC_Gradient")+"_".concat(i,"_").concat(S);return a.createElement("g",{key:"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:A}))),a.createElement("rect",{id:p("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=Yu(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:d};d&&ds(v)}return h},n.prototype._createStringBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,g,m=e._legendHighlighted(n.legend)||e._noLegendHighlighted();e._classNames=qh(e.props.styles,{theme:e.props.theme,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x),M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f);e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,s.bandwidth(),e.props.mode);var S=n.color?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[1]),e._points[i].color=S);var L=p("VBC_Gradient")+"_".concat(i,"_").concat(S);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i),transform:"translate(".concat(.5*(s.bandwidth()-e._barWidth),", 0)")},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:A}))),a.createElement("rect",{id:p("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,height:w,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip&&m,onFocus:e._onBarFocus.bind(e,n,i,S),fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=Yu(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:d,showTooltip:this.props.showXAxisLablesTooltip};d&&ds(v)}return h},n.prototype._createDateBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,g,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=qh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[1]),e._points[i].color=S);var L=p("VBC_Gradient")+"_".concat(i,"_").concat(S);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:A}))),a.createElement("rect",{id:p("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=Yu(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:d};d&&ds(v)}return h},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._renderBarLabel=function(t,n,i,e,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(e)&&!this._noLegendHighlighted()?null:a.createElement("text",{x:t+this._barWidth/2,y:r?n+12:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},Ds(i))},n.prototype._isChartEmpty=function(){return 0===this._points.length||this._points.every((function(t){return 0===t.y}))&&!this._isHavingLine},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(a.Component),Zh=(0,r.I)(Uh,(function(t){var n,i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,o.Cl)((0,o.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:e.semanticColors.bodyText}),barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:e.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}})),Kh=(0,u.Z)(),Jh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.Y_ORIGIN=0,e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._toFocusWholeStack=function(t){var n=e.props.isCalloutForStack,i=void 0!==n&&n;return t?1!==e._getHighlightedLegend().length:i},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ru.NumericAxis?function(t,n,i,e){var r=ei(t,(function(t){return t.x})),o=ri(t,(function(t){return t.x})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):ys(n,i,r)},e._getFormattedLineData=function(t){var n=[],i={};return t.forEach((function(t,i){t.lineData&&t.lineData.forEach((function(e){n.push((0,o.Cl)((0,o.Cl)({},e),{index:i,xItem:t}))}))})),n.forEach((function(t){i[t.legend]?i[t.legend].push(t):i[t.legend]=[t]})),i},e._getLineLegends=function(t){var n=e._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},e._createLines=function(t,n,i,r,u){var s,l=e._getFormattedLineData(e.props.data),c=[],f=[],h=[],d=e.props.theme,v=(null===(s=e.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0,p=e._xAxisType!==Ru.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(i,r){for(var o,s,h,g,m,y=e._isLegendHighlighted(i)||e._noLegendHighlighted(),b=1;b<l[i].length;b++){var x=t(l[i][b-1].xItem.xAxisPoint),w=l[i][b-1].useSecondaryYScale&&l[i][b].useSecondaryYScale&&u,C=w?u(l[i][b-1].y):n(l[i][b-1].y),M=t(l[i][b].xItem.xAxisPoint),k=w?u(l[i][b].y):n(l[i][b].y);v>0&&f.push(a.createElement("line",{key:"".concat(r,"-").concat(b,"-BorderLine"),x1:x,y1:C,x2:M,y2:k,opacity:y?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(a.createElement("line",{key:"".concat(r,"-").concat(b,"-line"),x1:x,y1:C,x2:M,y2:k,opacity:y?1:.1,strokeWidth:null!==(s=null===(o=l[i][0].lineOptions)||void 0===o?void 0:o.strokeWidth)&&void 0!==s?s:3,strokeLinecap:null!==(g=null===(h=l[i][0].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==g?g:"round",strokeDasharray:null===(m=l[i][0].lineOptions)||void 0===m?void 0:m.strokeDasharray,stroke:l[i][b].color,transform:"translate(".concat(p,", 0)"),onMouseOver:e._lineHover.bind(e,l[i][b-1]),onMouseLeave:e._handleMouseOut}))}})),Object.keys(l).forEach((function(i,r){l[i].forEach((function(s,l){var c={refElement:null},f=0===s.xItem.chartData.filter((function(t){return e._noLegendHighlighted()||e._isLegendHighlighted(t.legend)})).length;h.push(a.createElement("circle",(0,o.Cl)({key:"".concat(r,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&u?u(s.y):n(s.y),onMouseOver:e._lineHover.bind(e,s),onMouseLeave:e._handleMouseOut,r:e._getCircleOpacityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,opacity:e._getCircleOpacityAndRadius(s.xItem.xAxisPoint,s.legend).opacity,transform:"translate(".concat(p,", 0)"),ref:function(t){return c.refElement=t}},f&&(e._noLegendHighlighted()||e._isLegendHighlighted(i))?{"data-is-focusable":!e.props.hideTooltip,onFocus:e._lineFocus.bind(e,s,c),onBlur:e._handleMouseOut,role:"img","aria-label":e._getAriaLabel(s.xItem,s,!0)}:{})))}))})),a.createElement(a.Fragment,null,f,c,h)},e._getCircleOpacityAndRadius=function(t,n){var i=e.state.activeXAxisDataPoint;return e._noLegendHighlighted()?{opacity:i===t?1:0,radius:8}:t===i&&e._isLegendHighlighted(n)?{opacity:1,radius:8}:e._isLegendHighlighted(n)?{opacity:1,radius:.3}:{opacity:0,radius:0}},e._getMargins=function(t){e.margins=t},e._getCustomizedCallout=function(){var t=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint&&!t?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){1===e._getHighlightedLegend().length?(e._noLegendHighlighted()||e._isLegendHighlighted(t.legend))&&e.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color}):e._onStackHoverFocus(t.xItem,n)},e._handleMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},e._createBar=function(t,n,i,r){var u=e.props,s=u.barCornerRadius,l=void 0===s?0:s,c=u.barMinimumHeight,f=void 0===c?0:c,h=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=e._toFocusWholeStack(h);e._xAxisType===Ru.StringAxis&&(e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(r,u){var s=t((e._xAxisType===Ru.NumericAxis||(e._xAxisType,Ru.DateAxis),r.xAxisPoint)),c=e._xAxisType!==Ru.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,h=0,v=r.chartData.filter((function(t){return 0!==t.data}));if(v.length){var g=e._getBarGapAndScale(v,n),m=g.gapHeight,y=g.heightValueScale,b=g.adjustedTotalHeight;if(!(y<0)){var x=i-e.margins.bottom-n(e.Y_ORIGIN),w=x,C=x,M=0,k=0,S=v.map((function(t,n){var i,g,x,S,A=t.color?t.color:e._colors[n],L=A;e.props.enableGradient&&(A=(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[0],L=(null===(x=t.gradient)||void 0===x?void 0:x[1])||Zs(n,0,null===(S=e.props.theme)||void 0===S?void 0:S.isInverted)[1],r.chartData[n].color=A);var V={},D=!(!e._isLegendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=Kh(e.props.styles,{theme:e.props.theme,shouldHighlight:D,href:e.props.href});var N=!d&&D&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(r,t),onMouseOver:e._onRectHover.bind(e,r.xAxisPoint,t,A),onMouseMove:e._onRectHover.bind(e,r.xAxisPoint,t,A),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,r.xAxisPoint,A,V),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},T=Math.abs(y*t.data),O=Math.max(y*b/100,f);T<O&&(T=O);var E=n?m:0;t.data>=e.Y_ORIGIN?M=w-=T+E:C=(M=C+E)+T,h+=t.data,k=n===v.length-1?T:0;var F=p("VSBC_Gradient")+"_".concat(u,"_").concat(n);return l&&T>l&&n===v.length-1?a.createElement(a.Fragment,{key:n+u+"".concat(d)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:F,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("path",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(s," ").concat(M+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(e._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(T-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:e.props.enableGradient?"url(#".concat(F,")"):A,rx:e.props.roundCorners?3:0,ref:function(t){return V.refElement=t},transform:"translate(".concat(c,", 0)")},N))):T<0?a.createElement(a.Fragment,{key:n+u}," "):a.createElement(a.Fragment,{key:n+u},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:F,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("rect",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,x:s,y:M,width:e._barWidth,height:T,fill:e.props.enableGradient?"url(#".concat(F,")"):A,rx:e.props.roundCorners?3:0,ref:function(t){return V.refElement=t}},N,{transform:"translate(".concat(c,", 0)")})))})),A={},L=r.chartData.filter((function(t){return e._noLegendHighlighted()||e._isLegendHighlighted(t.legend)})).length>0,V=d&&L&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(r),onMouseOver:e._onStackHover.bind(e,r),onMouseMove:e._onStackHover.bind(e,r),onMouseLeave:e._handleMouseOut,onFocus:e._onStackFocus.bind(e,r,A),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,r),role:"img"},D=!1,N=0;return e.props.hideLabels||(e._noLegendHighlighted()?(D=!0,N=h):v.forEach((function(t){e._isLegendHighlighted(t.legend)&&(D=!0,N+=t.data)}))),a.createElement("g",{key:u+"".concat(d)},a.createElement("g",(0,o.Cl)({id:"".concat(u,"-singleBar"),ref:function(t){return A.refElement=t}},V),S),!e.props.hideLabels&&e._barWidth>=16&&D&&a.createElement("text",{x:s+e._barWidth/2,y:N>=e.Y_ORIGIN?M-6:M+k+12,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(N),role:"img",transform:"translate(".concat(c,", 0)")},Ds(N)))}}}));if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var g=Yu(r).call(t);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:e._classNames.tooltip,id:e._tooltipId,axis:g};g&&ds(m)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=[Math.min(e.Y_ORIGIN,e._yMin),Math.max(e.Y_ORIGIN,e._yMax)],r=Ne().domain(i).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ru.NumericAxis){var o=ri(e._dataset,(function(t){return t.x})),a=ei(e._dataset,(function(t){return t.x})),u=Ne().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]);return Os(e.props.xAxisInnerPadding,e.props.xAxisPadding)||u.nice(),{xBarScale:u,yBarScale:r}}if(e._xAxisType===Ru.DateAxis){var s=ei(e._dataset,(function(t){return t.x})),l=ri(e._dataset,(function(t){return t.x})),c=e.props.useUTC?Sa():ka();return c.domain(e._isRtl?[l,s]:[s,l]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:c,yBarScale:r}}return{xBarScale:Oa().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding),yBarScale:r}},e._getGraphData=function(t,n,i,r,o){var a=e._getScales(i,r),u=a.xBarScale,s=a.yBarScale;return e._bars=e._createBar(u,s,i,o)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||e.Y_ORIGIN),e._yMin=Math.min(n[0],e.props.yMinValue||e.Y_ORIGIN)}},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n,i){var r,o,a;if(!n){var u=t.xAxisCalloutData||(t.xAxisPoint instanceof Date?Es(t.xAxisPoint):t.xAxisPoint),s=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return e._noLegendHighlighted()||e._isLegendHighlighted(n)?"".concat(n,", ").concat(i,"."):""})).filter((function(t){return""!==t})).join(" "),l=null===(r=t.lineData)||void 0===r?void 0:r.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return e._noLegendHighlighted()||e._isLegendHighlighted(n)?"".concat(n,", ").concat(i,"."):""})).filter((function(t){return""!==t})).join(" ");return(null===(o=t.stackCallOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(u,". ").concat(s)+(l?" ".concat(l):"")}var c=t.xAxisCalloutData||!i&&n.xAxisCalloutData||(t.xAxisPoint instanceof Date?Es(t.xAxisPoint):t.xAxisPoint),f=n.legend,h=n.yAxisCalloutData||(i?n.data||n.y:n.data);return!i&&(null===(a=n.callOutAccessibilityData)||void 0===a?void 0:a.ariaLabel)||"".concat(c,". ").concat(f,", ").concat(h,".")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i=t-(e.margins.left+8)-(e.margins.right+8),r=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===Ru.StringAxis){if(Os(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth),i>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-a)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Ns(e.props.barWidth,e.props.maxBarWidth,u),l=(i-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=hs(e._xAxisLabels)+20;c=(i-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.xAxisPoint})))||[];e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,Gh(h,i,e._xAxisInnerPadding)),e._domainMargin=8+e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data,r=Object.keys(e._lineObject).length;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," stacked bars")+(r>0?" and ".concat(r," lines"):"")+". "},e._getMinMaxOfYAxis=function(t,n,i){if(!i)return function(t){var n=ri(t,(function(t){return t.y}));return{startValue:ei(t,(function(t){return t.y})),endValue:n}}(t);var r=[];return e.props.data.forEach((function(t){var n;null===(n=t.lineData)||void 0===n||n.forEach((function(t){t.useSecondaryYScale&&r.push(t.y)}))})),{startValue:ei(r),endValue:ri(r)}},Qs(e),e.state={isCalloutVisible:!1,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},e._handleMouseOut=e._handleMouseOut.bind(e),e._calloutId=p("callout"),e._tooltipId=p("VSBCTooltipId_"),e._isChartEmpty()||(e._adjustProps(),e._dataset=e._createDataSetLayer()),e._createLegendsForLine=(0,un.J9)((function(t){return e._getLineLegends(t)})),e._emptyChartId=p("_VSBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),i=this._toFocusWholeStack(n),e=this.props.isCalloutForStack,r=void 0!==e&&e;this._dataset=this._createDataSetLayer();var u=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Kh(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),Ls(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:Wu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:us,tickParams:l,legendBars:u,getMinMaxOfYAxis:this._getMinMaxOfYAxis,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:i,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ls,barwidth:this._barWidth,focusZoneDirection:r||n?zs.horizontal:zs.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ru.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Os(this.props.xAxisInnerPadding,this.props.xAxisPadding),children:function(i){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),a.createElement("g",null,n&&t._createLines(i.xScale,i.yScalePrimary,i.containerHeight,i.containerWidth,i.yScaleSecondary)))}}))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Ns(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=Ss(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=Ts(this.props.xAxisInnerPadding,this.props.xAxisPadding,this._xAxisType===Ru.StringAxis?2/3:.5),this._xAxisOuterPadding=Ts(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},n.prototype._renderCallout=function(t){return t?a.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._getLegendData=function(t,n,i){var e=this;if(this.props.hideLegend)return a.createElement(a.Fragment,null);var r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],s=this.props,l=s.allowHoverOnLegend,c=void 0===l||l,f=s.theme;t.forEach((function(t){t.chartData.forEach((function(n){var i,o,a=n.color?n.color:r[Math.floor(4*Math.random()+1)];if(e.props.enableGradient){var s=Math.max((null===(i=t.chartData)||void 0===i?void 0:i.findIndex((function(t){return t.legend===n.legend})))||0,0);a=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(s,0,null==f?void 0:f.isInverted)[0]}if(!(u.filter((function(t){return t.title===n.legend&&t.color===a})).length>0)){var l={title:n.legend,color:a,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};u.push(l)}}))}));var h=[];i&&i.length>0&&i.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};h.push(n)}));var d=h.concat(u);return a.createElement(Fc,(0,o.Cl)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this),ref:this._legendsRef}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},n.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:this._noLegendHighlighted()||this._isLegendHighlighted(n.legend),calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},n.prototype._onStackHoverFocus=function(t,n){var i,e,r,a=this;this._noLegendHighlighted()||(t=(0,o.Cl)((0,o.Cl)({},t),{chartData:t.chartData.filter((function(t){return a._isLegendHighlighted(t.legend)})),lineData:null===(i=t.lineData)||void 0===i?void 0:i.filter((function(t){return a._isLegendHighlighted(t.legend)}))}));var u=t.lineData,s=void 0!==u&&u.length>0;s&&u.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:t.chartData.length>0||(null!==(r=null===(e=t.lineData)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0,YValueHover:s?(0,o.fX)((0,o.fX)([],u.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?Es(t.xAxisPoint,this.props.useUTC):t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},n.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},n.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+Math.abs(n.data)}),0),a=null!=i?i:Math.abs(n(o)-n(this.Y_ORIGIN)),u=0;t.forEach((function(t){var n=Math.abs(t.data)/o*100;n<1&&0!==n&&(n=1),u+=n}));var s=0!==u?u/100:1,l=r&&t.length-1,c=l&&Math.max(1,Math.min(r,.2*a/l));return{gapHeight:c,heightValueScale:(a-c*l)/(o*s),adjustedTotalHeight:u}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.some((function(t){return t.chartData.length>0||t.lineData&&t.lineData.length>0})))},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(a.Component),Qh=(0,r.I)(Jh,(function(t){var n,i=t.shouldHighlight,e=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1",cursor:e?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:r.semanticColors.bodyText}),barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:r.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}})),td=(0,u.Z)(),nd=.1/.9,id=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._legendColorMap={},e.Y_ORIGIN=0,e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getMinMaxOfYAxis=function(t,n,i){var e=[];return t.forEach((function(t){t.groupSeries.forEach((function(t){!i==!t.useSecondaryYScale&&e.push(t.data)}))})),{startValue:ei(e),endValue:ri(e)}},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ru.NumericAxis||o===Ru.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ys(n,i,r)},e._getGraphData=function(t,n,i,r,o,a,u){var s=e._createX0Scale(r);e._barWidth=Ns(e.props.barwidth,e.props.maxBarWidth,s.bandwidth()/(e._legends.length+(e._legends.length-1)*nd)),e._groupWidth=(e._legends.length+(e._legends.length-1)*nd)*e._barWidth;var l=e._createX1Scale(),c=[];e._datasetForBars.forEach((function(t){c.push(e._buildGraph(t,s,l,n,u,i,o))})),e._groupedVerticalBarGraph=c},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=new Set,i=t.map((function(t){return t.name}));t.forEach((function(t){t.series.forEach((function(t){n.add(t.legend)}))}));var r=e._createDataset(t);return{legends:Array.from(n),xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._onBarHover=function(t,n,i){i.persist(),e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e.setState({refSelected:i,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._onBarFocus=function(t,n,i){e.setState({refSelected:i.currentTarget,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})},e._redirectToUrl=function(t){t&&(window.location.href=t)},e._buildGraph=function(t,n,i,r,o,u,s){var l=[],c=[];if(e._legends.forEach((function(n,u){var s=t[n];if(s){var f=s[0].useSecondaryYScale&&o?o:r,h=i(n)+(i.bandwidth()-e._barWidth)/2,d=e._legendHighlighted(n)||e._noLegendHighlighted(),v=d?"":"0.1",g=p("GVBC_Gradient")+"_".concat(t.indexNum,"_").concat(u),m=s[0].color,y=m;e.props.enableGradient&&(m=s[0].gradient[0],y=s[0].gradient[1],l.push(a.createElement("linearGradient",{key:g,id:g,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:m}),a.createElement("stop",{offset:"100%",stopColor:y}))));var b=0,x=f(e.Y_ORIGIN),w=x,C=x,M=e.Y_ORIGIN;s.forEach((function(n,i){if(n.data){var r=.5*(i>0?2:0),o=Math.max(f(e.Y_ORIGIN)-f(Math.abs(n.data)),1);n.data>=e.Y_ORIGIN?M=w-=o+r:C=(M=C+r)+o,l.push(a.createElement("rect",{key:"".concat(t.indexNum,"-").concat(u,"-").concat(i),className:e._classNames.opacityChangeOnHover,height:o,width:e._barWidth,x:h,y:M,"data-is-focusable":!e.props.hideTooltip&&d,opacity:v,fill:e.props.enableGradient?"url(#".concat(g,")"):m,rx:e.props.roundCorners?3:0,onMouseOver:e._onBarHover.bind(e,n,t),onMouseMove:e._onBarHover.bind(e,n,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,t),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):n.onClick,"aria-label":e._getAriaLabel(n,t.xAxisPoint),role:"img"})),b+=n.data}})),null!==b&&!e.props.hideLabels&&e._barWidth>=16&&d&&c.push(a.createElement("text",{key:"".concat(t.indexNum,"-").concat(u),x:h+e._barWidth/2,y:b>=e.Y_ORIGIN?w-6:C+12,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},Ds(b)))}})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=Yu(s).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var h={tooltipCls:e._classNames.tooltip,id:e._tooltipId,axis:f};f&&ds(h)}return a.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},l,c)},e._createDataset=function(t){var n=[];return t.forEach((function(t,i){var e={},r={};t.series.forEach((function(t){e[t.legend]?(e[t.legend].push((0,o.Cl)({},t)),r[t.legend].data+=t.data):(e[t.legend]=[(0,o.Cl)({},t)],r[t.legend]=(0,o.Cl)({},t))})),e.xAxisPoint=t.name,e.indexNum=i,e.groupSeries=Object.values(r),e.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(e)})),n},e._createX0Scale=function(t){return Oa().domain(e._xAxisLabels).range(e._isRtl?[t-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,t-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding)},e._createX1Scale=function(){return Oa().domain(e._legends).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(){var t=[];return e._legends.forEach((function(n){var i={title:n,color:e._legendColorMap[n][0],hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};t.push(i)})),a.createElement(Fc,(0,o.Cl)({legends:t,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},e._getDomainMargins=function(t){e._domainMargin=8;var n=t-(e.margins.left+8)-(e.margins.right+8),i=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===Ru.StringAxis)if(Os(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){e._barWidth=Ns(e.props.barwidth,e.props.maxBarWidth);var r=(e._legends.length+(e._legends.length-1)*nd)*e._barWidth;n>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r)&&(e._domainMargin=8+(n-a)/2)}else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=n/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)/(e._legends.length+(e._legends.length-1)*nd),s=Ns(e.props.barwidth,e.props.maxBarWidth,u),l=(r=(e._legends.length+(e._legends.length-1)*nd)*s,(n-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r))/2),c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=hs(e._xAxisLabels)+20;c=(n-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Vertical bar chart with ".concat(e._xAxisLabels.length," groups of ").concat(e._legends.length," bars each. ")},e._addDefaultColors=function(t){var n;e._legendColorMap={};var i=0;return null!==(n=null==t?void 0:t.map((function(t){var n,r;return(0,o.Cl)((0,o.Cl)({},t),{series:null!==(r=null===(n=t.series)||void 0===n?void 0:n.map((function(t){var n,r,a,u;if(!e._legendColorMap[t.legend]){var s=t.color?t.color:Sf(i,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted),l=s;if(e.props.enableGradient){var c=Zs(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted);s=(null===(a=t.gradient)||void 0===a?void 0:a[0])||c[0],l=(null===(u=t.gradient)||void 0===u?void 0:u[1])||c[1]}e._legendColorMap[t.legend]=[s,l],i+=1}return(0,o.Cl)((0,o.Cl)((0,o.Cl)({},t),{color:e._legendColorMap[t.legend][0]}),e.props.enableGradient?{gradient:e._legendColorMap[t.legend]}:{})})))&&void 0!==r?r:[]})})))&&void 0!==n?n:[]},Qs(e),e._createSet=(0,un.J9)((function(t){return e._createDataSetOfGVBC(t)})),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},e._calloutId=p("callout"),e._tooltipId=p("GVBCTooltipId_"),e._emptyChartId=p("_GVBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this._addDefaultColors(this.props.data),i=this._createSet(n),e=i.legends,r=i.xAxisLabels,u=i.datasetForBars;this._legends=e,this._xAxisLabels=r,this._datasetForBars=u,this._xAxisType=Ss(n[0].name,!0);var s=this._getLegendData();this._adjustProps();var l=this._getMinMaxOfYAxis(this._datasetForBars).endValue;this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=td(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,o.Cl)((0,o.Cl)((0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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}),Ls(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:Wu.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:us,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:ls,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:zs.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ru.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,ref:this._cartesianChartRef,children:function(){return a.createElement("g",null,t._groupedVerticalBarGraph)}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},n.prototype._adjustProps=function(){this._barWidth=Ns(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=Ts(this.props.xAxisInnerPadding,void 0,2/(2+this._legends.length+(this._legends.length-1)*nd)),this._xAxisOuterPadding=Ts(this.props.xAxisOuterPadding)},n.defaultProps={maxBarWidth:24},n}(a.Component),ed=(0,r.I)(id,(function(t){var n,i=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:i.semanticColors.bodyText}),barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:i.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}})),rd=i(263),od=(0,u.Z)(),ad=function(t){function n(n){var i,e,r=t.call(this,n)||this;return r._rectRefArray={},r.toImage=function(t){var n,i;return Ac(null===(n=r._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=r._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},r._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},r._getDomainNRangeValues=function(t,n,i,e,o,a,u,s,l){return a===Ru.NumericAxis||a===Ru.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ys(r.margins,i,o)},r._getXandY=function(){var t="",n="";return r.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},r._getMargins=function(t){r.margins=t},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,n,i){r._rectRefArray[n]={data:i,refElement:t}},r._onRectFocus=function(t,n){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},r._onRectMouseOver=function(t,n,i){i.persist(),r._calloutAnchorPoint!==n&&(r._calloutAnchorPoint=n,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._getInvertedTextColor=function(t){return t===r.props.theme.semanticColors.bodyText?r.props.theme.semanticColors.bodyBackground:r.props.theme.semanticColors.bodyText},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;r._stringXAxisDataPoints.forEach((function(e){var o,u,s,l,c,f,h,d="x".concat(e,"y").concat(n);if((null===(o=r._dataSet[n][i])||void 0===o?void 0:o.x)===e&&"number"==typeof(null===(u=r._dataSet[n][i])||void 0===u?void 0:u.value)){var v=r._dataSet[n][i],p="",g=r.props.theme.semanticColors.bodyText;r.chartContainer&&(p=_s(r.chartContainer,g)),l=p,c=r._colorScale(v.value),f=Df(Vf(Ei(l))),h=Df(Vf(Ei(c))),(Math.max(f,h)+.05)/(Math.min(f,h)+.05)<3&&(g=r._getInvertedTextColor(g)),s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(v),"data-is-focusable":r._legendHighlighted(v.legend)||r._noLegendHighlighted(),fillOpacity:r._getOpacity(v.legend),transform:"translate(".concat(r._xAxisScale(v.x),", ").concat(r._yAxisScale(v.y),")"),ref:function(t){r._rectRefCallback(t,d,v)},onFocus:r._onRectFocus.bind(r,d,v),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,v),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:r._colorScale(v.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:v.onClick}),a.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")"),fill:g},(0,_n.U)(v.rectText,r.props.culture))),i++}else{var m={x:e,y:n,value:NaN,rectText:"No data available",legend:""};s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(m),"data-is-focusable":r._noLegendHighlighted(),transform:"translate(".concat(r._xAxisScale(m.x),", ").concat(r._yAxisScale(m.y),")"),ref:function(t){r._rectRefCallback(t,d,m)},onFocus:r._onRectFocus.bind(r,d,m),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,m),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:"transparent",width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth()}))}t.push(s)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,i=t.legendProps,e=[];return n.forEach((function(t){var n={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};e.push(n)})),a.createElement(Fc,(0,o.Cl)({},i,{legends:e,ref:r._legendsRef}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return Ne().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===Ru.DateAxis?"".concat(t.getTime()):r._xAxisType===Ru.StringAxis?t:r._xAxisType===Ru.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===zu.DateAxis?"".concat(t.getTime()):r._yAxisType===zu.StringAxis?t:r._yAxisType===zu.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,e,a){var u=[];t.forEach((function(t){t.data.forEach((function(n){u.push((0,o.Cl)((0,o.Cl)({},n),{legend:t.legend}))}))}));var s={},l={},c={};return u.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);c[n]="1",l[i]="1",s[i]?s[i]=(0,o.fX)((0,o.fX)([],s[i],!0),[t],!1):s[i]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return r._xAxisType===Ru.StringAxis?"none"===r.props.sortOrder?0:t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===Ru.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===Ru.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===Ru.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===Ru.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===Ru.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===zu.DateAxis&&(t.y=r._getStringFormattedDate(t.y,e)),r._yAxisType===zu.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===zu.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===zu.DateAxis?s[r._getStringFormattedDate(t,e)]=s[t]:r._yAxisType===zu.NumericAxis?s["".concat(r._getStringFormattedNumber(t,a))]=s[t]:s[r._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:r._getYAxisDataPoints(l),xAxisPoints:r._getXAxisDataPoints(c)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._xAxisType===Ru.DateAxis||r._xAxisType===Ru.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===Ru.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===Ru.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._yAxisType===zu.DateAxis||r._yAxisType===zu.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===zu.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===zu.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),to(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return Ae(n||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var n=r.props.xAxisStringFormatter;return n?n(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var n=r.props.yAxisStringFormatter;return n?n(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,a=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(a?" ".concat(a,"."):"")},r._getChartTitle=function(){var t=r.props.chartTitle,n=r.props.data.reduce((function(t,n){return t+n.data.length}),0);return(t?"".concat(t,". "):"")+"Heat map chart with ".concat(n," data points. ")},Qs(r),r._createSet=(0,un.J9)((function(t,n,i,e,o){return r._createNewDataSet(t,n,i,e,o)})),r.state={selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=p("_HeatMap_empty"),r._cartesianChartRef=a.createRef(),r._legendsRef=a.createRef(),r}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)!==(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&this.setState({selectedLegend:null!==(r=null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegend)&&void 0!==r?r:""})},n.prototype.render=function(){var t=this,n=this._getXandY(),i=n.x,e=n.y;this._xAxisType=Ss(i,!0),this._yAxisType=Ss(e,!1);var r=this.props,u=r.data,s=r.xAxisDateFormatString,l=r.xAxisNumberFormatString,c=r.yAxisDateFormatString,f=r.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(u,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=od(this.props.styles,{theme:this.props.theme});var g=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({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:3,onDismiss:this._closeCallout}),Ls(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,o.Cl)((0,o.Cl)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage}),y={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:u,chartType:Wu.HeatMapChart,xAxisType:Ru.StringAxis,yAxisType:zu.StringAxis,calloutProps:g,createYAxis:us,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:ls,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,getmargins:this._getMargins,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:zs.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,tickParams:y,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScalePrimary,t._createRectangles()}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(a.Component),ud=(0,r.I)(ad,(function(t){return{root:{},text:[t.theme.fonts.medium,{pointerEvents:"none",fontWeight:It.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),sd=/[\{\}]/g,ld=/\{\d+\}/g;function cd(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(ld,(function(t){var n=e[t.replace(sd,"")];return null==n&&(n=""),n}))}function fd(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function hd(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function dd(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function vd(t,n){return n-1-t.height}function pd(t,n){return t.sourceLinks.length?t.depth:n-1}function gd(t){return function(){return t}}function md(t,n){return bd(t.source,n.source)||t.index-n.index}function yd(t,n){return bd(t.target,n.target)||t.index-n.index}function bd(t,n){return t.y0-n.y0}function xd(t){return t.value}function wd(t){return t.index}function Cd(t){return t.nodes}function Md(t){return t.links}function kd(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function Sd({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}function Ad(){let t,n,i,e=0,r=0,o=1,a=1,u=24,s=8,l=wd,c=pd,f=Cd,h=Md,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=kd(e,n)),"object"!=typeof r&&(r=i.target=kd(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(hd(n.sourceLinks,xd),hd(n.targetLinks,xd)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=dd(t,(t=>t.depth))+1,r=(o-e-u)/(i-1),a=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+u,a[t]?a[t].push(n):a[t]=[n]}if(n)for(const t of a)t.sort(n);return a}(i);t=Math.min(s,(a-r)/(dd(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(a-r-(n.length-1)*t)/hd(n,xd)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(a-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}w(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),Sd(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=C(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(bd),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(bd),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,a,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],a=(i-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],a=(o.y1-i)*r;a>1e-6&&(o.y0-=a,o.y1-=a),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(yd);for(const{target:{targetLinks:n}}of t)n.sort(md)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(yd),i.sort(md)}function C(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return Sd(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:gd(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:gd(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(u=+t,v):u},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:gd(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:gd(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],a=+t[1],v):[o-e,a-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],a=+t[1][1],v):[[e,r],[o,a]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class Ld{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}var Vd=(0,u.Z)(),Dd="#757575",Nd=[{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"}];function Td(t){return"number"==typeof t?t:t.nodeId}function Od(t,n){return t[Td(n.source)][Td(n.target)]}var Ed="...";function Fd(t,n){var i;try{return t.text(n),null===(i=t.node())||void 0===i?void 0:i.getComputedTextLength()}finally{t.text(null)}}var Bd,Pd,_d=kh().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new Ld(t,!0)})),Hd=function(t){function n(n){var i=t.call(this,n)||this;return i._isRtl=(0,s.jI)(),i._numColumns=0,i.toImage=function(t){return Ac(i.chartContainer,void 0,i._isRtl,t)},i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;if(!n.selectedState)return t.color;var e=n.selectedNode;return e&&n.selectedNodes.has(t.index)?e.color:e?void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;if(n.selectedState){if(n.selectedNodes.has(t.index)){var e=n.selectedNode;return e?e.borderColor:t.borderColor}return t.borderColor}return t.borderColor},i._calculateChartMinWidth=function(){return i._margins.left+i._margins.right+124*i._numColumns+62*(i._numColumns-1)},Qs(i),i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=p("callout"),i._linkId=p("link"),i._chartId=p("sankeyChart"),i._emptyChartId=p("_SankeyChart_empty"),i._labelTooltipId=p("tooltip"),i._margins={top:36,right:48,bottom:32,left:48},i._computeClassNamesProps=(0,un.J9)((function(t,n,i,e,r,o){return{theme:t,width:e,height:r,pathColor:n,className:i,enableReflow:o}})),i._computeClassNames=(0,un.J9)((function(t,n){return Vd(t,n)})),i._normalizeData=(0,un.J9)((function(t,n,e,r,o){return i._normalizeSankeyData(t,n,e,r,o)})),i._fetchTooltip=(0,un.J9)((function(t){return i._labelTooltipDiv(t)})),i._strings=(0,un.J9)((function(t){var n=(null==t?void 0:t.linkFrom)||"From {0}";return{linkFrom:function(t){return cd(n,t.name)}}}))(n.strings),i._accessibility=(0,un.J9)((function(t){var n=(null==t?void 0:t.linkAriaLabel)||"link from {0} to {1} with weight {2}",e=(null==t?void 0:t.nodeAriaLabel)||"node {0} with weight {1}";return{emptyAriaLabel:(null==t?void 0:t.emptyAriaLabel)||"Graph has no data to display",linkAriaLabel:function(t){return cd(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return cd(e,t.name,i._formatNumber(n))}}}))(n.accessibility),i._nodeAttributes=(0,un.J9)((function(t,n){return i._computeNodeAttributes(t,n)})),i._fetchNodes=function(t,n,e,r){return i._createNodes(t,n,e,r)},i._linkAttributes=(0,un.J9)((function(t,n,i){return function(t,n,i){var e={};return t.forEach((function(t){var r=Td(t.source),o=e[r];o||(o={},e[r]=o),o[Td(t.target)]={reactId:p("link"),from:n(t.source),aria:i(t)}})),e}(t,n,i)})),i._fetchLinks=function(t,n){return i._createLinks(t,n)},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.theme,e=n.className,r=n.styles,u=n.pathColor,s=n.colorsForNodes,l=n.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(i,u,e,c.containerWidth,c.containerHeight,this.props.enableReflow),h=this._computeClassNames(r,f),d=this._normalizeData(this.props.data.SankeyChartData,c.containerWidth,c.containerHeight,s,l),v=d.nodes,p=d.links,g=d.width,m=d.height,y=[];v.sort((function(t,n){return t.x0!==n.x0?t.x0-n.x0:t.y0-n.y0})),v.forEach((function(t,n){y.push({layer:t.layer,type:"node",index:n})})),p.sort((function(t,n){var i=t.source.x0,e=n.source.x0;return i!==e?i-e:t.y0-n.y0})),p.forEach((function(t,n){y.push({layer:t.source.layer,type:"link",index:n})})),y.sort((function(t,n){return t.layer!==n.layer?t.layer-n.layer:t.type>n.type?-1:t.type<n.type?1:0}));var b=this._fetchTooltip(h),x=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),w=this._fetchNodes(h,v,x,b),C=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),M=this._fetchLinks(p,C),k=(0,o.Cl)({isCalloutVisible:c.isCalloutVisible,directionalHint:3,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:h.calloutContentRoot,preventDismissOnLostFocus:!0},this.props.calloutProps);return a.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},a.createElement(xl,{direction:zs.vertical,className:h.chartWrapper},a.createElement("svg",{width:g,height:m,id:this._chartId},y.map((function(t){return"node"===t.type?a.createElement("g",{key:v[t.index].nodeId,className:h.nodes},w[t.index]):a.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},M[t.index])})),k.isCalloutVisible&&a.createElement(Pn,(0,o.Cl)({},k),a.createElement(js.ChartHoverCard,{XValue:k.XValue,YValue:k.YValue,color:k.color,descriptionMessage:k.descriptionMessage?k.descriptionMessage:""})))))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":this._accessibility.emptyAriaLabel})},n.prototype._computeNodeAttributes=function(t,n){var i=this,e={},r=Yu(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=Yu(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var a=Math.max(t.y1-t.y0,0),u=8,s=0,l=t.actualValue;if(a<36){u+=6;var c=Fd(r,i._formatNumber(l));void 0!==c&&(u+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=Fd(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=Fd(t,Ed);return void 0===n?0:n}(t),a="",u=0;u<n.length;u++){a+=n[u],t.text(a);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){a=a.slice(0,-1),a+=Ed;break}}return t.text(null),a}(o,t.name,116,u),h=f.slice(-3)===Ed;e[t.nodeId]={reactId:p("nodeBar"),gElementId:p("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:a,weightOffset:s}})),Xu(".tempText").remove(),e},n.prototype._linkCalloutAttributes=function(t,n){return{selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:this._formatNumber(t.unnormalizedValue),descriptionMessage:n}},n.prototype._normalizeSankeyData=function(t,n,i,e,r){var a=function(t,n,i,e){var r=t.left,o=t.right,a=t.top,u=t.bottom,s=n-o,l=i-u>0?i-u:0;return{sankey:Ad().nodeWidth(124).extent([[r,a],[s-1,l-6]]).nodeAlign(e?vd:pd),height:l,width:s}}(this._margins,n,i,this._isRtl),u=a.sankey,s=a.height,l=a.width,c=function(t){return{nodes:t.nodes.map((function(t){return(0,o.Cl)({},t)})),links:t.links.map((function(t){return(0,o.Cl)({},t)}))}}(t);u(c);var f=function(t){var n={};return t.nodes.forEach((function(t){var i=t.layer;n[i]?n[i].push(t):n[i]=[t]})),n}(c);this._numColumns=Object.keys(f).length;var h,d,v=(h=c.nodes,d={},h.forEach((function(t){d[t.nodeId]=t.value})),d),p=function(t){var n={};return t.forEach((function(t){var i=Td(t.source),e=n[i];e||(e={},n[i]=e),e[Td(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return fd(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,a=.01*e,u=t[r];u.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=a,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&u.forEach((function(t){var e=t.value=t.value/s;!function(t,n,i,e){var r=function(t){var r=Od(e,t);t.unnormalizedValue=r;var o=r/n;t.value=Math.max(i*o,t.value)};t.sourceLinks.forEach(r),t.targetLinks.forEach(r)}(t,n[t.nodeId],e,i)}))}))}(f,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-fd(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(u,s-6,f),u(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=Od(i,t))})),t.nodes.forEach((function(t){t.actualValue=n[t.nodeId]}))}(c,v,p),function(t,n,i){var e,r;n&&i?(e=n,r=i):(e=Nd.map((function(t){return t.fillColor})),r=Nd.map((function(t){return t.borderColor})));var o=0;t.forEach((function(t){t.color||t.borderColor?t.color&&!t.borderColor?t.borderColor="#757575":t.borderColor&&!t.color&&(t.color="#F5F5F5"):(t.color=e[o],t.borderColor=r[o]),o=(o+1)%e.length}))}(c.nodes,e,r),{width:l,height:s,nodes:c.nodes,links:c.links}},n.prototype._labelTooltipDiv=function(t){var n=Yu("#".concat(this._labelTooltipId));return n.empty()&&(n=Yu("body").append("div").attr("id",this._labelTooltipId).attr("class",t.toolTip).style("opacity",0)),n.attr("class",t.toolTip),n},n.prototype._createLinks=function(t,n){var i=this;if(t){var e=this._linkId;return t.map((function(t,r){var o,u,s,l,c=Od(n,t),f=c.reactId,h=c.from,d=c.aria,v=(u=.5*(o=t).width,s=o.y0,l=o.y1,[{x:o.source.x1,y0:s+u,y1:s-u},{x:o.target.x0,y0:l+u,y1:l-u}]),p="".concat(e,"-").concat(r),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return a.createElement("g",{key:p},a.createElement("defs",null,a.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:y.color}),a.createElement("stop",{offset:"100%",stopColor:b.color}))),a.createElement("path",{d:_d(v),id:f,fill:i._fillStreamColors(t,m),stroke:i._fillStreamBorder(t,m),strokeWidth:"2",strokeOpacity:i._getOpacityStreamBorder(t),onMouseOver:function(n){return i._onStreamHover(n,t,h)},onMouseOut:function(){i._onStreamLeave(t)},onFocus:function(n){return i._onFocusLink(n,t,h)},onBlur:i._onBlur,fillOpacity:i._getOpacityStream(t),"data-is-focusable":!0,"aria-label":d,role:"img"}))}))}return[]},n.prototype._createNodes=function(t,n,i,e){var r=this;if(n){var o=this.state,u=this._isRtl?"end":"start";return n.map((function(n,s){var l=i[n.nodeId],c=l.reactId,f=l.gElementId,h=l.height,d=l.trimmed,v=l.name,p=l.weightOffset,g=l.aria,m=h>36,y=n.name,b=n.actualValue,x=n.x0,w=n.x1,C=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(o,n);return a.createElement("g",{key:s,id:f},a.createElement("rect",{x:x,y:C,height:h,width:w-x,fill:r._fillNodeColors(n),id:c,onMouseOver:r._onHover.bind(r,n),onMouseOut:function(){r._onLeave(n)},onFocus:r._onCloseCallout.bind(r),stroke:r._fillNodeBorder(n),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":g,role:"img"}),h>24&&a.createElement("g",{className:t.nodeTextContainer},a.createElement("g",{className:"nodeName"},a.createElement("text",{id:"".concat(c,"-name"),x:x,y:C,dy:"1.2em",dx:"0.4em",textAnchor:u,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:r._showTooltip.bind(r,y,d,e),onMouseOut:r._hideTooltip.bind(r,e)},v)),a.createElement("text",{x:m?x:w-p-8,y:C,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:u,fontWeight:"bold","aria-hidden":"true",fill:M,fontSize:14},b?r._formatNumber(b):b)))}))}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:this._formatNumber(t.actualValue)})}},n.prototype._formatNumber=function(t){return this.props.formatNumberOptions?t.toLocaleString(void 0,this.props.formatNumberOptions):t.toString()},n.prototype._onStreamHover=function(t,n,i){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var e=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(n),r=e.selectedLinks,a=e.selectedNodes;this.setState((0,o.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(a).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:t},this._linkCalloutAttributes(n,i)))}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,n,i){t.persist(),this._onCloseCallout(),this.setState((0,o.Cl)({refSelected:t.currentTarget},this._linkCalloutAttributes(n,i)))},n.prototype._fillStreamColors=function(t,n){var i=this.state;if(i.selectedState&&i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.color:n}},n.prototype._fillStreamBorder=function(t,n){var i=this.state;if(i.selectedState){if(i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.borderColor:n}return Dd}return Dd},n.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(!n.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&(t.props.enableReflow?Math.max(n.getBoundingClientRect().width,t._calculateChartMinWidth()):n.getBoundingClientRect().width),o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},n.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9).style("color",this.props.theme.palette.neutralPrimary),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},n.defaultProps={enableReflow:!0},n}(a.Component),Id=(0,r.I)(Hd,(function(t){var n,i,e,r=t.className,a=t.theme,u=t.pathColor,s=t.enableReflow,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},r],links:{stroke:u||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[It.up]={fill:"Canvas"},n)},nodes:{fill:"#F5F5F5",selectors:(i={},i[It.up]={fill:"Canvas"},i)},toolTip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(e={},e[It.up]={fill:"CanvasText"},e)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4},chartWrapper:(0,o.Cl)({},s?{overflow:"auto"}:{})}}));function Wd(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function Rd(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=jd)):void 0===n&&(n=zd);for(var i,e,r,o,a,u=new Xd(t),s=[u];i=s.pop();)if((r=n(i.data))&&(a=(r=Array.from(r)).length))for(i.children=r,o=a-1;o>=0;--o)s.push(e=r[o]=new Xd(r[o])),e.parent=i,e.depth=i.depth+1;return u.eachBefore(Yd)}function zd(t){return t.children}function jd(t){return Array.isArray(t)?t[1]:null}function $d(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Yd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Xd(t){this.data=t,this.depth=this.height=0,this.parent=null}function Gd(t,n){return t.parent===n.parent?1:2}function qd(t){var n=t.children;return n?n[0]:t.t}function Ud(t){var n=t.children;return n?n[n.length-1]:t.t}function Zd(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function Kd(t,n,i){return t.a.parent===n.parent?t.a:i}function Jd(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Bd||(Bd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Pd||(Pd={})),Xd.prototype=Rd.prototype={constructor:Xd,count:function(){return this.eachAfter(Wd)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)a.push(i[e]);for(;o=u.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],a=-1;r=o.pop();)if(t.call(n,r,++a,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return Rd(this).eachBefore($d)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},Jd.prototype=Object.create(Xd.prototype);var Qd=(0,u.Z)(),tv=function(t){function n(n,i,e,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=[]);var u=t.call(this,n,e,r,o)||this;return u.composition=i,u._treeTraversal=a,u}return(0,o.C6)(n,t),n.prototype.C=function(t,n){var i,e,r,o,a,u,s=(t=t<65?65:t>90?90:t)||75,l=Rd(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=Gd,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,a=new Jd(t,0),u=[a];n=u.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)u.push(i=n.children[r]=new Jd(e[r],r)),i.parent=n;return(a.parent=new Jd(null,0)).children=[a],a}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),e)r.eachBefore(u);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,a=n,u=i,s=o.parent.children[0],l=o.m,c=a.m,f=u.m,h=s.m;u=Ud(u),o=qd(o),u&&o;)s=qd(s),(a=Ud(a)).a=n,(r=u.z+f-o.z-l+t(u._,o._))>0&&(Zd(Kd(u,n,e),n,r),l+=r,c+=r),f+=u.m,l+=o.m,h+=s.m,c+=a.m;u&&!Ud(a)&&(a.t=u,a.m+=f-c),o&&!qd(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],w=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var C=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,S=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,A=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,L=null===(o=f[x.parentID])||void 0===o?void 0:o.x,V=null===(a=k[0])||void 0===a?void 0:a.y,D=0;D<k.length;++D){var N=k[D];void 0!==this.composition?0===this.composition?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?1===k.length?L:S:A,V,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,w),V+=M+g):k.length>2?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?S:A,V,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,w),V+=M+g)}}if((x.children||c<=2)&&(this.D(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,w),0===x.id&&x.children)){var T=ei(k=null===(u=f[x.id])||void 0===u?void 0:u.children,(function(t){return t.x})),O=ri(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},n}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.N=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),a="",u=Yu(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&u.attr("class",e);for(var s=[];a=o.pop();)if(s.push(a),u.text(s.join(" ")+" "),null!==u.node()&&u.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",u.text(null),Xu(".tempText").remove(),r},t.prototype.D=function(t,n,i,e,r,o,u,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=r-s/2;!e&&0===c&&i||this._nodeElements.push(a.createElement("rect",{width:s,height:l,x:d,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:u,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.N(n,s,s/4,this.styleClassNames.rectSubText)),i&&(i=this.N(i,s,s/4,this.styleClassNames.rectBodyText)),e&&(e=this.N(e,s,s/4,this.styleClassNames.rectMetricText)),t=this.N(t,s,s/4,this.styleClassNames.rectText);var v=e?a.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?a.createElement(a.Fragment,null,a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),a.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(a.createElement("text",{textAnchor:"middle",className:e?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:e?o+l/2.5:o+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t,v)):this._nodeElements.push(a.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t))},t.prototype.O=function(t,n,i,e,r,o,a,u,s){var l="M".concat(i-o/2,",").concat(e-u," H").concat(s+o/2," M").concat(t,",").concat(e-u,"\n V").concat(n+a+u/2),c="M".concat(t,",").concat(n+a+u/2," V").concat(n+5*u,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,i,e,r,o,u,s,l,c){void 0===c&&(c=0),this._linkElements.push(a.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,r,o,u,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),nv=function(t){function n(n){var i,e,r,o,a,u=t.call(this,n)||this;return u._nodeElements=[],u._linkElements=[],u._margin={top:(null===(i=u.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=u.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=u.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=u.props.margins)||void 0===o?void 0:o.right)||20},u._width=u.props.width||1500,u._height=u.props.height||700,u._treeData=u.props.treeData,u._composition=null===(a=u.props)||void 0===a?void 0:a.composition,u._treeTraversal=u.props.treeTraversal,u.state={_width:u._width,_height:u._height},u}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=Qd(e,{theme:n,className:i}),this.F(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=Xu("text"),i=Xu("rect"),e=Xu("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.F()}},n.prototype.F=function(){var t=[],n=[],i=new tv(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},n.prototype.render=function(){var t;return a.createElement(xl,null,a.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},a.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},a.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),a.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(a.Component),iv=(0,r.I)(nv,(function(t){var n,i,e,r,a;return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:t.theme.palette.neutralSecondary,strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px",selectors:(n={},n[It.up]={fill:"Canvas"},n)},rectText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),{selectors:(i={},i[It.up]={fill:"CanvasText"},i)}),rectSubText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),{selectors:(e={},e[It.up]={fill:"CanvasText"},e)}),rectBodyText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),{selectors:(r={},r[It.up]={fill:"CanvasText"},r)}),rectMetricText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge),{selectors:(a={},a[It.up]={fill:"CanvasText"},a)})}}));function ev(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}var rv,ov,av=(0,u.Z)(),uv=function(t){function n(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,s.jI)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=p("_SparklineChart_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=kh().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(qu);this.area=n;var i=Pf().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(qu);this.line=i;var e=this.props.data.lineChartData[0].data,r=ev(e,(function(t){return t.x})),o=r[0],a=r[1];this.x=Ne().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ne().domain([0,ri(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},n.prototype.drawSparkline=function(){return a.createElement(a.Fragment,null,a.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),a.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-hidden":!0}))},n.prototype.render=function(){var t=av(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(xl,{direction:zs.horizontal,isCircularNavigation:!0,className:t.inlineBlock},a.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?a.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)},this.state._points?this.drawSparkline():null):a.createElement(a.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?a.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},a.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):a.createElement(a.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(a.Component),sv=(0,r.I)(uv,(function(t){var n;return{inlineBlock:{display:"inline"},valueText:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText,selectors:(n={},n[It.up]={fill:"CanvasText"},n)})}})),lv=(0,u.Z)(),cv=function(t){function n(n){var i,e,r,u,l,c,f=t.call(this,n)||this;return f._isRtl=(0,s.jI)(),f.X_ORIGIN=0,f.toImage=function(t){var n,i;return Ac(null===(n=f._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=f._legendsRef.current)||void 0===i?void 0:i.toSVG,f._isRtl,t)},f._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){var l;return l=o===Ru.NumericAxis?function(t,n,i,e,r,o){var a=ms(gs(t),o),u=a.longestPositiveBar,s=a.longestNegativeBar,l=e?n.left:n.left+r,c=e?i-n.right-r:i-n.right;return e?{dStartValue:u,dEndValue:Math.min(s,o),rStartValue:l,rEndValue:c}:{dStartValue:Math.min(s,o),dEndValue:u,rStartValue:l,rEndValue:c}}(t,n,i,r,s,f.X_ORIGIN):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},f._getMargins=function(t){f.margins=t},f._renderContentForOnlyBars=function(t){var n,i,e,r,o=f.props,u=o.useSingleColor,s=void 0!==u&&u,l=o.enableGradient,c=void 0!==l&&l,h=0;return f.props.data.forEach((function(n,i){n.y===t.y&&(h=i)})),s?(r=f.props.colors?f._createColors()(1):Sf(1,0,null===(n=f.props.theme)||void 0===n?void 0:n.isInverted),c&&(r=Zs(0,0,null===(i=f.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=t.color?t.color:f.props.colors?f._createColors()(t.x):Sf(h,0,null===(e=f.props.theme)||void 0===e?void 0:e.isInverted),a.createElement(a.Fragment,null,a.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:r,culture:f.props.culture}))},f._renderCallout=function(t){return t?f._renderContentForOnlyBars(t):null},f._getCustomizedCallout=function(){return f.props.onRenderCalloutPerDataPoint?f.props.onRenderCalloutPerDataPoint(f.state.dataPointCalloutProps,f._renderCallout):null},f._getGraphData=function(t,n,i,e,r,o){var a=gs(f._points),u=ms(a,f.X_ORIGIN);f._longestBarPositiveTotalValue=u.longestPositiveBar,f._longestBarNegativeTotalValue=u.longestNegativeBar;var s=f._yAxisType===zu.NumericAxis?f._getScales(i,e,!0):f._getScales(i,e,!1),l=s.xBarScale,c=s.yBarScale,h=l.range(),d=[];return h[0]<h[1]&&(d=a.map((function(t){return f._yAxisType===zu.NumericAxis?f._createNumericBars(i,e,r,o,t,l,c):f._createStringBars(i,e,r,o,t,l,c)})).flat()),f._bars=d},f._refCallback=function(t,n){f._refArray.push({index:n,refElement:t})},f._getCalloutContentForBar=function(t){var n,i,e,r,o=[],a=f.props,u=a.useSingleColor,s=void 0!==u&&u,l=a.enableGradient,c=void 0!==l&&l,h=f.props.data,d=h.filter((function(n){return n.y===t.y})),v=0;return h.forEach((function(n,i){n.y===t.y&&(v=i)})),s?(r=f.props.colors?f._createColors()(1):Sf(1,0,null===(n=f.props.theme)||void 0===n?void 0:n.isInverted),c&&(r=Zs(0,0,null===(i=f.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=d[0].color?d[0].color:f.props.colors?f._createColors()(d[0].x):Sf(v,0,null===(e=f.props.theme)||void 0===e?void 0:e.isInverted),o.push({legend:d[0].legend,y:d[0].x,color:r,data:d[0].yAxisCalloutData,yAxisCalloutData:d[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},f._onBarLeave=function(){},f._handleChartMouseLeave=function(){f._calloutAnchorPoint=null,f.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},f._onBarFocus=function(t,n,i){if((!1===f.state.isLegendSelected||f._isLegendHighlighted(t.legend))&&f._calloutAnchorPoint!==t){var e=f._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;f._refArray.forEach((function(e,a){n===a&&f.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:f.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData})}))}},f._getScales=function(t,n,i){var e=f._longestBarPositiveTotalValue,r=f._longestBarNegativeTotalValue,o=[Math.min(f.X_ORIGIN,r),Math.max(f.X_ORIGIN,e)];if(i){var a=ri(f._points,(function(t){return t.y})),u=ei(f._points,(function(t){return t.y})),s=Math.max(a,f.props.yMaxValue||0),l=f.props.yMinValue||0,c=Math.min(u,l);return{xBarScale:Ne().domain(o).nice().range([f.margins.left,n-f.margins.right]),yBarScale:h=Ne().domain([c,s]).range([t-(f.margins.bottom+f._domainMargin),f.margins.top+f._domainMargin])}}var h=Oa().domain(f._yAxisLabels).range([t-(f.margins.bottom+f._domainMargin),f.margins.top+f._domainMargin]).padding(f._yAxisPadding);return{xBarScale:Ne().domain(o).nice().range([f.margins.left,n-f.margins.right]),yBarScale:h}},f._calculateAppropriateBarHeight=function(t,n,i){var e=Xh(t);if(!e||0===e[1])return 16;var r=e[0],o=e[1],a=ri(f._points,(function(t){return t.y}));return o=Math.max(o,a),Math.floor(n*r*(1-i)/(o+r*(1-i)))},f._getDomainMarginsForHorizontalBarChart=function(t){f._domainMargin=8;var n=f._getUniqueYValues();f._yAxisPadding=1===f._yAxisPadding?.99:f._yAxisPadding;var i=f._yAxisPadding/(1-f._yAxisPadding),e=n.length+(n.length-1)*i,r=t-(f.margins.top+8)-(f.margins.bottom+8);if(f._yAxisType!==zu.StringAxis)f._barHeight=f.props.barHeight||f._calculateAppropriateBarHeight(n,r,f._yAxisPadding),f._barHeight=Math.max(f._barHeight,1),f._domainMargin+=f._barHeight/2;else{f._barHeight=f.props.barHeight||r/e;var a=e*f._barHeight;r>=a&&(f._domainMargin=8+(r-a)/2)}return(0,o.Cl)((0,o.Cl)({},f.margins),{top:f.margins.top+f._domainMargin,bottom:f.margins.bottom+f._domainMargin})},f._closeCallout=function(){f.setState({isCalloutVisible:!1})},f._getLegendData=function(t,n){var i=f.props.useSingleColor,e=[],r={};return t.forEach((function(t,n){var e,o,a,u,s=i?f.props.colors?f._createColors()(1):Sf(1,0,null===(e=f.props.theme)||void 0===e?void 0:e.isInverted):t.color;f.props.enableGradient&&(s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(n,0,null===(a=f.props.theme)||void 0===a?void 0:a.isInverted)[0],i&&(s=Zs(0,0,null===(u=f.props.theme)||void 0===u?void 0:u.isInverted)[0])),r[t.legend]=s})),Object.entries(r).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){f._handleChartMouseLeave(),f._onLegendHover(n)},onMouseOutAction:function(t){f._onLegendLeave(t)}};e.push(r)})),a.createElement(Fc,(0,o.Cl)({legends:e,enabledWrapLines:f.props.enabledLegendsWrapLines,overflowProps:f.props.legendsOverflowProps,focusZonePropsInHoverCard:f.props.focusZonePropsForLegendsInHoverCard,overflowText:f.props.legendsOverflowText},f.props.legendProps,{onChange:f._onLegendSelectionChange.bind(f),ref:f._legendsRef}))},f._isLegendSelected=function(){return f.state.isLegendSelected},f._isLegendHighlighted=function(t){return f._getHighlightedLegend().includes(t)},f._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;f._xMax=Math.max(n[n.length-1],f.props.xMaxValue||0)}},f._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},f._getChartTitle=function(){var t=f.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},Qs(f),f.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)&&n.legendProps.selectedLegends.length>0||void 0!==(null===(e=n.legendProps)||void 0===e?void 0:e.selectedLegend),isLegendHovered:!1,refSelected:null,selectedLegendTitle:null!==(u=null===(r=n.legendProps)||void 0===r?void 0:r.selectedLegend)&&void 0!==u?u:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",selectedLegends:(null===(l=n.legendProps)||void 0===l?void 0:l.selectedLegends)||[]},f._calloutId=p("callout"),f._refArray=[],f._xAxisType=f.props.data&&f.props.data.length>0?Ss(f.props.data[0].x,!0):Ru.NumericAxis,f._yAxisType=f.props.data&&f.props.data.length>0?Ss(f.props.data[0].y,!1):zu.StringAxis,f._cartesianChartRef=a.createRef(),f._legendsRef=a.createRef(),f._domainMargin=8,f._yAxisPadding=null!==(c=f.props.yAxisPadding)&&void 0!==c?c:.5,f}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,o.fX)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max(ri(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=lv(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var e=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),Ls(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(Xf,(0,o.Cl)({},this.props,{yAxisPadding:this._yAxisPadding,chartTitle:this._getChartTitle(),points:this._points,chartType:Wu.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:e,tickParams:r,legendBars:i,createYAxis:as,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ss,getMinMaxOfYAxis:Cs,barwidth:this._barHeight,focusZoneDirection:zs.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getYDomainMargins:this._getDomainMarginsForHorizontalBarChart,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return Ne().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;!1!==this.state.isLegendSelected&&!this._isLegendHighlighted(t.legend)||this._calloutAnchorPoint===t||(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor||this.props.enableGradient?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,i,e,r,u,s){var l=this,c=this.props.useSingleColor,f=void 0!==c&&c,h=(0,o.fX)([],r,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=0,v=0,g=0,m=r.filter((function(t){return t.x>=l.X_ORIGIN})).length,y=r.length-m,b=0,x=0,w=h.map((function(t,i){var e,r,o,c,h,w,C,M,k=!0;(l.state.isLegendHovered||l.state.isLegendSelected)&&(k=l._isLegendHighlighted(t.legend)),l._classNames=lv(l.props.styles,{theme:l.props.theme,legendColor:l.state.color,shouldHighlight:k}),t.x>=l.X_ORIGIN&&++b,t.x<l.X_ORIGIN&&++x;var S,A=l._isRtl?n-(l.margins.right+Math.max(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN))-l.margins.left):Math.min(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN));if(Math.max(s(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");S=f?l.props.colors?l._createColors()(1):Sf(1,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted):l.props.colors?l._createColors()(t.x):Sf(i,0,null===(r=l.props.theme)||void 0===r?void 0:r.isInverted);var L=S=t.color&&!f?t.color:S;if(l.props.enableGradient){var V=Math.max(l._points.findIndex((function(n){return n===t})),0);S=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(V,0,null===(c=l.props.theme)||void 0===c?void 0:c.isInverted)[0],L=(null===(h=t.gradient)||void 0===h?void 0:h[1])||Zs(V,0,null===(w=l.props.theme)||void 0===w?void 0:w.isInverted)[1],f&&(S=Zs(0,0,null===(C=l.props.theme)||void 0===C?void 0:C.isInverted)[0],L=Zs(0,0,null===(M=l.props.theme)||void 0===M?void 0:M.isInverted)[1]),l._points[V].color=S}var D=p("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(u(g+l.X_ORIGIN)-u(l.X_ORIGIN));g>l.X_ORIGIN?d+=N:v+=N;var T=Math.abs(u(t.x+l.X_ORIGIN)-u(l.X_ORIGIN)),O=T>2&&(t.x>l.X_ORIGIN&&b!==m||t.x<l.X_ORIGIN&&(0!==m||x>1))?2:0,E=T>2&&(t.x>l.X_ORIGIN&&(0!==y||b>1)||t.x<l.X_ORIGIN&&x!==y)?2:0,F=l.X_ORIGIN;return F=l._isRtl?t.x>l.X_ORIGIN?A-d:A+v:t.x>l.X_ORIGIN?A+d:A-v,g=t.x,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},l.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("rect",{key:t.y,x:F,className:l._classNames.opacityChangeOnHover,y:s(t.y)-l._barHeight/2,"data-is-focusable":k,width:T-(l._isRtl?E:O),height:l._barHeight,ref:function(n){l._refCallback(n,t.legend)},rx:l.props.roundCorners?3:0,onClick:t.onClick,onMouseOver:l._onBarHover.bind(l,t,S),"aria-label":l._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(l._calloutId),onMouseLeave:l._onBarLeave,onFocus:l._onBarFocus.bind(l,t,i,S),onBlur:l._onBarLeave,fill:l.props.enableGradient?"url(#".concat(D,")"):S}))}));return w},n.prototype._getUniqueYValues=function(){var t,n={};return null===(t=this.props.data)||void 0===t||t.forEach((function(t){n[t.y]=t.y})),Object.values(n)},n.prototype._createStringBars=function(t,n,i,e,r,o,u){var s=this,l=this.props.useSingleColor,c=void 0!==l&&l,f=0,h=0,d=0,v=r.filter((function(t){return t.x>=s.X_ORIGIN})).length,g=r.length-v,m=0,y=0,b=r.map((function(t,i){var e,r,l,b,x,w,C,M,k=!0;(s.state.isLegendHovered||s.state.isLegendSelected)&&(k=s._isLegendHighlighted(t.legend)),s._classNames=lv(s.props.styles,{theme:s.props.theme,legendColor:s.state.color,shouldHighlight:k}),t.x>=s.X_ORIGIN&&++m,t.x<s.X_ORIGIN&&++y;var S,A=s._isRtl?n-(s.margins.right+Math.max(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN))-s.margins.left):Math.min(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN));if(Math.max(u(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");S=c?s.props.colors?s._createColors()(1):Sf(1,0,null===(e=s.props.theme)||void 0===e?void 0:e.isInverted):s.props.colors?s._createColors()(t.x):Sf(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted);var L=S=t.color&&!c?t.color:S;if(s.props.enableGradient){var V=s._points.findIndex((function(n){return n===t}));S=(null===(l=t.gradient)||void 0===l?void 0:l[0])||Zs(V,0,null===(b=s.props.theme)||void 0===b?void 0:b.isInverted)[0],L=(null===(x=t.gradient)||void 0===x?void 0:x[1])||Zs(V,0,null===(w=s.props.theme)||void 0===w?void 0:w.isInverted)[1],c&&(S=Zs(0,0,null===(C=s.props.theme)||void 0===C?void 0:C.isInverted)[0],L=Zs(0,0,null===(M=s.props.theme)||void 0===M?void 0:M.isInverted)[1]),s._points[V].color=S}var D=p("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(o(d+s.X_ORIGIN)-o(s.X_ORIGIN));d>0?f+=N:h+=N;var T=Math.abs(o(t.x+s.X_ORIGIN)-o(s.X_ORIGIN)),O=T>2&&(t.x>s.X_ORIGIN&&m!==v||t.x<s.X_ORIGIN&&(0!==v||y>1))?2:0,E=T>2&&(t.x>s.X_ORIGIN&&(0!==g||m>1)||t.x<s.X_ORIGIN&&y!==g)?2:0;d=t.x;var F=s.X_ORIGIN;return F=s._isRtl?t.x>s.X_ORIGIN?A-f:A+h:t.x>s.X_ORIGIN?A+f:A-h,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("rect",{transform:"translate(0,".concat(.5*(u.bandwidth()-s._barHeight),")"),key:t.x,className:s._classNames.opacityChangeOnHover,x:F,y:u(t.y),rx:s.props.roundCorners?3:0,width:T-(s._isRtl?E:O),height:s._barHeight,"aria-labelledby":"toolTip".concat(s._calloutId),"aria-label":s._getAriaLabel(t),role:"img",ref:function(n){s._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:s._onBarHover.bind(s,t,S),onMouseLeave:s._onBarLeave,onBlur:s._onBarLeave,"data-is-focusable":k,onFocus:s._onBarFocus.bind(s,t,i,S),fill:s.props.enableGradient?"url(#".concat(D,")"):S}))}));return b},n.prototype._onLegendHover=function(t){this._isLegendSelected()||this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){!t&&this._isLegendSelected()||this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this._isLegendSelected()})},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.selectedLegendTitle?[this.state.selectedLegendTitle]:[]},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t,selectedLegendTitle:null==i?void 0:i.title}):this.setState({selectedLegends:t.slice(-1),selectedLegendTitle:null==i?void 0:i.title}),this.setState({isLegendSelected:t.length>0}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n}(a.Component),fv=(0,r.I)(cv,(function(t){return{opacityChangeOnHover:{opacity:t.shouldHighlight?"":"0.1"},xAxisTicks:[]}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(rv||(rv={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(ov||(ov={}));var hv=[{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}],dv=(0,u.Z)(),vv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===ov.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===ov.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},pv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===rv.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===rv.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},gv=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Ac(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,e._isRTL,t)},e._getMargins=function(){var t=e.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},e._getStylesBasedOnBreakpoint=function(){for(var t=hv.length-1;t>=0;t-=1)if(e._outerRadius>=hv[t].minRadius)return{arcWidth:hv[t].arcWidth,chartValueSize:hv[t].fontSize};return{arcWidth:hv[0].arcWidth,chartValueSize:hv[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,a=i,u=e.props.segments.map((function(t,n){var i,e=Math.max(t.size,0);return a+=e,{legend:t.legend,size:e,color:void 0!==t.color?Af(t.color,o.isInverted):Sf(n,0,o.isInverted),gradient:null!==(i=t.gradient)&&void 0!==i?i:Zs(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:a-e,end:a}}));void 0!==r&&a<r&&(u.push({legend:"Unknown",size:r-a,color:o.palette.neutralLight,start:a,end:r}),a=r);var s=hf().cornerRadius(e.props.roundCorners?3:0).padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(u).reverse():u,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(a-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?u.length-1-n:n,startAngle:c-t.size/(a-i)*Math.PI,endAngle:r}}));return e._minValue=i,e._maxValue=a,e._segments=u,{arcs:f}},e._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(e.props.chartValue,e._minValue,e._maxValue),n=e._isRTL?180-t:t,i=e._outerRadius-e._innerRadius+4;return a.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},a.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-i,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-i,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:e._classNames.needle,transform:"translate(".concat(2-e._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return e._handleFocus(t,"Needle")},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,"Needle")},onMouseMove:function(t){return e._handleMouseOver(t,"Needle")},role:"img","aria-label":"Current value: "+pv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat)}))},e._renderLegends=function(){if(e.props.hideLegend)return null;var t=e._segments.map((function(t,n){var i,r=e.props.enableGradient?(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,e.props.theme.isInverted)[0]:t.color||Sf(n,0,e.props.theme.isInverted);return{title:t.legend,color:r,hoverAction:function(){e.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){e.setState({hoveredLegend:""})}}}));return a.createElement("div",{className:e._classNames.legendsContainer},a.createElement(Fc,(0,o.Cl)({legends:t,centerLegends:!0},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef})))},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._handleFocus=function(t,n){e._showCallout(t.target,n,!0)},e._handleBlur=function(){e._hideCallout(!0)},e._handleMouseOver=function(t,n){e._showCallout(t.target,n,!1)},e._handleMouseOut=function(){e._hideCallout(!1)},e._handleCalloutDismiss=function(){e._hideCallout(!1)},e._showCallout=function(t,n,i){if(e._calloutAnchor!==n){e._calloutAnchor=n;var r="Current value is "+pv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),a=e._segments.map((function(t){var n;return{legend:t.legend,y:vv(t,e._minValue,e._maxValue,e.props.variant),color:e.props.enableGradient?null===(n=t.gradient)||void 0===n?void 0:n[0]:t.color}}));e.setState((0,o.Cl)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||e._noLegendHighlighted()||e._legendHighlighted(n),hoverXValue:r,hoverYValues:a},i?{focusedElement:n}:{}))}},e._hideCallout=function(t){e._calloutAnchor="",e.setState((0,o.Cl)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},e._wrapContent=function(t,n,i){var e=Yu("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},e._multiValueCallout=function(t){var n=e._yValueHoverSubCountsExists(t.YValueHover);return a.createElement("div",{className:e._classNames.calloutContentRoot},a.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:e._classNames.calloutContentX},Ls(t.xAxisCalloutAccessibilityData,"text",!1)),(0,_n.U)(t.hoverXValue,e.props.culture))),a.createElement("div",{className:e._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,r){var u=i+1===r.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return a.createElement("div",(0,o.Cl)({},Ls(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),e._getCalloutContent(t,i,n,u))})),!!t.descriptionMessage&&a.createElement("div",{className:e._classNames.descriptionMessage},t.descriptionMessage)))},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Gauge chart with ".concat(e._segments.length," segments. ")},Qs(e),e._margins=e._getMargins(),e._legendsHeight=n.hideLegend?0:24,e.state={hoveredLegend:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+e._margins.left+e._margins.right,height:70+e._margins.top+e._margins.bottom+e._legendsHeight},e._isRTL=(0,s.jI)(n.theme),e._calloutAnchor="",e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,i=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,i-(this._margins.top+this._margins.bottom+this._legendsHeight));var e=this._getStylesBasedOnBreakpoint(),r=e.arcWidth,u=e.chartValueSize;this._innerRadius=this._outerRadius-r;var s=this._processProps().arcs;return this._classNames=dv(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:i-this._legendsHeight,chartValueSize:u}),a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},a.createElement(xl,{direction:zs.horizontal},a.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},a.createElement("g",{transform:"translate(".concat(n/2,", ").concat(i-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&a.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&a.createElement(a.Fragment,null,a.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)},Ds(this._minValue)),a.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(this._maxValue)},Ds(this._maxValue))),s.map((function(n,i){var e,r,u=t._segments[n.segmentIndex],s=p("Arc_clip")+"".concat(i,"_").concat(n.startAngle,"_").concat(n.endAngle),l=dv(t.props.styles,{theme:t.props.theme,solidFill:t.props.enableGradient?"transparent":u.color,gradientFill:"conic-gradient(\n from ".concat(n.startAngle,"rad at 50% 100%,\n ").concat(null===(e=u.gradient)||void 0===e?void 0:e[0],",\n ").concat(null===(r=u.gradient)||void 0===r?void 0:r[1]," ").concat(n.endAngle-n.startAngle,"rad\n )"),opacity:t._legendHighlighted(u.legend)||t._noLegendHighlighted()?1:.1});return a.createElement(a.Fragment,{key:i},a.createElement("path",(0,o.Cl)({d:n.d,strokeWidth:t.state.focusedElement===u.legend?2:0,className:l.segment},Ls((0,o.Cl)({ariaLabel:vv(u,t._minValue,t._maxValue,t.props.variant,!0)},u.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,u.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,u.legend)},onMouseMove:function(n){return t._handleMouseOver(n,u.legend)},"data-is-focusable":t._legendHighlighted(u.legend)||t._noLegendHighlighted()})),t.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:s},a.createElement("path",{d:n.d})),a.createElement("foreignObject",{x:"-50%",y:"-100%",width:"100%",height:"100%",clipPath:"url(#".concat(s,")")},a.createElement("div",{className:l.gradientSegment}))))})),this._renderNeedle(),a.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},a.createElement(Wf,{content:pv(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,"aria-hidden":"true"},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&a.createElement(Wf,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&a.createElement(Pn,(0,o.Cl)({target:this.state.calloutTarget,directionalHint:3,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.hoveredLegend?[this.state.hoveredLegend]:[]},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r=e?{}:{marginRight:"16px"},o=void 0!==t.index&&-1!==t.index,u=dv(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:o}),s=this.props.culture,l=(0,_n.U)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return a.createElement("div",{style:r},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return a.createElement("div",{key:t,className:u.calloutBlockContainer},a.createElement("div",{className:u.calloutlegendText}," ",(0,_n.U)(t,s)),a.createElement("div",{className:u.calloutContentY},(0,_n.U)(c[t],s)))})))}return a.createElement("div",{style:i?r:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:u.calloutBlockContainer},o&&a.createElement(Sc,{svgProps:{className:u.shapeStyles},pathProps:{fill:t.color},shape:Ms[t.index%Object.keys(As).length]}),a.createElement("div",null,a.createElement("div",{className:u.calloutlegendText}," ",t.legend),a.createElement("div",{className:u.calloutContentY},(0,_n.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},n}(a.Component),mv=(0,r.I)(gv,(function(t){var n,i,e,r,a,u,s,l,c=t.theme,f=t.chartValueSize,h=t.chartWidth,d=t.chartHeight,v=t.className,p=t.lineColor,g=t.toDrawShape,m=t.solidFill,y=t.gradientFill,b=t.opacity;return{root:[c.fonts.medium,"ms-GaugeChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},v],chart:{display:"block",width:h,height:d},limits:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:c.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)},chartValue:{fontSize:f,fontWeight:It.BO.semibold,fill:c.palette.neutralPrimary,selectors:(i={},i[It.up]={fill:"CanvasText"},i)},sublabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:c.palette.neutralPrimary,selectors:(e={},e[It.up]={fill:"CanvasText"},e)},needle:{fill:c.palette.black,stroke:c.semanticColors.bodyBackground},chartTitle:{fontSize:It.s.small,fill:c.palette.neutralPrimary,selectors:(r={},r[It.up]={fill:"CanvasText"},r)},segment:{outline:"none",stroke:c.semanticColors.focusBorder,fill:m,fillOpacity:b},gradientSegment:{width:"100%",height:"100%",background:y,opacity:b},legendsContainer:{width:h},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:c.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},c.fonts.small),{lineHeight:"16px",opacity:"0.85",color:c.semanticColors.bodySubtext})],calloutBlockContainer:[c.fonts.mediumPlus,{marginTop:"13px",color:c.semanticColors.bodyText},!g&&{selectors:(a={},a[It.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(p),paddingLeft:"8px"},g&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},c.fonts.small),{lineHeight:"16px",selectors:(u={},u[It.up]={color:"CanvasText"},u),color:c.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},c.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[It.up]={color:"CanvasText"},s)})],descriptionMessage:[c.fonts.small,{selectors:(l={},l[It.up]={color:"CanvasText"},l),color:c.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(c.semanticColors.menuDivider)}]}})),yv=i(927),bv=a.createContext(void 0);function xv(t){const n=(4-t.length%4)%4;return t+"=".repeat(n)}function wv(t){if("string"!=typeof t)return!1;if(t.length%4!=0&&(t=xv(t)),!/^[A-Za-z0-9+/]+={0,2}$/.test(t))return!1;try{return Cv(t),!0}catch{return!1}}function Cv(t){if("undefined"!=typeof window&&"function"==typeof atob){const n=atob(t),i=n.length,e=new Uint8Array(i);for(let t=0;t<i;t++)e[t]=n.charCodeAt(t);return e}throw new Error("Base64 decoding is not supported in this environment.")}function Mv(t,n){t=xv(t);try{const i=Cv(t);switch(n){case"f8":return Array.from(new Float64Array(i.buffer));case"i8":case"i4":return Array.from(new Int32Array(i.buffer));case"u8":return Array.from(new Uint32Array(i.buffer));case"i2":return Array.from(new Int16Array(i.buffer));case"i1":return Array.from(new Int8Array(i.buffer));default:try{return i.toString()}catch(t){return i}}}catch(n){throw new Error(`Failed to decode base64 value: ${t}`)}}function kv(t){for(const[n,i]of Object.entries(t))if("object"!=typeof i||Array.isArray(i)||null===i){if("bdata"===n&&"string"==typeof i&&wv(i)){const e=t.dtype||"utf-8";t[n]=Mv(i,e)}else if(Array.isArray(i))for(let t=0;t<i.length;t++)"object"==typeof i[t]&&null!==i[t]&&kv(i[t])}else kv(i)}function Sv(t){const n=JSON.parse(JSON.stringify(t.data));if(kv(t.data),JSON.stringify(t.data)!==JSON.stringify(n)){let n=!1;for(const i of t.data||[])if(["y","x","z","r","theta"].forEach((t=>{if(i[t]&&"object"==typeof i[t]&&"bdata"in i[t]){const e=i[t].bdata;Array.isArray(e)&&e.some((t=>"number"==typeof t&&isNaN(t)))?n=!0:i[t]=e}})),n)break;if(!n)return t}return t.data=n,t}const Av="Unsupported chart - type :",Lv=t=>!isNaN(parseFloat(t))&&isFinite(t),Vv=t=>{if(Lv(t))return!1;const n=new Date(Date.parse(t));if(isNaN(n.getTime()))return!1;const i=n.getFullYear();return!!(/\b\d{4}\b/.test(t)||2e3!==i&&2001!==i)},Dv=t=>{if(Lv(t)){const n="string"==typeof t?parseFloat(t):Number(t);return Number.isInteger(n)&&n>=1900&&n<=2100}return!1},Nv=(t,n,...i)=>!!Bv(t)&&0!==t.length&&(Array.isArray(t[0])?t.every((t=>t.every((t=>n(t,...i))))):t.every((t=>n(t,...i)))),Tv=t=>Nv(t,Vv),Ov=t=>Nv(t,Lv),Ev=t=>Nv(t,Dv),Fv=(t,n=0)=>{if(n>15)throw new Error("Maximum json depth exceeded");if("object"==typeof t&&null!==t)for(const i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?t[i]=t[i].replace(/</g,"<").replace(/>/g,">"):t[i]=Fv(t[i],n+1));return t};function Bv(t){return Array.isArray(t)||function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(t)}const Pv=(t,n)=>{if(!(t=>!(Array.isArray(t.x)&&t.x.length>0&&Array.isArray(t.x[0])||Array.isArray(t.y)&&t.y.length>0&&Array.isArray(t.y[0])))(t))throw new Error("Invalid 2D series encountered.");if(n&&!Ov(t.y))throw new Error("Non numeric Y values encountered.")},_v={indicator:[t=>{var n;if(!(null===(n=t.mode)||void 0===n?void 0:n.includes("gauge")))throw new Error(`${Av} ${t.type}, mode: ${t.mode}`)}],histogram:[t=>Pv(t,!1)],bar:[t=>(t=>{if("h"===t.orientation&&void 0!==t.base)throw new Error(`${Av} Gantt`);"h"===t.orientation&&Ov(t.x)?Pv(t,!1):Pv(t,!0)})(t)],scatter:[t=>(t=>{var n;if(["markers","text+markers","markers+text"].includes(null!==(n=t.mode)&&void 0!==n?n:"")&&!Ov(t.x))throw new Error(`${Av} ${t.type}, mode: ${t.mode}, xAxisType: String or Date`);Pv(t,!0)})(t)],scatterpolar:[t=>{if(!Ov(t.theta))throw new Error(`${Av} ${t.type}, Non numeric theta values`);if(!Ov(t.r))throw new Error(`${Av} ${t.type}, Non numeric r values`)}]};var Hv=Array.prototype,Iv=Hv.slice;function Wv(t){return()=>t}function Rv(t){return t}function zv(t){return Math.max(1,Math.ceil(Math.log(function(t){let n=0;for(let i of t)null!=i&&(i=+i)>=i&&++n;return n}(t))/Math.LN2)+1)}function jv(t,n,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function $v(t,n){this._context=t,this._k=(1-n)/6}Hv.map,$v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jv(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:jv(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yv=function t(n){function i(t){return new $v(t,n)}return i.tension=function(n){return t(+n)},i}(0),Xv={dot:{strokeDasharray:"1, 5",strokeLinecap:"round",strokeWidth:"2",lineBorderWidth:"4"},dash:{strokeDasharray:"5, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdash:{strokeDasharray:"10, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},dashdot:{strokeDasharray:"5, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdashdot:{strokeDasharray:"10, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},solid:{strokeDasharray:"0",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"}},Gv=function(t){var n=no("%B"),i=no("%b");return null!==n(t)||null!==i(t)};function qv(t){var n,i,e,r,o,a,u,s,l,c,f,h;return{chartTitle:"string"==typeof(null==t?void 0:t.title)?t.title:null!==(i=null===(n=null==t?void 0:t.title)||void 0===n?void 0:n.text)&&void 0!==i?i:"",xAxisTitle:"string"==typeof(null===(e=null==t?void 0:t.xaxis)||void 0===e?void 0:e.title)?null===(r=null==t?void 0:t.xaxis)||void 0===r?void 0:r.title:null!==(u=null===(a=null===(o=null==t?void 0:t.xaxis)||void 0===o?void 0:o.title)||void 0===a?void 0:a.text)&&void 0!==u?u:"",yAxisTitle:"string"==typeof(null===(s=null==t?void 0:t.yaxis)||void 0===s?void 0:s.title)?null===(l=null==t?void 0:t.yaxis)||void 0===l?void 0:l.title:null!==(h=null===(f=null===(c=null==t?void 0:t.yaxis)||void 0===c?void 0:c.title)||void 0===f?void 0:f.text)&&void 0!==h?h:""}}var Uv=function(t){var n=(new Date).getFullYear();if(t.length>0&&Array.isArray(t[0]))throw new Error("updateXValues:: 2D array not supported");for(var i=t.map((function(t){var i="".concat(t," 01, ").concat(n);return Vv(i)?new Date(i):null})),e=i.length-1;e>0;e--){var r=i[e].getMonth(),o=i[e-1].getMonth(),a=i[e].getFullYear(),u=i[e-1].getFullYear();o>=r?i[e-1].setFullYear(i[e].getFullYear()-1):u>a&&i[e-1].setFullYear(a)}return t.map((function(t,n){return"".concat(t," 01, ").concat(i[n].getFullYear())}))},Zv=function(t,n,i){if(!n.current.has(t)){var e=Sf(n.current.size+1,0,i);return n.current.set(t,e),e}return n.current.get(t)},Kv=function(t){return"y2"===t.yaxis},Jv=function(t,n,i,e){var r,o,a,u,s,l,c=!1;return t.forEach((function(t){if(Kv(t)){c=!0;var n=t.y;n&&(s=Math.min.apply(Math,n),l=Math.max.apply(Math,n))}})),c?("number"==typeof s&&"number"==typeof i&&(s=Math.min(s,i)),"number"==typeof l&&"number"==typeof e&&(l=Math.max(l,e)),(null===(r=null==n?void 0:n.yaxis2)||void 0===r?void 0:r.range)&&(s=n.yaxis2.range[0],l=n.yaxis2.range[1]),{secondaryYAxistitle:"string"==typeof(null===(o=null==n?void 0:n.yaxis2)||void 0===o?void 0:o.title)?n.yaxis2.title:"string"==typeof(null===(u=null===(a=null==n?void 0:n.yaxis2)||void 0===a?void 0:a.title)||void 0===u?void 0:u.text)?n.yaxis2.title.text:void 0,secondaryYScaleOptions:{yMinValue:s,yMaxValue:l}}):{}},Qv=function(t,n,i){var e=[];if(t){if(Bv(t))t.forEach((function(t,r){var o=null==t?void 0:t.toString().trim(),a=Zv("Label_".concat(r),n,i);if(o){var u=Ni(o);e.push(u?u.formatHex():a)}else e.push(a)}));else if("string"==typeof t){var r=Ni(t);return r?r.formatHex():Zv("Label_0",n,i)}return e}},tp=function(t,n,i,e){var r,a,u,s={},l=0,c=Jv(t.data,t.layout),f=fp(t.data,t.layout),h=f.legends,d=f.hideLegend;t.data.forEach((function(t,r){var a,u=Ev(t.x);null===(a=t.x)||void 0===a||a.forEach((function(a,c){var f,d,v;s[a]||(s[a]={xAxisPoint:u?a.toString():a,chartData:[],lineData:[]});var p=h[r],g=null!==(d=null===(f=t.y)||void 0===f?void 0:f[c])&&void 0!==d?d:0;if("bar"===t.type){var m=Zv(p,n,i);s[a].chartData.push({legend:p,data:g,color:m}),l=Math.max(l,g)}else if("scatter"===t.type||e){m=Zv(p,n,i);var y=np(t.line),b=(null===(v=t.line)||void 0===v?void 0:v.dash)||"solid",x="dot"===b||"dash"===b||"dashdot"===b?"dottedLine":"default";s[a].lineData.push((0,o.Cl)((0,o.Cl)({legend:p,legendShape:x,y:g,color:m},y?{lineOptions:y}:{}),{useSecondaryYScale:Kv(t)})),Kv(t)||(l=Math.max(l,g))}}))}));var v=qv(t.layout),p=v.chartTitle,g=v.xAxisTitle,m=v.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(s),width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,barWidth:"auto",yMaxValue:l,chartTitle:p,xAxisTitle:g,yAxisTitle:m,mode:"plotly"},c),{hideTickOverlap:!0,hideLegend:d})};function np(t){if(t){var n={};switch(t.dash&&(n=(0,o.Cl)((0,o.Cl)({},n),Xv[t.dash])),t.shape){case"spline":var i="number"==typeof t.smoothing?t.smoothing:1;n.curve=Yv.tension(1-i/1.3);break;case"hv":n.curve="stepAfter";break;case"vh":n.curve="stepBefore";break;case"hvh":n.curve="step";break;default:n.curve="linear"}return Object.keys(n).length>0?n:void 0}}var ip=function(t){return Nv(t,(function(t){return"string"==typeof t}))},ep=function(t,n,i){return null==n?-1:i?t.findIndex((function(t){return t.includes(n)})):t.findIndex((function(i,e){return n>=i.x0&&(e===t.length-1?n<=i.x1:n<i.x1)}))},rp=function(t){return t.x1-t.x0},op=function(t){return(t.x1+t.x0)/2},ap=function(t,n,i,e){if(!t||0===t.length)return[];if(ip(t)){var r=Array.from(new Set(t)),o="number"==typeof n?Math.ceil(n):0,a="number"==typeof i?Math.floor(i)+1:r.length,u="number"==typeof e?e:1;return Aa(o,a,u).map((function(t){return r.slice(t,t+u)}))}var s=Ne().domain(ev(t)).nice().domain(),l=s[0],c=s[1];l="number"==typeof n?n:l,c="number"==typeof i?i:c;var f=function(){var t=Rv,n=ev,i=zv;function e(e){Array.isArray(e)||(e=Array.from(e));var r,o,a,u=e.length,s=new Array(u);for(r=0;r<u;++r)s[r]=t(e[r],r,e);var l=n(s),c=l[0],f=l[1],h=i(s,c,f);if(!Array.isArray(h)){const t=f,i=+h;if(n===ev&&([c,f]=ii(c,f,i)),(h=Qn(c,f,i))[0]<=c&&(a=ti(c,f,i)),h[h.length-1]>=f)if(t>=f&&n===ev){const t=ti(c,f,i);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length,v=0,p=d;h[v]<=c;)++v;for(;h[p-1]>f;)--p;(v||p<d)&&(h=h.slice(v,p),d=p-v);var g,m=new Array(d+1);for(r=0;r<=d;++r)(g=m[r]=[]).x0=r>0?h[r-1]:c,g.x1=r<d?h[r]:f;if(isFinite(a)){if(a>0)for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Math.min(d,Math.floor((o-c)/a))].push(e[r]);else if(a<0)for(r=0;r<u;++r)if(null!=(o=s[r])&&c<=o&&o<=f){const t=Math.floor((c-o)*a);m[Math.min(d,t+(h[t]<=o))].push(e[r])}}else for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[fi(h,o,0,d)].push(e[r]);return m}return e.value=function(n){return arguments.length?(t="function"==typeof n?n:Wv(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:Wv([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:Wv(Array.isArray(t)?Iv.call(t):t),e):i},e}().domain([l,c]);if("number"==typeof e&&e>0){for(var h=[],d=Math.max(lp(l),lp(e)),v=cp(l,d);v<cp(c+e,d);)h.push(v),v=cp(v+e,d);return l=h[0],c=h[h.length-1],f.domain([l,c]).thresholds(h),f(t).slice(0,-1)}return f(t)},up=function(t,n){var i,e;switch(t){case"sum":return fd(n);case"avg":return 0===n.length?0:fd(n)/n.length;case"min":return null!==(i=ei(n))&&void 0!==i?i:0;case"max":return null!==(e=ri(n))&&void 0!==e?e:0;default:return n.length}},sp=function(t,n,i,e,r){switch(void 0===r&&(r=1),t){case"percent":return 0===i?0:n/i*100;case"probability":return 0===i?0:n/i;case"density":return e*r===0?0:n/(e*r);case"probability density":return i*e*r===0?0:n/(i*e*r);default:return n}},lp=function(t){var n,i;return null!==(i=null===(n=t.toString().split(".")[1])||void 0===n?void 0:n.length)&&void 0!==i?i:0},cp=function(t,n){var i=Math.pow(10,n);return Math.round(t*i)/i},fp=function(t,n){var i=[];1===t.length?i.push(t[0].name||""):t.forEach((function(t,n){i.push(t.name||"Series ".concat(n+1))}));var e=t.every((function(t){return!1===t.showlegend}));return{legends:i,hideLegend:!1===(null==n?void 0:n.showlegend)||!0!==(null==n?void 0:n.showlegend)&&i.length<2||e}},hp=function(t){var n,i,e=a.useRef(null),r=a.useRef(),u=a.useState({}),s=u[0],c=u[1];r.current=t.onResize,a.useEffect((function(){var t,n,i=(0,l.z)(e.current);return i&&i.ResizeObserver&&(n=new i.ResizeObserver((function(n){var e,o=n[0].contentRect,a=o.width,u=o.height;t=null==i?void 0:i.requestAnimationFrame((function(){c((function(t){var n=Math.floor(a),i=Math.floor(u);return t.containerWidth===n&&t.containerHeight===i?t:{containerWidth:n,containerHeight:i}}))})),null===(e=r.current)||void 0===e||e.call(r,a,u)})),e.current&&n.observe(e.current)),function(){t&&(null==i||i.cancelAnimationFrame(t)),null==n||n.disconnect()}}),[]);var f=a.useMemo((function(){var n=s.containerWidth,i=s.containerHeight;return"number"==typeof t.aspect&&t.aspect>0&&(n?i=n/t.aspect:i&&(n=i*t.aspect),"number"==typeof t.maxHeight&&i&&i>t.maxHeight&&(i=t.maxHeight)),a.Children.map(t.children,(function(t){var e;return a.cloneElement(t,{width:n,height:i,shouldResize:(null!=n?n:0)+(null!=i?i:0),styles:(0,o.Cl)((0,o.Cl)({},t.props.styles),{root:(0,o.Cl)((0,o.Cl)({},null===(e=t.props.styles)||void 0===e?void 0:e.root),{width:n,height:i})})})}))}),[s,t.aspect,t.maxHeight,t.children]);return a.createElement("div",{ref:e,style:{width:null!==(n=t.width)&&void 0!==n?n:"100%",height:null!==(i=t.height)&&void 0!==i?i:"100%",minWidth:t.minWidth,minHeight:t.minHeight,maxHeight:t.maxHeight}},f)};function dp(t){return function(n){var i=n.aspect,e=n.width,r=n.height,u=n.minWidth,s=n.minHeight,l=n.maxHeight,c=n.onResize,f=(0,o.Tt)(n,["aspect","width","height","minWidth","minHeight","maxHeight","onResize"]);return a.createElement(hp,{aspect:i,width:e,height:r,minWidth:u,minHeight:s,maxHeight:l,onResize:c},a.createElement(t,(0,o.Cl)({},f)))}}var vp=dp(Of),pp=dp(Qh),gp=dp(hh),mp=dp(fv),yp=dp(Dh),bp=dp(ud),xp=dp(Id),wp=dp(mv),Cp=dp(ed),Mp=dp(Zh),kp=a.forwardRef((function(t,n){var i,e,r=Fv(t.chartSchema).plotlySchema,u=(t=>{var n;try{Fv(t)}catch(t){return{isValid:!1,errorMessage:`Invalid JSON: ${t}`}}try{let i=(t=>{try{const n=t;if(!n)throw new Error("Plotly input is null or undefined");if(!n.data)throw new Error("Plotly input data is null or undefined");if(0===n.data.length)throw new Error("Plotly input data is empty");return n}catch(t){throw new Error(`Invalid plotly schema: ${t}`)}})(t);try{i=Sv(i)}catch(t){return{isValid:!1,errorMessage:`Failed to decode plotly schema: ${t}`}}const e=(t=>{const n=[],i=t.map(((t,i)=>{const e=t.type;if(e&&_v[e]){const r=_v[e];for(const e of r)try{e(t)}catch(t){return n.push(`data[${i}]: ${t}`),[-1,""]}}return[i,""]})).filter((t=>t[0]>=0));if(0===i.length)throw new Error(n.join("; "));return i})(i.data),r=i.data[e[0][0]];switch(r.type){case"pie":return{isValid:!0,type:"donut",validTracesInfo:e};case"histogram2d":case"heatmap":return{isValid:!0,type:"heatmap",validTracesInfo:e};case"sankey":return{isValid:!0,type:"sankey",validTracesInfo:e};case"indicator":case"gauge":return{isValid:!0,type:"gauge",validTracesInfo:e};case"histogram":return{isValid:!0,type:"verticalbar",validTracesInfo:e};case"scatterpolar":return{isValid:!0,type:"scatterpolar",validTracesInfo:e};default:const t=e.some((t=>"bar"===i.data[t[0]].type)),o=e.some((t=>"scatter"===i.data[t[0]].type));if(t&&o)return{isValid:!0,type:"verticalstackedbar",validTracesInfo:e};if(t){const t=r;return"h"===t.orientation&&Ov(t.x)?{isValid:!0,type:"horizontalbar",validTracesInfo:e}:["group","overlay"].includes(null===(n=null==i?void 0:i.layout)||void 0===n?void 0:n.barmode)?{isValid:!0,type:"groupedverticalbar",validTracesInfo:e}:{isValid:!0,type:"verticalstackedbar",validTracesInfo:e}}if(o){const t=r,n=e.some((t=>{const n=i.data[t[0]];return"tonexty"===n.fill||"tozeroy"===n.fill||!!n.stackgroup})),o=Tv(t.x),a=Ov(t.x),u=Ev(t.x);return!o&&!a||u?n?{isValid:!1,errorMessage:"Fallback to VerticalStackedBarChart is not allowed for Area Charts."}:{isValid:!0,type:"fallback",validTracesInfo:e}:{isValid:!0,type:n?"area":"line",validTracesInfo:e}}return{isValid:!1,errorMessage:`${Av} ${r.type}`}}}catch(t){return{isValid:!1,errorMessage:`Invalid plotly schema: ${t}`}}})(r);if(!u.isValid)throw new Error("Invalid chart schema: ".concat(u.errorMessage));var s=r;try{s=Sv(s)}catch(t){throw new Error("Failed to decode plotly schema: ".concat(t))}var l=(0,o.Cl)((0,o.Cl)({},s),{data:u.validTracesInfo.map((function(t){return s.data[t[0]]}))}),c=r.selectedLegends,f=a.useRef(new Map),h=function(){var t=a.useContext(bv),n=(0,yv.m)(["theme"]).theme;return t||n||(0,pn.a)({})}(),d=null!==(i=null==h?void 0:h.isInverted)&&void 0!==i&&i,v=a.useRef(null);Bv(c)||(c=[]);var p=a.useState(c),g=p[0],m=p[1];a.useEffect((function(){var n=Fv(t.chartSchema).plotlySchema.selectedLegends;m(null!=n?n:[])}),[t.chartSchema]);var y={legendProps:{canSelectMultipleLegends:!0,onChange:function(n){m(n),t.onSchemaChange&&t.onSchemaChange({plotlySchema:{plotlyInput:s,selectedLegends:n}})},selectedLegends:g},componentRef:v,calloutProps:{layerProps:{eventBubblingEnabled:!0}}},b=function(n,i){var e,r=["markers","text+markers","markers+text"].includes(null===(e=n[0])||void 0===e?void 0:e.mode),u=(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){var a,u,s,l,c,f,h=Jv(t.data,t.layout,n?0:void 0,n?0:void 0),d="tonexty",v=fp(t.data,t.layout),p=v.legends,g=v.hideLegend,m=t.data.map((function(t,n){var a,u,s,l=t.x,c="string"==typeof l[0],f=Tv(l),h=Ov(l),v=p[n],g=!e&&(null===(a=t.line)||void 0===a?void 0:a.color)?Qv(null===(u=t.line)||void 0===u?void 0:u.color,i,r):Zv(v,i,r);d="tozeroy"===t.fill?"tozeroy":"tonexty";var m=np(t.line),y=(null===(s=t.line)||void 0===s?void 0:s.dash)||"solid",b="dot"===y||"dash"===y||"dashdot"===y?"dottedLine":"default";return(0,o.Cl)((0,o.Cl)({legend:v,legendShape:b,data:l.map((function(n,i){var e,r;return(0,o.Cl)({x:c?f?new Date(n):h?parseFloat(n):n:n,y:t.y[i]},Array.isArray(null===(e=t.marker)||void 0===e?void 0:e.size)?{markerSize:t.marker.size[i]}:"number"==typeof(null===(r=t.marker)||void 0===r?void 0:r.size)?{markerSize:t.marker.size}:{})})),color:g},m?{lineOptions:m}:{}),{useSecondaryYScale:Kv(t)})})),y=xs(m),b=qv(t.layout),x=b.chartTitle,w=b.xAxisTitle,C=b.yAxisTitle,M={chartTitle:x,lineChartData:m};return n?(0,o.Cl)((0,o.Cl)({data:M,supportNegativeData:!0,xAxisTitle:w,yAxisTitle:C},h),{mode:d,width:null===(a=t.layout)||void 0===a?void 0:a.width,height:null!==(s=null===(u=t.layout)||void 0===u?void 0:u.height)&&void 0!==s?s:350,hideTickOverlap:!0,hideLegend:g,useUTC:!1}):(0,o.Cl)((0,o.Cl)({data:M,supportNegativeData:!0,xAxisTitle:w,yAxisTitle:C},h),{roundedTicks:!0,yMinValue:y.startValue,yMaxValue:y.endValue,width:null===(l=t.layout)||void 0===l?void 0:l.width,height:null!==(f=null===(c=t.layout)||void 0===c?void 0:c.height)&&void 0!==f?f:350,hideTickOverlap:!0,enableReflow:!1,hideLegend:g,useUTC:!1})}({data:n,layout:s.layout},i,f,t.useFluentVizColorPalette,d)),y);return i?a.createElement(yp,(0,o.Cl)({},u)):a.createElement(gp,(0,o.Cl)({},u,{lineMode:r?"scatter":"default"}))},x=a.useCallback((function(t){return new Promise((function(n,i){if(!v.current||"function"!=typeof v.current.toImage)return i(Error("Chart cannot be exported as image"));v.current.toImage((0,o.Cl)({background:h.semanticColors.bodyBackground,scale:5},t)).then(n).catch(i)}))}),[h]);switch(a.useImperativeHandle(t.componentRef,(function(){return{exportAsImage:x}}),[x]),u.type){case"donut":return a.createElement(vp,(0,o.Cl)({},function(t,n,i,e){var r,o,a,u,s,l,c,f,h,d=t.data[0],v=void 0;i||(v=(null===(r=d.marker)||void 0===r?void 0:r.colors)?Qv(null===(o=null==d?void 0:d.marker)||void 0===o?void 0:o.colors,n,e):void 0);var p={};null===(a=d.labels)||void 0===a||a.forEach((function(t,i){var r,o;o=v&&ip(v)?v[i%v.length]:"string"==typeof v?v:Zv(t,n,e);var a="number"==typeof(null===(r=d.values)||void 0===r?void 0:r[i])?d.values[i]:1;p[t]?p[t].data+=a:p[t]={legend:t,data:a,color:o}}));var g=null!==(s=null===(u=t.layout)||void 0===u?void 0:u.width)&&void 0!==s?s:440,m=null!==(c=null===(l=t.layout)||void 0===l?void 0:l.height)&&void 0!==c?c:220,y=!!d.textinfo&&!["value","percent","label+percent"].includes(d.textinfo),b=y?0:80,x=40+(y?0:40),w=d.hole?d.hole*(Math.min(g-b,m-x)/2):0;return{data:{chartTitle:qv(t.layout).chartTitle,chartData:Object.values(p)},hideLegend:!1===(null===(f=t.layout)||void 0===f?void 0:f.showlegend),width:null===(h=t.layout)||void 0===h?void 0:h.width,height:m,innerRadius:w,hideLabels:y,showLabelsInPercent:!d.textinfo||["percent","label+percent"].includes(d.textinfo)}}(l,f,t.useFluentVizColorPalette,d),y));case"horizontalbar":return a.createElement(mp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b=fp(t.data,t.layout),x=b.legends,w=b.hideLegend,C=t.data.map((function(t,e){var r=x[e],o=Zv(r,n,i);return t.y.map((function(n,i){return{x:t.x[i],y:n,legend:r,color:o}}))})).reverse().flat().reverse(),M=null!==(r=null===(e=t.layout)||void 0===e?void 0:e.height)&&void 0!==r?r:450,k=M-(null!==(u=null===(a=null===(o=t.layout)||void 0===o?void 0:o.margin)||void 0===a?void 0:a.l)&&void 0!==u?u:0)-(null!==(c=null===(l=null===(s=t.layout)||void 0===s?void 0:s.margin)||void 0===l?void 0:l.pad)&&void 0!==c?c:0),S=t.data.reduce((function(t,n){var i;return t+((null===(i=n.y)||void 0===i?void 0:i.length)||0)}),0),A=k/(S*(1+1/(1+.01*S))),L=qv(t.layout);return{data:C,chartTitle:L.chartTitle,xAxisTitle:L.xAxisTitle,yAxisTitle:L.yAxisTitle,secondaryYAxistitle:"string"==typeof(null===(h=null===(f=t.layout)||void 0===f?void 0:f.yaxis2)||void 0===h?void 0:h.title)?null===(v=null===(d=t.layout)||void 0===d?void 0:d.yaxis2)||void 0===v?void 0:v.title:(null===(m=null===(g=null===(p=t.layout)||void 0===p?void 0:p.yaxis2)||void 0===g?void 0:g.title)||void 0===m?void 0:m.text)||"",barHeight:A,showYAxisLables:!0,height:M,width:null===(y=t.layout)||void 0===y?void 0:y.width,hideTickOverlap:!0,hideLegend:w,noOfCharsToTruncate:20,showYAxisLablesTooltip:!0}}(l,f,d),y));case"groupedverticalbar":return a.createElement(Cp,(0,o.Cl)({},function(t,n,i){var e,r,a,u={},s=Jv(t.data,t.layout,0,0),l=fp(t.data,t.layout),c=l.legends,f=l.hideLegend;t.data.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,o){var a,s;if(u[r]||(u[r]={name:r.toString(),series:[]}),"bar"===t.type){var l=c[e],f=Zv(l,n,i);u[r].series.push({key:l,data:null!==(s=null===(a=t.y)||void 0===a?void 0:a[o])&&void 0!==s?s:0,xAxisCalloutData:r,color:f,legend:l,useSecondaryYScale:Kv(t)})}}))}));var h=qv(t.layout),d=h.chartTitle,v=h.xAxisTitle,p=h.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(u),width:null===(e=t.layout)||void 0===e?void 0:e.width,height:null!==(a=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==a?a:350,barwidth:"auto",chartTitle:d,xAxisTitle:v,yAxisTitle:p,mode:"plotly"},s),{hideTickOverlap:!0,hideLegend:f})}(l,f,d),y));case"verticalstackedbar":return a.createElement(pp,(0,o.Cl)({},tp(l,f,d),y));case"heatmap":return a.createElement(bp,(0,o.Cl)({},function(t){var n,i,e,r,o,a,u,s,l,c,f,h,d=t.data[0],v=[],p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if("histogram2d"===d.type){var m=ip(d.x),y=ip(d.y),b=ap(d.x,null===(n=d.xbins)||void 0===n?void 0:n.start,null===(i=d.xbins)||void 0===i?void 0:i.end,null===(e=d.xbins)||void 0===e?void 0:e.size),x=ap(d.y,null===(r=d.ybins)||void 0===r?void 0:r.start,null===(o=d.ybins)||void 0===o?void 0:o.end,null===(a=d.ybins)||void 0===a?void 0:a.size),w=x.map((function(){return b.map((function(){return[]}))})),C=0;null===(u=d.x)||void 0===u||u.forEach((function(t,n){var i,e,r,o=ep(b,t,m),a=ep(x,null===(i=d.y)||void 0===i?void 0:i[n],y);-1!==o&&-1!==a&&w[a][o].push(null!==(r=null===(e=d.z)||void 0===e?void 0:e[n])&&void 0!==r?r:1)}));var M=w.map((function(t){return t.map((function(t){var n=up(d.histfunc,t);return C+=n,n}))}));b.forEach((function(t,n){x.forEach((function(i,e){var r=sp(d.histnorm,M[e][n],C,m?t.length:rp(t),y?i.length:rp(i));v.push({x:m?t.join(", "):op(t),y:y?i.join(", "):op(i),value:r,rectText:r}),"number"==typeof r&&(p=Math.min(p,r),g=Math.max(g,r))}))}))}else null===(s=d.x)||void 0===s||s.forEach((function(n,i){var e;null===(e=d.y)||void 0===e||e.forEach((function(e,r){var o,a,u,s,l,c,f=null===(a=null===(o=d.z)||void 0===o?void 0:o[r])||void 0===a?void 0:a[i];v.push({x:"date"===(null===(s=null===(u=t.layout)||void 0===u?void 0:u.xaxis)||void 0===s?void 0:s.type)||null!=n?n:0,y:(null===(c=null===(l=t.layout)||void 0===l?void 0:l.yaxis)||void 0===c||c.type,e),value:f,rectText:f}),"number"==typeof f&&(p=Math.min(p,f),g=Math.max(g,f))}))}));var k={legend:null!==(l=d.name)&&void 0!==l?l:"",data:v,value:0},S=[p,(g+p)/2,g],A=[Af(bf.color1),Af(bf.color2),Af(bf.color3)],L=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[0]*(g-p)+p})):S,V=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[1]})):A,D=qv(t.layout);return{data:[k],domainValuesForColorScale:L,rangeValuesForColorScale:V,hideLegend:!0,showYAxisLables:!0,chartTitle:D.chartTitle,xAxisTitle:D.xAxisTitle,yAxisTitle:D.yAxisTitle,sortOrder:"none",width:null===(c=t.layout)||void 0===c?void 0:c.width,height:null!==(h=null===(f=t.layout)||void 0===f?void 0:f.height)&&void 0!==h?h:350,hideTickOverlap:!0,noOfCharsToTruncate:20,showYAxisLablesTooltip:!0}}(l),y,{legendProps:{}}));case"sankey":return a.createElement(xp,(0,o.Cl)({},function(t,n,i){var e,r,a,u,s,l,c,f,h=t.data[0],d=h.link,v=h.node,p=(null!==(e=null==d?void 0:d.value)&&void 0!==e?e:[]).map((function(t,n){return{value:t,source:null==d?void 0:d.source[n],target:null==d?void 0:d.target[n]}})).filter((function(t){return t.source>=0&&t.target>=0&&t.source!==t.target})),g={nodes:null===(r=v.label)||void 0===r?void 0:r.map((function(t,e){return{nodeId:e,name:t,color:Zv(t,n,i)}})),links:p.map((function(t,n){return(0,o.Cl)({},t)}))},m={root:(0,o.Cl)({},(null===(u=null===(a=t.layout)||void 0===a?void 0:a.font)||void 0===u?void 0:u.size)?{fontSize:null===(s=t.layout.font)||void 0===s?void 0:s.size}:{})};return{data:{chartTitle:qv(t.layout).chartTitle,SankeyChartData:g},width:null===(l=t.layout)||void 0===l?void 0:l.width,height:null!==(f=null===(c=t.layout)||void 0===c?void 0:c.height)&&void 0!==f?f:468,styles:m,enableReflow:!0}}(l,f,d),y));case"gauge":return a.createElement(wp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,S,A,L,V,D,N,T,O,E,F,B,P=t.data[0],_=(null===(r=null===(e=P.gauge)||void 0===e?void 0:e.steps)||void 0===r?void 0:r.length)?P.gauge.steps.map((function(t,e){var r,o,a=t.name||"Segment ".concat(e+1),u=Zv(a,n,i);return{legend:a,size:(null===(r=t.range)||void 0===r?void 0:r[1])-(null===(o=t.range)||void 0===o?void 0:o[0]),color:u}})):[{legend:"Current",size:null!==(o=P.value)&&void 0!==o?o:0-(null!==(l=null===(s=null===(u=null===(a=P.gauge)||void 0===a?void 0:a.axis)||void 0===u?void 0:u.range)||void 0===s?void 0:s[0])&&void 0!==l?l:0),color:Zv("Current",n,i)},{legend:"Target",size:(null!==(d=null===(h=null===(f=null===(c=P.gauge)||void 0===c?void 0:c.axis)||void 0===f?void 0:f.range)||void 0===h?void 0:h[1])&&void 0!==d?d:100)-(null!==(v=P.value)&&void 0!==v?v:0),color:bf.disabled}];if(null===(p=P.delta)||void 0===p?void 0:p.reference){var H=P.value-P.delta.reference;H>=0?(F="▲ ".concat(H),B=Af(bf.success,i)):(F="▼ ".concat(Math.abs(H)),B=Af(bf.error,i))}var I={sublabel:{fill:B}},W=qv(t.layout).chartTitle;return{segments:_,chartValue:null!==(g=P.value)&&void 0!==g?g:0,chartTitle:W,sublabel:F,minValue:"number"==typeof(null===(b=null===(y=null===(m=P.gauge)||void 0===m?void 0:m.axis)||void 0===y?void 0:y.range)||void 0===b?void 0:b[0])?null===(C=null===(w=null===(x=P.gauge)||void 0===x?void 0:x.axis)||void 0===w?void 0:w.range)||void 0===C?void 0:C[0]:void 0,maxValue:"number"==typeof(null===(S=null===(k=null===(M=P.gauge)||void 0===M?void 0:M.axis)||void 0===k?void 0:k.range)||void 0===S?void 0:S[1])?null===(V=null===(L=null===(A=P.gauge)||void 0===A?void 0:A.axis)||void 0===L?void 0:L.range)||void 0===V?void 0:V[1]:void 0,chartValueFormat:function(){var t,n;return null!==(n=null===(t=P.value)||void 0===t?void 0:t.toString())&&void 0!==n?n:""},width:null===(D=t.layout)||void 0===D?void 0:D.width,height:null!==(T=null===(N=t.layout)||void 0===N?void 0:N.height)&&void 0!==T?T:220,styles:I,variant:(null===(E=null===(O=P.gauge)||void 0===O?void 0:O.steps)||void 0===E?void 0:E.length)?ov.MultipleSegments:ov.SingleSegment}}(l,f,d),y));case"verticalbar":return a.createElement(Mp,(0,o.Cl)({},function(t,n,i){var e,r,a,u=[],s=fp(t.data,t.layout),l=s.legends,c=s.hideLegend;t.data.forEach((function(t,e){var r,a,s;if(t.x){var c=ip(t.x),f=ap(t.x,null===(r=t.xbins)||void 0===r?void 0:r.start,null===(a=t.xbins)||void 0===a?void 0:a.end,null===(s=t.xbins)||void 0===s?void 0:s.size),h=f.map((function(){return[]})),d=0;t.x.forEach((function(n,i){var e,r,o=ep(f,n,c);-1!==o&&h[o].push(null!==(r=null===(e=t.y)||void 0===e?void 0:e[i])&&void 0!==r?r:1)}));var v=h.map((function(n){var i=up(t.histfunc,n);return d+=i,i}));f.forEach((function(r,a){var s=l[e],f=Zv(s,n,i),h=sp(t.histnorm,v[a],d,c?r.length:rp(r));u.push((0,o.Cl)({x:c?r.join(", "):op(r),y:h,legend:s,color:f},c?{}:{xAxisCalloutData:"[".concat(r.x0," - ").concat(r.x1,")")}))}))}}));var f=qv(t.layout),h=f.chartTitle,d=f.xAxisTitle,v=f.yAxisTitle;return{data:u,width:null===(e=t.layout)||void 0===e?void 0:e.width,height:null!==(a=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==a?a:350,supportNegativeData:!0,chartTitle:h,xAxisTitle:d,yAxisTitle:v,mode:"histogram",hideTickOverlap:!0,maxBarWidth:50,hideLegend:c}}(l,f,d),y));case"area":case"line":case"fallback":case"scatterpolar":if("scatterpolar"===u.type){var w=function(t){for(var n=(0,o.Cl)({},t),i=0;i<t.data.length;i++){var e=t.data[i];e.x=[],e.y=[];for(var r=0;r<e.r.length;r++){var a=e.theta[r]*Math.PI/180,u=e.r[r];e.x[r]=u*Math.cos(a),e.y[r]=u*Math.sin(a)}n.data[i]=e}return n}(l);l.data=w.data}return function(t){void 0===t&&(t=!1);var n=l.data[0].x,i=Tv(n),e=Ov(n),r=Nv(n,Gv),u=Ev(n);if((i||e)&&!u)return b(l.data,t);if(r){var s=l.data.map((function(t){return(0,o.Cl)((0,o.Cl)({},t),{x:Uv(t.x)})}));return b(s,t)}if(t)throw new Error("Fallback to VerticalStackedBarChart is not allowed for Area Charts.");return a.createElement(pp,(0,o.Cl)({},tp(l,f,d,!0),y))}(l.data.some((function(t){return"tonexty"===t.fill||"tozeroy"===t.fill||!!t.stackgroup})));default:throw new Error("Unsupported chart type :".concat(null===(e=l.data[0])||void 0===e?void 0:e.type))}}));kp.displayName="DeclarativeChart",kp.defaultProps={useFluentVizColorPalette:!0},(0,i(887).v)("@fluentui/react-charting","0.0.0"),FluentUIReactCharting=e}();
|
|
1
|
+
var FluentUIReactCharting;!function(){"use strict";var t={40:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(823),o=i(638),a="__stylesheet__",u="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,n){var i,e,o,a,u,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.Cl)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(u=null==n?void 0:n.preservedRules)&&void 0!==u?u:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(n){if(e=s[a],s[o.Se])return s[o.Se].getInstance(n);if(!e||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var i=(null==s?void 0:s.FabricConfig)||{},r=new t(i.mergeStyles,i.serializedStylesheet);e=r,s[a]=r}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.Cl)((0,r.Cl)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[this._getCacheKey(n)]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[this._getCacheKey(t)]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n,i){void 0===i&&(i=o.P6);var e=this._config.injectionMode,r=0!==e?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),r)switch(e){case 1:this._insertRuleIntoSheet(r.sheet,t);break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(n){return n({key:i,sheet:r?r.sheet:void 0,rule:t})}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._createStyleElement=function(){var t,n=(null===(t=this._config.window)||void 0===t?void 0:t.document)||document,i=n.head,e=n.createElement("style"),r=null;e.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&e.setAttribute("nonce",o.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();r=a?a.nextElementSibling:i.childNodes[0]}return i.insertBefore(e,i.contains(r)?r:null),this._lastStyleElement=e,e},t.prototype._insertRuleIntoSheet=function(t,n){if(!t)return!1;try{return t.insertRule(n,t.cssRules.length),!0}catch(t){}return!1},t.prototype._getCacheKey=function(t){return t},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||(this._styleElement=this._createStyleElement(),u||(this._config.window||window).requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},41:function(t,n,i){var e,r,o,a,u;i.d(n,{BO:function(){return a},Dn:function(){return e},bi:function(){return r},s:function(){return o}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(u||(u={}))},143:function(t,n,i){i.d(n,{a:function(){return D}});var e,r=i(302);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=i(800),u=i(40),s=i(289),l=i(41),c="'Segoe UI', '".concat(l.Dn.WestEuropean,"'"),f={ar:l.bi.Arabic,bg:l.bi.Cyrillic,cs:l.bi.EastEuropean,el:l.bi.Greek,et:l.bi.EastEuropean,he:l.bi.Hebrew,hi:l.bi.Hindi,hr:l.bi.EastEuropean,hu:l.bi.EastEuropean,ja:l.bi.Japanese,kk:l.bi.EastEuropean,ko:l.bi.Korean,lt:l.bi.EastEuropean,lv:l.bi.EastEuropean,pl:l.bi.EastEuropean,ru:l.bi.Cyrillic,sk:l.bi.EastEuropean,"sr-latn":l.bi.EastEuropean,th:l.bi.Thai,tr:l.bi.EastEuropean,uk:l.bi.Cyrillic,vi:l.bi.Vietnamese,"zh-hans":l.bi.ChineseSimplified,"zh-hant":l.bi.ChineseTraditional,hy:l.bi.Armenian,ka:l.bi.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g=i(543),m=i(338),y=i(468),b="language",x=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,g.Y)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,m.z)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(b):"sessionStorage"===t?y.G(b):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.s.mini,l.BO.regular,p),xSmall:h(l.s.xSmall,l.BO.regular,p),small:h(l.s.small,l.BO.regular,p),smallPlus:h(l.s.smallPlus,l.BO.regular,p),medium:h(l.s.medium,l.BO.regular,p),mediumPlus:h(l.s.mediumPlus,l.BO.regular,p),large:h(l.s.large,l.BO.regular,p),xLarge:h(l.s.xLarge,l.BO.semibold,p),xLargePlus:h(l.s.xLargePlus,l.BO.semibold,p),xxLarge:h(l.s.xxLarge,l.BO.semibold,p),xxLargePlus:h(l.s.xxLargePlus,l.BO.semibold,p),superLarge:h(l.s.superLarge,l.BO.semibold,p),mega:h(l.s.mega,l.BO.semibold,p)});function w(t,n,i,e){!function(t){var n=u.nr.getInstance(),i=(0,s.bz)((0,a.Iy)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function C(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);w(n,o+"-light",l.BO.light,r&&r+" Light"),w(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),w(n,o+"-regular",l.BO.regular,r),w(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),w(n,o+"-bold",l.BO.bold,r&&r+" Bold")}function M(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)k(t||{},r[e]);return t}function k(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:k(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");C(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),C(n,l.Dn.Arabic,"segoeui-arabic"),C(n,l.Dn.Cyrillic,"segoeui-cyrillic"),C(n,l.Dn.EastEuropean,"segoeui-easteuropean"),C(n,l.Dn.Greek,"segoeui-greek"),C(n,l.Dn.Hebrew,"segoeui-hebrew"),C(n,l.Dn.Vietnamese,"segoeui-vietnamese"),C(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),C(n,l.bi.Selawik,"selawik","selawik"),C(n,l.Dn.Armenian,"segoeui-armenian"),C(n,l.Dn.Georgian,"segoeui-georgian"),w("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),w("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.BO.semibold)}}(function(){var t,n,i=null===(t=(0,m.z)())||void 0===t?void 0:t.FabricConfig;return null!==(n=null==i?void 0:i.fontBaseUrl)&&void 0!==n?n:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var S=i(823);function A(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(L(t,n,(0,S.Cl)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function L(t,n,i,e,r){void 0===r&&(r=!1);var o={},a=t||{},u=a.white,s=a.black,l=a.themePrimary,c=a.themeDark,f=a.themeDarker,h=a.themeDarkAlt,d=a.themeLighter,v=a.neutralLight,p=a.neutralLighter,g=a.neutralDark,m=a.neutralQuaternary,y=a.neutralQuaternaryAlt,b=a.neutralPrimary,x=a.neutralSecondary,w=a.neutralSecondaryAlt,C=a.neutralTertiary,M=a.neutralTertiaryAlt,k=a.neutralLighterAlt,A=a.accent;return u&&(o.bodyBackground=u,o.bodyFrameBackground=u,o.accentButtonText=u,o.buttonBackground=u,o.primaryButtonText=u,o.primaryButtonTextHovered=u,o.primaryButtonTextPressed=u,o.inputBackground=u,o.inputForegroundChecked=u,o.listBackground=u,o.menuBackground=u,o.cardStandoutBackground=u),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),A&&(o.accentButtonBackground=A),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,S.Cl)((0,S.Cl)({},o),i)}var V={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function D(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=M({},t,n,{semanticColors:L(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var a=0,u=Object.keys(o.fonts);a<u.length;a++){var s=u[a];o.fonts[s]=M(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.b,effects:o,fonts:x,spacing:V,isInverted:i,disableGlobalClassNames:!1,semanticColors:A(r.b,o,void 0,i,n),rtl:void 0},t)}},259:function(t,n,i){i.d(n,{jI:function(){return s}});var e,r=i(543),o=i(468),a=i(800),u="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.G)(u);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.Y)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.S)(u,t?"1":"0"),e=t,(0,a.DU)(e)}(e="1"===n);var i=(0,r.Y)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,a.DU)(e))}return!!e}},263:function(t,n,i){i.d(n,{J:function(){return r}});var e=i(419),r=function(t){var n,i,r,o=t.color,a=t.XValue,u=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[u.fonts.small,{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext}],calloutBlockContainer:[u.fonts.xxLarge,{marginTop:a?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:u.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[u.fonts.small,{lineHeight:"16px",color:u.semanticColors.bodyText,selectors:(i={},i[e.up]={color:"CanvasText"},i)}],calloutContentY:[u.fonts.xxLarge,{color:o||u.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.up]={color:"CanvasText"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[u.fonts.small,{marginLeft:"6px",color:u.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[u.fonts.small,{color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}}},289:function(t,n,i){i.d(n,{Ae:function(){return L},bz:function(){return S},kG:function(){return V},GJ:function(){return A}});var e,r=i(823),o=i(40),a={},u={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(u[r]){var o=t[n+1];u[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,a=r||o?"":"px";t[n+1]="".concat(e).concat(a)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t){var n=t.split(" "),i=parseInt(n[0],10);return n[0]=n[0].replace(String(i),String(-1*i)),n.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":host(")?t:0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function w(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([e],n,i=i+"{"+t,r):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return C([e],n,x(i,t),r)})):C([e],n,x(i,t),r)}function C(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r,o=n[i];o||(o={},n[i]=o,n.__order.push(i));for(var a=0,u=t;a<u.length;a++){var s=u[a];if("string"==typeof s){var l=e.argsFromClassName(s);l&&C(l,n,i,e)}else if(Array.isArray(s))C(s,n,i,e);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&w(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&w(i,n,c,f,e):void 0!==f&&("margin"===c||"padding"===c?M(o,c,f):o[c]=f)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function S(t,n){if(!n)return"";var i,e,r,o=[];for(var u in n)n.hasOwnProperty(u)&&u!==y&&void 0!==n[u]&&o.push(u,n[u]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=a[r]=a[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function A(t){for(var n,i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r=null!==(n=t.stylesheet)&&void 0!==n?n:o.nr.getInstance(t.shadowConfig),a=C(i,void 0,void 0,r),u=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var a=o[r];i.push(a);var u=n[a];for(var s in u)u.hasOwnProperty(s)&&void 0!==u[s]&&(e=!0,i.push(s,u[s]))}return e?i.join(""):void 0}(t,a);if(u){var s={className:r.classNameFromKey(u),key:u,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(a));for(var l=[],c=0,f=a.__order;c<f.length;c++){var h=f[c];l.push(h,S(t,a[h]))}s.rulesToInsert=l}return s}}function L(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),a=t.className,u=t.key,s=t.args,l=t.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var f=l[c+1];if(f){var h=l[c];h=h.replace(/&/g,k(".".concat(t.className),n));var d="".concat(h,"{").concat(f,"}").concat(0===h.indexOf("@")?"}":"");r.insertRule(d)}}r.cacheClassName(a,u,s,l)}}function V(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=A.apply(void 0,(0,r.fX)([t],n,!1));return e?(L(e,t.specificityMultiplier,t.shadowConfig,t.stylesheet),e.className):""}},302:function(t,n,i){i.d(n,{b:function(){return e}});var e={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"}},338:function(t,n,i){i.d(n,{z:function(){return o}});var e=i(921),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.S)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},357:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(566),r=i(823),o=i(594),a=i(873),u=i(607),s=(0,a.Z)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,a=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(a,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,u.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,u.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,u.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,u.U)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(263),f=(0,e.I)(l,c.J)},419:function(t,n,i){i.d(n,{lw:function(){return K},bp:function(){return Mt.b},s:function(){return kt.s},BO:function(){return kt.BO},up:function(){return it},nA:function(){return nt},QN:function(){return ot},gm:function(){return rt},Km:function(){return tt},O4:function(){return Ct},dX:function(){return J}});var e=i(916),r=i(800),o=i(40),a=i(289);function u(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,a.bz)((0,r.Iy)(),t[e]),"}");var u=i.join(""),s=n.classNameFromKey(u);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(u,"}"),!0),n.cacheClassName(l,u,[],["keyframes",u]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=u({from:{opacity:0},to:{opacity:1}}),p=u({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=G(-10),m=G(-20),y=G(-40),b=G(-400),x=G(10),w=G(20),C=G(40),M=G(400),k=q(10),S=q(20),A=q(-10),L=q(-20),V=U(10),D=U(20),N=U(40),T=U(400),O=U(-10),E=U(-20),F=U(-40),B=U(-400),P=Z(-10),_=Z(-20),H=Z(10),I=Z(20),W=u({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=u({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),$=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Y=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function G(t){return u({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function q(t){return u({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.Z)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:X("".concat(v,",").concat(g),h,s),slideRightIn20:X("".concat(v,",").concat(m),h,s),slideRightIn40:X("".concat(v,",").concat(y),h,s),slideRightIn400:X("".concat(v,",").concat(b),h,s),slideLeftIn10:X("".concat(v,",").concat(x),h,s),slideLeftIn20:X("".concat(v,",").concat(w),h,s),slideLeftIn40:X("".concat(v,",").concat(C),h,s),slideLeftIn400:X("".concat(v,",").concat(M),h,s),slideUpIn10:X("".concat(v,",").concat(k),h,s),slideUpIn20:X("".concat(v,",").concat(S),h,s),slideDownIn10:X("".concat(v,",").concat(A),h,s),slideDownIn20:X("".concat(v,",").concat(L),h,s),slideRightOut10:X("".concat(p,",").concat(V),h,s),slideRightOut20:X("".concat(p,",").concat(D),h,s),slideRightOut40:X("".concat(p,",").concat(N),h,s),slideRightOut400:X("".concat(p,",").concat(T),h,s),slideLeftOut10:X("".concat(p,",").concat(O),h,s),slideLeftOut20:X("".concat(p,",").concat(E),h,s),slideLeftOut40:X("".concat(p,",").concat(F),h,s),slideLeftOut400:X("".concat(p,",").concat(B),h,s),slideUpOut10:X("".concat(p,",").concat(P),h,s),slideUpOut20:X("".concat(p,",").concat(_),h,s),slideDownOut10:X("".concat(p,",").concat(H),h,s),slideDownOut20:X("".concat(p,",").concat(I),h,s),scaleUpIn100:X("".concat(v,",").concat(W),h,s),scaleDownIn100:X("".concat(v,",").concat(z),h,s),scaleUpOut103:X("".concat(p,",").concat(j),c,l),scaleDownOut98:X("".concat(p,",").concat(R),c,l),fadeIn100:X(v,c,l),fadeIn200:X(v,f,l),fadeIn400:X(v,h,l),fadeIn500:X(v,d,l),fadeOut100:X(p,c,l),fadeOut200:X(p,f,l),fadeOut400:X(p,h,l),fadeOut500:X(p,d,l),rotate90deg:X($,"0.1s",l),rotateN90deg:X(Y,"0.1s",l)}),J={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Q=(0,i(753).J9)((function(t,n){var i=o.nr.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function tt(t,n,i){return Q(t,void 0!==i?i:n.disableGlobalClassNames)}var nt,it="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",et=i(517);function rt(t,n,i,e,r,o,a,u){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,a=void 0===o?0:o,u=n.width,s=void 0===u?1:u,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(et.Y2," &").concat(m?":focus":"",":after, :host(.").concat(et.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:nt.FocusStyle,borderRadius:r,selectors:(e={},e[it]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:a,borderRadius:u})}function ot(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(nt||(nt={}));var at,ut=i(823),st=i(338),lt=i(540),ct=function(){return ct=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},ct.apply(this,arguments)},ft="undefined"==typeof window?i.g:window,ht=ft&&ft.CSPSettings&&ft.CSPSettings.nonce,dt=((at=ft.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(at=ct({},at,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),at.registeredThemableStyles||(at=ct({},at,{registeredThemableStyles:[]})),ft.__themeState__=at,at);function vt(t){dt.theme=t,function(){if(dt.theme){for(var t=[],n=0,i=dt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(pt(dt.registeredStyles),dt.registeredStyles=[]),3!==o&&1!==o||(pt(dt.registeredThemableStyles),dt.registeredThemableStyles=[]),r=[].concat.apply([],t),dt.loadStyles?dt.loadStyles(gt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=gt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",ht&&i.setAttribute("nonce",ht),i.appendChild(document.createTextNode(r)),dt.perf.count++,n.appendChild(i);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:i},document.dispatchEvent(a);var u={styleElement:i,themableStyle:t};o?dt.registeredThemableStyles.push(u):dt.registeredStyles.push(u)}}(r))}var r,o}()}function pt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function gt(t){var n=dt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var mt=i(143),yt=(0,mt.a)({}),bt=[],xt="theme";function wt(){var t,n,i,e=(0,st.z)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),yt=(0,mt.a)(t,n),vt((0,ut.Cl)((0,ut.Cl)((0,ut.Cl)((0,ut.Cl)({},yt.palette),yt.semanticColors),yt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],a=0,u=Object.keys(o);a<u.length;a++){var s=u[a],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(yt))),lt.X.applySettings(((i={})[xt]=yt,i)),bt.forEach((function(t){try{t(yt)}catch(t){}}))}(e.FabricConfig.legacyTheme):lt.X.getSettings([xt]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(yt=(0,mt.a)(e.FabricConfig.theme)),lt.X.applySettings(((t={})[xt]=yt,t)))}function Ct(t){return void 0===t&&(t=!1),!0===t&&(yt=(0,mt.a)({},t)),yt}wt();var Mt=i(302),kt=i(41);(0,i(887).v)("@fluentui/style-utilities","8.12.2"),wt()},468:function(t,n,i){i.d(n,{G:function(){return r},S:function(){return o}});var e=i(338);function r(t){var n=null;try{var i=(0,e.z)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.z)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},506:function(t,n,i){i.d(n,{T:function(){return o}});var e=i(823),r=i(638);function o(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles&&!(0,r.db)(t[0]))return t[0];for(var i={},a={},u=0,s=t;u<s.length;u++){var l=s[u];if(l&&!(0,r.db)(l))for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var f=l.subComponentStyles;for(var h in f)f.hasOwnProperty(h)&&(a.hasOwnProperty(h)?a[h].push(f[h]):a[h]=[f[h]]);continue}var d=i[c],v=l[c];i[c]=void 0===d?v:(0,e.fX)((0,e.fX)([],Array.isArray(d)?d:[d],!0),Array.isArray(v)?v:[v],!0)}}if(Object.keys(a).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(a.hasOwnProperty(t)){var n=a[t];p[t]=function(t){return o.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var h in a)g(h)}return i}},517:function(t,n,i){i.d(n,{Y2:function(){return e}});var e="ms-Fabric--isFocusVisible"},540:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(823),r=i(338),o="__globalSettings__",a="__callbacks__",u=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[a],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var u in e)e.hasOwnProperty(u)&&e[u](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(u++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.z)()||{};return n[o]||(n[o]=((t={})[a]={},t)),n[o]}function c(){return l()[a]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.Cl)((0,e.Cl)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.Cl)((0,e.Cl)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},a=0,u=t;a<u.length;a++){var s=u[a];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},543:function(t,n,i){i.d(n,{Y:function(){return r}});var e=i(921);function r(t){if((0,e.S)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},566:function(t,n,i){i.d(n,{I:function(){return d}});var e=i(823),r=i(594),o=i(506),a=i(638),u=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:u,useAdoptedStylesheet:u,useShadowConfig:function(){return a.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:u,useMergeStylesRootStylesheets:function(){return new Map},useWindow:s,useStyled:s}),c=function(){var t=r.useContext(l);return{useAdoptedStylesheet:t.useAdoptedStylesheet,useAdoptedStylesheetEx:t.useAdoptedStylesheetEx,useShadowConfig:t.useShadowConfig,useMergeStylesShadowRootContext:t.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:t.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:t.useMergeStylesRootStylesheets,useWindow:t.useWindow,useStyled:t.useStyled}},f=i(927),h=["theme","styles"];function d(t,n,i,a,u){var s=(a=a||{scope:"",fields:void 0}).scope,l=a.fields,d=void 0===l?h:l,v=r.forwardRef((function(a,u){var l=r.useRef(),h=(0,f.m)(d,s),v=h.styles,p=(h.dir,(0,e.Tt)(h,["styles","dir"])),g=i?i(a):void 0,m=c().useStyled,y=l.current&&l.current.__cachedInputs__||[],b=a.styles;if(!l.current||v!==y[1]||b!==y[2]){var x=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,a=n;r<a.length;r++){var u=a[r];u&&e.push("function"==typeof u?u(t):u)}return 1===e.length?e[0]:e.length?o.T.apply(void 0,e):{}}(t,n,v,b)};x.__cachedInputs__=[n,v,b],x.__noStyleOverride__=!v&&!b,l.current=x}return l.current.__shadowConfig__=m(s),r.createElement(t,(0,e.Cl)({ref:u},p,g,a,{styles:l.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=u?r.memo(v):v;return v.displayName&&(p.displayName=v.displayName),p}},594:function(t){t.exports=React},607:function(t,n,i){i.d(n,{U:function(){return e}});var e=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t}},638:function(t,n,i){i.d(n,{P6:function(){return e},Se:function(){return r},db:function(){return a},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},a=function(t){return!(!t||!function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}(t))&&!0===t.__isShadowConfig__}},753:function(t,n,i){i.d(n,{J5:function(){return f},J9:function(){return c}});var e=i(40),r=!1,o=0,a={empty:!0},u={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.nr.getInstance();c&&c.onReset&&e.nr.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(u[s]||(u[s]={val:s}),u[s]):a;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},770:function(t,n,i){i.d(n,{z:function(){return e}});var e=i(594).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},800:function(t,n,i){i.d(n,{DU:function(){return o},Iy:function(){return u}});var e,r=i(638);function o(t){e!==t&&(e=t)}function a(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function u(){return{rtl:a(),shadowConfig:r.ou}}e=a()},823:function(t,n,i){i.d(n,{C6:function(){return r},Cl:function(){return o},Tt:function(){return a},fX:function(){return u}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function a(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function u(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},873:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(40),r=i(823),o=i(506),a=i(962),u=i(289),s=i(638);var l=i(259),c=i(338),f=50,h=5,d=0,v=e.nr.getInstance();v&&v.onReset&&v.onReset((function(){return d++}));var p="__retval__";function g(t){void 0===t&&(t={});var n=new Map,i=0,v=0,g=d;return function(m,b){var x;if(void 0===b&&(b={}),t.useStaticStyles&&"function"==typeof m&&m.__noStyleOverride__)return m(b);v++;var w=m?m.__shadowConfig__:void 0,C=w&&w.window?w.window:"__default__";n.has(C)||n.set(C,new Map);var M=n.get(C),k=b.theme,S=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),A=t.disableCaching;if(g!==d&&(g=d,n.set(C,new Map),M=n.get(C),i=0),t.disableCaching||(M=y(n.get(C),m),M=y(M,b)),!A&&M[p]||(M[p]=void 0===m?{}:function(t,n){var i,l={subComponentStyles:{}},c=void 0;(0,s.db)(t[0])?(c=t[0],i=t[1]):i=t[0],null!=c||(c=null==n?void 0:n.shadowConfig);var f=(0,r.Cl)((0,r.Cl)({},n),{shadowConfig:c});if(!i&&t.length<=1)return{subComponentStyles:{}};var h=e.nr.getInstance(c);f.stylesheet=h;var d=o.T.apply(void 0,t),v=[];for(var p in d)if(d.hasOwnProperty(p)){if("subComponentStyles"===p){l.subComponentStyles=d.subComponentStyles||{};continue}if("__shadowConfig__"===p)continue;var g=d[p],m=(0,a.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(C=(0,u.GJ)(f||{},{displayName:p},b))&&(v.push(C),l[p]=y.concat([C.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var C;(C=w[x])&&(0,u.Ae)(C,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!S,specificityMultiplier:t.useStaticStyles?h:void 0}),A||i++),i>(t.cacheSize||f)){var L=(0,c.z)();(null===(x=null==L?void 0:L.FabricConfig)||void 0===x?void 0:x.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(v,".")),console.trace()),n.get(C).clear(),i=0,t.disableCaching=!0}return M[p]}}function m(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function y(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=m(t,e[i]);else t=m(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=m(t,n[r]));return t}},887:function(t,n,i){i.d(n,{v:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},916:function(t,n,i){i.d(n,{Z:function(){return s}});var e=i(962),r=i(638),o=i(800),a=i(40),u=i(289);function s(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],o=n||{};(0,r.db)(i[0])&&(o.shadowConfig=i[0]),o.stylesheet=a.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,u.kG)(o,c)),l.join(" ")}(t,(0,o.Iy)())}},921:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{S:function(){return e}})},927:function(t,n,i){i.d(n,{m:function(){return a}});var e=i(594),r=i(540),o=i(770);function a(t,n){var i,a=(i=e.useState(0)[1],function(){return i((function(t){return++t}))}),u=e.useContext(o.z).customizations,s=u.inCustomizerContext;return e.useEffect((function(){return s||r.X.observe(a),function(){s||r.X.unobserve(a)}}),[s]),r.X.getSettings(t,n,u)}},962:function(t,n,i){i.d(n,{h:function(){return r}});var e=i(638);function r(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=[],o=[],a=t;return function t(n){for(var i=0,u=n;i<u.length;i++){var s=u[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=a.argsFromClassName(s);l?t(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&o.push(s)}}(n),{classes:r,objects:o}}}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};i.r(e),i.d(e,{AreaChart:function(){return Dh},CartesianChart:function(){return Xf},ChartHoverCard:function(){return js.ChartHoverCard},DataVizGradientPalette:function(){return $s},DataVizPalette:function(){return bf},DeclarativeChart:function(){return Sp},DonutChart:function(){return Of},GaugeChart:function(){return mv},GaugeChartVariant:function(){return ov},GaugeValueFormat:function(){return rv},GroupedVerticalBarChart:function(){return ed},HeatMapChart:function(){return ud},HorizontalBarChart:function(){return Bl},HorizontalBarChartVariant:function(){return d},HorizontalBarChartWithAxis:function(){return fv},Legends:function(){return Fc},LineChart:function(){return hh},MultiStackedBarChart:function(){return zh},MultiStackedBarChartVariant:function(){return Fh},NodesComposition:function(){return Bd},PieChart:function(){return Hh},ResponsiveContainer:function(){return dp},SankeyChart:function(){return Id},Shape:function(){return Sc},Sparkline:function(){return sv},StackedBarChart:function(){return Yh},Textbox:function(){return ah},TreeChart:function(){return iv},TreeTraverse:function(){return Pd},VerticalBarChart:function(){return Zh},VerticalStackedBarChart:function(){return Qh},getChartHoverCardStyles:function(){return rd.J},getColorFromToken:function(){return Af},getGradientFromToken:function(){return Ks},getNextColor:function(){return Sf},getNextGradient:function(){return Zs},withResponsiveContainer:function(){return vp}});var r=i(566),o=i(823),a=i(594),u=i(873),s=i(259),l=i(338),c=i(40),f="__currentId__",h=(0,l.z)()||{};void 0===h[f]&&(h[f]=0);var d,v=!1;function p(t){if(!v){var n=c.nr.getInstance();n&&n.onReset&&n.onReset(g),v=!0}return(void 0===t?"id__":t)+h[f]++}function g(t){void 0===t&&(t=0),h[f]=t}function m(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function y(t,n){var i=m(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(d||(d={}));function b(t,n){var i,e;if(void 0===n&&(n=!0),!t)return null;var r=n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t);return r||("function"!=typeof t.assignedElements&&(null===(i=t.assignedSlot)||void 0===i?void 0:i.parentNode)?t.assignedSlot:11===(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)?t.parentNode.host:t.parentNode)}function x(t,n,i){return null!=i||(i=document),!t||t===i.body||t instanceof Document?null:n(t)?t:x(b(t),n)}function w(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=b(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var C=i(543);function M(t,n,i){var e=S(t,t,!0,!1,!1,!0,void 0,void 0,n,i);return!!e&&(O(e),!0)}function k(t,n,i,e,r,o,a,u,s){var l;if(!n||!a&&n===t)return null;var c=A(n);if(r&&c&&(o||!D(n)&&!N(n))){var f=k(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,a,u,s);if(f){if(u&&V(f,!0,s)||!u)return f;var h=k(t,f.previousElementSibling,!0,!0,!0,o,a,u,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=k(t,d.previousElementSibling,!0,!0,!0,o,a,u,s);if(v)return v;d=d.parentElement}}}return i&&c&&V(n,u,s)?n:k(t,n.previousElementSibling,!0,!0,!0,o,a,u,s)||(e?null:k(t,n.parentElement,!0,!1,!1,o,a,u,s))}function S(t,n,i,e,r,o,a,u,s,l){var c;if(!n||n===t&&r&&!a)return null;var f=(s?L:A)(n);if(i&&f&&V(n,u,l))return n;if(!r&&f&&(o||!D(n)&&!N(n))){var h=S(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,a,u,s,l);if(h)return h}return n===t?null:S(t,n.nextElementSibling,!0,!0,!1,o,a,u,s,l)||(e?null:S(t,n.parentElement,!1,!1,!0,o,a,u,s,l))}function A(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute("data-is-visible");return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function L(t,n){var i=null!=n?n:(0,l.z)();return!!t&&A(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function V(t,n,i){if(void 0===i&&(i=!0),!t||t.disabled)return!1;var e=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(e=parseInt(r,10));var o=t.getAttribute?t.getAttribute("data-is-focusable"):null,a=null!==r&&e>=0,u=!(!i||!t.shadowRoot||!t.shadowRoot.delegatesFocus),s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||a||u);return n?-1!==e&&s:s}function D(t){return!!(t&&t.getAttribute&&t.getAttribute("data-focuszone-id"))}function N(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute("data-is-sub-focuszone"))}var T=void 0;function O(t){if(t){var n=(0,l.z)(t);n&&(void 0!==T&&n.cancelAnimationFrame(T),T=n.requestAnimationFrame((function(){t&&t.focus(),T=void 0})))}}function E(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function F(t,n){for(var i=(0,o.Cl)({},n),e=0,r=Object.keys(t);e<r.length;e++){var a=r[e];void 0===i[a]&&(i[a]=t[a])}return i}var B=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],a=0,u=Array.isArray(o)?o:Object.keys(o);a<u.length;a++)i[u[a]]=1;return i},P=B(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),_=B(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),H=B(_,P),I=(B(H,["form"]),B(H,["height","loop","muted","preload","src","width"])),W=(B(I,["poster"]),B(H,["start"]),B(H,["value"]),B(H,["download","href","hrefLang","media","rel","target","type"]),B(H,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),R=(B(W,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),B(W,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),B(W,["form","multiple","required"]),B(H,["selected","value"]),B(H,["cellPadding","cellSpacing"]),B(H,["rowSpan","scope"]),B(H,["colSpan","headers","rowSpan","scope"]),B(H,["span"]),B(H,["span"]),B(H,["acceptCharset","action","encType","encType","method","noValidate","target"]),B(H,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),B(H,["alt","crossOrigin","height","src","srcSet","useMap","width"]),H);function z(t,n,i){for(var e=Array.isArray(n),r={},o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];!(!e&&n[u]||e&&n.indexOf(u)>=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(u))||(r[u]=t[u])}return r}function j(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var a in o)o[a]&&i.push(a)}return i.join(" ")}function $(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return Y.apply(this,[null,t].concat(n))}function Y(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var a=o[r];if(a)for(var u in a)!a.hasOwnProperty(u)||t&&!t(u)||(n[u]=a[u])}return n}var X,G,q,U=i(916),Z=((0,U.Z)({overflow:"hidden !important"}),"data-is-scrollable");function K(t){for(var n=t,i=(0,C.Y)(t);n&&n!==i.body;){if("true"===n.getAttribute(Z))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(Z)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,l.z)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(G||(G={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(q||(q={}));var J,Q=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function tt(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var nt=((J={})[0]=tt(G.top,G.left),J[1]=tt(G.top),J[2]=tt(G.top,G.right),J[3]=tt(G.top,void 0,!0),J[4]=tt(G.bottom,G.left),J[5]=tt(G.bottom),J[6]=tt(G.bottom,G.right),J[7]=tt(G.bottom,void 0,!0),J[8]=tt(G.left,G.top),J[9]=tt(G.left),J[10]=tt(G.left,G.bottom),J[11]=tt(G.right,G.top),J[12]=tt(G.right),J[13]=tt(G.right,G.bottom),J);function it(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function et(t,n){var i=[];return t.top<n.top&&i.push(G.top),t.bottom>n.bottom&&i.push(G.bottom),t.left<n.left&&i.push(G.left),t.right>n.right&&i.push(G.right),i}function rt(t,n){return t[G[n]]}function ot(t,n,i){return t[G[n]]=i,t}function at(t,n){var i=yt(n);return(rt(t,i.positiveEdge)+rt(t,i.negativeEdge))/2}function ut(t,n){return t>0?n:-1*n}function st(t,n){return ut(t,rt(n,t))}function lt(t,n,i){return ut(i,rt(t,i)-rt(n,i))}function ct(t,n,i,e){void 0===e&&(e=!0);var r=rt(t,n)-i,o=ot(t,n,i);return e&&(o=ot(t,-1*n,rt(t,-1*n)-r)),o}function ft(t,n,i,e){return void 0===e&&(e=0),ct(t,i,rt(n,i)+ut(i,e))}function ht(t,n,i){return st(i,t)>st(i,n)}function dt(t,n){for(var i=0,e=0,r=et(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(lt(t,n,o),2)}return i}function vt(t,n,i,e){return void 0===e&&(e=200),(i===G.bottom||i===G.top)&<(t,n,i)>=e}function pt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var a=o[r],u=void 0;e&&e===-1*a?(u=ct(n.elementRectangle,a,rt(i,a),!1),n.forcedInBounds=!0):ht(u=ft(n.elementRectangle,i,a),i,-1*a)||(u=ct(u,-1*a,rt(i,-1*a),!1),n.forcedInBounds=!0),n.elementRectangle=u}return n}function gt(t,n,i){var e=yt(n).positiveEdge;return ct(t,e,i-(at(t,n)-rt(t,e)))}function mt(t,n,i,e,r){void 0===e&&(e=0);var o=new Q(t.left,t.right,t.top,t.bottom),a=i.alignmentEdge,u=i.targetEdge,s=r?u:-1*u;return o=r?ft(o,n,u,e):function(t,n,i,e){void 0===e&&(e=0);var r=ut(-1*i,e);return ct(t,-1*i,rt(n,i)+r)}(o,n,u,e),o=a?ft(o,n,a):gt(o,s,at(n,u))}function yt(t){return t===G.top||t===G.bottom?{positiveEdge:G.left,negativeEdge:G.right}:{positiveEdge:G.top,negativeEdge:G.bottom}}function bt(t,n,i){return i&&Math.abs(lt(t,i,n))>Math.abs(lt(t,i,-1*n))?-1*n:n}function xt(t,n,i,e,r,o,a,u){var s,l={},c=Mt(n),f=o?i:-1*i,h=r||yt(i).positiveEdge;return a&&!function(t,n,i){return void 0!==i&&rt(t,n)===rt(i,n)}(t,(s=h,-1*s),e)||(h=bt(t,h,e)),l[G[f]]=lt(t,c,f),l[G[h]]=lt(t,c,h),u&&(l[G[-1*f]]=lt(t,c,-1*f),l[G[-1*h]]=lt(t,c,-1*h)),l}function wt(t,n,i){var e=at(n,t),r=at(i,t),o=yt(t),a=o.positiveEdge,u=o.negativeEdge;return e<=r?a:u}function Ct(t,n,i,e,r,o,a,u,l){void 0===o&&(o=!1);var c=mt(t,n,e,r,l);return it(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,a,u,l){void 0===r&&(r=!1),void 0===a&&(a=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};u||l||(h=function(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===a&&(a=0);var u=[G.left,G.right,G.bottom,G.top];(0,s.jI)()&&(u[0]*=-1,u[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(ht(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&vt(n,i,f,o)){switch(f){case G.bottom:c.bottom=i.bottom;break;case G.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=dt(c,i);(!l||g<l)&&(l=g,d=f,v=h),u.splice(u.indexOf(f),1),u.length>0&&(u.indexOf(-1*f)>-1?f*=-1:(h=f,f=u.slice(-1)[0]),c=mt(t,n,{targetEdge:f,alignmentEdge:h},a))}return{elementRectangle:c=mt(t,n,{targetEdge:d,alignmentEdge:v},a),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,a));var d=et(h.elementRectangle,i),v=u?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,a=-1*r;return{elementRectangle:mt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:a},i,e),targetEdge:o,alignmentEdge:a}}(h,n,a,l);if(it(p.elementRectangle,i))return p;h=pt(et(p.elementRectangle,i),h,i,v)}else h=pt(d,h,i,v);else h=pt(d,h,i,v);return h}(c,n,i,e,o,a,r,u,l)}function Mt(t){var n=t.getBoundingClientRect();return new Q(n.left,n.right,n.top,n.bottom)}function kt(t,n,i,e,r,a){void 0===r&&(r=!1);var u=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new Q(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=Mt(n);else{var r=n,o=r.left||r.x,a=r.top||r.y,u=r.right||o,s=r.bottom||a;i=new Q(o,u,a,s)}if(!it(i,t))for(var l=0,c=et(i,t);l<c.length;l++){var f=c[l];i[G[f]]=t[G[f]]}}else i=new Q(0,0,0,0);return i}(i,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=wt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,n,i){if(void 0===t&&(t=7),i)return{alignmentEdge:i.alignmentEdge,isAuto:i.isAuto,targetEdge:i.targetEdge};var e=(0,o.Cl)({},nt[t]);return(0,s.jI)()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==n?nt[n]:e):e}(t.directionalHint,t.directionalHintForRTL,e),l,i,t.coverTarget,t.alignTargetEdge),f=Ct(Mt(n),l,i,c,u,r,a,t.directionalHintFixed,t.coverTarget);return(0,o.Cl)((0,o.Cl)({},f),{targetRectangle:l})}function St(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function At(t,n,i,e,r,a,u,s){void 0===r&&(r=!1);var c=null!=s?s:(0,l.z)(),f=t.isBeakVisible&&t.beakWidth||0,h=St(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,w,M,k=t.bounds?(M=t.bounds,new Q(M.left,M.right,M.top,M.bottom)):new Q(0,c.innerWidth-function(){if(void 0===X){var t=(0,C.Y)(),n=t.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),t.body.appendChild(n),X=n.offsetWidth-n.clientWidth,t.body.removeChild(n)}return X}(),0,c.innerHeight),S=kt(d,i,k,e,r,a),A=(v=S,p=function(t,n){var i=n.targetRectangle,e=yt(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,a=at(i,n.targetEdge),u=new Q(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new Q(0,t,0,t);return ht(s=gt(s=ct(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,a-st(r,n.elementRectangle)),u,r)?ht(s,u,o)||(s=ft(s,u,o)):s=ft(s,u,r),s}(f,S),g=k,m=-1*v.targetEdge,y=new Q(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=bt(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:yt(m).positiveEdge,g),w=lt(v.elementRectangle,v.targetRectangle,m)>Math.abs(rt(p,m)),b[G[m]]=rt(p,m),b[G[x]]=lt(p,y,x),{elementPosition:(0,o.Cl)({},b),closestEdge:wt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){return{elementPosition:xt(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(S,n,k,t.coverTarget,u)),{beakPosition:A})}var Lt=["TEMPLATE","STYLE","SCRIPT"];function Vt(t){var n=(0,C.Y)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Lt.indexOf(o.tagName)&&i.push([o,a])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Dt=27,Nt=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,l.z)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,l.z)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,a=n||0,u=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(u=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=u?a-h:a;return h>=a&&(!n||u)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,a,u=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,a)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=u&&(i=!0),f=n);var r=n-f,a=u-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:a=Math.min(a,c-v)),r>=u||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,a)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,l.z)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,l.z)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Tt(){var t=a.useRef();return t.current||(t.current=new Nt),a.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Ot(t,n,i,e){var r=a.useRef(i);r.current=i,a.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return E(i,n,(function(t){return r.current(t)}),e)}),[t,n,e])}function Et(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=a.useCallback((function(n){i.current=n;for(var e=0,r=t;e<r.length;e++){var o=r[e];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,o.fX)([],t,!0));return i}var Ft=a.createContext({window:"object"==typeof window?window:void 0}),Bt=function(){return a.useContext(Ft).window},Pt=function(){var t;return null===(t=a.useContext(Ft).window)||void 0===t?void 0:t.document};function _t(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,l.z)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var Ht=a.forwardRef((function(t,n){var i=F({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),e=a.useRef(),r=Et(e,n);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;a.useEffect((function(){if(i&&n.current)return Vt(n.current)}),[n,i])}(i,e),function(t,n){var i=t.onRestoreFocus,e=void 0===i?_t:i,r=a.useRef(),o=a.useRef(!1);a.useEffect((function(){var t,i,a;return r.current=(0,C.Y)().activeElement,t=n.current,(a=(i=(0,C.Y)(t))&&i.activeElement)&&w(t,a)&&(o.current=!0),function(){var t;null==e||e({originalElement:r.current,containsFocus:o.current,documentContainsFocus:(null===(t=(0,C.Y)())||void 0===t?void 0:t.hasFocus())||!1}),r.current=void 0}}),[]),Ot(n,"focus",a.useCallback((function(){o.current=!0}),[]),!0),Ot(n,"blur",a.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(o.current=!1)}),[]),!0)}(i,e);var u=i.role,s=i.className,l=i.ariaLabel,c=i.ariaLabelledBy,f=i.ariaDescribedBy,h=i.style,d=i.children,v=i.onDismiss,p=function(t,n){var i=Tt(),e=a.useState(!1),r=e[0],o=e[1];return a.useEffect((function(){return i.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var a=n.current.clientHeight,u=n.current.firstElementChild.clientHeight;a>0&&u>a&&(e=u-a>1)}r!==e&&o(e)}})),function(){return i.dispose()}})),r}(i,e),g=a.useCallback((function(t){t.which===Dt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Ot(Bt(),"keydown",g),a.createElement("div",(0,o.Cl)({ref:r},z(i,R),{className:s,role:u,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,o.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));Ht.displayName="Popup";var It=i(419);function Wt(t){var n=a.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Rt,zt=function(){var t;return null!==(t=Bt())&&void 0!==t?t:"undefined"!=typeof window?window:void 0},jt=function(t){var n,i;return null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document?document:void 0},$t=((Rt={})[G.top]=It.lw.slideUpIn10,Rt[G.bottom]=It.lw.slideDownIn10,Rt[G.left]=It.lw.slideLeftIn10,Rt[G.right]=It.lw.slideRightIn10,Rt),Yt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Xt=["role","aria-roledescription"],Gt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},qt=(0,u.Z)({disableCaching:!0});function Ut(t,n,i,e){var r,o=t.calloutMaxHeight,u=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=a.useState(),g=p[0],m=p[1],y=null!==(r=null==e?void 0:e.elementPosition)&&void 0!==r?r:{},b=y.top,x=y.bottom,w=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,a=t,u=t,s=null!==(n=u.left)&&void 0!==n?n:u.x,l=null!==(i=u.top)&&void 0!==i?i:u.y,c=null!==(e=u.right)&&void 0!==e?e:s,f=null!==(r=u.bottom)&&void 0!==r?r:l;return o.stopPropagation?new Q(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new Q(s,c,l,f):Mt(a)}(i.current):void 0;return a.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},a=r.top,u=r.bottom;(null==e?void 0:e.targetEdge)===G.top&&(null==w?void 0:w.top)&&!v&&(u=w.top-function(t,n,i){return St(t,n,i)}(d,h,f)),"number"==typeof b&&u?i=u-b:"number"==typeof x&&"number"==typeof a&&u&&(i=u-a-x),m(!o&&!c||o&&i&&o>i?i:o||void 0)}),[x,o,u,s,l,n,c,e,b,f,h,d,w,v]),g}function Zt(t,n,i,e,r,u){var s,c=a.useState(),f=c[0],h=c[1],d=a.useRef(0),v=a.useRef(),p=Tt(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=zt(),S=a.useRef();S.current!==u.current&&(S.current=u.current,s=u.current?null==k?void 0:k.getComputedStyle(u.current):void 0);var A=null==s?void 0:s.overflowY;return a.useEffect((function(){if(!g){var a=p.requestAnimationFrame((function(){var a,u,s,c;if(n.current&&i){var p=(0,o.Cl)((0,o.Cl)({},t),{target:e.current,bounds:r()}),g=i.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(a=i.parentElement)||void 0===a||a.appendChild(g);var w=v.current===m?f:void 0,S=M&&!(C||"clip"===A||"hidden"===A),L=y?function(t,n,i,e,r){return function(t,n,i,e,r){return At(t,n,i,e,!1,void 0,!0,null!=r?r:(0,l.z)())}(t,n,i,e,r)}(p,n.current,g,w,k):function(t,n,i,e,r,o,a){return At(t,n,i,e,r,void 0,void 0,a)}(p,n.current,g,w,S,0,k);null===(u=i.parentElement)||void 0===u||u.removeChild(g),!f&&L||f&&L&&(c=L,!Qt((s=f).elementPosition,c.elementPosition)||!Qt(s.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(L)):d.current>0&&(d.current=0,null==x||x(f))}}),i);return v.current=m,function(){p.cancelAnimationFrame(a),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,i,b,n,e,y,r,x,f,t,m,C,M,A,k]),f}var Kt=a.memo(a.forwardRef((function(t,n){var i=F(Gt,t),e=i.styles,r=i.style,u=i.ariaLabel,s=i.ariaDescribedBy,l=i.ariaLabelledBy,c=i.className,f=i.isBeakVisible,h=i.children,d=i.beakWidth,v=i.calloutWidth,p=i.calloutMaxWidth,g=i.calloutMinWidth,m=i.doNotLayer,y=i.finalHeight,b=i.hideOverflow,x=void 0===b?!!y:b,k=i.backgroundColor,S=i.calloutMaxHeight,A=i.onScroll,L=i.shouldRestoreFocus,V=void 0===L||L,D=i.target,N=i.hidden,T=i.onLayerMounted,O=i.popupProps,B=a.useRef(null),P=Et(a.useRef(null),null==O?void 0:O.ref),_=a.useState(null),H=_[0],I=_[1],W=a.useCallback((function(t){I(t)}),[]),$=Et(B,n),Y=function(t,n){var i,e,r,o=a.useRef(),u=a.useRef(null),s=Bt();if(!t||t!==o.current||"string"==typeof t){var l=null==n?void 0:n.current;if(t)if("string"==typeof t)if(null===(i=null==l?void 0:l.getRootNode())||void 0===i?void 0:i.host)u.current=null!==(r=null===(e=null==l?void 0:l.getRootNode())||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null;else{var c=(0,C.Y)(l);u.current=c?c.querySelector(t):null}else u.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;o.current=t}return[u,s]}(i.target,{current:H}),X=Y[0],G=Y[1],q=function(t,n,i){var e=t.bounds,r=t.minPagePadding,o=void 0===r?Gt.minPagePadding:r,u=t.target,s=a.useState(!1),l=s[0],c=s[1],f=a.useRef(),h=a.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(u,i):void 0:e;!t&&i&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,s=i;u<s.length;u++){var l=s[u];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return a}(t,n)}(n.current,i),t={top:t.top+o,left:t.left+o,right:t.right-o,bottom:t.bottom-o,width:t.width-2*o,height:t.height-2*o}),f.current=t,l&&c(!1)}return f.current}),[e,o,u,n,i,l]),d=Tt();return Ot(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(i,X,G),U=Zt(i,B,H,X,q,P),Z=Ut(i,q,X,U),K=function(t,n,i,e,r){var o=t.hidden,u=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=a.useRef(!1),p=Tt(),g=Wt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return a.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==u||u(t)},a=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],o=n.length>0?n[0]:t.target,a=i.current&&!w(i.current,o);if(a&&v.current)v.current=!1;else if(!e.current&&a||t.target!==r&&a&&(!e.current||"stopPropagation"in e.current||f||o!==e.current&&!w(e.current,o))){if(d&&d(t))return;null==u||u(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==r?void 0:r.document.hasFocus())||null!==t.relatedTarget||null==u||u(t))},b=new Promise((function(i){p.setTimeout((function(){if(!o&&r){var e=[E(r,"scroll",t,!0),E(r,"resize",n,!0),E(r.document.documentElement,"focus",a,!0),E(r.document.documentElement,"click",a,!0),E(r,"blur",y,!0)];i((function(){e.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[o,p,i,e,r,u,h,f,c,l,s,m,d]),g}(i,U,B,X,G),J=K[0],Q=K[1],tt=(null==U?void 0:U.elementPosition.top)&&(null==U?void 0:U.elementPosition.bottom),nt=(0,o.Cl)((0,o.Cl)({},null==U?void 0:U.elementPosition),{maxHeight:Z});if(tt&&(nt.bottom=void 0),function(t,n,i){var e=t.hidden,r=t.setInitialFocus,o=Tt(),u=!!n;a.useEffect((function(){if(!e&&r&&u&&i){var t=o.requestAnimationFrame((function(){return M(i)}),i);return function(){return o.cancelAnimationFrame(t)}}}),[e,u,o,i,r])}(i,U,H),a.useEffect((function(){N||null==T||T()}),[N]),!G)return null;var it=x,et=f&&!!D,rt=qt(e,{theme:i.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:U,beakWidth:d,backgroundColor:k,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,o.Cl)((0,o.Cl)({maxHeight:S||"100%"},r),it&&{overflowY:"hidden"}),at=i.hidden?{visibility:"hidden"}:void 0;return a.createElement("div",{ref:$,className:rt.container,style:at},a.createElement("div",(0,o.Cl)({},z(i,R,Xt),{className:j(rt.root,U&&U.targetEdge&&$t[U.targetEdge]),style:U?(0,o.Cl)({},nt):Yt,tabIndex:-1,ref:W}),et&&a.createElement("div",{className:rt.beak,style:Jt(U)}),et&&a.createElement("div",{className:rt.beakCurtain}),a.createElement(Ht,(0,o.Cl)({role:i.role,"aria-roledescription":i["aria-roledescription"],ariaDescribedBy:s,ariaLabel:u,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:i.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:i.onRestoreFocus,onScroll:A,shouldRestoreFocus:V,style:ot},O,{ref:P}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function Jt(t){var n,i,e=(0,o.Cl)((0,o.Cl)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.hideBeak)?"none":void 0});return e.top||e.bottom||e.left||e.right||(e.left=0,e.top=0),e}function Qt(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function tn(t){return{height:t,width:t}}Kt.displayName="CalloutContentBase";var nn={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},en=(0,r.I)(Kt,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,a=t.beakWidth,u=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,It.Km)(nn,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?It.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[It.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,It.QN)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},tn(a),u&&{backgroundColor:u}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},u&&{backgroundColor:u}]}}),void 0,{scope:"CalloutContent"}),rn=a.createContext(void 0),on=function(){return function(){}};rn.Provider;var an=ReactDOM,un=i(753);new WeakMap,new WeakMap;var sn=a.createContext(void 0),ln=function(t){var n=t.providerRef,i=t.layerRoot,e=a.useState([])[0],r=a.useContext(sn),o=void 0!==r&&!i,u=a.useMemo((function(){return o?void 0:{providerRef:n,registeredProviders:e,registerProvider:function(t){e.push(t),null==r||r.registerProvider(t)},unregisterProvider:function(t){null==r||r.unregisterProvider(t);var n=e.indexOf(t);n>=0&&e.splice(n,1)}}}),[n,e,r,o]);return a.useEffect((function(){if(u)return u.registerProvider(u.providerRef),function(){return u.unregisterProvider(u.providerRef)}}),[u]),u?a.createElement(sn.Provider,{value:u},t.children):a.createElement(a.Fragment,null,t.children)},cn=i(540),fn=i(770);function hn(t,n){void 0===t&&(t={});var i=dn(n)?n:function(t){return function(n){return t?(0,o.Cl)((0,o.Cl)({},n),t):n}}(n);return i(t)}function dn(t){return"function"==typeof t}var vn=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){cn.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){cn.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return a.createElement(fn.z.Consumer,null,(function(i){var e=function(t,n){var i,e,r,a=(n||{}).customizations,u=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:hn(u.settings,t.settings),scopedSettings:(i=u.scopedSettings,e=t.scopedSettings,void 0===i&&(i={}),(dn(e)?e:(void 0===(r=e)&&(r={}),function(t){var n=(0,o.Cl)({},t);for(var i in r)r.hasOwnProperty(i)&&(n[i]=(0,o.Cl)((0,o.Cl)({},t[i]),r[i]));return n}))(i)),inCustomizerContext:!0}}}(t.props,i);return n&&(e=n(e)),a.createElement(fn.z.Provider,{value:e},t.props.children)}))},n}(a.Component),pn=i(143),gn=(0,u.Z)(),mn=(0,un.J9)((function(t,n){return(0,pn.a)((0,o.Cl)((0,o.Cl)({},t),{rtl:n}))})),yn=a.forwardRef((function(t,n){var i=t.className,e=t.theme,r=t.applyTheme,u=t.applyThemeToBody,l=t.styles,c=gn(l,{theme:e,applyTheme:r,className:i}),f=a.useRef(null);return function(t,n,i){var e=n.bodyThemed;a.useEffect((function(){if(t){var n=(0,C.Y)(i.current);if(n)return n.body.classList.add(e),function(){n.body.classList.remove(e)}}}),[e,t,i])}(u,c,f),a.createElement(a.Fragment,null,function(t,n,i,e){var r=n.root,u=t.as,l=void 0===u?"div":u,c=t.dir,f=t.theme,h=z(t,R,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,s.jI)(n)?"rtl":"ltr",r=(0,s.jI)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=a.createElement(ln,{providerRef:i},a.createElement(l,(0,o.Cl)({dir:v},h,{className:r,ref:Et(i,e)})));return p&&(g=a.createElement(vn,{settings:{theme:mn(f,"rtl"===c)}},g)),g}(t,c,f,n))}));yn.displayName="FabricBase";var bn,xn={fontFamily:"inherit"},wn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Cn=(0,r.I)(yn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,It.Km)(wn,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":xn,"& input":xn,"& textarea":xn},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Mn=i(517),kn="data-portal-element",Sn={},An={},Ln="fluent-default-layer-host",Vn="#".concat(Ln),Dn=i(921),Nn=(0,Dn.S)()?a.useLayoutEffect:a.useEffect,Tn=(0,u.Z)(),On=a.forwardRef((function(t,n){var i,e=null!==(i=a.useContext(rn))&&void 0!==i?i:on,r=a.useRef(null),u=Et(r,n),s=a.useRef(),l=a.useRef(null),c=a.useContext(sn),f=a.useState(!1),h=f[0],d=f[1],v=a.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Mn.Y2);t&&i&&t.classList.add(Mn.Y2)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,w=t.onLayerDidMount,M=void 0===w?function(){}:w,k=t.onLayerMounted,S=void 0===k?function(){}:k,A=t.onLayerWillUnmount,L=t.styles,V=t.theme,D=Et(l,null==y?void 0:y.ref,v),N=Tn(L,{theme:V,className:g,isNotHost:!b}),T=function(){null==A||A();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,o=(0,C.Y)(r.current),a=(null===(n=null===(t=r.current)||void 0===t?void 0:t.getRootNode())||void 0===n?void 0:n.host)?null===(i=null==r?void 0:r.current)||void 0===i?void 0:i.getRootNode():void 0;if(o&&(o||a)){var u=function(t,n){var i,e;void 0===n&&(n=null);var r=null!=n?n:t;if(b){var o=function(t){var n=An[t];return n&&n[0]||void 0}(b);return o?null!==(i=o.rootRef.current)&&void 0!==i?i:null:null!==(e=r.getElementById(b))&&void 0!==e?e:null}var a=Vn,u=a?r.querySelector(a):null;return u||(u=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",Ln),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),u}(o,a);if(u){u.__tabsterElementFlags||(u.__tabsterElementFlags={}),u.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=u.ownerDocument)&&void 0!==e?e:o).createElement("div");l.className=N.root,l.setAttribute(kn,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(l,r.current),x?u.insertBefore(l,u.firstChild):u.appendChild(l),s.current=l,d(!0)}}};return Nn((function(){O(),b&&function(t,n){Sn[t]||(Sn[t]=[]),Sn[t].push(n);var i=An[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);var t=s.current?e(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=Sn[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete Sn[t])}var r=An[t];if(r)for(var o=0,a=r;o<a.length;o++)a[o].notifyLayersChanged()}(b,O)}}),[b]),a.useEffect((function(){s.current&&h&&(null==S||S(),null==M||M(),d(!1))}),[h,S,M]),a.createElement("span",{className:"ms-layer",ref:u},s.current&&an.createPortal(a.createElement(ln,{layerRoot:!0,providerRef:D},a.createElement(Cn,(0,o.Cl)({},!m&&(bn||(bn={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return bn[t]=En}))),bn),y,{className:j(N.content,null==y?void 0:y.className),ref:D}),p)),s.current))}));On.displayName="LayerBase";var En=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Fn={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Bn=(0,r.I)(On,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,It.Km)(Fn,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:It.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Pn=a.forwardRef((function(t,n){var i=t.layerProps,e=t.doNotLayer,r=(0,o.Tt)(t,["layerProps","doNotLayer"]),u=a.createElement(en,(0,o.Cl)({},r,{doNotLayer:e,ref:n}));return e?u:a.createElement(Bn,(0,o.Cl)({},i),u)}));Pn.displayName="Callout";var _n=i(607);function Hn(t){return t}var In=1e-6;function Wn(t){return"translate("+t+",0)"}function Rn(t){return"translate(0,"+t+")"}function zn(t){return n=>+t(n)}function jn(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function $n(){return!this.__axis}function Yn(t,n){var i=[],e=null,r=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",f=1===t||3===t?Wn:Rn;function h(h){var d=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,v=null==r?n.tickFormat?n.tickFormat.apply(n,i):Hn:r,p=Math.max(o,0)+u,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?jn:zn)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),C=x.selectAll(".tick").data(d,n).order(),M=C.exit(),k=C.enter().append("g").attr("class","tick"),S=C.select("line"),A=C.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),A=A.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),C=C.transition(h),S=S.transition(h),A=A.transition(h),M=M.transition(h).attr("opacity",In).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",In).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),w.attr("d",4===t||2===t?a?"M"+l*a+","+m+"H"+s+"V"+y+"H"+l*a:"M"+s+","+m+"V"+y:a?"M"+m+","+l*a+"V"+s+"H"+y+"V"+l*a:"M"+m+","+s+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),S.attr(c+"2",l*o),A.attr(c,l*p).text(v),x.filter($n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return i=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:Array.from(t),h):e&&e.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function Xn(t){return Yn(2,t)}function Gn(t){return Yn(3,t)}function qn(t){return Yn(4,t)}const Un=Math.sqrt(50),Zn=Math.sqrt(10),Kn=Math.sqrt(2);function Jn(t,n,i){const e=(n-t)/Math.max(0,i),r=Math.floor(Math.log10(e)),o=e/Math.pow(10,r),a=o>=Un?10:o>=Zn?5:o>=Kn?2:1;let u,s,l;return r<0?(l=Math.pow(10,-r)/a,u=Math.round(t*l),s=Math.round(n*l),u/l<t&&++u,s/l>n&&--s,l=-l):(l=Math.pow(10,r)*a,u=Math.round(t/l),s=Math.round(n/l),u*l<t&&++u,s*l>n&&--s),s<u&&.5<=i&&i<2?Jn(t,n,2*i):[u,s,l]}function Qn(t,n,i){if(!((i=+i)>0))return[];if((t=+t)===(n=+n))return[t];const e=n<t,[r,o,a]=e?Jn(n,t,i):Jn(t,n,i);if(!(o>=r))return[];const u=o-r+1,s=new Array(u);if(e)if(a<0)for(let t=0;t<u;++t)s[t]=(o-t)/-a;else for(let t=0;t<u;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)s[t]=(r+t)/-a;else for(let t=0;t<u;++t)s[t]=(r+t)*a;return s}function ti(t,n,i){return Jn(t=+t,n=+n,i=+i)[2]}function ni(t,n,i){i=+i;const e=(n=+n)<(t=+t),r=e?ti(n,t,i):ti(t,n,i);return(e?-1:1)*(r<0?1/-r:r)}function ii(t,n,i){let e;for(;;){const r=ti(t,n,i);if(r===e||0===r||!isFinite(r))return[t,n];r>0?(t=Math.floor(t/r)*r,n=Math.ceil(n/r)*r):r<0&&(t=Math.ceil(t*r)/r,n=Math.floor(n*r)/r),e=r}}function ei(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}function ri(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function oi(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function ai(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function ui(t){let n,i,e;function r(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<0?r=n+1:o=n}while(r<o)}return r}return 2!==t.length?(n=oi,i=(n,i)=>oi(t(n),i),e=(n,i)=>t(n)-i):(n=t===oi||t===ai?t:si,i=t,e=t),{left:r,center:function(t,n,i=0,o=t.length){const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<=0?r=n+1:o=n}while(r<o)}return r}}}function si(){return 0}const li=ui(oi),ci=li.right;li.left,ui((function(t){return null===t?NaN:+t})).center;var fi=ci;function hi(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function di(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function vi(){}var pi=.7,gi=1/pi,mi="\\s*([+-]?\\d+)\\s*",yi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xi=/^#([0-9a-f]{3,8})$/,wi=new RegExp(`^rgb\\(${mi},${mi},${mi}\\)$`),Ci=new RegExp(`^rgb\\(${bi},${bi},${bi}\\)$`),Mi=new RegExp(`^rgba\\(${mi},${mi},${mi},${yi}\\)$`),ki=new RegExp(`^rgba\\(${bi},${bi},${bi},${yi}\\)$`),Si=new RegExp(`^hsl\\(${yi},${bi},${bi}\\)$`),Ai=new RegExp(`^hsla\\(${yi},${bi},${bi},${yi}\\)$`),Li={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 Vi(){return this.rgb().formatHex()}function Di(){return this.rgb().formatRgb()}function Ni(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=xi.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ti(n):3===i?new Fi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?Oi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?Oi(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=wi.exec(t))?new Fi(n[1],n[2],n[3],1):(n=Ci.exec(t))?new Fi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Mi.exec(t))?Oi(n[1],n[2],n[3],n[4]):(n=ki.exec(t))?Oi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Si.exec(t))?Wi(n[1],n[2]/100,n[3]/100,1):(n=Ai.exec(t))?Wi(n[1],n[2]/100,n[3]/100,n[4]):Li.hasOwnProperty(t)?Ti(Li[t]):"transparent"===t?new Fi(NaN,NaN,NaN,0):null}function Ti(t){return new Fi(t>>16&255,t>>8&255,255&t,1)}function Oi(t,n,i,e){return e<=0&&(t=n=i=NaN),new Fi(t,n,i,e)}function Ei(t,n,i,e){return 1===arguments.length?((r=t)instanceof vi||(r=Ni(r)),r?new Fi((r=r.rgb()).r,r.g,r.b,r.opacity):new Fi):new Fi(t,n,i,null==e?1:e);var r}function Fi(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function Bi(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function Pi(){const t=_i(this.opacity);return`${1===t?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${1===t?")":`, ${t})`}`}function _i(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Hi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ii(t){return((t=Hi(t))<16?"0":"")+t.toString(16)}function Wi(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new zi(t,n,i,e)}function Ri(t){if(t instanceof zi)return new zi(t.h,t.s,t.l,t.opacity);if(t instanceof vi||(t=Ni(t)),!t)return new zi;if(t instanceof zi)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),a=NaN,u=o-r,s=(o+r)/2;return u?(a=n===o?(i-e)/u+6*(i<e):i===o?(e-n)/u+2:(n-i)/u+4,u/=s<.5?o+r:2-o-r,a*=60):u=s>0&&s<1?0:a,new zi(a,u,s,t.opacity)}function zi(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function ji(t){return(t=(t||0)%360)<0?t+360:t}function $i(t){return Math.max(0,Math.min(1,t||0))}function Yi(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function Xi(t,n,i,e,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*e+a*r)/6}hi(vi,Ni,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Vi,formatHex:Vi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ri(this).formatHsl()},formatRgb:Di,toString:Di}),hi(Fi,Ei,di(vi,{brighter(t){return t=null==t?gi:Math.pow(gi,t),new Fi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pi:Math.pow(pi,t),new Fi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Fi(Hi(this.r),Hi(this.g),Hi(this.b),_i(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bi,formatHex:Bi,formatHex8:function(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pi,toString:Pi})),hi(zi,(function(t,n,i,e){return 1===arguments.length?Ri(t):new zi(t,n,i,null==e?1:e)}),di(vi,{brighter(t){return t=null==t?gi:Math.pow(gi,t),new zi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pi:Math.pow(pi,t),new zi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new Fi(Yi(t>=240?t-240:t+120,r,e),Yi(t,r,e),Yi(t<120?t+240:t-120,r,e),this.opacity)},clamp(){return new zi(ji(this.h),$i(this.s),$i(this.l),_i(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=_i(this.opacity);return`${1===t?"hsl(":"hsla("}${ji(this.h)}, ${100*$i(this.s)}%, ${100*$i(this.l)}%${1===t?")":`, ${t})`}`}}));var Gi=t=>()=>t;function qi(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):Gi(isNaN(t)?n:t)}var Ui=function t(n){var i=function(t){return 1===(t=+t)?qi:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):Gi(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Ei(t)).r,(n=Ei(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),a=qi(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=a(n),t+""}}return e.gamma=t,e}(1);function Zi(t){return function(n){var i,e,r=n.length,o=new Array(r),a=new Array(r),u=new Array(r);for(i=0;i<r;++i)e=Ei(n[i]),o[i]=e.r||0,a[i]=e.g||0,u[i]=e.b||0;return o=t(o),a=t(a),u=t(u),e.opacity=1,function(t){return e.r=o(t),e.g=a(t),e.b=u(t),e+""}}}function Ki(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),a=new Array(e);for(i=0;i<r;++i)o[i]=oe(t[i],n[i]);for(;i<e;++i)a[i]=n[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function Ji(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function Qi(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function te(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=oe(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}Zi((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],a=e>0?t[e-1]:2*r-o,u=e<n-1?t[e+2]:2*o-r;return Xi((i-e/n)*n,a,r,o,u)}})),Zi((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],a=t[(e+1)%n],u=t[(e+2)%n];return Xi((i-e/n)*n,r,o,a,u)}}));var ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ie=new RegExp(ne.source,"g");function ee(t,n){var i,e,r,o=ne.lastIndex=ie.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(i=ne.exec(t))&&(e=ie.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),u[a]?u[a]+=r:u[++a]=r),(i=i[0])===(e=e[0])?u[a]?u[a]+=e:u[++a]=e:(u[++a]=null,s.push({i:a,x:Qi(i,e)})),o=ie.lastIndex;return o<n.length&&(r=n.slice(o),u[a]?u[a]+=r:u[++a]=r),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)u[(i=s[e]).i]=i.x(t);return u.join("")})}function re(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function oe(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?Gi(n):("number"===r?Qi:"string"===r?(i=Ni(n))?(n=i,Ui):ee:n instanceof Ni?Ui:n instanceof Date?Ji:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?Ki:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?te:Qi:re))(t,n)}function ae(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function ue(t){return+t}var se=[0,1];function le(t){return t}function ce(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function fe(t,n,i){var e=t[0],r=t[1],o=n[0],a=n[1];return r<e?(e=ce(r,e),o=i(a,o)):(e=ce(e,r),o=i(o,a)),function(t){return o(e(t))}}function he(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),a=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<e;)r[a]=ce(t[a],t[a+1]),o[a]=i(n[a],n[a+1]);return function(n){var i=fi(t,n,1,e)-1;return o[i](r[i](n))}}function de(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ve(){return function(){var t,n,i,e,r,o,a=se,u=se,s=oe,l=le;function c(){var t,n,i,s=Math.min(a.length,u.length);return l!==le&&(t=a[0],n=a[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?he:fe,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(a.map(t),u,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(u,a.map(t),Qi)))(i)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ue),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ae,c()},f.clamp=function(t){return arguments.length?(l=!!t||le,c()):l!==le},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(le,le)}function pe(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var ge,me=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ye(t){if(!(n=me.exec(t)))throw new Error("invalid format: "+t);var n;return new be({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function be(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xe(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function we(t){return(t=xe(Math.abs(t)))?t[1]:NaN}function Ce(t,n){var i=xe(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}ye.prototype=be.prototype,be.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 Me={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ce(100*t,n),r:Ce,s:function(t,n){var i=xe(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(ge=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=e.length;return o===a?e:o>a?e+new Array(o-a+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+xe(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ke(t){return t}var Se,Ae,Le,Ve=Array.prototype.map,De=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ne(){var t=ve();return t.copy=function(){return de(t,Ne())},pe.apply(t,arguments),function(t){var n=t.domain;return t.ticks=function(t){var i=n();return Qn(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var e=n();return function(t,n,i,e){var r,o=ni(t,n,i);switch((e=ye(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(we(n)/3)))-we(Math.abs(t)))}(o,a))||(e.precision=r),Le(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,we(n)-we(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-we(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Ae(e)}(e[0],e[e.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(r=s,s=l,l=r,r=a,a=u,u=r);c-- >0;){if((r=ti(s,l,i))===e)return o[a]=s,o[u]=l,n(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}e=r}return t},t}(t)}Se=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?ke:(n=Ve.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?ke:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ve.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=ye(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Me[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",w=Me[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0===+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?De[8+ge/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?a+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+M.length,A=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(A+t,A.length?v-M.length:1/0),A=""),i){case"<":t=h+t+M+A;break;case"=":t=h+A+t+M;break;case"^":t=A.slice(0,S=A.length>>1)+h+t+M+A.slice(S);break;default:t=A+h+t+M}return u(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i=f(((t=ye(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(we(n)/3))),r=Math.pow(10,-e),o=De[8+e/3];return function(t){return i(r*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ae=Se.format,Le=Se.formatPrefix;const Te=1e3,Oe=6e4,Ee=36e5,Fe=864e5,Be=6048e5,Pe=31536e6,_e=new Date,He=new Date;function Ie(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=n=>(t(n=new Date(+n)),n),r.ceil=i=>(t(i=new Date(i-1)),n(i,1),t(i),i),r.round=t=>{const n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=(t,i)=>(n(t=new Date(+t),null==i?1:Math.floor(i)),t),r.range=(i,e,o)=>{const a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;let u;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=i=>Ie((n=>{if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),((t,e)=>{if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););})),i&&(r.count=(n,e)=>(_e.setTime(+n),He.setTime(+e),t(_e),t(He),Math.floor(i(_e,He))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?n=>e(n)%t===0:n=>r.count(0,n)%t===0):r:null)),r}const We=Ie((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));We.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Ie((n=>{n.setTime(Math.floor(n/t)*t)}),((n,i)=>{n.setTime(+n+i*t)}),((n,i)=>(i-n)/t)):We:null),We.range;const Re=Ie((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Te)}),((t,n)=>(n-t)/Te),(t=>t.getUTCSeconds())),ze=(Re.range,Ie((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Te)}),((t,n)=>{t.setTime(+t+n*Oe)}),((t,n)=>(n-t)/Oe),(t=>t.getMinutes()))),je=(ze.range,Ie((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*Oe)}),((t,n)=>(n-t)/Oe),(t=>t.getUTCMinutes()))),$e=(je.range,Ie((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Te-t.getMinutes()*Oe)}),((t,n)=>{t.setTime(+t+n*Ee)}),((t,n)=>(n-t)/Ee),(t=>t.getHours()))),Ye=($e.range,Ie((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*Ee)}),((t,n)=>(n-t)/Ee),(t=>t.getUTCHours()))),Xe=(Ye.range,Ie((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oe)/Fe),(t=>t.getDate()-1))),Ge=(Xe.range,Ie((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Fe),(t=>t.getUTCDate()-1))),qe=(Ge.range,Ie((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Fe),(t=>Math.floor(t/Fe))));function Ue(t){return Ie((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+7*n)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oe)/Be))}qe.range;const Ze=Ue(0),Ke=Ue(1),Je=Ue(2),Qe=Ue(3),tr=Ue(4),nr=Ue(5),ir=Ue(6);function er(t){return Ie((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+7*n)}),((t,n)=>(n-t)/Be))}Ze.range,Ke.range,Je.range,Qe.range,tr.range,nr.range,ir.range;const rr=er(0),or=er(1),ar=er(2),ur=er(3),sr=er(4),lr=er(5),cr=er(6),fr=(rr.range,or.range,ar.range,ur.range,sr.range,lr.range,cr.range,Ie((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),hr=(fr.range,Ie((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),dr=(hr.range,Ie((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));dr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ie((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),((n,i)=>{n.setFullYear(n.getFullYear()+i*t)})):null,dr.range;const vr=Ie((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function pr(t,n,i,e,r,o){const a=[[Re,1,Te],[Re,5,5e3],[Re,15,15e3],[Re,30,3e4],[o,1,Oe],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,Ee],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,Fe],[e,2,1728e5],[i,1,Be],[n,1,2592e6],[n,3,7776e6],[t,1,Pe]];function u(n,i,e){const r=Math.abs(i-n)/e,o=ui((([,,t])=>t)).right(a,r);if(o===a.length)return t.every(ni(n/Pe,i/Pe,e));if(0===o)return We.every(Math.max(ni(n,i,e),1));const[u,s]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return u.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:u(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},u]}vr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ie((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),((n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null,vr.range;const[gr,mr]=pr(vr,hr,rr,qe,Ye,je),[yr,br]=pr(dr,fr,Ze,Xe,$e,ze);var xr=new Date,wr=new Date;function Cr(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=function(n){return t(n=new Date(+n)),n},r.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},r.round=function(t){var n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},r.range=function(i,e,o){var a,u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=function(i){return Cr((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(r.count=function(n,e){return xr.setTime(+n),wr.setTime(+e),t(xr),t(wr),Math.floor(i(xr,wr))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?function(n){return e(n)%t===0}:function(n){return r.count(0,n)%t===0}):r:null}),r}const Mr=864e5,kr=6048e5;function Sr(t){return Cr((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/kr}))}var Ar=Sr(0),Lr=Sr(1),Vr=Sr(2),Dr=Sr(3),Nr=Sr(4),Tr=Sr(5),Or=Sr(6),Er=(Ar.range,Lr.range,Vr.range,Dr.range,Nr.range,Tr.range,Or.range,Cr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Mr}),(function(t){return t.getUTCDate()-1}))),Fr=Er;function Br(t){return Cr((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/kr}))}Er.range;var Pr=Br(0),_r=Br(1),Hr=Br(2),Ir=Br(3),Wr=Br(4),Rr=Br(5),zr=Br(6),jr=(Pr.range,_r.range,Hr.range,Ir.range,Wr.range,Rr.range,zr.range,Cr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/Mr),(t=>t.getDate()-1))),$r=jr,Yr=(jr.range,Cr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Yr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cr((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null};var Xr=Yr,Gr=(Yr.range,Cr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Gr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cr((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null};var qr=Gr;function Ur(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Zr(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Kr(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function Jr(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=lo(r),c=co(r),f=lo(o),h=co(o),d=lo(a),v=co(a),p=lo(u),g=co(u),m=lo(s),y=co(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Oo,e:Oo,f:_o,g:qo,G:Zo,H:Eo,I:Fo,j:Bo,L:Po,m:Ho,M:Io,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ba,s:xa,S:Wo,u:Ro,U:zo,V:$o,w:Yo,W:Xo,x:null,X:null,y:Go,Y:Uo,Z:Ko,"%":ya},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Jo,e:Jo,f:ea,g:va,G:ga,H:Qo,I:ta,j:na,L:ia,m:ra,M:oa,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ba,s:xa,S:aa,u:ua,U:sa,V:ca,w:fa,W:ha,x:null,X:null,y:da,Y:pa,Z:ma,"%":ya},w={a:function(t,n,i){var e=d.exec(n.slice(i));return e?(t.w=v.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=f.exec(n.slice(i));return e?(t.w=h.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.m=y.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=p.exec(n.slice(i));return e?(t.m=g.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return k(t,n,i,e)},d:Co,e:Co,f:Vo,g:yo,G:mo,H:ko,I:ko,j:Mo,L:Lo,m:wo,M:So,p:function(t,n,i){var e=l.exec(n.slice(i));return e?(t.p=c.get(e[0].toLowerCase()),i+e[0].length):-1},q:xo,Q:No,s:To,S:Ao,u:ho,U:vo,V:po,w:fo,W:go,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:yo,Y:mo,Z:bo,"%":Do};function C(t,n){return function(i){var e,r,o,a=[],u=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(r=eo[e=t.charAt(++u)])?e=t.charAt(++u):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),a.push(e),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(i){var e,r,o=Kr(1900,void 0,1);if(k(o,t,i+="",0)!=i.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(e=Zr(Kr(o.y,0,1))).getUTCDay(),e=r>4||0===r?Lr.ceil(e):Lr(e),e=Fr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=Ur(Kr(o.y,0,1))).getDay(),e=r>4||0===r?_r.ceil(e):_r(e),e=$r.offset(e,7*(o.V-1)),o.y=e.getFullYear(),o.m=e.getMonth(),o.d=e.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Zr(Kr(o.y,0,1)).getUTCDay():Ur(Kr(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Zr(o)):Ur(o)}}function k(t,n,i,e){for(var r,o,a=0,u=n.length,s=i.length;a<u;){if(e>=s)return-1;if(37===(r=n.charCodeAt(a++))){if(r=n.charAt(a++),!(o=w[r in eo?n.charAt(a++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=C(i,b),b.X=C(e,b),b.c=C(n,b),x.x=C(i,x),x.X=C(e,x),x.c=C(n,x),{format:function(t){var n=C(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=C(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}Gr.range;var Qr,to,no,io,eo={"-":"",_:" ",0:"0"},ro=/^\s*\d+/,oo=/^%/,ao=/[\\^$*+?|[\]().{}]/g;function uo(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function so(t){return t.replace(ao,"\\$&")}function lo(t){return new RegExp("^(?:"+t.map(so).join("|")+")","i")}function co(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function fo(t,n,i){var e=ro.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function ho(t,n,i){var e=ro.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function vo(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function po(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function go(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function mo(t,n,i){var e=ro.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function yo(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function bo(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function xo(t,n,i){var e=ro.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function wo(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Co(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function Mo(t,n,i){var e=ro.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function ko(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function So(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function Ao(t,n,i){var e=ro.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function Lo(t,n,i){var e=ro.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Vo(t,n,i){var e=ro.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Do(t,n,i){var e=oo.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function No(t,n,i){var e=ro.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function To(t,n,i){var e=ro.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function Oo(t,n){return uo(t.getDate(),n,2)}function Eo(t,n){return uo(t.getHours(),n,2)}function Fo(t,n){return uo(t.getHours()%12||12,n,2)}function Bo(t,n){return uo(1+$r.count(Xr(t),t),n,3)}function Po(t,n){return uo(t.getMilliseconds(),n,3)}function _o(t,n){return Po(t,n)+"000"}function Ho(t,n){return uo(t.getMonth()+1,n,2)}function Io(t,n){return uo(t.getMinutes(),n,2)}function Wo(t,n){return uo(t.getSeconds(),n,2)}function Ro(t){var n=t.getDay();return 0===n?7:n}function zo(t,n){return uo(Pr.count(Xr(t)-1,t),n,2)}function jo(t){var n=t.getDay();return n>=4||0===n?Wr(t):Wr.ceil(t)}function $o(t,n){return t=jo(t),uo(Wr.count(Xr(t),t)+(4===Xr(t).getDay()),n,2)}function Yo(t){return t.getDay()}function Xo(t,n){return uo(_r.count(Xr(t)-1,t),n,2)}function Go(t,n){return uo(t.getFullYear()%100,n,2)}function qo(t,n){return uo((t=jo(t)).getFullYear()%100,n,2)}function Uo(t,n){return uo(t.getFullYear()%1e4,n,4)}function Zo(t,n){var i=t.getDay();return uo((t=i>=4||0===i?Wr(t):Wr.ceil(t)).getFullYear()%1e4,n,4)}function Ko(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+uo(n/60|0,"0",2)+uo(n%60,"0",2)}function Jo(t,n){return uo(t.getUTCDate(),n,2)}function Qo(t,n){return uo(t.getUTCHours(),n,2)}function ta(t,n){return uo(t.getUTCHours()%12||12,n,2)}function na(t,n){return uo(1+Fr.count(qr(t),t),n,3)}function ia(t,n){return uo(t.getUTCMilliseconds(),n,3)}function ea(t,n){return ia(t,n)+"000"}function ra(t,n){return uo(t.getUTCMonth()+1,n,2)}function oa(t,n){return uo(t.getUTCMinutes(),n,2)}function aa(t,n){return uo(t.getUTCSeconds(),n,2)}function ua(t){var n=t.getUTCDay();return 0===n?7:n}function sa(t,n){return uo(Ar.count(qr(t)-1,t),n,2)}function la(t){var n=t.getUTCDay();return n>=4||0===n?Nr(t):Nr.ceil(t)}function ca(t,n){return t=la(t),uo(Nr.count(qr(t),t)+(4===qr(t).getUTCDay()),n,2)}function fa(t){return t.getUTCDay()}function ha(t,n){return uo(Lr.count(qr(t)-1,t),n,2)}function da(t,n){return uo(t.getUTCFullYear()%100,n,2)}function va(t,n){return uo((t=la(t)).getUTCFullYear()%100,n,2)}function pa(t,n){return uo(t.getUTCFullYear()%1e4,n,4)}function ga(t,n){var i=t.getUTCDay();return uo((t=i>=4||0===i?Nr(t):Nr.ceil(t)).getUTCFullYear()%1e4,n,4)}function ma(){return"+0000"}function ya(){return"%"}function ba(t){return+t}function xa(t){return Math.floor(+t/1e3)}function wa(t){return new Date(t)}function Ca(t){return t instanceof Date?+t:+new Date(+t)}function Ma(t,n,i,e,r,o,a,u,s,l){var c=ve(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:u(t)<t?v:a(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Ca)):h().map(wa)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],a=t[r];return a<o&&(i=e,e=r,r=i,i=o,o=a,a=i),t[e]=n.floor(o),t[r]=n.ceil(a),t}(i,t)):c},c.copy=function(){return de(c,Ma(t,n,i,e,r,o,a,u,s,l))},c}function ka(){return pe.apply(Ma(yr,br,dr,fr,Ze,Xe,$e,ze,Re,to).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sa(){return pe.apply(Ma(gr,mr,vr,hr,rr,Ge,Ye,je,Re,io).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Aa(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}Qr=Jr({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"]}),to=Qr.format,no=Qr.parse,io=Qr.utcFormat,Qr.utcParse;class La extends Map{constructor(t,n=Da){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Va(this,t))}has(t){return super.has(Va(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}(this,t))}}function Va({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function Da(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Na=Symbol("implicit");function Ta(){var t=new La,n=[],i=[],e=Na;function r(r){let o=t.get(r);if(void 0===o){if(e!==Na)return e;t.set(r,o=n.push(r)-1)}return i[o%i.length]}return r.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new La;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Ta(n,i).unknown(e)},pe.apply(r,arguments),r}function Oa(){var t,n,i=Ta().unknown(void 0),e=i.domain,r=i.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,i-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var v=Aa(i).map((function(n){return h+t*n}));return r(f?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(e(t),f()):e()},i.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},i.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(u=!!t,f()):u},i.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},i.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},i.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},i.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},i.copy=function(){return Oa(e(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},pe.apply(f(),arguments)}function Ea(){}function Fa(t){return null==t?Ea:function(){return this.querySelector(t)}}function Ba(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Pa(){return[]}function _a(t){return function(n){return n.matches(t)}}var Ha=Array.prototype.find;function Ia(){return this.firstElementChild}var Wa=Array.prototype.filter;function Ra(){return Array.from(this.children)}function za(t){return new Array(t.length)}function ja(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function $a(t,n,i,e,r,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],e[u]=a):i[u]=new ja(t,o[u]);for(;u<s;++u)(a=n[u])&&(r[u]=a)}function Ya(t,n,i,e,r,o,a){var u,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(d[u]=l=a.call(s,s.__data__,u,n)+"",c.has(l)?r[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(e[u]=s,s.__data__=o[u],c.delete(l)):i[u]=new ja(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c.get(d[u])===s&&(r[u]=s)}function Xa(t){return t.__data__}function Ga(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function qa(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}ja.prototype={constructor:ja,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ua="http://www.w3.org/1999/xhtml",Za={svg:"http://www.w3.org/2000/svg",xhtml:Ua,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ka(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),Za.hasOwnProperty(n)?{space:Za[n],local:t}:t}function Ja(t){return function(){this.removeAttribute(t)}}function Qa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tu(t,n){return function(){this.setAttribute(t,n)}}function nu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function eu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function ru(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ou(t){return function(){this.style.removeProperty(t)}}function au(t,n,i){return function(){this.style.setProperty(t,n,i)}}function uu(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function su(t){return function(){delete this[t]}}function lu(t,n){return function(){this[t]=n}}function cu(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function fu(t){return t.trim().split(/^|\s+/)}function hu(t){return t.classList||new du(t)}function du(t){this._node=t,this._names=fu(t.getAttribute("class")||"")}function vu(t,n){for(var i=hu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function pu(t,n){for(var i=hu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function gu(t){return function(){vu(this,t)}}function mu(t){return function(){pu(this,t)}}function yu(t,n){return function(){(n.apply(this,arguments)?vu:pu)(this,t)}}function bu(){this.textContent=""}function xu(t){return function(){this.textContent=t}}function wu(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Cu(){this.innerHTML=""}function Mu(t){return function(){this.innerHTML=t}}function ku(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function Su(){this.nextSibling&&this.parentNode.appendChild(this)}function Au(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Lu(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Ua&&n.documentElement.namespaceURI===Ua?n.createElement(t):n.createElementNS(i,t)}}function Vu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Du(t){var n=Ka(t);return(n.local?Vu:Lu)(n)}function Nu(){return null}function Tu(){var t=this.parentNode;t&&t.removeChild(this)}function Ou(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Eu(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Fu(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?n.length=r:delete this.__on}}}function Bu(t,n,i){return function(){var e,r=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var a=0,u=r.length;a<u;++a)if((e=r[a]).type===t.type&&e.name===t.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=o,e.options=i),void(e.value=n);this.addEventListener(t.type,o,i),e={type:t.type,name:t.name,value:n,listener:o,options:i},r?r.push(e):this.__on=[e]}}function Pu(t,n,i){var e=ru(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function _u(t,n){return function(){return Pu(this,t,n)}}function Hu(t,n){return function(){return Pu(this,t,n.apply(this,arguments))}}du.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Iu,Wu,Ru,zu,ju=[null];function $u(t,n){this._groups=t,this._parents=n}function Yu(t){return"string"==typeof t?new $u([[document.querySelector(t)]],[document.documentElement]):new $u([[t]],ju)}function Xu(t){return"string"==typeof t?new $u([document.querySelectorAll(t)],[document.documentElement]):new $u([Ba(t)],ju)}function Gu(t){this._context=t}function qu(t){return new Gu(t)}function Uu(t){this._context=t}function Zu(t){var n,i,e=t.length-1,r=new Array(e),o=new Array(e),a=new Array(e);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<e-1;++n)r[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(r[e-1]=2,o[e-1]=7,a[e-1]=8*t[e-1]+t[e],n=1;n<e;++n)i=r[n]/o[n-1],o[n]-=i,a[n]-=i*a[n-1];for(r[e-1]=a[e-1]/o[e-1],n=e-2;n>=0;--n)r[n]=(a[n]-r[n+1])/o[n];for(o[e-1]=(t[e]+r[e-1])/2,n=0;n<e-1;++n)o[n]=2*t[n+1]-r[n+1];return[r,o]}function Ku(t){return new Uu(t)}function Ju(t,n){this._context=t,this._t=n}function Qu(t){return new Ju(t,.5)}function ts(t){return new Ju(t,0)}function ns(t){return new Ju(t,1)}function is(t,n){void 0===n&&(n=!1);var i=Le(".2~",t);Math.abs(t)<1?i=Ae(".2~g"):n&&Math.abs(t)>=1e3&&(i=Le(".1~",t));var e=i(t);return Math.abs(t)>=1e9?e.replace("G","B"):e}function es(t){return is(t)}function rs(t,n,i,e){var r,o=t.domainNRangeValues,a=t.showRoundOffXTickValues,u=void 0===a||a,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,f=void 0===c?10:c,h=t.xAxisCount,d=t.xAxisElement,v=t.hideTickOverlap,p=Ne().domain([o.dStartValue,o.dEndValue]).range([o.rStartValue,o.rEndValue]);u&&p.nice();var g=null!=h?h:6,m=function(t,i){if(n.tickFormat)return Ae(n.tickFormat)(t);var r="number"==typeof t?t:t.valueOf();return Vs(r,e)};if(v&&void 0===h){var y=hs(p.ticks().map(m),'[class^="xAxis-"] text')+20,b=p.range(),x=b[0],w=b[1];g=Math.min(Math.max(1,Math.floor(Math.abs(w-x)/y)),10)}var C=Gn(p).tickSize(l).tickPadding(f).ticks(g).tickFormat(m);i===Wu.HorizontalBarChartWithAxis&&C.tickSizeInner(-(t.containerHeight-t.margins.top)),n.tickValues&&C.tickValues(n.tickValues),d&&Yu(d).call(C).selectAll("text").attr("aria-hidden","true");var M=(null!==(r=n.tickValues)&&void 0!==r?r:p.ticks(g)).map(C.tickFormat());return{xScale:p,tickValues:M}}function os(t,n,i,e,r){if(r)return function(t,n,i){var e,r=t<0&&t===n?0:n,o=ii(t>=0&&t===n?0:t,r,i),a=Qn(o[0],o[o.length-1],i);return a[a.length-1]>r&&(e=function(t){var n=Math.round(t);return Math.abs(t-n)<1e-6?n:t}(r),Math.log10(e)%1==0)&&a.pop(),a}(n,t,i);var o=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,a=[n<0&&t>=0?0:n];if(a[0]===n&&a.push(n+o),n<0&&t>=0){for(;a[a.length-1]>n;)a.push(a[a.length-1]-o);a.reverse()}for(;a[a.length-1]<t;)a.push(a[a.length-1]+o);return a}function as(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,a=t.yMaxValue,u=void 0===a?0:a,s=t.yMinValue,l=void 0===s?0:s,c=t.containerHeight,f=t.margins,h=t.tickPadding,d=void 0===h?12:h,v=t.maxOfYVal,p=void 0===v?0:v,g=t.yAxisTickFormat,m=t.yAxisTickCount,y=void 0===m?4:m,b=p||e.endValue,x=b>u?b:u,w=e.startValue<l?Math.min(0,e.startValue):l,C=Ne().domain([w,x]).range([c-f.bottom,f.top]),M=(n?Xn(C):qn(C)).tickPadding(d).ticks(y);return g?M.tickFormat(g):M.tickFormat(es),o&&Yu(o).call(M).selectAll("text").attr("aria-hidden","true"),C}function us(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===a&&(a=!1);var u=t.yMinMaxValues,s=void 0===u?{startValue:0,endValue:0}:u,l=t.yAxisElement,c=void 0===l?null:l,f=t.yMaxValue,h=void 0===f?0:f,d=t.yMinValue,v=void 0===d?0:d,p=t.containerHeight,g=t.containerWidth,m=t.margins,y=t.tickPadding,b=void 0===y?12:y,x=t.maxOfYVal,w=void 0===x?0:x,C=t.yAxisTickFormat,M=t.yAxisTickCount,k=void 0===M?4:M,S=t.eventAnnotationProps,A=t.eventLabelHeight,L=w||s.endValue,V=L>h?L:h,D=o?Math.min(s.startValue,v||0):s.startValue<v?0:v,N=os(V,D,k,e,a),T=Ne().domain([o?N[0]:D,N[N.length-1]]).range([p-m.bottom,m.top+(S?A:0)]),O=(!n&&r||n&&!r?Xn(T):qn(T)).tickPadding(b).tickValues(N).tickSizeInner(-(g-m.left-m.right));return C?O.tickFormat(C):O.tickFormat(es),c&&Yu(c).call(O).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=N,T}$u.prototype=function(){return new $u([[document.documentElement]],ju)}.prototype={constructor:$u,select:function(t){"function"!=typeof t&&(t=Fa(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a,u=n[r],s=u.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new $u(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Ba(t.apply(this,arguments))}}(t):function(t){return null==t?Pa:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(e.push(t.call(a,a.__data__,l,u)),r.push(a));return new $u(e,r)},selectChild:function(t){return this.select(null==t?Ia:function(t){return function(){return Ha.call(this.children,t)}}("function"==typeof t?t:_a(t)))},selectChildren:function(t){return this.selectAll(null==t?Ra:function(t){return function(){return Wa.call(this.children,t)}}("function"==typeof t?t:_a(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a=n[r],u=a.length,s=e[r]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new $u(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,Xa);var i,e=n?Ya:$a,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=r[c],h=o[c],d=h.length,v=Ga(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=u[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,w=0;x<p;++x)if(y=g[x]){for(x>=w&&(w=x+1);!(b=m[w])&&++w<p;);y._next=b||null}}return(u=new $u(u,r))._enter=s,u._exit=l,u},enter:function(){return new $u(this._enter||this._groups.map(za),this._parents)},exit:function(){return new $u(this._exit||this._groups.map(za),this._parents)},join:function(t,n,i){var e=this.enter(),r=this,o=this.exit();return"function"==typeof t?(e=t(e))&&(e=e.selection()):e=e.append(t+""),null!=n&&(r=n(r))&&(r=r.selection()),null==i?o.remove():i(o),e&&r?e.merge(r).order():r},merge:function(t){for(var n=t.selection?t.selection():t,i=this._groups,e=n._groups,r=i.length,o=e.length,a=Math.min(r,o),u=new Array(r),s=0;s<a;++s)for(var l,c=i[s],f=e[s],h=c.length,d=u[s]=new Array(h),v=0;v<h;++v)(l=c[v]||f[v])&&(d[v]=l);for(;s<r;++s)u[s]=i[s];return new $u(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,a=r[o];--o>=0;)(e=r[o])&&(a&&4^e.compareDocumentPosition(a)&&a.parentNode.insertBefore(e,a),a=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=qa);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var a,u=i[o],s=u.length,l=r[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new $u(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var a=e[r];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],a=0,u=o.length;a<u;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,n){var i=Ka(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?Qa:Ja:"function"==typeof n?i.local?eu:iu:i.local?nu:tu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?ou:"function"==typeof n?uu:au)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||ru(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?su:"function"==typeof n?cu:lu)(t,n)):this.node()[t]},classed:function(t,n){var i=fu(t+"");if(arguments.length<2){for(var e=hu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?yu:n?gu:mu)(i,n))},text:function(t){return arguments.length?this.each(null==t?bu:("function"==typeof t?wu:xu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Cu:("function"==typeof t?ku:Mu)(t)):this.node().innerHTML},raise:function(){return this.each(Su)},lower:function(){return this.each(Au)},append:function(t){var n="function"==typeof t?t:Du(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:Du(t),e=null==n?Nu:"function"==typeof n?n:Fa(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Tu)},clone:function(t){return this.select(t?Eu:Ou)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Bu:Fu,e=0;e<a;++e)this.each(u(o[e],n,i));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(e=0,s=u[l];e<a;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?Hu:_u)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e,r=t[n],o=0,a=r.length;o<a;++o)(e=r[o])&&(yield e)}},Gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},Uu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===i)this._context.lineTo(t[1],n[1]);else for(var e=Zu(t),r=Zu(n),o=0,a=1;a<i;++o,++a)this._context.bezierCurveTo(e[0][o],r[0][o],e[1][o],r[1][o],t[a],n[a]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},Ju.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,n)}}this._x=t,this._y=n}},function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(Wu||(Wu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ru||(Ru={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(zu||(zu={}));var ss=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,a=void 0===o?12:o,u=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,f=null!=c?c:.5;f=1===f?.99:f;var h=Oa().domain(n).range([r-u.bottom,u.top]).padding(f),d=(i?Xn(h):qn(h)).tickPadding(a).ticks(n);return s&&d.tickFormat(s),l&&Yu(l).call(d).selectAll("text"),h},ls=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,a=t.margins,u=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=Oa().domain(n).range([e-a.bottom,a.top]).padding(c),h=(i?Xn(f):qn(f)).tickPadding(o).tickValues(n).tickSize(0);return u&&h.tickFormat(u),s&&Yu(s).call(h).selectAll("text"),f};function cs(t){var n=[];t.forEach((function(t){var i=t.data.filter((function(t){return!t.hideCallout})).map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{legend:t.legend,color:t.color,index:t.index})}));n=n.concat(i)}));var i={};return n.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in i?i[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):i[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(i).map((function(t){return{x:Number(t),values:i[t]}}))}var fs=function(t,n,i){var e=Yu("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},hs=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),a=o.getPropertyValue("font-weight"),u=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(a," ").concat(u," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function ds(t){var n=t.tooltipCls,i=t.axis,e=t.id;if(null===i)return null;for(var r=Yu("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,u=[],s=0;s<a;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];u.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){Yu(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.text(u[t]).style("left",n.pageX+"px").style("top",n.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function vs(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function ps(t,n,i,e){var r=ei(t,(function(t){return ei(t.data,(function(t){return t.x}))})),o=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}function gs(t){var n={};return t.forEach((function(t){var i=t.y;n[i]||(n[i]=[]),n[i].push(t)})),Object.values(n)}function ms(t,n){var i=0,e=0;return t.forEach((function(t){var r=t.reduce((function(t,n){return t+(n.x>0?n.x:0)}),n),o=t.reduce((function(t,n){return t+(n.x<0?n.x:0)}),n);i=Math.max(i,r),e=Math.min(e,o)})),{longestPositiveBar:i,longestNegativeBar:e}}function ys(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}function bs(t,n,i,e,r,a,u){var s,l;void 0===r&&(r=[]),a===Wu.AreaChart||a===Wu.LineChart?(s=ei(t,(function(t){return ei(t.data,(function(t){return t.x}))})),l=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),s=ei((0,o.fX)((0,o.fX)([],r,!0),[s],!1)),l=ri((0,o.fX)((0,o.fX)([],r,!0),[l],!1))):(s=ei(t,(function(t){return t.x})),l=ri(t,(function(t){return t.x})));var c=n.left,f=i-n.right;return e?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}function xs(t,n,i){var e=[];return t.forEach((function(t){!i==!t.useSecondaryYScale&&t.data.forEach((function(t){e.push(t.y)}))})),{startValue:ei(e),endValue:ri(e)}}function ws(t,n,i){var e=[];return t.forEach((function(t){i||e.push(t.y),void 0!==t.lineData&&!i==!t.lineData.useSecondaryYScale&&e.push(t.lineData.y)})),{startValue:ei(e),endValue:ri(e)}}function Cs(t,n){if(void 0!==n&&n===zu.NumericAxis){var i=ri(t,(function(t){return t.y}));return{startValue:ei(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var Ms,ks,Ss=function(t,n){if(n)switch(typeof t){case"string":return Ru.StringAxis;case"number":return Ru.NumericAxis;default:return Ru.DateAxis}else switch(typeof t){case"string":return zu.StringAxis;case"number":return zu.NumericAxis;default:return zu.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(Ms||(Ms={})),function(t){t[t.dottedLine=0]="dottedLine"}(ks||(ks={}));var As=((Iu={})[Ms.circle]={widthRatio:1},Iu[Ms.square]={widthRatio:1},Iu[Ms.triangle]={widthRatio:1},Iu[Ms.diamond]={widthRatio:1},Iu[Ms.pyramid]={widthRatio:1},Iu[Ms.hexagon]={widthRatio:2},Iu[Ms.pentagon]={widthRatio:1.168},Iu[Ms.octagon]={widthRatio:2.414},Iu),Ls=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},Vs=function(t,n){if(null==t||Number.isNaN(t))return t;if(n=n||void 0,"number"==typeof t)return Math.abs(t)<1e4?t.toString():t.toLocaleString(n);if("string"==typeof t&&!window.isNaN(Number(t))){var i=Number(t);return Math.abs(i)<1e4?i.toString():i.toLocaleString(n)}return t instanceof Date?t.toLocaleDateString(n):t};function Ds(t){return is(t,!0)}var Ns=function(t,n,i,e){var r;return void 0===i&&(i=16),r="auto"===t||"histogram"===e?i:"number"==typeof t?t:Math.min(i,16),"number"==typeof n&&(r=Math.min(r,n)),Math.max(r,1)},Ts=function(t,n,i){void 0===i&&(i=0);var e="number"==typeof t?t:"number"==typeof n?n:i;return Math.max(0,Math.min(e,1))},Os=function(t,n){return"number"==typeof t||"number"==typeof n},Es=function(t,n){return(n?io:to)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")};function Fs(t){return void 0===t&&(t={}),t.dangerouslySetInnerHTML,(0,o.Tt)(t,["dangerouslySetInnerHTML"])}function Bs(t,n){if(t===n)return!0;if(!t&&!n)return!0;if(!t||!n||t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}var Ps=/var\((--[a-zA-Z0-9\-]+)\)/g;function _s(t,n){var i=getComputedStyle(t);return n.replace(Ps,(function(t,n){return i.getPropertyValue(n)}))}function Hs(t,n,i){var e=getComputedStyle(n);Array.isArray(t)?t.forEach((function(t){Yu(i).style(t,e.getPropertyValue(t))})):Object.entries(t).forEach((function(t){var n=t[0],r=t[1];Yu(i).style(r,e.getPropertyValue(n))}))}var Is={position:"absolute",visibility:"hidden",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ws=p("measurement_span_");function Rs(t,n){if(void 0===n&&(n=qu),"function"==typeof t)return t;switch(t){case"linear":return qu;case"natural":return Ku;case"step":return Qu;case"stepAfter":return ns;case"stepBefore":return ts;default:return n}}var zs,js=i(357),$s={gradient1:"default.1",gradient2:"default.2",gradient3:"default.3",gradient4:"default.4",gradient5:"default.5",gradient6:"default.6",gradient7:"default.7",gradient8:"default.8",gradient9:"default.9",gradient10:"default.10",gradient1Ext:"extended.1",gradient2Ext:"extended.2",gradient3Ext:"extended.3",gradient4Ext:"extended.4",gradient5Ext:"extended.5",gradient6Ext:"extended.6",gradient7Ext:"extended.7",gradient8Ext:"extended.8",gradient9Ext:"extended.9",gradient10Ext:"extended.10",success:"semantic.success",highSuccess:"semantic.highSuccess",warning:"semantic.warning",error:"semantic.error",highError:"semantic.highError",disabled:"semantic.disabled"},Ys={1:[["#4760D5","#637CEF"],["#4F6BED","#637CEF"]],2:[["#795AA6","#9373C0"],["#8764B8","#A083C9"]],3:[["#159195","#2AA0A4"],["#159195","#2AA0A4"]],4:[["#B146C2","#C36BD1"],["#B146C2","#C36BD1"]],5:[["#3487C7","#3A96DD"],["#3487C7","#3A96DD"]],6:[["#0E7A0B","#13A10E"],["#11910D","#27AC22"]],7:[["#E61C99","#EE5FB7"],["#E61C99","#EE5FB7"]],8:[["#CA5010","#D77440"],["#CA5010","#D77440"]],9:[["#57811B","#689920"],["#57811B","#689920"]],10:[["#937700","#AE8C00"],["#937700","#AE8C00"]]},Xs={default:Ys,semantic:{success:[["#0C5E0C","#107C10"],["#218C21","#359B35"]],highSuccess:[["#107C10","#359B35"],["#359B35","#9FD89F"]],warning:[["#DE590B","#F7630C"],["#DE590B","#F87528"]],error:[["#B10E1C","#CC2635"],["#D33F4C","#EEACB2"]],highError:[["#6E0811","#B10E1C"],["#D33F4C","#DC626D"]],disabled:[["#E6E6E6","#E6E6E6"],["#E6E6E6","#E6E6E6"]]},extended:{1:[["#2C3C85","#3C51B4"],["#93A4F4","#C8D1FA"]],2:[["#4C3867","#674C8C"],["#A083C9","#B29AD4"]],3:[["#02494C","#038387"],["#4CB4B7","#9BD9DB"]],4:[["#63276D","#863593"],["#C36BD1","#CF87DA"]],5:[["#20547C","#2C72A8"],["#4FA1E1","#83BDEB"]],6:[["#0B5A08","#0E7A0B"],["#27AC22","#5EC75A"]],7:[["#AD006A","#E3008C"],["#EE5FB7","#F7ADDA"]],8:[["#9A3D0C","#CA5010"],["#D77440","#DF8E64"]],9:[["#405F14","#57811B"],["#73AA24","#A4CC6C"]],10:[["#6D5700","#937700"],["#D0B232","#DAC157"]]}},Gs=Object.values(Ys),qs=Object.values($s),Us=function(t,n){if(0===t.length)return["",""];var i=Number(n);return i<t.length?t[i]:t[0]},Zs=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Gs[(t+n)%Gs.length];return Us(e,i)},Ks=function(t,n){if(void 0===n&&(n=!1),qs.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Xs[e][r];return Us(o,n)}return[t,t]};function Js(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function Qs(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=Js(t,t[i],n[i]))}(t,{componentDidMount:tl,componentDidUpdate:nl,componentWillUnmount:il})}function tl(){el(this.props.componentRef,this)}function nl(t){t.componentRef!==this.props.componentRef&&(el(t.componentRef,null),el(this.props.componentRef,this))}function il(){el(this.props.componentRef,null)}function el(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function rl(t,n,i){var e,r=x(t,(function(t){var i;return n===t||!!(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,kn))}),i);return null!==r&&!!(null===(e=r.hasAttribute)||void 0===e?void 0:e.call(r,kn))}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(zs||(zs={}));var ol,al=a.createContext(void 0),ul="data-is-focusable",sl="data-focuszone-id",ll="tabindex",cl="data-no-vertical-wrap",fl="data-no-horizontal-wrap",hl=999999999,dl=-999999999;function vl(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var pl,gl={},ml=new Set,yl=["text","number","password","email","tel","url","search","textarea"],bl=!1,xl=function(t){function n(i){var e,r,o,u,l,c=t.call(this,i)||this;c._root=a.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,a=i.onFocusNotification,u=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(V(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=b(h,bl)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&V(d,void 0,c._inShadowRoot)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),u?u(t):a&&a()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=b(n,bl);for(;i.length&&((n=i.pop())&&V(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!D(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,a=i.pagingSupportDisabled,u=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((u&&u(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!N(t.target))return;if(!c.focusElement(S(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==zs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==zs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==zs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==zs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==zs.vertical&&c._shouldWrapFocus(c._activeElement,fl)?((0,s.jI)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(S(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(k(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),a=Math.floor(i.bottom),u=Math.floor(n.top);return t&&r>o||!t&&a<u?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,cl)?hl:dl},Qs(c),c._id=p("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(r=null!==(e=i.shouldRaiseClicks)&&void 0!==e?e:n.defaultProps.shouldRaiseClicks)||void 0===r||r;return c._shouldRaiseClicksOnEnter=null!==(o=i.shouldRaiseClicksOnEnter)&&void 0!==o?o:f,c._shouldRaiseClicksOnSpace=null!==(u=i.shouldRaiseClicksOnSpace)&&void 0!==u?u:f,c}return(0,o.C6)(n,t),n.getOuterZones=function(){return ml.size},n._onKeyDownCapture=function(t){9===t.which&&ml.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t,i=this._root.current;if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),gl[this._id]=this,i){for(var e=b(i,bl);e&&e!==this._getDocument().body&&1===e.nodeType;){if(D(e)){this._isInnerZone=!0;break}e=b(e,bl)}this._isInnerZone||(ml.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t,n=this._root.current,i=this._getDocument();if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),(this._activeElement&&!w(this._root.current,this._activeElement,bl)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,bl))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&i&&this._lastIndexPath&&(i.activeElement===i.body||null===i.activeElement||i.activeElement===n)){var e=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],a=i.children[Math.min(o,i.children.length-1)];if(!a)break;i=a}return V(i)&&A(i)?i:S(t,i,!0)||k(t,i)}(n,this._lastIndexPath);e?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete gl[this._id],this._isInnerZone||(ml.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,i=n.as,e=n.elementType,r=n.rootProps,u=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=z(this.props,H),f=i||e||"div";this._evaluateFocusBeforeRender();var h=(0,It.O4)();return a.createElement(f,(0,o.Cl)({"aria-labelledby":s,"aria-describedby":u},c,r,{className:j((ol||(ol=(0,U.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ol),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(ul)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=gl[i.getAttribute(sl)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&w(this._root.current,this._activeElement)&&V(this._activeElement,void 0,this._inShadowRoot)&&(!n||L(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(S(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(k(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=w(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=b(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},n.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(D(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(ul)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return vl(i,n),!0;i=b(i,bl)}while(i!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(D(t))return gl[t.getAttribute(sl)];for(var n=t.firstElementChild;n;){if(D(n))return gl[n.getAttribute(sl)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},n.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,a=void 0,u=!1,s=this.props.direction===zs.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?S(this._root.current,r):k(this._root.current,r),!s){a=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){a=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=r),o>=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)u=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(S(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(k(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},n.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,a=Math.floor(r.top),u=Math.floor(e.bottom);return a<u?t._shouldWrapFocus(t._activeElement,cl)?hl:dl:((-1===n&&a>=u||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,a=Math.floor(r.bottom),u=Math.floor(r.top),s=Math.floor(e.top);return a>s?t._shouldWrapFocus(t._activeElement,cl)?hl:dl:((-1===n&&a<=s||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,fl);return!!this._moveFocus((0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==zs.vertical?o=e.right-r.right:i||(o=dl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,fl);return!!this._moveFocus(!(0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==zs.vertical?o=r.left-e.left:i||(o=dl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=K(i);if(!e)return!1;var r=-1,o=void 0,a=-1,u=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?S(this._root.current,i):k(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>a?(a=f,r=p,o=i):!t&&d<u?(u=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(S(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(k(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===zs.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var n=b(t,bl);n&&n!==this._root.current&&n!==this._getDocument().body;){if(D(n))return n;n=b(n,bl)}return n},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!w(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!V(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];D(e)?"true"===e.getAttribute(ul)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ll)&&e.setAttribute(ll,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ll)&&e.setAttribute(ll,"0"))):(e.getAttribute&&"false"===e.getAttribute(ul)&&e.setAttribute(ll,"-1"),V(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(ll,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ll)&&e.setAttribute(ll,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ll)&&e.setAttribute(ll,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&yl.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=x(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,C.Y)())}(t,n)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&rl(t,this._root.current)},n.prototype._getDocument=function(){return(0,C.Y)(this._root.current)},n.contextType=al,n.defaultProps={isCircularNavigation:!1,direction:zs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(a.Component);function wl(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(pl||(pl={}));var Cl,Ml=(0,u.Z)(),kl=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?a.createElement("p",{className:n._classNames.subText},t.content):a.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.calloutProps,e=t.directionalHint,r=t.directionalHintForRTL,u=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=Ml(u,{theme:d,className:n||i&&i.className,beakWidth:i&&i.isBeakVisible?i.beakWidth:0,gapSpace:i&&i.gapSpace,maxWidth:l}),a.createElement(Pn,(0,o.Cl)({target:h,directionalHint:e,directionalHintForRTL:r},i,z(this.props,R,["id"]),{className:this._classNames.root}),a.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:1,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(a.Component),Sl=(0,r.I)(kl,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,a=t.maxWidth,u=t.theme,s=u.semanticColors,l=u.fonts,c=u.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,It.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(Cl||(Cl={}));var Al,Ll,Vl=(0,u.Z)(),Dl=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.createRef(),e._defaultTooltipId=p("tooltip"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current){var t=e.props.overflowMode;if(void 0!==t)switch(t){case pl.Parent:return e._tooltipHost.current.parentElement;case pl.Self:return e._tooltipHost.current}return e._tooltipHost.current}},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e._clearDismissTimer(),e._clearOpenTimer()},e._onTooltipBlur=function(t){var n;e._ignoreNextFocusEvent=(null===(n=jt(e.context))||void 0===n?void 0:n.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props,r=i.overflowMode,o=i.delay,a=jt(e.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,void 0!==r){var u=e._getTargetElement();if(u&&!wl(u))return}if(!t.target||!rl(t.target,e._getTargetElement(),a))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==Cl.zero){var s=e._getDelayTime(o);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),s)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Dt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t},(function(){return e.props.onTooltipToggle&&e.props.onTooltipToggle(t)}))},e._getDelayTime=function(t){switch(t){case Cl.medium:return 300;case Cl.long:return 500;default:return 0}},Qs(e),e.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,i=t.children,e=t.content,r=t.directionalHint,u=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=Vl(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,o.Cl)((0,o.Cl)({id:"".concat(g,"--tooltip"),content:e,targetElement:this._getTargetElement(),directionalHint:r,directionalHintForRTL:u,calloutProps:$({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},z(this.props,R,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?a.createElement(a.Fragment,null,t.content):null})):e,b=p&&!!y,x=f&&p&&y?g:void 0;return a.createElement("div",{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},i,b&&a.createElement(Sl,(0,o.Cl)({},m)),a.createElement("div",{hidden:!0,id:g,style:It.dX},y))},n.prototype.componentDidMount=function(){this._async=new Nt(this)},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cl.medium},n.contextType=Ft,n}(a.Component),Nl={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Tl=(0,r.I)(Dl,(function(t){var n=t.className,i=t.theme;return{root:[(0,It.Km)(Nl,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Ol=function(t){function n(n){var i=t.call(this,n)||this;return i._tooltipChild=a.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&wl(t);n!==i.state.textOverflow&&i.setState({textOverflow:n})},i._getTargetElement=function(){if(i._tooltipChild.current&&i._tooltipChild.current.parentElement)return i._tooltipChild.current.parentElement},i.state={textOverflow:!1},i._async=new Nt(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.content,e=t.accessibilityData;return a.createElement(Tl,{overflowMode:pl.Self,hostClassName:n,content:i},a.createElement("span",(0,o.Cl)({},Ls(e),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),i))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(a.Component),El=(0,u.Z)(),Fl=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.state.isCalloutVisible&&i.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},i._adjustProps=function(){i._barHeight=i.props.barHeight||12,i._classNames=El(i.props.styles,{theme:i.props.theme,width:i.props.width,className:i.props.className,barHeight:i._barHeight,color:i.state.lineColor,variant:i.props.variant,hideLabels:i.props.hideLabels})},i._getChartDataText=function(t){return i.props.barChartCustomData?a.createElement("div",{role:"text"},i.props.barChartCustomData(t)):i._getDefaultTextData(t)},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.data,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(r,".")+(e?"with benchmark at "+"".concat(e,", "):"")},i.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},i._refArray=[],i._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),i._hoverOff=i._hoverOff.bind(i),i._calloutId=p("callout"),i._emptyChartId=p("_HBC_empty"),i.barChartSvgRef=a.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.theme;this._adjustProps();var r=e.palette,u=0;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.map((function(n,i){u=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-u,y:n.chartData[0].horizontalBarChartdata.y},color:r.neutralLight};var e=t.props.variant===d.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,r,i),s=t._uniqLineText+"_"+i,l=El(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return a.createElement("div",{key:i},a.createElement("div",{className:l.items},a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&a.createElement(Ol,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),a.createElement(xl,{direction:zs.horizontal,className:t._classNames.chartWrapper},a.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},a.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),a.createElement(Pn,(0,o.Cl)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):a.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._hoverOn=function(t,n){var i,e,r,o;if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var a=y(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n;var u=n.color;if(this.props.enableGradient){var s=Math.max((null===(e=null===(i=this.props.data)||void 0===i?void 0:i.map((function(t){return t.chartData})))||void 0===e?void 0:e.findIndex((function(t){return(null==t?void 0:t[0].data)===n.data&&(null==t?void 0:t[0].legend)===n.legend})))||0,0);u=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(s,0,null===(o=this.props.theme)||void 0===o?void 0:o.isInverted)[0]}this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:u,legend:n.legend,refSelected:a.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,i=this.props.chartDataMode||"default",e=t.chartData[0],r=e.horizontalBarChartdata.x,u=e.horizontalBarChartdata.y,s=Ls(t.chartDataAccessibilityData,"text",!1);switch(i){case"default":return a.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),(0,_n.U)(r,n));case"fraction":return a.createElement("div",(0,o.Cl)({},s),a.createElement("span",{className:this._classNames.chartTitleRight},(0,_n.U)(r,n)),a.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,_n.U)(u,n)));case"percentage":var l="".concat((0,_n.U)(Math.round(r/u*100),n),"%");return a.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),l)}},n.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,i=t.chartData[0].data,e={left:"calc("+Math.round((i||0)/n*100)+"% - 4px)"};return a.createElement("div",{className:this._classNames.benchmarkContainer},a.createElement("div",{className:this._classNames.triangle,style:e}))},n.prototype._createBars=function(t,n,i){var e,r=this,o=(null===(e=t.chartData)||void 0===e?void 0:e.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(o-1),s=[n.blueLight,n.blue,n.blueMid,n.red,n.black],l=[],c=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),f=0,h=0,v=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(h=i/c*100)<0?h=0:h<1&&0!==h&&(h=1),v+=h}));var g=0!==v?(v-u)/100:1,m=t.chartData.map((function(n,e){var o,u,v,m,y=n.color?n.color:s[Math.floor(4*Math.random()+1)],b=y;r.props.enableGradient&&1!==e&&(y=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(i,0,null===(u=r.props.theme)||void 0===u?void 0:u.isInverted)[0],b=(null===(v=n.gradient)||void 0===v?void 0:v[1])||Zs(i,0,null===(m=r.props.theme)||void 0===m?void 0:m.isInverted)[1]);var x=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;e>0&&(f+=h),(h=x/c*100)<0?h=0:h<1&&0!==h?h=1/g:h/=g,l.push(f);var w=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===d.AbsoluteScale){if(r.props.hideLabels)return a.createElement("text",{key:e});var C=t.chartData[0].horizontalBarChartdata.x;return a.createElement("text",{key:e,x:"".concat(r._isRTL?100-l[e]:l[e],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},Ds(C))}var M=p("HBC_Gradient")+"_".concat(i,"_").concat(e);return a.createElement(a.Fragment,{key:e},r.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:M},a.createElement("stop",{offset:"0",stopColor:y}),a.createElement("stop",{offset:"100%",stopColor:b}))),a.createElement("rect",{key:e,x:"".concat(r._isRTL?100-l[e]-h-e*r.state.barSpacingInPercent:l[e]+e*r.state.barSpacingInPercent,"%"),y:0,rx:r.props.roundCorners?3:0,"data-is-focusable":""!==n.legend,width:h+"%",height:r._barHeight,fill:r.props.enableGradient?"url(#".concat(M,")"):y,onMouseOver:""!==n.legend?r._hoverOn.bind(r,w,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,w,n):void 0,role:"img","aria-label":r._getAriaLabel(n),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper}))}));return m},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(a.Component),Bl=(0,r.I)(Fl,(function(t){var n,i=t.className,e=t.theme,r=t.width,a=t.barHeight,u=t.showTriangle,s=t.variant,l=t.hideLabels,c=e.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},i],items:{marginBottom:u||s===d.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:a||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,o.Cl)((0,o.Cl)({},e.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:e.palette.neutralPrimary,marginBottom:s===d.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:It.s.medium,fontWeight:It.BO.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:It.s.medium,color:e.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,o.Cl)((0,o.Cl)({},e.fonts.small),{fontWeight:It.BO.semibold,fill:e.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}),chartWrapper:{paddingRight:s!==d.AbsoluteScale||l?0:40}}})),Pl={host:"ms-HoverCard-host"},_l=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var a,u=null!=o?o:(0,C.Y)();if(t._isElement(n)){if(void 0!==u&&u.createEvent){var s=u.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),$(s,e),a=n.dispatchEvent(s)}else if(void 0!==u&&u.createEventObject){var l=u.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==a;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==a&&v<d.length;v++){var p=d[v];p.objectCallback&&(a=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return a},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var a=i.split(/[ ,]+/),u=0;u<a.length;u++)this.on(n,a[u],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((a=n.__events__=n.__events__||{})[i]=a[i]||{count:0},a[i][this._id]=a[i][this._id]||[],a[i][this._id].push(l),a[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var a=o.target.__events__,u=a[o.eventName],s=u?u[this._id]:null;s&&(1!==s.length&&i?(u.count--,s.splice(s.indexOf(o),1)):(u.count-=s.length,delete a[o.eventName][this._id]),u.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(Al||(Al={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Ll||(Ll={}));var Hl,Il={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(Hl||(Hl={}));var Wl=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},Rl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function zl(t){var n=a.useRef();return a.useEffect((function(){n.current=t})),n.current}function jl(t,n){var i=a.useRef(n);return i.current||(i.current=p(t)),i.current}function $l(t){var n=a.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Nn((function(){n.current=t}),[t]),Wt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var Yl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Xl=a.forwardRef((function(t,n){var i,e,r,u=a.useRef(null),s=a.useRef(null),l=a.useRef(null),c=Et(u,n),f=Pt(),h=zt(),d=!!a.useContext(al),v=null===(i=zl(!1))||void 0===i||i,p=F(Yl,t),g=Wt({hasFocus:!1,focusStackId:jl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,C=p.forceFocusInsideTrap,M=p.focusPreviouslyFocusedInnerElement,A=p.firstFocusableSelector,L=p.firstFocusableTarget,V=p.disableRestoreFocus,D=void 0===V?p.ignoreExternalFocusing:V,N=p.isClickableOutsideFocusTrap,T=p.enableAriaHiddenSiblings,B={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=a.useCallback((function(t){t!==s.current&&t!==l.current&&O(t)}),[]),_=$l((function(){if(u.current){var t=g.previouslyFocusedElementInTrapZone;if(M&&t&&w(u.current,t))P(t);else{var n=null;if("string"==typeof L)n=u.current.querySelector(L);else if(L)n=L(u.current);else if(A){var i="string"==typeof A?A:A();n=u.current.querySelector("."+i)}n||(n=S(u.current,u.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&P(n)}}})),H=function(t){if(!b&&u.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),k(u.current,l.current,n,!1,!0,!0,!1,!0,d)):function(t,n,i,e,r){return void 0===e&&(e=!0),S(t,n,e,!1,!1,!0,!1,!0,void 0,r)}(u.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?_():i.focus())}},I=$l((function(t){if(Xl.focusStack=Xl.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;D||"function"!=typeof(null==t?void 0:t.focus)||!w(u.current,n)&&n!==f.body&&!n.shadowRoot||P(t)}})),W=$l((function(t){if(!b&&g.focusStackId===Xl.focusStack.slice(-1)[0]){var n=Rl(t);n&&!w(u.current,n)&&(f&&Wl(f)===f.body?setTimeout((function(){f&&Wl(f)===f.body&&(_(),g.hasFocus=!0)}),0):(_(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return a.useEffect((function(){var t=[];return C&&t.push(E(h,"focus",W,!0)),N||t.push(E(h,"click",W,!0)),function(){t.forEach((function(t){return t()}))}}),[C,N,h]),a.useEffect((function(){if(!b&&(v||C)&&u.current){Xl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||Wl(f);return x||w(u.current,t)||_(),function(){return I(t)}}}),[C,b]),a.useEffect((function(){if(!b&&T)return Vt(u.current)}),[b,T,u]),e=function(){delete g.previouslyFocusedElementInTrapZone},(r=a.useRef(e)).current=e,a.useEffect((function(){return function(){var t;null===(t=r.current)||void 0===t||t.call(r)}}),[]),function(t,n,i){a.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,_),a.createElement("div",(0,o.Cl)({"aria-labelledby":p.ariaLabelledBy},z(p,R),{ref:c,onFocusCapture:function(t){var n;null===(n=p.onFocusCapture)||void 0===n||n.call(p,t),t.target===s.current?H(!0):t.target===l.current&&H(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=Rl(t.nativeEvent))},onBlurCapture:function(t){var n;null===(n=p.onBlurCapture)||void 0===n||n.call(p,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=Wl(f)),w(u.current,i)||(g.hasFocus=!1)}}),a.createElement("div",(0,o.Cl)({},B,{ref:s})),m,a.createElement("div",(0,o.Cl)({},B,{ref:l})))}));Xl.displayName="FocusTrapZone",Xl.focusStack=[];var Gl,ql=function(t){return a.createElement(Pn,(0,o.Cl)({},t),a.createElement(Xl,(0,o.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},Ul=function(t){var n=t.gapSpace,i=void 0===n?0:n,e=t.directionalHint,r=void 0===e?4:e,u=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},z(t,R)),{className:h,target:s,isBeakVisible:!1,directionalHint:r,directionalHintFixed:u,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:i}),p);return a.createElement(a.Fragment,null,c?a.createElement(ql,(0,o.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):a.createElement(Pn,(0,o.Cl)({},g),v))},Zl=(0,u.Z)(),Kl=function(t){function n(n){var i=t.call(this,n)||this;return i._expandedElem=a.createRef(),i._onKeyDown=function(t){t.which===Dt&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return a.createElement("div",{className:i._classNames.compactCard},i.props.onRenderCompactCard(i.props.renderData))},i._onRenderExpandedCard=function(){return!i.state.firstFrameRendered&&i._async.requestAnimationFrame((function(){i.setState({firstFrameRendered:!0})})),a.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},a.createElement("div",{className:i._classNames.expandedCardScroll},i.props.onRenderExpandedCard&&i.props.onRenderExpandedCard(i.props.renderData)))},i._checkNeedsScroll=function(){var t=i.props.expandedCardHeight;i._async.requestAnimationFrame((function(){i._expandedElem.current&&i._expandedElem.current.scrollHeight>=t&&i.setState({needsScroll:!0})}))},i._async=new Nt(i),Qs(i),i.state={firstFrameRendered:!1,needsScroll:!1},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,i=t.compactCardHeight,e=t.expandedCardHeight,r=t.theme,u=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=i+e;this._classNames=Zl(n,{theme:r,compactCardHeight:i,className:s,expandedCardHeight:e,needsScroll:c,expandedCardFirstFrameRendered:u===Hl.expanded&&f});var d=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return a.createElement(Ul,(0,o.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(a.Component),Jl=(0,r.I)(Kl,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,u=t.className,s=i.palette,l=(0,It.Km)(Il,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[It.up]={border:"1px solid WindowText"},n)},u],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.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:s.neutralLighter}}},r&&{height:a}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ql={root:"ms-PlainCard-root"},tc=(0,u.Z)(),nc=function(t){function n(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Dt&&i.props.onLeave&&i.props.onLeave(t)},Qs(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,i=t.theme,e=t.className;this._classNames=tc(n,{theme:i,className:e});var r=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return a.createElement(Ul,(0,o.Cl)({},this.props,{content:r,className:this._classNames.root}))},n}(a.Component),ic=(0,r.I)(nc,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,It.Km)(Ql,i).root,{pointerEvents:"auto",selectors:(n={},n[It.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),ec=(0,u.Z)(),rc=function(t){function n(n){var i=t.call(this,n)||this;return i._hoverCard=a.createRef(),i.dismiss=function(t){i._async.clearTimeout(i._openTimerId),i._async.clearTimeout(i._dismissTimerId),t?i._dismissTimerId=i._async.setTimeout((function(){i._setDismissedState()}),i.props.cardDismissDelay):i._setDismissedState()},i._cardOpen=function(t){i._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==i.props.openHotKey||(i._async.clearTimeout(i._dismissTimerId),"mouseenter"===t.type&&(i._currentMouseTarget=t.currentTarget),i._executeCardOpen(t))},i._executeCardOpen=function(t){i._async.clearTimeout(i._openTimerId),i._openTimerId=i._async.setTimeout((function(){i.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:Hl.compact,openMode:"keydown"===t.type?Al.hotKey:Al.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Dt)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Dt||i.dismiss(!0)}else{if(i.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;i.dismiss(!0)}},i._setDismissedState=function(){i.setState({isHoverCardVisible:!1,mode:Hl.compact,openMode:Al.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Hl.expanded}}))},i._setEventListeners=function(){var t=i.props,n=t.trapFocus,e=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?i._getTargetElement(r):i._getTargetElement(i.props.target),a=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",a),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",a)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",a),i._events.on(o,"keydown",a)))},Qs(i),i._async=new Nt(i),i._events=new _l(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:Hl.compact,openMode:Al.hover},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:Hl.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hl.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,i=t.children,e=t.id,r=t.setAriaDescribedBy,u=void 0===r||r,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,v=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,y=g.mode,b=g.openMode,x=e||p("hoverCard");this._classNames=ec(s,{theme:l,className:c});var w=(0,o.Cl)((0,o.Cl)({},z(this.props,R)),{id:x,trapFocus:!!d,firstFocus:v||b===Al.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),w),{mode:y}),M=(0,o.Cl)((0,o.Cl)({},h),w);return a.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":u&&m?x:void 0,"data-is-focusable":!this.props.target},i,m&&(f===Ll.expanding?a.createElement(Jl,(0,o.Cl)({},C)):a.createElement(ic,(0,o.Cl)({},M))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.Y)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Ll.expanding},n}(a.Component),oc=(0,r.I)(rc,(function(t){var n=t.className,i=t.theme;return{host:[(0,It.Km)(Pl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Gl||(Gl={}));var ac=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,i){t.cacheKey&&(n[t.cacheKey]=i)}});var i,e=t;function r(t,n){var i=e.getCachedMeasurement(t);if(void 0!==i)return i;var r=n();return e.addMeasurementToCache(t,r),r}function a(t,n,o){for(var a=t,u=r(t,o);u>i;){var s=n(a);if(void 0===s)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=e.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};a=s}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,u,s){if(void 0!==s||void 0!==n.dataToMeasure){if(s){if(i&&n.renderedData&&!n.dataToMeasure)return(0,o.Cl)((0,o.Cl)({},n),function(t,n,e,r){var a;return a=t>i?r?{resizeDirection:"grow",dataToMeasure:r(e)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:e},i=t,(0,o.Cl)((0,o.Cl)({},a),{measureContainer:!1})}(s,t.data,n.renderedData,t.onGrowData));i=s}var l=(0,o.Cl)((0,o.Cl)({},n),{measureContainer:!1});return n.dataToMeasure&&(l="grow"===n.resizeDirection&&t.onGrowData?(0,o.Cl)((0,o.Cl)({},l),function(t,n,u,s){for(var l=t,c=r(t,u);c<i;){var f=n(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=e.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,o.Cl)({resizeDirection:"shrink"},a(l,s,u))}(n.dataToMeasure,t.onGrowData,u,t.onReduceData)):(0,o.Cl)((0,o.Cl)({},l),a(n.dataToMeasure,t.onReduceData,u))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==e.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,o.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},uc=a.createContext({isMeasured:!1}),sc={position:"fixed",visibility:"hidden"},lc={position:"relative"};function cc(t,n){var i;switch(n.type){case"resizeData":return(0,o.Cl)({},n.value);case"dataToMeasure":return(0,o.Cl)((0,o.Cl)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,o.Cl)((0,o.Cl)({},t),((i={})[n.type]=n.value,i))}}var fc={isMeasured:!0},hc=a.forwardRef((function(t,n){var i=a.useRef(null),e=Et(i,n),r=function(t,n){var i=Wt(ac),e=a.useRef(null),r=a.useRef(null),u=a.useRef(!1),s=Tt(),l=function(t,n,i){var e=Wt((function(){return n.getInitialResizeGroupState(t.data)})),r=a.useReducer(cc,e),u=r[0],s=r[1];a.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=a.useRef(e);return l.current=(0,o.Cl)({},u),[l,a.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),a.useCallback((function(){i.current&&s({type:"measureContainer",value:!0})}),[i])]}(t,i,n),c=l[0],f=l[1],h=l[2];a.useEffect((function(){var n;c.current.renderedData&&(u.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),a.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&n.current){var a=n.current.getBoundingClientRect();o=t.direction===Gl.vertical?a.height:a.width}var s=i.getNextState(t,c.current,(function(){var n=u.current?r:e;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===Gl.vertical?i.height:i.width}),o);f(s)}),n.current)})),Ot(Bt(),"resize",s.debounce(h,16,{leading:!0}));var d=i.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!u.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,e,r,d,v]}(t,i),u=r[0],s=r[1],l=r[2],c=r[3],f=r[4],h=r[5],d=r[6];a.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]);var v=t.className,p=t.onRenderData,g=z(t,R,["data"]);return a.createElement("div",(0,o.Cl)({},g,{className:v,ref:e}),a.createElement("div",{style:lc},h&&!d&&a.createElement("div",{style:sc,ref:f},a.createElement(uc.Provider,{value:fc},p(u))),a.createElement("div",{ref:c,style:d?sc:void 0,"data-automation-id":"visibleContent"},d?p(u):s&&p(s))))}));hc.displayName="ResizeGroupBase";var dc,vc=hc;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(dc||(dc={}));var pc=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?dc.PERSISTED_KEYTIP_ADDED:dc.KEYTIP_ADDED;_l.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||_l.raise(this,dc.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?dc.PERSISTED_KEYTIP_REMOVED:dc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||_l.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){_l.raise(this,dc.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){_l.raise(this,dc.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,o.fX)([],t.keySequences,!0);if(n.pop(),0!==n.length){var i=this.sequenceMapping[n.toString()];if(i&&i.overflowSetSequence)return(0,o.Cl)((0,o.Cl)({},t),{overflowSetSequence:i.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){_l.raise(this,dc.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=p()),{keytip:(0,o.Cl)({},t),uniqueID:n}},t._instance=new t,t}(),gc=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},mc=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},yc=function(t){var n=pc.getInstance(),i=t.className,e=t.overflowItems,r=t.keytipSequences,u=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Wt({}),c=a.useCallback((function(t){return u?u(t):t.subMenuProps?t.subMenuProps.items:void 0}),[u]),f=a.useMemo((function(){var t=[],i=[];return r?null==e||e.forEach((function(e){var a,u=e.keytipProps;if(u){var s={content:u.content,keySequences:u.keySequences,disabled:u.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:u.hasDynamicChildren,hasMenu:u.hasMenu};u.hasDynamicChildren||c(e)?(s.onExecute=n.menuExecute.bind(n,r,null===(a=null==e?void 0:e.keytipProps)||void 0===a?void 0:a.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=u.onExecute,t.push(s);var l=(0,o.Cl)((0,o.Cl)({},e),{keytipProps:(0,o.Cl)((0,o.Cl)({},u),{overflowSetSequence:r})});null==i||i.push(l)}else null==i||i.push(e)})):i=e,{modifiedOverflowItems:i,keytipsToRegister:t}}),[e,c,n,r]),h=f.modifiedOverflowItems;return function(t,n,i){var e=zl(t);a.useEffect((function(){e&&(mc(i,e),gc(n,i,t))})),a.useEffect((function(){return gc(n,i,t),function(){mc(i,t)}}),[])}(l,f.keytipsToRegister,n),a.createElement("div",{className:i},s(h))},bc=(0,u.Z)(),xc=a.forwardRef((function(t,n){var i=a.useRef(null),e=Et(i,n);!function(t,n){var i=function(){var t;return null!==(t=Pt())&&void 0!==t?t:"undefined"!=typeof document?document:void 0}();a.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=M(n.current,i)),e},focusElement:function(t){var e=!1;return!!t&&(n.current&&w(n.current,t)&&(t.focus(),e=(null==i?void 0:i.activeElement)===t),e)}}}),[n,i])}(t,i);var r=t.items,u=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=bc(l,{className:s,vertical:c}),g=!!u&&u.length>0;return a.createElement("div",(0,o.Cl)({},z(t,R),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:e}),"start"===d&&g&&a.createElement(yc,(0,o.Cl)({},t,{className:p.overflowButton})),r&&r.map((function(t,n){return a.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&a.createElement(yc,(0,o.Cl)({},t,{className:p.overflowButton})))}));xc.displayName="OverflowSet";var wc,Cc={flexShrink:0,display:"inherit"},Mc=(0,r.I)(xc,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",Cc],overflowButton:["ms-OverflowSet-overflowButton",Cc]}}),void 0,{scope:"OverflowSet"}),kc=((wc={})["".concat(Ms[Ms.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",wc["".concat(Ms[Ms.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",wc["".concat(Ms[Ms.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",wc["".concat(Ms[Ms.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",wc["".concat(Ms[Ms.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",wc["".concat(Ms[Ms.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",wc["".concat(Ms[Ms.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",wc["".concat(Ms[Ms.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",wc["".concat(ks[ks.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",wc),Sc=function(t){var n=t.svgProps,i=t.pathProps,e=t.shape,r=t.classNameForNonSvg;return-1===Object.keys(kc).indexOf(e)?a.createElement("div",{className:r}):a.createElement("svg",(0,o.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},Fs(n),{transform:"rotate(".concat(e===Ms[Ms.diamond]?45:e===Ms[Ms.pyramid]?180:0,", 0, 0)")}),a.createElement("path",(0,o.Cl)({d:kc[e]},Fs(i))))};function Ac(t,n,i,e){return void 0===i&&(i=!1),void 0===e&&(e={}),new Promise((function(r,a){if(!t)return a(new Error("Chart container is not defined"));try{var u="string"==typeof e.background?_s(t,e.background):"transparent",s=function(t,n,i,e){var r=t.querySelector("svg");if(!r)throw new Error("SVG not found");for(var a=Yu(r.cloneNode(!0)).attr("width",null).attr("height",null).attr("viewBox",null),u=r.getElementsByTagName("*"),s=a.node().getElementsByTagName("*"),l=0;l<u.length;l++)"text"===u[l].tagName.toLowerCase()?Hs((0,o.fX)((0,o.fX)([],Lc,!0),Vc,!0),u[l],s[l]):Hs(Lc,u[l],s[l]);var c=r.getBoundingClientRect(),f=c.width,h=c.height,d="function"==typeof n?n(f,i):{node:null,width:0,height:0},v=Math.max(f,d.width),p=h+d.height;return d.node&&(Yu(d.node).attr("transform","translate(0, ".concat(h,")")),a.append((function(){return d.node}))),a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v).attr("height",p).attr("fill",e),a.attr("width",v).attr("height",p).attr("viewBox","0 0 ".concat(v," ").concat(p)).attr("direction",i?"rtl":"ltr"),{node:a.node(),width:v,height:p}}(t,n,i,u),l=(new XMLSerializer).serializeToString(s.node);(function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){var r=n.scale||1,o=n.width||300,a=n.height||150,u=r*o,s=r*a,l=document.createElement("canvas"),c=new Image;l.width=u,l.height=s,c.onload=function(){var t=l.getContext("2d");if(!t)return e(new Error("Canvas context is null"));t.clearRect(0,0,u,s),t.drawImage(c,0,0,u,s);var n=l.toDataURL("image/png");i(n)},c.onerror=function(t){e(t)},c.src=t}))})("data:image/svg+xml;base64,"+btoa(function(t){for(var n,i,e="",r=t.length,o=0;o<r;){if("%"===(n=t.charAt(o++)))if("u"===t.charAt(o)){if(i=t.slice(o+1,o+5),Tc.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=5;continue}}else if(i=t.slice(o,o+2),Nc.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=2;continue}e+=n}return e}(encodeURIComponent(l))),{width:e.width||s.width,height:e.height||s.height,scale:e.scale}).then(r).catch(a)}catch(t){return a(t)}}))}var Lc=["display","fill","fill-opacity","opacity","stroke","stroke-width","transform"],Vc=["font-family","font-size","font-weight","text-anchor"],Dc={color:"fill","font-family":"font-family","font-size":"font-size","font-weight":"font-weight"};var Nc=/^[\da-f]{2}$/i,Tc=/^[\da-f]{4}$/i,Oc=(0,u.Z)(),Ec=function(t){function n(n){var i,e,r,u,s=t.call(this,n)||this;s._isLegendSelected=!1,s.toSVG=function(t,n){return void 0===n&&(n=!1),function(t,n,i,e){if(0===t.length)return{node:null,width:0,height:0};for(var r=i.selectedLegends,a=i.centerLegends,u=i.textClassName,s=i.isRTL,l=Yu(Du("svg:g").call(document.documentElement)),c=a?0:12,f=8,h=[],d=[],v=[],p=0===Object.keys(r).length,g=function(i){var o,g,m,y,b=(o=t[i].title,g=u,m=e,(y=document.getElementById(Ws))||((y=document.createElement("span")).setAttribute("id",Ws),y.setAttribute("aria-hidden","true"),m?m.appendChild(y):document.body.appendChild(y)),y.setAttribute("class",g),Object.assign(y.style,Is),y.textContent="".concat(o),y),x=29+b.getBoundingClientRect().width+8,w=l.append("g");h.push({elem:w,width:x}),c+x>n&&h.length>1&&(h.pop(),d.push(h),v.push(c),h=[{elem:w,width:x}],c=a?0:12,f+=32);var C=r[t[i].title]||p;w.append("rect").attr("x",c+(s?x-8-13:8)).attr("y",f+8).attr("width",13).attr("height",13).style("fill",C?t[i].color:"transparent").style("stroke-width",1).style("stroke",t[i].color),w.append("text").attr("x",c+(s?x-29:29)).attr("y",f+8).attr("dominant-baseline","hanging").style("opacity",C?1:.67).text(t[i].title).call((function(t){return Hs(Dc,b,t.node())})),c+=x},m=0;m<t.length;m++)g(m);if(d.push(h),v.push(c),f+=32,a)d.forEach((function(t,i){var e=Math.max((n-v[i])/2,0),r=v[i],o=0;t.forEach((function(t){var n=e+(s?r-t.width-o:0);t.elem.attr("transform","translate(".concat(n,", 0)")),r-=t.width,o+=t.width}))}));else if(s){var y=Math.max.apply(Math,(0,o.fX)([n],v,!1));d.forEach((function(t){var n=y-12,i=12;t.forEach((function(t){var e=n-t.width-i;t.elem.attr("transform","translate(".concat(e,", 0)")),n-=t.width,i+=t.width}))}))}return{node:l.node(),width:Math.max.apply(Math,v),height:f}}(s.props.legends,t,{selectedLegends:s.state.selectedLegends,centerLegends:!!s.props.centerLegends,textClassName:s._classNames.text,isRTL:n},s._rootElem)},s._onRenderData=function(t){var n=s.props,i=n.overflowProps,e=n.allowFocusOnLegends,r=void 0===e||e,u=n.canSelectMultipleLegends,l=void 0!==u&&u,c={root:{justifyContent:s.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return a.createElement(xl,(0,o.Cl)({},r&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),a.createElement(Mc,(0,o.Cl)({items:t.primary,overflowItems:t.overflow,onRenderItem:s._renderButton,onRenderOverflowButton:s._renderOverflowItems},i,{styles:(0,o.Cl)((0,o.Cl)({},c),null==i?void 0:i.styles)})))},s._onReduceData=function(t){if(0!==t.primary.length){var n=(0,o.fX)((0,o.fX)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},s._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,o.fX)((0,o.fX)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},s._getNewSelectedLegendsForMultiselect=function(t){var n=(0,o.Cl)({},s.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===s.props.legends.length&&(n={})),n},s._getNewSelectedLegendsForSingleSelect=function(t){var n;return s.state.selectedLegends[t.title]?{}:((n={})[t.title]=!0,n)},s._onClick=function(t,n){var i,e,r,o=s.props.canSelectMultipleLegends,a=void 0!==o&&o?s._getNewSelectedLegendsForMultiselect(t):s._getNewSelectedLegendsForSingleSelect(t);s.setState({selectedLegends:a}),null===(e=(i=s.props).onChange)||void 0===e||e.call(i,Object.keys(a),n,t),null===(r=t.action)||void 0===r||r.call(t)},s._onRenderCompactCard=function(t){var n=s.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.className,u=n.styles,l=n.theme,c=n.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=Oc(u,{theme:l,className:r});return t.renderData.forEach((function(t,n){var i=s._renderButton(t,n,!0);h.push(i)})),a.createElement(xl,(0,o.Cl)({},e&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:zs.vertical,handleTabKey:1,isCircularNavigation:!0},s.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},s._renderOverflowItems=function(t){var n=s.props.allowFocusOnLegends,i=void 0===n||n,e=[];t.forEach((function(t,n){e.push({key:n.toString(),name:t.title,onClick:t.action})}));var r={renderData:t},u=s.props,l=u.theme,c=u.className,f=u.styles,h=u.overflowText,d=Oc(f,{theme:l,className:c}),v={onRenderPlainCard:s._onRenderCompactCard,renderData:r},p=h||"more";return a.createElement(oc,{type:Ll.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){s.setState({isHoverCardVisible:!1});var n=y(t,(function(t){return t.title===s.state.activeLegend}));n&&(s.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:s._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:s._hoverCardRef},a.createElement("div",{role:"option"},a.createElement("div",(0,o.Cl)({className:d.overflowIndicationTextStyle,ref:function(t){return s._hoverCardRef=t}},i&&{role:"button","aria-expanded":s.state.isHoverCardVisible,"aria-label":"".concat(e.length," ").concat(p)},{"data-is-focusable":i}),e.length," ",p)))},s._hoverCardVisible=function(){s.setState({isHoverCardVisible:!0})},s._onHoverOverLegend=function(t){t.hoverAction&&(s.setState({activeLegend:t.title}),t.hoverAction())},s._onLeave=function(t){t.onMouseOutAction&&(s.setState({activeLegend:""}),t.onMouseOutAction())},s._renderButton=function(t,n,i){var e=s.props.allowFocusOnLegends,r=void 0===e||e,u={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=s._getColor(u.title,u.color),c=s.props,f=c.theme,h=c.className,d=c.styles,v=Oc(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:u.color,overflow:i,stripePattern:u.stripePattern,isLineLegendInBarChart:u.isLineLegendInBarChart,opacity:u.opacity}),p=function(){s._onHoverOverLegend(u)},g=function(){s._onLeave(u)},m=s._getShape(v,u,l);return a.createElement("button",(0,o.Cl)({},r&&{"aria-selected":!!s.state.selectedLegends[u.title],role:"option","aria-label":"".concat(u.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,o.Cl)({},t.nativeButtonProps),{key:n,className:v.legend,onClick:function(t){s._onClick(u,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":r}),m,a.createElement("div",{className:v.text},u.title))};var l=null!==(e=n.selectedLegends)&&void 0!==e?e:n.defaultSelectedLegends,c=null!==(r=n.selectedLegend)&&void 0!==r?r:n.defaultSelectedLegend,f={};return n.canSelectMultipleLegends?f=(null===(u=null!=l?l:[])||void 0===u?void 0:u.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{}))||{}:c&&((i={})[c]=!0,f=i),s.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:f},s}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e=t.selectedLegend,r=t.selectedLegends;return t.canSelectMultipleLegends&&void 0!==r?(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:r.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{})}):t.canSelectMultipleLegends||void 0===e?n:(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:(i={},i[e]=!0,i)})},n.prototype.render=function(){var t=this,n=this.props,i=n.theme,e=n.className,r=n.styles;this._classNames=Oc(r,{theme:i,className:e}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},this.props.enabledWrapLines?this._onRenderData(o):a.createElement(vc,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.shape;return{primary:this.props.legends.map((function(n,i){return(0,o.Cl)((0,o.Cl)({},e&&{nativeButtonProps:z(n,W,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:r||n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,n,i){var e={className:t.shape},r={fill:i,strokeWidth:2,stroke:n.color};return a.createElement(Sc,{svgProps:e,pathProps:r,shape:n.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},n}(a.Component),Fc=(0,r.I)(Ec,(function(t){var n,i,e=t.className,r=t.theme,a=t.isLineLegendInBarChart,u=void 0!==a&&a,s=r,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:r.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},e],legend:[(0,It.gm)(r,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"".concat(8,"px"),background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[It.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":""},n),width:"".concat(12,"px"),height:u?"4px":"".concat(12,"px"),backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"".concat(8,"px"),border:"".concat(1,"px solid"),borderColor:t.borderColor?t.borderColor:null==r?void 0:r.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"".concat(8,"px")}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(i={},i[It.up]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},i)},text:(0,o.Cl)((0,o.Cl)({},c.small),{lineHeight:"16px",color:null==r?void 0:r.semanticColors.bodyText,opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"".concat(.67):""}),hoverChange:{width:"12px",height:"12px",backgroundColor:r.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,It.gm)(r,f),(0,o.Cl)((0,o.Cl)({cursor:"pointer",color:null==r?void 0:r.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"".concat(8,"px")})],hoverCardRoot:{padding:"8px",position:"relative",overflowY:"auto",maxHeight:"300px"},subComponentStyles:{hoverCardStyles:{host:[(0,It.gm)(r,f)]}}}}));function Bc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Pc(t){return function(){return t}}function _c(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Hc(t){return t}Array.prototype.slice;const Ic=Math.abs,Wc=Math.atan2,Rc=Math.cos,zc=Math.max,jc=Math.min,$c=Math.sin,Yc=Math.sqrt,Xc=1e-12,Gc=Math.PI,qc=Gc/2,Uc=2*Gc;function Zc(t){return t>=1?qc:t<=-1?-qc:Math.asin(t)}function Kc(){var t=Hc,n=_c,i=null,e=Pc(0),r=Pc(Uc),o=Pc(0);function a(a){var u,s,l,c,f,h=(a=Bc(a)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(Uc,Math.max(-Uc,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u<h;++u)(f=p[v[u]=u]=+t(a[u],u,a))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(a[t],a[n])})),u=0,l=d?(m-h*b)/d:0;u<h;++u,g=c)s=v[u],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:a[s],index:u,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,i=null,a):n},a.sort=function(t){return arguments.length?(i=t,n=null,a):i},a.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Pc(+t),a):e},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Pc(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Pc(+t),a):o},a}const Jc=Math.PI,Qc=2*Jc,tf=1e-6,nf=Qc-tf;function ef(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class rf{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ef:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return ef;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,a=this._y1,u=i-t,s=e-n,l=o-t,c=a-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>tf)if(Math.abs(c*u-s*l)>tf&&r){let h=i-o,d=e-a,v=u*u+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((Jc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>tf&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*u},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(e),u=i*Math.sin(e),s=t+a,l=n+u,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>tf||Math.abs(this._y1-l)>tf)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%Qc+Qc),f>nf?this._append`A${i},${i},0,1,${c},${t-a},${n-u}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>tf&&this._append`A${i},${i},0,${+(f>=Jc)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function of(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new rf(n)}function af(t){return t.innerRadius}function uf(t){return t.outerRadius}function sf(t){return t.startAngle}function lf(t){return t.endAngle}function cf(t){return t&&t.padAngle}function ff(t,n,i,e,r,o,a){var u=t-i,s=n-e,l=(a?o:-o)/Yc(u*u+s*s),c=l*s,f=-l*u,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*Yc(zc(0,w*w*x-C*C)),k=(C*b-y*M)/x,S=(-C*y-b*M)/x,A=(C*b+y*M)/x,L=(-C*y+b*M)/x,V=k-g,D=S-m,N=A-g,T=L-m;return V*V+D*D>N*N+T*T&&(k=A,S=L),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(r/w-1),y11:S*(r/w-1)}}function hf(){var t=af,n=uf,i=Pc(0),e=null,r=sf,o=lf,a=cf,u=null,s=of(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-qc,p=o.apply(this,arguments)-qc,g=Ic(p-v),m=p>v;if(u||(u=l=s()),d<h&&(c=d,d=h,h=c),d>Xc)if(g>Uc-Xc)u.moveTo(d*Rc(v),d*$c(v)),u.arc(0,0,d,v,p,!m),h>Xc&&(u.moveTo(h*Rc(p),h*$c(p)),u.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,S=g,A=a.apply(this,arguments)/2,L=A>Xc&&(e?+e.apply(this,arguments):Yc(h*h+d*d)),V=jc(Ic(d-h)/2,+i.apply(this,arguments)),D=V,N=V;if(L>Xc){var T=Zc(L/h*$c(A)),O=Zc(L/d*$c(A));(k-=2*T)>Xc?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(S-=2*O)>Xc?(x+=O*=m?1:-1,w-=O):(S=0,x=w=(v+p)/2)}var E=d*Rc(x),F=d*$c(x),B=h*Rc(M),P=h*$c(M);if(V>Xc){var _,H=d*Rc(w),I=d*$c(w),W=h*Rc(C),R=h*$c(C);if(g<Gc)if(_=function(t,n,i,e,r,o,a,u){var s=i-t,l=e-n,c=a-r,f=u-o,h=f*s-c*l;if(!(h*h<Xc))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(E,F,W,R,H,I,B,P)){var z=E-_[0],j=F-_[1],$=H-_[0],Y=I-_[1],X=1/$c(((f=(z*$+j*Y)/(Yc(z*z+j*j)*Yc($*$+Y*Y)))>1?0:f<-1?Gc:Math.acos(f))/2),G=Yc(_[0]*_[0]+_[1]*_[1]);D=jc(V,(h-G)/(X-1)),N=jc(V,(d-G)/(X+1))}else D=N=0}S>Xc?N>Xc?(y=ff(W,R,E,F,d,N,m),b=ff(H,I,B,P,d,N,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),N<V?u.arc(y.cx,y.cy,N,Wc(y.y01,y.x01),Wc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,N,Wc(y.y01,y.x01),Wc(y.y11,y.x11),!m),u.arc(0,0,d,Wc(y.cy+y.y11,y.cx+y.x11),Wc(b.cy+b.y11,b.cx+b.x11),!m),u.arc(b.cx,b.cy,N,Wc(b.y11,b.x11),Wc(b.y01,b.x01),!m))):(u.moveTo(E,F),u.arc(0,0,d,x,w,!m)):u.moveTo(E,F),h>Xc&&k>Xc?D>Xc?(y=ff(B,P,H,I,h,-D,m),b=ff(E,F,W,R,h,-D,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),D<V?u.arc(y.cx,y.cy,D,Wc(y.y01,y.x01),Wc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,D,Wc(y.y01,y.x01),Wc(y.y11,y.x11),!m),u.arc(0,0,h,Wc(y.cy+y.y11,y.cx+y.x11),Wc(b.cy+b.y11,b.cx+b.x11),m),u.arc(b.cx,b.cy,D,Wc(b.y11,b.x11),Wc(b.y01,b.x01),!m))):u.arc(0,0,h,M,C,m):u.lineTo(B,P)}else u.moveTo(0,0);if(u.closePath(),l)return u=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-Gc/2;return[Rc(e)*i,$c(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Pc(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Pc(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Pc(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Pc(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Pc(+t),l):a},l.context=function(t){return arguments.length?(u=null==t?null:t,l):u},l}var df=function(t){var n,i=t.solidFill,e=t.gradientFill,r=t.href,o=t.theme,a=t.opacity;return{root:{fill:i,cursor:r?"pointer":"default",stroke:o.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}},opacity:a},gradientArc:{width:"100%",height:"100%",background:e,opacity:a},focusRing:{stroke:o.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:o.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}},vf=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=a.createRef(),n._isRTL=(0,s.jI)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._shouldHighlightArc=function(t){var i=n.props.activeArc;return!i||0===i.length||void 0===t||i.includes(t)},n._renderArcLabel=function(t){var i=n.props,e=i.arc,r=i.data,o=i.innerRadius,u=i.outerRadius,s=i.showLabelsInPercent,l=i.totalValue;if(i.hideLabels||Math.abs(r.endAngle-r.startAngle)<Math.PI/12||!n._shouldHighlightArc(r.data.legend))return null;var c=e.centroid(r),f=c[0],h=c[1],d=Math.sqrt(f*f+h*h),v=Math.max(o,u)+2,p=(r.startAngle+r.endAngle)/2,g=r.value;return a.createElement("text",{x:(0===d?0:f/d)*v,y:(0===d?0:h/d)*v,textAnchor:p>Math.PI!==n._isRTL?"end":"start",dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?Ae(".0%")(0===l?0:g/l):Ds(g))},n}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return pf(t),null},n.prototype.updateChart=function(t){pf(t)},n.prototype.render=function(){var t,n,i,e,r,o,s,l=this.props,c=l.arc,f=l.href,h=l.focusedArcId,d=l.activeArc,v=(0,u.Z)(),g=this.props.uniqText+("string"==typeof this.props.data.data.legend?this.props.data.data.legend.replace(/\s+/g,""):"")+this.props.data.data.data,m=d&&d.length>0?d.includes(null===(t=this.props.data)||void 0===t?void 0:t.data.legend)?1:.1:1,y=null!==(i=null===(n=this.props.data)||void 0===n?void 0:n.startAngle)&&void 0!==i?i:0,b=(null!==(r=null===(e=this.props.data)||void 0===e?void 0:e.endAngle)&&void 0!==r?r:0)-y,x=this.props.roundCorners?3:0,w=v(df,{solidFill:this.props.enableGradient?"transparent":this.props.color,gradientFill:"conic-gradient(\n from ".concat(y,"rad,\n ").concat(this.props.color,",\n ").concat(this.props.nextColor," ").concat(b,"rad\n )"),href:f,theme:this.props.theme,opacity:m}),C=p("Arc_clip")+"".concat(this.props.color,"_").concat(this.props.nextColor);return a.createElement("g",{ref:this.currentRef},!!h&&h===g&&a.createElement("path",{id:g+"focusRing",d:c.cornerRadius(x)(this.props.focusData),className:w.focusRing}),a.createElement("path",{id:g,d:c.cornerRadius(x)(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,g),className:w.root,"data-is-focusable":this._shouldHighlightArc(this.props.data.data.legend)||0===(null===(o=this.props.activeArc)||void 0===o?void 0:o.length),onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,onClick:f?this._redirectToUrl.bind(this,f):null===(s=this.props.data)||void 0===s?void 0:s.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(w.arcLabel),this.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:C},a.createElement("path",{d:c.cornerRadius(x)(this.props.data)})),a.createElement("foreignObject",{x:"-50%",y:"-50%",width:"100%",height:"100%",clipPath:"url(#".concat(C,")")},a.createElement("div",{className:w.gradientArc}))))},n.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},n.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:hf()},n}(a.Component);function pf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var gf=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:It.s.xLargePlus,fontWeight:It.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}},mf=(0,u.Z)(),yf=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,r){var o,u,s,l,c=t&&t.data&&t.data.color,f=c;return i.props.enableGradient&&(c=null!==(u=null===(o=i.props.data[n].gradient)||void 0===o?void 0:o[0])&&void 0!==u?u:Zs(n,0,i.props.theme.isInverted)[0],f=null!==(l=null===(s=i.props.data[n].gradient)||void 0===s?void 0:s[1])&&void 0!==l?l:Zs(n,0,i.props.theme.isInverted)[1]),a.createElement(vf,{key:n,data:t,focusData:e,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:c,nextColor:f,enableGradient:i.props.enableGradient,roundCorners:i.props.roundCorners,onFocusCallback:i._focusCallback,hoverOnCallback:i._hoverCallback,onBlurCallback:i.props.onBlurCallback,hoverLeaveCallback:i.props.hoverLeaveCallback,uniqText:i.props.uniqText,activeArc:i.props.activeArc,href:r,calloutId:i.props.calloutId,valueInsideDonut:i.props.valueInsideDonut,theme:i.props.theme,focusedArcId:i.props.focusedArcId,showLabelsInPercent:i.props.showLabelsInPercent,totalValue:i._totalValue,hideLabels:i.props.hideLabels})},i._focusCallback=function(t,n,e){i.props.onFocusCallback(t,n,e)},i._computeTotalValue=function(){var t=0;return i.props.data.forEach((function(n){t+=n.data})),t},i._hoverCallback=i._hoverCallback.bind(i),i._pieForFocusRing=Kc().sort(null).value((function(t){return t.data})).padAngle(0),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=this._pieForFocusRing(e),o=i(e),u="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=mf(gf,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),a.createElement("g",{transform:u},o.map((function(n,i){return t.arcGenerator(n,i,r[i],t.props.href)})),this.props.valueInsideDonut&&a.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t,n,i;t=mf(gf,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,Xu(".".concat(t)).each((function(){for(var t=Yu(this),e=t.text().split(/\s+/).reverse(),r="",o=[],a=0,u=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em").text(r));i+=1}))},n.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},n.defaultProps={pie:Kc().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(a.Component),bf={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"},xf={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"]},wf={qualitative:xf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Cf=Object.values(xf),Mf=Object.values(bf),kf=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},Sf=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Cf[(t+n)%Cf.length];return kf(e,i)},Af=function(t,n){if(void 0===n&&(n=!1),Mf.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=wf[e][r];return kf(o,n)}return t},Lf=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Vf=function(t){var n=t.r,i=t.g,e=t.b;return{r:Lf(n/255),g:Lf(i/255),b:Lf(e/255)}},Df=function(t){return.2126*t.r+.7152*t.g+.0722*t.b},Nf=(0,u.Z)(),Tf=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Ac(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,(0,s.jI)(),t)},e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){var i,r,o,a;if(e._calloutAnchorPoint!==t){e._calloutAnchorPoint=t,e._currentHoverElement=n;var u=t.color;if(e.props.enableGradient){var s=Math.max((null===(r=null===(i=e.props.data)||void 0===i?void 0:i.chartData)||void 0===r?void 0:r.findIndex((function(n){return n.legend===t.legend})))||0,0);u=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(s,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0]}e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:u,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendsHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){return t?t.map((function(t,n){var i,r,a;return a=void 0===t.color?Sf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Af(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},Qs(e),e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:void 0,color:"",xCalloutValue:"",yCalloutValue:"",focusedArcId:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[]},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=p("callout"),e._uniqText=p("_Pie_"),e._emptyChartId=p("_DonutChart_empty"),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e;return t.width&&t.width!==n._width&&(i={_width:t.width}),t.height&&t.height!==n._height&&(e={_height:t.height-40}),(0,o.Cl)((0,o.Cl)({},i),e)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.hideLegend,r=void 0!==e&&e,u=this._addDefaultColors(null==i?void 0:i.chartData);this._classNames=Nf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(u),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=this._elevateToMinimums(u.filter((function(t){return t.data>=0}))),d=0!==this.props.innerRadius?this._valueInsideDonut(this.props.valueInsideDonut,h):"";return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},a.createElement(xl,{direction:zs.horizontal,handleTabKey:1},a.createElement("div",null,a.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(n){return t._setViewBox(n)}},a.createElement(yf,{width:this.state._width,height:this.state._height,outerRadius:f,innerRadius:this.props.innerRadius,data:h,enableGradient:this.props.enableGradient,roundCorners:this.props.roundCorners,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(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),a.createElement(Pn,(0,o.Cl)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:3,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!r&&a.createElement("div",{className:this._classNames.legendContainer},s))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._elevateToMinimums=function(t){var n=0,i=[];return t.forEach((function(t){n+=t.data})),t.forEach((function(t){i.push(.01*n>t.data&&t.data>0?(0,o.Cl)((0,o.Cl)({},t),{data:.01*n,yAxisCalloutData:void 0===t.yAxisCalloutData?t.data.toLocaleString():t.yAxisCalloutData}):t)})),i},n.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,i=t.map((function(t,i){var e,r,o=n.props.enableGradient?(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(i,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted)[0]:t.color;return{title:t.legend,color:o,hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:void 0})}}}));return a.createElement(Fc,(0,o.Cl)({legends:i,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this),ref:this._legendsRef}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;this.props.legendProps&&(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||1!==e.length&&!this.state.showHover){if(e.length>0){var r=0;return n.forEach((function(t){e.includes(t.legend)&&(r+=t.data)})),r}return t}var o=n.find((function(t){return i._isLegendHighlighted(t.legend)}));return o?o.yAxisCalloutData?o.yAxisCalloutData:o.data:t},n.prototype._toLocaleString=function(t){var n=(0,_n.U)(t,this.props.culture);return n?null==n?void 0:n.toString():t},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(a.Component),Of=(0,r.I)(Tf,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}}));function Ef(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function Ff(t){return t[0]}function Bf(t){return t[1]}function Pf(t,n){var i=Pc(!0),e=null,r=qu,o=null,a=of(u);function u(u){var s,l,c,f=(u=Bc(u)).length,h=!1;for(null==e&&(o=r(c=a())),s=0;s<=f;++s)!(s<f&&i(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+n(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Ff:Pc(t),n="function"==typeof n?n:void 0===n?Bf:Pc(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),u):n},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:Pc(!!t),u):i},u.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),u):r},u.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),u):e},u}var _f,Hf,If,Wf=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.createRef(),e._tooltipHostId=p("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._measureText=function(){if(e._tooltipHost.current&&"function"==typeof e._tooltipHost.current.getBBox){var t=e._tooltipHost.current.getBBox();e.setState({textX:t.x,textY:t.y,textWidth:t.width,textHeight:t.height})}},e._getTargetElement=function(){if(e._tooltipHost.current)return e._tooltipHost.current},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipBlur=function(t){e._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e.state.isOverflowing&&(!t.target||!rl(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),i!==Cl.zero){var r=e._getDelayTime(i);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),r)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Dt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t})},e._getDelayTime=function(t){switch(t){case Cl.medium:return 300;case Cl.long:return 500;default:return 0}},e._wrapContent=function(){var t=e.props,n=t.content,i=t.wrapContent,r=t.maxWidth,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.maxHeight,u=!1;n&&i&&i(n,e._tooltipHostId,o,a)&&(u=!0),e.state.isOverflowing!==u&&e.setState({isOverflowing:u})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Nt(e),e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,i=t.tooltipProps,e=t.textProps,r=t.shouldReceiveFocus,u=void 0===r||r,s=t.showBackground,l=void 0!==s&&s,c=this.state,f=c.isTooltipVisible,h=c.textWidth,d=c.textHeight,v=(0,o.Cl)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},i),p=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||f&&!!n,g=this.props.theme?this.props.theme.semanticColors.bodyBackground:void 0,m=("number"==typeof(null==e?void 0:e.x)?e.x:0)-(null!=h?h:0)/2-4,y=("number"==typeof(null==e?void 0:e.y)?e.y:0)-(null!=d?d:0)/2-4;return a.createElement(a.Fragment,null,l&&a.createElement("rect",{x:m,y:y,width:(null!=h?h:0)+8,height:(null!=d?d:0)+8,fill:g,transform:null==e?void 0:e.transform}),a.createElement("text",(0,o.Cl)({},e,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":u&&this.state.isOverflowing}),n),p&&a.createElement(Sl,(0,o.Cl)({},v)))},n.prototype.componentDidMount=function(){this._wrapContent(),this._measureText()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||(this._wrapContent(),this._measureText())},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cl.medium},n}(a.Component),Rf=(0,u.Z)(),zf=a.lazy((function(){return Promise.resolve().then(i.bind(i,357)).then((function(t){return{default:t.ChartHoverCard}}))})),jf=[Wu.HorizontalBarChartWithAxis,Wu.HeatMapChart],$f=function(t){function n(n){var i,e,r,u,l,c,f,h,d,v,g,m,y,b,x,w,C,M,k,S,A,L,V,D,N,T,O=t.call(this,n)||this;return O.minLegendContainerHeight=32,O._isRtl=(0,s.jI)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O.calculateMaxYAxisLabelLength=function(t,n,i){var e=function(t){return O.props.showYAxisLablesTooltip?function(t,n,i){return void 0===i&&(i="..."),t.length<=n?t:t.slice(0,n)+i}(t,O.props.noOfCharsToTruncate||4):t};return t===Wu.HeatMapChart?hs(n[0].data.map((function(t){return e("".concat(t.y))})),".".concat(i," text")):hs(n.map((function(t){return e("".concat(t.y))})),".".concat(i," text"))},O._multiValueCallout=function(t){var n=O._yValueHoverSubCountsExists(t.YValueHover);return a.createElement("div",{className:O._classNames.calloutContentRoot},a.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:O._classNames.calloutContentX},Ls(t.xAxisCalloutAccessibilityData,"text",!1)),(0,_n.U)(t.hoverXValue,O.props.culture))),a.createElement("div",{className:O._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,e){var r=i+1===e.length,u=t.shouldDrawBorderBottom,s=void 0!==u&&u;return a.createElement("div",(0,o.Cl)({},Ls(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,i,n,r))})),!!t.descriptionMessage&&a.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n,i){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement,i)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===Ru.StringAxis){var n=hs(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=hs(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=hs(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=hs(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[Wu.GroupedVerticalBarChart,Wu.VerticalBarChart,Wu.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O._getChartDescription=function(){return(O.props.chartTitle||"Chart. ")+O._getAxisTitle("X",O.props.xAxisTitle,O.props.xAxisType)+O._getAxisTitle("Y",O.props.yAxisTitle,O.props.yAxisType||zu.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,zu.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===Ru.StringAxis||i===zu.StringAxis?"categories":i===Ru.DateAxis||i===zu.DateAxis?"time":"values"))+". "},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=p("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=p("defaultTabbableElement_"),O._tooltipId=p("tooltip_"),O.margins={top:null!==(e=null===(i=O.props.margins)||void 0===i?void 0:i.top)&&void 0!==e?e:20,bottom:null!==(u=null===(r=O.props.margins)||void 0===r?void 0:r.bottom)&&void 0!==u?u:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(g=null===(v=O.props.margins)||void 0===v?void 0:v.right)&&void 0!==g?g:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?80:40:null!==(A=null===(S=O.props.margins)||void 0===S?void 0:S.left)&&void 0!==A?A:60,O.margins.right=O._isRtl?null!==(V=null===(L=O.props.margins)||void 0===L?void 0:L.left)&&void 0!==V?V:60:(null!==(N=null===(D=O.props.margins)||void 0===D?void 0:D.right)&&void 0!==N?N:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?80:40),O}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),jf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var t=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Ru.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];Yu(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return Yu(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(jf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var i=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==i&&this.setState({startFromX:i})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,i,e,r,u,s,l,c,f=this,h=this.props,d=h.calloutProps,v=h.points,p=h.chartType,g=h.chartHoverProps,m=h.svgFocusZoneProps,y=h.svgProps,b=h.culture,x=h.dateLocalizeOptions,w=h.timeFormatLocale,C=h.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var M=(0,o.Cl)({},this.margins);jf.includes(this.props.chartType)&&(this._isRtl?M.right+=this.state.startFromX:M.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(M),this._classNames=Rf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,enableReflow:this.props.enableReflow});var k,S,A,L,V,D=null,N=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var T={domainNRangeValues:this.props.getDomainNRangeValues(v,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,p,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:null===(r=this.props.showRoundOffXTickValues)||void 0===r||r,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,containerWidth:this.state.containerWidth,hideTickOverlap:this.props.hideTickOverlap&&!this.props.rotateXAxisLables&&!this.props.showXAxisLablesTooltip&&!this.props.wrapXAxisLables},O={margins:this.props.getYDomainMargins?this.props.getYDomainMargins(this.state.containerHeight):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:this.props.showYAxisLablesTooltip?15:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:this.props.getMinMaxOfYAxis(v,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,F=void 0;switch(this.props.xAxisType){case Ru.NumericAxis:E=(t=rs(T,this.props.tickParams,this.props.chartType,b)).xScale,F=t.tickValues;break;case Ru.DateAxis:E=(n=function(t,n,i,e,r,o,a){var u,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,f=void 0===c?6:c,h=t.xAxistickSize,d=void 0===h?6:h,v=t.xAxisCount,p=a?Sa():ka();p.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]).nice();var g=null!=v?v:6,m=100,y=-1,b=r?Jr(r):void 0;p.ticks().forEach((function(t){var n=function(t,n){var i,e=Re,r=n?je:ze,o=n?Ye:$e,a=n?Ge:Xe,u=n?hr:fr,s=n?rr:Ze,l=n?vr:dr,c=[{formatLevel:0,condition:function(t){return e(t)<t}},{formatLevel:1,condition:function(t){return r(t)<t}},{formatLevel:2,condition:function(t){return o(t)<t}},{formatLevel:3,condition:function(t){return a(t)<t}},{formatLevel:4,condition:function(t){return u(t)<t&&s(t)<t}},{formatLevel:5,condition:function(t){return u(t)<t}},{formatLevel:6,condition:function(t){return l(t)<t}},{formatLevel:7,condition:function(){return!0}}].find((function(n){return(0,n.condition)(t)}));return null!==(i=null==c?void 0:c.formatLevel)&&void 0!==i?i:7}(t,a);n>y&&(y=n),n<m&&(m=n)}));var x=function(t,n,i,e){var r="%c",o="%a %d, %X",a="%b %d, %X",u="%-I:%M %p",s="%b %d, %-I:%M %p",l="%b %d, %-I %p",c="%b %d";return(i?e?i.utcFormat:i.format:e?io:to)([[".%L",":%S.%L","%M:%S.%L","%-I:%M:%S.%L %p",o,a,a,r],[r,":%S","%-I:%M:%S","%X",o,a,a,r],[r,r,u,u,"%a %d, %-I:%M %p",s,s,"%x, %-I:%M %p"],[r,r,r,"%-I %p","%a %d, %-I %p",l,l,"%x, %-I %p"],[r,r,r,r,"%a %d",c,c,"%x"],[r,r,r,r,r,c,c,"%x"],[r,r,r,r,r,r,"%B","%b %Y"],[r,r,r,r,r,r,r,"%Y"]][t][n])}(m,y,b,a),w=function(t,u){return o?o(t):i&&e?t.toLocaleString(i,e):r?x(t):void 0===i&&n.tickFormat?a?io(n.tickFormat)(t):to(n.tickFormat)(t):x(t)},C=hs(p.ticks().map(w),'[class^="xAxis-"] text')+40,M=p.range(),k=M[0],S=M[1];g=Math.min(Math.max(1,Math.floor(Math.abs(S-k)/C)),10),g=Math.min(g,null!=v?v:g);var A=Gn(p).tickSize(d).tickPadding(f).ticks(g).tickFormat(w);n.tickValues&&A.tickValues(n.tickValues),l&&Yu(l).call(A).selectAll("text").attr("aria-hidden","true");var L=(null!==(u=n.tickValues)&&void 0!==u?u:p.ticks(g)).map(A.tickFormat());return{xScale:p,tickValues:L}}(T,this.props.tickParams,b,x,w,C,this.props.useUTC)).xScale,F=n.tickValues;break;case Ru.StringAxis:i=function(t,n,i){var e,r=t.domainNRangeValues,o=t.xAxistickSize,a=void 0===o?6:o,u=t.tickPadding,s=void 0===u?10:u,l=t.xAxisPadding,c=void 0===l?.1:l,f=t.xAxisInnerPadding,h=t.xAxisOuterPadding,d=t.containerWidth,v=t.hideTickOverlap,p=Oa().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==f?f:c).paddingOuter(void 0!==h?h:c),g=null!==(e=n.tickValues)&&void 0!==e?e:i;if(v){var m=[],y=g.map((function(t){return hs([t],'[class^="xAxis-"] text')})),b=0,x=d,w=1,C=p.range();C[1]-C[0]<0&&(b=d,x=0,w=-1);for(var M=g.length-1;M>=0;M--){var k=p(g[M]);w*(k-w*y[M]/2-b)>=0&&w*(k+w*y[M]/2-x)<=0&&(m.push(g[M]),x=k-w*(y[M]/2+10))}g=m=m.reverse()}var S=Gn(p).tickSize(a).tickPadding(s).tickValues(g);return t.xAxisElement&&Yu(t.xAxisElement).call(S).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:g}}(T,this.props.tickParams,this.props.datasetForXAxisDomain),E=i.xScale,F=i.tickValues;break;default:E=(e=rs(T,this.props.tickParams,this.props.chartType,b)).xScale,F=e.tickValues}if(this._xScale=E,this._tickValues=F,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var B={node:this.xAxisElement,xAxis:E,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=E&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=Yu(n).call(i),a=0,u=[];return o.selectAll(".tick text").each((function(){var t=Yu(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();u.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,u),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),a=(g-y)*m}})),a>0?a:0}}(B);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var _=void 0,H=void 0,I={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===zu.StringAxis)_=this.props.createStringYAxis(O,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(u=this.props)||void 0===u?void 0:u.secondaryYScaleOptions){var W={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,yMinMaxValues:this.props.getMinMaxOfYAxis(v,this.props.yAxisType,!0),yAxisPadding:this.props.yAxisPadding};H=this.props.createYAxis(W,this._isRtl,I,this.isIntegralDataset,!0,this.props.supportNegativeData,this.props.roundedTicks)}_=this.props.createYAxis(O,this._isRtl,I,this.isIntegralDataset,!1,this.props.supportNegativeData,this.props.roundedTicks)}if(jf.includes(this.props.chartType)){if(_&&(k=this.yAxisElement,S=_,A=this.props.noOfCharsToTruncate||4,L=this.props.showYAxisLablesTooltip||!1,V=this._isRtl,null!==k&&Yu(k).call(S).selectAll(".tick text").each((function(){var t=Yu(this),n=t.text(),i=V?"...".concat(t.text().slice(0,A)):"".concat(t.text().slice(0,A),"..."),e=t.text().length,r=L?1.5:1,o=t.attr("y"),a=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",a).attr("y",o).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",n),L&&e>A?t.append("tspan").attr("id","showDots").attr("x",V?0:a).attr("y",o).attr("dy",u).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",V?0:a).attr("y",o).attr("dx",r+0+"em").text(n)}))),!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var R=Yu(this.yAxisElement).call(_);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var z={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:R};R&&ds(z)}}this.props.getAxisData&&this.props.getAxisData(I),this._getData(E,_,H),N=this.props.children((0,o.Cl)((0,o.Cl)({},this.state),{xScale:E,yScalePrimary:_,yScaleSecondary:H})),!this.props.hideTooltip&&d.isCalloutVisible&&(D=this._generateCallout(d,g))}var j,$={width:this.state.containerWidth,height:this.state.containerHeight};j=this.props.focusZoneDirection===zs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:zs.horizontal;var Y=$.width-this.margins.left-this.margins.right-this.state.startFromX,X=$.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return a.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return f.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement(xl,(0,o.Cl)({direction:j,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},m),this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement("svg",(0,o.Cl)({width:$.width,height:$.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},Fs(y)),a.createElement("g",{ref:function(t){f.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat($.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&a.createElement(Wf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+Y/2,y:$.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:Y,wrapContent:fs,theme:this.props.theme,showBackground:!0}),a.createElement("g",{ref:function(t){f.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?$.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&a.createElement("g",null,a.createElement("g",{ref:function(t){f.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left+this.state.startFromX:$.width-this.margins.right-this.state.startFromX,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&a.createElement(Wf,{content:this.props.secondaryYAxistitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:$.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat($.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:fs,theme:this.props.theme,showBackground:!0})),N,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&a.createElement(Wf,{content:this.props.yAxisTitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?$.width-this.margins.right/2+this.titleMargin:this.margins.left/2-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat($.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:fs,theme:this.props.theme,showBackground:!0}))),!this.props.hideLegend&&a.createElement("div",{ref:function(t){return f.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),D&&a.createElement(a.Suspense,{fallback:a.createElement("div",null,"Loading...")},D))},n.prototype._generateCallout=function(t,n){return a.createElement(Pn,(0,o.Cl)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&a.createElement(zf,(0,o.Cl)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r,o=e?{}:{marginRight:"16px"},u=void 0!==t.index&&-1!==t.index,s=Rf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:u}),l=this.props.culture,c=(0,_n.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return a.createElement("div",{style:o},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return a.createElement("div",{key:t,className:s.calloutBlockContainer},a.createElement("div",{className:s.calloutlegendText}," ",(0,_n.U)(t,l)),a.createElement("div",{className:s.calloutContentY},(0,_n.U)(f[t],l)))})))}return a.createElement("div",{style:i?o:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},u&&a.createElement(Sc,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:Ms[t.index%Object.keys(As).length]}),a.createElement("div",null,a.createElement("div",{className:s.calloutlegendText}," ",t.legend),a.createElement("div",{className:s.calloutContentY},(0,_n.U)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(r=t.y)&&void 0!==r?r:t.data,l)))))},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,u=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==a||e!==u-n)&&t.setState({containerWidth:a,containerHeight:u-n})}}))},n}(a.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(_f||(_f={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(Hf||(Hf={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(If||(If={}));var Yf=function(){var t,n=(0,l.z)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),Xf=(0,r.I)($f,(function(t){var n,i,e,r,a,u,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=t.enableReflow,b=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:(0,o.Cl)({},y?{overflow:"auto"}:{}),axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:It.BO.semibold,fontStyle:"normal",lineHeight:It.s.medium,color:Hf.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[It.up]={fill:"CanvasText"},n)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(i={},i[It.up]={opacity:.1,stroke:"CanvasText"},i)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[It.up]={fill:"CanvasText"},e)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(r={},r[It.up]={opacity:.1,stroke:"CanvasText"},r)},g:[h&&!Yf&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},b.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(a={},a[It.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},b.small),{lineHeight:"16px",selectors:(u={},u[It.up]={color:"CanvasText"},u),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},b.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[It.up]={color:"CanvasText"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[It.up]={color:"CanvasText"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}],tooltip:(0,o.Cl)((0,o.Cl)({},f.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:f.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Gf=(0,un.J5)((function(t){return(0,un.J5)((function(n){var i=(0,un.J5)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function qf(t,n){return Gf(t)(n)}var Uf=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},Zf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},Kf="spacer-",Jf=1/3,Qf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},th=function(t){return t.getBoundingClientRect()},nh=th,ih=th,eh=function(t){function n(n){var i=t.call(this,n)||this;return i._root=a.createRef(),i._surface=a.createRef(),i._pageRefs={},i._getDerivedStateFromProps=function(t,n){return t.items!==i.props.items||t.renderCount!==i.props.renderCount||t.startIndex!==i.props.startIndex||t.version!==i.props.version||!n.hasMounted&&i.props.renderEarly&&(0,Dn.S)()?(i._resetRequiredWindows(),i._requiredRect=null,i._measureVersion++,i._invalidatePageCache(),i._updatePages(t,n)):n},i._onRenderRoot=function(t){var n=t.rootRef,i=t.surfaceElement,e=t.divProps;return a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderSurface=function(t){var n=t.surfaceRef,i=t.pageElements,e=t.divProps;return a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderPage=function(t,n){for(var e,r=i.props,u=r.onRenderCell,s=r.onRenderCellConditional,l=r.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,o.Tt)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=i.props.getKey?i.props.getKey(b,y):b&&b.key;null==x&&(x=y);var w=null!=s?s:u,C=null!==(e=null==w?void 0:w(b,y,i.props.ignoreScrollingState?void 0:i.state.isScrolling))&&void 0!==e?e:null;s&&!C||g.push(a.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return a.createElement("div",(0,o.Cl)({},v),g)},Qs(i),i.state={pages:[],isScrolling:!1,getDerivedStateFromProps:i._getDerivedStateFromProps,hasMounted:!1},i._estimatedPageHeight=0,i._totalEstimates=0,i._requiredWindowsAhead=0,i._requiredWindowsBehind=0,i._measureVersion=0,i._cachedPageHeights={},i._estimatedPageHeight=0,i._focusedIndex=-1,i._pageCache={},i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,a=0,u=1,s=e;s<r;s+=u){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(u=l.itemCount,s<=t&&s+u>t){if(n&&this._scrollElement){for(var f=ih(this._scrollElement),h=Uf(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)a+=n(s+p);var g=a+n(t);switch(i){case 1:return void Zf(this._scrollElement,a);case 2:return void Zf(this._scrollElement,g-f.height);case 3:return void Zf(this._scrollElement,(a+g-f.height)/2)}if(a>=d.top&&g<=d.bottom)return;a<d.top||g>d.bottom&&(a=g-f.height)}return void(this._scrollElement&&Zf(this._scrollElement,a))}a+=c}},n.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,a=e.startIndex;a<e.startIndex+e.itemCount;a++){if(r=t(a),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return a;o+=r}}}return 0},n.prototype.componentDidMount=function(){this._async=new Nt(this),this._events=new _l(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=K(this._root.current),this._scrollTop=0,this.setState((0,o.Cl)((0,o.Cl)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},n.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var a=i[o],u=e[o];if(a.key!==u.key||a.itemCount!==u.itemCount){r=!0;break}}else r=!0;return r},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,i=t.role,e=void 0===i?"list":i,r=t.onRenderSurface,a=t.onRenderRoot,u=this.state.pages,s=void 0===u?[]:u,l=[],c=z(this.props,R),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=r?qf(r,this._onRenderSurface):this._onRenderSurface;return(a?qf(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,o.Cl)((0,o.Cl)({},c),{className:j("ms-List",n),role:l.length>0?e:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:a}),a},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,o.Cl)((0,o.Cl)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=b(n)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),a=Math.min(i,r+1);o===e&&a===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>a)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var i=this._buildPages(t,n),e=n.pages;return this._notifyPageChanges(e,i.pages,this.props),(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),i),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},a=0,u=t;a<u.length;a++)(c=u[a]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},n.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},n.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},n.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},n.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},n.prototype._buildPages=function(t,n){var i=t.renderCount,e=t.items,r=t.startIndex,a=t.getPageHeight;i=this._getRenderCount(t);for(var u=(0,o.Cl)({},Qf),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=r+i,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!a,g=this._allowedRect,y=function(i){var o=b._getPageSpecification(t,i,g),a=o.height,y=o.data,x=o.key;l=o.itemCount;var w,C,M=c+a-1,k=m(n.pages,(function(t){return!!t.items&&t.startIndex===i}))>-1,S=!g||M>=g.top&&c<=g.bottom,A=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(A||S&&k)||!v||h>=i&&h<i+l||i===r){f&&(s.push(f),f=null);var L=Math.min(l,d-i),V=b._createPage(x,e.slice(i,i+L),i,void 0,void 0,y);V.top=c,V.height=a,b._visibleRect&&b._visibleRect.bottom&&(V.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(V),A&&b._allowedRect&&(w=u,C={top:c,bottom:M,height:a,left:g.left,right:g.right,width:g.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(Kf+i,void 0,i,0,void 0,y,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=r;x<d&&"break"!==y(x);x+=l);return f&&(f.key=Kf+"end",s.push(f)),this._materializedRect=u,(0,o.Cl)((0,o.Cl)({},n),{pages:s,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,a=void 0===o?this._getItemCountForPage(n,i):o,u=r.height;return{itemCount:a,height:void 0===u?this._getPageHeight(n,i,a):u,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,a)}},n.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},n.prototype._createPage=function(t,n,i,e,r,o,a){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var u=this._pageCache[t];return u&&u.page?u.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:a||!1}},n.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},n.prototype._updateRenderRects=function(t,n,i){var e=t.renderedWindowsAhead,r=t.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(t)){var u=this._surfaceRect||(0,o.Cl)({},Qf),s=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=Uf(this._scrollElement);this._surface.current&&(i||!a||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight*Jf)&&(u=this._surfaceRect=nh(this._surface.current),this._scrollTop=c),!i&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var f=Math.max(0,-u.top),h=(0,l.z)(this._root.current),d={top:f,left:u.left,bottom:f+h.innerHeight,right:u.right,width:u.width,height:h.innerHeight};this._requiredRect=rh(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=rh(d,r,e),this._visibleRect=d}},n.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return a.createElement(a.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Ft,n}(a.Component);function rh(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var oh,ah=function(t){var n=a.useRef(null);a.useEffect((function(){if(n.current){var i=Yu(n.current),e=t.text.split(/\s+/),r=[],o=i.append("tspan"),a=0;return e.forEach((function(n){r.push(n),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(a++,r.pop(),o.text(r.join(" ")),r=[n],o=i.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),i.attr("dy",-a*t.lineHeight),function(){i.selectAll("tspan").remove()}}})),t.lineHeight;var i=(0,o.Tt)(t,["lineHeight"]);return a.createElement("text",(0,o.Cl)({ref:n},Fs(i)))},uh=function(t){var n,i,e,r=a.useRef(null),o=a.useState(!1),u=o[0],s=o[1],l=null;if(u){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=a.createElement(Pn,{target:r.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},a.createElement(xl,{isCircularNavigation:!0,direction:zs.vertical},a.createElement(eh,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return a.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Af(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.semanticColors.messageText;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),a.createElement(a.Fragment,null,a.createElement("g",{ref:r,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"},role:"button"},a.createElement(ah,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},sh=function(t){var n,i,e=t.labelWidth?t.labelWidth:105,r=t.chartYTop-20,u=r+7,s=t.scale.range(),l=t.events.map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{x:t.scale(n.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?Af(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var a=o[r],u=n(a);-1===i.indexOf(u)&&(e.push(a),i.push(u))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return a.createElement("line",{key:i,x1:n.x,x2:n.x,y1:u,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var a=t[r].x,u=a-n;return a<e?[]:r===t.length-1?e<u?[{x:a,anchor:"end",aggregatedIdx:[r]}]:a+n<i?[{x:a,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<u?"end":"start")},o=function(e,o){var a="end"===o?t[e].x:t[e].x+n,u=m(t,(function(t){return t.x>a&&(t.x-n>=a||t.x+n<i)}),e+1);-1===u&&(u=t.length);for(var s=[],l=e;l<u;l++)s.push(l);var c=r(a,u);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,e+5,s[1],s[0]).map((function(n,i){return a.createElement(uh,{key:i,theme:t.theme,lineDefs:l,labelDef:n,textY:r,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel})}));return a.createElement(a.Fragment,null,f,h)},lh=(0,u.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(oh||(oh={}));var ch=ui((function(t){return t.x})).left,fh=function(t){function n(n){var i,e,r,u,l,c=t.call(this,n)||this;return c._xAxisScale="",c._yScalePrimary="",c.eventLabelHeight=36,c._isRTL=(0,s.jI)(),c._xMin=Number.NEGATIVE_INFINITY,c._xMax=Number.POSITIVE_INFINITY,c._xPadding=0,c._yPaddingPrimary=0,c._yPaddingSecondary=0,c.toImage=function(t){var n,i;return Ac(null===(n=c._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=c._legendsRef.current)||void 0===i?void 0:i.toSVG,c._isRTL,t)},c._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return"scatter"===c.props.lineMode&&o===Ru.NumericAxis?c._getDomainNRangeValuesWithPadding(t,n,i,r):o===Ru.NumericAxis?ps(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},c._injectIndexPropertyInLineChartData=function(t,n){void 0===n&&(n=!1);var i=c.props.allowMultipleShapesForPoints,e=void 0!==i&&i,r=n?null==t?void 0:t.filter((function(t){var n,i,e;return(null===(i=null===(n=c.props.legendProps)||void 0===n?void 0:n.selectedLegends)||void 0===i?void 0:i.includes(t.legend))||(null===(e=c.props.legendProps)||void 0===e?void 0:e.selectedLegend)===t.legend})):t;return r?r.map((function(t,n){var i,r,a;return a=void 0===t.color?Sf(n,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted):Af(t.color,null===(r=c.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{index:e?n:-1,color:a})})):[]},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerStack?c.props.onRenderCalloutPerStack(c.state.stackCalloutProps):c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps):null},c._getNumericMinMaxOfY=function(t,n,i){var e=xs(t,0,i),r=e.startValue,o=e.endValue,a=0;return"scatter"===c.props.lineMode&&(a=.1*(o-r),i?c._yPaddingSecondary=a:c._yPaddingPrimary=a),{startValue:r-a,endValue:o+a}},c._getMargins=function(t){c.margins=t},c._initializeLineChartData=function(t,n,i,e,r,o,a){c._xAxisScale=t,c._yScalePrimary=n,c._yScaleSecondary=a,c._renderedColorFillBars=c.props.colorFillBars?c._createColorFillBars(i):[],c.lines=c._createLines(r,i)},c._handleSingleLegendSelectionAction=function(t){c.state.selectedLegend===t.legend?(c.setState({selectedLegend:""}),c._handleLegendClick(t,null)):(c.setState({selectedLegend:t.legend}),c._handleLegendClick(t,t.legend))},c._onHoverCardHide=function(){c.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},c._closeCallout=function(){c.setState({isCalloutVisible:!1})},c._getBoxWidthOfShape=function(t,n,i){var e=c.props,r=e.allowMultipleShapesForPoints,o=void 0!==r&&r,a=e.strokeWidth,u=void 0===a?4:a,s=c.state.activePoint;return o?s===t?oh.hoverSize:1===n||i?2.5*u:oh.invisibleSize:s===t?oh.hoverSize:oh.invisibleSize},c._getPath=function(t,n,i,e,r,o){var a=c.props.allowMultipleShapesForPoints,u=void 0!==a&&a,s=c._getBoxWidthOfShape(i,e,r),l=u?o%Object.keys(As).length:0,f=As[l].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,s=f>1?s/f:s,l)},c._getPointFill=function(t,n,i,e){var r=c.state.activePoint,o=c.props,a=o.theme;return o.allowMultipleShapesForPoints,r===n?a.semanticColors.bodyBackground:t},c._createColorFillBars=function(t){var n,i=[];c.state.isSelectedLegend?c._colorFillBars=c.state.selectedColorBarLegend:c._colorFillBars=c.props.colorFillBars;for(var e=xs(c._points),r=0;r<c._colorFillBars.length;r++){var o=c._colorFillBars[r],u=p("string"==typeof o.legend?o.legend.replace(/\W/g,""):""),s=Af(o.color,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted);o.applyPattern&&i.push(c._getStripePattern(s,r));for(var l=0;l<o.data.length;l++){var f=o.data[l].startX,h=o.data[l].endX,d=c._legendHighlighted(o.legend)||c._noLegendHighlighted()||c.state.isSelectedLegend?c._getColorFillBarOpacity(o):.1;i.push(a.createElement("rect",{fill:o.applyPattern?"url(#".concat(c._colorFillBarPatternId,"_").concat(r,")"):s,fillOpacity:d,x:c._isRTL?c._xAxisScale(h):c._xAxisScale(f),y:c._yScalePrimary(e.endValue)-3,width:Math.abs(c._xAxisScale(h)-c._xAxisScale(f)),height:c._yScalePrimary(c.props.yMinValue||0)-c._yScalePrimary(e.endValue)+3,key:"".concat(u).concat(l)}))}}return i},c._getStripePattern=function(t,n){return a.createElement("pattern",{id:"".concat(c._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(c._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},a.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},c._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},c._onMouseOverLargeDataset=function(t,n,i,e){e.persist();var r=c.props.data.lineChartData,o=c._xAxisScale.invert(Ef(e)[0],document.getElementById(c._rectId)),a=ch(r[t].data,o),u=r[t].data[a-1],s=r[t].data[a],l=null,f=null;if(void 0===u&&void 0!==s)l=s.x,f=a;else if(void 0!==u&&void 0===s)l=u.x,f=a-1;else{var h=void 0,d=void 0,v=void 0;switch(Ss(r[t].data[0].x,!0)){case Ru.DateAxis:h=new Date(o).getTime(),d=u.x.getTime(),v=s.x.getTime(),l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1;break;case Ru.NumericAxis:h=o,d=u.x,v=s.x,l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1}}var p=r[t].data[f],g=p.xAxisCalloutData,m=p.xAxisCalloutAccessibilityData,b=l instanceof Date?Es(l,c.props.useUTC):l,x=l instanceof Date?l.getTime():l,w=y(c._calloutPoints,(function(t){return t.x===x})),C=r[t].data[f],M=null===c.state.nearestCircleToHighlight||null!==c.state.nearestCircleToHighlight&&null!==C&&(c.state.nearestCircleToHighlight.x!==C.x||c.state.nearestCircleToHighlight.y!==C.y);w&&M&&(c._uniqueCallOutID="#".concat(c._staticHighlightCircle,"_").concat(t),Yu("#".concat(c._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(c._xAxisScale(C.x))).attr("cy","".concat(i(C.y))).attr("visibility","visibility"),Yu("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(C.x),", ").concat(i(C.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-i(C.y))),c.setState({nearestCircleToHighlight:C,isCalloutVisible:!0,refSelected:"#".concat(c._staticHighlightCircle,"_").concat(t),stackCalloutProps:w,YValueHover:w.values,dataPointCalloutProps:w,hoverXValue:g||b,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),w||c.setState({isCalloutVisible:!1,nearestCircleToHighlight:C,activePoint:"",activeLine:t})},c._handleFocus=function(t,n,i,e,r){c._uniqueCallOutID=e;var o=n instanceof Date?Es(n,c.props.useUTC):n,a=n instanceof Date?n.getTime():n,u=y(c._calloutPoints,(function(t){return t.x===a}));if(u){var s=c;Yu("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(s._xAxisScale(n),", 0)")})).attr("visibility","visibility"),c._refArray.forEach((function(n){n.index===t&&c.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+o,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:e,xAxisCalloutAccessibilityData:r})}))}else c.setState({activePoint:e})},c._handleHover=function(t,n,i,e,r,o,a,u){u.persist();var s=t instanceof Date?Es(t,c.props.useUTC):t,l=t instanceof Date?t.getTime():t,f=c,h=y(c._calloutPoints,(function(t){return t.x===l}));h?(Yu("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(f._xAxisScale(t),", ").concat(a(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-a(n))),c._uniqueCallOutID!==r&&(c._uniqueCallOutID=r,c.setState({isCalloutVisible:!0,refSelected:"#".concat(r),hoverXValue:e||""+s,YValueHover:h.values,stackCalloutProps:h,dataPointCalloutProps:h,activePoint:r,xAxisCalloutAccessibilityData:o,nearestCircleToHighlight:null,activeLine:null}))):c.setState({activePoint:r,nearestCircleToHighlight:null,activeLine:null})},c._getClickHandler=function(t){return t?{onClick:t}:{}},c._handleMouseOut=function(){Yu("#".concat(c._verticalLine)).attr("visibility","hidden")},c._handleChartMouseLeave=function(){c._uniqueCallOutID=null,c.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},c._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},c._handleMultipleLineLegendSelectionAction=function(t){var n,i=c.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedLegendPoints,!0),[t],!1):c.state.selectedLegendPoints.slice(0,i).concat(c.state.selectedLegendPoints.slice(i+1)),c.props.data&&n.length===c.props.data.lineChartData.length&&(c.props.colorFillBars&&c.props.colorFillBars.length===c.state.selectedColorBarLegend.length||!c.props.colorFillBars)?c._clearMultipleLegendSelections():n.length||c.state.selectedColorBarLegend.length?c.setState({selectedLegendPoints:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=c.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedColorBarLegend,!0),[t],!1):c.state.selectedColorBarLegend.slice(0,i).concat(c.state.selectedColorBarLegend.slice(i+1))).length===(c.props.colorFillBars&&c.props.colorFillBars.length)&&(c.props.data&&c.props.data.lineChartData.length===c.state.selectedLegendPoints.length||!c.props.data)?c._clearMultipleLegendSelections():n.length||c.state.selectedLegendPoints.length?c.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._clearMultipleLegendSelections=function(){c.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},c._legendHighlighted=function(t){return c.state.selectedLegend===t||""===c.state.selectedLegend&&c.state.activeLegend===t},c._noLegendHighlighted=function(){return""===c.state.selectedLegend&&""===c.state.activeLegend},c._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},c._getAriaLabel=function(t,n){var i,e=c._points[t],r=e.data[n],o=r.x instanceof Date?Es(r.x,c.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},c._getDomainNRangeValuesWithPadding=function(t,n,i,e){c._xMin=ei(t,(function(t){return ei(t.data,(function(t){return t.x}))})),c._xMax=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),"scatter"===c.props.lineMode&&(c._xPadding=.1*(c._xMax-c._xMin));var r=n.left,o=i-n.right;return e?{dStartValue:c._xMax+c._xPadding,dEndValue:c._xMin-c._xPadding,rStartValue:r,rEndValue:o}:{dStartValue:c._xMin-c._xPadding,dEndValue:c._xMax+c._xPadding,rStartValue:r,rEndValue:o}},c._getChartTitle=function(){var t=c.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Line chart with ".concat((null==i?void 0:i.length)||0," lines. ")},Qs(c),c.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",isCalloutVisible:!1,selectedLegendPoints:c._injectIndexPropertyInLineChartData(c.props.data.lineChartData,!0),selectedColorBarLegend:[],isSelectedLegend:(null!==(l=null===(u=null===(r=c.props.legendProps)||void 0===r?void 0:r.selectedLegends)||void 0===u?void 0:u.length)&&void 0!==l?l:0)>0,activePoint:"",nearestCircleToHighlight:null,activeLine:null},c._refArray=[],c._points=c._injectIndexPropertyInLineChartData(c.props.data.lineChartData),c._colorFillBars=[],c._calloutPoints=cs(c._points)||[],c._circleId=p("circle"),c._lineId=p("lineID"),c._borderId=p("borderID"),c._verticalLine=p("verticalLine"),c._colorFillBarPatternId=p("colorFillBarPattern"),c._tooltipId=p("LineChartTooltipId_"),c._rectId=p("containerRectLD"),c._staticHighlightCircle=p("staticHighlightCircle"),c._createLegendsMemoized=(0,un.J9)((function(t){return c._createLegends(t)})),c._firstRenderOptimization=!0,c._emptyChartId=p("_LineChart_empty"),c._cartesianChartRef=a.createRef(),c._legendsRef=a.createRef(),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(c.eventLabelHeight=n.eventAnnotationProps.labelHeight),c}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r,o,a,u,s,l;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)===(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&Bs(null===(e=t.legendProps)||void 0===e?void 0:e.selectedLegends,null===(r=this.props.legendProps)||void 0===r?void 0:r.selectedLegends)||this.setState({selectedLegend:null!==(a=null===(o=this.props.legendProps)||void 0===o?void 0:o.selectedLegend)&&void 0!==a?a:"",selectedLegendPoints:this._injectIndexPropertyInLineChartData(this.props.data.lineChartData,!0),isSelectedLegend:(null!==(l=null===(s=null===(u=this.props.legendProps)||void 0===u?void 0:u.selectedLegends)||void 0===s?void 0:s.length)&&void 0!==l?l:0)>0}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=cs(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,i=n.tickValues,e=n.tickFormat,r=n.eventAnnotationProps,u=n.legendProps,s=n.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=vs(this._points),c=this._points;u&&u.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=cs(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),d={tickValues:i,tickFormat:e};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:Wu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:us,getmargins:this._getMargins,getMinMaxOfYAxis:this._getNumericMinMaxOfY,getGraphData:this._initializeLineChartData,xAxisType:l?Ru.DateAxis:Ru.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ls,onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yScalePrimary=n.yScalePrimary,t._yScaleSecondary=n.yScaleSecondary,a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?a.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):a.createElement(a.Fragment,null),a.createElement("g",null,t._renderedColorFillBars,t.lines),r&&a.createElement(sh,(0,o.Cl)({theme:t.props.theme},r,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._createLegends=function(t){var n=this,i=this.props,e=i.legendProps,r=i.allowMultipleShapesForPoints,u=void 0!==r&&r,s=!(!e||!e.canSelectMultipleLegends),l=t.map((function(t){var i=t.color;return(0,o.Cl)((0,o.Cl)({title:t.legend,color:i,action:function(){s?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),u&&{shape:Ms[t.index%Object.keys(As).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,i){var e,r=t.legend,o=Af(t.color,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted);return{title:r,color:o,action:function(){s?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:r})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return a.createElement(Fc,(0,o.Cl)({legends:(0,o.fX)((0,o.fX)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps,{ref:this._legendsRef}))},n.prototype._getRangeForScatterMarkerSize=function(t,n){var i=this._isRTL?this._xAxisScale(this._xMax-this._xPadding)-this._xAxisScale(this._xMax):this._xAxisScale(this._xMin+this._xPadding)-this._xAxisScale(this._xMin),e=t.domain()[0],r=t(e)-t(e+n);return Math.min(i,r)},n.prototype._createLines=function(t,n){var i,e,r,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,S,A,L,V,D,N,T=this,O=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var E=ri(this._points,(function(t){return ri(t.data,(function(t){return t.markerSize}))})),F=function(t){var F=[],P=[],_=[],H=B._points[t].legend,I=B._points[t].color,W=B.state.activePoint,R=B.props.theme,z=n-B.margins.bottom+6,j=B._points[t].useSecondaryYScale&&B._yScaleSecondary?B._yScaleSecondary:B._yScalePrimary,$=B._points[t].useSecondaryYScale&&B._yScaleSecondary?B._yPaddingSecondary:B._yPaddingPrimary,Y="scatter"===B.props.lineMode?B._getRangeForScatterMarkerSize(j,$):0;if(1===B._points[t].data.length){var X=B._points[t].data[0],G=X.x,q=X.y,U=X.xAxisCalloutData,Z=X.xAxisCalloutAccessibilityData,K="".concat(B._circleId,"_").concat(t),J=B._legendHighlighted(H)||B._noLegendHighlighted()||B.state.isSelectedLegend,Q=B._points[t].data[0].markerSize;_.push(a.createElement("circle",(0,o.Cl)({id:K,key:K,r:Q?Q*Y/E:W===K?5.5:3.5,cx:B._xAxisScale(G),cy:j(q),fill:W===K?R.semanticColors.bodyBackground:I,opacity:J?1:.1,onMouseOver:B._handleHover.bind(B,G,q,z,U,K,Z,j),onMouseMove:B._handleHover.bind(B,G,q,z,U,K,Z,j),onMouseOut:B._handleMouseOut,strokeWidth:W===K?4:0,stroke:W===K?I:"",role:"img","aria-label":B._getAriaLabel(t,0),"data-is-focusable":J,ref:function(t){T._refCallback(t,K)},onFocus:function(){return T._handleFocus(K,G,U,K,Z)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[0].onDataPointClick))))}var tt=0,nt=null!==(e=null===(i=B._points[t].gaps)||void 0===i?void 0:i.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==e?e:[],it=null===(r=B._points[t].lineOptions)||void 0===r?void 0:r.curve;if((B.props.optimizeLargeData||it)&&B._points[t].data.length>1){for(var et=Pf().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return j(t[1])})).curve(Rs(it)),rt="".concat(B._lineId,"_").concat(t),ot="".concat(B._borderId,"_").concat(t),at=(null===(u=B._points[t].lineOptions)||void 0===u?void 0:u.strokeWidth)||B.props.strokeWidth||4,ut=(J=B._legendHighlighted(H)||B._noLegendHighlighted()||B.state.isSelectedLegend,[]),st=0;st<B._points[t].data.length;st++)ut.push([B._points[t].data[st].x instanceof Date?B._points[t].data[st].x.getTime():B._points[t].data[st].x,B._points[t].data[st].y]);if(J){var lt=(null===(s=B._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(B._points[t].lineOptions.lineBorderWidth.toString()):0;lt>0&&P.push(a.createElement("path",{id:ot,key:ot,d:et(ut),fill:"transparent",strokeLinecap:null!==(c=null===(l=B._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(at.toString())+lt,stroke:(null===(f=B._points[t].lineOptions)||void 0===f?void 0:f.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),F.push(a.createElement("path",(0,o.Cl)({id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:at,strokeLinecap:null!==(d=null===(h=B._points[t].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==d?d:"round",strokeDasharray:null===(v=B._points[t].lineOptions)||void 0===v?void 0:v.strokeDasharray,onMouseMove:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOver:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOut:B._handleMouseOut},B._getClickHandler(B._points[t].onLineClick),{opacity:1})))}else F.push(a.createElement("path",{id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!1,stroke:I,strokeWidth:at,strokeLinecap:null!==(g=null===(p=B._points[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==g?g:"round",strokeDasharray:null===(m=B._points[t].lineOptions)||void 0===m?void 0:m.strokeDasharray,opacity:.1}));var ct=null!==B.state.activeLine&&B.state.activeLine===t;_.push(a.createElement("circle",{id:"".concat(B._staticHighlightCircle,"_").concat(t),key:"".concat(B._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:R.semanticColors.bodyBackground,strokeWidth:4,stroke:I,visibility:ct?"visibility":"hidden",onMouseMove:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOver:B._onMouseOverLargeDataset.bind(B,t,z,j),onMouseOut:B._handleMouseOut}))}else if(!B.props.optimizeLargeData)for(var ft=function(n){var i=B._checkInGap(n,nt,tt),e=i.isInGap;tt=i.gapIndex;var r="".concat(B._lineId,"_").concat(t,"_").concat(n),u="".concat(B._borderId,"_").concat(t,"_").concat(n),s="".concat(B._circleId,"_").concat(t,"_").concat(n),l=B._points[t].data[n-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=B._points[t].data[n],p=v.x,g=v.y,m=B._getPath(B._xAxisScale(c),j(f),s,n,!1,B._points[t].index),O=(null===(y=B._points[t].lineOptions)||void 0===y?void 0:y.strokeWidth)||B.props.strokeWidth||4,$=B._legendHighlighted(H)||B._noLegendHighlighted()||B.state.isSelectedLegend,X=B._points[t].hideNonActiveDots&&W!==s,G=B._points[t].data[n-1].markerSize;if(_.push("scatter"===B.props.lineMode?a.createElement("circle",(0,o.Cl)({id:s,key:s,r:G?G*Y/E:4,cx:B._xAxisScale(c),cy:j(f),"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseMove:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:B._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n-1)})):a.createElement("path",(0,o.Cl)({id:s,key:s,d:m,"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseMove:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:B._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n-1)}))),n+1===B._points[t].data.length){var q="".concat(s).concat(n,"L"),U="".concat(s).concat(n,"D"),Z=B._points[t].hideNonActiveDots&&W!==q;m=B._getPath(B._xAxisScale(p),j(g),q,n,!0,B._points[t].index);var K=B._points[t].data[n],J=K.xAxisCalloutData,Q=K.xAxisCalloutAccessibilityData;G=B._points[t].data[n].markerSize,_.push(a.createElement(a.Fragment,{key:"".concat(q,"_container")},"scatter"===B.props.lineMode?a.createElement("circle",(0,o.Cl)({id:q,key:q,r:G?G*Y/E:4,cx:B._xAxisScale(p),cy:j(g),"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseMove:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:B._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n)})):a.createElement("path",(0,o.Cl)({id:q,key:q,d:m,"data-is-focusable":$,onMouseOver:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseMove:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseOut:B._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:B._handleMouseOut},B._getClickHandler(B._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:B._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":B._getAriaLabel(t,n)})),a.createElement("circle",{id:U,key:U,r:8,cx:B._xAxisScale(p),cy:j(g),opacity:0,width:0,onMouseOver:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseMove:B._handleHover.bind(B,p,g,z,J,q,Q,j),onMouseOut:B._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:B._handleMouseOut})))}if("scatter"!==B.props.lineMode)if($){if(!e){var it=(null===(b=B._points[t].lineOptions)||void 0===b?void 0:b.lineBorderWidth)?Number.parseFloat(B._points[t].lineOptions.lineBorderWidth.toString()):0;it>0&&P.push(a.createElement("line",{id:u,key:u,x1:B._xAxisScale(c),y1:j(f),x2:B._xAxisScale(p),y2:j(g),strokeLinecap:null!==(w=null===(x=B._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeWidth:Number.parseFloat(O.toString())+it,stroke:(null===(C=B._points[t].lineOptions)||void 0===C?void 0:C.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),F.push(a.createElement("line",(0,o.Cl)({id:r,key:r,x1:B._xAxisScale(c),y1:j(f),x2:B._xAxisScale(p),y2:j(g),strokeWidth:O,ref:function(t){T._refCallback(t,r)},onMouseOver:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseMove:B._handleHover.bind(B,c,f,z,h,s,d,j),onMouseOut:B._handleMouseOut,stroke:I,strokeLinecap:null!==(k=null===(M=B._points[t].lineOptions)||void 0===M?void 0:M.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(S=B._points[t].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(A=B._points[t].lineOptions)||void 0===A?void 0:A.strokeDashoffset,opacity:1},B._getClickHandler(B._points[t].onLineClick))))}}else e||F.push(a.createElement("line",{id:r,key:r,x1:B._xAxisScale(c),y1:j(f),x2:B._xAxisScale(p),y2:j(g),strokeWidth:O,stroke:I,strokeLinecap:null!==(V=null===(L=B._points[t].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==V?V:"round",strokeDasharray:null===(D=B._points[t].lineOptions)||void 0===D?void 0:D.strokeDasharray,strokeDashoffset:null===(N=B._points[t].lineOptions)||void 0===N?void 0:N.strokeDashoffset,opacity:.1}))},ht=1;ht<B._points[t].data.length;ht++)ft(ht);O.push(a.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(H,", line ").concat(t+1," of ").concat(B._points.length," with ").concat(B._points[t].data.length," data points.")},P,F,_))},B=this,P=this._points.length-1;P>=0;P--)F(P);var _=lh(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var H=Yu(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var I={tooltipCls:_.tooltip,id:this._tooltipId,axis:H};H&&ds(I)}return O},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0,useUTC:!0},n}(a.Component),hh=(0,r.I)(fh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:t.theme.semanticColors.bodyText})}}));function dh(t,n){if((r=t.length)>1)for(var i,e,r,o=1,a=t[n[0]],u=a.length;o<r;++o)for(e=a,a=t[n[o]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function vh(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function ph(t,n){return t[n]}function gh(t){const n=[];return n.key=t,n}function mh(t){return t<0?-1:1}function yh(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),a=(i-t._y1)/(r||e<0&&-0),u=(o*r+a*e)/(e+r);return(mh(o)+mh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function bh(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function xh(t,n,i){var e=t._x0,r=t._y0,o=t._x1,a=t._y1,u=(o-e)/3;t._context.bezierCurveTo(e+u,r+u*n,o-u,a-u*i,o,a)}function wh(t){this._context=t}function Ch(t){this._context=t}function Mh(t){return new wh(t)}function kh(t,n,i){var e=null,r=Pc(!0),o=null,a=qu,u=null,s=of(l);function l(l){var c,f,h,d,v,p=(l=Bc(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(u=a(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=c-1;h>=f;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),u.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return u=null,v+""||null}function c(){return Pf().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Ff:Pc(+t),n="function"==typeof n?n:Pc(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Bf:Pc(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Pc(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Pc(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Pc(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Pc(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:Pc(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}wh.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:xh(this,this._t0,bh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,xh(this,bh(this,i=yh(this,t,n)),i);break;default:xh(this,this._t0,i=yh(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new Ch(t)}.prototype=Object.create(wh.prototype)).point=function(t,n){wh.prototype.point.call(this,n,t)},Ch.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var Sh,Ah=(0,u.Z)(),Lh=ui((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Sh||(Sh={}));var Vh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._containsSecondaryYAxis=!1,e._hasDuplicateXValues=!1,e._hasMissingXValues=!1,e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u){return o===Ru.NumericAxis?ps(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e._xAxisRectScale.invert(Ef(t)[0],document.getElementById(e._rectId)),r=Lh(n[0].data,i),a=n[0].data[r-1],u=n[0].data[r],s=null,l=null,c=n[0].data.length>0?Ss(n[0].data[0].x,!0):null;if(void 0===a&&void 0!==u)s=u.x,l=r;else if(void 0!==a&&void 0===u)s=a.x,l=r-1;else{var f=void 0,h=void 0,d=void 0;switch(c){case Ru.DateAxis:f=new Date(i).getTime(),h=a.x.getTime(),d=u.x.getTime(),s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1;break;case Ru.NumericAxis:f=i,h=a.x,d=u.x,s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1}}var v=n[0].data[l],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,m=s instanceof Date?Es(s,e.props.useUTC):s,b=s instanceof Date?s.getTime():s,x=y(e._calloutPoints,(function(t){return t.x===b})),w=c===Ru.DateAxis?s.getTime():s,C=e.state.nearestCircleToHighlight!==w;if(x&&C&&!e.state.isShowCalloutPending){var M=e._getFilteredLegendValues(x.values);e.setState({nearestCircleToHighlight:w,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(s),displayOfLine:Sh.show,isCircleClicked:!1,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),YValueHover:M,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),hoverXValue:p||m,xAxisCalloutAccessibilityData:g,activePoint:""})}x||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,displayOfLine:Sh.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Sh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getDataPoints=function(t,n){var i,r=[],o=0;if(e._shouldFillToZeroY())t.forEach((function(t,i){var e=[];n.forEach((function(n){e.push({values:[0,n[t]],xVal:n.xVal}),n[t]>o&&(o=n[t])})),r.push(e)}));else{var a=function(){var t=Pc([]),n=vh,i=dh,e=ph;function r(r){var o,a,u=Array.from(t.apply(this,arguments),gh),s=u.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(u[o][l]=[0,+e(t,u[o].key,l,r)]).data=t;for(o=0,a=Bc(n(u));o<s;++o)u[a[o]].index=o;return i(u,a),u}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Pc(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Pc(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?vh:"function"==typeof t?t:Pc(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?dh:t,r):i},r}().keys(t)(n);o=ri(a[a.length-1],(function(t){return t[1]})),a.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),r.push(n)}))}return e._isMultiStackChart=!!((null===(i=e.props.legendProps)||void 0===i?void 0:i.selectedLegends)?(null==r?void 0:r.length)>=1:(null==r?void 0:r.length)>1),{renderData:r,maxOfYVal:e._containsSecondaryYAxis?xs(e.props.data.lineChartData).endValue:o}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization&&!e._hasDuplicateXValues){var n=[],i=[],r=[],o=[],a=cs(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var u={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;u[n]?u[n].push(t):u[n]=[t]})),Object.keys(u).forEach((function(t){var n=u[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=e._getDataPoints(l,i);return{colors:r,opacity:o,keys:l,data:h,calloutPoints:a}}var d=[],v=[],p=[],g=[],m=(a=cs(t),h={},l=[],0);if(t&&t.length&&t.forEach((function(t){e._hasDuplicateXValues&&!t.legend&&(t.legend="chart".concat(m),++m),t.data.forEach((function(n){n.legend=t.legend})),p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)})),e._hasDuplicateXValues){var y=e._createDatasetForXCoordinateWithMultipleYValues(d);h=e._getDataPoints(y.keys,y.filteredDataSet)}else{for(var b=d,x=function(){var t=b[0].x instanceof Date?b[0].x.toLocaleString():b[0].x,n=b.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=b[0].x instanceof Date?b[0].x.toLocaleString():b[0].x;b=b.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};b.length;)x();for(s=v&&Object.keys(v[0]).length,c=0;c<s-1;c++)f="chart".concat(c),l.push(f);h=e._getDataPoints(l,v)}return{colors:p,opacity:g,keys:l,data:h,calloutPoints:a}},e._createDatasetForXCoordinateWithMultipleYValues=function(t){var n=[],i={};t.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;i[n]||(i[n]=[]),i[n].push(t)})),Object.keys(i).forEach((function(t){var e=i[t];e.forEach((function(t,i){var r={xVal:e[0].x};r[t.legend?t.legend:"chart".concat(i)]=t.y,n.push(r)}))}));var e=[];n.forEach((function(t){Object.keys(t).forEach((function(t){"xVal"===t||e.includes(t)||e.push(t)}))})),n.forEach((function(t){e.forEach((function(n){t[n]||(t[n]=0)}))}));var r=n.filter((function(t){return e.some((function(n){return 0!==t[n]}))}));return{keys:Array.from(new Set(r.flatMap((function(t){return Object.keys(t).filter((function(t){return"xVal"!==t}))})))),filteredDataSet:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getGraphData=function(t,n,i,r,o,a,u){e._chart=e._drawGraph(i,t,n,u,o)},e._getLegendData=function(t){var n=[];return t.forEach((function(t){var i=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===i})).length>0)){var r={title:t.legend,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};n.push(r)}})),a.createElement(Fc,(0,o.Cl)({legends:n,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},e._onDataPointClick=function(t){t&&t(),e.setState({isCircleClicked:!0})},e._getOpacity=function(t){return e._isMultiStackChart?e._legendHighlighted(t)||e._noLegendHighlighted()?.7:.1:.7},e._getLineOpacity=function(t){if(e._isMultiStackChart){var n=.3;return e.state.isCalloutVisible&&(n=1),e._noLegendHighlighted()||(n=e._legendHighlighted(t)?0:.1),n}return 1},e._updateCircleFillColor=function(t,n,i){var r=n;return e.state.nearestCircleToHighlight!==t&&e.state.activePoint!==i||(e._highlightedCircleId=i,e.state.isCircleClicked||(r=e.props.theme.semanticColors.bodyBackground)),r},e._drawGraph=function(t,n,i,r,u){var s,l=e._addDefaultColors(e.props.data.lineChartData),c=e.props.data,f=c.pointOptions,h=c.pointLineOptions,d=[];e._data.forEach((function(t,u){var s,c,f,h,v,p,g,m,y,b,x,w,C=(null===(s=l[u])||void 0===s?void 0:s.useSecondaryYScale)&&r?r:i,M=Rs(null===(f=null===(c=l[u])||void 0===c?void 0:c.lineOptions)||void 0===f?void 0:f.curve,Mh),k=kh().x((function(t){return n(t.xVal)})).y0((function(t){return C(t.values[0])})).y1((function(t){return C(t.values[1])})).curve(M),S=Pf().x((function(t){return n(t.xVal)})).y((function(t){return C(t.values[1])})).curve(M),A=e._shouldFillToZeroY()?.8:e._opacity[u];d.push(a.createElement(a.Fragment,{key:"".concat(u,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:"gradient_".concat(u),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},a.createElement("stop",{offset:"0",stopColor:e._colors[u]}),a.createElement("stop",{offset:"100%",stopColor:"transparent"}))),a.createElement("path",{id:"".concat(u,"-line-").concat(e._uniqueIdForGraph),d:S(t),fill:"transparent",strokeWidth:null!==(p=null===(v=null===(h=l[u])||void 0===h?void 0:h.lineOptions)||void 0===v?void 0:v.strokeWidth)&&void 0!==p?p:3,stroke:e._colors[u],opacity:e._getLineOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,strokeDasharray:null===(m=null===(g=l[u])||void 0===g?void 0:g.lineOptions)||void 0===m?void 0:m.strokeDasharray,strokeDashoffset:null===(b=null===(y=l[u])||void 0===y?void 0:y.lineOptions)||void 0===b?void 0:b.strokeDashoffset,strokeLinecap:null===(w=null===(x=l[u])||void 0===x?void 0:x.lineOptions)||void 0===w?void 0:w.strokeLinecap}),1===t.length?a.createElement("circle",{id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),cx:n(t[0].xVal),cy:C(t[0].values[1]),r:6,stroke:e._colors[u],strokeWidth:3,fill:e._colors[u],opacity:A,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):a.createElement("path",(0,o.Cl)({id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),d:k(t),fill:e.props.enableGradient?"url(#gradient_".concat(u,")"):e._colors[u],opacity:A,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")}))))}));var v=f&&f.r?Number(f.r):8;e._data.forEach((function(t,u){var c;if(l.length!==u){var h=(null===(c=l[u])||void 0===c?void 0:c.useSecondaryYScale)&&r?r:i;e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,i){var r=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===r){var c="".concat(e._circleId,"_").concat(u*e._data[0].length+i);s=l[u].color;var p=l[u].legend;d.push(a.createElement("circle",(0,o.Cl)({key:c,id:c,cx:n(t.xVal),cy:h(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(r,s,c),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e._getOnClickHandler(l,u,i),Fs(f),{r:e._getCircleRadius(r,v,c,p)})))}})):d.push(a.createElement("g",{key:"".concat(u,"-dots-").concat(e._uniqueIdForGraph),clipPath:"url(#clip)",role:"region","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")},t.map((function(t,i){var r="".concat(e._circleId,"_").concat(u*e._data[0].length+i),c=t.xVal instanceof Date?t.xVal.getTime():t.xVal;s=l[u].color;var d=l[u].legend;return a.createElement("circle",(0,o.Cl)({key:r,id:r,"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),cx:n(t.xVal),cy:h(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(c,s,r),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e._getOnClickHandler(l,u,i),{onFocus:function(){return e._handleFocus(u,i,r)},onBlur:e._handleBlur},Fs(f),{r:e._getCircleRadius(c,v,r,d),role:"img","aria-label":!e._hasDuplicateXValues&&!e._hasMissingXValues&&e._getAriaLabel(u,i)||void 0}))}))))}})),d.push(a.createElement("line",(0,o.Cl)({id:e._verticalLineId,key:e._verticalLineId,x1:e.state.lineXValue,y1:0,x2:e.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:e.state.displayOfLine},Fs(h))));var p=Ah(e.props.styles,{theme:e.props.theme});if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var g=Yu(u).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:p.tooltip,id:e._tooltipId,axis:g};g&&ds(m)}return d},e._getOnClickHandler=function(t,n,i){return!e._hasDuplicateXValues&&!e._hasMissingXValues&&{onClick:e._onDataPointClick.bind(e,t[n].data[i].onDataPointClick)}},e._getCircleRadius=function(t,n,i,r){var o=e.state,a=o.isCircleClicked,u=o.nearestCircleToHighlight,s=o.activePoint;return e._noLegendHighlighted()||e._legendHighlighted(r)?a&&u===t?1:u===t||s===i?n:0:0},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){if(e._hasMissingXValues){var n=new Set;t&&t.forEach((function(t){t.data.forEach((function(t){var i=t.x instanceof Date?t.x.toLocaleString():t.x;n.add(i)}))})),t&&t.forEach((function(t){n.forEach((function(n){t.data.find((function(t){return t.x instanceof Date?t.x.toLocaleString()===n:t.x===n}))||t.data.push({x:"string"==typeof n?new Date(n):n,y:0,legend:t.legend})})),t.data.sort((function(t,n){var i=t.x instanceof Date?t.x.getTime():t.x,e=n.x instanceof Date?n.x.getTime():n.x;return i<e?-1:i>e?1:0}))}))}return t?t.map((function(t,n){var i,r,a;return a=void 0===t.color?Sf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Af(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],a=r.x,u=r.y,s=r.xAxisCalloutData,l=a instanceof Date?Es(a,e.props.useUTC):a,c=a instanceof Date?a.getTime():a,f=e._calloutPoints.find((function(t){return t.x===c}));f.values=f.values.filter((function(t){return t.y===u}));var h=e._getFilteredLegendValues(f.values);e.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:h,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),activePoint:i})},e._getFilteredLegendValues=function(t){return e._noLegendHighlighted()?t:t.filter((function(t){return e._legendHighlighted(t.legend)}))},e._handleBlur=function(){e.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},e._getChartTitle=function(){var t=e.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Area chart with ".concat((null==i?void 0:i.length)||0," data series. ")},Qs(e),e._createSet=(0,un.J9)(e._createDataSet),e.state={selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Sh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},e._hasMissingXValues=e._containsMissingXValues(),e._uniqueIdForGraph=p("areaChart_"),e._verticalLineId=p("verticalLine_"),e._circleId=p("circle"),e._rectId=p("rectangle"),e._tooltipId=p("AreaChartTooltipID"),e._enableComputationOptimization=!0,e._firstRenderOptimization=!0,e._emptyChartId=p("_AreaChart_empty"),e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data.lineChartData,i=this._addDefaultColors(n);this._hasDuplicateXValues=this._xCoordinateContainsMultipleY(),this._containsSecondaryYAxis=!!this.props.secondaryYScaleOptions&&i.some((function(t){return t.useSecondaryYScale}));var e=this._createSet(i),r=e.colors,u=e.opacity,s=e.data,l=e.calloutPoints;this._calloutPoints=l;var c=vs(i);this._colors=r,this._opacity=u,this._data=s.renderData;var f=this._getLegendData(i),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},d=(0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible&&!this._hasDuplicateXValues&&!this._hasMissingXValues,directionalHint:3,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 a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:i,chartType:Wu.AreaChart,calloutProps:d,legendBars:f,createYAxis:us,isCalloutForStack:!0,xAxisType:c?Ru.DateAxis:Ru.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ls,getmargins:this._getMargins,getMinMaxOfYAxis:xs,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){t._xAxisRectScale=n.xScale;var i=t._xAxisRectScale.ticks(),e=t._xAxisRectScale(i[i.length-1]),r=n.containerHeight-t.margins.top;return a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("rect",{id:t._rectId,width:e,height:r,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),a.createElement("g",null,t._chart))}}))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?Es(r.x,this.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n.prototype._xCoordinateContainsMultipleY=function(){var t=this.props.data.lineChartData;if(!t)return!1;for(var n=0,i=t;n<i.length;n++)for(var e={},r=0,o=i[n].data;r<o.length;r++){var a=o[r],u=a.x instanceof Date?a.x.toLocaleString():a.x;if(e[u]||(e[u]=[]),e[u].push(a.y),e[u].length>1)return!0}return!1},n.prototype._containsMissingXValues=function(){var t=this.props.data.lineChartData;if(!t)return!1;var n=new Set;t.forEach((function(t){t.data.forEach((function(t){var i=t.x instanceof Date?t.x.toLocaleString():t.x;n.add(i)}))}));var i=!1;return t.forEach((function(t){n.forEach((function(n){t.data.find((function(t){return t.x instanceof Date?t.x.toLocaleString()===n:t.x===n}))||(i=!0)}))})),i},n.prototype._shouldFillToZeroY=function(){return"tozeroy"===this.props.mode||this._containsSecondaryYAxis},n.defaultProps={useUTC:!0},n}(a.Component),Dh=(0,r.I)(Vh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:t.theme.semanticColors.bodyText})}})),Nh=function(t,n){var i,e=t.color;return{arcRoot:{fill:e},arcRootFocussed:{fill:e,stroke:(null==n?void 0:n.palette.black)||It.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.semanticColors.bodyText)||It.bp.black,outline:"none",selectors:(i={},i[It.up]={fill:"CanvasText"},i)}}},Th=function(t){function n(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Eh(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=p("piechart_arc"),i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return Eh(t),null},n.prototype.render=function(){var t,n=this,i=this.props.arc,e=(0,u.Z)()((function(t){return Nh(t,n.props.theme)}),(0,o.Cl)({},this.props));return a.createElement("path",{d:i(this.props.data),className:"".concat(this.state.isArcFocused?e.arcRootFocussed:e.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:hf()},n}(a.Component),Oh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._arcId=p("piechart_arc"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var n,i,e=this,r=this.props,o=r.data,s=r.culture,l=hf().centroid({endAngle:(null==o?void 0:o.endAngle)||0,startAngle:(null==o?void 0:o.startAngle)||0,padAngle:null==o?void 0:o.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(i=this.props)||void 0===i?void 0:i.outerRadius)||4}),c=l[0],f=l[1],h=(0,u.Z)()((function(t){return Nh(t,e.props.theme)})),d=(((null==o?void 0:o.startAngle)||0)+((null==o?void 0:o.endAngle)||0))/2,v="".concat(null==o?void 0:o.data.x,"-").concat((0,_n.U)(null==o?void 0:o.data.y,s));return a.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),a.createElement(Wf,{content:v,textProps:{x:c+(d>Math.PI?-10:10),y:f+(d>Math.PI/2&&d<3*Math.PI/2?10:-10),dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==o?void 0:o.data.x,"-").concat((0,_n.U)(null==o?void 0:o.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:fs}))},n}(Th);function Eh(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Fh,Bh=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return a.createElement(Oh,{culture:i.props.culture,key:n,data:t,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:"".concat(i.colors(n)),theme:i.props.theme})},i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=n.width,o=n.height,u=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(Sf(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Ta().range(h.map((function(t){return Af(t)})));var d=i(e),v="translate(".concat(r/2,", ").concat(o/2,")");return a.createElement(xl,{direction:zs.domOrder},a.createElement("svg",{width:r,height:o,"aria-label":u},a.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},n.defaultProps={pie:Kc().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(a.Component),Ph=(0,u.Z)(),_h=function(t){function n(n){var i=t.call(this,n)||this;return i._emptyChartId=p("_PieChart_empty"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.data,i=t.width,e=t.height,r=t.colors,o=t.chartTitle,u=this.props,s=u.theme,l=u.className,c=u.styles,f=u.culture;this._classNames=Ph(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root},this.props.chartTitle&&a.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),a.createElement(Bh,{culture:f,width:i+8,height:e+8,outerRadius:h,innerRadius:1,data:n,colors:r,chartTitle:o,theme:s}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(a.Component),Hh=(0,r.I)(_h,(function(t){var n=t.className,i=t.theme,e=t.width+30,r=t.height+10;return{root:[i.fonts.medium,"ms-PieChart",n,{width:e+40}],chart:[{padding:20,width:e,height:r,boxSizing:"content-box"}],chartTitle:[(0,o.Cl)((0,o.Cl)({textAlign:"center"},i.fonts.mediumPlus),{color:i.semanticColors.bodyText})]}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(Fh||(Fh={}));var Ih,Wh=(0,u.Z)(),Rh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._adjustProps=function(){var t=i.props,n=t.theme,e=t.className,r=t.styles,o=t.width,a=t.barHeight;i._classNames=Wh(r,{legendColor:i.state.color,theme:n,width:o,className:e,barHeight:a})},i._getLegendData=function(t,n,e){var r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],u=[];return t.forEach((function(t,e){var o=t.chartData.filter((function(t){return!t.placeHolder}));o.length<3?void 0!==n[e]&&n[e]&&o.forEach((function(t,n){var e,o,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}})):o.forEach((function(t,n){var e,o,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}}))})),a.createElement(Fc,(0,o.Cl)({legends:u,overflowProps:i.props.legendsOverflowProps,focusZonePropsInHoverCard:i.props.focusZonePropsForLegendsInHoverCard,overflowText:i.props.legendsOverflowText},i.props.legendProps))},i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):t.placeHolder?"Remaining, ":"")+"".concat(e,".")},i._computeLongestBarTotalValue=function(){var t=0;return i.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},i.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._onLeave=i._onLeave.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=p("callout"),i.barChartSvgRef=a.createRef(),i._emptyChartId=p("_MSBC_empty"),i._barId=p("_MSBC_rect_"),i._barIdPlaceholderPartToWhole=p("_MSBC_rect_partToWhole_"),i._barIdEmpty=p("_MSBC_rect_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.data,e=n.theme,r=n.culture;this._adjustProps();var u=e.palette,s=this._getLegendData(i,this.props.hideRatio,u),l=this.state.isCalloutVisible;this._classNames=Wh(this.props.styles,{legendColor:this.state.color,theme:e,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=i.map((function(n,i){var e=t._createBarsAndLegends(n,t.props.barHeight,u,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return a.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&a.createElement("div",{className:this._classNames.legendContainer},s),a.createElement(Pn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(js.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:r}))))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,i,e,r,u,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,g=[i.blueLight,i.blue,i.blueMid,i.red,i.black],m=[],y=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),b=this.props.variant===Fh.AbsoluteScale?this._longestBarTotalValue:y,x=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/b*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),x+=i})),this.props.variant===Fh.AbsoluteScale){var w=0===b?0:(b-y)/b*100;w<1&&0!==w?w=1:w>99&&100!==w&&(w=99),x+=w}var C=0!==x?x/(100-d):1,M=0,k=0,S=t.chartData.map((function(t,e){var r,o,l,c,h=t.color?t.color:t.placeHolder?i.neutralLight:g[Math.floor(4*Math.random()+1)],d=h;f.props.enableGradient&&(h=(null===(r=t.gradient)||void 0===r?void 0:r[0])||Zs(e,0,null===(o=f.props.theme)||void 0===o?void 0:o.isInverted)[0],d=(null===(l=t.gradient)||void 0===l?void 0:l[1])||Zs(e,0,null===(c=f.props.theme)||void 0===c?void 0:c.isInverted)[1]);var v=t.data?t.data:0;e>0&&(M+=k),(k=v/b*100?v/b*100:0)<1&&0!==k?k=1/C:k>99&&100!==k?k=99/C:k/=C,m.push(M);var y=f.props.styles,x=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),w=t.placeHolder?f.props.theme.semanticColors.bodyText:h;f._classNames=Wh(y,{theme:f.props.theme,shouldHighlight:x,href:u,variant:f.props.variant,hideLabels:f.props.hideLabels});var S=p("MSBC_Gradient")+"_".concat(s,"_").concat(e);return a.createElement("g",{key:e,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip&&x,onFocus:f._onBarFocus.bind(f,v,w,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,v,w,t),onMouseMove:f._onBarHover.bind(f,v,w,t),onMouseLeave:f._onBarLeave,onClick:u?t.placeHolder?void 0:f._redirectToUrl.bind(f,u):t.onClick},f.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:S},a.createElement("stop",{offset:"0",stopColor:h}),a.createElement("stop",{offset:"100%",stopColor:d}))),a.createElement("rect",{key:e,id:"".concat(f._barId,"-").concat(s,"-").concat(e),x:"".concat(f._isRTL?100-m[e]-k-f.state.barSpacingInPercent*e:m[e]+f.state.barSpacingInPercent*e,"%"),y:0,width:k+"%",height:n,rx:f.props.roundCorners?3:0,fill:f.props.enableGradient?"url(#".concat(S,")"):h}))}));if(this.props.variant!==Fh.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(a.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0}))),0===y&&S.push(a.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=y):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(a.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-k-d:(m[m.length-1]||0)+k+d,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},Ds(L)))}var V=void 0!==e&&e,D=this.props.variant!==Fh.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==Fh.AbsoluteScale&&!V&&1===t.chartData.length,T=function(){return(0,_n.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return a.createElement("div",{className:this._classNames.singleChartRoot},a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&a.createElement(Ol,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),D&&a.createElement("div",(0,o.Cl)({},Ls(t.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},T()),!r&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,_n.U)(y,v))),N&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ls(t.chartDataAccessibilityData,"text",!1)),T()))),a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:this._classNames.chartWrapper},a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(a.Component),zh=(0,r.I)(Rh,(function(t){var n,i=t.className,e=t.width,r=t.barHeight,a=t.shouldHighlight,u=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[u.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:e||"100%"},i],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},u.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:u.palette.neutralPrimary,marginBottom:l===Fh.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:l===Fh.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:It.s.medium,fontWeight:It.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:It.s.medium,color:u.palette.neutralPrimary},placeHolderOnHover:{opacity:a?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:u.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)},chartWrapper:{paddingRight:l!==Fh.AbsoluteScale||c?0:40}}})),jh=(0,u.Z)(),$h=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):t.placeHolder?"Remaining, ":"")+"".concat(e,".")},i.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._refArray=[],i._onLeave=i._onLeave.bind(i),i._refCallback=i._refCallback.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=p("callout"),i._emptyChartId=p("_SBC_empty"),i.barChartSvgRef=a.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,i=t.benchmarkData,e=t.targetData,r=t.hideNumberDisplay,u=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=u||n.chartData.length>2?this.props.barHeight:12;i&&(i.color=i.color||l.neutralTertiary),e&&(e.color=e.color||l.neutralSecondary);var f=this._createBarsAndLegends(n,c,l,i,e),h=!1===r&&!u&&2===n.chartData.length,d=!1===r&&!u&&1===n.chartData.length,v=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;i&&v&&(p=i.data/v*100);var g=0;e&&v&&(g=e.data/v*100);var m=!1===this.props.hideLegend&&(u||n.chartData.length>2);this._classNames=jh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:i?i.color:"",benchmarkRatio:p,targetColor:e?e.color:"",targetRatio:g,showTriangle:!(!i&&!e)});var y=function(){return(0,_n.U)(n.chartData[0].data?n.chartData[0].data:0,s)};return a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},a.createElement(xl,{direction:zs.horizontal},a.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&a.createElement(Ol,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&a.createElement("div",(0,o.Cl)({},Ls(n.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,_n.U)(v,s))),d&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ls(n.chartDataAccessibilityData,"text",!1)),y())),(i||e)&&a.createElement("div",{className:this._classNames.benchmarkContainer},i&&a.createElement("div",{className:this._classNames.benchmark,role:"text"}),e&&a.createElement("div",{className:this._classNames.target,role:"text"}))),a.createElement(xl,{direction:zs.horizontal},a.createElement("div",null,a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},a.createElement("g",null,f[0]),a.createElement(Pn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Ls(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&a.createElement("div",{className:this._classNames.legendContainer},f[1]))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=jh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,i,e,r){var u,s=this,l=(null===(u=t.chartData)||void 0===u?void 0:u.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[i.blueLight,i.blue,i.blueMid,i.red,i.black],h=[],d=[],v=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),g=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/v*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,i){var e,r,o,u,l=t.color?t.color:f[Math.floor(4*Math.random()+1)],c=l;s.props.enableGradient&&(l=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted)[0],c=(null===(o=t.gradient)||void 0===o?void 0:o[1])||Zs(i,0,null===(u=s.props.theme)||void 0===u?void 0:u.isInverted)[1]);var y=t.data?t.data:0,x={title:t.legend,color:l,action:v>0?function(){s._onClick(t.legend)}:void 0,hoverAction:v>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:v>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(x),i>0&&(g+=m),(m=y/v*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(g);var w=s.props.styles,C=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted()),M=t.placeHolder?s.props.theme.semanticColors.bodyText:l;s._classNames=jh(w,{theme:s.props.theme,shouldHighlight:C,href:s.props.href});var k=p("SBC_Gradient")+"_".concat(i);return a.createElement("g",{key:i,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,x.title)},"data-is-focusable":!s.props.hideTooltip&&C,onFocus:s._onBarFocus.bind(s,y,M,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,y,M,t),onMouseMove:s._onBarHover.bind(s,y,M,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:k},a.createElement("stop",{offset:"0",stopColor:l}),a.createElement("stop",{offset:"100%",stopColor:c}))),a.createElement("rect",{key:i,id:p("_SBC_bar"),x:"".concat(s._isRTL?100-d[i]-m-s.state.barSpacingInPercent*i:d[i]+s.state.barSpacingInPercent*i,"%"),y:0,width:m+"%",height:n,rx:s.props.roundCorners?3:0,fill:s.props.enableGradient?"url(#".concat(k,")"):l}))}));this._addLegend(h,e),this._addLegend(h,r);var w=a.createElement(Fc,(0,o.Cl)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===v?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:i.neutralLight)]:x,w]},n.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},n.prototype._generateEmptyBar=function(t,n){return a.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},a.createElement("rect",{key:0,id:p("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend?i.legend:i.placeHolder?"Remaining":"",dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(a.Component),Yh=(0,r.I)($h,(function(t){var n,i,e=t.className,r=t.width,a=t.barHeight,u=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:r||"100%",display:"flex",flexDirection:"column"},e],chart:{width:"100%",height:a||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:u?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:It.s.medium,fontWeight:It.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:It.s.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(n={},n[It.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},n)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(i={},i[It.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},i)}}})),Xh=function(t){if(!(t.length<2)){t=t.sort((function(t,n){return t instanceof Date?t.getTime()-n.getTime():t-n}));for(var n=Number.MAX_VALUE,i=1;i<t.length;i++){var e=t[i]instanceof Date?t[i].getTime()-t[i-1].getTime():t[i]-t[i-1];n=Math.min(n,e)}return[n,t[0]instanceof Date?t[t.length-1].getTime()-t[0].getTime():t[t.length-1]-t[0]]}},Gh=function(t,n,i){var e=Xh(t);if(!e||0===e[1])return 16;var r=e[0],o=e[1];return Math.floor(n*r*(1-i)/(o+r*(1-i)))};!function(t){t.show="visibility",t.hide="hidden"}(Ih||(Ih={}));var qh=(0,u.Z)(),Uh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ru.NumericAxis?function(t,n,i,e){var r=ri(t,(function(t){return t.x})),o=ei(t,(function(t){return t.x})),a=n.left,u=i-n.right;return e?{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}:{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}}(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):ys(n,i,r)},e._createLine=function(t,n,i,r,o){var u;void 0===i&&(i=0),void 0===r&&(r=0);var s=e._xAxisType===Ru.StringAxis,l=e._getScales(i,r).xBarScale,c=e._createColors(),f=e.props.theme,h=e.props,d=h.data,v=h.lineLegendColor,g=void 0===v?f.palette.yellow:v,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=Pf().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&o?o(t.y):n(t.y)})),w=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),C=(null===(u=e.props.lineOptions)||void 0===u?void 0:u.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(a.createElement("path",{key:p("_VBC_line_"),id:p("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(a.createElement("path",{key:p("_VBC_line_"),id:p("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var M=y.map((function(i,r){var u,f={refElement:null};return a.createElement("circle",{key:r,id:p("_VBC_point_"),cx:s?l(i.x)+.5*l.bandwidth():t(i.x),cy:i.useSecondaryYScale&&o?o(i.y):n(i.y),onMouseOver:e._legendHighlighted(m)?e._lineHover.bind(e,i.point):e._onBarHover.bind(e,i.point,c(i.y)),onMouseOut:e._onBarLeave,r:e._getCircleVisibilityAndRadius(i.x,m).radius,stroke:g,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(i.x,m).visibility,onClick:null===(u=i.point.lineData)||void 0===u?void 0:u.onClick,"data-is-focusable":e._legendHighlighted(m),ref:function(t){return f.refElement=t},onFocus:e._lineFocus.bind(e,i.point,f),onBlur:e._handleChartMouseLeave})}));return a.createElement(a.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXdataPoint;return e._noLegendHighlighted()?{visibility:i===t?Ih.show:Ih.hide,radius:8}:t===i&&e._legendHighlighted(n)?{visibility:Ih.show,radius:8}:e._legendHighlighted(n)?{visibility:Ih.show,radius:.3}:{visibility:Ih.hide,radius:0}},e._checkForLine=function(){return e.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},e._getMargins=function(t){e.margins=t},e._renderContentForBothLineAndBars=function(t){var n=e._getCalloutContentForLineAndBar(t),i=n.YValueHover,r=n.hoverXValue,u=i.map((function(t,n){return a.createElement(js.ChartHoverCard,(0,o.Cl)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(r||t.data)},{color:t.color,YValue:t.data||t.y,culture:e.props.culture}))}));return a.createElement(a.Fragment,null,u)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return a.createElement(a.Fragment,null,a.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!i&&t.color?t.color:e._createColors()(t.y),culture:e.props.culture}))},e._renderCallout=function(t){return t?e._isHavingLine?e._renderContentForBothLineAndBars(t):e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o){return e._bars=e._xAxisType===Ru.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===Ru.DateAxis?e._createDateBars(i,r,o):e._createStringBars(i,r,o)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForLineAndBar=function(t){var n,i,r,o,a,u=[],s=e.props,l=s.theme,c=s.useSingleColor,f=void 0!==c&&c,h=s.enableGradient,d=e.props,v=d.data,p=d.lineLegendText,g=d.lineLegendColor,m=void 0===g?l.palette.yellow:g,y=v.filter((function(n){return n.x===t.x})),b=v.indexOf(y[0]),x=f?e._createColors()(1):y[0].color?y[0].color:e._createColors()(y[0].y);e._isHavingLine&&void 0!==(null===(n=y[0].lineData)||void 0===n?void 0:n.y)&&(e._legendHighlighted(p)||e._noLegendHighlighted())&&u.push({legend:p,color:m,y:null===(i=y[0].lineData)||void 0===i?void 0:i.y,data:null===(r=y[0].lineData)||void 0===r?void 0:r.yAxisCalloutData,yAxisCalloutData:null===(o=y[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),(e._legendHighlighted(y[0].legend)||e._noLegendHighlighted())&&u.push({legend:y[0].legend,y:y[0].y,color:h?f?Zs(0,0)[0]:(null===(a=y[0].gradient)||void 0===a?void 0:a[0])||Zs(b,0)[0]:x,data:y[0].yAxisCalloutData,yAxisCalloutData:y[0].yAxisCalloutData});var w=t.x instanceof Date?Es(t.x,e.props.useUTC):t.x.toString();return{YValueHover:u,hoverXValue:t.xAxisCalloutData||w}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){var r=e._getCalloutContentForLineAndBar(t),o=r.YValueHover,a=r.hoverXValue;e._refArray.forEach((function(r,u){r.index===t.legend&&n===u&&e.setState({refSelected:r.refElement,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Es(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){var i=e.props.theme,r=e.props,o=r.lineLegendText,a=void 0===o?"":o,u=r.lineLegendColor,s=void 0===u?i.palette.yellow:u;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:a,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Es(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=Ne().domain([e.props.supportNegativeData?e._yMin:0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ru.NumericAxis){var o=ri(e._points,(function(t){return t.x})),a=ei(e._points,(function(t){return t.x}));i=Ne().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),Os(e.props.xAxisInnerPadding,e.props.xAxisPadding)||"histogram"===e.props.mode||i.nice()}else if(e._xAxisType===Ru.DateAxis){var u=ei(e._points,(function(t){return t.x})),s=ri(e._points,(function(t){return t.x}));(i=e.props.useUTC?Sa():ka()).domain([u,s]).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else i=Oa().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding);return{xBarScale:i,yBarScale:r}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,n){var i=e.props,r=i.theme,u=i.useSingleColor,s=e.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?r.palette.yellow:c,h=[],d={};if(t.forEach((function(t,n){var i,o,a,s=u?e._createColors()(1):t.color;if(e.props.enableGradient){var l=Math.max((null===(i=e.props.data)||void 0===i?void 0:i.findIndex((function(n){return n.legend===t.legend})))||0,0);s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(l,0,null==r?void 0:r.isInverted)[0],u&&(s=Zs(0,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0])}d[t.legend]=s})),Object.entries(d).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};h.push(r)})),e._isHavingLine&&l&&f){var v={title:l,color:f,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(l)},onMouseOutAction:function(){e._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(v)}return a.createElement(Fc,(0,o.Cl)({legends:h,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0),e._yMin=Math.min(n[0],e.props.yMinValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t){var n,i,r,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?Es(t.x,e.props.useUTC):t.x,a=t.legend,u=t.yAxisCalloutData||t.y,s=e.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(r=t.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ")+(a?"".concat(a,", "):"")+"".concat(u,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i={};null===(n=e.props.data)||void 0===n||n.forEach((function(t){t.x instanceof Date?i[t.x.getTime()]=t.x:i[t.x]=t.x}));var r=Object.values(i),a=t-(e.margins.left+8)-(e.margins.right+8),u=e._xAxisInnerPadding/(1-e._xAxisInnerPadding),s=r.length+(r.length-1)*u;if(e._xAxisType===Ru.StringAxis){if(Os(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth&&"histogram"!==e.props.mode)e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth),a>=(d=s*e._barWidth)&&(e._domainMargin=8+(a-d)/2);else if(["plotly","histogram"].includes(e.props.mode)&&r.length>1){var l=a/s,c=(a-(d=s*Ns(e.props.barWidth,e.props.maxBarWidth,l,e.props.mode)))/2,f=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var h=hs(r)+20;f=(a-(d=(r.length-e._xAxisInnerPadding)*h))/2}e._domainMargin=8+Math.max(0,Math.min(c,f))}}else{if("histogram"===e.props.mode){var d=s*e.props.maxBarWidth;e._domainMargin+=Math.max(0,(a-d)/2)}e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,Gh(r,a-2*(e._domainMargin-8),e._xAxisInnerPadding),e.props.mode),e._domainMargin+=e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," bars")+(e._isHavingLine?" and 1 line":"")+". "},Qs(e),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},e._isHavingLine=e._checkForLine(),e._calloutId=p("callout"),e._tooltipId=p("VCTooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?Ss(e.props.data[0].x,!0):Ru.StringAxis,e._emptyChartId=p("_VBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(ri(this._points,(function(t){return t.y})),this.props.yMaxValue||0),this._yMin=Math.min(ei(this._points,(function(t){return t.y})),this.props.yMinValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=qh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),Ls(this.state.callOutAccessibilityData)),e={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,supportNegativeData:this.props.supportNegativeData,chartType:Wu.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:us,calloutProps:i,tickParams:e},this._isHavingLine&&(this._noLegendHighlighted()||this._getHighlightedLegend().length>1)&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:zs.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:ls,getmargins:this._getMargins,getMinMaxOfYAxis:ws,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ru.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Os(this.props.xAxisInnerPadding,this.props.xAxisPadding)&&"histogram"!==this.props.mode,children:function(n){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),t._isHavingLine&&a.createElement("g",null,t._createLine(n.xScale,n.yScalePrimary,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Ns(this.props.barWidth,this.props.maxBarWidth,void 0,this.props.mode);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine(),this._xAxisInnerPadding=Ts(this.props.xAxisInnerPadding,this.props.xAxisPadding,"histogram"===this.props.mode?0:this._xAxisType===Ru.StringAxis?2/3:.5),this._xAxisOuterPadding=Ts(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return Ne().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:this._noLegendHighlighted()||this._legendHighlighted(t.legend),dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Es(t.x,this.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:this._noLegendHighlighted()||this._legendHighlighted(t.legend)?t.x:null,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._calculateMinBarHeight=function(t,n,i,e){var r=n<0?Math.abs(t-i):Math.max(Math.abs(n-i),Math.abs(t-i));return Math.ceil(e(r)/100)},n.prototype._createNumericBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,g,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=qh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[1]),e._points[i].color=S);var L=p("VBC_Gradient")+"_".concat(i,"_").concat(S);return a.createElement("g",{key:"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:A}))),a.createElement("rect",{id:p("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=Yu(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:d};d&&ds(v)}return h},n.prototype._createStringBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,g,m=e._legendHighlighted(n.legend)||e._noLegendHighlighted();e._classNames=qh(e.props.styles,{theme:e.props.theme,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x),M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f);e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,s.bandwidth(),e.props.mode);var S=n.color?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[1]),e._points[i].color=S);var L=p("VBC_Gradient")+"_".concat(i,"_").concat(S);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i),transform:"translate(".concat(.5*(s.bandwidth()-e._barWidth),", 0)")},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:A}))),a.createElement("rect",{id:p("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,height:w,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip&&m,onFocus:e._onBarFocus.bind(e,n,i,S),fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=Yu(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:d,showTooltip:this.props.showXAxisLablesTooltip};d&&ds(v)}return h},n.prototype._createDateBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,g,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=qh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[1]),e._points[i].color=S);var L=p("VBC_Gradient")+"_".concat(i,"_").concat(S);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:A}))),a.createElement("rect",{id:p("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=Yu(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,axis:d};d&&ds(v)}return h},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._renderBarLabel=function(t,n,i,e,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(e)&&!this._noLegendHighlighted()?null:a.createElement("text",{x:t+this._barWidth/2,y:r?n+12:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},Ds(i))},n.prototype._isChartEmpty=function(){return 0===this._points.length||this._points.every((function(t){return 0===t.y}))&&!this._isHavingLine},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(a.Component),Zh=(0,r.I)(Uh,(function(t){var n,i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,o.Cl)((0,o.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:e.semanticColors.bodyText}),barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:e.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}})),Kh=(0,u.Z)(),Jh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.Y_ORIGIN=0,e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._toFocusWholeStack=function(t){var n=e.props.isCalloutForStack,i=void 0!==n&&n;return t?1!==e._getHighlightedLegend().length:i},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ru.NumericAxis?function(t,n,i,e){var r=ei(t,(function(t){return t.x})),o=ri(t,(function(t){return t.x})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}(t,n,i,r):o===Ru.DateAxis?bs(t,n,i,r,u,e):ys(n,i,r)},e._getFormattedLineData=function(t){var n=[],i={};return t.forEach((function(t,i){t.lineData&&t.lineData.forEach((function(e){n.push((0,o.Cl)((0,o.Cl)({},e),{index:i,xItem:t}))}))})),n.forEach((function(t){i[t.legend]?i[t.legend].push(t):i[t.legend]=[t]})),i},e._getLineLegends=function(t){var n=e._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},e._createLines=function(t,n,i,r,u){var s,l=e._getFormattedLineData(e.props.data),c=[],f=[],h=[],d=e.props.theme,v=(null===(s=e.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0,p=e._xAxisType!==Ru.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(i,r){for(var o,s,h,g,m,y=e._isLegendHighlighted(i)||e._noLegendHighlighted(),b=1;b<l[i].length;b++){var x=t(l[i][b-1].xItem.xAxisPoint),w=l[i][b-1].useSecondaryYScale&&l[i][b].useSecondaryYScale&&u,C=w?u(l[i][b-1].y):n(l[i][b-1].y),M=t(l[i][b].xItem.xAxisPoint),k=w?u(l[i][b].y):n(l[i][b].y);v>0&&f.push(a.createElement("line",{key:"".concat(r,"-").concat(b,"-BorderLine"),x1:x,y1:C,x2:M,y2:k,opacity:y?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(a.createElement("line",{key:"".concat(r,"-").concat(b,"-line"),x1:x,y1:C,x2:M,y2:k,opacity:y?1:.1,strokeWidth:null!==(s=null===(o=l[i][0].lineOptions)||void 0===o?void 0:o.strokeWidth)&&void 0!==s?s:3,strokeLinecap:null!==(g=null===(h=l[i][0].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==g?g:"round",strokeDasharray:null===(m=l[i][0].lineOptions)||void 0===m?void 0:m.strokeDasharray,stroke:l[i][b].color,transform:"translate(".concat(p,", 0)"),onMouseOver:e._lineHover.bind(e,l[i][b-1]),onMouseLeave:e._handleMouseOut}))}})),Object.keys(l).forEach((function(i,r){l[i].forEach((function(s,l){var c={refElement:null},f=0===s.xItem.chartData.filter((function(t){return e._noLegendHighlighted()||e._isLegendHighlighted(t.legend)})).length;h.push(a.createElement("circle",(0,o.Cl)({key:"".concat(r,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&u?u(s.y):n(s.y),onMouseOver:e._lineHover.bind(e,s),onMouseLeave:e._handleMouseOut,r:e._getCircleOpacityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,opacity:e._getCircleOpacityAndRadius(s.xItem.xAxisPoint,s.legend).opacity,transform:"translate(".concat(p,", 0)"),ref:function(t){return c.refElement=t}},f&&(e._noLegendHighlighted()||e._isLegendHighlighted(i))?{"data-is-focusable":!e.props.hideTooltip,onFocus:e._lineFocus.bind(e,s,c),onBlur:e._handleMouseOut,role:"img","aria-label":e._getAriaLabel(s.xItem,s,!0)}:{})))}))})),a.createElement(a.Fragment,null,f,c,h)},e._getCircleOpacityAndRadius=function(t,n){var i=e.state.activeXAxisDataPoint;return e._noLegendHighlighted()?{opacity:i===t?1:0,radius:8}:t===i&&e._isLegendHighlighted(n)?{opacity:1,radius:8}:e._isLegendHighlighted(n)?{opacity:1,radius:.3}:{opacity:0,radius:0}},e._getMargins=function(t){e.margins=t},e._getCustomizedCallout=function(){var t=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint&&!t?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){1===e._getHighlightedLegend().length?(e._noLegendHighlighted()||e._isLegendHighlighted(t.legend))&&e.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color}):e._onStackHoverFocus(t.xItem,n)},e._handleMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},e._createBar=function(t,n,i,r){var u=e.props,s=u.barCornerRadius,l=void 0===s?0:s,c=u.barMinimumHeight,f=void 0===c?0:c,h=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=e._toFocusWholeStack(h);e._xAxisType===Ru.StringAxis&&(e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(r,u){var s=t((e._xAxisType===Ru.NumericAxis||(e._xAxisType,Ru.DateAxis),r.xAxisPoint)),c=e._xAxisType!==Ru.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,h=0,v=r.chartData.filter((function(t){return 0!==t.data}));if(v.length){var g=e._getBarGapAndScale(v,n),m=g.gapHeight,y=g.heightValueScale,b=g.adjustedTotalHeight;if(!(y<0)){var x=i-e.margins.bottom-n(e.Y_ORIGIN),w=x,C=x,M=0,k=0,S=v.map((function(t,n){var i,g,x,S,A=t.color?t.color:e._colors[n],L=A;e.props.enableGradient&&(A=(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,null===(g=e.props.theme)||void 0===g?void 0:g.isInverted)[0],L=(null===(x=t.gradient)||void 0===x?void 0:x[1])||Zs(n,0,null===(S=e.props.theme)||void 0===S?void 0:S.isInverted)[1],r.chartData[n].color=A);var V={},D=!(!e._isLegendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=Kh(e.props.styles,{theme:e.props.theme,shouldHighlight:D,href:e.props.href});var N=!d&&D&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(r,t),onMouseOver:e._onRectHover.bind(e,r.xAxisPoint,t,A),onMouseMove:e._onRectHover.bind(e,r.xAxisPoint,t,A),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,r.xAxisPoint,A,V),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},T=Math.abs(y*t.data),O=Math.max(y*b/100,f);T<O&&(T=O);var E=n?m:0;t.data>=e.Y_ORIGIN?M=w-=T+E:C=(M=C+E)+T,h+=t.data,k=n===v.length-1?T:0;var F=p("VSBC_Gradient")+"_".concat(u,"_").concat(n);return l&&T>l&&n===v.length-1?a.createElement(a.Fragment,{key:n+u+"".concat(d)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:F,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("path",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(s," ").concat(M+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(e._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(T-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:e.props.enableGradient?"url(#".concat(F,")"):A,rx:e.props.roundCorners?3:0,ref:function(t){return V.refElement=t},transform:"translate(".concat(c,", 0)")},N))):T<0?a.createElement(a.Fragment,{key:n+u}," "):a.createElement(a.Fragment,{key:n+u},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:F,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("rect",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,x:s,y:M,width:e._barWidth,height:T,fill:e.props.enableGradient?"url(#".concat(F,")"):A,rx:e.props.roundCorners?3:0,ref:function(t){return V.refElement=t}},N,{transform:"translate(".concat(c,", 0)")})))})),A={},L=r.chartData.filter((function(t){return e._noLegendHighlighted()||e._isLegendHighlighted(t.legend)})).length>0,V=d&&L&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(r),onMouseOver:e._onStackHover.bind(e,r),onMouseMove:e._onStackHover.bind(e,r),onMouseLeave:e._handleMouseOut,onFocus:e._onStackFocus.bind(e,r,A),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,r),role:"img"},D=!1,N=0;return e.props.hideLabels||(e._noLegendHighlighted()?(D=!0,N=h):v.forEach((function(t){e._isLegendHighlighted(t.legend)&&(D=!0,N+=t.data)}))),a.createElement("g",{key:u+"".concat(d)},a.createElement("g",(0,o.Cl)({id:"".concat(u,"-singleBar"),ref:function(t){return A.refElement=t}},V),S),!e.props.hideLabels&&e._barWidth>=16&&D&&a.createElement("text",{x:s+e._barWidth/2,y:N>=e.Y_ORIGIN?M-6:M+k+12,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(N),role:"img",transform:"translate(".concat(c,", 0)")},Ds(N)))}}}));if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var g=Yu(r).call(t);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:e._classNames.tooltip,id:e._tooltipId,axis:g};g&&ds(m)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=[Math.min(e.Y_ORIGIN,e._yMin),Math.max(e.Y_ORIGIN,e._yMax)],r=Ne().domain(i).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ru.NumericAxis){var o=ri(e._dataset,(function(t){return t.x})),a=ei(e._dataset,(function(t){return t.x})),u=Ne().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]);return Os(e.props.xAxisInnerPadding,e.props.xAxisPadding)||u.nice(),{xBarScale:u,yBarScale:r}}if(e._xAxisType===Ru.DateAxis){var s=ei(e._dataset,(function(t){return t.x})),l=ri(e._dataset,(function(t){return t.x})),c=e.props.useUTC?Sa():ka();return c.domain(e._isRtl?[l,s]:[s,l]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:c,yBarScale:r}}return{xBarScale:Oa().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding),yBarScale:r}},e._getGraphData=function(t,n,i,r,o){var a=e._getScales(i,r),u=a.xBarScale,s=a.yBarScale;return e._bars=e._createBar(u,s,i,o)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||e.Y_ORIGIN),e._yMin=Math.min(n[0],e.props.yMinValue||e.Y_ORIGIN)}},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n,i){var r,o,a;if(!n){var u=t.xAxisCalloutData||(t.xAxisPoint instanceof Date?Es(t.xAxisPoint):t.xAxisPoint),s=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return e._noLegendHighlighted()||e._isLegendHighlighted(n)?"".concat(n,", ").concat(i,"."):""})).filter((function(t){return""!==t})).join(" "),l=null===(r=t.lineData)||void 0===r?void 0:r.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return e._noLegendHighlighted()||e._isLegendHighlighted(n)?"".concat(n,", ").concat(i,"."):""})).filter((function(t){return""!==t})).join(" ");return(null===(o=t.stackCallOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(u,". ").concat(s)+(l?" ".concat(l):"")}var c=t.xAxisCalloutData||!i&&n.xAxisCalloutData||(t.xAxisPoint instanceof Date?Es(t.xAxisPoint):t.xAxisPoint),f=n.legend,h=n.yAxisCalloutData||(i?n.data||n.y:n.data);return!i&&(null===(a=n.callOutAccessibilityData)||void 0===a?void 0:a.ariaLabel)||"".concat(c,". ").concat(f,", ").concat(h,".")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i=t-(e.margins.left+8)-(e.margins.right+8),r=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===Ru.StringAxis){if(Os(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth),i>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-a)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Ns(e.props.barWidth,e.props.maxBarWidth,u),l=(i-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=hs(e._xAxisLabels)+20;c=(i-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.xAxisPoint})))||[];e._barWidth=Ns(e.props.barWidth,e.props.maxBarWidth,Gh(h,i,e._xAxisInnerPadding)),e._domainMargin=8+e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data,r=Object.keys(e._lineObject).length;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," stacked bars")+(r>0?" and ".concat(r," lines"):"")+". "},e._getMinMaxOfYAxis=function(t,n,i){if(!i)return function(t){var n=ri(t,(function(t){return t.y}));return{startValue:ei(t,(function(t){return t.y})),endValue:n}}(t);var r=[];return e.props.data.forEach((function(t){var n;null===(n=t.lineData)||void 0===n||n.forEach((function(t){t.useSecondaryYScale&&r.push(t.y)}))})),{startValue:ei(r),endValue:ri(r)}},Qs(e),e.state={isCalloutVisible:!1,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},e._handleMouseOut=e._handleMouseOut.bind(e),e._calloutId=p("callout"),e._tooltipId=p("VSBCTooltipId_"),e._isChartEmpty()||(e._adjustProps(),e._dataset=e._createDataSetLayer()),e._createLegendsForLine=(0,un.J9)((function(t){return e._getLineLegends(t)})),e._emptyChartId=p("_VSBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),i=this._toFocusWholeStack(n),e=this.props.isCalloutForStack,r=void 0!==e&&e;this._dataset=this._createDataSetLayer();var u=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Kh(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),Ls(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:Wu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:us,tickParams:l,legendBars:u,getMinMaxOfYAxis:this._getMinMaxOfYAxis,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:i,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ls,barwidth:this._barWidth,focusZoneDirection:r||n?zs.horizontal:zs.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ru.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Os(this.props.xAxisInnerPadding,this.props.xAxisPadding),children:function(i){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),a.createElement("g",null,n&&t._createLines(i.xScale,i.yScalePrimary,i.containerHeight,i.containerWidth,i.yScaleSecondary)))}}))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Ns(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=Ss(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=Ts(this.props.xAxisInnerPadding,this.props.xAxisPadding,this._xAxisType===Ru.StringAxis?2/3:.5),this._xAxisOuterPadding=Ts(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},n.prototype._renderCallout=function(t){return t?a.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._getLegendData=function(t,n,i){var e=this;if(this.props.hideLegend)return a.createElement(a.Fragment,null);var r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],s=this.props,l=s.allowHoverOnLegend,c=void 0===l||l,f=s.theme;t.forEach((function(t){t.chartData.forEach((function(n){var i,o,a=n.color?n.color:r[Math.floor(4*Math.random()+1)];if(e.props.enableGradient){var s=Math.max((null===(i=t.chartData)||void 0===i?void 0:i.findIndex((function(t){return t.legend===n.legend})))||0,0);a=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(s,0,null==f?void 0:f.isInverted)[0]}if(!(u.filter((function(t){return t.title===n.legend&&t.color===a})).length>0)){var l={title:n.legend,color:a,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};u.push(l)}}))}));var h=[];i&&i.length>0&&i.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};h.push(n)}));var d=h.concat(u);return a.createElement(Fc,(0,o.Cl)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this),ref:this._legendsRef}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},n.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:this._noLegendHighlighted()||this._isLegendHighlighted(n.legend),calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},n.prototype._onStackHoverFocus=function(t,n){var i,e,r,a=this;this._noLegendHighlighted()||(t=(0,o.Cl)((0,o.Cl)({},t),{chartData:t.chartData.filter((function(t){return a._isLegendHighlighted(t.legend)})),lineData:null===(i=t.lineData)||void 0===i?void 0:i.filter((function(t){return a._isLegendHighlighted(t.legend)}))}));var u=t.lineData,s=void 0!==u&&u.length>0;s&&u.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:t.chartData.length>0||(null!==(r=null===(e=t.lineData)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0,YValueHover:s?(0,o.fX)((0,o.fX)([],u.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?Es(t.xAxisPoint,this.props.useUTC):t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},n.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},n.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+Math.abs(n.data)}),0),a=null!=i?i:Math.abs(n(o)-n(this.Y_ORIGIN)),u=0;t.forEach((function(t){var n=Math.abs(t.data)/o*100;n<1&&0!==n&&(n=1),u+=n}));var s=0!==u?u/100:1,l=r&&t.length-1,c=l&&Math.max(1,Math.min(r,.2*a/l));return{gapHeight:c,heightValueScale:(a-c*l)/(o*s),adjustedTotalHeight:u}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.some((function(t){return t.chartData.length>0||t.lineData&&t.lineData.length>0})))},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(a.Component),Qh=(0,r.I)(Jh,(function(t){var n,i=t.shouldHighlight,e=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1",cursor:e?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:r.semanticColors.bodyText}),barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:r.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}})),td=(0,u.Z)(),nd=.1/.9,id=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._legendColorMap={},e.Y_ORIGIN=0,e.toImage=function(t){var n,i;return Ac(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getMinMaxOfYAxis=function(t,n,i){var e=[];return t.forEach((function(t){t.groupSeries.forEach((function(t){!i==!t.useSecondaryYScale&&e.push(t.data)}))})),{startValue:ei(e),endValue:ri(e)}},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ru.NumericAxis||o===Ru.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ys(n,i,r)},e._getGraphData=function(t,n,i,r,o,a,u){var s=e._createX0Scale(r);e._barWidth=Ns(e.props.barwidth,e.props.maxBarWidth,s.bandwidth()/(e._legends.length+(e._legends.length-1)*nd)),e._groupWidth=(e._legends.length+(e._legends.length-1)*nd)*e._barWidth;var l=e._createX1Scale(),c=[];e._datasetForBars.forEach((function(t){c.push(e._buildGraph(t,s,l,n,u,i,o))})),e._groupedVerticalBarGraph=c},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=new Set,i=t.map((function(t){return t.name}));t.forEach((function(t){t.series.forEach((function(t){n.add(t.legend)}))}));var r=e._createDataset(t);return{legends:Array.from(n),xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._onBarHover=function(t,n,i){i.persist(),e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e.setState({refSelected:i,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._onBarFocus=function(t,n,i){e.setState({refSelected:i.currentTarget,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})},e._redirectToUrl=function(t){t&&(window.location.href=t)},e._buildGraph=function(t,n,i,r,o,u,s){var l=[],c=[];if(e._legends.forEach((function(n,u){var s=t[n];if(s){var f=s[0].useSecondaryYScale&&o?o:r,h=i(n)+(i.bandwidth()-e._barWidth)/2,d=e._legendHighlighted(n)||e._noLegendHighlighted(),v=d?"":"0.1",g=p("GVBC_Gradient")+"_".concat(t.indexNum,"_").concat(u),m=s[0].color,y=m;e.props.enableGradient&&(m=s[0].gradient[0],y=s[0].gradient[1],l.push(a.createElement("linearGradient",{key:g,id:g,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:m}),a.createElement("stop",{offset:"100%",stopColor:y}))));var b=0,x=f(e.Y_ORIGIN),w=x,C=x,M=e.Y_ORIGIN;s.forEach((function(n,i){if(n.data){var r=.5*(i>0?2:0),o=Math.max(f(e.Y_ORIGIN)-f(Math.abs(n.data)),1);n.data>=e.Y_ORIGIN?M=w-=o+r:C=(M=C+r)+o,l.push(a.createElement("rect",{key:"".concat(t.indexNum,"-").concat(u,"-").concat(i),className:e._classNames.opacityChangeOnHover,height:o,width:e._barWidth,x:h,y:M,"data-is-focusable":!e.props.hideTooltip&&d,opacity:v,fill:e.props.enableGradient?"url(#".concat(g,")"):m,rx:e.props.roundCorners?3:0,onMouseOver:e._onBarHover.bind(e,n,t),onMouseMove:e._onBarHover.bind(e,n,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,t),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):n.onClick,"aria-label":e._getAriaLabel(n,t.xAxisPoint),role:"img"})),b+=n.data}})),null!==b&&!e.props.hideLabels&&e._barWidth>=16&&d&&c.push(a.createElement("text",{key:"".concat(t.indexNum,"-").concat(u),x:h+e._barWidth/2,y:b>=e.Y_ORIGIN?w-6:C+12,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},Ds(b)))}})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=Yu(s).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var h={tooltipCls:e._classNames.tooltip,id:e._tooltipId,axis:f};f&&ds(h)}return a.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},l,c)},e._createDataset=function(t){var n=[];return t.forEach((function(t,i){var e={},r={};t.series.forEach((function(t){e[t.legend]?(e[t.legend].push((0,o.Cl)({},t)),r[t.legend].data+=t.data):(e[t.legend]=[(0,o.Cl)({},t)],r[t.legend]=(0,o.Cl)({},t))})),e.xAxisPoint=t.name,e.indexNum=i,e.groupSeries=Object.values(r),e.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(e)})),n},e._createX0Scale=function(t){return Oa().domain(e._xAxisLabels).range(e._isRtl?[t-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,t-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding)},e._createX1Scale=function(){return Oa().domain(e._legends).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(){var t=[];return e._legends.forEach((function(n){var i={title:n,color:e._legendColorMap[n][0],hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};t.push(i)})),a.createElement(Fc,(0,o.Cl)({legends:t,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},e._getDomainMargins=function(t){e._domainMargin=8;var n=t-(e.margins.left+8)-(e.margins.right+8),i=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===Ru.StringAxis)if(Os(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){e._barWidth=Ns(e.props.barwidth,e.props.maxBarWidth);var r=(e._legends.length+(e._legends.length-1)*nd)*e._barWidth;n>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r)&&(e._domainMargin=8+(n-a)/2)}else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=n/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)/(e._legends.length+(e._legends.length-1)*nd),s=Ns(e.props.barwidth,e.props.maxBarWidth,u),l=(r=(e._legends.length+(e._legends.length-1)*nd)*s,(n-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r))/2),c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=hs(e._xAxisLabels)+20;c=(n-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Vertical bar chart with ".concat(e._xAxisLabels.length," groups of ").concat(e._legends.length," bars each. ")},e._addDefaultColors=function(t){var n;e._legendColorMap={};var i=0;return null!==(n=null==t?void 0:t.map((function(t){var n,r;return(0,o.Cl)((0,o.Cl)({},t),{series:null!==(r=null===(n=t.series)||void 0===n?void 0:n.map((function(t){var n,r,a,u;if(!e._legendColorMap[t.legend]){var s=t.color?t.color:Sf(i,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted),l=s;if(e.props.enableGradient){var c=Zs(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted);s=(null===(a=t.gradient)||void 0===a?void 0:a[0])||c[0],l=(null===(u=t.gradient)||void 0===u?void 0:u[1])||c[1]}e._legendColorMap[t.legend]=[s,l],i+=1}return(0,o.Cl)((0,o.Cl)((0,o.Cl)({},t),{color:e._legendColorMap[t.legend][0]}),e.props.enableGradient?{gradient:e._legendColorMap[t.legend]}:{})})))&&void 0!==r?r:[]})})))&&void 0!==n?n:[]},Qs(e),e._createSet=(0,un.J9)((function(t){return e._createDataSetOfGVBC(t)})),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},e._calloutId=p("callout"),e._tooltipId=p("GVBCTooltipId_"),e._emptyChartId=p("_GVBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this._addDefaultColors(this.props.data),i=this._createSet(n),e=i.legends,r=i.xAxisLabels,u=i.datasetForBars;this._legends=e,this._xAxisLabels=r,this._datasetForBars=u,this._xAxisType=Ss(n[0].name,!0);var s=this._getLegendData();this._adjustProps();var l=this._getMinMaxOfYAxis(this._datasetForBars).endValue;this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=td(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,o.Cl)((0,o.Cl)((0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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}),Ls(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:Wu.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:us,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:ls,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:zs.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ru.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,ref:this._cartesianChartRef,children:function(){return a.createElement("g",null,t._groupedVerticalBarGraph)}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},n.prototype._adjustProps=function(){this._barWidth=Ns(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=Ts(this.props.xAxisInnerPadding,void 0,2/(2+this._legends.length+(this._legends.length-1)*nd)),this._xAxisOuterPadding=Ts(this.props.xAxisOuterPadding)},n.defaultProps={maxBarWidth:24},n}(a.Component),ed=(0,r.I)(id,(function(t){var n,i=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none",color:i.semanticColors.bodyText}),barLabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:i.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)}}})),rd=i(263),od=(0,u.Z)(),ad=function(t){function n(n){var i,e,r=t.call(this,n)||this;return r._rectRefArray={},r.toImage=function(t){var n,i;return Ac(null===(n=r._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=r._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},r._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},r._getDomainNRangeValues=function(t,n,i,e,o,a,u,s,l){return a===Ru.NumericAxis||a===Ru.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ys(r.margins,i,o)},r._getXandY=function(){var t="",n="";return r.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},r._getMargins=function(t){r.margins=t},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,n,i){r._rectRefArray[n]={data:i,refElement:t}},r._onRectFocus=function(t,n){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},r._onRectMouseOver=function(t,n,i){i.persist(),r._calloutAnchorPoint!==n&&(r._calloutAnchorPoint=n,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._getInvertedTextColor=function(t){return t===r.props.theme.semanticColors.bodyText?r.props.theme.semanticColors.bodyBackground:r.props.theme.semanticColors.bodyText},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;r._stringXAxisDataPoints.forEach((function(e){var o,u,s,l,c,f,h,d="x".concat(e,"y").concat(n);if((null===(o=r._dataSet[n][i])||void 0===o?void 0:o.x)===e&&"number"==typeof(null===(u=r._dataSet[n][i])||void 0===u?void 0:u.value)){var v=r._dataSet[n][i],p="",g=r.props.theme.semanticColors.bodyText;r.chartContainer&&(p=_s(r.chartContainer,g)),l=p,c=r._colorScale(v.value),f=Df(Vf(Ei(l))),h=Df(Vf(Ei(c))),(Math.max(f,h)+.05)/(Math.min(f,h)+.05)<3&&(g=r._getInvertedTextColor(g)),s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(v),"data-is-focusable":r._legendHighlighted(v.legend)||r._noLegendHighlighted(),fillOpacity:r._getOpacity(v.legend),transform:"translate(".concat(r._xAxisScale(v.x),", ").concat(r._yAxisScale(v.y),")"),ref:function(t){r._rectRefCallback(t,d,v)},onFocus:r._onRectFocus.bind(r,d,v),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,v),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:r._colorScale(v.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:v.onClick}),a.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")"),fill:g},(0,_n.U)(v.rectText,r.props.culture))),i++}else{var m={x:e,y:n,value:NaN,rectText:"No data available",legend:""};s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(m),"data-is-focusable":r._noLegendHighlighted(),transform:"translate(".concat(r._xAxisScale(m.x),", ").concat(r._yAxisScale(m.y),")"),ref:function(t){r._rectRefCallback(t,d,m)},onFocus:r._onRectFocus.bind(r,d,m),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,m),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:"transparent",width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth()}))}t.push(s)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,i=t.legendProps,e=[];return n.forEach((function(t){var n={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};e.push(n)})),a.createElement(Fc,(0,o.Cl)({},i,{legends:e,ref:r._legendsRef}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return Ne().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===Ru.DateAxis?"".concat(t.getTime()):r._xAxisType===Ru.StringAxis?t:r._xAxisType===Ru.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===zu.DateAxis?"".concat(t.getTime()):r._yAxisType===zu.StringAxis?t:r._yAxisType===zu.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,e,a){var u=[];t.forEach((function(t){t.data.forEach((function(n){u.push((0,o.Cl)((0,o.Cl)({},n),{legend:t.legend}))}))}));var s={},l={},c={};return u.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);c[n]="1",l[i]="1",s[i]?s[i]=(0,o.fX)((0,o.fX)([],s[i],!0),[t],!1):s[i]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return r._xAxisType===Ru.StringAxis?"none"===r.props.sortOrder?0:t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===Ru.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===Ru.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===Ru.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===Ru.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===Ru.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===zu.DateAxis&&(t.y=r._getStringFormattedDate(t.y,e)),r._yAxisType===zu.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===zu.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===zu.DateAxis?s[r._getStringFormattedDate(t,e)]=s[t]:r._yAxisType===zu.NumericAxis?s["".concat(r._getStringFormattedNumber(t,a))]=s[t]:s[r._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:r._getYAxisDataPoints(l),xAxisPoints:r._getXAxisDataPoints(c)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._xAxisType===Ru.DateAxis||r._xAxisType===Ru.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===Ru.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===Ru.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._yAxisType===zu.DateAxis||r._yAxisType===zu.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===zu.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===zu.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),to(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return Ae(n||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var n=r.props.xAxisStringFormatter;return n?n(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var n=r.props.yAxisStringFormatter;return n?n(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,a=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(a?" ".concat(a,"."):"")},r._getChartTitle=function(){var t=r.props.chartTitle,n=r.props.data.reduce((function(t,n){return t+n.data.length}),0);return(t?"".concat(t,". "):"")+"Heat map chart with ".concat(n," data points. ")},Qs(r),r._createSet=(0,un.J9)((function(t,n,i,e,o){return r._createNewDataSet(t,n,i,e,o)})),r.state={selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=p("_HeatMap_empty"),r._cartesianChartRef=a.createRef(),r._legendsRef=a.createRef(),r}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)!==(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&this.setState({selectedLegend:null!==(r=null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegend)&&void 0!==r?r:""})},n.prototype.render=function(){var t=this,n=this._getXandY(),i=n.x,e=n.y;this._xAxisType=Ss(i,!0),this._yAxisType=Ss(e,!1);var r=this.props,u=r.data,s=r.xAxisDateFormatString,l=r.xAxisNumberFormatString,c=r.yAxisDateFormatString,f=r.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(u,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=od(this.props.styles,{theme:this.props.theme});var g=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({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:3,onDismiss:this._closeCallout}),Ls(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,o.Cl)((0,o.Cl)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage}),y={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Xf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:u,chartType:Wu.HeatMapChart,xAxisType:Ru.StringAxis,yAxisType:zu.StringAxis,calloutProps:g,createYAxis:us,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:ls,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,getmargins:this._getMargins,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:zs.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,tickParams:y,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScalePrimary,t._createRectangles()}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(a.Component),ud=(0,r.I)(ad,(function(t){return{root:{},text:[t.theme.fonts.medium,{pointerEvents:"none",fontWeight:It.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),sd=/[\{\}]/g,ld=/\{\d+\}/g;function cd(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(ld,(function(t){var n=e[t.replace(sd,"")];return null==n&&(n=""),n}))}function fd(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function hd(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function dd(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function vd(t,n){return n-1-t.height}function pd(t,n){return t.sourceLinks.length?t.depth:n-1}function gd(t){return function(){return t}}function md(t,n){return bd(t.source,n.source)||t.index-n.index}function yd(t,n){return bd(t.target,n.target)||t.index-n.index}function bd(t,n){return t.y0-n.y0}function xd(t){return t.value}function wd(t){return t.index}function Cd(t){return t.nodes}function Md(t){return t.links}function kd(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function Sd({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}function Ad(){let t,n,i,e=0,r=0,o=1,a=1,u=24,s=8,l=wd,c=pd,f=Cd,h=Md,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=kd(e,n)),"object"!=typeof r&&(r=i.target=kd(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(hd(n.sourceLinks,xd),hd(n.targetLinks,xd)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=dd(t,(t=>t.depth))+1,r=(o-e-u)/(i-1),a=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+u,a[t]?a[t].push(n):a[t]=[n]}if(n)for(const t of a)t.sort(n);return a}(i);t=Math.min(s,(a-r)/(dd(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(a-r-(n.length-1)*t)/hd(n,xd)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(a-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}w(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),Sd(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=C(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(bd),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(bd),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,a,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],a=(i-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],a=(o.y1-i)*r;a>1e-6&&(o.y0-=a,o.y1-=a),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(yd);for(const{target:{targetLinks:n}}of t)n.sort(md)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(yd),i.sort(md)}function C(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return Sd(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:gd(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:gd(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(u=+t,v):u},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:gd(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:gd(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],a=+t[1],v):[o-e,a-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],a=+t[1][1],v):[[e,r],[o,a]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class Ld{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}var Vd=(0,u.Z)(),Dd="#757575",Nd=[{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"}];function Td(t){return"number"==typeof t?t:t.nodeId}function Od(t,n){return t[Td(n.source)][Td(n.target)]}var Ed="...";function Fd(t,n){var i;try{return t.text(n),null===(i=t.node())||void 0===i?void 0:i.getComputedTextLength()}finally{t.text(null)}}var Bd,Pd,_d=kh().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new Ld(t,!0)})),Hd=function(t){function n(n){var i=t.call(this,n)||this;return i._isRtl=(0,s.jI)(),i._numColumns=0,i.toImage=function(t){return Ac(i.chartContainer,void 0,i._isRtl,t)},i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;if(!n.selectedState)return t.color;var e=n.selectedNode;return e&&n.selectedNodes.has(t.index)?e.color:e?void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;if(n.selectedState){if(n.selectedNodes.has(t.index)){var e=n.selectedNode;return e?e.borderColor:t.borderColor}return t.borderColor}return t.borderColor},i._calculateChartMinWidth=function(){return i._margins.left+i._margins.right+124*i._numColumns+62*(i._numColumns-1)},Qs(i),i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=p("callout"),i._linkId=p("link"),i._chartId=p("sankeyChart"),i._emptyChartId=p("_SankeyChart_empty"),i._labelTooltipId=p("tooltip"),i._margins={top:36,right:48,bottom:32,left:48},i._computeClassNamesProps=(0,un.J9)((function(t,n,i,e,r,o){return{theme:t,width:e,height:r,pathColor:n,className:i,enableReflow:o}})),i._computeClassNames=(0,un.J9)((function(t,n){return Vd(t,n)})),i._normalizeData=(0,un.J9)((function(t,n,e,r,o){return i._normalizeSankeyData(t,n,e,r,o)})),i._fetchTooltip=(0,un.J9)((function(t){return i._labelTooltipDiv(t)})),i._strings=(0,un.J9)((function(t){var n=(null==t?void 0:t.linkFrom)||"From {0}";return{linkFrom:function(t){return cd(n,t.name)}}}))(n.strings),i._accessibility=(0,un.J9)((function(t){var n=(null==t?void 0:t.linkAriaLabel)||"link from {0} to {1} with weight {2}",e=(null==t?void 0:t.nodeAriaLabel)||"node {0} with weight {1}";return{emptyAriaLabel:(null==t?void 0:t.emptyAriaLabel)||"Graph has no data to display",linkAriaLabel:function(t){return cd(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return cd(e,t.name,i._formatNumber(n))}}}))(n.accessibility),i._nodeAttributes=(0,un.J9)((function(t,n){return i._computeNodeAttributes(t,n)})),i._fetchNodes=function(t,n,e,r){return i._createNodes(t,n,e,r)},i._linkAttributes=(0,un.J9)((function(t,n,i){return function(t,n,i){var e={};return t.forEach((function(t){var r=Td(t.source),o=e[r];o||(o={},e[r]=o),o[Td(t.target)]={reactId:p("link"),from:n(t.source),aria:i(t)}})),e}(t,n,i)})),i._fetchLinks=function(t,n){return i._createLinks(t,n)},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.theme,e=n.className,r=n.styles,u=n.pathColor,s=n.colorsForNodes,l=n.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(i,u,e,c.containerWidth,c.containerHeight,this.props.enableReflow),h=this._computeClassNames(r,f),d=this._normalizeData(this.props.data.SankeyChartData,c.containerWidth,c.containerHeight,s,l),v=d.nodes,p=d.links,g=d.width,m=d.height,y=[];v.sort((function(t,n){return t.x0!==n.x0?t.x0-n.x0:t.y0-n.y0})),v.forEach((function(t,n){y.push({layer:t.layer,type:"node",index:n})})),p.sort((function(t,n){var i=t.source.x0,e=n.source.x0;return i!==e?i-e:t.y0-n.y0})),p.forEach((function(t,n){y.push({layer:t.source.layer,type:"link",index:n})})),y.sort((function(t,n){return t.layer!==n.layer?t.layer-n.layer:t.type>n.type?-1:t.type<n.type?1:0}));var b=this._fetchTooltip(h),x=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),w=this._fetchNodes(h,v,x,b),C=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),M=this._fetchLinks(p,C),k=(0,o.Cl)({isCalloutVisible:c.isCalloutVisible,directionalHint:3,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:h.calloutContentRoot,preventDismissOnLostFocus:!0},this.props.calloutProps);return a.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},a.createElement(xl,{direction:zs.vertical,className:h.chartWrapper},a.createElement("svg",{width:g,height:m,id:this._chartId},y.map((function(t){return"node"===t.type?a.createElement("g",{key:v[t.index].nodeId,className:h.nodes},w[t.index]):a.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},M[t.index])})),k.isCalloutVisible&&a.createElement(Pn,(0,o.Cl)({},k),a.createElement(js.ChartHoverCard,{XValue:k.XValue,YValue:k.YValue,color:k.color,descriptionMessage:k.descriptionMessage?k.descriptionMessage:""})))))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":this._accessibility.emptyAriaLabel})},n.prototype._computeNodeAttributes=function(t,n){var i=this,e={},r=Yu(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=Yu(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var a=Math.max(t.y1-t.y0,0),u=8,s=0,l=t.actualValue;if(a<36){u+=6;var c=Fd(r,i._formatNumber(l));void 0!==c&&(u+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=Fd(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=Fd(t,Ed);return void 0===n?0:n}(t),a="",u=0;u<n.length;u++){a+=n[u],t.text(a);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){a=a.slice(0,-1),a+=Ed;break}}return t.text(null),a}(o,t.name,116,u),h=f.slice(-3)===Ed;e[t.nodeId]={reactId:p("nodeBar"),gElementId:p("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:a,weightOffset:s}})),Xu(".tempText").remove(),e},n.prototype._linkCalloutAttributes=function(t,n){return{selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:this._formatNumber(t.unnormalizedValue),descriptionMessage:n}},n.prototype._normalizeSankeyData=function(t,n,i,e,r){var a=function(t,n,i,e){var r=t.left,o=t.right,a=t.top,u=t.bottom,s=n-o,l=i-u>0?i-u:0;return{sankey:Ad().nodeWidth(124).extent([[r,a],[s-1,l-6]]).nodeAlign(e?vd:pd),height:l,width:s}}(this._margins,n,i,this._isRtl),u=a.sankey,s=a.height,l=a.width,c=function(t){return{nodes:t.nodes.map((function(t){return(0,o.Cl)({},t)})),links:t.links.map((function(t){return(0,o.Cl)({},t)}))}}(t);u(c);var f=function(t){var n={};return t.nodes.forEach((function(t){var i=t.layer;n[i]?n[i].push(t):n[i]=[t]})),n}(c);this._numColumns=Object.keys(f).length;var h,d,v=(h=c.nodes,d={},h.forEach((function(t){d[t.nodeId]=t.value})),d),p=function(t){var n={};return t.forEach((function(t){var i=Td(t.source),e=n[i];e||(e={},n[i]=e),e[Td(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return fd(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,a=.01*e,u=t[r];u.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=a,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&u.forEach((function(t){var e=t.value=t.value/s;!function(t,n,i,e){var r=function(t){var r=Od(e,t);t.unnormalizedValue=r;var o=r/n;t.value=Math.max(i*o,t.value)};t.sourceLinks.forEach(r),t.targetLinks.forEach(r)}(t,n[t.nodeId],e,i)}))}))}(f,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-fd(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(u,s-6,f),u(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=Od(i,t))})),t.nodes.forEach((function(t){t.actualValue=n[t.nodeId]}))}(c,v,p),function(t,n,i){var e,r;n&&i?(e=n,r=i):(e=Nd.map((function(t){return t.fillColor})),r=Nd.map((function(t){return t.borderColor})));var o=0;t.forEach((function(t){t.color||t.borderColor?t.color&&!t.borderColor?t.borderColor="#757575":t.borderColor&&!t.color&&(t.color="#F5F5F5"):(t.color=e[o],t.borderColor=r[o]),o=(o+1)%e.length}))}(c.nodes,e,r),{width:l,height:s,nodes:c.nodes,links:c.links}},n.prototype._labelTooltipDiv=function(t){var n=Yu("#".concat(this._labelTooltipId));return n.empty()&&(n=Yu("body").append("div").attr("id",this._labelTooltipId).attr("class",t.toolTip).style("opacity",0)),n.attr("class",t.toolTip),n},n.prototype._createLinks=function(t,n){var i=this;if(t){var e=this._linkId;return t.map((function(t,r){var o,u,s,l,c=Od(n,t),f=c.reactId,h=c.from,d=c.aria,v=(u=.5*(o=t).width,s=o.y0,l=o.y1,[{x:o.source.x1,y0:s+u,y1:s-u},{x:o.target.x0,y0:l+u,y1:l-u}]),p="".concat(e,"-").concat(r),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return a.createElement("g",{key:p},a.createElement("defs",null,a.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:y.color}),a.createElement("stop",{offset:"100%",stopColor:b.color}))),a.createElement("path",{d:_d(v),id:f,fill:i._fillStreamColors(t,m),stroke:i._fillStreamBorder(t,m),strokeWidth:"2",strokeOpacity:i._getOpacityStreamBorder(t),onMouseOver:function(n){return i._onStreamHover(n,t,h)},onMouseOut:function(){i._onStreamLeave(t)},onFocus:function(n){return i._onFocusLink(n,t,h)},onBlur:i._onBlur,fillOpacity:i._getOpacityStream(t),"data-is-focusable":!0,"aria-label":d,role:"img"}))}))}return[]},n.prototype._createNodes=function(t,n,i,e){var r=this;if(n){var o=this.state,u=this._isRtl?"end":"start";return n.map((function(n,s){var l=i[n.nodeId],c=l.reactId,f=l.gElementId,h=l.height,d=l.trimmed,v=l.name,p=l.weightOffset,g=l.aria,m=h>36,y=n.name,b=n.actualValue,x=n.x0,w=n.x1,C=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(o,n);return a.createElement("g",{key:s,id:f},a.createElement("rect",{x:x,y:C,height:h,width:w-x,fill:r._fillNodeColors(n),id:c,onMouseOver:r._onHover.bind(r,n),onMouseOut:function(){r._onLeave(n)},onFocus:r._onCloseCallout.bind(r),stroke:r._fillNodeBorder(n),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":g,role:"img"}),h>24&&a.createElement("g",{className:t.nodeTextContainer},a.createElement("g",{className:"nodeName"},a.createElement("text",{id:"".concat(c,"-name"),x:x,y:C,dy:"1.2em",dx:"0.4em",textAnchor:u,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:r._showTooltip.bind(r,y,d,e),onMouseOut:r._hideTooltip.bind(r,e)},v)),a.createElement("text",{x:m?x:w-p-8,y:C,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:u,fontWeight:"bold","aria-hidden":"true",fill:M,fontSize:14},b?r._formatNumber(b):b)))}))}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:this._formatNumber(t.actualValue)})}},n.prototype._formatNumber=function(t){return this.props.formatNumberOptions?t.toLocaleString(void 0,this.props.formatNumberOptions):t.toString()},n.prototype._onStreamHover=function(t,n,i){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var e=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(n),r=e.selectedLinks,a=e.selectedNodes;this.setState((0,o.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(a).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:t},this._linkCalloutAttributes(n,i)))}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,n,i){t.persist(),this._onCloseCallout(),this.setState((0,o.Cl)({refSelected:t.currentTarget},this._linkCalloutAttributes(n,i)))},n.prototype._fillStreamColors=function(t,n){var i=this.state;if(i.selectedState&&i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.color:n}},n.prototype._fillStreamBorder=function(t,n){var i=this.state;if(i.selectedState){if(i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.borderColor:n}return Dd}return Dd},n.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(!n.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&(t.props.enableReflow?Math.max(n.getBoundingClientRect().width,t._calculateChartMinWidth()):n.getBoundingClientRect().width),o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},n.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9).style("color",this.props.theme.palette.neutralPrimary),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},n.defaultProps={enableReflow:!0},n}(a.Component),Id=(0,r.I)(Hd,(function(t){var n,i,e,r=t.className,a=t.theme,u=t.pathColor,s=t.enableReflow,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},r],links:{stroke:u||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[It.up]={fill:"Canvas"},n)},nodes:{fill:"#F5F5F5",selectors:(i={},i[It.up]={fill:"Canvas"},i)},toolTip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(e={},e[It.up]={fill:"CanvasText"},e)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4},chartWrapper:(0,o.Cl)({},s?{overflow:"auto"}:{})}}));function Wd(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function Rd(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=jd)):void 0===n&&(n=zd);for(var i,e,r,o,a,u=new Xd(t),s=[u];i=s.pop();)if((r=n(i.data))&&(a=(r=Array.from(r)).length))for(i.children=r,o=a-1;o>=0;--o)s.push(e=r[o]=new Xd(r[o])),e.parent=i,e.depth=i.depth+1;return u.eachBefore(Yd)}function zd(t){return t.children}function jd(t){return Array.isArray(t)?t[1]:null}function $d(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Yd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Xd(t){this.data=t,this.depth=this.height=0,this.parent=null}function Gd(t,n){return t.parent===n.parent?1:2}function qd(t){var n=t.children;return n?n[0]:t.t}function Ud(t){var n=t.children;return n?n[n.length-1]:t.t}function Zd(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function Kd(t,n,i){return t.a.parent===n.parent?t.a:i}function Jd(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Bd||(Bd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Pd||(Pd={})),Xd.prototype=Rd.prototype={constructor:Xd,count:function(){return this.eachAfter(Wd)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)a.push(i[e]);for(;o=u.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],a=-1;r=o.pop();)if(t.call(n,r,++a,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return Rd(this).eachBefore($d)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},Jd.prototype=Object.create(Xd.prototype);var Qd=(0,u.Z)(),tv=function(t){function n(n,i,e,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=[]);var u=t.call(this,n,e,r,o)||this;return u.composition=i,u._treeTraversal=a,u}return(0,o.C6)(n,t),n.prototype.C=function(t,n){var i,e,r,o,a,u,s=(t=t<65?65:t>90?90:t)||75,l=Rd(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=Gd,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,a=new Jd(t,0),u=[a];n=u.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)u.push(i=n.children[r]=new Jd(e[r],r)),i.parent=n;return(a.parent=new Jd(null,0)).children=[a],a}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),e)r.eachBefore(u);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,a=n,u=i,s=o.parent.children[0],l=o.m,c=a.m,f=u.m,h=s.m;u=Ud(u),o=qd(o),u&&o;)s=qd(s),(a=Ud(a)).a=n,(r=u.z+f-o.z-l+t(u._,o._))>0&&(Zd(Kd(u,n,e),n,r),l+=r,c+=r),f+=u.m,l+=o.m,h+=s.m,c+=a.m;u&&!Ud(a)&&(a.t=u,a.m+=f-c),o&&!qd(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],w=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var C=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,S=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,A=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,L=null===(o=f[x.parentID])||void 0===o?void 0:o.x,V=null===(a=k[0])||void 0===a?void 0:a.y,D=0;D<k.length;++D){var N=k[D];void 0!==this.composition?0===this.composition?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?1===k.length?L:S:A,V,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,w),V+=M+g):k.length>2?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?S:A,V,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,w),V+=M+g)}}if((x.children||c<=2)&&(this.D(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,w),0===x.id&&x.children)){var T=ei(k=null===(u=f[x.id])||void 0===u?void 0:u.children,(function(t){return t.x})),O=ri(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},n}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.N=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),a="",u=Yu(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&u.attr("class",e);for(var s=[];a=o.pop();)if(s.push(a),u.text(s.join(" ")+" "),null!==u.node()&&u.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",u.text(null),Xu(".tempText").remove(),r},t.prototype.D=function(t,n,i,e,r,o,u,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=r-s/2;!e&&0===c&&i||this._nodeElements.push(a.createElement("rect",{width:s,height:l,x:d,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:u,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.N(n,s,s/4,this.styleClassNames.rectSubText)),i&&(i=this.N(i,s,s/4,this.styleClassNames.rectBodyText)),e&&(e=this.N(e,s,s/4,this.styleClassNames.rectMetricText)),t=this.N(t,s,s/4,this.styleClassNames.rectText);var v=e?a.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?a.createElement(a.Fragment,null,a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),a.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(a.createElement("text",{textAnchor:"middle",className:e?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:e?o+l/2.5:o+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t,v)):this._nodeElements.push(a.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t))},t.prototype.O=function(t,n,i,e,r,o,a,u,s){var l="M".concat(i-o/2,",").concat(e-u," H").concat(s+o/2," M").concat(t,",").concat(e-u,"\n V").concat(n+a+u/2),c="M".concat(t,",").concat(n+a+u/2," V").concat(n+5*u,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,i,e,r,o,u,s,l,c){void 0===c&&(c=0),this._linkElements.push(a.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,r,o,u,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),nv=function(t){function n(n){var i,e,r,o,a,u=t.call(this,n)||this;return u._nodeElements=[],u._linkElements=[],u._margin={top:(null===(i=u.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=u.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=u.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=u.props.margins)||void 0===o?void 0:o.right)||20},u._width=u.props.width||1500,u._height=u.props.height||700,u._treeData=u.props.treeData,u._composition=null===(a=u.props)||void 0===a?void 0:a.composition,u._treeTraversal=u.props.treeTraversal,u.state={_width:u._width,_height:u._height},u}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=Qd(e,{theme:n,className:i}),this.F(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=Xu("text"),i=Xu("rect"),e=Xu("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.F()}},n.prototype.F=function(){var t=[],n=[],i=new tv(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},n.prototype.render=function(){var t;return a.createElement(xl,null,a.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},a.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},a.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),a.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(a.Component),iv=(0,r.I)(nv,(function(t){var n,i,e,r,a;return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:t.theme.palette.neutralSecondary,strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px",selectors:(n={},n[It.up]={fill:"Canvas"},n)},rectText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),{selectors:(i={},i[It.up]={fill:"CanvasText"},i)}),rectSubText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),{selectors:(e={},e[It.up]={fill:"CanvasText"},e)}),rectBodyText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),{selectors:(r={},r[It.up]={fill:"CanvasText"},r)}),rectMetricText:(0,o.Cl)((0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge),{selectors:(a={},a[It.up]={fill:"CanvasText"},a)})}}));function ev(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}var rv,ov,av=(0,u.Z)(),uv=function(t){function n(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,s.jI)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=p("_SparklineChart_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=kh().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(qu);this.area=n;var i=Pf().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(qu);this.line=i;var e=this.props.data.lineChartData[0].data,r=ev(e,(function(t){return t.x})),o=r[0],a=r[1];this.x=Ne().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ne().domain([0,ri(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},n.prototype.drawSparkline=function(){return a.createElement(a.Fragment,null,a.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),a.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-hidden":!0}))},n.prototype.render=function(){var t=av(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(xl,{direction:zs.horizontal,isCircularNavigation:!0,className:t.inlineBlock},a.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?a.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)},this.state._points?this.drawSparkline():null):a.createElement(a.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?a.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},a.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):a.createElement(a.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(a.Component),sv=(0,r.I)(uv,(function(t){var n;return{inlineBlock:{display:"inline"},valueText:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText,selectors:(n={},n[It.up]={fill:"CanvasText"},n)})}})),lv=(0,u.Z)(),cv=function(t){function n(n){var i,e,r,u,l,c,f=t.call(this,n)||this;return f._isRtl=(0,s.jI)(),f.X_ORIGIN=0,f.toImage=function(t){var n,i;return Ac(null===(n=f._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=f._legendsRef.current)||void 0===i?void 0:i.toSVG,f._isRtl,t)},f._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){var l;return l=o===Ru.NumericAxis?function(t,n,i,e,r,o){var a=ms(gs(t),o),u=a.longestPositiveBar,s=a.longestNegativeBar,l=e?n.left:n.left+r,c=e?i-n.right-r:i-n.right;return e?{dStartValue:u,dEndValue:Math.min(s,o),rStartValue:l,rEndValue:c}:{dStartValue:Math.min(s,o),dEndValue:u,rStartValue:l,rEndValue:c}}(t,n,i,r,s,f.X_ORIGIN):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},f._getMargins=function(t){f.margins=t},f._renderContentForOnlyBars=function(t){var n,i,e,r,o=f.props,u=o.useSingleColor,s=void 0!==u&&u,l=o.enableGradient,c=void 0!==l&&l,h=0;return f.props.data.forEach((function(n,i){n.y===t.y&&(h=i)})),s?(r=f.props.colors?f._createColors()(1):Sf(1,0,null===(n=f.props.theme)||void 0===n?void 0:n.isInverted),c&&(r=Zs(0,0,null===(i=f.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=t.color?t.color:f.props.colors?f._createColors()(t.x):Sf(h,0,null===(e=f.props.theme)||void 0===e?void 0:e.isInverted),a.createElement(a.Fragment,null,a.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:r,culture:f.props.culture}))},f._renderCallout=function(t){return t?f._renderContentForOnlyBars(t):null},f._getCustomizedCallout=function(){return f.props.onRenderCalloutPerDataPoint?f.props.onRenderCalloutPerDataPoint(f.state.dataPointCalloutProps,f._renderCallout):null},f._getGraphData=function(t,n,i,e,r,o){var a=gs(f._points),u=ms(a,f.X_ORIGIN);f._longestBarPositiveTotalValue=u.longestPositiveBar,f._longestBarNegativeTotalValue=u.longestNegativeBar;var s=f._yAxisType===zu.NumericAxis?f._getScales(i,e,!0):f._getScales(i,e,!1),l=s.xBarScale,c=s.yBarScale,h=l.range(),d=[];return h[0]<h[1]&&(d=a.map((function(t){return f._yAxisType===zu.NumericAxis?f._createNumericBars(i,e,r,o,t,l,c):f._createStringBars(i,e,r,o,t,l,c)})).flat()),f._bars=d},f._refCallback=function(t,n){f._refArray.push({index:n,refElement:t})},f._getCalloutContentForBar=function(t){var n,i,e,r,o=[],a=f.props,u=a.useSingleColor,s=void 0!==u&&u,l=a.enableGradient,c=void 0!==l&&l,h=f.props.data,d=h.filter((function(n){return n.y===t.y})),v=0;return h.forEach((function(n,i){n.y===t.y&&(v=i)})),s?(r=f.props.colors?f._createColors()(1):Sf(1,0,null===(n=f.props.theme)||void 0===n?void 0:n.isInverted),c&&(r=Zs(0,0,null===(i=f.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=d[0].color?d[0].color:f.props.colors?f._createColors()(d[0].x):Sf(v,0,null===(e=f.props.theme)||void 0===e?void 0:e.isInverted),o.push({legend:d[0].legend,y:d[0].x,color:r,data:d[0].yAxisCalloutData,yAxisCalloutData:d[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},f._onBarLeave=function(){},f._handleChartMouseLeave=function(){f._calloutAnchorPoint=null,f.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},f._onBarFocus=function(t,n,i){if((!1===f.state.isLegendSelected||f._isLegendHighlighted(t.legend))&&f._calloutAnchorPoint!==t){var e=f._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;f._refArray.forEach((function(e,a){n===a&&f.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:f.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData})}))}},f._getScales=function(t,n,i){var e=f._longestBarPositiveTotalValue,r=f._longestBarNegativeTotalValue,o=[Math.min(f.X_ORIGIN,r),Math.max(f.X_ORIGIN,e)];if(i){var a=ri(f._points,(function(t){return t.y})),u=ei(f._points,(function(t){return t.y})),s=Math.max(a,f.props.yMaxValue||0),l=f.props.yMinValue||0,c=Math.min(u,l);return{xBarScale:Ne().domain(o).nice().range([f.margins.left,n-f.margins.right]),yBarScale:h=Ne().domain([c,s]).range([t-(f.margins.bottom+f._domainMargin),f.margins.top+f._domainMargin])}}var h=Oa().domain(f._yAxisLabels).range([t-(f.margins.bottom+f._domainMargin),f.margins.top+f._domainMargin]).padding(f._yAxisPadding);return{xBarScale:Ne().domain(o).nice().range([f.margins.left,n-f.margins.right]),yBarScale:h}},f._calculateAppropriateBarHeight=function(t,n,i){var e=Xh(t);if(!e||0===e[1])return 16;var r=e[0],o=e[1],a=ri(f._points,(function(t){return t.y}));return o=Math.max(o,a),Math.floor(n*r*(1-i)/(o+r*(1-i)))},f._getDomainMarginsForHorizontalBarChart=function(t){f._domainMargin=8;var n=f._getUniqueYValues();f._yAxisPadding=1===f._yAxisPadding?.99:f._yAxisPadding;var i=f._yAxisPadding/(1-f._yAxisPadding),e=n.length+(n.length-1)*i,r=t-(f.margins.top+8)-(f.margins.bottom+8);if(f._yAxisType!==zu.StringAxis)f._barHeight=f.props.barHeight||f._calculateAppropriateBarHeight(n,r,f._yAxisPadding),f._barHeight=Math.max(f._barHeight,1),f._domainMargin+=f._barHeight/2;else{f._barHeight=f.props.barHeight||r/e;var a=e*f._barHeight;r>=a&&(f._domainMargin=8+(r-a)/2)}return(0,o.Cl)((0,o.Cl)({},f.margins),{top:f.margins.top+f._domainMargin,bottom:f.margins.bottom+f._domainMargin})},f._closeCallout=function(){f.setState({isCalloutVisible:!1})},f._getLegendData=function(t,n){var i=f.props.useSingleColor,e=[],r={};return t.forEach((function(t,n){var e,o,a,u,s=i?f.props.colors?f._createColors()(1):Sf(1,0,null===(e=f.props.theme)||void 0===e?void 0:e.isInverted):t.color;f.props.enableGradient&&(s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(n,0,null===(a=f.props.theme)||void 0===a?void 0:a.isInverted)[0],i&&(s=Zs(0,0,null===(u=f.props.theme)||void 0===u?void 0:u.isInverted)[0])),r[t.legend]=s})),Object.entries(r).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){f._handleChartMouseLeave(),f._onLegendHover(n)},onMouseOutAction:function(t){f._onLegendLeave(t)}};e.push(r)})),a.createElement(Fc,(0,o.Cl)({legends:e,enabledWrapLines:f.props.enabledLegendsWrapLines,overflowProps:f.props.legendsOverflowProps,focusZonePropsInHoverCard:f.props.focusZonePropsForLegendsInHoverCard,overflowText:f.props.legendsOverflowText},f.props.legendProps,{onChange:f._onLegendSelectionChange.bind(f),ref:f._legendsRef}))},f._isLegendSelected=function(){return f.state.isLegendSelected},f._isLegendHighlighted=function(t){return f._getHighlightedLegend().includes(t)},f._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;f._xMax=Math.max(n[n.length-1],f.props.xMaxValue||0)}},f._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},f._getChartTitle=function(){var t=f.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},Qs(f),f.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)&&n.legendProps.selectedLegends.length>0||void 0!==(null===(e=n.legendProps)||void 0===e?void 0:e.selectedLegend),isLegendHovered:!1,refSelected:null,selectedLegendTitle:null!==(u=null===(r=n.legendProps)||void 0===r?void 0:r.selectedLegend)&&void 0!==u?u:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",selectedLegends:(null===(l=n.legendProps)||void 0===l?void 0:l.selectedLegends)||[]},f._calloutId=p("callout"),f._refArray=[],f._xAxisType=f.props.data&&f.props.data.length>0?Ss(f.props.data[0].x,!0):Ru.NumericAxis,f._yAxisType=f.props.data&&f.props.data.length>0?Ss(f.props.data[0].y,!1):zu.StringAxis,f._cartesianChartRef=a.createRef(),f._legendsRef=a.createRef(),f._domainMargin=8,f._yAxisPadding=null!==(c=f.props.yAxisPadding)&&void 0!==c?c:.5,f}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,o.fX)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max(ri(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=lv(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var e=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,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),Ls(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(Xf,(0,o.Cl)({},this.props,{yAxisPadding:this._yAxisPadding,chartTitle:this._getChartTitle(),points:this._points,chartType:Wu.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:e,tickParams:r,legendBars:i,createYAxis:as,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ss,getMinMaxOfYAxis:Cs,barwidth:this._barHeight,focusZoneDirection:zs.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getYDomainMargins:this._getDomainMarginsForHorizontalBarChart,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return Ne().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;!1!==this.state.isLegendSelected&&!this._isLegendHighlighted(t.legend)||this._calloutAnchorPoint===t||(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor||this.props.enableGradient?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,i,e,r,u,s){var l=this,c=this.props.useSingleColor,f=void 0!==c&&c,h=(0,o.fX)([],r,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=0,v=0,g=0,m=r.filter((function(t){return t.x>=l.X_ORIGIN})).length,y=r.length-m,b=0,x=0,w=h.map((function(t,i){var e,r,o,c,h,w,C,M,k=!0;(l.state.isLegendHovered||l.state.isLegendSelected)&&(k=l._isLegendHighlighted(t.legend)),l._classNames=lv(l.props.styles,{theme:l.props.theme,legendColor:l.state.color,shouldHighlight:k}),t.x>=l.X_ORIGIN&&++b,t.x<l.X_ORIGIN&&++x;var S,A=l._isRtl?n-(l.margins.right+Math.max(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN))-l.margins.left):Math.min(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN));if(Math.max(s(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");S=f?l.props.colors?l._createColors()(1):Sf(1,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted):l.props.colors?l._createColors()(t.x):Sf(i,0,null===(r=l.props.theme)||void 0===r?void 0:r.isInverted);var L=S=t.color&&!f?t.color:S;if(l.props.enableGradient){var V=Math.max(l._points.findIndex((function(n){return n===t})),0);S=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(V,0,null===(c=l.props.theme)||void 0===c?void 0:c.isInverted)[0],L=(null===(h=t.gradient)||void 0===h?void 0:h[1])||Zs(V,0,null===(w=l.props.theme)||void 0===w?void 0:w.isInverted)[1],f&&(S=Zs(0,0,null===(C=l.props.theme)||void 0===C?void 0:C.isInverted)[0],L=Zs(0,0,null===(M=l.props.theme)||void 0===M?void 0:M.isInverted)[1]),l._points[V].color=S}var D=p("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(u(g+l.X_ORIGIN)-u(l.X_ORIGIN));g>l.X_ORIGIN?d+=N:v+=N;var T=Math.abs(u(t.x+l.X_ORIGIN)-u(l.X_ORIGIN)),O=T>2&&(t.x>l.X_ORIGIN&&b!==m||t.x<l.X_ORIGIN&&(0!==m||x>1))?2:0,E=T>2&&(t.x>l.X_ORIGIN&&(0!==y||b>1)||t.x<l.X_ORIGIN&&x!==y)?2:0,F=l.X_ORIGIN;return F=l._isRtl?t.x>l.X_ORIGIN?A-d:A+v:t.x>l.X_ORIGIN?A+d:A-v,g=t.x,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},l.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("rect",{key:t.y,x:F,className:l._classNames.opacityChangeOnHover,y:s(t.y)-l._barHeight/2,"data-is-focusable":k,width:T-(l._isRtl?E:O),height:l._barHeight,ref:function(n){l._refCallback(n,t.legend)},rx:l.props.roundCorners?3:0,onClick:t.onClick,onMouseOver:l._onBarHover.bind(l,t,S),"aria-label":l._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(l._calloutId),onMouseLeave:l._onBarLeave,onFocus:l._onBarFocus.bind(l,t,i,S),onBlur:l._onBarLeave,fill:l.props.enableGradient?"url(#".concat(D,")"):S}))}));return w},n.prototype._getUniqueYValues=function(){var t,n={};return null===(t=this.props.data)||void 0===t||t.forEach((function(t){n[t.y]=t.y})),Object.values(n)},n.prototype._createStringBars=function(t,n,i,e,r,o,u){var s=this,l=this.props.useSingleColor,c=void 0!==l&&l,f=0,h=0,d=0,v=r.filter((function(t){return t.x>=s.X_ORIGIN})).length,g=r.length-v,m=0,y=0,b=r.map((function(t,i){var e,r,l,b,x,w,C,M,k=!0;(s.state.isLegendHovered||s.state.isLegendSelected)&&(k=s._isLegendHighlighted(t.legend)),s._classNames=lv(s.props.styles,{theme:s.props.theme,legendColor:s.state.color,shouldHighlight:k}),t.x>=s.X_ORIGIN&&++m,t.x<s.X_ORIGIN&&++y;var S,A=s._isRtl?n-(s.margins.right+Math.max(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN))-s.margins.left):Math.min(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN));if(Math.max(u(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");S=c?s.props.colors?s._createColors()(1):Sf(1,0,null===(e=s.props.theme)||void 0===e?void 0:e.isInverted):s.props.colors?s._createColors()(t.x):Sf(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted);var L=S=t.color&&!c?t.color:S;if(s.props.enableGradient){var V=s._points.findIndex((function(n){return n===t}));S=(null===(l=t.gradient)||void 0===l?void 0:l[0])||Zs(V,0,null===(b=s.props.theme)||void 0===b?void 0:b.isInverted)[0],L=(null===(x=t.gradient)||void 0===x?void 0:x[1])||Zs(V,0,null===(w=s.props.theme)||void 0===w?void 0:w.isInverted)[1],c&&(S=Zs(0,0,null===(C=s.props.theme)||void 0===C?void 0:C.isInverted)[0],L=Zs(0,0,null===(M=s.props.theme)||void 0===M?void 0:M.isInverted)[1]),s._points[V].color=S}var D=p("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(o(d+s.X_ORIGIN)-o(s.X_ORIGIN));d>0?f+=N:h+=N;var T=Math.abs(o(t.x+s.X_ORIGIN)-o(s.X_ORIGIN)),O=T>2&&(t.x>s.X_ORIGIN&&m!==v||t.x<s.X_ORIGIN&&(0!==v||y>1))?2:0,E=T>2&&(t.x>s.X_ORIGIN&&(0!==g||m>1)||t.x<s.X_ORIGIN&&y!==g)?2:0;d=t.x;var F=s.X_ORIGIN;return F=s._isRtl?t.x>s.X_ORIGIN?A-f:A+h:t.x>s.X_ORIGIN?A+f:A-h,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:L}))),a.createElement("rect",{transform:"translate(0,".concat(.5*(u.bandwidth()-s._barHeight),")"),key:t.x,className:s._classNames.opacityChangeOnHover,x:F,y:u(t.y),rx:s.props.roundCorners?3:0,width:T-(s._isRtl?E:O),height:s._barHeight,"aria-labelledby":"toolTip".concat(s._calloutId),"aria-label":s._getAriaLabel(t),role:"img",ref:function(n){s._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:s._onBarHover.bind(s,t,S),onMouseLeave:s._onBarLeave,onBlur:s._onBarLeave,"data-is-focusable":k,onFocus:s._onBarFocus.bind(s,t,i,S),fill:s.props.enableGradient?"url(#".concat(D,")"):S}))}));return b},n.prototype._onLegendHover=function(t){this._isLegendSelected()||this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){!t&&this._isLegendSelected()||this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this._isLegendSelected()})},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.selectedLegendTitle?[this.state.selectedLegendTitle]:[]},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t,selectedLegendTitle:null==i?void 0:i.title}):this.setState({selectedLegends:t.slice(-1),selectedLegendTitle:null==i?void 0:i.title}),this.setState({isLegendSelected:t.length>0}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n}(a.Component),fv=(0,r.I)(cv,(function(t){return{opacityChangeOnHover:{opacity:t.shouldHighlight?"":"0.1"},xAxisTicks:[]}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(rv||(rv={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(ov||(ov={}));var hv=[{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}],dv=(0,u.Z)(),vv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===ov.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===ov.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},pv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===rv.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===rv.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},gv=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Ac(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,e._isRTL,t)},e._getMargins=function(){var t=e.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},e._getStylesBasedOnBreakpoint=function(){for(var t=hv.length-1;t>=0;t-=1)if(e._outerRadius>=hv[t].minRadius)return{arcWidth:hv[t].arcWidth,chartValueSize:hv[t].fontSize};return{arcWidth:hv[0].arcWidth,chartValueSize:hv[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,a=i,u=e.props.segments.map((function(t,n){var i,e=Math.max(t.size,0);return a+=e,{legend:t.legend,size:e,color:void 0!==t.color?Af(t.color,o.isInverted):Sf(n,0,o.isInverted),gradient:null!==(i=t.gradient)&&void 0!==i?i:Zs(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:a-e,end:a}}));void 0!==r&&a<r&&(u.push({legend:"Unknown",size:r-a,color:o.palette.neutralLight,start:a,end:r}),a=r);var s=hf().cornerRadius(e.props.roundCorners?3:0).padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(u).reverse():u,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(a-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?u.length-1-n:n,startAngle:c-t.size/(a-i)*Math.PI,endAngle:r}}));return e._minValue=i,e._maxValue=a,e._segments=u,{arcs:f}},e._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(e.props.chartValue,e._minValue,e._maxValue),n=e._isRTL?180-t:t,i=e._outerRadius-e._innerRadius+4;return a.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},a.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-i,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-i,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:e._classNames.needle,transform:"translate(".concat(2-e._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return e._handleFocus(t,"Needle")},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,"Needle")},onMouseMove:function(t){return e._handleMouseOver(t,"Needle")},role:"img","aria-label":"Current value: "+pv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat)}))},e._renderLegends=function(){if(e.props.hideLegend)return null;var t=e._segments.map((function(t,n){var i,r=e.props.enableGradient?(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,e.props.theme.isInverted)[0]:t.color||Sf(n,0,e.props.theme.isInverted);return{title:t.legend,color:r,hoverAction:function(){e.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){e.setState({hoveredLegend:""})}}}));return a.createElement("div",{className:e._classNames.legendsContainer},a.createElement(Fc,(0,o.Cl)({legends:t,centerLegends:!0},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef})))},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._handleFocus=function(t,n){e._showCallout(t.target,n,!0)},e._handleBlur=function(){e._hideCallout(!0)},e._handleMouseOver=function(t,n){e._showCallout(t.target,n,!1)},e._handleMouseOut=function(){e._hideCallout(!1)},e._handleCalloutDismiss=function(){e._hideCallout(!1)},e._showCallout=function(t,n,i){if(e._calloutAnchor!==n){e._calloutAnchor=n;var r="Current value is "+pv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),a=e._segments.map((function(t){var n;return{legend:t.legend,y:vv(t,e._minValue,e._maxValue,e.props.variant),color:e.props.enableGradient?null===(n=t.gradient)||void 0===n?void 0:n[0]:t.color}}));e.setState((0,o.Cl)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||e._noLegendHighlighted()||e._legendHighlighted(n),hoverXValue:r,hoverYValues:a},i?{focusedElement:n}:{}))}},e._hideCallout=function(t){e._calloutAnchor="",e.setState((0,o.Cl)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},e._wrapContent=function(t,n,i){var e=Yu("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},e._multiValueCallout=function(t){var n=e._yValueHoverSubCountsExists(t.YValueHover);return a.createElement("div",{className:e._classNames.calloutContentRoot},a.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:e._classNames.calloutContentX},Ls(t.xAxisCalloutAccessibilityData,"text",!1)),(0,_n.U)(t.hoverXValue,e.props.culture))),a.createElement("div",{className:e._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,r){var u=i+1===r.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return a.createElement("div",(0,o.Cl)({},Ls(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),e._getCalloutContent(t,i,n,u))})),!!t.descriptionMessage&&a.createElement("div",{className:e._classNames.descriptionMessage},t.descriptionMessage)))},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Gauge chart with ".concat(e._segments.length," segments. ")},Qs(e),e._margins=e._getMargins(),e._legendsHeight=n.hideLegend?0:24,e.state={hoveredLegend:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+e._margins.left+e._margins.right,height:70+e._margins.top+e._margins.bottom+e._legendsHeight},e._isRTL=(0,s.jI)(n.theme),e._calloutAnchor="",e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.componentDidUpdate=function(t){var n,i,e;Bs(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,i=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,i-(this._margins.top+this._margins.bottom+this._legendsHeight));var e=this._getStylesBasedOnBreakpoint(),r=e.arcWidth,u=e.chartValueSize;this._innerRadius=this._outerRadius-r;var s=this._processProps().arcs;return this._classNames=dv(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:i-this._legendsHeight,chartValueSize:u}),a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},a.createElement(xl,{direction:zs.horizontal},a.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},a.createElement("g",{transform:"translate(".concat(n/2,", ").concat(i-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&a.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&a.createElement(a.Fragment,null,a.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)},Ds(this._minValue)),a.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(this._maxValue)},Ds(this._maxValue))),s.map((function(n,i){var e,r,u=t._segments[n.segmentIndex],s=p("Arc_clip")+"".concat(i,"_").concat(n.startAngle,"_").concat(n.endAngle),l=dv(t.props.styles,{theme:t.props.theme,solidFill:t.props.enableGradient?"transparent":u.color,gradientFill:"conic-gradient(\n from ".concat(n.startAngle,"rad at 50% 100%,\n ").concat(null===(e=u.gradient)||void 0===e?void 0:e[0],",\n ").concat(null===(r=u.gradient)||void 0===r?void 0:r[1]," ").concat(n.endAngle-n.startAngle,"rad\n )"),opacity:t._legendHighlighted(u.legend)||t._noLegendHighlighted()?1:.1});return a.createElement(a.Fragment,{key:i},a.createElement("path",(0,o.Cl)({d:n.d,strokeWidth:t.state.focusedElement===u.legend?2:0,className:l.segment},Ls((0,o.Cl)({ariaLabel:vv(u,t._minValue,t._maxValue,t.props.variant,!0)},u.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,u.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,u.legend)},onMouseMove:function(n){return t._handleMouseOver(n,u.legend)},"data-is-focusable":t._legendHighlighted(u.legend)||t._noLegendHighlighted()})),t.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:s},a.createElement("path",{d:n.d})),a.createElement("foreignObject",{x:"-50%",y:"-100%",width:"100%",height:"100%",clipPath:"url(#".concat(s,")")},a.createElement("div",{className:l.gradientSegment}))))})),this._renderNeedle(),a.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},a.createElement(Wf,{content:pv(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,"aria-hidden":"true"},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&a.createElement(Wf,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&a.createElement(Pn,(0,o.Cl)({target:this.state.calloutTarget,directionalHint:3,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.hoveredLegend?[this.state.hoveredLegend]:[]},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r=e?{}:{marginRight:"16px"},o=void 0!==t.index&&-1!==t.index,u=dv(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:o}),s=this.props.culture,l=(0,_n.U)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return a.createElement("div",{style:r},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return a.createElement("div",{key:t,className:u.calloutBlockContainer},a.createElement("div",{className:u.calloutlegendText}," ",(0,_n.U)(t,s)),a.createElement("div",{className:u.calloutContentY},(0,_n.U)(c[t],s)))})))}return a.createElement("div",{style:i?r:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:u.calloutBlockContainer},o&&a.createElement(Sc,{svgProps:{className:u.shapeStyles},pathProps:{fill:t.color},shape:Ms[t.index%Object.keys(As).length]}),a.createElement("div",null,a.createElement("div",{className:u.calloutlegendText}," ",t.legend),a.createElement("div",{className:u.calloutContentY},(0,_n.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},n}(a.Component),mv=(0,r.I)(gv,(function(t){var n,i,e,r,a,u,s,l,c=t.theme,f=t.chartValueSize,h=t.chartWidth,d=t.chartHeight,v=t.className,p=t.lineColor,g=t.toDrawShape,m=t.solidFill,y=t.gradientFill,b=t.opacity;return{root:[c.fonts.medium,"ms-GaugeChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},v],chart:{display:"block",width:h,height:d},limits:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:c.palette.neutralPrimary,selectors:(n={},n[It.up]={fill:"CanvasText"},n)},chartValue:{fontSize:f,fontWeight:It.BO.semibold,fill:c.palette.neutralPrimary,selectors:(i={},i[It.up]={fill:"CanvasText"},i)},sublabel:{fontSize:It.s.small,fontWeight:It.BO.semibold,fill:c.palette.neutralPrimary,selectors:(e={},e[It.up]={fill:"CanvasText"},e)},needle:{fill:c.palette.black,stroke:c.semanticColors.bodyBackground},chartTitle:{fontSize:It.s.small,fill:c.palette.neutralPrimary,selectors:(r={},r[It.up]={fill:"CanvasText"},r)},segment:{outline:"none",stroke:c.semanticColors.focusBorder,fill:m,fillOpacity:b},gradientSegment:{width:"100%",height:"100%",background:y,opacity:b},legendsContainer:{width:h},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:c.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},c.fonts.small),{lineHeight:"16px",opacity:"0.85",color:c.semanticColors.bodySubtext})],calloutBlockContainer:[c.fonts.mediumPlus,{marginTop:"13px",color:c.semanticColors.bodyText},!g&&{selectors:(a={},a[It.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(p),paddingLeft:"8px"},g&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},c.fonts.small),{lineHeight:"16px",selectors:(u={},u[It.up]={color:"CanvasText"},u),color:c.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},c.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[It.up]={color:"CanvasText"},s)})],descriptionMessage:[c.fonts.small,{selectors:(l={},l[It.up]={color:"CanvasText"},l),color:c.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(c.semanticColors.menuDivider)}]}})),yv=i(927),bv=a.createContext(void 0);function xv(t){const n=(4-t.length%4)%4;return t+"=".repeat(n)}function wv(t){if("string"!=typeof t)return!1;if(t.length%4!=0&&(t=xv(t)),!/^[A-Za-z0-9+/]+={0,2}$/.test(t))return!1;try{return Cv(t),!0}catch{return!1}}function Cv(t){if("undefined"!=typeof window&&"function"==typeof atob){const n=atob(t),i=n.length,e=new Uint8Array(i);for(let t=0;t<i;t++)e[t]=n.charCodeAt(t);return e}throw new Error("Base64 decoding is not supported in this environment.")}function Mv(t,n){t=xv(t);try{const i=Cv(t);switch(n){case"f8":return Array.from(new Float64Array(i.buffer));case"i8":case"i4":return Array.from(new Int32Array(i.buffer));case"u8":return Array.from(new Uint32Array(i.buffer));case"i2":return Array.from(new Int16Array(i.buffer));case"i1":return Array.from(new Int8Array(i.buffer));default:try{return i.toString()}catch(t){return i}}}catch(n){throw new Error(`Failed to decode base64 value: ${t}`)}}function kv(t){for(const[n,i]of Object.entries(t))if("object"!=typeof i||Array.isArray(i)||null===i){if("bdata"===n&&"string"==typeof i&&wv(i)){const e=t.dtype||"utf-8";t[n]=Mv(i,e)}else if(Array.isArray(i))for(let t=0;t<i.length;t++)"object"==typeof i[t]&&null!==i[t]&&kv(i[t])}else kv(i)}function Sv(t){const n=JSON.parse(JSON.stringify(t.data));if(kv(t.data),JSON.stringify(t.data)!==JSON.stringify(n)){let n=!1;for(const i of t.data||[])if(["y","x","z","r","theta"].forEach((t=>{if(i[t]&&"object"==typeof i[t]&&"bdata"in i[t]){const e=i[t].bdata;Array.isArray(e)&&e.some((t=>"number"==typeof t&&isNaN(t)))?n=!0:i[t]=e}})),n)break;if(!n)return t}return t.data=n,t}const Av="Unsupported chart - type :",Lv=t=>!isNaN(parseFloat(t))&&isFinite(t),Vv=t=>{if(Lv(t))return!1;const n=new Date(Date.parse(t));if(isNaN(n.getTime()))return!1;const i=n.getFullYear();return!!(/\b\d{4}\b/.test(t)||2e3!==i&&2001!==i)},Dv=t=>{if(Lv(t)){const n="string"==typeof t?parseFloat(t):Number(t);return Number.isInteger(n)&&n>=1900&&n<=2100}return!1},Nv=(t,n,...i)=>!!Bv(t)&&0!==t.length&&(Array.isArray(t[0])?t.every((t=>t.every((t=>n(t,...i))))):t.every((t=>n(t,...i)))),Tv=t=>Nv(t,Vv),Ov=t=>Nv(t,Lv),Ev=t=>Nv(t,Dv),Fv=(t,n=0)=>{if(n>15)throw new Error("Maximum json depth exceeded");if("object"==typeof t&&null!==t)for(const i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?t[i]=t[i].replace(/</g,"<").replace(/>/g,">"):t[i]=Fv(t[i],n+1));return t};function Bv(t){return Array.isArray(t)||function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(t)}const Pv=(t,n)=>{if(!(t=>!(Array.isArray(t.x)&&t.x.length>0&&Array.isArray(t.x[0])||Array.isArray(t.y)&&t.y.length>0&&Array.isArray(t.y[0])))(t))throw new Error("Invalid 2D series encountered.");if(n&&!Ov(t.y))throw new Error("Non numeric Y values encountered.")},_v={indicator:[t=>{var n;if(!(null===(n=t.mode)||void 0===n?void 0:n.includes("gauge")))throw new Error(`${Av} ${t.type}, mode: ${t.mode}`)}],histogram:[t=>Pv(t,!1)],bar:[t=>(t=>{if("h"===t.orientation&&void 0!==t.base)throw new Error(`${Av} Gantt`);"h"===t.orientation&&Ov(t.x)?Pv(t,!1):Pv(t,!0)})(t)],scatter:[t=>(t=>{var n;if(["markers","text+markers","markers+text"].includes(null!==(n=t.mode)&&void 0!==n?n:"")&&!Ov(t.x))throw new Error(`${Av} ${t.type}, mode: ${t.mode}, xAxisType: String or Date`);Pv(t,!0)})(t)],scatterpolar:[t=>{if(!Ov(t.theta))throw new Error(`${Av} ${t.type}, Non numeric theta values`);if(!Ov(t.r))throw new Error(`${Av} ${t.type}, Non numeric r values`)}]};var Hv=Array.prototype,Iv=Hv.slice;function Wv(t){return()=>t}function Rv(t){return t}function zv(t){return Math.max(1,Math.ceil(Math.log(function(t){let n=0;for(let i of t)null!=i&&(i=+i)>=i&&++n;return n}(t))/Math.LN2)+1)}function jv(t,n,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function $v(t,n){this._context=t,this._k=(1-n)/6}Hv.map,$v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jv(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:jv(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yv=function t(n){function i(t){return new $v(t,n)}return i.tension=function(n){return t(+n)},i}(0),Xv={dot:{strokeDasharray:"1, 5",strokeLinecap:"round",strokeWidth:"2",lineBorderWidth:"4"},dash:{strokeDasharray:"5, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdash:{strokeDasharray:"10, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},dashdot:{strokeDasharray:"5, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdashdot:{strokeDasharray:"10, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},solid:{strokeDasharray:"0",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"}},Gv=function(t){var n=no("%B"),i=no("%b");return null!==n(t)||null!==i(t)};function qv(t){var n,i,e,r,o,a,u,s,l,c,f,h;return{chartTitle:"string"==typeof(null==t?void 0:t.title)?t.title:null!==(i=null===(n=null==t?void 0:t.title)||void 0===n?void 0:n.text)&&void 0!==i?i:"",xAxisTitle:"string"==typeof(null===(e=null==t?void 0:t.xaxis)||void 0===e?void 0:e.title)?null===(r=null==t?void 0:t.xaxis)||void 0===r?void 0:r.title:null!==(u=null===(a=null===(o=null==t?void 0:t.xaxis)||void 0===o?void 0:o.title)||void 0===a?void 0:a.text)&&void 0!==u?u:"",yAxisTitle:"string"==typeof(null===(s=null==t?void 0:t.yaxis)||void 0===s?void 0:s.title)?null===(l=null==t?void 0:t.yaxis)||void 0===l?void 0:l.title:null!==(h=null===(f=null===(c=null==t?void 0:t.yaxis)||void 0===c?void 0:c.title)||void 0===f?void 0:f.text)&&void 0!==h?h:""}}var Uv=function(t){var n=(new Date).getFullYear();if(t.length>0&&Array.isArray(t[0]))throw new Error("updateXValues:: 2D array not supported");for(var i=t.map((function(t){var i="".concat(t," 01, ").concat(n);return Vv(i)?new Date(i):null})),e=i.length-1;e>0;e--){var r=i[e].getMonth(),o=i[e-1].getMonth(),a=i[e].getFullYear(),u=i[e-1].getFullYear();o>=r?i[e-1].setFullYear(i[e].getFullYear()-1):u>a&&i[e-1].setFullYear(a)}return t.map((function(t,n){return"".concat(t," 01, ").concat(i[n].getFullYear())}))},Zv=function(t,n,i){if(!n.current.has(t)){var e=Sf(n.current.size+1,0,i);return n.current.set(t,e),e}return n.current.get(t)},Kv=function(t){return"y2"===t.yaxis},Jv=function(t,n,i,e){var r,o,a,u,s,l,c=!1;return t.forEach((function(t){if(Kv(t)){c=!0;var n=t.y;n&&(s=Math.min.apply(Math,n),l=Math.max.apply(Math,n))}})),c?("number"==typeof s&&"number"==typeof i&&(s=Math.min(s,i)),"number"==typeof l&&"number"==typeof e&&(l=Math.max(l,e)),(null===(r=null==n?void 0:n.yaxis2)||void 0===r?void 0:r.range)&&(s=n.yaxis2.range[0],l=n.yaxis2.range[1]),{secondaryYAxistitle:"string"==typeof(null===(o=null==n?void 0:n.yaxis2)||void 0===o?void 0:o.title)?n.yaxis2.title:"string"==typeof(null===(u=null===(a=null==n?void 0:n.yaxis2)||void 0===a?void 0:a.title)||void 0===u?void 0:u.text)?n.yaxis2.title.text:void 0,secondaryYScaleOptions:{yMinValue:s,yMaxValue:l}}):{}},Qv=function(t,n,i,e){return!t&&n?function(t,n,i){var e=[];if(t){if(Bv(t))t.forEach((function(t,r){var o=null==t?void 0:t.toString().trim(),a=Zv("Label_".concat(r),n,i);if(o){var u=Ni(o);e.push(u?u.formatHex():a)}else e.push(a)}));else if("string"==typeof t){var r=Ni(t);return r?r.formatHex():Zv("Label_0",n,i)}return e}}(n,i,e):void 0},tp=function(t,n,i,e,r){return t&&Bv(t)&&t[n]?t[n%t.length]:"string"==typeof t?t:Zv(i,e,r)},np=function(t,n,i,e,r){var a,u,s,l={},c=0,f=Jv(t.data,t.layout),h=hp(t.data,t.layout),d=h.legends,v=h.hideLegend;t.data.forEach((function(t,a){var u,s,f,h=Ev(t.x),v=Qv(i,null===(u=t.marker)||void 0===u?void 0:u.color,n,e),p=Qv(i,null===(s=t.line)||void 0===s?void 0:s.color,n,e);null===(f=t.x)||void 0===f||f.forEach((function(i,u){var s,f,g;l[i]||(l[i]={xAxisPoint:h?i.toString():i,chartData:[],lineData:[]});var m=d[a],y=tp(v,a,m,n,e),b=null!==(f=null===(s=t.y)||void 0===s?void 0:s[u])&&void 0!==f?f:0;if("bar"===t.type)l[i].chartData.push({legend:m,data:b,color:y}),c=Math.max(c,b);else if("scatter"===t.type||r){var x=tp(p,a,m,n,e),w=ip(t.line),C=(null===(g=t.line)||void 0===g?void 0:g.dash)||"solid",M="dot"===C||"dash"===C||"dashdot"===C?"dottedLine":"default";l[i].lineData.push((0,o.Cl)((0,o.Cl)({legend:m,legendShape:M,y:b,color:x},w?{lineOptions:w}:{}),{useSecondaryYScale:Kv(t)})),Kv(t)||(c=Math.max(c,b))}}))}));var p=qv(t.layout),g=p.chartTitle,m=p.xAxisTitle,y=p.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(l),width:null===(a=t.layout)||void 0===a?void 0:a.width,height:null!==(s=null===(u=t.layout)||void 0===u?void 0:u.height)&&void 0!==s?s:350,barWidth:"auto",yMaxValue:c,chartTitle:g,xAxisTitle:m,yAxisTitle:y,mode:"plotly"},f),{hideTickOverlap:!0,hideLegend:v})};function ip(t){if(t){var n={};switch(t.dash&&(n=(0,o.Cl)((0,o.Cl)({},n),Xv[t.dash])),t.shape){case"spline":var i="number"==typeof t.smoothing?t.smoothing:1;n.curve=Yv.tension(1-i/1.3);break;case"hv":n.curve="stepAfter";break;case"vh":n.curve="stepBefore";break;case"hvh":n.curve="step";break;default:n.curve="linear"}return Object.keys(n).length>0?n:void 0}}var ep=function(t){return Nv(t,(function(t){return"string"==typeof t}))},rp=function(t,n,i){return null==n?-1:i?t.findIndex((function(t){return t.includes(n)})):t.findIndex((function(i,e){return n>=i.x0&&(e===t.length-1?n<=i.x1:n<i.x1)}))},op=function(t){return t.x1-t.x0},ap=function(t){return(t.x1+t.x0)/2},up=function(t,n,i,e){if(!t||0===t.length)return[];if(ep(t)){var r=Array.from(new Set(t)),o="number"==typeof n?Math.ceil(n):0,a="number"==typeof i?Math.floor(i)+1:r.length,u="number"==typeof e?e:1;return Aa(o,a,u).map((function(t){return r.slice(t,t+u)}))}var s=Ne().domain(ev(t)).nice().domain(),l=s[0],c=s[1];l="number"==typeof n?n:l,c="number"==typeof i?i:c;var f=function(){var t=Rv,n=ev,i=zv;function e(e){Array.isArray(e)||(e=Array.from(e));var r,o,a,u=e.length,s=new Array(u);for(r=0;r<u;++r)s[r]=t(e[r],r,e);var l=n(s),c=l[0],f=l[1],h=i(s,c,f);if(!Array.isArray(h)){const t=f,i=+h;if(n===ev&&([c,f]=ii(c,f,i)),(h=Qn(c,f,i))[0]<=c&&(a=ti(c,f,i)),h[h.length-1]>=f)if(t>=f&&n===ev){const t=ti(c,f,i);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length,v=0,p=d;h[v]<=c;)++v;for(;h[p-1]>f;)--p;(v||p<d)&&(h=h.slice(v,p),d=p-v);var g,m=new Array(d+1);for(r=0;r<=d;++r)(g=m[r]=[]).x0=r>0?h[r-1]:c,g.x1=r<d?h[r]:f;if(isFinite(a)){if(a>0)for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Math.min(d,Math.floor((o-c)/a))].push(e[r]);else if(a<0)for(r=0;r<u;++r)if(null!=(o=s[r])&&c<=o&&o<=f){const t=Math.floor((c-o)*a);m[Math.min(d,t+(h[t]<=o))].push(e[r])}}else for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[fi(h,o,0,d)].push(e[r]);return m}return e.value=function(n){return arguments.length?(t="function"==typeof n?n:Wv(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:Wv([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:Wv(Array.isArray(t)?Iv.call(t):t),e):i},e}().domain([l,c]);if("number"==typeof e&&e>0){for(var h=[],d=Math.max(cp(l),cp(e)),v=fp(l,d);v<fp(c+e,d);)h.push(v),v=fp(v+e,d);return l=h[0],c=h[h.length-1],f.domain([l,c]).thresholds(h),f(t).slice(0,-1)}return f(t)},sp=function(t,n){var i,e;switch(t){case"sum":return fd(n);case"avg":return 0===n.length?0:fd(n)/n.length;case"min":return null!==(i=ei(n))&&void 0!==i?i:0;case"max":return null!==(e=ri(n))&&void 0!==e?e:0;default:return n.length}},lp=function(t,n,i,e,r){switch(void 0===r&&(r=1),t){case"percent":return 0===i?0:n/i*100;case"probability":return 0===i?0:n/i;case"density":return e*r===0?0:n/(e*r);case"probability density":return i*e*r===0?0:n/(i*e*r);default:return n}},cp=function(t){var n,i;return null!==(i=null===(n=t.toString().split(".")[1])||void 0===n?void 0:n.length)&&void 0!==i?i:0},fp=function(t,n){var i=Math.pow(10,n);return Math.round(t*i)/i},hp=function(t,n){var i=[];1===t.length?i.push(t[0].name||""):t.forEach((function(t,n){i.push(t.name||"Series ".concat(n+1))}));var e=t.every((function(t){return!1===t.showlegend}));return{legends:i,hideLegend:!1===(null==n?void 0:n.showlegend)||!0!==(null==n?void 0:n.showlegend)&&i.length<2||e}},dp=function(t){var n,i,e=a.useRef(null),r=a.useRef(),u=a.useState({}),s=u[0],c=u[1];r.current=t.onResize,a.useEffect((function(){var t,n,i=(0,l.z)(e.current);return i&&i.ResizeObserver&&(n=new i.ResizeObserver((function(n){var e,o=n[0].contentRect,a=o.width,u=o.height;t=null==i?void 0:i.requestAnimationFrame((function(){c((function(t){var n=Math.floor(a),i=Math.floor(u);return t.containerWidth===n&&t.containerHeight===i?t:{containerWidth:n,containerHeight:i}}))})),null===(e=r.current)||void 0===e||e.call(r,a,u)})),e.current&&n.observe(e.current)),function(){t&&(null==i||i.cancelAnimationFrame(t)),null==n||n.disconnect()}}),[]);var f=a.useMemo((function(){var n=s.containerWidth,i=s.containerHeight;return"number"==typeof t.aspect&&t.aspect>0&&(n?i=n/t.aspect:i&&(n=i*t.aspect),"number"==typeof t.maxHeight&&i&&i>t.maxHeight&&(i=t.maxHeight)),a.Children.map(t.children,(function(t){var e;return a.cloneElement(t,{width:n,height:i,shouldResize:(null!=n?n:0)+(null!=i?i:0),styles:(0,o.Cl)((0,o.Cl)({},t.props.styles),{root:(0,o.Cl)((0,o.Cl)({},null===(e=t.props.styles)||void 0===e?void 0:e.root),{width:n,height:i})})})}))}),[s,t.aspect,t.maxHeight,t.children]);return a.createElement("div",{ref:e,style:{width:null!==(n=t.width)&&void 0!==n?n:"100%",height:null!==(i=t.height)&&void 0!==i?i:"100%",minWidth:t.minWidth,minHeight:t.minHeight,maxHeight:t.maxHeight}},f)};function vp(t){return function(n){var i=n.aspect,e=n.width,r=n.height,u=n.minWidth,s=n.minHeight,l=n.maxHeight,c=n.onResize,f=(0,o.Tt)(n,["aspect","width","height","minWidth","minHeight","maxHeight","onResize"]);return a.createElement(dp,{aspect:i,width:e,height:r,minWidth:u,minHeight:s,maxHeight:l,onResize:c},a.createElement(t,(0,o.Cl)({},f)))}}var pp=vp(Of),gp=vp(Qh),mp=vp(hh),yp=vp(fv),bp=vp(Dh),xp=vp(ud),wp=vp(Id),Cp=vp(mv),Mp=vp(ed),kp=vp(Zh),Sp=a.forwardRef((function(t,n){var i,e,r=Fv(t.chartSchema).plotlySchema,u=(t=>{var n;try{Fv(t)}catch(t){return{isValid:!1,errorMessage:`Invalid JSON: ${t}`}}try{let i=(t=>{try{const n=t;if(!n)throw new Error("Plotly input is null or undefined");if(!n.data)throw new Error("Plotly input data is null or undefined");if(0===n.data.length)throw new Error("Plotly input data is empty");return n}catch(t){throw new Error(`Invalid plotly schema: ${t}`)}})(t);try{i=Sv(i)}catch(t){return{isValid:!1,errorMessage:`Failed to decode plotly schema: ${t}`}}const e=(t=>{const n=[],i=t.map(((t,i)=>{const e=t.type;if(e&&_v[e]){const r=_v[e];for(const e of r)try{e(t)}catch(e){return n.push(`data[${i}] - type: ${t.type}, ${e}`),[-1,""]}}return[i,""]})).filter((t=>t[0]>=0));if(0===i.length)throw new Error(n.join("; "));return i})(i.data),r=i.data[e[0][0]];switch(r.type){case"pie":return{isValid:!0,type:"donut",validTracesInfo:e};case"histogram2d":case"heatmap":return{isValid:!0,type:"heatmap",validTracesInfo:e};case"sankey":return{isValid:!0,type:"sankey",validTracesInfo:e};case"indicator":case"gauge":return{isValid:!0,type:"gauge",validTracesInfo:e};case"histogram":return{isValid:!0,type:"verticalbar",validTracesInfo:e};case"scatterpolar":return{isValid:!0,type:"scatterpolar",validTracesInfo:e};default:const t=e.some((t=>"bar"===i.data[t[0]].type)),o=e.some((t=>"scatter"===i.data[t[0]].type));if(t&&o)return{isValid:!0,type:"verticalstackedbar",validTracesInfo:e};if(t){const t=r;return"h"===t.orientation&&Ov(t.x)?{isValid:!0,type:"horizontalbar",validTracesInfo:e}:["group","overlay"].includes(null===(n=null==i?void 0:i.layout)||void 0===n?void 0:n.barmode)?{isValid:!0,type:"groupedverticalbar",validTracesInfo:e}:{isValid:!0,type:"verticalstackedbar",validTracesInfo:e}}if(o){const t=r,n=e.some((t=>{const n=i.data[t[0]];return"tonexty"===n.fill||"tozeroy"===n.fill||!!n.stackgroup})),o=Tv(t.x),a=Ov(t.x),u=Ev(t.x);return!o&&!a||u?n?{isValid:!1,errorMessage:"Fallback to VerticalStackedBarChart is not allowed for Area Charts."}:{isValid:!0,type:"fallback",validTracesInfo:e}:{isValid:!0,type:n?"area":"line",validTracesInfo:e}}return{isValid:!1,errorMessage:`${Av} ${r.type}`}}}catch(t){return{isValid:!1,errorMessage:`Invalid plotly schema: ${t}`}}})(r);if(!u.isValid)throw new Error("Invalid chart schema: ".concat(u.errorMessage));var s=r;try{s=Sv(s)}catch(t){throw new Error("Failed to decode plotly schema: ".concat(t))}var l=(0,o.Cl)((0,o.Cl)({},s),{data:u.validTracesInfo.map((function(t){return s.data[t[0]]}))}),c=r.selectedLegends,f=a.useRef(new Map),h=function(){var t=a.useContext(bv),n=(0,yv.m)(["theme"]).theme;return t||n||(0,pn.a)({})}(),d=null!==(i=null==h?void 0:h.isInverted)&&void 0!==i&&i,v=a.useRef(null);Bv(c)||(c=[]);var p=a.useState(c),g=p[0],m=p[1];a.useEffect((function(){var n=Fv(t.chartSchema).plotlySchema.selectedLegends;m(null!=n?n:[])}),[t.chartSchema]);var y={legendProps:{canSelectMultipleLegends:!0,onChange:function(n){m(n),t.onSchemaChange&&t.onSchemaChange({plotlySchema:{plotlyInput:s,selectedLegends:n}})},selectedLegends:g},componentRef:v,calloutProps:{layerProps:{eventBubblingEnabled:!0}}},b="builtin"===t.fluentDataVizColorPalette,x=function(t,n){var i,e=["markers","text+markers","markers+text"].includes(null===(i=t[0])||void 0===i?void 0:i.mode),r=(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){var a,u,s,l,c,f,h=Jv(t.data,t.layout,n?0:void 0,n?0:void 0),d="tonexty",v=hp(t.data,t.layout),p=v.legends,g=v.hideLegend,m=t.data.map((function(t,n){var a,u,s=Qv(e,null===(a=t.line)||void 0===a?void 0:a.color,i,r),l=t.x,c="string"==typeof l[0],f=Tv(l),h=Ov(l),v=p[n],g=tp(s,n,v,i,r);d="tozeroy"===t.fill?"tozeroy":"tonexty";var m=ip(t.line),y=(null===(u=t.line)||void 0===u?void 0:u.dash)||"solid",b="dot"===y||"dash"===y||"dashdot"===y?"dottedLine":"default";return(0,o.Cl)((0,o.Cl)({legend:v,legendShape:b,data:l.map((function(n,i){var e,r;return(0,o.Cl)({x:c?f?new Date(n):h?parseFloat(n):n:n,y:t.y[i]},Array.isArray(null===(e=t.marker)||void 0===e?void 0:e.size)?{markerSize:t.marker.size[i]}:"number"==typeof(null===(r=t.marker)||void 0===r?void 0:r.size)?{markerSize:t.marker.size}:{})})),color:g},m?{lineOptions:m}:{}),{useSecondaryYScale:Kv(t)})})),y=xs(m),b=qv(t.layout),x=b.chartTitle,w=b.xAxisTitle,C=b.yAxisTitle,M={chartTitle:x,lineChartData:m};return n?(0,o.Cl)((0,o.Cl)({data:M,supportNegativeData:!0,xAxisTitle:w,yAxisTitle:C},h),{mode:d,width:null===(a=t.layout)||void 0===a?void 0:a.width,height:null!==(s=null===(u=t.layout)||void 0===u?void 0:u.height)&&void 0!==s?s:350,hideTickOverlap:!0,hideLegend:g,useUTC:!1}):(0,o.Cl)((0,o.Cl)({data:M,supportNegativeData:!0,xAxisTitle:w,yAxisTitle:C},h),{roundedTicks:!0,yMinValue:y.startValue,yMaxValue:y.endValue,width:null===(l=t.layout)||void 0===l?void 0:l.width,height:null!==(f=null===(c=t.layout)||void 0===c?void 0:c.height)&&void 0!==f?f:350,hideTickOverlap:!0,enableReflow:!1,hideLegend:g,useUTC:!1})}({data:t,layout:s.layout},n,f,b,d)),y);return n?a.createElement(bp,(0,o.Cl)({},r)):a.createElement(mp,(0,o.Cl)({},r,{lineMode:e?"scatter":"default"}))},w=a.useCallback((function(t){return new Promise((function(n,i){if(!v.current||"function"!=typeof v.current.toImage)return i(Error("Chart cannot be exported as image"));v.current.toImage((0,o.Cl)({background:h.semanticColors.bodyBackground,scale:5},t)).then(n).catch(i)}))}),[h]);switch(a.useImperativeHandle(t.componentRef,(function(){return{exportAsImage:w}}),[w]),u.type){case"donut":return a.createElement(pp,(0,o.Cl)({},function(t,n,i,e){var r,o,a,u,s,l,c,f,h=t.data[0],d=Qv(i,null===(r=null==h?void 0:h.marker)||void 0===r?void 0:r.colors,n,e),v={};null===(o=h.labels)||void 0===o||o.forEach((function(t,i){var r,o=tp(d,i,t,n,e),a="number"==typeof(null===(r=h.values)||void 0===r?void 0:r[i])?h.values[i]:1;v[t]?v[t].data+=a:v[t]={legend:t,data:a,color:o}}));var p=null!==(u=null===(a=t.layout)||void 0===a?void 0:a.width)&&void 0!==u?u:440,g=null!==(l=null===(s=t.layout)||void 0===s?void 0:s.height)&&void 0!==l?l:220,m=!!h.textinfo&&!["value","percent","label+percent"].includes(h.textinfo),y=m?0:80,b=40+(m?0:40),x=h.hole?h.hole*(Math.min(p-y,g-b)/2):0;return{data:{chartTitle:qv(t.layout).chartTitle,chartData:Object.values(v)},hideLegend:!1===(null===(c=t.layout)||void 0===c?void 0:c.showlegend),width:null===(f=t.layout)||void 0===f?void 0:f.width,height:g,innerRadius:x,hideLabels:m,showLabelsInPercent:!h.textinfo||["percent","label+percent"].includes(h.textinfo)}}(l,f,b,d),y));case"horizontalbar":return a.createElement(yp,(0,o.Cl)({},function(t,n,i,e){var r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b,x=hp(t.data,t.layout),w=x.legends,C=x.hideLegend,M=t.data.map((function(t,r){var o,a=Qv(i,null===(o=t.marker)||void 0===o?void 0:o.color,n,e),u=w[r],s=tp(a,r,u,n,e);return t.y.map((function(n,i){return{x:t.x[i],y:n,legend:u,color:s}}))})).reverse().flat().reverse(),k=null!==(o=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==o?o:450,S=k-(null!==(s=null===(u=null===(a=t.layout)||void 0===a?void 0:a.margin)||void 0===u?void 0:u.l)&&void 0!==s?s:0)-(null!==(f=null===(c=null===(l=t.layout)||void 0===l?void 0:l.margin)||void 0===c?void 0:c.pad)&&void 0!==f?f:0),A=t.data.reduce((function(t,n){var i;return t+((null===(i=n.y)||void 0===i?void 0:i.length)||0)}),0),L=S/(A*(1+1/(1+.01*A))),V=qv(t.layout);return{data:M,chartTitle:V.chartTitle,xAxisTitle:V.xAxisTitle,yAxisTitle:V.yAxisTitle,secondaryYAxistitle:"string"==typeof(null===(d=null===(h=t.layout)||void 0===h?void 0:h.yaxis2)||void 0===d?void 0:d.title)?null===(p=null===(v=t.layout)||void 0===v?void 0:v.yaxis2)||void 0===p?void 0:p.title:(null===(y=null===(m=null===(g=t.layout)||void 0===g?void 0:g.yaxis2)||void 0===m?void 0:m.title)||void 0===y?void 0:y.text)||"",barHeight:L,showYAxisLables:!0,height:k,width:null===(b=t.layout)||void 0===b?void 0:b.width,hideTickOverlap:!0,hideLegend:C,noOfCharsToTruncate:20,showYAxisLablesTooltip:!0}}(l,f,b,d),y));case"groupedverticalbar":return a.createElement(Mp,(0,o.Cl)({},function(t,n,i,e){var r,a,u,s={},l=Jv(t.data,t.layout,0,0),c=hp(t.data,t.layout),f=c.legends,h=c.hideLegend;t.data.forEach((function(t,r){var o,a,u=Qv(i,null===(o=t.marker)||void 0===o?void 0:o.color,n,e);null===(a=t.x)||void 0===a||a.forEach((function(i,o){var a,l;if(s[i]||(s[i]={name:i.toString(),series:[]}),"bar"===t.type){var c=f[r],h=tp(u,r,c,n,e);s[i].series.push({key:c,data:null!==(l=null===(a=t.y)||void 0===a?void 0:a[o])&&void 0!==l?l:0,xAxisCalloutData:i,color:h,legend:c,useSecondaryYScale:Kv(t)})}}))}));var d=qv(t.layout),v=d.chartTitle,p=d.xAxisTitle,g=d.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(s),width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,barwidth:"auto",chartTitle:v,xAxisTitle:p,yAxisTitle:g,mode:"plotly"},l),{hideTickOverlap:!0,hideLegend:h})}(l,f,b,d),y));case"verticalstackedbar":return a.createElement(gp,(0,o.Cl)({},np(l,f,b,d),y));case"heatmap":return a.createElement(xp,(0,o.Cl)({},function(t){var n,i,e,r,o,a,u,s,l,c,f,h,d=t.data[0],v=[],p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if("histogram2d"===d.type){var m=ep(d.x),y=ep(d.y),b=up(d.x,null===(n=d.xbins)||void 0===n?void 0:n.start,null===(i=d.xbins)||void 0===i?void 0:i.end,null===(e=d.xbins)||void 0===e?void 0:e.size),x=up(d.y,null===(r=d.ybins)||void 0===r?void 0:r.start,null===(o=d.ybins)||void 0===o?void 0:o.end,null===(a=d.ybins)||void 0===a?void 0:a.size),w=x.map((function(){return b.map((function(){return[]}))})),C=0;null===(u=d.x)||void 0===u||u.forEach((function(t,n){var i,e,r,o=rp(b,t,m),a=rp(x,null===(i=d.y)||void 0===i?void 0:i[n],y);-1!==o&&-1!==a&&w[a][o].push(null!==(r=null===(e=d.z)||void 0===e?void 0:e[n])&&void 0!==r?r:1)}));var M=w.map((function(t){return t.map((function(t){var n=sp(d.histfunc,t);return C+=n,n}))}));b.forEach((function(t,n){x.forEach((function(i,e){var r=lp(d.histnorm,M[e][n],C,m?t.length:op(t),y?i.length:op(i));v.push({x:m?t.join(", "):ap(t),y:y?i.join(", "):ap(i),value:r,rectText:r}),"number"==typeof r&&(p=Math.min(p,r),g=Math.max(g,r))}))}))}else null===(s=d.x)||void 0===s||s.forEach((function(n,i){var e;null===(e=d.y)||void 0===e||e.forEach((function(e,r){var o,a,u,s,l,c,f=null===(a=null===(o=d.z)||void 0===o?void 0:o[r])||void 0===a?void 0:a[i];v.push({x:"date"===(null===(s=null===(u=t.layout)||void 0===u?void 0:u.xaxis)||void 0===s?void 0:s.type)||null!=n?n:0,y:(null===(c=null===(l=t.layout)||void 0===l?void 0:l.yaxis)||void 0===c||c.type,e),value:f,rectText:f}),"number"==typeof f&&(p=Math.min(p,f),g=Math.max(g,f))}))}));var k={legend:null!==(l=d.name)&&void 0!==l?l:"",data:v,value:0},S=[p,(g+p)/2,g],A=[Af(bf.color1),Af(bf.color2),Af(bf.color3)],L=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[0]*(g-p)+p})):S,V=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[1]})):A,D=qv(t.layout);return{data:[k],domainValuesForColorScale:L,rangeValuesForColorScale:V,hideLegend:!0,showYAxisLables:!0,chartTitle:D.chartTitle,xAxisTitle:D.xAxisTitle,yAxisTitle:D.yAxisTitle,sortOrder:"none",width:null===(c=t.layout)||void 0===c?void 0:c.width,height:null!==(h=null===(f=t.layout)||void 0===f?void 0:f.height)&&void 0!==h?h:350,hideTickOverlap:!0,noOfCharsToTruncate:20,showYAxisLablesTooltip:!0}}(l),y,{legendProps:{}}));case"sankey":return a.createElement(wp,(0,o.Cl)({},function(t,n,i){var e,r,a,u,s,l,c,f,h=t.data[0],d=h.link,v=h.node,p=(null!==(e=null==d?void 0:d.value)&&void 0!==e?e:[]).map((function(t,n){return{value:t,source:null==d?void 0:d.source[n],target:null==d?void 0:d.target[n]}})).filter((function(t){return t.source>=0&&t.target>=0&&t.source!==t.target})),g={nodes:null===(r=v.label)||void 0===r?void 0:r.map((function(t,e){return{nodeId:e,name:t,color:Zv(t,n,i)}})),links:p.map((function(t,n){return(0,o.Cl)({},t)}))},m={root:(0,o.Cl)({},(null===(u=null===(a=t.layout)||void 0===a?void 0:a.font)||void 0===u?void 0:u.size)?{fontSize:null===(s=t.layout.font)||void 0===s?void 0:s.size}:{})};return{data:{chartTitle:qv(t.layout).chartTitle,SankeyChartData:g},width:null===(l=t.layout)||void 0===l?void 0:l.width,height:null!==(f=null===(c=t.layout)||void 0===c?void 0:c.height)&&void 0!==f?f:468,styles:m,enableReflow:!0}}(l,f,d),y));case"gauge":return a.createElement(Cp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,S,A,L,V,D,N,T,O,E,F,B,P=t.data[0],_=(null===(r=null===(e=P.gauge)||void 0===e?void 0:e.steps)||void 0===r?void 0:r.length)?P.gauge.steps.map((function(t,e){var r,o,a=t.name||"Segment ".concat(e+1),u=Zv(a,n,i);return{legend:a,size:(null===(r=t.range)||void 0===r?void 0:r[1])-(null===(o=t.range)||void 0===o?void 0:o[0]),color:u}})):[{legend:"Current",size:null!==(o=P.value)&&void 0!==o?o:0-(null!==(l=null===(s=null===(u=null===(a=P.gauge)||void 0===a?void 0:a.axis)||void 0===u?void 0:u.range)||void 0===s?void 0:s[0])&&void 0!==l?l:0),color:Zv("Current",n,i)},{legend:"Target",size:(null!==(d=null===(h=null===(f=null===(c=P.gauge)||void 0===c?void 0:c.axis)||void 0===f?void 0:f.range)||void 0===h?void 0:h[1])&&void 0!==d?d:100)-(null!==(v=P.value)&&void 0!==v?v:0),color:bf.disabled}];if(null===(p=P.delta)||void 0===p?void 0:p.reference){var H=P.value-P.delta.reference;H>=0?(F="▲ ".concat(H),B=Af(bf.success,i)):(F="▼ ".concat(Math.abs(H)),B=Af(bf.error,i))}var I={sublabel:{fill:B}},W=qv(t.layout).chartTitle;return{segments:_,chartValue:null!==(g=P.value)&&void 0!==g?g:0,chartTitle:W,sublabel:F,minValue:"number"==typeof(null===(b=null===(y=null===(m=P.gauge)||void 0===m?void 0:m.axis)||void 0===y?void 0:y.range)||void 0===b?void 0:b[0])?null===(C=null===(w=null===(x=P.gauge)||void 0===x?void 0:x.axis)||void 0===w?void 0:w.range)||void 0===C?void 0:C[0]:void 0,maxValue:"number"==typeof(null===(S=null===(k=null===(M=P.gauge)||void 0===M?void 0:M.axis)||void 0===k?void 0:k.range)||void 0===S?void 0:S[1])?null===(V=null===(L=null===(A=P.gauge)||void 0===A?void 0:A.axis)||void 0===L?void 0:L.range)||void 0===V?void 0:V[1]:void 0,chartValueFormat:function(){var t,n;return null!==(n=null===(t=P.value)||void 0===t?void 0:t.toString())&&void 0!==n?n:""},width:null===(D=t.layout)||void 0===D?void 0:D.width,height:null!==(T=null===(N=t.layout)||void 0===N?void 0:N.height)&&void 0!==T?T:220,styles:I,variant:(null===(E=null===(O=P.gauge)||void 0===O?void 0:O.steps)||void 0===E?void 0:E.length)?ov.MultipleSegments:ov.SingleSegment}}(l,f,d),y));case"verticalbar":return a.createElement(kp,(0,o.Cl)({},function(t,n,i,e){var r,a,u,s=[],l=hp(t.data,t.layout),c=l.legends,f=l.hideLegend;t.data.forEach((function(t,r){var a,u,l,f;if(t.x){var h=Qv(i,null===(a=t.marker)||void 0===a?void 0:a.color,n,e),d=ep(t.x),v=up(t.x,null===(u=t.xbins)||void 0===u?void 0:u.start,null===(l=t.xbins)||void 0===l?void 0:l.end,null===(f=t.xbins)||void 0===f?void 0:f.size),p=v.map((function(){return[]})),g=0;t.x.forEach((function(n,i){var e,r,o=rp(v,n,d);-1!==o&&p[o].push(null!==(r=null===(e=t.y)||void 0===e?void 0:e[i])&&void 0!==r?r:1)}));var m=p.map((function(n){var i=sp(t.histfunc,n);return g+=i,i}));v.forEach((function(i,a){var u=c[r],l=tp(h,r,u,n,e),f=lp(t.histnorm,m[a],g,d?i.length:op(i));s.push((0,o.Cl)({x:d?i.join(", "):ap(i),y:f,legend:u,color:l},d?{}:{xAxisCalloutData:"[".concat(i.x0," - ").concat(i.x1,")")}))}))}}));var h=qv(t.layout),d=h.chartTitle,v=h.xAxisTitle,p=h.yAxisTitle;return{data:s,width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,supportNegativeData:!0,chartTitle:d,xAxisTitle:v,yAxisTitle:p,mode:"histogram",hideTickOverlap:!0,maxBarWidth:50,hideLegend:f}}(l,f,b,d),y));case"area":case"line":case"fallback":case"scatterpolar":if("scatterpolar"===u.type){var C=function(t){for(var n=(0,o.Cl)({},t),i=0;i<t.data.length;i++){var e=t.data[i];e.x=[],e.y=[];for(var r=0;r<e.r.length;r++){var a=e.theta[r]*Math.PI/180,u=e.r[r];e.x[r]=u*Math.cos(a),e.y[r]=u*Math.sin(a)}n.data[i]=e}return n}(l);l.data=C.data}return function(t){void 0===t&&(t=!1);var n=l.data[0].x,i=Tv(n),e=Ov(n),r=Nv(n,Gv),u=Ev(n);if((i||e)&&!u)return x(l.data,t);if(r){var s=l.data.map((function(t){return(0,o.Cl)((0,o.Cl)({},t),{x:Uv(t.x)})}));return x(s,t)}if(t)throw new Error("Fallback to VerticalStackedBarChart is not allowed for Area Charts.");return a.createElement(gp,(0,o.Cl)({},np(l,f,b,d,!0),y))}(l.data.some((function(t){return"tonexty"===t.fill||"tozeroy"===t.fill||!!t.stackgroup})));default:throw new Error("Unsupported chart type :".concat(null===(e=l.data[0])||void 0===e?void 0:e.type))}}));Sp.displayName="DeclarativeChart",Sp.defaultProps={fluentDataVizColorPalette:"builtin"},(0,i(887).v)("@fluentui/react-charting","0.0.0"),FluentUIReactCharting=e}();
|