@fluentui/react-charting 5.16.39 → 5.16.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +43 -1
- package/CHANGELOG.md +22 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
var FluentUIReactCharting;!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{AreaChart:function(){return Of},CartesianChart:function(){return Xp},ChartHoverCard:function(){return Sd},DataVizPalette:function(){return cf},DonutChart:function(){return Op},GroupedVerticalBarChart:function(){return ug},HeatMapChart:function(){return pg},HorizontalBarChart:function(){return ih},HorizontalBarChartVariant:function(){return _t},HorizontalBarChartWithAxis:function(){return im},Legends:function(){return $h},LineChart:function(){return xf},MultiStackedBarChart:function(){return Jf},MultiStackedBarChartVariant:function(){return zf},NodesComposition:function(){return Kg},PieChart:function(){return Xf},SankeyChart:function(){return Ng},Shape:function(){return Kh},Sparkline:function(){return rm},StackedBarChart:function(){return Gf},Textbox:function(){return af},TreeChart:function(){return tm},TreeTraverse:function(){return Gg},VerticalBarChart:function(){return rg},VerticalStackedBarChart:function(){return ig},getChartHoverCardStyles:function(){return Cd},getColorFromToken:function(){return mf},getNextColor:function(){return gf}});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function i(t,e,n){if(n||2===arguments.length)for(var r,o=0,a=e.length;o<a;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create;var s=React;function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var n={},r={},o=0,a=t;o<a.length;o++){var s=a[o];if(s)for(var c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var u=s.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[c],p=s[c];n[c]=void 0===h?p:i(i([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(t){if(r.hasOwnProperty(t)){var e=r[t];f[t]=function(t){return l.apply(void 0,e.map((function(e){return"function"==typeof e?e(t):e})))}}};for(var d in r)g(d)}return n}function c(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var u=void 0;try{u=window}catch(t){}function d(t){if(c()&&void 0!==u){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:u}}var h="__globalSettings__",p="__callbacks__",f=0,g=function(){function t(){}return t.getValue=function(t,e){var n=m();return void 0===n[t]&&(n[t]="function"==typeof e?e():e),n[t]},t.setValue=function(t,e){var n=m(),r=n[p],o=n[t];if(e!==o){n[t]=e;var a={oldValue:o,value:e,key:t};for(var i in r)r.hasOwnProperty(i)&&r[i](a)}return e},t.addChangeListener=function(t){var e=t.__id__,n=v();e||(e=t.__id__=String(f++)),n[e]=t},t.removeChangeListener=function(t){delete v()[t.__id__]},t}();function m(){var t,e=d()||{};return e[h]||(e[h]=((t={})[p]={},t)),e[h]}function v(){return m()[p]}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function t(){}return t.reset=function(){y.settings={},y.scopedSettings={}},t.applySettings=function(e){y.settings=o(o({},y.settings),e),t._raiseChange()},t.applyScopedSettings=function(e,n){y.scopedSettings[e]=o(o({},y.scopedSettings[e]),n),t._raiseChange()},t.getSettings=function(t,e,n){void 0===n&&(n=_);for(var r={},o=e&&n.scopedSettings[e]||{},a=e&&y.scopedSettings[e]||{},i=0,s=t;i<s.length;i++){var l=s[i];r[l]=o[l]||n.settings[l]||a[l]||y.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(t){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(t){x.push(t)},t.unobserve=function(t){x=x.filter((function(e){return e!==t}))},t._raiseChange=function(){t._suppressUpdates||x.forEach((function(t){return t()}))},t}(),C=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var S=["theme","styles"];function E(t,e,n,r,i){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?S:u,h=s.forwardRef((function(r,i){var u,h,p,f,g,m,v=s.useRef(),_=(u=d,h=c,p=s.useState(0)[1],f=function(){return p((function(t){return++t}))},g=s.useContext(C).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||b.observe(f),function(){m||b.unobserve(f)}}),[m]),b.getSettings(u,h,g)),y=_.styles,x=(_.dir,a(_,["styles","dir"])),S=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],L=r.styles;if(!v.current||y!==E[1]||L!==E[2]){var k=function(t){return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=[],o=0,a=e;o<a.length;o++){var i=a[o];i&&r.push("function"==typeof i?i(t):i)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(t,e,y,L)};k.__cachedInputs__=[e,y,L],k.__noStyleOverride__=!y&&!L,v.current=k}return s.createElement(t,o({ref:i},x,S,r,{styles:v.current}))}));h.displayName="Styled".concat(t.displayName||t.name);var p=i?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,k="__stylesheet__",A="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),w={};try{w=window||{}}catch(V){}var D=function(){function t(t,e){var n,r,a,i,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=o({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(n=null==e?void 0:e.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==e?void 0:e.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(a=this._config.classNameCache)&&void 0!==a?a:null==e?void 0:e.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(s=null==e?void 0:e.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==e?void 0:e.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(L=w[k])||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var e=(null==w?void 0:w.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);L=n,w[k]=n}return L},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=o(o({},this._config),t)},t.prototype.onReset=function(t){var e=this;return this._onResetCallbacks.push(t),function(){e._onResetCallbacks=e._onResetCallbacks.filter((function(e){return e!==t}))}},t.prototype.onInsertRule=function(t){var e=this;return this._onInsertRuleCallbacks.push(t),function(){e._onInsertRuleCallbacks=e._onInsertRuleCallbacks.filter((function(e){return e!==t}))}},t.prototype.getClassName=function(t){var e=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(e?e+"-":"").concat(n,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),r)switch(n){case 1:var o=r.sheet;try{o.insertRule(t,o.cssRules.length)}catch(t){}break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(t){return t()}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),A||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style"),n=null;e.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&e.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:t.childNodes[0]}return t.insertBefore(e,t.contains(n)?n:null),this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}();function T(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],r=[],o=D.getInstance();return function t(e){for(var a=0,i=e;a<i.length;a++){var s=i[a];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=o.argsFromClassName(s);l?t(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&r.push(s)}}(t),{classes:n,objects:r}}var M,P={},F={"user-select":1};function N(t,e){var n=function(){var t;if(!M){var e="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==n?void 0:n.userAgent)||void 0===t?void 0:t.toLowerCase();M=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return M}(),r=t[e];if(F[r]){var o=t[e+1];F[r]&&(n.isWebkit&&t.push("-webkit-"+r,o),n.isMoz&&t.push("-moz-"+r,o),n.isMs&&t.push("-ms-"+r,o),n.isOpera&&t.push("-o-"+r,o))}}var V,I=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function O(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var o=I.indexOf(n)>-1,a=n.indexOf("--")>-1,i=o||a?"":"px";t[e+1]="".concat(r).concat(i)}}var H="left",B="right",R="@noflip",W=((V={})[H]=B,V[B]=H,V),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Y(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var o=e[n+1];if("string"==typeof o&&o.indexOf(R)>=0)e[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(H)>=0)e[n]=r.replace(H,B);else if(r.indexOf(B)>=0)e[n]=r.replace(B,H);else if(String(o).indexOf(H)>=0)e[n+1]=o.replace(H,B);else if(String(o).indexOf(B)>=0)e[n+1]=o.replace(B,H);else if(W[r])e[n]=W[r];else if(z[o])e[n+1]=z[o];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return"".concat(e[0]," ").concat(e[3]," ").concat(e[2]," ").concat(e[1])}return t}(o);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}var U,q="displayName",X=/\:global\((.+?)\)/g;function j(t,e){return t.indexOf(":global(")>=0?t.replace(X,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function K(t,e,n,r){void 0===e&&(e={__order:[]}),0===n.indexOf("@")?G([r],e,n=n+"{"+t):n.indexOf(",")>-1?function(t){if(!X.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],o=e[2];return t.slice(0,n)+o+t.slice(r)}),t)}(n).split(",").map((function(t){return t.trim()})).forEach((function(n){return G([r],e,j(n,t))})):G([r],e,j(n,t))}function G(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=D.getInstance(),o=e[n];o||(o={},e[n]=o,e.__order.push(n));for(var a=0,i=t;a<i.length;a++){var s=i[a];if("string"==typeof s){var l=r.argsFromClassName(s);l&&G(l,e,n)}else if(Array.isArray(s))G(s,e,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&K(n,e,h,d[h])}else"object"==typeof u?null!==u&&K(n,e,c,u):void 0!==u&&("margin"===c||"padding"===c?Z(o,c,u):o[c]=u)}}return e}function Z(t,e,n){var r="string"==typeof n?function(t){for(var e=[],n=0,r=0,o=0;o<t.length;o++)switch(t[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&e.push(t.substring(n,o)),n=o+1)}return n<t.length&&e.push(t.substring(n)),e}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(t){return t+" !important"}))),t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function $(t,e){return e<=0?"":1===e?t:t+$(t,e-1)}function Q(t,e){if(!e)return"";var n,r,o,a=[];for(var i in e)e.hasOwnProperty(i)&&i!==q&&void 0!==e[i]&&a.push(i,e[i]);for(var s=0;s<a.length;s+=2)o=void 0,"-"!==(o=(n=a)[r=s]).charAt(0)&&(n[r]=P[o]=P[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),O(a,s),Y(t,a,s),N(a,s);for(s=1;s<a.length;s+=4)a.splice(s,1,":",a[s],";");return a.join("")}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=G(e),o=function(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,o=0,a=e.__order;o<a.length;o++){var i=a[o];n.push(i);var s=e[i];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(t,r);if(o){var a=D.getInstance(),i={className:a.classNameFromKey(o),key:o,args:e};if(!i.className){i.className=a.getClassName(function(t){var e=t&&t["&"];return e?e.displayName:void 0}(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,Q(t,r[u]))}i.rulesToInsert=s}return i}}function tt(t,e){void 0===e&&(e=1);var n=D.getInstance(),r=t.className,o=t.key,a=t.args,i=t.rulesToInsert;if(i){for(var s=0;s<i.length;s+=2){var l=i[s+1];if(l){var c=i[s];c=c.replace(/&/g,$(".".concat(t.className),e));var u="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,a,i)}}function et(t){if(c()&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}function nt(t){var e=null;try{var n=d();e=n?n.sessionStorage.getItem(t):null}catch(t){}return e}function rt(t){U!==t&&(U=t)}function ot(){return void 0===U&&(U="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),U}function at(){return{rtl:ot()}}U=ot();var it,st="isRTL";function lt(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===it){var e=nt(st);null!==e&&function(t,e){void 0===e&&(e=!1);var n=et();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr"),e&&function(t,e){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem(t,e)}catch(t){}}(st,t?"1":"0"),rt(it=t)}(it="1"===e);var n=et();void 0===it&&n&&rt(it="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!it}var ct=0,ut=D.getInstance();ut&&ut.onReset&&ut.onReset((function(){return ct++}));var dt="__retval__";function ht(t){void 0===t&&(t={});var e=new Map,n=0,r=0,o=ct;return function(a,i){var s;if(void 0===i&&(i={}),t.useStaticStyles&&"function"==typeof a&&a.__noStyleOverride__)return a(i);r++;var c=e,u=i.theme,h=u&&void 0!==u.rtl?u.rtl:lt(),p=t.disableCaching;if(o!==ct&&(o=ct,e=new Map,n=0),t.disableCaching||(c=ft(e,a),c=ft(c,i)),!p&&c[dt]||(c[dt]=void 0===a?{}:function(t,e){var n={subComponentStyles:{}};if(!t[0]&&t.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,t),o=[];for(var a in r)if(r.hasOwnProperty(a)){if("subComponentStyles"===a){n.subComponentStyles=r.subComponentStyles||{};continue}var i=T(r[a]),s=i.classes,c=i.objects;(null==c?void 0:c.length)?(h=J(e||{},{displayName:a},c))&&(o.push(h),n[a]=s.concat([h.className]).join(" ")):n[a]=s.join(" ")}for(var u=0,d=o;u<d.length;u++){var h;(h=d[u])&&tt(h,null==e?void 0:e.specificityMultiplier)}return n}(["function"==typeof a?a(i):a],{rtl:!!h,specificityMultiplier:t.useStaticStyles?5:void 0}),p||n++),n>(t.cacheSize||50)){var f=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),e.clear(),n=0,t.disableCaching=!0}return c[dt]}}function pt(t,e){return e=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(e),t.has(e)||t.set(e,new Map),t.get(e)}function ft(t,e){if("function"==typeof e)if(e.__cachedInputs__)for(var n=0,r=e.__cachedInputs__;n<r.length;n++)t=pt(t,r[n]);else t=pt(t,e);else if("object"==typeof e)for(var o in e)e.hasOwnProperty(o)&&(t=pt(t,e[o]));return t}var gt="__currentId__",mt="id__",vt=d()||{};void 0===vt[gt]&&(vt[gt]=0);var _t,yt=!1;function xt(t){if(!yt){var e=D.getInstance();e&&e.onReset&&e.onReset(bt),yt=!0}var n=vt[gt]++;return(void 0===t?mt:t)+n}function bt(t){void 0===t&&(t=0),vt[gt]=t}function Ct(t,e,n){void 0===n&&(n=0);for(var r=-1,o=n;t&&o<t.length;o++)if(e(t[o],o)){r=o;break}return r}function St(t,e){var n=Ct(t,e);if(!(n<0))return t[n]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(_t||(_t={}));var Et={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function Lt(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&(n=t)&&n._virtual&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function kt(t,e){return t&&t!==document.body?e(t)?t:kt(Lt(t),e):null}function At(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)if(t===e)r=!0;else for(r=!1;e;){var o=Lt(e);if(o===t){r=!0;break}e=o}else t.contains&&(r=t.contains(e));return r}var wt="data-is-focusable",Dt="data-is-visible",Tt="data-focuszone-id",Mt="data-is-sub-focuszone";function Pt(t,e){var n=Nt(t,t,!0,!1,!1,!0,void 0,void 0,e);return!!n&&(Wt(n),!0)}function Ft(t,e,n,r,o,a,i,s){if(!e||!i&&e===t)return null;var l=Vt(e);if(o&&l&&(a||!Ht(e)&&!Bt(e))){var c=Ft(t,e.lastElementChild,!0,!0,!0,a,i,s);if(c){if(s&&Ot(c,!0)||!s)return c;var u=Ft(t,c.previousElementSibling,!0,!0,!0,a,i,s);if(u)return u;for(var d=c.parentElement;d&&d!==e;){var h=Ft(t,d.previousElementSibling,!0,!0,!0,a,i,s);if(h)return h;d=d.parentElement}}}return n&&l&&Ot(e,s)?e:Ft(t,e.previousElementSibling,!0,!0,!0,a,i,s)||(r?null:Ft(t,e.parentElement,!0,!1,!1,a,i,s))}function Nt(t,e,n,r,o,a,i,s,l){if(!e||e===t&&o&&!i)return null;var c=(l?It:Vt)(e);if(n&&c&&Ot(e,s))return e;if(!o&&c&&(a||!Ht(e)&&!Bt(e))){var u=Nt(t,e.firstElementChild,!0,!0,!1,a,i,s,l);if(u)return u}return e===t?null:Nt(t,e.nextElementSibling,!0,!0,!1,a,i,s,l)||(r?null:Nt(t,e.parentElement,!1,!1,!0,a,i,s,l))}function Vt(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute(Dt);return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function It(t){return!!t&&Vt(t)&&!t.hidden&&"hidden"!==window.getComputedStyle(t).visibility}function Ot(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=t.getAttribute?t.getAttribute(wt):null,a=null!==r&&n>=0,i=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||a);return e?-1!==n&&i:i}function Ht(t){return!!(t&&t.getAttribute&&t.getAttribute(Tt))}function Bt(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(Mt))}var Rt=void 0;function Wt(t){if(t){if(Rt)return void(Rt=t);Rt=t;var e=d(t);e&&e.requestAnimationFrame((function(){Rt&&Rt.focus(),Rt=void 0}))}}function zt(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Yt(t,e){for(var n=o({},e),r=0,a=Object.keys(t);r<a.length;r++){var i=a[r];void 0===n[i]&&(n[i]=t[i])}return n}var Ut,qt,Xt,jt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++)for(var a=o[r],i=0,s=Array.isArray(a)?a:Object.keys(a);i<s.length;i++)n[s[i]]=1;return n},Kt=jt(["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"]),Gt=jt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Zt=jt(Gt,Kt),$t=(jt(Zt,["form"]),jt(Zt,["height","loop","muted","preload","src","width"])),Qt=(jt($t,["poster"]),jt(Zt,["start"]),jt(Zt,["value"]),jt(Zt,["download","href","hrefLang","media","rel","target","type"]),jt(Zt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Jt=(jt(Qt,["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"]),jt(Qt,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),jt(Qt,["form","multiple","required"]),jt(Zt,["selected","value"]),jt(Zt,["cellPadding","cellSpacing"]),jt(Zt,["rowSpan","scope"]),jt(Zt,["colSpan","headers","rowSpan","scope"]),jt(Zt,["span"]),jt(Zt,["span"]),jt(Zt,["acceptCharset","action","encType","encType","method","noValidate","target"]),jt(Zt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),jt(Zt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Zt);function te(t,e,n){for(var r=Array.isArray(e),o={},a=0,i=Object.keys(t);a<i.length;a++){var s=i[a];!(!r&&e[s]||r&&e.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(o[s]=t[s])}return o}function ee(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,o=t;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)n.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)n.push(a.toString());else for(var i in a)a[i]&&n.push(i)}return n.join(" ")}function ne(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return re.apply(this,[null,t].concat(e))}function re(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var o=0,a=n;o<a.length;o++){var i=a[o];if(i)for(var s in i)!i.hasOwnProperty(s)||t&&!t(s)||(e[s]=i[s])}return e}function oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(t,e){var n=T(t instanceof Array?t:[t]),r=n.classes,o=n.objects;return o.length&&r.push(function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=J.apply(void 0,i([t],e,!1));return r?(tt(r,t.specificityMultiplier),r.className):""}(e||{},o)),r.join(" ")}(t,at())}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(Ut||(Ut={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(qt||(qt={})),oe({overflow:"hidden !important"});var ae="data-is-scrollable";function ie(t){for(var e=t,n=et(t);e&&e!==n.body;){if("true"===e.getAttribute(ae))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute(ae)){var r=getComputedStyle(e),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return e}e=e.parentElement}return e&&e!==n.body||(e=d(t)),e}var se,le=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=t,this.right=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function ce(t,e,n){return{targetEdge:t,alignmentEdge:e,isAuto:n}}var ue=((se={})[Et.topLeftEdge]=ce(Ut.top,Ut.left),se[Et.topCenter]=ce(Ut.top),se[Et.topRightEdge]=ce(Ut.top,Ut.right),se[Et.topAutoEdge]=ce(Ut.top,void 0,!0),se[Et.bottomLeftEdge]=ce(Ut.bottom,Ut.left),se[Et.bottomCenter]=ce(Ut.bottom),se[Et.bottomRightEdge]=ce(Ut.bottom,Ut.right),se[Et.bottomAutoEdge]=ce(Ut.bottom,void 0,!0),se[Et.leftTopEdge]=ce(Ut.left,Ut.top),se[Et.leftCenter]=ce(Ut.left),se[Et.leftBottomEdge]=ce(Ut.left,Ut.bottom),se[Et.rightTopEdge]=ce(Ut.right,Ut.top),se[Et.rightCenter]=ce(Ut.right),se[Et.rightBottomEdge]=ce(Ut.right,Ut.bottom),se);function de(t,e){return!(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}function he(t,e){var n=[];return t.top<e.top&&n.push(Ut.top),t.bottom>e.bottom&&n.push(Ut.bottom),t.left<e.left&&n.push(Ut.left),t.right>e.right&&n.push(Ut.right),n}function pe(t,e){return t[Ut[e]]}function fe(t,e,n){return t[Ut[e]]=n,t}function ge(t,e){var n=ke(e);return(pe(t,n.positiveEdge)+pe(t,n.negativeEdge))/2}function me(t,e){return t>0?e:-1*e}function ve(t,e){return me(t,pe(e,t))}function _e(t,e,n){return me(n,pe(t,n)-pe(e,n))}function ye(t,e,n,r){void 0===r&&(r=!0);var o=pe(t,e)-n,a=fe(t,e,n);return r&&(a=fe(t,-1*e,pe(t,-1*e)-o)),a}function xe(t,e,n,r){return void 0===r&&(r=0),ye(t,n,pe(e,n)+me(n,r))}function be(t,e,n){return ve(n,t)>ve(n,e)}function Ce(t,e){for(var n=0,r=0,o=he(t,e);r<o.length;r++){var a=o[r];n+=Math.pow(_e(t,e,a),2)}return n}function Se(t,e,n,r){for(var o=0,a=t;o<a.length;o++){var i=a[o],s=void 0;r&&r===-1*i?(s=ye(e.elementRectangle,i,pe(n,i),!1),e.forcedInBounds=!0):be(s=xe(e.elementRectangle,n,i),n,-1*i)||(s=ye(s,-1*i,pe(n,-1*i),!1),e.forcedInBounds=!0),e.elementRectangle=s}return e}function Ee(t,e,n){var r=ke(e).positiveEdge;return ye(t,r,n-(ge(t,e)-pe(t,r)))}function Le(t,e,n,r,o){void 0===r&&(r=0);var a=new le(t.left,t.right,t.top,t.bottom),i=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return a=o?xe(a,e,s,r):function(t,e,n,r){void 0===r&&(r=0);var o=me(-1*n,r);return ye(t,-1*n,pe(e,n)+o)}(a,e,s,r),a=i?xe(a,e,i):Ee(a,l,ge(e,s))}function ke(t){return t===Ut.top||t===Ut.bottom?{positiveEdge:Ut.left,negativeEdge:Ut.right}:{positiveEdge:Ut.top,negativeEdge:Ut.bottom}}function Ae(t,e,n){return n&&Math.abs(_e(t,n,e))>Math.abs(_e(t,n,-1*e))?-1*e:e}function we(t,e,n,r,o,a,i,s){var l,c={},u=Me(e),d=a?n:-1*n,h=o||ke(n).positiveEdge;return i&&!function(t,e,n){return void 0!==n&&pe(t,e)===pe(n,e)}(t,(l=h,-1*l),r)||(h=Ae(t,h,r)),c[Ut[d]]=_e(t,u,d),c[Ut[h]]=_e(t,u,h),s&&(c[Ut[-1*d]]=_e(t,u,-1*d),c[Ut[-1*h]]=_e(t,u,-1*h)),c}function De(t,e,n){var r=ge(e,t),o=ge(n,t),a=ke(t),i=a.positiveEdge,s=a.negativeEdge;return r<=o?i:s}function Te(t,e,n,r,o,a,i){var s=Le(t,e,r,o,i);return de(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(t,e,n,r,o,a,i){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:t,targetEdge:r.targetEdge,alignmentEdge:s};a||i||(c=function(t,e,n,r,o){void 0===o&&(o=0);var a=[Ut.left,Ut.right,Ut.bottom,Ut.top];lt()&&(a[0]*=-1,a[1]*=-1);for(var i,s=t,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,h=0;h<4;h++){if(be(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=Ce(s,n);(!i||p<i)&&(i=p,u=l,d=c),a.splice(a.indexOf(l),1),a.length>0&&(a.indexOf(-1*l)>-1?l*=-1:(c=l,l=a.slice(-1)[0]),s=Le(t,e,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=Le(t,e,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(t,e,n,r,o));var u=he(c.elementRectangle,n),d=a?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var h=function(t,e,n,r){var o=t.alignmentEdge,a=t.targetEdge,i=-1*o;return{elementRectangle:Le(t.elementRectangle,e,{targetEdge:a,alignmentEdge:i},n,r),targetEdge:a,alignmentEdge:i}}(c,e,o,i);if(de(h.elementRectangle,n))return h;c=Se(he(h.elementRectangle,n),c,n,d)}else c=Se(u,c,n,d);else c=Se(u,c,n,d);return c}(s,e,n,r,o,a,i)}function Me(t){var e=t.getBoundingClientRect();return new le(e.left,e.right,e.top,e.bottom)}function Pe(t,e,n,r){var a=t.gapSpace?t.gapSpace:0,i=function(t,e){var n;if(e){if(e.preventDefault){var r=e;n=new le(r.clientX,r.clientX,r.clientY,r.clientY)}else if(e.getBoundingClientRect)n=Me(e);else{var o=e,a=o.left||o.x,i=o.top||o.y,s=o.right||a,l=o.bottom||i;n=new le(a,s,i,l)}if(!de(n,t))for(var c=0,u=he(n,t);c<u.length;c++){var d=u[c];n[Ut[d]]=t[Ut[d]]}}else n=new le(0,0,0,0);return n}(n,t.target),s=function(t,e,n,r,o){return t.isAuto&&(t.alignmentEdge=De(t.targetEdge,e,n)),t.alignTargetEdge=o,t}(function(t,e,n){if(void 0===t&&(t=Et.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=o({},ue[t]);return lt()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==e?ue[e]:r):r}(t.directionalHint,t.directionalHintForRTL,r),i,n,t.coverTarget,t.alignTargetEdge),l=Te(Me(e),i,n,s,a,t.directionalHintFixed,t.coverTarget);return o(o({},l),{targetRectangle:i})}function Fe(t,e,n,r,a){var i=t.isBeakVisible&&t.beakWidth||0,s=function(t){return Math.sqrt(t*t*2)}(i)/2+(t.gapSpace?t.gapSpace:0),l=t;l.gapSpace=s;var c,u,d,h,p,f,g,m,v,_=t.bounds?(v=t.bounds,new le(v.left,v.right,v.top,v.bottom)):new le(0,window.innerWidth-function(){if(void 0===Xt){var t=document.createElement("div");t.style.setProperty("width","100px"),t.style.setProperty("height","100px"),t.style.setProperty("overflow","scroll"),t.style.setProperty("position","absolute"),t.style.setProperty("top","-9999px"),document.body.appendChild(t),Xt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Xt}(),0,window.innerHeight),y=Pe(l,n,_,r),x=(c=y,u=function(t,e){var n=e.targetRectangle,r=ke(e.targetEdge),o=r.positiveEdge,a=r.negativeEdge,i=ge(n,e.targetEdge),s=new le(t/2,e.elementRectangle.width-t/2,t/2,e.elementRectangle.height-t/2),l=new le(0,t,0,t);return be(l=Ee(l=ye(l,-1*e.targetEdge,-t/2),-1*e.targetEdge,i-ve(o,e.elementRectangle)),s,o)?be(l,s,a)||(l=xe(l,s,a)):l=xe(l,s,o),l}(i,y),d=_,h=-1*c.targetEdge,p=new le(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=Ae(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:ke(h).positiveEdge,d),m=_e(c.elementRectangle,c.targetRectangle,h)>Math.abs(pe(u,h)),f[Ut[h]]=pe(u,h),f[Ut[g]]=_e(u,p,g),{elementPosition:o({},f),closestEdge:De(c.targetEdge,u,p),targetEdge:h,hideBeak:!m});return o(o({},function(t,e,n,r,o){return{elementPosition:we(t.elementRectangle,e,t.targetEdge,n,t.alignmentEdge,r,o,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(y,e,_,t.coverTarget,a)),{beakPosition:x})}var Ne=["TEMPLATE","STYLE","SCRIPT"];function Ve(t){var e=et(t);if(!e)return function(){};for(var n=[];t!==e.body&&t.parentElement;){for(var r=0,o=t.parentElement.children;r<o.length;r++){var a=o[r],i=a.getAttribute("aria-hidden");a!==t&&"true"!==(null==i?void 0:i.toLowerCase())&&-1===Ne.indexOf(a.tagName)&&n.push([a,i])}t=t.parentElement}return n.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var e=t[0],n=t[1];n?e.setAttribute("aria-hidden",n):e.removeAttribute("aria-hidden")}))}(n),n=[]}}var Ie=27,Oe=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,o=d(e);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0),r},t.prototype.clearImmediate=function(t,e){var n=d(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var o,a,i=e||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(e){var n=Date.now(),h=n-c,p=s?i-h:i;return h>=i&&(!e||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=t.apply(r._parent,a)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a=t,d(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var a,i,s=e||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(t){p&&(r.clearTimeout(p),p=null),h=t},g=function(e){f(e),a=t.apply(r._parent,i)},m=function(t){var e=Date.now(),n=!1;t&&(l&&e-d>=s&&(n=!0),d=e);var o=e-d,i=s-o,f=e-h,v=!1;return null!==u&&(f>=u&&p?v=!0:i=Math.min(i,u-f)),o>=s||v||n?g(e):null!==p&&t||!c||(p=r.setTimeout(m,i)),a},v=function(){return!!p},_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i=t,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),a},_.pending=v,_},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,o=d(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=o.requestAnimationFrame?o.requestAnimationFrame(a):o.setTimeout(a,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=d(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function He(){var t=s.useRef();return t.current||(t.current=new Oe),s.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.dispose(),t.current=void 0}}),[]),t.current}function Be(t,e,n,r){var o=s.useRef(n);o.current=n,s.useEffect((function(){var n=t&&"current"in t?t.current:t;if(n)return zt(n,e,(function(t){return o.current(t)}),r)}),[t,e,r])}function Re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.useCallback((function(e){n.current=e;for(var r=0,o=t;r<o.length;r++){var a=o[r];"function"==typeof a?a(e):a&&(a.current=e)}}),i([],t,!0));return n}var We=s.createContext({window:"object"==typeof window?window:void 0}),ze=function(){return s.useContext(We).window};function Ye(t){var e=t.originalElement,n=t.containsFocus;e&&n&&e!==d()&&setTimeout((function(){var t;null===(t=e.focus)||void 0===t||t.call(e)}),0)}var Ue=s.forwardRef((function(t,e){var n=Yt({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),r=s.useRef(),a=Re(r,e);!function(t,e){var n="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&e.current)return Ve(e.current)}),[e,n])}(n,r),function(t,e){var n=t.onRestoreFocus,r=void 0===n?Ye:n,o=s.useRef(),a=s.useRef(!1);s.useEffect((function(){return o.current=et().activeElement,function(t){var e=et(t),n=e&&e.activeElement;return!(!n||!At(t,n))}(e.current)&&(a.current=!0),function(){var t;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(t=et())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Be(e,"focus",s.useCallback((function(){a.current=!0}),[]),!0),Be(e,"blur",s.useCallback((function(t){e.current&&t.relatedTarget&&!e.current.contains(t.relatedTarget)&&(a.current=!1)}),[]),!0)}(n,r);var i=n.role,l=n.className,c=n.ariaLabel,u=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(t,e){var n=He(),r=s.useState(!1),o=r[0],a=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!t.style||!t.style.overflowY){var r=!1;if(e&&e.current&&(null===(n=e.current)||void 0===n?void 0:n.firstElementChild)){var i=e.current.clientHeight,s=e.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(n,r),m=s.useCallback((function(t){t.which===Ie&&f&&(f(t),t.preventDefault(),t.stopPropagation())}),[f]);return Be(ze(),"keydown",m),s.createElement("div",o({ref:a},te(n,Jt),{className:l,role:i,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:o({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function qe(t){var e=D.getInstance(),n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r,"{",Q(at(),t[r]),"}");var o=n.join(""),a=e.classNameFromKey(o);if(a)return a;var i=e.getClassName();return e.insertRule("@keyframes ".concat(i,"{").concat(o,"}"),!0),e.cacheClassName(i,o,[],["keyframes",o]),i}Ue.displayName="Popup";var Xe="cubic-bezier(.1,.9,.2,1)",je="cubic-bezier(.1,.25,.75,.9)",Ke="0.167s",Ge="0.267s",Ze="0.367s",$e="0.467s",Qe=qe({from:{opacity:0},to:{opacity:1}}),Je=qe({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),tn=Pn(-10),en=Pn(-20),nn=Pn(-40),rn=Pn(-400),on=Pn(10),an=Pn(20),sn=Pn(40),ln=Pn(400),cn=Fn(10),un=Fn(20),dn=Fn(-10),hn=Fn(-20),pn=Nn(10),fn=Nn(20),gn=Nn(40),mn=Nn(400),vn=Nn(-10),_n=Nn(-20),yn=Nn(-40),xn=Nn(-400),bn=Vn(-10),Cn=Vn(-20),Sn=Vn(10),En=Vn(20),Ln=qe({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=qe({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=qe({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=qe({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=qe({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=qe({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Mn(t,e,n){return{animationName:t,animationDuration:e,animationTimingFunction:n,animationFillMode:"both"}}function Pn(t){return qe({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(t){return qe({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(t){return qe({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Vn(t){return qe({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var In,On,Hn,Bn,Rn,Wn=function(t){var e={},n=function(n){var r;t.hasOwnProperty(n)&&Object.defineProperty(e,n,{get:function(){return void 0===r&&(r=oe(t[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)n(r);return e}({slideRightIn10:Mn("".concat(Qe,",").concat(tn),Ze,Xe),slideRightIn20:Mn("".concat(Qe,",").concat(en),Ze,Xe),slideRightIn40:Mn("".concat(Qe,",").concat(nn),Ze,Xe),slideRightIn400:Mn("".concat(Qe,",").concat(rn),Ze,Xe),slideLeftIn10:Mn("".concat(Qe,",").concat(on),Ze,Xe),slideLeftIn20:Mn("".concat(Qe,",").concat(an),Ze,Xe),slideLeftIn40:Mn("".concat(Qe,",").concat(sn),Ze,Xe),slideLeftIn400:Mn("".concat(Qe,",").concat(ln),Ze,Xe),slideUpIn10:Mn("".concat(Qe,",").concat(cn),Ze,Xe),slideUpIn20:Mn("".concat(Qe,",").concat(un),Ze,Xe),slideDownIn10:Mn("".concat(Qe,",").concat(dn),Ze,Xe),slideDownIn20:Mn("".concat(Qe,",").concat(hn),Ze,Xe),slideRightOut10:Mn("".concat(Je,",").concat(pn),Ze,Xe),slideRightOut20:Mn("".concat(Je,",").concat(fn),Ze,Xe),slideRightOut40:Mn("".concat(Je,",").concat(gn),Ze,Xe),slideRightOut400:Mn("".concat(Je,",").concat(mn),Ze,Xe),slideLeftOut10:Mn("".concat(Je,",").concat(vn),Ze,Xe),slideLeftOut20:Mn("".concat(Je,",").concat(_n),Ze,Xe),slideLeftOut40:Mn("".concat(Je,",").concat(yn),Ze,Xe),slideLeftOut400:Mn("".concat(Je,",").concat(xn),Ze,Xe),slideUpOut10:Mn("".concat(Je,",").concat(bn),Ze,Xe),slideUpOut20:Mn("".concat(Je,",").concat(Cn),Ze,Xe),slideDownOut10:Mn("".concat(Je,",").concat(Sn),Ze,Xe),slideDownOut20:Mn("".concat(Je,",").concat(En),Ze,Xe),scaleUpIn100:Mn("".concat(Qe,",").concat(Ln),Ze,Xe),scaleDownIn100:Mn("".concat(Qe,",").concat(An),Ze,Xe),scaleUpOut103:Mn("".concat(Je,",").concat(wn),Ke,je),scaleDownOut98:Mn("".concat(Je,",").concat(kn),Ke,je),fadeIn100:Mn(Qe,Ke,je),fadeIn200:Mn(Qe,Ge,je),fadeIn400:Mn(Qe,Ze,je),fadeIn500:Mn(Qe,$e,je),fadeOut100:Mn(Je,Ke,je),fadeOut200:Mn(Je,Ge,je),fadeOut400:Mn(Je,Ze,je),fadeOut500:Mn(Je,$e,je),rotate90deg:Mn(Dn,"0.1s",je),rotateN90deg:Mn(Tn,"0.1s",je)}),zn={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(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)"}(In||(In={})),function(t){t.Arabic="'".concat(In.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(In.Cyrillic,"'"),t.EastEuropean="'".concat(In.EastEuropean,"'"),t.Greek="'".concat(In.Greek,"'"),t.Hebrew="'".concat(In.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(In.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(In.Vietnamese,"'"),t.WestEuropean="'".concat(In.WestEuropean,"'"),t.Armenian="'".concat(In.Armenian,"'"),t.Georgian="'".concat(In.Georgian,"'")}(On||(On={})),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"}(Hn||(Hn={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(Bn||(Bn={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(Rn||(Rn={}));var Yn,Un="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",qn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",Xn="ms-Fabric--isFocusVisible";function jn(t,e,n,r,o,a,i,s){return function(t,e){var n,r;void 0===e&&(e={});var o=e.borderRadius,a=e.inset,i=void 0===a?0:a,s=e.width,l=void 0===s?1:s,c=e.position,u=void 0===c?"relative":c,d=e.highContrastStyle,h=e.borderColor,p=void 0===h?t.palette.white:h,f=e.outlineColor,g=void 0===f?t.palette.neutralSecondary:f,m=e.isFocusedOnly,v=void 0===m||m,_=e.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(Xn," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:i+1,top:i+1,bottom:i+1,right:i+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:Yn.FocusStyle,borderRadius:o,selectors:(r={},r[Un]=d,r)},n)}}(t,"number"!=typeof e&&e?e:{inset:e,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:i,borderRadius:s})}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(Yn||(Yn={}));var Kn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Gn=!1,Zn=0,$n={empty:!0},Qn={},Jn="undefined"==typeof WeakMap?null:WeakMap;function tr(){Zn++}function er(t,e,n){if(void 0===e&&(e=100),void 0===n&&(n=!1),!Jn)return t;if(!Gn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(tr),Gn=!0}var o,a=0,i=Zn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l,c=o;(void 0===o||i!==Zn||e>0&&a>e)&&(o=rr(),a=0,i=Zn),c=o;for(var u=0;u<r.length;u++){var d=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(Qn[l]||(Qn[l]={val:l}),Qn[l]):$n;c.map.has(d)||c.map.set(d,rr()),c=c.map.get(d)}return c.hasOwnProperty("value")||(c.value=t.apply(void 0,r),a++),!n||null!==c.value&&void 0!==c.value||(c.value=t.apply(void 0,r)),c.value}}function nr(t){if(!Jn)return t;var e=new Jn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return t(n);if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}}function rr(){return{map:Jn?new Jn:null}}var or=er((function(t,e){var n=D.getInstance();return e?Object.keys(t).reduce((function(e,r){return e[r]=n.getClassName(t[r]),e}),{}):t}));function ar(t,e,n){return or(t,void 0!==n?n:e.disableGlobalClassNames)}var ir,sr,lr=function(){return lr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},lr.apply(this,arguments)},cr="undefined"==typeof window?t.g:window,ur=cr&&cr.CSPSettings&&cr.CSPSettings.nonce,dr=((sr=cr.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(sr=lr({},sr,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),sr.registeredThemableStyles||(sr=lr({},sr,{registeredThemableStyles:[]})),cr.__themeState__=sr,sr);function hr(t){dr.theme=t,function(){if(dr.theme){for(var t=[],e=0,n=dr.registeredThemableStyles;e<n.length;e++){var r=n[e];t.push(r.themableStyle)}t.length>0&&(void 0===(a=1)&&(a=3),3!==a&&2!==a||(pr(dr.registeredStyles),dr.registeredStyles=[]),3!==a&&1!==a||(pr(dr.registeredThemableStyles),dr.registeredThemableStyles=[]),o=[].concat.apply([],t),dr.loadStyles?dr.loadStyles(fr(o).styleString,o):function(t){if("undefined"!=typeof document){var e=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=fr(t),o=r.styleString,a=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ur&&n.setAttribute("nonce",ur),n.appendChild(document.createTextNode(o)),dr.perf.count++,e.appendChild(n);var i=document.createEvent("HTMLEvents");i.initEvent("styleinsert",!0,!1),i.args={newStyle:n},document.dispatchEvent(i);var s={styleElement:n,themableStyle:t};a?dr.registeredThemableStyles.push(s):dr.registeredStyles.push(s)}}(o))}var o,a}()}function pr(t){t.forEach((function(t){var e=t&&t.styleElement;e&&e.parentElement&&e.parentElement.removeChild(e)}))}function fr(t){var e=dr.theme,n=!1;return{styleString:(t||[]).map((function(t){var r=t.theme;if(r){n=!0;var o=e?e[r]:void 0,a=t.defaultValue||"inherit";return e&&!o&&console&&!(r in e)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+a+'".'),o||a}return t.rawString})).join(""),themable:n}}!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)"}(ir||(ir={}));var gr,mr={elevation4:ir.depth4,elevation8:ir.depth8,elevation16:ir.depth16,elevation64:ir.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},vr="'Segoe UI', '".concat(In.WestEuropean,"'"),_r={ar:On.Arabic,bg:On.Cyrillic,cs:On.EastEuropean,el:On.Greek,et:On.EastEuropean,he:On.Hebrew,hi:On.Hindi,hr:On.EastEuropean,hu:On.EastEuropean,ja:On.Japanese,kk:On.EastEuropean,ko:On.Korean,lt:On.EastEuropean,lv:On.EastEuropean,pl:On.EastEuropean,ru:On.Cyrillic,sk:On.EastEuropean,"sr-latn":On.EastEuropean,th:On.Thai,tr:On.EastEuropean,uk:On.Cyrillic,vi:On.Vietnamese,"zh-hans":On.ChineseSimplified,"zh-hant":On.ChineseTraditional,hy:On.Armenian,ka:On.Georgian};function yr(t,e,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:e}}var xr,br,Cr="language",Sr=(xr=function(t){for(var e in _r)if(_r.hasOwnProperty(e)&&t&&0===e.indexOf(t))return _r[e];return vr}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===gr){var e=et(),n="localStorage"===t?function(t){var e=null;try{var n=d();e=n?n.localStorage.getItem(t):null}catch(t){}return e}(Cr):"sessionStorage"===t?nt(Cr):void 0;n&&(gr=n),void 0===gr&&e&&(gr=e.documentElement.getAttribute("lang")),void 0===gr&&(gr="en")}return gr}()),br="".concat(xr,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:yr(Hn.mini,Bn.regular,br),xSmall:yr(Hn.xSmall,Bn.regular,br),small:yr(Hn.small,Bn.regular,br),smallPlus:yr(Hn.smallPlus,Bn.regular,br),medium:yr(Hn.medium,Bn.regular,br),mediumPlus:yr(Hn.mediumPlus,Bn.regular,br),large:yr(Hn.large,Bn.regular,br),xLarge:yr(Hn.xLarge,Bn.semibold,br),xLargePlus:yr(Hn.xLargePlus,Bn.semibold,br),xxLarge:yr(Hn.xxLarge,Bn.semibold,br),xxLargePlus:yr(Hn.xxLargePlus,Bn.semibold,br),superLarge:yr(Hn.superLarge,Bn.semibold,br),mega:yr(Hn.mega,Bn.semibold,br)});function Er(t,e,n,r){!function(t){var e=D.getInstance(),n=Q(at(),t);if(!e.classNameFromKey(n)){var r=e.getClassName();e.insertRule("@font-face{".concat(n,"}"),!0),e.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(e,".woff2') format('woff2'),")+"url('".concat(e,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Lr(t,e,n,r,o){void 0===r&&(r="segoeui");var a="".concat(t,"/").concat(n,"/").concat(r);Er(e,a+"-light",Bn.light,o&&o+" Light"),Er(e,a+"-semilight",Bn.semilight,o&&o+" SemiLight"),Er(e,a+"-regular",Bn.regular,o),Er(e,a+"-semibold",Bn.semibold,o&&o+" SemiBold"),Er(e,a+"-bold",Bn.bold,o&&o+" Bold")}function kr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,o=e;r<o.length;r++)Ar(t||{},o[r]);return t}function Ar(t,e,n){for(var r in void 0===n&&(n=[]),n.push(e),e)if(e.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=e[r];if("object"!=typeof o||null===o||Array.isArray(o))t[r]=o;else{var a=n.indexOf(o)>-1;t[r]=a?o:Ar(t[r]||{},o,n)}}return n.pop(),t}function wr(t,e,n,r,a){return void 0===a&&(a=!1),function(t,e){var n="";return!0===e&&(n=" /* @deprecated */"),t.listTextColor=t.listText+n,t.menuItemBackgroundChecked+=n,t.warningHighlight+=n,t.warningText=t.messageText+n,t.successText+=n,t}(Dr(t,e,o({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),a)}function Dr(t,e,n,r,a){void 0===a&&(a=!1);var i={},s=t||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,S=s.neutralTertiary,E=s.neutralTertiaryAlt,L=s.neutralLighterAlt,k=s.accent;return l&&(i.bodyBackground=l,i.bodyFrameBackground=l,i.accentButtonText=l,i.buttonBackground=l,i.primaryButtonText=l,i.primaryButtonTextHovered=l,i.primaryButtonTextPressed=l,i.inputBackground=l,i.inputForegroundChecked=l,i.listBackground=l,i.menuBackground=l,i.cardStandoutBackground=l),c&&(i.bodyTextChecked=c,i.buttonTextCheckedHovered=c),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),h&&(i.linkHovered=h),p&&(i.primaryButtonBackgroundHovered=p),f&&(i.inputPlaceholderBackgroundChecked=f),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),m&&(i.bodyBackgroundHovered=m,i.buttonBackgroundHovered=m,i.buttonBackgroundDisabled=m,i.buttonBorderDisabled=m,i.primaryButtonBackgroundDisabled=m,i.disabledBackground=m,i.listItemBackgroundHovered=m,i.listHeaderBackgroundHovered=m,i.menuItemBackgroundHovered=m),_&&(i.primaryButtonTextDisabled=_,i.disabledSubtext=_),y&&(i.listItemBackgroundCheckedHovered=y),S&&(i.disabledBodyText=S,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,i.buttonTextDisabled=S,i.inputIconDisabled=S,i.disabledText=S),x&&(i.bodyText=x,i.actionLink=x,i.buttonText=x,i.inputBorderHovered=x,i.inputText=x,i.listText=x,i.menuItemText=x),L&&(i.bodyStandoutBackground=L,i.defaultStateBackground=L),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),C&&(i.buttonBorder=C),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),k&&(i.accentButtonBackground=k),(null==e?void 0:e.elevation4)&&(i.cardShadow=e.elevation4),!r&&(null==e?void 0:e.elevation8)?i.cardShadowHovered=e.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),o(o({},i),n)}!function(t){if(t){var e="".concat(t,"/fonts");Lr(e,In.Thai,"leelawadeeui-thai","leelawadeeui"),Lr(e,In.Arabic,"segoeui-arabic"),Lr(e,In.Cyrillic,"segoeui-cyrillic"),Lr(e,In.EastEuropean,"segoeui-easteuropean"),Lr(e,In.Greek,"segoeui-greek"),Lr(e,In.Hebrew,"segoeui-hebrew"),Lr(e,In.Vietnamese,"segoeui-vietnamese"),Lr(e,In.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Lr(e,On.Selawik,"selawik","selawik"),Lr(e,In.Armenian,"segoeui-armenian"),Lr(e,In.Georgian,"segoeui-georgian"),Er("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-semilight"),Bn.light),Er("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-bold"),Bn.semibold)}}(function(){var t,e,n=null===(t=d())||void 0===t?void 0:t.FabricConfig;return null!==(e=null==n?void 0:n.fontBaseUrl)&&void 0!==e?e:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var Tr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Mr(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=!!t.isInverted;return function(t,e){var n,r,o;void 0===e&&(e={});var a=kr({},t,e,{semanticColors:Dr(e.palette,e.effects,e.semanticColors,void 0===e.isInverted?t.isInverted:e.isInverted)});if((null===(n=e.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=e.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=e.palette.themePrimary),e.defaultFontStyle)for(var i=0,s=Object.keys(a.fonts);i<s.length;i++){var l=s[i];a.fonts[l]=kr(a.fonts[l],e.defaultFontStyle,null===(o=null==e?void 0:e.fonts)||void 0===o?void 0:o[l])}return a}({palette:zn,effects:mr,fonts:Sr,spacing:Tr,isInverted:n,disableGlobalClassNames:!1,semanticColors:wr(zn,mr,void 0,n,e),rtl:void 0},t)}var Pr=Mr({}),Fr=[],Nr="theme";function Vr(){var t,e,n,r=d();(null===(e=null==r?void 0:r.FabricConfig)||void 0===e?void 0:e.legacyTheme)?function(t,e){var n;void 0===e&&(e=!1),Pr=Mr(t,e),hr(o(o(o(o({},Pr.palette),Pr.semanticColors),Pr.effects),function(t){for(var e={},n=0,r=Object.keys(t.fonts);n<r.length;n++)for(var o=r[n],a=t.fonts[o],i=0,s=Object.keys(a);i<s.length;i++){var l=s[i],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=a[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),e[c]=u}return e}(Pr))),b.applySettings(((n={})[Nr]=Pr,n)),Fr.forEach((function(t){try{t(Pr)}catch(t){}}))}(r.FabricConfig.legacyTheme):b.getSettings([Nr]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Pr=Mr(r.FabricConfig.theme)),b.applySettings(((t={})[Nr]=Pr,t)))}Vr();var Ir,Or={},Hr=void 0;try{Hr=window}catch(t){}function Br(t,e){if(void 0!==Hr){var n=Hr.__packages__=Hr.__packages__||{};n[t]&&Or[t]||(Or[t]=e,(n[t]=n[t]||[]).push(e))}}function Rr(t){var e=s.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}Br("@fluentui/set-version","6.0.0"),Br("@fluentui/style-utilities","8.9.14"),Vr();var Wr=((Ir={})[Ut.top]=Wn.slideUpIn10,Ir[Ut.bottom]=Wn.slideDownIn10,Ir[Ut.left]=Wn.slideLeftIn10,Ir[Ut.right]=Wn.slideRightIn10,Ir),zr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Yr=["role","aria-roledescription"],Ur={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Et.bottomAutoEdge},qr=ht({disableCaching:!0});function Xr(t,e,n,r,a){var i=s.useState(),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(),h=He(),p=t.hidden,f=t.target,g=t.finalHeight,m=t.calloutMaxHeight,v=t.onPositioned,_=t.directionalHint;return s.useEffect((function(){if(!p){var i=h.requestAnimationFrame((function(){var i,s,h,p;if(e.current&&n){var _=o(o({},t),{target:r.current,bounds:a()}),y=n.cloneNode(!0);y.style.maxHeight=m?"".concat(m):"",y.style.visibility="hidden",null===(i=n.parentElement)||void 0===i||i.appendChild(y);var x=d.current===f?l:void 0,b=g?function(t,e,n,r){return function(t,e,n,r){return Fe(t,e,n,r,!0)}(t,e,n,r)}(_,e.current,y,x):function(t,e,n,r){return Fe(t,e,n,r)}(_,e.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Gr((h=l).elementPosition,p.elementPosition)||!Gr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&u.current<5?(u.current++,c(b)):u.current>0&&(u.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(i),d.current=void 0}}c(void 0),u.current=0}),[p,_,h,n,m,e,r,g,a,v,l,t,f]),l}var jr=s.memo(s.forwardRef((function(t,e){var n=Yt(Ur,t),r=n.styles,a=n.style,i=n.ariaLabel,l=n.ariaDescribedBy,c=n.ariaLabelledBy,u=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,L=void 0===E||E,k=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],F=M[1],N=s.useCallback((function(t){F(t)}),[]),V=Re(T,e),I=function(t,e){var n=s.useRef(),r=s.useRef(null),o=ze();if(!t||t!==n.current||"string"==typeof t){if(t)if("string"==typeof t){var a=et(null==e?void 0:e.current);r.current=a?a.querySelector(t):null}else r.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;n.current=t}return[r,o]}(n.target,{current:P}),O=I[0],H=I[1],B=function(t,e,n){var r=t.bounds,o=t.minPagePadding,a=void 0===o?Ur.minPagePadding:o,i=t.target,l=s.useState(!1),c=l[0],u=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||c){var t="function"==typeof r?n?r(i,n):void 0:r;!t&&n&&(t=function(t,e){return function(t,e){var n=void 0;if(e.getWindowSegments&&(n=e.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight};var r=0,o=0;if(null!==t&&t.getBoundingClientRect){var a=t.getBoundingClientRect();r=(a.left+a.right)/2,o=(a.top+a.bottom)/2}else null!==t&&(r=t.left||t.x,o=t.top||t.y);for(var i={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(i={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return i}(t,e)}(e.current,n),t={top:t.top+a,left:t.left+a,right:t.right-a,bottom:t.bottom-a,width:t.width-2*a,height:t.height-2*a}),d.current=t,c&&u(!1)}return d.current}),[r,a,i,e,n,c]),p=He();return Be(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(n,O,H),R=Xr(n,T,P,O,B),W=function(t,e,n){var r,o=t.calloutMaxHeight,a=t.finalHeight,i=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,u=s.useState(),d=u[0],h=u[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var t,n,r=null!==(t=e())&&void 0!==t?t:{},a=r.top,i=r.bottom;"number"==typeof f&&i?n=i-f:"number"==typeof g&&"number"==typeof a&&i&&(n=i-a-g),h(!o&&!c||o&&n&&o>n?n:o||void 0)}),[g,o,a,i,l,e,c,n,f]),d}(n,B,R),z=function(t,e,n,r,o){var a=t.hidden,i=t.onDismiss,l=t.preventDismissOnScroll,c=t.preventDismissOnResize,u=t.preventDismissOnLostFocus,d=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,p=t.preventDismissOnEvent,f=s.useRef(!1),g=He(),m=Rr([function(){f.current=!0},function(){f.current=!1}]),v=!!e;return s.useEffect((function(){var t=function(t){v&&!l&&m(t)},e=function(t){c||p&&p(t)||null==i||i(t)},s=function(t){u||m(t)},m=function(t){var e=t.composedPath?t.composedPath():[],a=e.length>0?e[0]:t.target,s=n.current&&!At(n.current,a);if(s&&f.current)f.current=!1;else if(!r.current&&s||t.target!==o&&s&&(!r.current||"stopPropagation"in r.current||d||a!==r.current&&!At(r.current,a))){if(p&&p(t))return;null==i||i(t)}},_=function(t){h&&((!p||p(t))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==i||i(t))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[zt(o,"scroll",t,!0),zt(o,"resize",e,!0),zt(o.document.documentElement,"focus",s,!0),zt(o.document.documentElement,"click",s,!0),zt(o,"blur",_,!0)];n((function(){r.forEach((function(t){return t()}))}))}}),0)}));return function(){y.then((function(t){return t()}))}}),[a,g,n,r,o,i,h,d,u,c,l,v,p]),m}(n,R,T,O,H),Y=z[0],U=z[1],q=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),X=o(o({},null==R?void 0:R.elementPosition),{maxHeight:W});if(q&&(X.bottom=void 0),function(t,e,n){var r=t.hidden,o=t.setInitialFocus,a=He(),i=!!e;s.useEffect((function(){if(!r&&o&&i&&n){var t=a.requestAnimationFrame((function(){return Pt(n)}),n);return function(){return a.cancelAnimationFrame(t)}}}),[r,i,a,n,o])}(n,R,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var j=x,K=d&&!!k,G=qr(r,{theme:n.theme,className:u,overflowYHidden:j,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=o(o({maxHeight:C||"100%"},a),j&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:V,className:G.container,style:$},s.createElement("div",o({},te(n,Jt,Yr),{className:ee(G.root,R&&R.targetEdge&&Wr[R.targetEdge]),style:R?o({},X):zr,tabIndex:-1,ref:N}),K&&s.createElement("div",{className:G.beak,style:Kr(R)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ue,o({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:i,ariaLabelledBy:c,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:Y,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:Z},D),h)))})),(function(t,e){return!(e.shouldUpdateWhenHidden||!t.hidden||!e.hidden)||function(t,e){if(!t||!e)return!t&&!e;for(var n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(var n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}(t,e)}));function Kr(t){var e,n,r=o(o({},null===(e=null==t?void 0:t.beakPosition)||void 0===e?void 0:e.elementPosition),{display:(null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Gr(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],o=e[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Zr(t){return{height:t,width:t}}jr.displayName="CalloutContentBase";var $r={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Qr=E(jr,(function(t){var e,n=t.theme,r=t.className,o=t.overflowYHidden,a=t.calloutWidth,i=t.beakWidth,s=t.backgroundColor,l=t.calloutMaxWidth,c=t.calloutMinWidth,u=t.doNotLayer,d=ar($r,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Yn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(e={},e[Un]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},e)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!a&&{width:a},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Zr(i),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Jr=s.createContext(void 0),to=()=>()=>{};Jr.Provider;var eo=ReactDOM;new WeakMap,new WeakMap;var no=s.createContext(void 0),ro=function(t){var e=t.providerRef,n=t.layerRoot,r=s.useState([])[0],o=s.useContext(no),a=void 0!==o&&!n,i=s.useMemo((function(){return a?void 0:{providerRef:e,registeredProviders:r,registerProvider:function(t){r.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var e=r.indexOf(t);e>=0&&r.splice(e,1)}}}),[e,r,o,a]);return s.useEffect((function(){if(i)return i.registerProvider(i.providerRef),function(){return i.unregisterProvider(i.providerRef)}}),[i]),i?s.createElement(no.Provider,{value:i},t.children):s.createElement(s.Fragment,null,t.children)};function oo(t,e){void 0===t&&(t={});var n=ao(e)?e:function(t){return function(e){return t?o(o({},e),t):e}}(e);return n(t)}function ao(t){return"function"==typeof t}var io=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return r(e,t),e.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},e.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},e.prototype.render=function(){var t=this,e=this.props.contextTransform;return s.createElement(C.Consumer,null,(function(n){var r=function(t,e){var n,r,a,i=(e||{}).customizations,s=void 0===i?{settings:{},scopedSettings:{}}:i;return{customizations:{settings:oo(s.settings,t.settings),scopedSettings:(n=s.scopedSettings,r=t.scopedSettings,void 0===n&&(n={}),(ao(r)?r:(void 0===(a=r)&&(a={}),function(t){var e=o({},t);for(var n in a)a.hasOwnProperty(n)&&(e[n]=o(o({},t[n]),a[n]));return e}))(n)),inCustomizerContext:!0}}}(t.props,n);return e&&(r=e(r)),s.createElement(C.Provider,{value:r},t.props.children)}))},e}(s.Component),so=ht(),lo=er((function(t,e){return Mr(o(o({},t),{rtl:e}))})),co=s.forwardRef((function(t,e){var n=t.className,r=t.theme,a=t.applyTheme,i=t.applyThemeToBody,l=t.styles,c=so(l,{theme:r,applyTheme:a,className:n}),u=s.useRef(null);return function(t,e,n){var r=e.bodyThemed;s.useEffect((function(){if(t){var e=et(n.current);if(e)return e.body.classList.add(r),function(){e.body.classList.remove(r)}}}),[r,t,n])}(i,c,u),s.createElement(s.Fragment,null,function(t,e,n,r){var a=e.root,i=t.as,l=void 0===i?"div":i,c=t.dir,u=t.theme,d=te(t,Jt,["dir"]),h=function(t){var e=t.theme,n=t.dir,r=lt(e)?"rtl":"ltr",o=lt()?"rtl":"ltr",a=n||r;return{rootDir:a!==r||a!==o?a:n,needsTheme:a!==r}}(t),p=h.rootDir,f=h.needsTheme,g=s.createElement(ro,{providerRef:n},s.createElement(l,o({dir:p},d,{className:a,ref:Re(n,r)})));return f&&(g=s.createElement(io,{settings:{theme:lo(u,"rtl"===c)}},g)),g}(t,c,u,e))}));co.displayName="FabricBase";var uo,ho={fontFamily:"inherit"},po={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},fo=E(co,(function(t){var e=t.applyTheme,n=t.className,r=t.preventBlanketFontInheritance,o=t.theme;return{root:[ar(po,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":ho,"& input":ho,"& textarea":ho},e&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),go="data-portal-element",mo={},vo={},_o="fluent-default-layer-host",yo="#".concat(_o),xo=c()?s.useLayoutEffect:s.useEffect,bo=ht(),Co=s.forwardRef((function(t,e){var n,r=null!==(n=s.useContext(Jr))&&void 0!==n?n:to,a=s.useRef(null),i=Re(a,e),l=s.useRef(),c=s.useRef(null),u=s.useState(!1),d=u[0],h=u[1],p=t.children,f=t.className,g=t.eventBubblingEnabled,m=t.fabricProps,v=t.hostId,_=t.insertFirst,y=t.onLayerDidMount,x=void 0===y?function(){}:y,b=t.onLayerMounted,C=void 0===b?function(){}:b,S=t.onLayerWillUnmount,E=t.styles,L=t.theme,k=Re(c,null==m?void 0:m.ref),A=bo(E,{theme:L,className:f,isNotHost:!v}),w=function(){null==S||S();var t=l.current;l.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},D=function(){var t,e=et(a.current);if(e){var n=function(t){var e,n;if(v){var r=function(t){var e=vo[t];return e&&e[0]||void 0}(v);return r?null!==(e=r.rootRef.current)&&void 0!==e?e:null:null!==(n=t.getElementById(v))&&void 0!==n?n:null}var o=yo,a=o?t.querySelector(o):null;return a||(a=function(t){var e=t.createElement("div");return e.setAttribute("id",_o),e.style.cssText="position:fixed;z-index:1000000",null==t||t.body.appendChild(e),e}(t)),a}(e);if(n){w();var r=(null!==(t=n.ownerDocument)&&void 0!==t?t:e).createElement("div");r.className=A.root,r.setAttribute(go,"true"),function(t,e){var n=t,r=e;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==e){var a=o._virtual.children.indexOf(n);a>-1&&o._virtual.children.splice(a,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),_?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,h(!0)}}};return xo((function(){D(),v&&function(t,e){mo[t]||(mo[t]=[]),mo[t].push(e);var n=vo[t];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(v,D);var t=l.current?r(l.current):void 0;return function(){t&&t(),w(),v&&function(t,e){var n=mo[t];if(n){var r=n.indexOf(e);r>=0&&(n.splice(r,1),0===n.length&&delete mo[t])}var o=vo[t];if(o)for(var a=0,i=o;a<i.length;a++)i[a].notifyLayersChanged()}(v,D)}}),[v]),s.useEffect((function(){l.current&&d&&(null==C||C(),null==x||x(),h(!1))}),[d,C,x]),s.createElement("span",{className:"ms-layer",ref:i},l.current&&eo.createPortal(s.createElement(ro,{layerRoot:!0,providerRef:k},s.createElement(fo,o({},!g&&(uo||(uo={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return uo[t]=So}))),uo),m,{className:ee(A.content,null==m?void 0:m.className),ref:k}),p)),l.current))}));Co.displayName="LayerBase";var So=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Eo={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Lo=E(Co,(function(t){var e=t.className,n=t.isNotHost,r=t.theme,o=ar(Eo,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Yn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],e],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ko=s.forwardRef((function(t,e){var n=t.layerProps,r=t.doNotLayer,i=a(t,["layerProps","doNotLayer"]),l=s.createElement(Qr,o({},i,{doNotLayer:r,ref:e}));return r?l:s.createElement(Lo,o({},n),l)}));ko.displayName="Callout";var Ao=Array.prototype.slice;function wo(t){return t}var Do=1,To=2,Mo=3,Po=4,Fo=1e-6;function No(t){return"translate("+(t+.5)+",0)"}function Vo(t){return"translate(0,"+(t+.5)+")"}function Io(t){return function(e){return+t(e)}}function Oo(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function Ho(){return!this.__axis}function Bo(t,e){var n=[],r=null,o=null,a=6,i=6,s=3,l=t===Do||t===Po?-1:1,c=t===Po||t===To?"x":"y",u=t===Do||t===Mo?No:Vo;function d(d){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==o?e.tickFormat?e.tickFormat.apply(e,n):wo:o,f=Math.max(a,0)+s,g=e.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(e.bandwidth?Oo:Io)(e.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,e).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(c+"2",l*a)),L=L.merge(S.append("text").attr("fill","#000").attr(c,l*f).attr("dy",t===Do?"0em":t===Mo?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",Fo).attr("transform",(function(t){return isFinite(t=_(t))?u(t):this.getAttribute("transform")})),S.attr("opacity",Fo).attr("transform",(function(t){var e=this.parentNode.__axis;return u(e&&isFinite(e=e(t))?e:_(t))}))),C.remove(),x.attr("d",t===Po||t==To?"M"+l*i+","+m+"H0.5V"+v+"H"+l*i:"M"+m+","+l*i+"V0.5H"+v+"V"+l*i),b.attr("opacity",1).attr("transform",(function(t){return u(_(t))})),E.attr(c+"2",l*a),L.attr(c,l*f).text(p),y.filter(Ho).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===To?"start":t===Po?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Ao.call(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Ao.call(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(r=null==t?null:Ao.call(t),d):r&&r.slice()},d.tickFormat=function(t){return arguments.length?(o=t,d):o},d.tickSize=function(t){return arguments.length?(a=i=+t,d):a},d.tickSizeInner=function(t){return arguments.length?(a=+t,d):a},d.tickSizeOuter=function(t){return arguments.length?(i=+t,d):i},d.tickPadding=function(t){return arguments.length?(s=+t,d):s},d}function Ro(t){return Bo(To,t)}function Wo(t){return Bo(Mo,t)}function zo(t){return Bo(Po,t)}function Yo(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Uo(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Yo(e(t),n)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var a=r+o>>>1;t(e[a],n)<0?r=a+1:o=a}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var a=r+o>>>1;t(e[a],n)>0?o=a:r=a+1}return r}}}var qo=Uo(Yo);qo.right,qo.left;var Xo=Array.prototype;function jo(t,e){var n,r,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<o;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<o;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r}function Ko(t,e){var n,r,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<o;)null!=(n=t[a])&&r>n&&(r=n)}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<o;)null!=(n=e(t[a],a,t))&&r>n&&(r=n);return r}function Go(t,e){var n,r=t.length,o=-1,a=0;if(null==e)for(;++o<r;)(n=+t[o])&&(a+=n);else for(;++o<r;)(n=+e(t[o],o,t))&&(a+=n);return a}Xo.slice,Xo.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Zo=Math.sqrt(50),$o=Math.sqrt(10),Qo=Math.sqrt(2);function Jo(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,o);return o>=0?(a>=Zo?10:a>=$o?5:a>=Qo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=Zo?10:a>=$o?5:a>=Qo?2:1)}function ta(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=Zo?o*=10:a>=$o?o*=5:a>=Qo&&(o*=2),e<t?-o:o}function ea(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function na(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ra(t){let e,n,r;function o(t,r,o=0,a=t.length){if(o<a){if(0!==e(r,r))return a;do{const e=o+a>>>1;n(t[e],r)<0?o=e+1:a=e}while(o<a)}return o}return 2!==t.length?(e=ea,n=(e,n)=>ea(t(e),n),r=(e,n)=>t(e)-n):(e=t===ea||t===na?t:oa,n=t,r=t),{left:o,center:function(t,e,n=0,a=t.length){const i=o(t,e,n,a-1);return i>n&&r(t[i-1],e)>-r(t[i],e)?i-1:i},right:function(t,r,o=0,a=t.length){if(o<a){if(0!==e(r,r))return a;do{const e=o+a>>>1;n(t[e],r)<=0?o=e+1:a=e}while(o<a)}return o}}}function oa(){return 0}const aa=ra(ea),ia=aa.right;aa.left,ra((function(t){return null===t?NaN:+t})).center;var sa=ia;function la(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ca(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ua(){}var da=.7,ha=1/da,pa="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ma=/^#([0-9a-f]{3,8})$/,va=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),_a=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),ya=new RegExp("^rgba\\("+[pa,pa,pa,fa]+"\\)$"),xa=new RegExp("^rgba\\("+[ga,ga,ga,fa]+"\\)$"),ba=new RegExp("^hsl\\("+[fa,ga,ga]+"\\)$"),Ca=new RegExp("^hsla\\("+[fa,ga,ga,fa]+"\\)$"),Sa={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ea(){return this.rgb().formatHex()}function La(){return this.rgb().formatRgb()}function ka(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ma.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Aa(e):3===n?new Ta(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Ta(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Ta(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=va.exec(t))?new Ta(e[1],e[2],e[3],1):(e=_a.exec(t))?new Ta(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ya.exec(t))?wa(e[1],e[2],e[3],e[4]):(e=xa.exec(t))?wa(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ba.exec(t))?Na(e[1],e[2]/100,e[3]/100,1):(e=Ca.exec(t))?Na(e[1],e[2]/100,e[3]/100,e[4]):Sa.hasOwnProperty(t)?Aa(Sa[t]):"transparent"===t?new Ta(NaN,NaN,NaN,0):null}function Aa(t){return new Ta(t>>16&255,t>>8&255,255&t,1)}function wa(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ta(t,e,n,r)}function Da(t,e,n,r){return 1===arguments.length?((o=t)instanceof ua||(o=ka(o)),o?new Ta((o=o.rgb()).r,o.g,o.b,o.opacity):new Ta):new Ta(t,e,n,null==r?1:r);var o}function Ta(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ma(){return"#"+Fa(this.r)+Fa(this.g)+Fa(this.b)}function Pa(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Fa(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Na(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ia(t,e,n,r)}function Va(t){if(t instanceof Ia)return new Ia(t.h,t.s,t.l,t.opacity);if(t instanceof ua||(t=ka(t)),!t)return new Ia;if(t instanceof Ia)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Ia(i,s,l,t.opacity)}function Ia(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Oa(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ha(t,e,n,r,o){var a=t*t,i=a*t;return((1-3*t+3*a-i)*e+(4-6*a+3*i)*n+(1+3*t+3*a-3*i)*r+i*o)/6}function Ba(t){return function(){return t}}function Ra(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ba(isNaN(t)?e:t)}la(ua,ka,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ea,formatHex:Ea,formatHsl:function(){return Va(this).formatHsl()},formatRgb:La,toString:La}),la(Ta,Da,ca(ua,{brighter:function(t){return t=null==t?ha:Math.pow(ha,t),new Ta(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?da:Math.pow(da,t),new Ta(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ma,formatHex:Ma,formatRgb:Pa,toString:Pa})),la(Ia,(function(t,e,n,r){return 1===arguments.length?Va(t):new Ia(t,e,n,null==r?1:r)}),ca(ua,{brighter:function(t){return t=null==t?ha:Math.pow(ha,t),new Ia(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?da:Math.pow(da,t),new Ia(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Ta(Oa(t>=240?t-240:t+120,o,r),Oa(t,o,r),Oa(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Wa=function t(e){var n=function(t){return 1==(t=+t)?Ra:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ba(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Da(t)).r,(e=Da(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),i=Ra(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=a(e),t.opacity=i(e),t+""}}return r.gamma=t,r}(1);function za(t){return function(e){var n,r,o=e.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Da(e[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=t(a),i=t(i),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=i(t),r.b=s(t),r+""}}}function Ya(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=$a(t[n],e[n]);for(;n<r;++n)i[n]=e[n];return function(t){for(n=0;n<o;++n)i[n]=a[n](t);return i}}function Ua(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function qa(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Xa(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=$a(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}za((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],i=r>0?t[r-1]:2*o-a,s=r<e-1?t[r+2]:2*a-o;return Ha((n-r/e)*e,i,o,a,s)}})),za((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],i=t[(r+1)%e],s=t[(r+2)%e];return Ha((n-r/e)*e,o,a,i,s)}}));var ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ka=new RegExp(ja.source,"g");function Ga(t,e){var n,r,o,a=ja.lastIndex=Ka.lastIndex=0,i=-1,s=[],l=[];for(t+="",e+="";(n=ja.exec(t))&&(r=Ka.exec(e));)(o=r.index)>a&&(o=e.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:qa(n,r)})),a=Ka.lastIndex;return a<e.length&&(o=e.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Za(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(a){for(n=0;n<r;++n)o[n]=t[n]*(1-a)+e[n]*a;return o}}function $a(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?Ba(e):("number"===o?qa:"string"===o?(n=ka(e))?(e=n,Wa):Ga:e instanceof ka?Wa:e instanceof Date?Ua:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Ya:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Xa:qa:Za))(t,e)}function Qa(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Ja(t){return+t}var ti=[0,1];function ei(t){return t}function ni(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function ri(t,e,n){var r=t[0],o=t[1],a=e[0],i=e[1];return o<r?(r=ni(o,r),a=n(i,a)):(r=ni(r,o),a=n(a,i)),function(t){return a(r(t))}}function oi(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),a=new Array(r),i=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++i<r;)o[i]=ni(t[i],t[i+1]),a[i]=n(e[i],e[i+1]);return function(e){var n=sa(t,e,1,r)-1;return a[n](o[n](e))}}function ai(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ii(){return function(){var t,e,n,r,o,a,i=ti,s=ti,l=$a,c=ei;function u(){var t,e,n,l=Math.min(i.length,s.length);return c!==ei&&(t=i[0],e=i[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?oi:ri,o=a=null,d}function d(e){return null==e||isNaN(e=+e)?n:(o||(o=r(i.map(t),s,l)))(t(c(e)))}return d.invert=function(n){return c(e((a||(a=r(s,i.map(t),qa)))(n)))},d.domain=function(t){return arguments.length?(i=Array.from(t,Ja),u()):i.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),l=Qa,u()},d.clamp=function(t){return arguments.length?(c=!!t||ei,u()):c!==ei},d.interpolate=function(t){return arguments.length?(l=t,u()):l},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,u()}}()(ei,ei)}function si(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var li,ci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ui(t){if(!(e=ci.exec(t)))throw new Error("invalid format: "+t);var e;return new di({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function di(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 hi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function pi(t){return(t=hi(Math.abs(t)))?t[1]:NaN}function fi(t,e){var n=hi(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}ui.prototype=di.prototype,di.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return fi(100*t,e)},r:fi,s:function(t,e){var n=hi(t,e);if(!n)return t+"";var r=n[0],o=n[1],a=o-(li=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+hi(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function mi(t){return t}var vi,_i,yi,xi=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ci(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,o,a,i,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(i=Jo(t,e,n))||!isFinite(i))return[];if(i>0){let n=Math.round(t/i),r=Math.round(e/i);for(n*i<t&&++n,r*i>e&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)*i}else{i=-i;let n=Math.round(t*i),r=Math.round(e*i);for(n/i<t&&++n,r/i>e&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)/i}return r&&a.reverse(),a}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var o,a=ta(t,e,n);switch((r=ui(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pi(e)/3)))-pi(Math.abs(t)))}(a,i))||(r.precision=o),yi(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pi(e)-pi(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-pi(Math.abs(t)))}(a))||(r.precision=o-2*("%"===r.type))}return _i(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,a=e(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=Jo(l,c,n))===r)return a[i]=l,a[s]=c,e(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function Si(){var t=ii();return t.copy=function(){return ai(t,Si())},si.apply(t,arguments),Ci(t)}vi=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?mi:(e=xi.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(t.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[i=(i+1)%e.length];return a.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?mi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(xi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=ui(t)).fill,n=t.align,d=t.sign,h=t.symbol,p=t.zero,f=t.width,g=t.comma,m=t.precision,v=t.trim,_=t.type;"n"===_?(g=!0,_="g"):gi[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var y="$"===h?o:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?a:/[%p]/.test(_)?l:"",b=gi[_],C=/[defgprs%]/.test(_);function S(t){var o,a,l,h=y,S=x;if("c"===_)S=b(t)+S,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:b(Math.abs(t),m),v&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==d&&(E=!1),h=(E?"("===d?d:c:"-"===d||"("===d?"":d)+h,S=("s"===_?bi[8+li/3]:"")+S+(E&&"("===d?")":""),C)for(o=-1,a=t.length;++o<a;)if(48>(l=t.charCodeAt(o))||l>57){S=(46===l?i+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}g&&!p&&(t=r(t,1/0));var L=h.length+t.length+S.length,k=L<f?new Array(f-L+1).join(e):"";switch(g&&p&&(t=r(k+t,k.length?f-S.length:1/0),k=""),n){case"<":t=h+t+S+k;break;case"=":t=h+k+t+S;break;case"^":t=k.slice(0,L=k.length>>1)+h+t+S+k.slice(L);break;default:t=k+h+t+S}return s(t)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:d,formatPrefix:function(t,e){var n=d(((t=ui(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(pi(e)/3))),o=Math.pow(10,-r),a=bi[8+r/3];return function(t){return n(o*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_i=vi.format,yi=vi.formatPrefix;const Ei=1e3,Li=6e4,ki=36e5,Ai=864e5,wi=6048e5,Di=31536e6;var Ti=new Date,Mi=new Date;function Pi(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),e(n,a),t(n)}while(i<n&&n<r);return s},o.filter=function(n){return Pi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return Ti.setTime(+e),Mi.setTime(+r),t(Ti),t(Mi),Math.floor(n(Ti,Mi))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var Fi=Pi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Fi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Pi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Fi:null};var Ni=Fi,Vi=(Fi.range,Pi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Ei)}),(function(t,e){return(e-t)/Ei}),(function(t){return t.getUTCSeconds()}))),Ii=Vi,Oi=(Vi.range,Pi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ei)}),(function(t,e){t.setTime(+t+e*Li)}),(function(t,e){return(e-t)/Li}),(function(t){return t.getMinutes()}))),Hi=Oi,Bi=(Oi.range,Pi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ei-t.getMinutes()*Li)}),(function(t,e){t.setTime(+t+e*ki)}),(function(t,e){return(e-t)/ki}),(function(t){return t.getHours()}))),Ri=Bi,Wi=(Bi.range,Pi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Li)/Ai),(t=>t.getDate()-1))),zi=Wi;function Yi(t){return Pi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Li)/wi}))}Wi.range;var Ui=Yi(0),qi=Yi(1),Xi=Yi(2),ji=Yi(3),Ki=Yi(4),Gi=Yi(5),Zi=Yi(6),$i=(Ui.range,qi.range,Xi.range,ji.range,Ki.range,Gi.range,Zi.range,Pi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Qi=$i,Ji=($i.range,Pi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Ji.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var ts=Ji,es=(Ji.range,Pi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Li)}),(function(t,e){return(e-t)/Li}),(function(t){return t.getUTCMinutes()}))),ns=es,rs=(es.range,Pi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ki)}),(function(t,e){return(e-t)/ki}),(function(t){return t.getUTCHours()}))),os=rs,as=(rs.range,Pi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ai}),(function(t){return t.getUTCDate()-1}))),is=as;function ss(t){return Pi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/wi}))}as.range;var ls=ss(0),cs=ss(1),us=ss(2),ds=ss(3),hs=ss(4),ps=ss(5),fs=ss(6),gs=(ls.range,cs.range,us.range,ds.range,hs.range,ps.range,fs.range,Pi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),ms=gs,vs=(gs.range,Pi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));vs.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var _s=vs;function ys(t,e,n,r,o,a){const i=[[Ii,1,Ei],[Ii,5,5e3],[Ii,15,15e3],[Ii,30,3e4],[a,1,Li],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,ki],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ai],[r,2,1728e5],[n,1,wi],[e,1,2592e6],[e,3,7776e6],[t,1,Di]];function s(e,n,r){const o=Math.abs(n-e)/r,a=ra((([,,t])=>t)).right(i,o);if(a===i.length)return t.every(ta(e/Di,n/Di,r));if(0===a)return Ni.every(Math.max(ta(e,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:s(t,e,n),a=o?o.range(t,+e+1):[];return r?a.reverse():a},s]}vs.range;const[xs,bs]=ys(_s,ms,ls,is,os,ns),[Cs,Ss]=ys(ts,Qi,Ui,zi,Ri,Hi);var Es=new Date,Ls=new Date;function ks(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),e(n,a),t(n)}while(i<n&&n<r);return s},o.filter=function(n){return ks((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return Es.setTime(+e),Ls.setTime(+r),t(Es),t(Ls),Math.floor(n(Es,Ls))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var As=1e3,ws=6e4,Ds=36e5,Ts=864e5,Ms=6048e5;function Ps(t){return ks((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Ms}))}var Fs=Ps(0),Ns=Ps(1),Vs=Ps(2),Is=Ps(3),Os=Ps(4),Hs=Ps(5),Bs=Ps(6),Rs=(Fs.range,Ns.range,Vs.range,Is.range,Os.range,Hs.range,Bs.range,ks((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ts}),(function(t){return t.getUTCDate()-1}))),Ws=Rs;function zs(t){return ks((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ws)/Ms}))}Rs.range;var Ys=zs(0),Us=zs(1),qs=zs(2),Xs=zs(3),js=zs(4),Ks=zs(5),Gs=zs(6),Zs=(Ys.range,Us.range,qs.range,Xs.range,js.range,Ks.range,Gs.range,ks((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ws)/Ts}),(function(t){return t.getDate()-1}))),$s=Zs,Qs=(Zs.range,ks((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Qs.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ks((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Js=Qs,tl=(Qs.range,ks((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));tl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ks((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var el=tl;function nl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function rl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ol(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function al(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,a=t.days,i=t.shortDays,s=t.months,l=t.shortMonths,c=ml(o),u=vl(o),d=ml(a),h=vl(a),p=ml(i),f=vl(i),g=ml(s),m=vl(s),v=ml(l),_=vl(l),y={a:function(t){return i[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ol,e:Ol,f:zl,H:Hl,I:Bl,j:Rl,L:Wl,m:Yl,M:Ul,p:function(t){return o[+(t.getHours()>=12)]},Q:_c,s:yc,S:ql,u:Xl,U:jl,V:Kl,w:Gl,W:Zl,x:null,X:null,y:$l,Y:Ql,Z:Jl,"%":vc},x={a:function(t){return i[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:tc,e:tc,f:ac,H:ec,I:nc,j:rc,L:oc,m:ic,M:sc,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:_c,s:yc,S:lc,u:cc,U:uc,V:dc,w:hc,W:pc,x:null,X:null,y:fc,Y:gc,Z:mc,"%":vc},b={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:Al,e:Al,f:Fl,H:Dl,I:Dl,j:wl,L:Pl,m:kl,M:Tl,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Vl,s:Il,S:Ml,u:yl,U:xl,V:bl,w:_l,W:Cl,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:El,Y:Sl,Z:Ll,"%":Nl};function C(t,e){return function(n){var r,o,a,i=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(i.push(t.slice(l,s)),null!=(o=ul[r=t.charAt(++s)])?r=t.charAt(++s):o="e"===r?" ":"0",(a=e[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(t.slice(l,s)),i.join("")}}function S(t,e){return function(n){var r,o,a=ol(1900);if(E(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=rl(ol(a.y))).getUTCDay(),r=o>4||0===o?Ns.ceil(r):Ns(r),r=Ws.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=e(ol(a.y))).getDay(),r=o>4||0===o?Us.ceil(r):Us(r),r=$s.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?rl(ol(a.y)).getUTCDay():e(ol(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rl(a)):e(a)}}function E(t,e,n,r){for(var o,a,i=0,s=e.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=e.charCodeAt(i++))){if(o=e.charAt(i++),!(a=b[o in ul?e.charAt(i++):o])||(r=a(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(e,y),x.x=C(n,x),x.X=C(r,x),x.c=C(e,x),{format:function(t){var e=C(t+="",y);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",nl);return e.toString=function(){return t},e},utcFormat:function(t){var e=C(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t,rl);return e.toString=function(){return t},e}}}tl.range;var il,sl,ll,cl,ul={"-":"",_:" ",0:"0"},dl=/^\s*\d+/,hl=/^%/,pl=/[\\^$*+?|[\]().{}]/g;function fl(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(e)+o:o)}function gl(t){return t.replace(pl,"\\$&")}function ml(t){return new RegExp("^(?:"+t.map(gl).join("|")+")","i")}function vl(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function _l(t,e,n){var r=dl.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yl(t,e,n){var r=dl.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Sl(t,e,n){var r=dl.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function El(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ll(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function kl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Al(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function wl(t,e,n){var r=dl.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Dl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Tl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ml(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=dl.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fl(t,e,n){var r=dl.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nl(t,e,n){var r=hl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Vl(t,e,n){var r=dl.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Il(t,e,n){var r=dl.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Ol(t,e){return fl(t.getDate(),e,2)}function Hl(t,e){return fl(t.getHours(),e,2)}function Bl(t,e){return fl(t.getHours()%12||12,e,2)}function Rl(t,e){return fl(1+$s.count(Js(t),t),e,3)}function Wl(t,e){return fl(t.getMilliseconds(),e,3)}function zl(t,e){return Wl(t,e)+"000"}function Yl(t,e){return fl(t.getMonth()+1,e,2)}function Ul(t,e){return fl(t.getMinutes(),e,2)}function ql(t,e){return fl(t.getSeconds(),e,2)}function Xl(t){var e=t.getDay();return 0===e?7:e}function jl(t,e){return fl(Ys.count(Js(t),t),e,2)}function Kl(t,e){var n=t.getDay();return t=n>=4||0===n?js(t):js.ceil(t),fl(js.count(Js(t),t)+(4===Js(t).getDay()),e,2)}function Gl(t){return t.getDay()}function Zl(t,e){return fl(Us.count(Js(t),t),e,2)}function $l(t,e){return fl(t.getFullYear()%100,e,2)}function Ql(t,e){return fl(t.getFullYear()%1e4,e,4)}function Jl(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fl(e/60|0,"0",2)+fl(e%60,"0",2)}function tc(t,e){return fl(t.getUTCDate(),e,2)}function ec(t,e){return fl(t.getUTCHours(),e,2)}function nc(t,e){return fl(t.getUTCHours()%12||12,e,2)}function rc(t,e){return fl(1+Ws.count(el(t),t),e,3)}function oc(t,e){return fl(t.getUTCMilliseconds(),e,3)}function ac(t,e){return oc(t,e)+"000"}function ic(t,e){return fl(t.getUTCMonth()+1,e,2)}function sc(t,e){return fl(t.getUTCMinutes(),e,2)}function lc(t,e){return fl(t.getUTCSeconds(),e,2)}function cc(t){var e=t.getUTCDay();return 0===e?7:e}function uc(t,e){return fl(Fs.count(el(t),t),e,2)}function dc(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Os(t):Os.ceil(t),fl(Os.count(el(t),t)+(4===el(t).getUTCDay()),e,2)}function hc(t){return t.getUTCDay()}function pc(t,e){return fl(Ns.count(el(t),t),e,2)}function fc(t,e){return fl(t.getUTCFullYear()%100,e,2)}function gc(t,e){return fl(t.getUTCFullYear()%1e4,e,4)}function mc(){return"+0000"}function vc(){return"%"}function _c(t){return+t}function yc(t){return Math.floor(+t/1e3)}il=al({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),sl=il.format,il.parse,ll=il.utcFormat,cl=il.utcParse;var xc="%Y-%m-%dT%H:%M:%S.%LZ";function bc(t){return new Date(t)}function Cc(t){return t instanceof Date?+t:+new Date(+t)}function Sc(t,e,n,r,o,a,i,s,l,c){var u=ii(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(t){return(l(t)<t?p:s(t)<t?f:i(t)<t?g:a(t)<t?m:r(t)<t?o(t)<t?v:_:n(t)<t?y:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,Cc)):h().map(bc)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,o=(t=t.slice()).length-1,a=t[r],i=t[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),t[r]=e.floor(a),t[o]=e.ceil(i),t}(n,t)):u},u.copy=function(){return ai(u,Sc(t,e,n,r,o,a,i,s,l,c))},u}function Ec(){return si.apply(Sc(Cs,Ss,ts,Qi,Ui,zi,Ri,Hi,Ii,sl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||ll(xc),+new Date("2000-01-01T00:00:00.000Z")||cl(xc);class Lc extends Map{constructor(t,e=Tc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Ac(this,t))}has(t){return super.has(Ac(this,t))}set(t,e){return super.set(wc(this,t),e)}delete(t){return super.delete(Dc(this,t))}}class kc extends Set{constructor(t,e=Tc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(Ac(this,t))}add(t){return super.add(wc(this,t))}delete(t){return super.delete(Dc(this,t))}}function Ac({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function wc({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Dc({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Tc(t){return null!==t&&"object"==typeof t?t.valueOf():t}const Mc=Symbol("implicit");function Pc(){var t=new Lc,e=[],n=[],r=Mc;function o(o){let a=t.get(o);if(void 0===a){if(r!==Mc)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Lc;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return Pc(e,n).unknown(r)},si.apply(o,arguments),o}function Fc(){var t,e,n=Pc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,h=d?i:a,p=d?a:i;t=(p-h)/Math.max(1,n-l+2*c),s&&(t=Math.floor(t)),h+=(p-h-t*(n-l))*u,e=t*(1-l),s&&(h=Math.round(h),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(o);++r<o;)a[r]=t+r*n;return a}(n).map((function(e){return h+t*e}));return o(d?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),d()):r()},n.range=function(t){return arguments.length?([a,i]=t,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(t){return[a,i]=t,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,d()):s},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),d()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),d()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,d()):c},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),d()):u},n.copy=function(){return Fc(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},si.apply(d(),arguments)}var Nc="http://www.w3.org/1999/xhtml",Vc={svg:"http://www.w3.org/2000/svg",xhtml:Nc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ic(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Vc.hasOwnProperty(e)?{space:Vc[e],local:t}:t}function Oc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Nc&&e.documentElement.namespaceURI===Nc?e.createElement(t):e.createElementNS(n,t)}}function Hc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Bc(t){var e=Ic(t);return(e.local?Hc:Oc)(e)}function Rc(){}function Wc(t){return null==t?Rc:function(){return this.querySelector(t)}}function zc(){return[]}var Yc=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Uc=document.documentElement;if(!Uc.matches){var qc=Uc.webkitMatchesSelector||Uc.msMatchesSelector||Uc.mozMatchesSelector||Uc.oMatchesSelector;Yc=function(t){return function(){return qc.call(this,t)}}}}var Xc=Yc;function jc(t){return new Array(t.length)}function Kc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Kc.prototype={constructor:Kc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Gc(t,e,n,r,o,a){for(var i,s=0,l=e.length,c=a.length;s<c;++s)(i=e[s])?(i.__data__=a[s],r[s]=i):n[s]=new Kc(t,a[s]);for(;s<l;++s)(i=e[s])&&(o[s]=i)}function Zc(t,e,n,r,o,a,i){var s,l,c,u={},d=e.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=c="$"+i.call(l,l.__data__,s,e),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+i.call(t,a[s],s,a)])?(r[s]=l,l.__data__=a[s],u[c]=null):n[s]=new Kc(t,a[s]);for(s=0;s<d;++s)(l=e[s])&&u[p[s]]===l&&(o[s]=l)}function $c(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Qc(t){return function(){this.removeAttribute(t)}}function Jc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tu(t,e){return function(){this.setAttribute(t,e)}}function eu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nu(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ru(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ou(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function au(t){return function(){this.style.removeProperty(t)}}function iu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function su(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function lu(t){return function(){delete this[t]}}function cu(t,e){return function(){this[t]=e}}function uu(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function du(t){return t.trim().split(/^|\s+/)}function hu(t){return t.classList||new pu(t)}function pu(t){this._node=t,this._names=du(t.getAttribute("class")||"")}function fu(t,e){for(var n=hu(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function gu(t,e){for(var n=hu(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function mu(t){return function(){fu(this,t)}}function vu(t){return function(){gu(this,t)}}function _u(t,e){return function(){(e.apply(this,arguments)?fu:gu)(this,t)}}function yu(){this.textContent=""}function xu(t){return function(){this.textContent=t}}function bu(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Cu(){this.innerHTML=""}function Su(t){return function(){this.innerHTML=t}}function Eu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Lu(){this.nextSibling&&this.parentNode.appendChild(this)}function ku(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Au(){return null}function wu(){var t=this.parentNode;t&&t.removeChild(this)}function Du(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Tu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}pu.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Mu={},Pu=null;function Fu(t,e,n){return t=Nu(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Nu(t,e,n){return function(r){var o=Pu;Pu=r;try{t.call(this,this.__data__,e,n)}finally{Pu=o}}}function Vu(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?e.length=o:delete this.__on}}}function Iu(t,e,n){var r=Mu.hasOwnProperty(t.type)?Fu:Nu;return function(o,a,i){var s,l=this.__on,c=r(e,a,i);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Ou(t,e,n){var r=ou(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Hu(t,e){return function(){return Ou(this,t,e)}}function Bu(t,e){return function(){return Ou(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Mu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Wu(t,e){this._groups=t,this._parents=e}function zu(t){return"string"==typeof t?new Wu([[document.querySelector(t)]],[document.documentElement]):new Wu([[t]],Ru)}Wu.prototype=function(){return new Wu([[document.documentElement]],Ru)}.prototype={constructor:Wu,select:function(t){"function"!=typeof t&&(t=Wc(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a,i,s=e[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(i=t.call(a,a.__data__,u,s))&&("__data__"in a&&(i.__data__=a.__data__),c[u]=i);return new Wu(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?zc:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],o=[],a=0;a<n;++a)for(var i,s=e[a],l=s.length,c=0;c<l;++c)(i=s[c])&&(r.push(t.call(i,i.__data__,c,s)),o.push(i));return new Wu(r,o)},filter:function(t){"function"!=typeof t&&(t=Xc(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a,i=e[o],s=i.length,l=r[o]=[],c=0;c<s;++c)(a=i[c])&&t.call(a,a.__data__,c,i)&&l.push(a);return new Wu(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,r=e?Zc:Gc,o=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],h=a[u],p=h.length,f=t.call(d,d&&d.__data__,u,o),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,e);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Wu(s,o))._enter=l,s._exit=c,s},enter:function(){return new Wu(this._enter||this._groups.map(jc),this._parents)},exit:function(){return new Wu(this._exit||this._groups.map(jc),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],d=c.length,h=i[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)i[s]=e[s];return new Wu(i,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=$c);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,s=n[a],l=s.length,c=o[a]=new Array(l),u=0;u<l;++u)(i=s[u])&&(c[u]=i);c.sort(e)}return new Wu(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,a=e[n],i=0,s=a.length;i<s;++i)(o=a[i])&&t.call(o,o.__data__,i,a);return this},attr:function(t,e){var n=Ic(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Jc:Qc:"function"==typeof e?n.local?ru:nu:n.local?eu:tu)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?au:"function"==typeof e?su:iu)(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||ou(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?lu:"function"==typeof e?uu:cu)(t,e)):this.node()[t]},classed:function(t,e){var n=du(t+"");if(arguments.length<2){for(var r=hu(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?_u:e?mu:vu)(n,e))},text:function(t){return arguments.length?this.each(null==t?yu:("function"==typeof t?bu:xu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Cu:("function"==typeof t?Eu:Su)(t)):this.node().innerHTML},raise:function(){return this.each(Lu)},lower:function(){return this.each(ku)},append:function(t){var e="function"==typeof t?t:Bc(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Bc(t),r=null==e?Au:"function"==typeof e?e:Wc(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wu)},clone:function(t){return this.select(t?Tu:Du)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,a=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),i=a.length;if(!(arguments.length<2)){for(s=e?Iu:Vu,null==n&&(n=!1),r=0;r<i;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<i;++r)if((o=a[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Bu:Hu)(t,e))}};var Yu=0;function Uu(){this._="@"+(++Yu).toString(36)}function qu(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function Xu(t){return"string"==typeof t?new Wu([document.querySelectorAll(t)],[document.documentElement]):new Wu([null==t?[]:t],Ru)}Uu.prototype=function(){return new Uu}.prototype={constructor:Uu,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var ju,Ku,Gu,Zu,$u=ks((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*As)}),(function(t,e){return(e-t)/As}),(function(t){return t.getUTCSeconds()})),Qu=$u,Ju=($u.range,ks((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*As)}),(function(t,e){t.setTime(+t+e*ws)}),(function(t,e){return(e-t)/ws}),(function(t){return t.getMinutes()}))),td=Ju,ed=(Ju.range,ks((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*As-t.getMinutes()*ws)}),(function(t,e){t.setTime(+t+e*Ds)}),(function(t,e){return(e-t)/Ds}),(function(t){return t.getHours()}))),nd=ed,rd=(ed.range,ks((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),od=rd;function ad(t,e,n){var r=t.domainNRangeValues,o=t.showRoundOffXTickValues,a=void 0!==o&&o,i=t.xAxistickSize,s=void 0===i?6:i,l=t.tickPadding,c=void 0===l?10:l,u=t.xAxisCount,d=void 0===u?6:u,h=t.xAxisElement,p=Si().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);a&&p.nice();var f=Wo(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(t,e){var r="number"==typeof t?t:t.valueOf();return yd(r,n)}));return e===Ku.HorizontalBarChartWithAxis&&f.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&zu(h).call(f).selectAll("text").attr("aria-hidden","true"),p}function id(t,e,n,r,o,a){return void 0===a&&(a=!1),r===Ku.HorizontalBarChartWithAxis?function(t,e,n,r){var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=t.yAxisElement,s=void 0===i?null:i,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.margins,f=t.tickPadding,g=void 0===f?12:f,m=t.maxOfYVal,v=void 0===m?0:m,_=t.yAxisTickFormat,y=t.yAxisTickCount,x=void 0===y?4:y,b=v||a.endValue,C=b>c?b:c,S=a.startValue<d?0:d,E=Si().domain([S,C]).range([h-p.bottom,p.top]),L=(e?Ro(E):zo(E)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(_i(".2~s")),s&&zu(s).call(L).selectAll("text").attr("aria-hidden","true"),E}(t,e):function(t,e,n,r){void 0===r&&(r=!1);var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=t.yAxisElement,s=void 0===i?null:i,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.containerWidth,f=t.margins,g=t.tickPadding,m=void 0===g?12:g,v=t.maxOfYVal,_=void 0===v?0:v,y=t.yAxisTickFormat,x=t.yAxisTickCount,b=void 0===x?4:x,C=t.eventAnnotationProps,S=t.eventLabelHeight,E=_||a.endValue,L=E>c?E:c,k=a.startValue<d?0:d,A=function(t,e,n){for(var r=Math.ceil((t-e)/n),o=[e,e+r];o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(L,k,b),w=Si().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?S:0)]),D=(!e&&r||e&&!r?Ro(w):zo(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(_i(".2~s")),s&&zu(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(t,e,n,a)}rd.range,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"}(Ku||(Ku={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Gu||(Gu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Zu||(Zu={}));function sd(t){var e=[];t.forEach((function(t){var n=t.data.filter((function(t){return!t.hideCallout})).map((function(e){return o(o({legend:t.legend},e),{color:t.color,index:t.index})}));e=e.concat(n)}));var n,r=[];return e.forEach((function(t,n){t.x=t.x instanceof Date?t.x.getTime():t.x;var o=[{legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}];e.slice(n+1).forEach((function(e){e.x=e.x instanceof Date?e.x.getTime():e.x,t.x===e.x&&o.push({legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index})})),r.push({x:t.x,values:o})})),"x",(n=r).map((function(t){return t.x})).map((function(t,e,n){return n.indexOf(t)===e&&e})).filter((function(t){return n[t]})).map((function(t){return n[t]}))}function ld(t,e){var n=0;return t.forEach((function(t){var r=document.createElement("canvas").getContext("2d");r.font=window.getComputedStyle(e,null).getPropertyValue("font-size");var o=r.measureText(t.y).width;n=Math.max(o,n)})),n}function cd(t){var e=t.tooltipCls,n=t.xAxis,r=t.id;if(null===n)return null;for(var o=zu("body").append("div").attr("id",r).attr("class",e).style("opacity",0),a=n.selectAll("#BaseSpan")._groups[0],i=a&&Object.keys(a).length,s=[],l=0;l<i;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(t){zu(u[t]).on("mouseover",(function(e){o.style("opacity",.9),o.html(s[t]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px")})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ud(t){var e=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(e=t.data[0].x instanceof Date)})),e}function dd(t,e,n,r,o,a,s,l,c){var u;if(a===Gu.NumericAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(t,e,n,r){var o=Ko(t,(function(t){return Ko(t.data,(function(t){return t.x}))})),a=jo(t,(function(t){return jo(t.data,(function(t){return t.x}))})),i=e.left,s=n-e.right;return r?{dStartValue:a,dEndValue:o,rStartValue:i,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:i,rEndValue:s}}(t,e,n,o);break;case Ku.VerticalStackedBarChart:u=function(t,e,n,r,o){var a=Ko(t,(function(t){return t.x})),i=jo(t,(function(t){return t.x})),s=e.left+o/2,l=n-e.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case Ku.VerticalBarChart:u=function(t,e,n,r,o){var a=jo(t,(function(t){return t.x})),i=Ko(t,(function(t){return t.x})),s=e.left+o/2,l=n-e.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case Ku.HorizontalBarChartWithAxis:u=function(t,e,n,r,o){var a=jo(t,(function(t){return t.x})),i=r?e.left:e.left+o,s=r?n-e.right-o:n-e.right;return r?{dStartValue:a,dEndValue:0,rStartValue:i,rEndValue:s}:{dStartValue:0,dEndValue:a,rStartValue:i,rEndValue:s}}(t,e,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===Gu.DateAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(t,e,n,r,o){void 0===o&&(o=[]);var a=Ko(t,(function(t){return Ko(t.data,(function(t){return t.x}))})),s=jo(t,(function(t){return jo(t.data,(function(t){return t.x}))})),l=Ko(i(i([],o,!0),[a],!1)),c=jo(i(i([],o,!0),[s],!1)),u=e.left,d=n-e.right;return r?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(t,e,n,o,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Ku.VerticalStackedBarChart:case Ku.GroupedVerticalBarChart:case Ku.VerticalBarChart:case Ku.HeatMapChart:u=function(t,e,n){var r=t.left,o=e-t.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(e,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function hd(t,e,n){var r,o,a;switch(void 0===n&&(n=Zu.NumericAxis),e){case Ku.AreaChart:case Ku.LineChart:r=function(t){var e=jo(t,(function(t){return jo(t.data,(function(t){return t.y}))}));return{startValue:Ko(t,(function(t){return Ko(t.data,(function(t){return t.y}))})),endValue:e}}(t);break;case Ku.VerticalStackedBarChart:a=jo(o=t,(function(t){return t.y})),r={startValue:Ko(o,(function(t){return t.y})),endValue:a};break;case Ku.VerticalBarChart:r=function(t){var e=jo(t,(function(t){return t.y}));return{startValue:Ko(t,(function(t){return t.y})),endValue:e}}(t);break;case Ku.HorizontalBarChartWithAxis:r=function(t,e){if(void 0!==e&&e===Zu.NumericAxis){var n=jo(t,(function(t){return t.y}));return{startValue:Ko(t,(function(t){return t.y})),endValue:n}}return{startValue:0,endValue:0}}(t,n);break;default:r={startValue:0,endValue:0}}return r}var pd,fd,gd=function(t,e){if(e)switch(typeof t){case"string":return Gu.StringAxis;case"number":return Gu.NumericAxis;default:return Gu.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"}(pd||(pd={})),function(t){t[t.dottedLine=0]="dottedLine"}(fd||(fd={}));var md,vd=((ju={})[pd.circle]={widthRatio:1},ju[pd.square]={widthRatio:1},ju[pd.triangle]={widthRatio:1},ju[pd.diamond]={widthRatio:1},ju[pd.pyramid]={widthRatio:1},ju[pd.hexagon]={widthRatio:2},ju[pd.pentagon]={widthRatio:1.168},ju[pd.octagon]={widthRatio:2.414},ju),_d=function(t,e,n){return void 0===e&&(e="text"),void 0===n&&(n=!0),{role:e,"data-is-focusable":n,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},yd=function(t,e){return t?(e=e||void 0,"number"==typeof t?t.toLocaleString(e):"string"!=typeof t||window.isNaN(Number(t))?t:Number(t).toLocaleString(e)):t},xd=ht(),bd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.color,n=t.Legend,r=t.XValue,o=t.YValue,a=t.styles,i=t.theme,l=t.ratio,c=t.descriptionMessage,u=t.culture;return this._classNames=xd(a,{theme:i,color:e,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},yd(n,u)),s.createElement("div",{className:this._classNames.calloutContentY},yd(o,u))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},yd(l[0],u)),"/",s.createElement("span",{className:this._classNames.denominator},yd(l[1],u))))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},e}(s.Component),Cd=function(t){var e=t.color,n=t.XValue,r=t.theme,o=t.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid ".concat(e)}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:e||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:Bn.bold},denominator:{fontWeight:Bn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(r.semanticColors.menuDivider)}]}},Sd=E(bd,Cd);function Ed(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function Ld(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Ed(t,t[n],e[n]))}(t,{componentDidMount:kd,componentDidUpdate:Ad,componentWillUnmount:wd})}function kd(){Dd(this.props.componentRef,this)}function Ad(t){t.componentRef!==this.props.componentRef&&(Dd(t.componentRef,null),Dd(this.props.componentRef,this))}function wd(){Dd(this.props.componentRef,null)}function Dd(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}function Td(t,e){var n=kt(t,(function(t){return e===t||t.hasAttribute(go)}));return null!==n&&n.hasAttribute(go)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(md||(md={}));var Md,Pd="data-is-focusable",Fd="data-focuszone-id",Nd="tabindex",Vd="data-no-vertical-wrap",Id="data-no-horizontal-wrap",Od=999999999,Hd=-999999999;function Bd(t,e){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==e?void 0:e.ctrlKey,metaKey:null==e?void 0:e.metaKey,shiftKey:null==e?void 0:e.shiftKey,altKey:null==e?void 0:e.altKey,bubbles:null==e?void 0:e.bubbles,cancelable:null==e?void 0:e.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!e&&e.bubbles,!!e&&e.cancelable,window,0,0,0,0,0,!!e&&e.ctrlKey,!!e&&e.altKey,!!e&&e.shiftKey,!!e&&e.metaKey,0,null),t.dispatchEvent(n)}var Rd,Wd={},zd=new Set,Yd=["text","number","password","email","tel","url","search","textarea"],Ud=!1,qd=function(t){function e(n){var r,o,a,i,l,c=this;(c=t.call(this,n)||this)._root=s.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return l.resolver&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(e){for(var n=0,r=t.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(e):o&&(o.current=e)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var e,n=c.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,i=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=c._isImmediateDescendantOfZone(t.target);if(d)e=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(Ot(h)&&c._isImmediateDescendantOfZone(h)){e=h;break}h=Lt(h,Ud)}if(l&&t.target===c._root.current){var p=u&&"function"==typeof u&&c._root.current&&u(c._root.current);p&&Ot(p)?(e=p,p.focus()):(c.focus(!0),c._activeElement&&(e=null))}var f=!c._activeElement;e&&e!==c._activeElement&&((d||f)&&c._setFocusAlignment(e,!0,!0),c._activeElement=e,f&&c._updateTabIndexes()),r&&r(c._activeElement,t),(a||o)&&t.stopPropagation(),s?s(t):i&&i()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var e=t.target,n=[];e&&e!==c._root.current;)n.push(e),e=Lt(e,Ud);for(;n.length&&((e=n.pop())&&Ot(e)&&c._setActiveElement(e,!0),!Ht(e)););}},c._onKeyDown=function(t,e){if(!c._portalContainsElement(t.target)){var n=c.props,r=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,i=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(o||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(t)||a&&a(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Bt(t.target))return;if(!c.focusElement(Nt(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(r!==md.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(e)))break;return;case 39:if(r!==md.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(e)))break;return;case 38:if(r!==md.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(r!==md.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!i&&c._moveFocusPaging(!0))break;return;case 33:if(!i&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var u=!1;if(c._processingTabKey=!0,u=r!==md.vertical&&c._shouldWrapFocus(c._activeElement,Id)?(lt(e)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(e):c._moveFocusRight(e):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,u)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 d=c._root.current&&c._root.current.firstChild;if(c._root.current&&d&&c.focusElement(Nt(c._root.current,d,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var h=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(Ft(c._root.current,h,!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,e,n){var r=c._focusAlignment.left||c._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(e.bottom),i=Math.floor(n.bottom),s=Math.floor(e.top);return t&&o>a||!t&&i<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):c._shouldWrapFocus(c._activeElement,Vd)?Od:Hd},Ld(c),c._id=xt("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var u=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:e.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:u,c._shouldRaiseClicksOnSpace=null!==(i=n.shouldRaiseClicksOnSpace)&&void 0!==i?i:u,c}return r(e,t),e.getOuterZones=function(){return zd.size},e._onKeyDownCapture=function(t){9===t.which&&zd.forEach((function(t){return t._updateTabIndexes()}))},e.prototype.componentDidMount=function(){var t=this._root.current;if(Wd[this._id]=this,t){for(var n=Lt(t,Ud);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Ht(n)){this._isInnerZone=!0;break}n=Lt(n,Ud)}this._isInnerZone||(zd.add(this),this._root.current&&this._root.current.addEventListener("keydown",e._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()}},e.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if((this._activeElement&&!At(this._root.current,this._activeElement,Ud)||this._defaultFocusElement&&!At(this._root.current,this._defaultFocusElement,Ud))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&e&&this._lastIndexPath&&(e.activeElement===e.body||null===e.activeElement||e.activeElement===t)){var n=function(t,e){for(var n=t,r=0,o=e;r<o.length;r++){var a=o[r],i=n.children[Math.min(a,n.children.length-1)];if(!i)break;n=i}return Ot(n)&&Vt(n)?n:Nt(t,n,!0)||Ft(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},e.prototype.componentWillUnmount=function(){delete Wd[this._id],this._isInnerZone||(zd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",e._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},e.prototype.render=function(){var t=this,e=this.props,n=e.as,r=e.elementType,a=e.rootProps,i=e.ariaDescribedBy,l=e.ariaLabelledBy,c=e.className,u=te(this.props,Zt),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Pr=Mr({},h)),Pr);return s.createElement(d,o({"aria-labelledby":l,"aria-describedby":i},u,a,{className:ee((Md||(Md=oe({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Md),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},e.prototype.focus=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(Pd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Wd[n.getAttribute(Fd)];return!!r&&r.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&At(this._root.current,this._activeElement)&&Ot(this._activeElement)&&(!e||It(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Nt(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,e))}return!1},e.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(Ft(this._root.current,t,!0,!0,!0))}return!1},e.prototype.focusElement=function(t,e){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(t)||r&&!r(t)||!t||(this._setActiveElement(t,e),this._activeElement&&this._activeElement.focus(),0))},e.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(e.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),e.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=At(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=Lt(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},e.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},e.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(Ht(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},e.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},e.prototype._tryInvokeClickForFocusable=function(t,e){var n=t;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Pd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Bd(n,e),!0;n=Lt(n,Ud)}while(n!==this._root.current);return!1},e.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(Ht(t))return Wd[t.getAttribute(Fd)];for(var e=t.firstElementChild;e;){if(Ht(e))return Wd[e.getAttribute(Fd)];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},e.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var o=this._activeElement,a=-1,i=void 0,s=!1,l=this.props.direction===md.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,t))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=t?Nt(this._root.current,o):Ft(this._root.current,o),!l){i=o;break}if(o){var u=e(c,o.getBoundingClientRect());if(-1===u&&-1===a){i=o;break}if(u>-1&&(-1===a||u<a)&&(a=u,i=o),a>=0&&u<0)break}}while(o);if(i&&i!==this._activeElement)s=!0,this.focusElement(i);else if(this.props.isCircularNavigation&&r)return t?this.focusElement(Nt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ft(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},e.prototype._moveFocusDown=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var a=-1,i=Math.floor(o.top),s=Math.floor(r.bottom);return i<s?t._shouldWrapFocus(t._activeElement,Vd)?Od:Hd:((-1===e&&i>=s||i===e)&&(e=i,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var a=-1,i=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return i>l?t._shouldWrapFocus(t._activeElement,Vd)?Od:Hd:((-1===e&&i<=l||s===e)&&(e=s,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusLeft=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,Id);return!!this._moveFocus(lt(t),(function(r,o){var a=-1;return(lt(t)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&e.props.direction!==md.vertical?a=r.right-o.right:n||(a=Hd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusRight=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,Id);return!!this._moveFocus(!lt(t),(function(r,o){var a=-1;return(lt(t)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&e.props.direction!==md.vertical?a=o.left-r.left:n||(a=Hd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=ie(n);if(!r)return!1;var o=-1,a=void 0,i=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?Nt(this._root.current,n):Ft(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(t,c,u);if(t&&d>h+l||!t&&p<f-l)break;g>-1&&(t&&d>i?(i=d,o=g,a=n):!t&&p<s?(s=p,o=g,a=n):(-1===o||g<=o)&&(o=g,a=n))}}while(n);var m=!1;if(a&&a!==this._activeElement)m=!0,this.focusElement(a),this._setFocusAlignment(a,!1,!0);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(Nt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ft(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},e.prototype._setFocusAlignment=function(t,e,n){if(this.props.direction===md.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),o=r.left+r.width/2,a=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:a}),e&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=a)}},e.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},e.prototype._getOwnerZone=function(t){for(var e=Lt(t,Ud);e&&e!==this._root.current&&e!==this._getDocument().body;){if(Ht(e))return e;e=Lt(e,Ud)}return e},e.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&&!At(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Ot(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];Ht(r)?"true"===r.getAttribute(Pd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"0"))):(r.getAttribute&&"false"===r.getAttribute(Pd)&&r.setAttribute(Nd,"-1"),Ot(r)?this.props.disabled?r.setAttribute(Nd,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},e.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},e.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},e.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&Yd.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,o=t.value,a=t.readOnly;if(r||n>0&&!e&&!a||n!==o.length&&e&&!a||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},e.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||function(t,e){return"true"!==function(t,e){var n=kt(t,(function(t){return t.hasAttribute(e)}));return n&&n.getAttribute(e)}(t,e)}(t,e)},e.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Td(t,this._root.current)},e.prototype._getDocument=function(){return et(this._root.current)},e.defaultProps={isCircularNavigation:!1,direction:md.bidirectional,shouldRaiseClicks:!0},e}(s.Component);function Xd(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"}(Rd||(Rd={}));var jd,Kd=ht(),Gd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"==typeof t.content?s.createElement("p",{className:e._classNames.subText},t.content):s.createElement("div",{className:e._classNames.subText},t.content)},e}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.className,n=t.calloutProps,r=t.directionalHint,a=t.directionalHintForRTL,i=t.styles,l=t.id,c=t.maxWidth,u=t.onRenderContent,d=void 0===u?this._onRenderContent:u,h=t.targetElement,p=t.theme;return this._classNames=Kd(i,{theme:p,className:e||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:c}),s.createElement(ko,o({target:h,directionalHint:r,directionalHintForRTL:a},n,te(this.props,Jt,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},e.defaultProps={directionalHint:Et.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},e}(s.Component),Zd=E(Gd,(function(t){var e=t.className,n=t.beakWidth,r=void 0===n?16:n,o=t.gapSpace,a=void 0===o?0:o,i=t.maxWidth,s=t.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+a)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Wn.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:i,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},e],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(jd||(jd={}));var $d,Qd,Jd=ht(),th=function(t){function e(n){var r=t.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=xt("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var t=r.props.overflowMode;if(void 0!==t)switch(t){case Rd.Parent:return r._tooltipHost.current.parentElement;case Rd.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipContentFocus=function(t){e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(t){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var n=r.props,o=n.overflowMode,a=n.delay;if(e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,void 0!==o){var i=r._getTargetElement();if(i&&!Xd(i))return}if(!t.target||!Td(t.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==jd.zero){var s=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),e._currentVisibleTooltip===r&&(e._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ie||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(t)}))},r._getDelayTime=function(t){switch(t){case jd.medium:return 300;case jd.long:return 500;default:return 0}},Ld(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Oe(r),r}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.calloutProps,n=t.children,r=t.content,a=t.directionalHint,i=t.directionalHintForRTL,l=t.hostClassName,c=t.id,u=t.setAriaDescribedBy,d=void 0===u||u,h=t.tooltipProps,p=t.styles,f=t.theme;this._classNames=Jd(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=o(o({id:"".concat(m,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:i,calloutProps:ne({},e,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},te(this.props,Jt,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(t){return(null==t?void 0:t.content)?s.createElement(s.Fragment,null,t.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",o({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),n,y&&s.createElement(Zd,o({},v)),s.createElement("div",{hidden:!0,id:m,style:Kn},_))},e.prototype.componentWillUnmount=function(){e._currentVisibleTooltip&&e._currentVisibleTooltip===this&&(e._currentVisibleTooltip=void 0),this._async.dispose()},e.defaultProps={delay:jd.medium},e}(s.Component),eh={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},nh=E(th,(function(t){var e=t.className,n=t.theme;return{root:[ar(eh,n).root,{display:"inline"},e]}}),void 0,{scope:"TooltipHost"}),rh=function(t){function e(e){var n=t.call(this,e)||this;return n._tooltipChild=s.createRef(),n._checkTextOverflow=function(){var t=n._getTargetElement(),e=!!t&&Xd(t);e!==n.state.textOverflow&&n.setState({textOverflow:e})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Oe(n),n}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.className,n=t.content,r=t.accessibilityData;return s.createElement(nh,{overflowMode:Rd.Self,hostClassName:e,content:n},s.createElement("span",o({},_d(r),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),n))},e.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},e.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},e}(s.Component),oh=ht(),ah=function(t){function e(e){var n=t.call(this,e)||this;return n._isRTL=lt(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=oh(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},n._getChartDataText=function(t){return n.props.barChartCustomData?s.createElement("div",{role:"text"},n.props.barChartCustomData(t)):n._getDefaultTextData(t)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",emptyChart:!1},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xt("callout"),n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props,n=e.data,r=e.theme;this._adjustProps();var a=r.palette,i=0;return this.state.emptyChart?s.createElement("div",{id:xt("_HBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(e,n){i=e.chartData&&e.chartData[0]&&e.chartData[0].horizontalBarChartdata.x?e.chartData[0].horizontalBarChartdata.x:0,e.chartData[1]={legend:"",horizontalBarChartdata:{x:e.chartData[0].horizontalBarChartdata.y-i,y:e.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=t.props.variant===_t.AbsoluteScale?null:t._getChartDataText(e),o=t._createBars(e,a),l=t._uniqLineText+"_"+n,c=oh(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!e.chartData[0].data,variant:t.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:c.items},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:t._classNames.chartTitle},e.chartTitle&&s.createElement(rh,{className:t._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),r)),e.chartData[0].data&&t._createBenchmark(e),s.createElement(qd,{direction:md.horizontal,className:t._classNames.chartWrapper},s.createElement("svg",{className:t._classNames.chart,"aria-label":e.chartTitle},s.createElement("g",{id:l,key:l,ref:function(n){t._refCallback(n,e.chartData[0].legend)},onClick:function(){var t=e.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),s.createElement(ko,o({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Et.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Sd,{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}))))},e.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},e.prototype._hoverOn=function(t,e){if((!this.state.isCalloutVisible||this.state.legend!==e.legend)&&this._calloutAnchorPoint!==e){var n=St(this._refArray,(function(t){return t.index===e.legend}));this._calloutAnchorPoint=e,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:e.color,legend:e.legend,refSelected:n.refElement,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,barCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}},e.prototype._hoverOff=function(){},e.prototype._getDefaultTextData=function(t){var e=this.props.culture,n=this.props.chartDataMode||"default",r=t.chartData[0],a=r.horizontalBarChartdata.x,i=r.horizontalBarChartdata.y,l=_d(t.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",o({className:this._classNames.chartTitleRight},l),yd(a,e));case"fraction":return s.createElement("div",o({},l),s.createElement("span",{className:this._classNames.chartTitleRight},yd(a,e)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+yd(i,e)));case"percentage":var c="".concat(yd(Math.round(a/i*100),e),"%");return s.createElement("div",o({className:this._classNames.chartTitleRight},l),c)}},e.prototype._createBenchmark=function(t){var e=t.chartData[0].horizontalBarChartdata.y,n=t.chartData[0].data,r={left:"calc("+Math.round((n||0)/e*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},e.prototype._createBars=function(t,e){var n=this,r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],o=[],a=t.chartData.reduce((function(t,e){return t+(e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0)}),0),i=0,l=0,c=0;t.chartData.map((function(t,e){var n=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(l=n/a*100)<0?l=0:l<1&&0!==l&&(l=1),c+=l}));var u=0!==c?c/100:1,d=t.chartData.map((function(e,c){var d=e.color?e.color:r[Math.floor(4*Math.random()+1)],h=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;c>0&&(i+=l),(l=h/a*100)<0?l=0:l<1&&0!==l?l=1/u:l/=u,o.push(i);var p=e.horizontalBarChartdata.x;if(1===c&&n.props.variant===_t.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:c});var f=t.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:c,x:"".concat(n._isRTL?100-o[c]:o[c],"%"),y:n._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(n._isRTL?-4:4,")"),className:n._classNames.barLabel,"aria-hidden":!0},yi(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:c,x:"".concat(n._isRTL?100-o[c]-l:o[c],"%"),y:0,"data-is-focusable":""!==e.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==e.legend?n._hoverOn.bind(n,p,e):void 0,onFocus:""!==e.legend?n._hoverOn.bind(n,p,e):void 0,role:"img","aria-label":n._getAriaLabel(e),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},e}(s.Component),ih=E(ah,(function(t){var e=t.className,n=t.theme,r=t.width,a=t.barHeight,i=t.showTriangle,s=t.variant,l=t.hideLabels,c=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},e],items:{marginBottom:i||s===_t.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:a||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:o(o({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===_t.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Hn.medium,color:n.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:o(o({},n.fonts.small),{fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==_t.AbsoluteScale||l?0:40}}})),sh={host:"ms-HoverCard-host"},lh=function(){function t(e){this._id=t._uniqueId++,this._parent=e,this._eventRecords=[]}return t.raise=function(e,n,r,o){var a;if(t._isElement(e)){if("undefined"!=typeof document&&document.createEvent){var i=document.createEvent("HTMLEvents");i.initEvent(n,o||!1,!0),ne(i,r),a=e.dispatchEvent(i)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);e.fireEvent("on"+n,s)}}else for(;e&&!1!==a;){var l=e.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],h=0;!1!==a&&h<d.length;h++){var p=d[h];p.objectCallback&&(a=p.objectCallback.call(p.parent,r))}e=o?e.parent:null}return a},t.isObserved=function(t,e){var n=t&&t.__events__;return!!n&&!!n[e]},t.isDeclared=function(t,e){var n=t&&t.__declaredEvents;return!!n&&!!n[e]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,e,n){for(var r in e)e.hasOwnProperty(r)&&this.on(t,r,e[r],n)},t.prototype.on=function(e,n,r,o){var a=this;if(n.indexOf(",")>-1)for(var i=n.split(/[ ,]+/),s=0;s<i.length;s++)this.on(e,i[s],r,o);else{var l=this._parent,c={target:e,eventName:n,parent:l,callback:r,options:o};if((i=e.__events__=e.__events__||{})[n]=i[n]||{count:0},i[n][this._id]=i[n][this._id]||[],i[n][this._id].push(c),i[n].count++,t._isElement(e)){var u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!a._isDisposed){var n;try{if(!1===(n=r.apply(l,t))&&t[0]){var o=t[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,e.addEventListener?e.addEventListener(n,u,o):e.attachEvent&&e.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!a._isDisposed)return r.apply(l,t)};this._eventRecords.push(c)}},t.prototype.off=function(t,e,n,r){for(var o=0;o<this._eventRecords.length;o++){var a=this._eventRecords[o];if(!(t&&t!==a.target||e&&e!==a.eventName||n&&n!==a.callback||"boolean"==typeof r&&r!==a.options)){var i=a.target.__events__,s=i[a.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(a),1)):(s.count-=l.length,delete i[a.eventName][this._id]),s.count||delete i[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(o--,1)}}},t.prototype.raise=function(e,n,r){return t.raise(this._parent,e,n,r)},t.prototype.declare=function(t){var e=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)e[t]=!0;else for(var n=0;n<t.length;n++)e[t[n]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}($d||($d={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Qd||(Qd={}));var ch,uh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function dh(t){var e=(0,s.useRef)();return(0,s.useEffect)((function(){e.current=t})),e.current}function hh(t,e){var n=s.useRef(e);return n.current||(n.current=xt(t)),n.current}function ph(t){var e=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return xo((function(){e.current=t}),[t]),Rr((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.current.apply(void 0,t)}}))}!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(ch||(ch={}));var fh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},gh=s.forwardRef((function(t,e){var n,r,a,i=s.useRef(null),l=s.useRef(null),c=s.useRef(null),u=Re(i,e),d=function(){var t;return null===(t=s.useContext(We).window)||void 0===t?void 0:t.document}(),h=null===(n=dh(!1))||void 0===n||n,p=Yt(fh,t),f=Rr({hasFocus:!1,focusStackId:hh("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,k=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(t){t!==l.current&&t!==c.current&&Wt(t)}),[]),D=ph((function(){if(i.current){var t=f.previouslyFocusedElementInTrapZone;if(x&&t&&At(i.current,t))w(t);else{var e=null;if("string"==typeof C)e=i.current.querySelector(C);else if(C)e=C(i.current);else if(b){var n="string"==typeof b?b:b();e=i.current.querySelector("."+n)}e||(e=Nt(i.current,i.current.firstChild,!1,!1,!1,!0)),e&&w(e)}}})),T=function(t){if(!v&&i.current){var e,n=t===f.hasFocus?(void 0===(e=!1)&&(e=!0),Ft(i.current,c.current,e,!1,!0,!0,!1,!0)):function(t,e,n,r){return void 0===r&&(r=!0),Nt(t,e,r,!1,!1,!0,!1,!0)}(i.current,l.current,0,!1);n&&(n===l.current||n===c.current?D():n.focus())}},M=ph((function(t){if(gh.focusStack=gh.focusStack.filter((function(t){return f.focusStackId!==t})),d){var e=d.activeElement;E||"function"!=typeof(null==t?void 0:t.focus)||!At(i.current,e)&&e!==d.body||w(t)}})),P=ph((function(t){if(!v&&f.focusStackId===gh.focusStack.slice(-1)[0]){var e=t.target;e&&!At(i.current,e)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return s.useEffect((function(){var t=[];return y&&t.push(zt(window,"focus",P,!0)),L||t.push(zt(window,"click",P,!0)),function(){t.forEach((function(t){return t()}))}}),[y,L]),s.useEffect((function(){if(!v&&(h||y)&&i.current){gh.focusStack.push(f.focusStackId);var t=p.elementToFocusOnDismiss||d.activeElement;return _||At(i.current,t)||D(),function(){return M(t)}}}),[y,v]),s.useEffect((function(){if(!v&&k)return Ve(i.current)}),[v,k,i]),r=function(){delete f.previouslyFocusedElementInTrapZone},(a=s.useRef(r)).current=r,s.useEffect((function(){return function(){var t;null===(t=a.current)||void 0===t||t.call(a)}}),[]),function(t,e,n){s.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return e},focus:n}}),[n,e])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",o({"aria-labelledby":p.ariaLabelledBy},te(p,Jt),{ref:u,onFocusCapture:function(t){var e;null===(e=p.onFocusCapture)||void 0===e||e.call(p,t),t.target===l.current?T(!0):t.target===c.current&&T(!1),f.hasFocus=!0,t.target!==t.currentTarget&&t.target!==l.current&&t.target!==c.current&&(f.previouslyFocusedElementInTrapZone=t.target)},onBlurCapture:function(t){var e;null===(e=p.onBlurCapture)||void 0===e||e.call(p,t);var n=t.relatedTarget;null===t.relatedTarget&&(n=d.activeElement),At(i.current,n)||(f.hasFocus=!1)}}),s.createElement("div",o({},A,{ref:l})),g,s.createElement("div",o({},A,{ref:c})))}));gh.displayName="FocusTrapZone",gh.focusStack=[];var mh,vh=function(t){return s.createElement(ko,o({},t),s.createElement(gh,o({disabled:t.hidden},t.focusTrapProps),t.children))},_h=function(t){var e=t.gapSpace,n=void 0===e?0:e,r=t.directionalHint,a=void 0===r?Et.bottomLeftEdge:r,i=t.directionalHintFixed,l=t.targetElement,c=t.firstFocus,u=t.trapFocus,d=t.onLeave,h=t.className,p=t.finalHeight,f=t.content,g=t.calloutProps,m=o(o(o({},te(t,Jt)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:i,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,u?s.createElement(vh,o({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(ko,o({},m),f))},yh=ht(),xh=function(t){function e(e){var n=t.call(this,e)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(t){t.which===Ie&&n.props.onLeave&&n.props.onLeave(t)},n._onRenderCompactCard=function(){return s.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var t=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=t&&n.setState({needsScroll:!0})}))},n._async=new Oe(n),Ld(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(e,t),e.prototype.componentDidMount=function(){this._checkNeedsScroll()},e.prototype.componentWillUnmount=function(){this._async.dispose()},e.prototype.render=function(){var t=this.props,e=t.styles,n=t.compactCardHeight,r=t.expandedCardHeight,a=t.theme,i=t.mode,l=t.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=n+r;this._classNames=yh(e,{theme:a,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:i===ch.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(_h,o({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},e.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},e}(s.Component),bh=E(xh,(function(t){var e,n=t.theme,r=t.needsScroll,o=t.expandedCardFirstFrameRendered,a=t.compactCardHeight,i=t.expandedCardHeight,s=t.className,l=n.palette,c=ar(uh,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(e={},e[Un]={border:"1px solid WindowText"},e)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:a}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:i}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ch={root:"ms-PlainCard-root"},Sh=ht(),Eh=function(t){function e(e){var n=t.call(this,e)||this;return n._onKeyDown=function(t){t.which===Ie&&n.props.onLeave&&n.props.onLeave(t)},Ld(n),n}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.styles,n=t.theme,r=t.className;this._classNames=Sh(e,{theme:n,className:r});var a=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(_h,o({},this.props,{content:a,className:this._classNames.root}))},e}(s.Component),Lh=E(Eh,(function(t){var e,n=t.theme,r=t.className;return{root:[ar(Ch,n).root,{pointerEvents:"auto",selectors:(e={},e[Un]={border:"1px solid WindowText"},e)},r]}}),void 0,{scope:"PlainCard"}),kh=ht(),Ah=function(t){function e(e){var n=t.call(this,e)||this;return n._hoverCard=s.createRef(),n.dismiss=function(t){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),t?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(t){n._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===t.type&&(n._currentMouseTarget=t.currentTarget),n._executeCardOpen(t))},n._executeCardOpen=function(t){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:ch.compact,openMode:"keydown"===t.type?$d.hotKey:$d.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(t,e){if(t){if(!(e instanceof MouseEvent))return;if("keydown"===e.type&&e.which!==Ie)return;n.props.sticky||n._currentMouseTarget!==e.currentTarget&&e.which!==Ie||n.dismiss(!0)}else{if(n.props.sticky&&!(e instanceof MouseEvent)&&e.nativeEvent instanceof MouseEvent&&"mouseleave"===e.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:ch.compact,openMode:$d.hover})},n._instantOpenAsExpanded=function(t){n._async.clearTimeout(n._dismissTimerId),n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ch.expanded}}))},n._setEventListeners=function(){var t=n.props,e=t.trapFocus,r=t.instantOpenOnClick,o=t.eventListenerTarget,a=o?n._getTargetElement(o):n._getTargetElement(n.props.target),i=n._nativeDismissEvent;a&&(n._events.on(a,"mouseenter",n._cardOpen),n._events.on(a,"mouseleave",i),e?n._events.on(a,"keydown",n._cardOpen):(n._events.on(a,"focus",n._cardOpen),n._events.on(a,"blur",i)),r?n._events.on(a,"click",n._instantOpenAsExpanded):(n._events.on(a,"mousedown",i),n._events.on(a,"keydown",i)))},Ld(n),n._async=new Oe(n),n._events=new lh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:ch.compact,openMode:$d.hover},n}return r(e,t),e.prototype.componentDidMount=function(){this._setEventListeners()},e.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},e.prototype.componentDidUpdate=function(t,e){var n=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),e.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:ch.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ch.compact}),this.props.onCardHide&&this.props.onCardHide()))},e.prototype.render=function(){var t=this.props,e=t.expandingCardProps,n=t.children,r=t.id,a=t.setAriaDescribedBy,i=void 0===a||a,l=t.styles,c=t.theme,u=t.className,d=t.type,h=t.plainCardProps,p=t.trapFocus,f=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||xt("hoverCard");this._classNames=kh(l,{theme:c,className:u});var x=o(o({},te(this.props,Jt)),{id:y,trapFocus:!!p,firstFocus:f||_===$d.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=o(o(o({},e),x),{mode:v}),C=o(o({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===Qd.expanding?s.createElement(bh,o({},b)):s.createElement(Lh,o({},C))))},e.prototype._getTargetElement=function(t){switch(typeof t){case"string":return et().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},e.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},e.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Qd.expanding},e}(s.Component),wh=E(Ah,(function(t){var e=t.className,n=t.theme;return{host:[ar(sh,n).host,e]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(mh||(mh={}));var Dh=function(t){var e;void 0===t&&(e={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}});var n,r=t;function a(t,e){var n=r.getCachedMeasurement(t);if(void 0!==n)return n;var o=e();return r.addMeasurementToCache(t,o),o}function i(t,e,o){for(var i=t,s=a(t,o);s>n;){var l=e(i);if(void 0===l)return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};i=l}return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,e,s,l){if(void 0!==l||void 0!==e.dataToMeasure){if(l){if(n&&e.renderedData&&!e.dataToMeasure)return o(o({},e),function(t,e,r,a){var i;return i=t>n?a?{resizeDirection:"grow",dataToMeasure:a(r)}:{resizeDirection:"shrink",dataToMeasure:e}:{resizeDirection:"shrink",dataToMeasure:r},n=t,o(o({},i),{measureContainer:!1})}(l,t.data,e.renderedData,t.onGrowData));n=l}var c=o(o({},e),{measureContainer:!1});return e.dataToMeasure&&(c="grow"===e.resizeDirection&&t.onGrowData?o(o({},c),function(t,e,s,l){for(var c=t,u=a(t,s);u<n;){var d=e(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return o({resizeDirection:"shrink"},i(c,l,s))}(e.dataToMeasure,t.onGrowData,s,t.onReduceData)):o(o({},c),i(e.dataToMeasure,t.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==r.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:o({},t),resizeDirection:"grow",measureContainer:!0}}}},Th=s.createContext({isMeasured:!1}),Mh={position:"fixed",visibility:"hidden"},Ph={position:"relative"};function Fh(t,e){var n;switch(e.type){case"resizeData":return o({},e.value);case"dataToMeasure":return o(o({},t),{dataToMeasure:e.value,resizeDirection:"grow",measureContainer:!0});default:return o(o({},t),((n={})[e.type]=e.value,n))}}var Nh={isMeasured:!0},Vh=s.forwardRef((function(t,e){var n=s.useRef(null),r=Re(n,e),a=function(t,e){var n=Rr(Dh),r=s.useRef(null),a=s.useRef(null),i=s.useRef(!1),l=He(),c=function(t,e,n){var r=Rr((function(){return e.getInitialResizeGroupState(t.data)})),a=s.useReducer(Fh,r),i=a[0],l=a[1];s.useEffect((function(){l({type:"dataToMeasure",value:t.data})}),[t.data]);var c=s.useRef(r);return c.current=o({},i),[c,s.useCallback((function(t){t&&l({type:"resizeData",value:t})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(t,n,e),u=c[0],d=c[1],h=c[2];s.useEffect((function(){var e;u.current.renderedData&&(i.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,u.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var o=void 0;if(u.current.measureContainer&&e.current){var s=e.current.getBoundingClientRect();o=t.direction===mh.vertical?s.height:s.width}var l=n.getNextState(t,u.current,(function(){var e=i.current?a:r;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===mh.vertical?n.height:n.width}),o);d(l)}),e.current)})),Be(ze(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!i.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,r,a,p,f]}(t,n),i=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];s.useImperativeHandle(t.componentRef,(function(){return{remeasure:c}}),[c]);var f=t.className,g=t.onRenderData,m=te(t,Jt,["data"]);return s.createElement("div",o({},m,{className:f,ref:r}),s.createElement("div",{style:Ph},h&&!p&&s.createElement("div",{style:Mh,ref:d},s.createElement(Th.Provider,{value:Nh},g(i))),s.createElement("div",{ref:u,style:p?Mh:void 0,"data-automation-id":"visibleContent"},p?g(i):l&&g(l))))}));Vh.displayName="ResizeGroupBase";var Ih,Oh=Vh;!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"}(Ih||(Ih={}));var Hh=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,e){void 0===e&&(e=!1);var n=t;e||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(e?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=e?Ih.PERSISTED_KEYTIP_ADDED:Ih.KEYTIP_ADDED;lh.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(t,e){var n=this.addParentOverflow(t),r=this._getUniqueKtp(n,e),o=this.keytips[e];o&&(r.keytip.visible=o.keytip.visible,this.keytips[e]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||lh.raise(this,Ih.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(t,e,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[e]:delete this.keytips[e],!n&&delete this.sequenceMapping[t.keySequences.toString()];var r=n?Ih.PERSISTED_KEYTIP_REMOVED:Ih.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||lh.raise(this,r,{keytip:t,uniqueID:e})},t.prototype.enterKeytipMode=function(){lh.raise(this,Ih.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){lh.raise(this,Ih.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(e){return t.keytips[e].keytip}))},t.prototype.addParentOverflow=function(t){var e=i([],t.keySequences,!0);if(e.pop(),0!==e.length){var n=this.sequenceMapping[e.toString()];if(n&&n.overflowSetSequence)return o(o({},t),{overflowSetSequence:n.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,e){lh.raise(this,Ih.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:e})},t.prototype._getUniqueKtp=function(t,e){return void 0===e&&(e=xt()),{keytip:o({},t),uniqueID:e}},t._instance=new t,t}(),Bh=function(t,e,n){for(var r=0,o=t;r<o.length;r++){var a=o[r];n[e.register(a,!0)]=a}},Rh=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];t.unregister(e[o],o,!0),delete e[o]}},Wh=function(t){var e=Hh.getInstance(),n=t.className,r=t.overflowItems,a=t.keytipSequences,i=t.itemSubMenuProvider,l=t.onRenderOverflowButton,c=Rr({}),u=s.useCallback((function(t){return i?i(t):t.subMenuProps?t.subMenuProps.items:void 0}),[i]),d=s.useMemo((function(){var t=[],n=[];return a?null==r||r.forEach((function(r){var i,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(r)?(l.onExecute=e.menuExecute.bind(e,a,null===(i=null==r?void 0:r.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,t.push(l);var c=o(o({},r),{keytipProps:o(o({},s),{overflowSetSequence:a})});null==n||n.push(c)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:t}}),[r,u,e,a]),h=d.modifiedOverflowItems;return function(t,e,n){var r=dh(t);s.useEffect((function(){r&&(Rh(n,r),Bh(e,n,t))})),s.useEffect((function(){return Bh(e,n,t),function(){Rh(n,t)}}),[])}(c,d.keytipsToRegister,e),s.createElement("div",{className:n},l(h))},zh=ht(),Yh=s.forwardRef((function(t,e){var n=s.useRef(null),r=Re(n,e);!function(t,e){s.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,n){var r=!1;return e.current&&(r=Pt(e.current,n)),r},focusElement:function(t){var n=!1;return!!t&&(e.current&&At(e.current,t)&&(t.focus(),n=document.activeElement===t),n)}}}),[e])}(t,n);var a=t.items,i=t.overflowItems,l=t.className,c=t.styles,u=t.vertical,d=t.role,h=t.overflowSide,p=void 0===h?"end":h,f=t.onRenderItem,g=zh(c,{className:l,vertical:u}),m=!!i&&i.length>0;return s.createElement("div",o({},te(t,Jt),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(Wh,o({},t,{className:g.overflowButton})),a&&a.map((function(t,e){return s.createElement("div",{className:g.item,key:t.key,role:"none"},f(t))})),"end"===p&&m&&s.createElement(Wh,o({},t,{className:g.overflowButton})))}));Yh.displayName="OverflowSet";var Uh,qh={flexShrink:0,display:"inherit"},Xh=E(Yh,(function(t){var e=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},e],item:["ms-OverflowSet-item",qh],overflowButton:["ms-OverflowSet-overflowButton",qh]}}),void 0,{scope:"OverflowSet"}),jh=((Uh={})["".concat(pd[pd.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Uh["".concat(pd[pd.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Uh["".concat(pd[pd.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Uh["".concat(pd[pd.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Uh["".concat(pd[pd.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Uh["".concat(pd[pd.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Uh["".concat(pd[pd.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Uh["".concat(pd[pd.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Uh["".concat(fd[fd.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Uh),Kh=function(t){var e=t.svgProps,n=t.pathProps,r=t.shape,a=t.classNameForNonSvg;return-1===Object.keys(jh).indexOf(r)?s.createElement("div",{className:a}):s.createElement("svg",o({width:14,height:14,viewBox:"-1 -1 14 14"},e,{transform:"rotate(".concat(r===pd[pd.diamond]?45:r===pd[pd.pyramid]?180:0,", 0, 0)")}),s.createElement("path",o({d:jh[r]},n)))},Gh=ht(),Zh=function(t){function e(e){var n=t.call(this,e)||this;return n._isLegendSelected=!1,n._onRenderData=function(t){var e=n.props,r=e.overflowProps,a=e.allowFocusOnLegends,i=void 0===a||a,l=e.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(qd,o({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),s.createElement(Xh,o({items:t.primary,overflowItems:t.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:o(o({},u),null==r?void 0:r.styles)})))},n._onReduceData=function(t){if(0!==t.primary.length){var e=i(i([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:e}}},n._onGrowData=function(t){if(0!==t.overflow.length){var e=t.overflow.slice(1);return{primary:i(i([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:e}}},n._canSelectMultipleLegends=function(t){var e=o({},n.state.selectedLegends);e[t.title]?delete e[t.title]:(e[t.title]=!0,Object.keys(e).length===n.props.legends.length&&(e={})),n.setState({selectedLegends:e})},n._canSelectOnlySingleLegend=function(t){n.state.selectedLegend===t.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.title})},n._onClick=function(t){if(t.action){var e=n.props.canSelectMultipleLegends;void 0!==e&&e?n._canSelectMultipleLegends(t):n._canSelectOnlySingleLegend(t),t.action()}},n._onRenderCompactCard=function(t){var e=n.props,r=e.allowFocusOnLegends,a=void 0===r||r,i=e.className,l=e.styles,c=e.theme,u=e.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=Gh(l,{theme:c,className:i});return t.renderData.forEach((function(t,e){var r=n._renderButton(t,e,!0);h.push(r)})),s.createElement(qd,o({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:md.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(t){var e=n.props.allowFocusOnLegends,r=void 0===e||e,a=[];t.forEach((function(t,e){a.push({key:e.toString(),name:t.title,onClick:t.action})}));var i={renderData:t},l=n.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=Gh(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:i},g=h||"more";return s.createElement(wh,{type:Qd.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var e=St(t,(function(t){return t.title===n.state.activeLegend}));e&&(n.setState({activeLegend:""}),e.onMouseOutAction&&e.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",o({className:p.overflowIndicationTextStyle,ref:function(t){return n._hoverCardRef=t}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":"".concat(a.length," ").concat(g)},{"data-is-focusable":r}),a.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(t){t.hoverAction&&(n.setState({activeLegend:t.title}),t.hoverAction())},n._onLeave=function(t){t.onMouseOutAction&&(n.setState({activeLegend:""}),t.onMouseOutAction())},n._renderButton=function(t,e,r){var a=n.props.allowFocusOnLegends,i=void 0===a||a,l={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},c=n._getColor(l.title,l.color),u=n.props,d=u.theme,h=u.className,p=u.styles,f=u.canSelectMultipleLegends,g=void 0!==f&&f,m=Gh(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,c);return s.createElement("button",o({},i&&{"aria-selected":g?!!n.state.selectedLegends[l.title]:n.state.selectedLegend===l.title,role:"option","aria-label":"".concat(l.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&o({},t.nativeButtonProps),{key:e,className:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":i}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Gh(r,{theme:e,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):s.createElement(Oh,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},e.prototype._generateData=function(){var t=this,e=this.props.allowFocusOnLegends,n=void 0===e||e;return{primary:this.props.legends.map((function(e,r){return o(o({},n&&{nativeButtonProps:te(e,Qt,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":r+1}),{title:e.title,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,color:e.color,shape:e.shape,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity,key:r})})),overflow:[]}},e.prototype._getShape=function(t,e,n){var r={className:t.shape},o={fill:n,strokeWidth:2,stroke:e.color};return s.createElement(Kh,{svgProps:r,pathProps:o,shape:e.shape,classNameForNonSvg:t.rect})},e.prototype._getColor=function(t,e){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===t||this.state.selectedLegends[t]?e:n.white:this.state.activeLegend===t||""===this.state.activeLegend?e:n.white},e}(s.Component),$h=E(Zh,(function(t){var e,n,r=t.className,a=t.theme,i=t.isLineLegendInBarChart,s=void 0!==i&&i,l=a,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:a.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[jn(a,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(e={},e[Un]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===c.white?"0.6":""},e),width:"12px",height:s?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==a?void 0:a.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===c.white?"0.6":t.opacity?t.opacity:"",selectors:(n={},n[Un]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},n)},text:o(o({},u.small),{lineHeight:"16px",color:null==a?void 0:a.semanticColors.bodyText,opacity:t.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:c.black},overflowIndicationTextStyle:[jn(a,d),o(o({cursor:"pointer",color:null==a?void 0:a.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[jn(a,d)]}}}}));function Qh(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jh(t){return function(){return t}}function tp(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ep(t){return t}Array.prototype.slice;var np=Math.abs,rp=Math.atan2,op=Math.cos,ap=Math.max,ip=Math.min,sp=Math.sin,lp=Math.sqrt,cp=1e-12,up=Math.PI,dp=up/2,hp=2*up;function pp(t){return t>=1?dp:t<=-1?-dp:Math.asin(t)}function fp(){var t=ep,e=tp,n=null,r=Jh(0),o=Jh(hp),a=Jh(0);function i(i){var s,l,c,u,d,h=(i=Qh(i)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(hp,Math.max(-hp,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,a.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+t(i[s],s,i))>0&&(p+=d);for(null!=e?f.sort((function(t,n){return e(g[t],g[n])})):null!=n&&f.sort((function(t,e){return n(i[t],i[e])})),s=0,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:i[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return i.value=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),i):t},i.sortValues=function(t){return arguments.length?(e=t,n=null,i):e},i.sort=function(t){return arguments.length?(n=t,e=null,i):n},i.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jh(+t),i):r},i.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jh(+t),i):o},i.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Jh(+t),i):a},i}var gp=Math.PI,mp=2*gp,vp=1e-6,_p=mp-vp;function yp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xp(){return new yp}yp.prototype=xp.prototype={constructor:yp,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-t,l=r-e,c=a-t,u=i-e,d=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>vp)if(Math.abs(u*s-l*c)>vp&&o){var h=n-a,p=r-i,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((gp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>vp&&(this._+="L"+(t+y*c)+","+(e+y*u)),this._+="A"+o+","+o+",0,0,"+ +(u*h>c*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,o,a){t=+t,e=+e;var i=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+i,c=e+s,u=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vp||Math.abs(this._y1-c)>vp)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%mp+mp),d>_p?this._+="A"+n+","+n+",0,1,"+u+","+(t-i)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vp&&(this._+="A"+n+","+n+",0,"+ +(d>=gp)+","+u+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var bp=xp;function Cp(t){return t.innerRadius}function Sp(t){return t.outerRadius}function Ep(t){return t.startAngle}function Lp(t){return t.endAngle}function kp(t){return t&&t.padAngle}function Ap(t,e,n,r,o,a,i){var s=t-n,l=e-r,c=(i?a:-a)/lp(s*s+l*l),u=c*l,d=-c*s,h=t+u,p=e+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-a,C=h*g-f*p,S=(y<0?-1:1)*lp(ap(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,k=(C*y+_*S)/x,A=(-C*_+y*S)/x,w=E-m,D=L-v,T=k-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=k,L=A),{cx:E,cy:L,x01:-u,y01:-d,x11:E*(o/b-1),y11:L*(o/b-1)}}function wp(){var t=Cp,e=Sp,n=Jh(0),r=null,o=Ep,a=Lp,i=kp,s=null;function l(){var l,c,u,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=o.apply(this,arguments)-dp,f=a.apply(this,arguments)-dp,g=np(f-p),m=f>p;if(s||(s=l=bp()),h<d&&(c=h,h=d,d=c),h>cp)if(g>hp-cp)s.moveTo(h*op(p),h*sp(p)),s.arc(0,0,h,p,f,!m),d>cp&&(s.moveTo(d*op(f),d*sp(f)),s.arc(0,0,d,f,p,m));else{var v,_,y=p,x=f,b=p,C=f,S=g,E=g,L=i.apply(this,arguments)/2,k=L>cp&&(r?+r.apply(this,arguments):lp(d*d+h*h)),A=ip(np(h-d)/2,+n.apply(this,arguments)),w=A,D=A;if(k>cp){var T=pp(k/d*sp(L)),M=pp(k/h*sp(L));(S-=2*T)>cp?(b+=T*=m?1:-1,C-=T):(S=0,b=C=(p+f)/2),(E-=2*M)>cp?(y+=M*=m?1:-1,x-=M):(E=0,y=x=(p+f)/2)}var P=h*op(y),F=h*sp(y),N=d*op(C),V=d*sp(C);if(A>cp){var I,O=h*op(x),H=h*sp(x),B=d*op(b),R=d*sp(b);if(g<up&&(I=function(t,e,n,r,o,a,i,s){var l=n-t,c=r-e,u=i-o,d=s-a,h=d*l-u*c;if(!(h*h<cp))return[t+(h=(u*(e-a)-d*(t-o))/h)*l,e+h*c]}(P,F,B,R,O,H,N,V))){var W=P-I[0],z=F-I[1],Y=O-I[0],U=H-I[1],q=1/sp(((u=(W*Y+z*U)/(lp(W*W+z*z)*lp(Y*Y+U*U)))>1?0:u<-1?up:Math.acos(u))/2),X=lp(I[0]*I[0]+I[1]*I[1]);w=ip(A,(d-X)/(q-1)),D=ip(A,(h-X)/(q+1))}}E>cp?D>cp?(v=Ap(B,R,P,F,h,D,m),_=Ap(O,H,N,V,h,D,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),D<A?s.arc(v.cx,v.cy,D,rp(v.y01,v.x01),rp(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,D,rp(v.y01,v.x01),rp(v.y11,v.x11),!m),s.arc(0,0,h,rp(v.cy+v.y11,v.cx+v.x11),rp(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,D,rp(_.y11,_.x11),rp(_.y01,_.x01),!m))):(s.moveTo(P,F),s.arc(0,0,h,y,x,!m)):s.moveTo(P,F),d>cp&&S>cp?w>cp?(v=Ap(N,V,O,H,d,-w,m),_=Ap(P,F,B,R,d,-w,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<A?s.arc(v.cx,v.cy,w,rp(v.y01,v.x01),rp(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,w,rp(v.y01,v.x01),rp(v.y11,v.x11),!m),s.arc(0,0,d,rp(v.cy+v.y11,v.cx+v.x11),rp(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,w,rp(_.y11,_.x11),rp(_.y01,_.x01),!m))):s.arc(0,0,d,C,b,m):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-up/2;return[op(r)*n,sp(r)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Jh(+t),l):n},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Jh(+t),l):r},l.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jh(+t),l):o},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Jh(+t),l):a},l.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:Jh(+t),l):i},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}var Dp=function(t){var e=t.color,n=t.href,r=t.theme;return{root:{fill:e,cursor:n?"pointer":"default",stroke:zn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}},Tp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.currentRef=s.createRef(),e._isRTL=lt(),e._hoverOff=function(){e.props.hoverLeaveCallback()},e._onBlur=function(){e.props.onBlurCallback()},e._getAriaLabel=function(){var t,n=e.props.data.data,r=n.xAxisCalloutData||n.legend,o=n.yAxisCalloutData||n.data||0;return(null===(t=n.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},e._renderArcLabel=function(t){var n=e.props,r=n.arc,o=n.data,a=n.innerRadius,i=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue;if(n.hideLabels||Math.abs(o.endAngle-o.startAngle)<Math.PI/12)return null;var u=r.centroid(o),d=u[0],h=u[1],p=Math.sqrt(d*d+h*h),f=Math.max(a,i)+2,g=(o.startAngle+o.endAngle)/2,m=o.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==e._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},l?_i(".0%")(0===c?0:m/c):yi(m<1e3?".2~":".1",m)(m))},e}return r(e,t),e.getDerivedStateFromProps=function(t){return Mp(t),null},e.prototype.updateChart=function(t){Mp(t)},e.prototype.render=function(){var t,e=this.props,n=e.arc,r=e.href,o=e.focusedArcId,a=ht()(Dp,{color:this.props.color,href:r,theme:this.props.theme}),i=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!o&&o===i&&s.createElement("path",{id:i+"focusRing",d:n(this.props.focusData),className:a.focusRing}),s.createElement("path",{id:i,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,i),className:a.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(a.arcLabel))},e.prototype._onFocus=function(t,e){this.props.onFocusCallback(t,e,this.currentRef.current)},e.prototype._hoverOn=function(t,e){e.persist(),this.props.hoverOnCallback(t,e)},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={arc:wp()},e}(s.Component);function Mp(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Pp=function(t){var e,n=t.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(e={},e[qn]={fill:"rgb(179, 179, 179)"},e)}}},Fp=ht(),Np=function(t){function e(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e,r,o){var a=t&&t.data&&t.data.color;return s.createElement(Tp,{key:e,data:t,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:o,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(t,e,r){n.props.onFocusCallback(t,e,r)},n._computeTotalValue=function(){var t=0;return n.props.data.forEach((function(e){t+=e.data})),t},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=fp().sort(null).value((function(t){return t.data})).padAngle(0),n}return r(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=this._pieForFocusRing(r),a=n(r),i="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=Fp(Pp,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:i},a.map((function(e,n){return t.arcGenerator(e,n,o[n],t.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},e.prototype.componentDidUpdate=function(){var t,e,n;t=Fp(Pp,{theme:this.props.theme}).insideDonutString,e=2*this.props.innerRadius-5,n=0,Xu(".".concat(t)).each((function(){for(var t=zu(this),r=t.text().split(/\s+/).reverse(),o="",a=[],i=0,s=t.attr("y"),l=t.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em");o=r.pop();)a.push(o),l.text(a.join(" ")+" "),l.node().getComputedTextLength()>e&&a.length>1&&(a.pop(),l.text(a.join(" ")+" "),a=[o],l=t.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em").text(o));n+=1}))},e.prototype._hoverCallback=function(t,e){this.props.hoverOnCallback(t,e)},e.defaultProps={pie:fp().sort(null).value((function(t){return t.data})).padAngle(.02)},e}(s.Component),Vp=ht(),Ip=function(t){function e(e){var n=t.call(this,e)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(t,e,r){n._currentHoverElement=r,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:e,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},n._hoverCallback=function(t,e){n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n._currentHoverElement=e,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:"",emptyChart:!1},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=xt("callout"),n._uniqText=xt("_Pie_"),n}return r(e,t),e.getDerivedStateFromProps=function(t,e){var n,r;return t.width&&t.width!==e._width&&(n={_width:t.width}),t.height&&t.height!==e._height&&(r={_height:t.height-40}),o(o({},n),r)},e.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40});var t=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t,e=this,n=this.props,r=n.data,a=n.hideLegend,i=void 0!==a&&a,l=this.props.theme.palette;this._classNames=Vp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(r,l),u=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-u,this.state._height-d)/2,p=r&&(null===(t=r.chartData)||void 0===t?void 0:t.filter((function(t){return t.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return this.state.emptyChart?s.createElement("div",{id:xt("_DonutChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t},onMouseLeave:this._handleChartMouseLeave},s.createElement(qd,{direction:md.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(t){return e._setViewBox(t)}},s.createElement(Np,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(ko,o({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Et.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!i&&s.createElement("div",{className:this._classNames.legendContainer},c))},e.prototype._setViewBox=function(t){var e,n;if(null!==t){var r=t.parentElement?t.parentElement.clientWidth:this.state._width,o=t.parentElement&&(null===(e=t.parentElement)||void 0===e?void 0:e.offsetHeight)>this.state._height?null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,a="0 0 ".concat(r," ").concat(o);t.setAttribute("viewBox",a)}},e.prototype._createLegends=function(t,e){var n=this,r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=t&&t.chartData.map((function(t,e){var o=t.color?t.color:r[Math.floor(4*Math.random()+1)];return{title:t.legend,color:o,action:function(){n.state.selectedLegend===t.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement($h,o({legends:a,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},e.prototype._hoverLeave=function(){},e.prototype._valueInsideDonut=function(t,e){var n=this._getHighlightedLegend();if(void 0===t||""===n||this.state.showHover)return t;var r=t;return e.map((function(t,e){t.legend===n&&(r=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),r},e.prototype._toLocaleString=function(t){var e=yd(t,this.props.culture);return e?null==e?void 0:e.toString():t},e.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},e.defaultProps={innerRadius:0,hideLabels:!0},e}(s.Component),Op=E(Ip,(function(t){var e=t.className,n=t.width,r=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},e],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}}));function Hp(t){this._context=t}function Bp(t){return new Hp(t)}function Rp(t){return t[0]}function Wp(t){return t[1]}function zp(t,e){var n=Jh(!0),r=null,o=Bp,a=null;function i(i){var s,l,c,u=(i=Qh(i)).length,d=!1;for(null==r&&(a=o(c=bp())),s=0;s<=u;++s)!(s<u&&n(l=i[s],s,i))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(l,s,i),+e(l,s,i));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?Rp:Jh(t),e="function"==typeof e?e:void 0===e?Wp:Jh(e),i.x=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),i):t},i.y=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),i):e},i.defined=function(t){return arguments.length?(n="function"==typeof t?t:Jh(!!t),i):n},i.curve=function(t){return arguments.length?(o=t,null!=r&&(a=o(r)),i):o},i.context=function(t){return arguments.length?(null==t?r=a=null:a=o(r=t),i):r},i}Hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Yp=ht(),Up=function(t){function e(e){var n,r,a,i,l,c,u,d,h,p,f,g,m,v,_=this;return(_=t.call(this,e)||this).minLegendContainerHeight=32,_._isRtl=lt(),_._multiValueCallout=function(t){var e=_._yValueHoverSubCountsExists(t.YValueHover);return s.createElement("div",{className:_._classNames.calloutContentRoot},s.createElement("div",{className:_._classNames.calloutDateTimeContainer,style:e?{marginBottom:"11px"}:{}},s.createElement("div",o({className:_._classNames.calloutContentX},_d(t.xAxisCalloutAccessibilityData,"text",!1)),yd(t.hoverXValue,_.props.culture))),s.createElement("div",{className:_._classNames.calloutInfoContainer,style:e?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,n,r){var a=n+1===r.length,i=t.shouldDrawBorderBottom,l=void 0!==i&&i;return s.createElement("div",o({},_d(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(n),style:o(e?{display:"inline-block"}:{},l&&{borderBottom:"1px solid ".concat(_.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),_._getCalloutContent(t,n,e,a))})),!!t.descriptionMessage&&s.createElement("div",{className:_._classNames.descriptionMessage},t.descriptionMessage)))},_._getData=function(t,e){_.props.getGraphData&&_.props.getGraphData(t,e,_.state.containerHeight-_.state._removalValueForTextTuncate,_.state.containerWidth,_.xAxisElement,_.yAxisElement)},_._onChartLeave=function(){_.props.onChartMouseLeave&&_.props.onChartMouseLeave()},_.state={containerHeight:0,containerWidth:0,_width:_.props.width||600,_height:_.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},_.idForGraph=xt("chart_"),_.margins={top:null!==(r=null===(n=_.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(i=null===(a=_.props.margins)||void 0===a?void 0:a.bottom)&&void 0!==i?i:35,right:_._isRtl?null!==(c=null===(l=_.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(d=null===(u=_.props.margins)||void 0===u?void 0:u.right)&&void 0!==d?d:null===(h=_.props)||void 0===h?void 0:h.secondaryYScaleOptions)?40:20,left:_._isRtl?(null!==(f=null===(p=_.props.margins)||void 0===p?void 0:p.right)&&void 0!==f?f:null===(g=_.props)||void 0===g?void 0:g.secondaryYScaleOptions)?40:20:null!==(v=null===(m=_.props.margins)||void 0===m?void 0:m.left)&&void 0!==v?v:40},_}return r(e,t),e.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=ld(this.props.points,this.yAxisElement);this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},e.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},e.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===Gu.StringAxis){var e=function(t){var e=t.node,n=t.xAxis;if(null!==e&&null!==n){var r=0,o=[];zu(e).call(n).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var e=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===e.length&&(o.push(e[0]),this.setAttribute("transform","translate(".concat(e[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),a=n&&n.height;a>r&&(r=a)}));var a=0;return zu(e).call(n).selectAll(".tick").each((function(){o.length>a&&(this.setAttribute("transform","translate(".concat(o[a],",").concat(r/2,")rotate(-45)")),a+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==e+this.margins.bottom&&e>0&&this.setState({_removalValueForTextTuncate:e+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=ld(this.props.points,this.yAxisElement);this.state.startFromX!==n&&this.setState({startFromX:n})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},e.prototype.render=function(){var t,e,n,r,a,i,l=this,c=this.props,u=c.calloutProps,d=c.points,h=c.chartType,p=c.chartHoverProps,f=c.svgFocusZoneProps,g=c.svgProps,m=c.culture,v=c.dateLocalizeOptions,_=c.timeFormatLocale,y=c.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var x=o({},this.margins);this.props.chartType===Ku.HorizontalBarChartWithAxis&&(this._isRtl?x.right+=this.state.startFromX:x.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(x);var b,C,S,E={domainNRangeValues:dd(d,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,h,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},L={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:hd(d,h,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0};switch(this.props.xAxisType){case Gu.NumericAxis:b=ad(E,this.props.chartType,m);break;case Gu.DateAxis:b=function(t,e,n,r,o,a){var i=t.domainNRangeValues,s=t.xAxisElement,l=t.tickPadding,c=void 0===l?6:l,u=t.xAxistickSize,d=void 0===u?6:u,h=t.xAxisCount,p=void 0===h?6:h,f=Ec().domain([i.dStartValue,i.dEndValue]).range([i.rStartValue,i.rEndValue]),g=Wo(f).tickSize(d).tickPadding(c).ticks(p);if(a)g.tickFormat((function(t,e){return a(t)}));else if(n&&r)g.tickFormat((function(t,e){return t.toLocaleString(n,r)}));else if(o){var m=al(o);g.tickFormat((function(t,e){return function(t,e){var n=e.format(".%L"),r=e.format(":%S"),o=e.format("%I:%M"),a=e.format("%I %p"),i=e.format("%a %d"),s=e.format("%b %d"),l=e.format("%B"),c=e.format("%Y");return(Qu(t)<t?n:td(t)<t?r:nd(t)<t?o:$s(t)<t?a:od(t)<t?Ys(t)<t?i:s:Js(t)<t?l:c)(t)}(t,m)}))}return e.tickValues&&g.tickValues(e.tickValues),void 0===n&&e.tickFormat&&g.tickFormat(sl(e.tickFormat)),s&&zu(s).call(g).selectAll("text").attr("aria-hidden","true"),f}(E,this.props.tickParams,m,v,_,y);break;case Gu.StringAxis:b=function(t,e,n,r){var o=t.domainNRangeValues,a=t.xAxisCount,i=void 0===a?6:a,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,u=void 0===c?10:c,d=t.xAxisPadding,h=void 0===d?.1:d,p=t.xAxisInnerPadding,f=t.xAxisOuterPadding,g=Fc().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Wo(g).tickSize(l).tickPadding(u).ticks(i).tickFormat((function(t,e){return yd(n[e],r)}));return t.xAxisElement&&zu(t.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),g}(E,this.props.tickParams,this.props.datasetForXAxisDomain,m);break;default:b=ad(E,this.props.chartType,m)}if(this._xScale=b,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var k={node:this.xAxisElement,xAxis:b,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},A=b&&function(t){var e=t.node,n=t.xAxis,r=t.noOfCharsToTruncate,o=t.showXAxisLablesTooltip;if(null!==e){var a=zu(e).call(n),i=0,s=[];return a.selectAll(".tick text").each((function(){var t=zu(this),e=t.text(),n="".concat(t.text().slice(0,r),"..."),l=t.text().length,c=t.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=t.attr("y"),f=parseFloat(t.attr("dy")),g=t.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",e);if(o&&l>r)g=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(o&&l<=r)g=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(e);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;a.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),e=t&&t.getBoundingClientRect(),n=e&&e.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),i=(m-_)*v}})),i>0?i:0}}(k);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==A&&this.setState({_removalValueForTextTuncate:A,isRemoveValCalculated:!1})}var w,D,T,M,P,F,N={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Zu.StringAxis?C=function(t,e,n,r,o,a){return r===Ku.HorizontalBarChartWithAxis?function(t,e,n,r,o){var a=t.containerHeight,i=t.tickPadding,s=void 0===i?12:i,l=t.margins,c=t.yAxisTickFormat,u=t.yAxisElement,d=Fc().domain(e).range([a-l.bottom-r/2,l.top+r/2]),h=(n?Ro(d):zo(d)).tickPadding(s).ticks(e);return c&&h.tickFormat(c),u&&zu(u).call(h).selectAll("text"),d}(t,e,n,o):function(t,e,n){var r=t.containerHeight,o=t.tickPadding,a=void 0===o?12:o,i=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,u=void 0===c?0:c,d=Fc().domain(e).range([r-i.bottom,i.top]).padding(u),h=(n?Ro(d):zo(d)).tickPadding(a).tickValues(e).tickSize(0);return s&&h.tickFormat(s),l&&zu(l).call(h).selectAll("text"),d}(t,e,n)}(L,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(t=this.props)||void 0===t?void 0:t.secondaryYScaleOptions)&&(S=id({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===(e=this.props.secondaryYScaleOptions)||void 0===e?void 0:e.yMinValue)||0,yMaxValue:null!==(r=null===(n=this.props.secondaryYScaleOptions)||void 0===n?void 0:n.yMaxValue)&&void 0!==r?r:100,tickPadding:10,maxOfYVal:null!==(i=null===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMaxValue)&&void 0!==i?i:100,yMinMaxValues:hd(d,h),yAxisPadding:this.props.yAxisPadding},this._isRtl,N,h,this.props.barwidth,!0)),C=id(L,this._isRtl,N,h,this.props.barwidth)),this.props.chartType===Ku.HorizontalBarChartWithAxis&&C&&(w=this.yAxisElement,D=C,T=this.props.noOfCharsToTruncate||4,M=this.props.showYAxisLablesTooltip||!1,P=this.state.startFromX,F=this._isRtl,null!==w&&zu(w).call(D).selectAll(".tick text").each((function(){var t=zu(this),e=t.text(),n="".concat(t.text().slice(0,T),"..."),r=t.text().length,o=M?1.5:1,a=t.attr("y"),i=t.attr("x"),s=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",i).attr("y",a).attr("id","BaseSpan").attr("dy",s+"em").attr("data-",e),M&&r>T?t.append("tspan").attr("id","showDots").attr("x",i).attr("y",a).attr("dy",s).attr("dx",o+0+"em").text(n):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",F?P:i).attr("y",a).attr("dx",o+0+"em").text(e)}))),this.props.getAxisData&&this.props.getAxisData(N),this._getData(b,C),this._classNames=Yp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var V,I={width:this.state.containerWidth,height:this.state.containerHeight},O=this.props.children(o(o({},this.state),{xScale:b,yScale:C,yScaleSecondary:S}));return V=this.props.focusZoneDirection===md.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:md.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return l.chartContainer=t},onMouseLeave:this._onChartLeave},s.createElement(qd,o({direction:V},f),s.createElement("svg",o({width:I.width,height:I.height,"aria-label":this.props.chartTitle,style:{display:"block"}},g),s.createElement("g",{ref:function(t){l.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(I.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),s.createElement("g",{ref:function(t){l.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?I.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&s.createElement("g",{ref:function(t){l.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:I.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),O)),!this.props.hideLegend&&s.createElement("div",{ref:function(t){return l.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(ko,o({hidden:!(!this.props.hideTooltip&&u.isCalloutVisible),shouldUpdateWhenHidden:!0},u),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(u),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(Sd,o({XValue:u.XValue,Legend:u.legend,YValue:u.YValue,color:u.color,culture:this.props.culture},p))))},e.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},e.prototype._getCalloutContent=function(t,e,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,i=Yp(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:a}),l=this.props.culture,c=yd(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var u=t.yAxisCalloutData;return s.createElement("div",{style:o},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(u).map((function(t){return s.createElement("div",{key:t,className:i.calloutBlockContainer},s.createElement("div",{className:i.calloutlegendText}," ",yd(t,l)),s.createElement("div",{className:i.calloutContentY},yd(u[t],l)))})))}return s.createElement("div",{style:n?o:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),s.createElement("div",{id:"".concat(e,"_").concat(t.y),className:i.calloutBlockContainer},a&&s.createElement(Kh,{svgProps:{className:i.shapeStyles},pathProps:{fill:t.color},shape:pd[t.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",t.legend),s.createElement("div",{className:i.calloutContentY},yd(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,l)))))},e.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e;if(t.props.hideLegend)e=0;else{var o=t.legendContainer&&getComputedStyle(t.legendContainer);e=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var a=t.props.parentRef?t.props.parentRef:t.chartContainer,i=a.getBoundingClientRect().width,s=a.getBoundingClientRect().height>e?a.getBoundingClientRect().height:350;(n!==i||r!==s-e)&&t.setState({containerWidth:i,containerHeight:s-e})}}))},e}(s.Component),qp=function(){var t,e=d();return!!(null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&e.navigator.userAgent.indexOf("rv:11.0")>-1}(),Xp=E(Up,(function(t){var e,n,r,a,i,s,l,c,u=t.className,d=t.theme,h=t.isRtl,p=t.shouldHighlight,f=t.href,g=t.lineColor,m=void 0===g?"transparent":g,v=t.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[qn]={fill:"rgb(179, 179, 179)"},e)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(a={},a[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},a)},g:[h&&!qp&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[o(o({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(i={},i[Un]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:o(o({},_.small),{lineHeight:"16px",selectors:(s={},s[qn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[o(o({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[qn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[qn]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),jp=nr((function(t){return nr((function(e){var n=nr((function(t){return function(n){return e(n,t)}}));return function(r,o){return t(r,o?n(o):e)}}))}));function Kp(t,e){return jp(t)(e)}var Gp=function(t){if(void 0===t)return 0;var e=0;return"scrollTop"in t?e=t.scrollTop:"scrollY"in t&&(e=t.scrollY),Math.ceil(e)},Zp=function(t,e){"scrollTop"in t?t.scrollTop=e:"scrollY"in t&&t.scrollTo(t.scrollX,e)},$p="spacer-",Qp={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Jp=function(t){return t.getBoundingClientRect()},tf=Jp,ef=Jp,nf=function(t){function e(e){var n=t.call(this,e)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(t,e){return t.items!==n.props.items||t.renderCount!==n.props.renderCount||t.startIndex!==n.props.startIndex||t.version!==n.props.version||!e.hasMounted&&n.props.renderEarly&&c()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(t,e)):e},n._onRenderRoot=function(t){var e=t.rootRef,n=t.surfaceElement,r=t.divProps;return s.createElement("div",o({ref:e},r),n)},n._onRenderSurface=function(t){var e=t.surfaceRef,n=t.pageElements,r=t.divProps;return s.createElement("div",o({ref:e},r),n)},n._onRenderPage=function(t,e){for(var r,i=n.props,l=i.onRenderCell,c=i.onRenderCellConditional,u=i.role,d=t.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=a(t,["page"]),m=void 0===u?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=c?c:l,S=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;c&&!S||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},S))}return s.createElement("div",o({},g),v)},Ld(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Oe(n),n._events=new lh(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(e,t),e.getDerivedStateFromProps=function(t,e){return e.getDerivedStateFromProps(t,e)},Object.defineProperty(e.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),e.prototype.scrollToIndex=function(t,e,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),a=this._allowedRect,i=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,a),u=c.height;if(s=c.itemCount,l<=t&&l+s>t){if(e&&this._scrollElement){for(var d=ef(this._scrollElement),h=Gp(this._scrollElement),p={top:h,bottom:h+d.height},f=t-l,g=0;g<f;++g)i+=e(l+g);var m=i+e(t);switch(n){case 1:return void Zp(this._scrollElement,i);case 2:return void Zp(this._scrollElement,m-d.height);case 3:return void Zp(this._scrollElement,(i+m-d.height)/2)}if(i>=p.top&&m<=p.bottom)return;i<p.top||m>p.bottom&&(i=m-d.height)}return void(this._scrollElement&&Zp(this._scrollElement,i))}i+=u}},e.prototype.getStartItemIndexInView=function(t){for(var e=0,n=this.state.pages||[];e<n.length;e++){var r=n[e];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!t){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var a=0,i=r.startIndex;i<r.startIndex+r.itemCount;i++){if(o=t(i),r.top+a<=this._scrollTop&&this._scrollTop<r.top+a+o)return i;a+=o}}}return 0},e.prototype.componentDidMount=function(){this._scrollElement=ie(this._root.current),this._scrollTop=0,this.setState(o(o({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},e.prototype.componentDidUpdate=function(t,e){var n=this.props,r=this.state;this.state.pagesVersion!==e.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},e.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},e.prototype.shouldComponentUpdate=function(t,e){var n=this.state.pages,r=e.pages,o=!1;if(!e.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&n.length===r.length)for(var a=0;a<n.length;a++){var i=n[a],s=r[a];if(i.key!==s.key||i.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},e.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)},e.prototype.getTotalListHeight=function(){return this._surfaceRect.height},e.prototype.render=function(){for(var t=this.props,e=t.className,n=t.role,r=void 0===n?"list":n,a=t.onRenderSurface,i=t.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=te(this.props,Jt),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=a?Kp(a,this._onRenderSurface):this._onRenderSurface;return(i?Kp(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:o(o({},u),{className:ee("ms-List",e),role:c.length>0?r:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},e.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var e=t.onShouldVirtualize;return!e||e(t)},e.prototype._invalidatePageCache=function(){this._pageCache={}},e.prototype._renderPage=function(t){var e,n=this,r=this.props.usePageCache;if(r&&(e=this._pageCache[t.key])&&e.pageElement)return e.pageElement;var o=this._getPageStyle(t),a=this.props.onRenderPage,i=(void 0===a?this._onRenderPage:a)({page:t,className:"ms-List-page",key:t.key,ref:function(e){n._pageRefs[t.key]=e},style:o,role:"presentation"},this._onRenderPage);return r&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:i}),i},e.prototype._getPageStyle=function(t){var e=this.props.getPageStyle;return o(o({},e?e(t):{}),t.items?{}:{height:t.height})},e.prototype._onFocus=function(t){for(var e=t.target;e!==this._surface.current;){var n=e.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}e=Lt(e)}},e.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},e.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},e.prototype._onAsyncScroll=function(){var t,e;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,e=this._materializedRect,t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right)||this.setState(this._updatePages(this.props,this.state))},e.prototype._onAsyncIdle=function(){var t=this.props,e=t.renderedWindowsAhead,n=t.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,a=Math.min(e,r+1),i=Math.min(n,o+1);a===r&&i===o||(this._requiredWindowsAhead=a,this._requiredWindowsBehind=i,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(e>a||n>i)&&this._onAsyncIdle()},e.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},e.prototype._onAsyncResize=function(){this.forceUpdate()},e.prototype._updatePages=function(t,e){this._requiredRect||this._updateRenderRects(t,e);var n=this._buildPages(t,e),r=e.pages;return this._notifyPageChanges(r,n.pages,this.props),o(o(o({},e),n),{pagesVersion:{}})},e.prototype._notifyPageChanges=function(t,e,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var a={},i=0,s=t;i<s.length;i++)(u=s[i]).items&&(a[u.startIndex]=u);for(var l=0,c=e;l<c.length;l++){var u;(u=c[l]).items&&(a[u.startIndex]?delete a[u.startIndex]:this._onPageAdded(u))}for(var d in a)a.hasOwnProperty(d)&&this._onPageRemoved(a[d])}},e.prototype._updatePageMeasurements=function(t){var e=!1;if(!this._shouldVirtualize())return e;for(var n=0;n<t.length;n++){var r=t[n];r.items&&(e=this._measurePage(r)||e)}return e},e.prototype._measurePage=function(t){var e=!1,n=this._pageRefs[t.key],r=this._cachedPageHeights[t.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(e=t.height!==o.height,t.height=o.height,this._cachedPageHeights[t.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return e},e.prototype._onPageAdded=function(t){var e=this.props.onPageAdded;e&&e(t)},e.prototype._onPageRemoved=function(t){var e=this.props.onPageRemoved;e&&e(t)},e.prototype._buildPages=function(t,e){var n=t.renderCount,r=t.items,a=t.startIndex,i=t.getPageHeight;n=this._getRenderCount(t);for(var s=o({},Qp),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=a+n,f=this._shouldVirtualize(t),g=0===this._estimatedPageHeight&&!i,m=this._allowedRect,v=function(n){var o=_._getPageSpecification(t,n,m),i=o.height,v=o.data,y=o.key;c=o.itemCount;var x,b,C=u+i-1,S=Ct(e.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,E=!m||C>=m.top&&u<=m.bottom,L=!_._requiredRect||C>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(L||E&&S)||!f||h>=n&&h<n+c||n===a){d&&(l.push(d),d=null);var k=Math.min(c,p-n),A=_._createPage(y,r.slice(n,n+k),n,void 0,void 0,v);A.top=u,A.height=i,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(A),L&&_._allowedRect&&(x=s,b={top:u,bottom:C,height:i,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage($p+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-u)+1,d.itemCount+=c;if(u+=C-u+1,g&&f)return"break"},_=this,y=a;y<p&&"break"!==v(y);y+=c);return d&&(d.key=$p+"end",l.push(d)),this._materializedRect=s,o(o({},e),{pages:l,measureVersion:this._measureVersion})},e.prototype._getPageSpecification=function(t,e,n){var r=t.getPageSpecification;if(r){var o=r(e,n),a=o.itemCount,i=void 0===a?this._getItemCountForPage(e,n):a,s=o.height;return{itemCount:i,height:void 0===s?this._getPageHeight(e,n,i):s,data:o.data,key:o.key}}return{itemCount:i=this._getItemCountForPage(e,n),height:this._getPageHeight(e,n,i)}},e.prototype._getPageHeight=function(t,e,n){if(this.props.getPageHeight)return this.props.getPageHeight(t,e,n);var r=this._cachedPageHeights[t];return r?r.height:this._estimatedPageHeight||30},e.prototype._getItemCountForPage=function(t,e){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,e):10)||10},e.prototype._createPage=function(t,e,n,r,o,a,i){void 0===n&&(n=-1),void 0===r&&(r=e?e.length:0),void 0===o&&(o={}),t=t||"page-"+n;var s=this._pageCache[t];return s&&s.page?s.page:{key:t,startIndex:n,itemCount:r,items:e,style:o,top:0,height:0,data:a,isSpacer:i||!1}},e.prototype._getRenderCount=function(t){var e=t||this.props,n=e.items,r=e.startIndex,o=e.renderCount;return void 0===o?n?n.length-r:0:o},e.prototype._updateRenderRects=function(t,e,n){var r=t.renderedWindowsAhead,a=t.renderedWindowsBehind,i=e.pages;if(this._shouldVirtualize(t)){var s=this._surfaceRect||o({},Qp),l=function(t){if(void 0===t)return 0;var e=0;return"scrollHeight"in t?e=t.scrollHeight:"document"in t&&(e=t.document.documentElement.scrollHeight),e}(this._scrollElement),c=Gp(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=tf(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),h=d(this._root.current),p={top:u,left:s.left,bottom:u+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=rf(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=rf(p,a,r),this._visibleRect=p}},e.defaultProps={startIndex:0,onRenderCell:function(t,e,n){return s.createElement(s.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},e}(s.Component);function rf(t,e,n){var r=t.top-e*t.height,o=t.height+(e+n)*t.height;return{top:r,bottom:r+o,height:o,left:t.left,right:t.right,width:t.width}}var of,af=function(t){var e=s.useRef(null);s.useEffect((function(){if(e.current){var n=zu(e.current),r=t.text.split(/\s+/),o=[],a=n.append("tspan"),i=0;return r.forEach((function(e){o.push(e),a.text(o.join(" "));var r=a.node();r&&r.getComputedTextLength()>t.width&&o.length>1&&(i++,o.pop(),a.text(o.join(" ")),o=[e],a=n.append("tspan").text(e).attr("dy",t.lineHeight).attr("x",t.x))})),n.attr("dy",-i*t.lineHeight),function(){n.selectAll("tspan").remove()}}})),t.lineHeight;var n=a(t,["lineHeight"]);return s.createElement("text",o({ref:e},n))},sf=function(t){var e,n=s.useRef(null),r=s.useState(!1),o=r[0],a=r[1],i=null;if(o){var l=t.labelDef.aggregatedIdx.map((function(e){return t.lineDefs[e].onRenderCard})).filter((function(t){return!!t}));l.length>0&&(i=s.createElement(ko,{target:n.current,onDismiss:function(){return a(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(qd,{isCircularNavigation:!0,direction:md.vertical},s.createElement(nf,{items:l,onRenderCell:function(t){return s.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var c=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":t.textColor;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return a(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(af,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:c})),i)},lf=function(t){var e=t.labelWidth?t.labelWidth:105,n=t.chartYTop-20,r=n+7,a=t.scale.range(),i=t.events.map((function(e){return o(o({},e),{x:t.scale(e.date)})}));i.sort((function(t,e){return+t.date-+e.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":t.strokeColor,c=function(t,e){for(var n=[],r=[],o=0,a=t;o<a.length;o++){var i=a[o],s=e(i);-1===n.indexOf(s)&&(r.push(i),n.push(s))}return r}(i,(function(t){return t.date.toString()})).map((function(e,n){return s.createElement("line",{key:n,x1:e.x,x2:e.x,y1:r,y2:t.chartYBottom,stroke:l,strokeDasharray:"8"})})),u=function(t,e,n,r){var o=function(r,o){if(o===t.length)return[];var i=t[o].x,s=i-e;return i<r?[]:o===t.length-1?r<s?[{x:i,anchor:"end",aggregatedIdx:[o]}]:i+e<n?[{x:i,anchor:"start",aggregatedIdx:[o]}]:[]:a(o,r<s?"end":"start")},a=function(r,a){var i="end"===a?t[r].x:t[r].x+e,s=Ct(t,(function(t){return t.x>i&&(t.x-e>=i||t.x+e<n)}),r+1);-1===s&&(s=t.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(i,s);return u.unshift({x:t[r].x,anchor:a,aggregatedIdx:l}),u};return o(r,0)}(i,e+5,a[1],a[0]).map((function(r,a){return s.createElement(sf,o({key:a},{lineDefs:i,labelDef:r,textY:n,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return s.createElement(s.Fragment,null,c,u)},cf={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},uf={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},df={qualitative:uf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},hf=Object.values(uf),pf=Object.values(cf),ff=function(t,e){if(0===t.length)return"";var n=Number(e);return n<t.length?t[n]:t[0]},gf=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var r=hf[(t+e)%hf.length];return ff(r,n)},mf=function(t,e){if(void 0===e&&(e=!1),pf.indexOf(t)>=0){var n=t.split("."),r=n[0],o=n[1],a=df[r][o];return ff(a,e)}return t},vf=ht();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(of||(of={}));var _f=Uo((function(t){return t.x})).left,yf=function(t){function e(e){var n=t.call(this,e)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(t){var e=n.props.allowMultipleShapesForPoints,r=void 0!==e&&e;return t?t.map((function(t,e){var a,i,s;return s=void 0===t.color?gf(e,0,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted):mf(t.color,null===(i=n.props.theme)||void 0===i?void 0:i.isInverted),o(o({},t),{index:r?e:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(t){n.margins=t},n._initializeLineChartData=function(t,e,r,o,a){n._xAxisScale=t,n._yAxisScale=e,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(a,r)},n._handleSingleLegendSelectionAction=function(t){n.state.selectedLegend===t.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(t,null)):(n.setState({selectedLegend:t.legend}),n._handleLegendClick(t,t.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(t,e,r){var o=n.props,a=o.allowMultipleShapesForPoints,i=void 0!==a&&a,s=o.strokeWidth,l=void 0===s?4:s,c=n.state.activePoint;return i?c===t?of.hoverSize:1===e||r?2.5*l:of.invisibleSize:c===t?of.hoverSize:of.invisibleSize},n._getPath=function(t,e,r,o,a,i){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,o,a),u=l?i%Object.keys(vd).length:0,d=vd[u].widthRatio;return function(t,e,n,r){return["M".concat(t-n/2," ").concat(e,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(t+n/2," ").concat(e,"\n M").concat(t-n/2," ").concat(e,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(t+n/2," ").concat(e,"\n "),"M".concat(t-n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e+n/2,"\n Z"),"M".concat(t-n/2," ").concat(e-.2886*n,"\n H ").concat(t+n/2,"\n L").concat(t," ").concat(e+.5774*n," Z"),"M".concat(t," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e,"\n L").concat(t," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.5774*n,"\n L").concat(t+n/2," ").concat(e+.2886*n,"\n L").concat(t-n/2," ").concat(e+.2886*n," Z"),"M".concat(t-.5*n," ").concat(e-.866*n,"\n L").concat(t+.5*n," ").concat(e-.866*n,"\n L").concat(t+n," ").concat(e,"\n L").concat(t+.5*n," ").concat(e+.866*n,"\n L").concat(t-.5*n," ").concat(e+.866*n,"\n L").concat(t-n," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.851*n,"\n L").concat(t+.6884*n," ").concat(e-.2633*n,"\n L").concat(t+.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.6884*n," ").concat(e-.2633*n,"\n Z"),"M".concat(t-.5001*n," ").concat(e-1.207*n,"\n L").concat(t+.5001*n," ").concat(e-1.207*n,"\n L").concat(t+1.207*n," ").concat(e-.5001*n,"\n L").concat(t+1.207*n," ").concat(e+.5001*n,"\n L").concat(t+.5001*n," ").concat(e+1.207*n,"\n L").concat(t-.5001*n," ").concat(e+1.207*n,"\n L").concat(t-1.207*n," ").concat(e+.5001*n,"\n L").concat(t-1.207*n," ").concat(e-.5001*n,"\n Z")][r]}(t,e,c=d>1?c/d:c,u)},n._getPointFill=function(t,e,r,o){var a=n.state.activePoint,i=n.props,s=i.theme;return i.allowMultipleShapesForPoints,a===e?s.palette.white:t},n._createColorFillBars=function(t){var e,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var o=hd(n._points,Ku.LineChart),a=0;a<n._colorFillBars.length;a++){var i=n._colorFillBars[a],l=xt(i.legend.replace(/\W/g,"")),c=mf(i.color,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted);i.applyPattern&&r.push(n._getStripePattern(c,a));for(var u=0;u<i.data.length;u++){var d=i.data[u].startX,h=i.data[u].endX,p=n._legendHighlighted(i.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(i):.1;r.push(s.createElement("rect",{fill:i.applyPattern?"url(#".concat(n._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(o.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return r},n._getStripePattern=function(t,e){return s.createElement("pattern",{id:"".concat(n._colorFillBarPatternId,"_").concat(e),width:16,height:16,key:"".concat(n._colorFillBarPatternId,"_").concat(e),patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},n._checkInGap=function(t,e,n){for(var r=n,o=!1;r<e.length&&t>e[r].endIndex;)r++;return r<e.length&&t>e[r].startIndex&&t<=e[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},n._onMouseOverLargeDataset=function(t,e,r){r.persist();var o=n.props.data.lineChartData,a=n._xAxisScale.invert(qu(document.getElementById(n._rectId),r)[0]),i=_f(o[t].data,a),s=o[t].data[i-1],l=o[t].data[i],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=i;else if(void 0!==s&&void 0===l)c=s.x,u=i-1;else{var d=void 0,h=void 0,p=void 0;switch(gd(o[t].data[0].x,!0)){case Gu.DateAxis:d=new Date(a).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?i:i-1;break;case Gu.NumericAxis:d=a,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?i:i-1}}var f=o[t].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=c instanceof Date?c.toLocaleString():c,_=c instanceof Date?c.getTime():c,y=St(n._calloutPoints,(function(t){return t.x===_})),x=o[t].data[u],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#".concat(n._staticHighlightCircle,"_").concat(t),zu("#".concat(n._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(n._xAxisScale(x.x))).attr("cy","".concat(n._yAxisScale(x.y))).attr("visibility","visibility"),zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(n._xAxisScale(x.x),", ").concat(n._yAxisScale(x.y),")")})).attr("visibility","visibility").attr("y2","".concat(e-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#".concat(n._staticHighlightCircle,"_").concat(t),stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:t})},n._handleFocus=function(t,e,r,o,a){n._uniqueCallOutID=o;var i=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=St(n._calloutPoints,(function(t){return t.x===s}));if(l){var c=n;zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(e),", 0)")})).attr("visibility","visibility"),n._refArray.forEach((function(e){e.index===t&&n.setState({isCalloutVisible:!0,refSelected:e.refElement,hoverXValue:r||""+i,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:a})}))}else n.setState({activePoint:o})},n._handleHover=function(t,e,r,o,a,i,s){s.persist();var l=t instanceof Date?t.toLocaleDateString():t,c=t instanceof Date?t.getTime():t,u=n,d=St(n._calloutPoints,(function(t){return t.x===c}));d?(zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(t),", ").concat(u._yAxisScale(e),")")})).attr("visibility","visibility").attr("y2","".concat(r-u._yAxisScale(e))),n._uniqueCallOutID!==a&&(n._uniqueCallOutID=a,n.setState({isCalloutVisible:!0,refSelected:"#".concat(a),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:a,xAxisCalloutAccessibilityData:i,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:a,nearestCircleToHighlight:null,activeLine:null})},n._getClickHandler=function(t){return t?{onClick:t}:{}},n._handleMouseOut=function(){zu("#".concat(n._verticalLine)).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(t,e){t.onLegendClick&&t.onLegendClick(e)},n._handleMultipleLineLegendSelectionAction=function(t){var e,r=n.state.selectedLegendPoints.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);e=-1===r?i(i([],n.state.selectedLegendPoints,!0),[t],!1):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&e.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():e.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:e,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=e.map((function(t){return t.legend}));n._handleLegendClick(t,o)},n._handleMultipleColorFillBarLegendSelectionAction=function(t){var e,r=n.state.selectedColorBarLegend.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);(e=-1===r?i(i([],n.state.selectedColorBarLegend,!0),[t],!1):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():e.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:e,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=e.map((function(t){return t.legend}));n._handleLegendClick(t,o)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},n._getAriaLabel=function(t,e){var r,o=n._points[t],a=o.data[e],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null,emptyChart:!1},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=sd(n._points)||[],n._circleId=xt("circle"),n._lineId=xt("lineID"),n._borderId=xt("borderID"),n._verticalLine=xt("verticalLine"),n._colorFillBarPatternId=xt("colorFillBarPattern"),n._tooltipId=xt("LineChartTooltipId_"),n._rectId=xt("containerRectLD"),n._staticHighlightCircle=xt("staticHighlightCircle"),e.eventAnnotationProps&&e.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=e.eventAnnotationProps.labelHeight),n}return r(e,t),e.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=sd(this._points)||[])},e.prototype.componentDidMount=function(){var t=!(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);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props,n=e.tickValues,r=e.tickFormat,a=e.eventAnnotationProps,i=e.legendProps,l=e.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=ud(this._points),u=this._points;i&&i.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=sd(u));var d=this._createLegends(this._points),h=o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:n,tickFormat:r};return this.state.emptyChart?s.createElement("div",{id:xt("_LineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Ku.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Gu.DateAxis:Gu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:e.containerHeight,stroke:"#C8C8C8",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?s.createElement("rect",{id:t._rectId,width:e.containerWidth,height:e.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,t._renderedColorFillBars,t.lines),a&&s.createElement(lf,o({},a,{scale:e.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:e.containerHeight-35}))))}}))},e.prototype._createLegends=function(t){var e=this,n=this.props,r=n.legendProps,a=n.allowMultipleShapesForPoints,l=void 0!==a&&a,c=!(!r||!r.canSelectMultipleLegends),u=t.map((function(t){var n=t.color;return o(o({title:t.legend,color:n,action:function(){c?e._handleMultipleLineLegendSelectionAction(t):e._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){e.setState({activeLegend:""})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),l&&{shape:pd[t.index%Object.keys(vd).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(t,n){var r,o=t.legend,a=mf(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:a,action:function(){c?e._handleMultipleColorFillBarLegendSelectionAction(t):e._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){e.setState({activeLegend:""})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:o})},opacity:e._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return s.createElement($h,o({legends:i(i([],u,!0),d,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},c&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},e.prototype._createLines=function(t,e){var n,r,a,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,S,E,L,k,A,w,D=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var M=function(t){var M=[],F=[],N=[],V=P._points[t].legend,I=P._points[t].color,O=P.state.activePoint,H=P.props.theme,B=e-P.margins.bottom+6;if(1===P._points[t].data.length){var R=P._points[t].data[0],W=R.x,z=R.y,Y=R.xAxisCalloutData,U=R.xAxisCalloutAccessibilityData,q="".concat(P._circleId,"_").concat(t);N.push(s.createElement("circle",o({id:q,key:q,r:O===q?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===q?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseOut:P._handleMouseOut,strokeWidth:O===q?4:0,stroke:O===q?I:"",role:"img","aria-label":P._getAriaLabel(t,0),"data-is-focusable":!0,ref:function(t){D._refCallback(t,q)},onFocus:function(){return D._handleFocus(q,W,Y,q,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[t].data[0].onDataPointClick))))}var X=0,j=null!==(r=null===(n=P._points[t].gaps)||void 0===n?void 0:n.sort((function(t,e){return t.startIndex-e.startIndex})))&&void 0!==r?r:[];if(P.props.optimizeLargeData&&P._points[t].data.length>1){for(var K=zp().x((function(t){return D._xAxisScale(t[0])})).y((function(t){return D._yAxisScale(t[1])})).curve(Bp),G="".concat(P._lineId,"_").concat(t),Z="".concat(P._borderId,"_").concat(t),$=(null===(a=P._points[t].lineOptions)||void 0===a?void 0:a.strokeWidth)||P.props.strokeWidth||4,Q=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,J=[],tt=0;tt<P._points[t].data.length;tt++)J.push([P._points[t].data[tt].x instanceof Date?P._points[t].data[tt].x.getTime():P._points[t].data[tt].x,P._points[t].data[tt].y]);if(Q){var et=(null===(l=P._points[t].lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(P._points[t].lineOptions.lineBorderWidth.toString()):0;et>0&&F.push(s.createElement("path",{id:Z,key:Z,d:K(J),fill:"transparent",strokeLinecap:null!==(u=null===(c=P._points[t].lineOptions)||void 0===c?void 0:c.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat($.toString())+et,stroke:(null===(d=P._points[t].lineOptions)||void 0===d?void 0:d.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("path",o({id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(p=null===(h=P._points[t].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==p?p:"round",onMouseMove:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOut:P._handleMouseOut},P._getClickHandler(P._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(V,", series ").concat(t+1," of ").concat(P._points.length," with ").concat(P._points[t].data.length," data points.")})))}else M.push(s.createElement("path",{id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(g=null===(f=P._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==g?g:"round",opacity:.1,role:"img","aria-label":"".concat(V,", series ").concat(t+1," of ").concat(P._points.length," with ").concat(P._points[t].data.length," data points.")}));var nt=null!==P.state.activeLine&&P.state.activeLine===t;N.push(s.createElement("circle",{id:"".concat(P._staticHighlightCircle,"_").concat(t),key:"".concat(P._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:I,visibility:nt?"visibility":"hidden",onMouseMove:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOut:P._handleMouseOut}))}else if(!P.props.optimizeLargeData)for(var rt=function(e){var n=P._checkInGap(e,j,X),r=n.isInGap;X=n.gapIndex;var a="".concat(P._lineId,"_").concat(t,"_").concat(e),i="".concat(P._borderId,"_").concat(t,"_").concat(e),l="".concat(P._circleId,"_").concat(t,"_").concat(e),c=P._points[t].data[e-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=P._points[t].data[e],g=f.x,T=f.y,R=P._getPath(P._xAxisScale(u),P._yAxisScale(d),l,e,!1,P._points[t].index),W=(null===(m=P._points[t].lineOptions)||void 0===m?void 0:m.strokeWidth)||P.props.strokeWidth||4,z=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,Y=P._points[t].hideNonActiveDots&&O!==l;if(N.push(s.createElement("path",o({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,u,h,l,p)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[t].data[e-1].onDataPointClick),{opacity:z&&!Y?1:.01,fill:P._getPointFill(I,l,e,!1),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(t,e-1)}))),e+1===P._points[t].data.length){var U="".concat(l).concat(e,"L"),q=P._points[t].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,e,!0,P._points[t].index);var K=P._points[t].data[e],G=K.xAxisCalloutData,Z=K.xAxisCalloutAccessibilityData;N.push(s.createElement("path",o({id:U,key:U,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,g,G,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[t].data[e].onDataPointClick),{opacity:z&&!q?1:.01,fill:P._getPointFill(I,U,e,!0),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(t,e)})))}if(z){if(!r){var $=(null===(v=P._points[t].lineOptions)||void 0===v?void 0:v.lineBorderWidth)?Number.parseFloat(P._points[t].lineOptions.lineBorderWidth.toString()):0;$>0&&F.push(s.createElement("line",{id:i,key:i,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeLinecap:null!==(y=null===(_=P._points[t].lineOptions)||void 0===_?void 0:_.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(W.toString())+$,stroke:(null===(x=P._points[t].lineOptions)||void 0===x?void 0:x.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("line",o({id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,ref:function(t){D._refCallback(t,a)},onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,stroke:I,strokeLinecap:null!==(C=null===(b=P._points[t].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==C?C:"round",strokeDasharray:null===(S=P._points[t].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(E=P._points[t].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},P._getClickHandler(P._points[t].onLineClick))))}}else r||M.push(s.createElement("line",{id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,stroke:I,strokeLinecap:null!==(k=null===(L=P._points[t].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=P._points[t].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(w=P._points[t].lineOptions)||void 0===w?void 0:w.strokeDashoffset,opacity:.1}))},ot=1;ot<P._points[t].data.length;ot++)rt(ot);T.push.apply(T,i(i(i([],F,!1),M,!1),N,!1))},P=this,F=this._points.length-1;F>=0;F--)M(F);var N=vf(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 V=zu(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var I={tooltipCls:N.tooltip,id:this._tooltipId,xAxis:V};V&&cd(I)}return T},e.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},e}(s.Component),xf=E(yf,(function(t){return{tooltip:o(o({},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"})}}));function bf(t,e){if((o=t.length)>1)for(var n,r,o,a=1,i=t[e[0]],s=i.length;a<o;++a)for(r=i,i=t[e[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Cf(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Sf(t,e){return t[e]}function Ef(t){const e=[];return e.key=t,e}function Lf(t,e,n){var r=null,o=Jh(!0),a=null,i=Bp,s=null;function l(l){var c,u,d,h,p,f=(l=Qh(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==a&&(s=i(p=bp())),c=0;c<=f;++c){if(!(c<f&&o(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+t(h,c,l),v[c]=+e(h,c,l),s.point(r?+r(h,c,l):m[c],n?+n(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return zp().defined(o).curve(i).context(a)}return t="function"==typeof t?t:void 0===t?Rp:Jh(+t),e="function"==typeof e?e:Jh(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Wp:Jh(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Jh(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Jh(+t),l):n},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(n)},l.lineX1=function(){return c().x(r).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:Jh(!!t),l):o},l.curve=function(t){return arguments.length?(i=t,null!=a&&(s=i(a)),l):i},l.context=function(t){return arguments.length?(null==t?a=s=null:s=i(a=t),l):a},l}function kf(t){return t<0?-1:1}function Af(t,e,n){var r=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(r||o<0&&-0),i=(n-t._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(kf(a)+kf(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function wf(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Df(t,e,n){var r=t._x0,o=t._y0,a=t._x1,i=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,o+s*e,a-s,i-s*n,a,i)}function Tf(t){this._context=t}function Mf(t){this._context=t}function Pf(t){return new Tf(t)}Tf.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:Df(this,this._t0,wf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Df(this,wf(this,n=Af(this,t,e)),n);break;default:Df(this,this._t0,n=Af(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new Mf(t)}.prototype=Object.create(Tf.prototype)).point=function(t,e){Tf.prototype.point.call(this,e,t)},Mf.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,a){this._context.bezierCurveTo(e,t,r,n,a,o)}};var Ff,Nf=ht(),Vf=Uo((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Ff||(Ff={}));var If=function(t){function e(e){var n=t.call(this,e)||this;return n._getMargins=function(t){n.margins=t},n._onRectMouseMove=function(t){t.persist();var e=n.props.data.lineChartData,r=n._xAxisRectScale.invert(qu(document.getElementById(n._rectId),t)[0]),o=Vf(e[0].data,r),a=e[0].data[o-1],i=e[0].data[o],s=null,l=null,c=null;if(void 0===a&&void 0!==i)l=i.x,c=o;else if(void 0!==a&&void 0===i)l=a.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=gd(e[0].data[0].x,!0)){case Gu.DateAxis:u=new Date(r).getTime(),d=a.x.getTime(),h=i.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case Gu.NumericAxis:u=r,d=a.x,h=i.x,l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=e[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=St(n._calloutPoints,(function(t){return t.x===v})),y=s===Gu.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Ff.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Ff.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Ff.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(t,e){var r=function(){var t=Jh([]),e=Cf,n=bf,r=Sf;function o(o){var a,i,s=Array.from(t.apply(this,arguments),Ef),l=s.length,c=-1;for(const t of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(t,s[a].key,c,o)]).data=t;for(a=0,i=Qh(e(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Jh(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:Jh(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?Cf:"function"==typeof t?t:Jh(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?bf:t,o):n},o}().keys(t)(e),o=jo(r[r.length-1],(function(t){return t[1]})),a=[];return r.forEach((function(t){var e=[];t.forEach((function(t){e.push({values:t,xVal:t.data.xVal})})),a.push(e)})),n._isMultiStackChart=!!(a&&a.length>1),{stackedData:a,maxOfYVal:o}},n._createDataSet=function(t){var e=[],r=[],o=[],a=[],i=sd(t);t&&t.length&&t.forEach((function(t){o.push(t.color),a.push(t.opacity||1),e.push.apply(e,t.data)}));for(var s=e,l=function(){var t=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,e=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)===t})),n={};e.forEach((function(t,e){n.xVal=t.x,n["chart".concat(e)]=t.y})),r.push(n);var o=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==o}))};s.length;)l();for(var c=r&&Object.keys(r[0]).length,u=[],d=0;d<c-1;d++){var h="chart".concat(d);u.push(h)}var p=n._getStackedData(u,r);return{colors:o,opacity:a,keys:u,stackedInfo:p,calloutPoints:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(t,e,r,o,a){n._chart=n._drawGraph(r,t,e,a)},n._getLegendData=function(t){var e=[];return t.forEach((function(t){var r=t.color;if(!(e.filter((function(e){return e.title===t.legend&&e.color===r})).length>0)){var o={title:t.legend,color:r,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};e.push(o)}})),s.createElement($h,o({legends:e,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(t){t&&t(),n.setState({isCircleClicked:!0})},n._getOpacity=function(t){return n._isMultiStackChart?n._legendHighlighted(t)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(t){if(n._isMultiStackChart){var e=.3;return n.state.isCalloutVisible&&(e=1),n._noLegendHighlighted()||(e=n._legendHighlighted(t)?0:.1),e}return 1},n._updateCircleFillColor=function(t,e,r){var o=e;return n.state.nearestCircleToHighlight!==t&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(o=n.props.theme.palette.white)),o},n._drawGraph=function(t,e,r,a){var i,l=n._addDefaultColors(n.props.data.lineChartData),c=n.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Lf().x((function(t){return e(t.xVal)})).y0((function(t){return r(t.values[0])})).y1((function(t){return r(t.values[1])})).curve(Pf),p=zp().x((function(t){return e(t.xVal)})).y((function(t){return r(t.values[1])})).curve(Pf),f=[];n._stackedData.forEach((function(t,a){f.push(s.createElement(s.Fragment,{key:"".concat(a,"-graph-").concat(n._uniqueIdForGraph)},s.createElement("path",o({id:"".concat(a,"-line-").concat(n._uniqueIdForGraph),d:p(t),fill:"transparent",strokeWidth:3,stroke:n._colors[a],opacity:n._getLineOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[a].lineOptions)),1===t.length?s.createElement("circle",{id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),cx:e(t[0].xVal),cy:r(t[0].values[1]),r:6,stroke:n._colors[a],strokeWidth:3,fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",o({id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),d:h(t),fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":!0,role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;n._stackedData.forEach((function(t,a){l.length!==a&&(n.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,c){var d=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(n.state.nearestCircleToHighlight===d){var h="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c);i=l[a].color,f.push(s.createElement("circle",o({key:h,id:h,cx:e(t.xVal),cy:r(t.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(d,i,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick)},u,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:"".concat(a,"-dots-").concat(n._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,c){var d="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return i=l[a].color,s.createElement("circle",o({key:d,id:d,"data-is-focusable":!0,cx:e(t.xVal),cy:r(t.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(h,i,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick),onFocus:function(){return n._handleFocus(a,c,d)},onBlur:n._handleBlur},u,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(a,c)}))})))))})),f.push(s.createElement("line",o({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:i,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Nf(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=zu(a).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&cd(_)}return f},n._getCircleRadius=function(t,e,r){var o=n.state,a=o.isCircleClicked,i=o.nearestCircleToHighlight,s=o.activePoint;return a&&i===t?1:i===t||s===r?e:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(t){return t?t.map((function(t,e){var r,a,i;return i=void 0===t.color?gf(e,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):mf(t.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),o(o({},t),{color:i})})):[]},n._handleFocus=function(t,e,r){var o=n.props.data.lineChartData[t].data[e],a=o.x,i=o.y,s=o.xAxisCalloutData,l=a instanceof Date?a.toLocaleString():a,c=a instanceof Date?a.getTime():a,u=n._calloutPoints.find((function(t){return t.x===c}));u.values=u.values.filter((function(t){return t.y===i})),n.setState({refSelected:"#".concat(r),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(t,e){var r,o=n.props.data.lineChartData[t],a=o.data[e],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n._createSet=er(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Ff.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,emptyChart:!(n.props.data&&n.props.data.lineChartData&&n.props.data.lineChartData.length>0&&0===n.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length),activePoint:""},n._uniqueIdForGraph=xt("areaChart_"),n._verticalLineId=xt("verticalLine_"),n._circleId=xt("circle"),n._rectId=xt("rectangle"),n._tooltipId=xt("AreaChartTooltipID"),n}return r(e,t),e.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){var e=this.props.data,n=e.lineChartData,r=e.chartTitle,a=this._addDefaultColors(n),i=this._createSet(a),l=i.colors,c=i.opacity,u=i.stackedInfo,d=i.calloutPoints;this._calloutPoints=d;var h=ud(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(Xp,o({},this.props,{chartTitle:r,points:a,chartType:Ku.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Gu.DateAxis:Gu.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){t._xAxisRectScale=e.xScale;var n=t._xAxisRectScale.ticks(),r=t._xAxisRectScale(n[n.length-1]),o=e.containerHeight-t.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:t._rectId,width:r,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),s.createElement("g",null,t._chart))}}))}return s.createElement("div",{id:xt("_AreaChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e}(s.Component),Of=E(If,(function(t){return{tooltip:o(o({},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"})}})),Hf=function(t){return{root:{fill:t.color,stroke:zn.white,strokeWidth:2}}},Bf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.updateChart=function(t){Wf(t)},e}return r(e,t),e.getDerivedStateFromProps=function(t){return Wf(t),null},e.prototype.render=function(){var t,e=this.props,n=e.color,r=e.arc,o=ht()(Hf,{color:n});return s.createElement("path",{d:r(this.props.data),className:o.root,onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},e.defaultProps={arc:wp()},e}(s.Component),Rf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var e=this.props,n=e.data,r=e.arc,o=e.culture,a=r.centroid(n),i=a[0],l=a[1],c="translate(".concat(i,", ").concat(l,")");return s.createElement("g",{className:"arc"},t.prototype.render.call(this),s.createElement("text",{transform:c,textAnchor:"middle"},n.data.x,"-",yd(n.data.y,o)))},e}(Bf);function Wf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var zf,Yf=function(t){function e(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e){return s.createElement(Rf,{culture:n.props.culture,key:e,data:t,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(e))})},n}return r(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.colors,o=e.data,a=e.width,i=e.height,l=e.chartTitle;this.colors=Pc().range(r);var c=n(o),u="translate(".concat(a/2,", ").concat(i/2,")");return s.createElement("svg",{width:a,height:i,"aria-label":l},s.createElement("g",{transform:u},c.map((function(e,n){return t.arcGenerator(e,n)}))))},e.defaultProps={pie:fp().sort(null).value((function(t){return t.y}))},e}(s.Component),Uf=ht(),qf=function(t){function e(e){var n=t.call(this,e)||this;return n.state={emptyChart:!1},n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this.props,e=t.data,n=t.width,r=t.height,o=t.colors,a=t.chartTitle,i=this.props,l=i.theme,c=i.className,u=i.styles,d=i.culture;this._classNames=Uf(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return this.state.emptyChart?s.createElement("div",{id:xt("_PieChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(Yf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:e,colors:o,chartTitle:a}))},e.defaultProps={data:[],width:600,height:350},e}(s.Component),Xf=E(qf,(function(t){var e=t.className,n=t.theme,r=t.width+30,a=t.height+10;return{root:[n.fonts.medium,"ms-PieChart",e,{width:r+40}],chart:[{padding:20,width:r,height:a,boxSizing:"content-box"}],chartTitle:[o({textAlign:"center"},n.fonts.mediumPlus)]}})),jf=ht(),Kf=function(t){function e(e){var n=t.call(this,e)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",emptyChart:!1},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xt("callout"),n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){if(!this.state.emptyChart){this._adjustProps();var t=this.props,e=t.data,n=t.benchmarkData,r=t.targetData,a=t.hideNumberDisplay,i=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,u=i||e.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||c.neutralTertiary),r&&(r.color=r.color||c.neutralSecondary);var d=this._createBarsAndLegends(e,u,c,n,r),h=!1===a&&!i&&2===e.chartData.length,p=!1===a&&!i&&1===e.chartData.length,f=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(i||e.chartData.length>2);this._classNames=jf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return yd(e.chartData[0].data?e.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(rh,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),h&&s.createElement("div",o({},_d(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(f,l))),p&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(e.chartDataAccessibilityData,"text",!1)),_())),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(qd,{direction:md.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},s.createElement("g",null,d[0]),s.createElement(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Et.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))}return s.createElement("div",{id:xt("_SBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._adjustProps=function(){this._classNames=jf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},e.prototype._createBarsAndLegends=function(t,e,n,r,a){var i=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],c=[],u=[],d=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),h=0,p=0,f=0;t.chartData.map((function(t,e){var n=t.data?t.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=t.chartData.map((function(t,n){var r=t.color?t.color:l[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,a={title:t.legend,color:r,action:d>0?function(){i._onClick(t.legend)}:void 0,hoverAction:d>0?function(){i._handleChartMouseLeave(),i._onHover(t.legend)}:void 0,onMouseOutAction:d>0?function(){i._onLeave()}:void 0};t.placeHolder||c.push(a),n>0&&(h+=p),(p=o/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,u.push(h);var f=i.props.styles,m=!(!i._legendHighlighted(t.legend)&&!i._noLegendHighlighted());return i._classNames=jf(f,{theme:i.props.theme,shouldHighlight:m,href:i.props.href}),s.createElement("g",{key:n,className:i._classNames.opacityChangeOnHover,ref:function(t){i._refCallback(t,a.title)},"data-is-focusable":!i.props.hideTooltip,onFocus:i._onBarFocus.bind(i,o,r,t),onBlur:i._onBarLeave,"aria-label":i._getAriaLabel(t),role:"img",onMouseOver:i._onBarHover.bind(i,o,r,t),onMouseMove:i._onBarHover.bind(i,o,r,t),onMouseLeave:i._onBarLeave,pointerEvents:"all",onClick:i.props.href?i._redirectToUrl.bind(i,i.props.href):t.onClick},s.createElement("rect",{key:n,x:u[n]+"%",y:0,width:p+"%",height:e,fill:r}))}));this._addLegend(c,r),this._addLegend(c,a);var v=s.createElement($h,o({legends:c,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(e,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},e.prototype._onBarFocus=function(t,e,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},e.prototype._addLegend=function(t,e){if(e){var n={title:e.legend,color:e.color,shape:"triangle"};t.push(n)}},e.prototype._generateEmptyBar=function(t,e){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:e}))},e.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},e.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onHover=function(t){this.setState({activeLegend:t})},e.prototype._onLeave=function(){this.setState({activeLegend:""})},e.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},e.prototype._onBarLeave=function(){},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},e}(s.Component),Gf=E(Kf,(function(t){var e,n,r=t.className,a=t.width,i=t.barHeight,s=t.shouldHighlight,l=t.theme,c=t.href,u=t.benchmarkColor,d=t.benchmarkRatio,h=t.targetColor,p=t.targetRatio,f=t.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:a||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:i||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:o(o({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:c?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u,marginBottom:"4px",selectors:(e={},e[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},e)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},n)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(zf||(zf={}));var Zf,$f=ht(),Qf=function(t){function e(e){var n=t.call(this,e)||this;return n._isRTL=lt(),n._adjustProps=function(){var t=n.props,e=t.theme,r=t.className,o=t.styles,a=t.width,i=t.barHeight;n._classNames=$f(o,{legendColor:n.state.color,theme:e,width:a,className:r,barHeight:i})},n._getLegendData=function(t,e,r){var a=[r.blueLight,r.blue,r.blueMid,r.red,r.black],i=[];return t.forEach((function(t,r){var o=t.chartData.filter((function(t){return!t.placeHolder}));o.length<3?void 0!==e[r]&&e[r]&&o.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var r={title:t.legend,color:e,action:function(){n._onClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(t.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}})):o.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var r={title:t.legend,color:e,action:function(){n._onClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(t.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}}))})),s.createElement($h,o({legends:i,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n._computeLongestBarTotalValue=function(){var t=0;return n.props.data.forEach((function(e){var n=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0);t=Math.max(t,n)})),t},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",emptyChart:!1},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xt("callout"),n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length})).length);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){var e=this.props,n=e.data,r=e.theme,a=e.culture;this._adjustProps();var i=r.palette,l=this._getLegendData(n,this.props.hideRatio,i),c=this.state.isCalloutVisible;this._classNames=$f(this.props.styles,{legendColor:this.state.color,theme:r,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=n.map((function(e,n){var r=t._createBarsAndLegends(e,t.props.barHeight,i,t.props.hideRatio[n],t.props.hideDenominator[n],t.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:Et.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return s.createElement("div",{id:xt("_MSBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._createBarsAndLegends=function(t,e,n,r,a,i){var l=this,c=this.props.culture,u=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),p=this.props.variant===zf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(t.chartData.map((function(t,e){var n=t.data?t.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===zf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=t.chartData.map((function(t,r){var o=t.color?t.color:t.placeHolder?n.neutralLight:u[Math.floor(4*Math.random()+1)],a=t.data?t.data:0;r>0&&(v+=_),(_=a/p*100?a/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var c=l.props.styles,h=!(!l._legendHighlighted(t.legend)&&!l._noLegendHighlighted());return l._classNames=$f(c,{theme:l.props.theme,shouldHighlight:h,href:i,variant:l.props.variant,hideLabels:l.props.hideLabels}),s.createElement("g",{key:r,className:t.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(e){l._refCallback(e,t.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,o,t),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:l._onBarHover.bind(l,a,o,t),onMouseMove:t.placeHolder?void 0:l._onBarHover.bind(l,a,o,t),onMouseLeave:t.placeHolder?void 0:l._onBarLeave,onClick:i?t.placeHolder?void 0:l._redirectToUrl.bind(l,i):t.onClick},s.createElement("rect",{key:r,x:"".concat(l._isRTL?100-d[r]-_:d[r],"%"),y:0,width:_+"%",height:e,fill:o}))}));this.props.variant===zf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_,"%"),y:e/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(h),role:"img"},yi(h<1e3?".2~":".1",h)(h))):(0===t.chartData.length&&y.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:n.neutralLight}))),0===h&&y.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:n.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==zf.AbsoluteScale&&!x&&2===t.chartData.length,C=this.props.variant!==zf.AbsoluteScale&&!x&&1===t.chartData.length,S=function(){return yd(t.chartData[0].data?t.chartData[0].data:0,c)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(rh,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),b&&s.createElement("div",o({},_d(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},S()),!a&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(h,c))),C&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(t.chartDataAccessibilityData,"text",!1)),S()))),s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},y))))},e.prototype._onBarFocus=function(t,e,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},e.prototype._refCallback=function(t,e){this.state.refArray.push({legendText:e,refElement:t})},e.prototype._onHover=function(t){this.setState({activeLegend:t})},e.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLeave=function(){this.setState({activeLegend:""})},e.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},e.prototype._onBarLeave=function(){},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},e}(s.Component),Jf=E(Qf,(function(t){var e=t.className,n=t.width,r=t.barHeight,a=t.shouldHighlight,i=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[i.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},e],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:o(o({},i.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:i.palette.neutralPrimary,marginBottom:l===zf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===zf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:s?"pointer":"default",stroke:i.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:i.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:i.palette.neutralPrimary},placeHolderOnHover:{opacity:a?"":"0.1",cursor:"default",stroke:i.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},chartWrapper:{paddingRight:l!==zf.AbsoluteScale||c?0:40}}}));!function(t){t.show="visibility",t.hide="hidden"}(Zf||(Zf={}));var tg,eg=ht(),ng=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._createLine=function(t,e,r,o,a){var i;void 0===r&&(r=0),void 0===o&&(o=0);var l=n._xAxisType===Gu.NumericAxis,c=n._getScales(r,o,l).xBarScale,u=n._createColors(),d=n.props.theme,h=n.props,p=h.data,f=h.lineLegendColor,g=void 0===f?d.palette.yellow:f,m=h.lineLegendText,v=[],_=[];p&&p.forEach((function(t,e){var n;t.lineData&&t.lineData.y&&v.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(n=t.lineData.useSecondaryYScale)&&void 0!==n&&n,point:t,index:e})}));var y=zp().x((function(e){return l?t(e.x):c(e.x)+.5*c.bandwidth()})).y((function(t){return t.useSecondaryYScale&&a?a(t.y):e(t.y)})),x=!(!n._legendHighlighted(m)&&!n._noLegendHighlighted()),b=(null===(i=n.props.lineOptions)||void 0===i?void 0:i.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;b>0&&_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var C=v.map((function(r,o){var i;return s.createElement("circle",{key:o,cx:l?t(r.x):c(r.x)+.5*c.bandwidth(),cy:r.useSecondaryYScale&&a?a(r.y):e(r.y),onMouseOver:n._onBarHover.bind(n,r.point,u(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:g,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?Zf.show:Zf.hide,onClick:null===(i=r.point.lineData)||void 0===i?void 0:i.onClick})}));return s.createElement(s.Fragment,null,_,C)},n._checkForLine=function(){return n.props.data.some((function(t){var e;return void 0!==(null===(e=null==t?void 0:t.lineData)||void 0===e?void 0:e.y)}))},n._getMargins=function(t){n.margins=t},n._renderContentForBothLineAndBars=function(t){var e=n._getCalloutContentForLineAndBar(t),r=e.YValueHover,a=e.hoverXValue,i=r.map((function(t,e){return s.createElement(Sd,o({key:e,Legend:t.legend},0===e&&{XValue:"".concat(a||t.data)},{color:t.color,YValue:t.data||t.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,i)},n._renderContentForOnlyBars=function(t){var e=n.props.useSingleColor,r=void 0!==e&&e;return s.createElement(s.Fragment,null,s.createElement(Sd,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!r&&t.color?t.color:n._createColors()(t.y),culture:n.props.culture}))},n._renderCallout=function(t){return t?n._isHavingLine?n._renderContentForBothLineAndBars(t):n._renderContentForOnlyBars(t):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(t,e,r,o,a){return n._bars=n._xAxisType===Gu.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._refCallback=function(t,e){n._refArray.push({index:e,refElement:t})},n._getCalloutContentForLineAndBar=function(t){var e,r,o,a,i=[],s=n.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(e){return e.x===t.x}));return n._isHavingLine&&void 0!==(null===(e=m[0].lineData)||void 0===e?void 0:e.y)&&i.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(a=m[0].lineData)||void 0===a?void 0:a.yAxisCalloutData}),i.push({legend:m[0].legend,y:m[0].y,color:u?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:t.xAxisCalloutData||t.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(t,e,r){var o=n._getCalloutContentForLineAndBar(t),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){o.index===t.legend&&e===s&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||r,xCalloutValue:t.xAxisCalloutData||t.x.toString(),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:t.callOutAccessibilityData})}))},n._getScales=function(t,e,r){if(r){var o=jo(n._points,(function(t){return t.x})),a=Ko(n._points,(function(t){return t.x}));return{xBarScale:Si().domain(n._isRtl?[o,a]:[a,o]).nice().range([n.margins.left+n._domainMargin,e-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Si().domain([0,n._yMax]).range([0,t-n.margins.bottom-n.margins.top])}}return{xBarScale:Fc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Si().domain([0,n._yMax]).range([0,t-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(t,e){var r=n.props,a=r.theme,i=r.useSingleColor,l=n.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(t.forEach((function(t,e){var r=i?n._createColors()(1):t.color,o={title:t.legend,color:r,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(o)})),n._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){n._onLegendClick(c)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(c)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement($h,o({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._yMax=Math.max(e[e.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,r,o,a=t.xAxisCalloutData||t.x,i=t.legend,s=t.yAxisCalloutData||t.y,l=n.props.lineLegendText||"Line",c=(null===(e=t.lineData)||void 0===e?void 0:e.yAxisCalloutData)||(null===(r=t.lineData)||void 0===r?void 0:r.y);return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(a,". ")+(i?"".concat(i,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},n._getDomainMargins=function(t){if(n._xAxisType!==Gu.NumericAxis){var e=t-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,e>=a?n._domainMargin+=(e-a)/2:r=e/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=xt("callout"),n._tooltipId=xt("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].x,!0):Gu.StringAxis,n._domainMargin=8,n}return r(e,t),e.prototype.componentDidMount=function(){var t=this.state.emptyChart||0===this._points.length||jo(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(jo(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=eg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=o(o(o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),_d(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xt("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:this._points,chartType:Ku.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:e,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:md.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return s.createElement(s.Fragment,null,s.createElement("g",null,t._bars),t._isHavingLine&&s.createElement("g",null,t._createLine(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine()},e.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(e*o*this._yMax);return Si().domain(r).range(this._colors)},e.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForLineAndBar(t),o=r.YValueHover,a=r.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||e,xCalloutValue:t.xAxisCalloutData||t.x.toString(),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData}))},e.prototype._createNumericBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,i=this._getScales(t,e,!0),l=i.xBarScale,c=i.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=eg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var i=Math.max(c(e.y),0);if(i<1)return s.createElement(s.Fragment,{key:e.x}," ");var d=l(e.x),h=t-r.margins.bottom-c(e.y);return s.createElement("g",{key:e.x},s.createElement("rect",{x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:i,ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(d,h,e.y))}));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=zu(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&cd(p)}return d},e.prototype._createStringBars=function(t,e,n){var r=this,o=this._getScales(t,e,!1),a=o.xBarScale,i=o.yBarScale,l=this._createColors(),c=this._points.map((function(e,n){var o=Math.max(i(e.y),0);if(o<1)return s.createElement(s.Fragment,{key:e.x}," ");var c=a(e.x),u=t-r.margins.bottom-i(e.y);return s.createElement("g",{key:e.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},s.createElement("rect",{x:c,y:u,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(e),role:"img",ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,l(e.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,e,n,l(e.y)),fill:e.color?e.color:l(e.y)}),r._renderBarLabel(c,u,e.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=zu(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&cd(d)}return c},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._renderBarLabel=function(t,e,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:t+this._barWidth/2,y:e-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},yi(n<1e3?".2~":".1",n)(n))},e}(s.Component),rg=E(ng,(function(t){var e=t.shouldHighlight,n=t.theme;return{opacityChangeOnHover:{opacity:e?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}}})),og=ht();!function(t){t.show="visibility",t.hide="hidden"}(tg||(tg={}));var ag=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._toFocusWholeStack=function(t){var e=n.props.isCalloutForStack,r=void 0!==e&&e;return t?""===n.state.selectedLegend:r},n._getFormattedLineData=function(t){var e=[],n={};return t.forEach((function(t,n){t.lineData&&t.lineData.forEach((function(r){e.push(o(o({},r),{index:n,xItem:t}))}))})),e.forEach((function(t){n[t.legend]?n[t.legend].push(t):n[t.legend]=[t]})),n},n._getLineLegends=function(t){var e=n._lineObject,r=[];return Object.keys(e).forEach((function(t){r.push({title:t,color:e[t][0].color})})),r},n._createLines=function(t,e,r,a,i){var l,c=n._xAxisType===Gu.NumericAxis,u=n._getScales(r,a,c).xBarScale,d=n._getFormattedLineData(n.props.data),h=[],p=[],f=[],g=n.props.theme,m=(null===(l=n.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,v=c?0:u.bandwidth()/2;return Object.keys(d).forEach((function(r,a){for(var l=n._legendHighlighted(r)||n._noLegendHighlighted(),f=1;f<d[r].length;f++){var _=c?t(d[r][f-1].xItem.xAxisPoint):u(d[r][f-1].xItem.xAxisPoint),y=d[r][f-1].useSecondaryYScale&&d[r][f].useSecondaryYScale&&i,x=y?i(d[r][f-1].y):e(d[r][f-1].y),b=c?t(d[r][f].xItem.xAxisPoint):u(d[r][f].xItem.xAxisPoint),C=y?i(d[r][f].y):e(d[r][f].y);m>0&&p.push(s.createElement("line",{key:"".concat(a,"-").concat(f,"-BorderLine"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.palette.white,transform:"translate(".concat(v,", 0)")})),h.push(s.createElement("line",o({key:"".concat(a,"-").concat(f,"-line"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:d[r][f].color,transform:"translate(".concat(v,", 0)")},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,d[r][f-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(d).forEach((function(r,a){d[r].forEach((function(l,d){f.push(s.createElement("circle",o({key:"".concat(a,"-").concat(d,"-dot"),cx:c?t(l.xItem.xAxisPoint):u(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&i?i(l.y):e(l.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,l):n._onStackHover.bind(n,l.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(v,", 0)")})))}))})),s.createElement(s.Fragment,null,p,h,f)},n._getCircleVisibilityAndRadius=function(t,e){var r=n.state,o=r.selectedLegend,a=r.activeXAxisDataPoint;return""!==o?t===a&&o===e?{visibility:tg.show,radius:8}:o===e?{visibility:tg.show,radius:.3}:{visibility:tg.hide,radius:0}:{visibility:a===t?tg.show:tg.hide,radius:8}},n._getMargins=function(t){n.margins=t},n._getCustomizedCallout=function(){var t=n.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!t?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(t,e){e.persist(),n.setState({refSelected:e,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(t,e,r,a){var i=n.props,l=i.barCornerRadius,c=void 0===l?0:l,u=i.barMinimumHeight,d=void 0===u?0:u,h=n.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(a,i){var l=r-n.margins.bottom,u=t((n._xAxisType,Gu.NumericAxis,a.xAxisPoint)),h=n._xAxisType===Gu.NumericAxis?0:(t.bandwidth()-n._barWidth)/2,f=0,g=a.chartData.filter((function(t){return t.data>0}));if(g.length){var m=n._getBarGapAndScale(g,e),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(t,e){var r=t.color?t.color:n._colors[e],m={},y=!(!n._legendHighlighted(t.legend)&&!n._noLegendHighlighted());n._classNames=og(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a,t),onMouseOver:n._onRectHover.bind(n,a.xAxisPoint,t,r),onMouseMove:n._onRectHover.bind(n,a.xAxisPoint,t,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,t,a.xAxisPoint,r,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,t),role:"img"},b=_*t.data;return b<d&&(b=d),l=l-b-(e?v:0),f+=t.data,c&&b>c&&e===g.length-1?s.createElement("path",o({key:e+i+"".concat(p),className:n._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(n._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-n._barWidth,"\n z\n "),fill:r,ref:function(t){return m.refElement=t},transform:"translate(".concat(h,", 0)")},x)):b<1?s.createElement(s.Fragment,{key:e+i}," "):s.createElement("rect",o({key:e+i,className:n._classNames.opacityChangeOnHover,x:u,y:l,width:n._barWidth,height:b,fill:r,ref:function(t){return m.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a),onMouseOver:n._onStackHover.bind(n,a),onMouseMove:n._onStackHover.bind(n,a),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,a,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,a),role:"img"};return s.createElement("g",{key:i+"".concat(p)},s.createElement("g",o({id:"".concat(i,"-singleBar"),ref:function(t){return x.refElement=t}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:u+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-label":"Total: ".concat(f),role:"img",transform:"translate(".concat(h,", 0)")},yi(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=zu(a).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&cd(m)}return f.filter((function(t){return!!t}))},n._getScales=function(t,e,r){var o=n._yMax,a=Si().domain([0,o]).range([0,t-n.margins.bottom-n.margins.top]);if(r){var i=jo(n._dataset,(function(t){return t.x})),s=Ko(n._dataset,(function(t){return t.x}));return{xBarScale:Si().domain(n._isRtl?[i,s]:[s,i]).nice().range([n.margins.left+n._domainMargin,e-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:a}}return{xBarScale:Fc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:a}},n._createNumericBars=function(t,e,r){var o=n._getScales(t,e,!0),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,t,r)},n._createStringBars=function(t,e,r){var o=n._getScales(t,e,!1),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,t,r)},n._getGraphData=function(t,e,r,o,a){return n._bars=n._xAxisType===Gu.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._yMax=Math.max(e[e.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t,e){var n,r,o;if(!e){var a=t.xAxisCalloutData||t.xAxisPoint,i=t.chartData.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data;return"".concat(e,", ").concat(n,".")})).join(" "),s=null===(n=t.lineData)||void 0===n?void 0:n.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data||t.y;return"".concat(e,", ").concat(n,".")})).join(" ");return(null===(r=t.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(a,". ").concat(i)+(s?" ".concat(s):"")}var l=t.xAxisCalloutData||e.xAxisCalloutData||t.xAxisPoint,c=e.legend,u=e.yAxisCalloutData||e.data;return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},n._getDomainMargins=function(t){if(n._xAxisType!==Gu.NumericAxis){var e=t-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,e>=a?n._domainMargin+=(e-a)/2:r=e/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:"",emptyChart:!(n.props.data&&n.props.data.length>0&&0===n.props.data.filter((function(t){return 0===t.chartData.length})).length)},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xt("callout"),n._tooltipId=xt("VSBCTooltipId_"),n.props.data&&n.props.data.length&&!n.props.data.filter((function(t){return void 0===t.xAxisPoint})).length?(n._adjustProps(),n._dataset=n._createDataSetLayer()):n.state=o(o({},n.state),{emptyChart:!0}),n._createLegendsForLine=er((function(t){return n._getLineLegends(t)})),n._domainMargin=8,n}return r(e,t),e.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){this._adjustProps();var e=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),n=this._toFocusWholeStack(e),r=this.props.isCalloutForStack,a=void 0!==r&&r;this._dataset=this._createDataSetLayer();var i=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=og(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),_d(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._dataset,chartType:Ku.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:i,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:a||e?md.horizontal:md.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,t._bars),s.createElement("g",null,e&&t._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))}return s.createElement("div",{id:xt("_VSBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=gd(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},e.prototype._createDataSetLayer=function(){var t=[],e=this._points.map((function(e){var n=0;return e.chartData.forEach((function(t){n+=t.data})),t.push(e.xAxisPoint),{x:e.xAxisPoint,y:n}}));return this._xAxisLabels=t,e},e.prototype._renderCallout=function(t){return t?s.createElement(Sd,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._getLegendData=function(t,e,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var a=[e.blueLight,e.blue,e.blueMid,e.red,e.black],i=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;t.forEach((function(t){t.chartData.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};i.push(n)}}))}));var u=[];n&&n.length>0&&n.forEach((function(t){var e={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(t.title)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};u.push(e)}));var d=u.concat(i);return s.createElement($h,o({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},e.prototype._onRectHover=function(t,e,n,r){r.persist(),this._onRectFocusHover(t,e,n,r)},e.prototype._onRectFocusHover=function(t,e,n,r){this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:n,xCalloutValue:e.xAxisCalloutData?e.xAxisCalloutData:t,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},e.prototype._onStackHover=function(t,e){e.persist(),this._onStackHoverFocus(t,e)},e.prototype._onStackHoverFocus=function(t,e){var n=t.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:e,isCalloutVisible:!0,YValueHover:r?i(i([],n.sort((function(t,e){return t.data<e.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},e.prototype._onRectFocus=function(t,e,n,r){r.refElement&&this._onRectFocusHover(e,t,n,r.refElement)},e.prototype._onStackFocus=function(t,e){e.refElement&&this._onStackHoverFocus(t,e.refElement)},e.prototype._onClick=function(t,e){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,e,t),this.props.href&&(window.location.href=this.props.href)},e.prototype._getBarGapAndScale=function(t,e,n){var r=this.props.barGapMax,o=void 0===r?0:r,a=t.reduce((function(t,e){return t+e.data}),0),i=null!=n?n:e(a),s=o&&t.length-1,l=s&&Math.max(1,Math.min(o,.2*i/s));return{gapHeight:l,heightValueScale:(i-l*s)/a}},e}(s.Component),ig=E(ag,(function(t){var e=t.shouldHighlight,n=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:e?"":"0.1",cursor:n?"pointer":"default"},tooltip:o(o({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}})),sg=ht(),lg=.1/.9,cg=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._getGraphData=function(t,e,r,o,a){var i=n._createX0Scale(o),s=n._createX1Scale(i),l=[];n._datasetForBars.forEach((function(t){l.push(n._buildGraph(t,i,s,r,a))})),n._groupedVerticalBarGraph=l},n._getMargins=function(t){return n.margins=t},n._createDataSetOfGVBC=function(t){var e=[],r=t.map((function(t){return t.name}));t[0].series.forEach((function(t){e.push(t.key)}));var o=n._createDataset(t);return{keys:e,xAxisLabels:r,datasetForBars:o}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(t){return n._legendHighlighted(t)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(t,e,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:n.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(t,e,r){n._refArray.forEach((function(o,a){o.index===t.legend&&r===a&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:n.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData})}))},n._redirectToUrl=function(t){t&&(window.location.href=t)},n._buildGraph=function(t,e,r,o,a){var i=[],l=[],c=Si().domain([0,n._yMax]).range([0,o-n.margins.bottom-n.margins.top]),u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(e,a){var d=t.indexNum*u.length+a,h=t[e],p=r(e),f=Math.max(o-n.margins.bottom-c(h.data),0);h.data&&i.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(t){n._refCallback(t,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,t),onMouseMove:n._onBarHover.bind(n,h,t),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,t,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},yi(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=zu(a).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&cd(h)}return s.createElement("g",{key:t.indexNum,transform:"translate(".concat(e(t.xAxisPoint),", 0)")},i,l)},n._createDataset=function(t){var e=[],r=[];return t.forEach((function(t,n){var a={},i={},s=[];t.series.forEach((function(t){a[t.key]=t.data,i[t.key]=o({},t),s.push(t)})),i.xAxisPoint=t.name,i.indexNum=n,i.groupSeries=s,i.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,e.push(i),r.push(a)})),n._dataset=r,e},n._createX0Scale=function(t){return Fc().domain(n._xAxisLabels).range(n._isRtl?[t-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*lg))},n._createX1Scale=function(t){var e=t.bandwidth();return Fc().domain(n._keys).range(n._isRtl?[e,0]:[0,e]).paddingInner(.1)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(t,e){var r=t,a=[e.blueLight,e.blue,e.blueMid,e.red,e.black],i=[];return r.forEach((function(t){t.series.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var r={title:t.legend,color:e,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};i.push(r)}}))})),s.createElement($h,o({legends:i,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._yMax=Math.max(e[e.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t,e){var n,r=t.xAxisCalloutData||e,o=t.legend,a=t.yAxisCalloutData||t.data;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(a,".")},n._getDomainMargins=function(t){var e=t-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),a=n._keys.length*r+(n._keys.length-1)*lg*r,i=n._xAxisLabels.length*a+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,e>=i?n._domainMargin+=(e-i)/2:r=(a=e/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*lg))))/(n._keys.length+(n._keys.length-1)*lg),n._barWidth=r,o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=er((function(t){return n._createDataSetOfGVBC(t)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:"",emptyChart:!1},n._refArray=[],n._calloutId=xt("callout"),n._tooltipId=xt("GVBCTooltipId_"),n._domainMargin=8,n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props.data,n=this._createSet(e),r=n.keys,a=n.xAxisLabels,i=n.datasetForBars;this._keys=r,this._xAxisLabels=a,this._datasetForBars=i,this._xAxisType=gd(e[0].name,!0);var l=this._getLegendData(e,this.props.theme.palette),c=jo(this._dataset,(function(e){return jo(t._keys,(function(t){return e[t]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=sg(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=o(o(o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),_d(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xt("_GVBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:this._datasetForBars,chartType:Ku.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:md.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*lg),xAxisOuterPadding:0,children:function(){return s.createElement("g",null,t._groupedVerticalBarGraph)}}))},e.prototype._refCallback=function(t,e,n){this._refArray[n]={index:e,refElement:t}},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e}(s.Component),ug=E(cg,(function(t){var e=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:o(o({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:e.palette.neutralPrimary}}})),dg=ht(),hg=function(t){function e(e){var n=t.call(this,e)||this;n._rectRefArray={},n._getXandY=function(){var t="",e="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return t=n.data[0].x,e=n.data[0].y,{x:t,y:e}})),{x:t,y:e}},n._getOpacity=function(t){return n._legendHighlighted(t)||n._noLegendHighlighted()?"1":"0.1"},n._rectRefCallback=function(t,e,r){n._rectRefArray[e]={data:r,refElement:t}},n._onRectFocus=function(t,e){n.setState({target:n._rectRefArray[t].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:n._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData})},n._onRectMouseOver=function(t,e,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({target:n._rectRefArray[t].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:n._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var t=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(e,r){n._dataSet[e].forEach((function(e,o){var a="".concat(r).concat(o),i=s.createElement("g",{key:a,role:"img","aria-label":n._getAriaLabel(e),"data-is-focusable":!0,fillOpacity:n._getOpacity(e.legend),transform:"translate(".concat(n._xAxisScale(e.x),", ").concat(n._yAxisScale(e.y),")"),ref:function(t){n._rectRefCallback(t,a,e)},onFocus:n._onRectFocus.bind(n,a,e),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,a,e),onMouseOut:n._onRectBlurOrMouseOut},s.createElement("rect",{fill:n._colorScale(e.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:e.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate(".concat(n._xAxisScale.bandwidth()/2,", ").concat(n._yAxisScale.bandwidth()/2,")")},yd(e.rectText,n.props.culture)));t.push(i)}))})),t},n._onLegendHover=function(t){n.setState({activeLegend:t})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(t){n.state.selectedLegend===t?n.setState({selectedLegend:""}):n.setState({selectedLegend:t})},n._createLegendBars=function(){var t=n.props,e=t.data,r=t.legendProps,a=[];return e.forEach((function(t){var e={title:t.legend,color:n._colorScale(t.value),action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(e)})),s.createElement($h,o({},r,{legends:a}))},n._getColorScale=function(){var t=n.props,e=t.domainValuesForColorScale,r=t.rangeValuesForColorScale;return Si().domain(e).range(r)},n._getXIndex=function(t){return n._xAxisType===Gu.DateAxis?"".concat(t.getTime()):n._xAxisType===Gu.StringAxis?t:n._xAxisType===Gu.NumericAxis?"".concat(t):""},n._getYIndex=function(t){return n._yAxisType===Zu.DateAxis?"".concat(t.getTime()):n._yAxisType===Zu.StringAxis?t:n._yAxisType===Zu.NumericAxis?"".concat(t):""},n._createNewDataSet=function(t,e,r,a,s){var l=[];t.forEach((function(t){t.data.forEach((function(e){l.push(o(o({},e),{legend:t.legend}))}))}));var c={},u={},d={};return l.forEach((function(t){var e=n._getXIndex(t.x),r=n._getYIndex(t.y);d[e]="1",u[r]="1",c[r]?c[r]=i(i([],c[r],!0),[t],!1):c[r]=[t]})),Object.keys(c).forEach((function(t){c[t].sort((function(t,e){return n._xAxisType===Gu.StringAxis?t.x.toLowerCase()>e.x.toLowerCase()?1:-1:n._xAxisType===Gu.DateAxis?t.x.getTime()-e.x.getTime():n._xAxisType===Gu.NumericAxis?+t.x>+e.x?1:-1:t.x>e.x?1:-1})).forEach((function(t){n._xAxisType===Gu.DateAxis&&(t.x=n._getStringFormattedDate(t.x,e)),n._xAxisType===Gu.NumericAxis&&(t.x=n._getStringFormattedNumber(t.x,r)),n._xAxisType===Gu.StringAxis&&(t.x=n._getFormattedLabelForXAxisDataPoint(t.x)),n._yAxisType===Zu.DateAxis&&(t.y=n._getStringFormattedDate(t.y,a)),n._yAxisType===Zu.NumericAxis&&(t.y=n._getStringFormattedNumber(t.y,s)),n._yAxisType===Zu.StringAxis&&(t.y=n._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(c).forEach((function(t){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(t,a)]=c[t]:n._yAxisType===Zu.NumericAxis?c["".concat(n._getStringFormattedNumber(t,s))]=c[t]:c[n._getFormattedLabelForYAxisDataPoint(t)]=c[t]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return n._xAxisType===Gu.DateAxis||n._xAxisType===Gu.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return n._xAxisType===Gu.DateAxis?n._getStringFormattedDate(t,n.props.xAxisDateFormatString):n._xAxisType===Gu.NumericAxis?n._getStringFormattedNumber(t,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(t)}))},n._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return n._yAxisType===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(t,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(t,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(t)}))},n._getStringFormattedDate=function(t,e){var n=new Date;return n.setTime(+t),sl(e||"%b/%d")(n)},n._getStringFormattedNumber=function(t,e){return _i(e||".2~s")(+t)},n._getFormattedLabelForXAxisDataPoint=function(t){var e=n.props.xAxisStringFormatter;return e?e(t):t},n._getFormattedLabelForYAxisDataPoint=function(t){var e=n.props.yAxisStringFormatter;return e?e(t):t},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.x,r=t.y,o=t.legend,a=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,i=t.descriptionMessage;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(a,".")+(i?" ".concat(i,"."):"")};var r=n._getXandY(),a=r.x,l=r.y;return n._xAxisType=gd(a,!0),n._yAxisType=gd(l,!1),n._createSet=er((function(t,e,r,o,a){return n._createNewDataSet(t,e,r,o,a)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:"",emptyChart:!1},n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props,n=e.data,r=e.xAxisDateFormatString,a=e.xAxisNumberFormatString,i=e.yAxisDateFormatString,l=e.yAxisNumberFormatString;this._colorScale=this._getColorScale();var c=this._createSet(n,r,a,i,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=dg(this.props.styles,{theme:this.props.theme});var p=o(o(o(o({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:Et.topAutoEdge,onDismiss:this._closeCallout}),_d(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=o(o({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this.state.emptyChart?s.createElement("div",{id:xt("_HeatMap_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:n,chartType:Ku.HeatMapChart,xAxisType:Gu.StringAxis,yAxisType:Zu.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:md.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,t._createRectangles()}}))},e}(s.Component),pg=E(hg,(function(t){var e=t.theme;return{root:{},text:[e.fonts.medium,{pointerEvents:"none",fill:e.palette.white,fontWeight:Bn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function fg(t,e){return e-1-t.height}function gg(t,e){return t.sourceLinks.length?t.depth:e-1}function mg(t){return function(){return t}}function vg(t,e){return yg(t.source,e.source)||t.index-e.index}function _g(t,e){return yg(t.target,e.target)||t.index-e.index}function yg(t,e){return t.y0-e.y0}function xg(t){return t.value}function bg(t){return t.index}function Cg(t){return t.nodes}function Sg(t){return t.links}function Eg(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Lg({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}class kg{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Ag(t){return new kg(t,!0)}var wg=ht(),Dg="#757575",Tg=[{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"}],Mg="#323130",Pg="#FFFFFF",Fg=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(t){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(t.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?t.color:void 0:t.color},n._fillNodeBorder=function(t){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(t.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(t.index),t.borderColor):t.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1,emptyChart:!(n.props.data&&n.props.data.SankeyChartData&&n.props.data.SankeyChartData.nodes.length>0&&n.props.data.SankeyChartData.links.length>0)},n._calloutId=xt("callout"),n._linkId=xt("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=er((function(t){return n._normalizeSankeyData(t)})),n}return r(e,t),e.prototype.componentDidMount=function(){this._fitParentContainer()},e.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},e.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){var e=this.props,n=e.theme,r=e.className,a=e.styles,i=e.pathColor;this._classNames=wg(a,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:i,className:r});var l,c=this._preRenderLayout(),u=c.height,d=c.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,u-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(e){return t.chartContainer=e},onMouseLeave:this._onCloseCallout},s.createElement(qd,{direction:md.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:u,id:xt("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(ko,o({},f),s.createElement(Sd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))}return s.createElement("div",{id:xt("_SankeyChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._preRenderLayout=function(){var t=this.state.containerWidth-this._margins.right,e=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let t,e,n,r=0,o=0,a=1,i=1,s=24,l=8,c=bg,u=gg,d=Cg,h=Sg,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const r=new Map(t.map(((e,n)=>[c(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:o}=n;"object"!=typeof e&&(e=n.source=Eg(r,e)),"object"!=typeof o&&(o=n.target=Eg(r,o)),e.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:r}of t)e.sort(n),r.sort(n)}(f),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(Go(e.sourceLinks,xg),Go(e.targetLinks,xg)):e.fixedValue}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,o=0;for(;n.size;){for(const t of n){t.depth=o;for(const{target:e}of t.sourceLinks)r.add(e)}if(++o>e)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,o=0;for(;n.size;){for(const t of n){t.height=o;for(const{source:e}of t.targetLinks)r.add(e)}if(++o>e)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:t}){const n=jo(t,(t=>t.depth))+1,o=(a-r-s)/(n-1),i=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(u.call(null,e,n))));e.layer=t,e.x0=r+t*o,e.x1=e.x0+s,i[t]?i[t].push(e):i[t]=[e]}if(e)for(const t of i)t.sort(e);return i}(n);t=Math.min(l,(i-o)/(jo(c,(t=>t.length))-1)),function(e){const n=Ko(e,(e=>(i-o-(e.length-1)*t)/Go(e,xg)));for(const r of e){let e=o;for(const o of r){o.y0=e,o.y1=e+o.value*n,e=o.y1+t;for(const t of o.sourceLinks)t.width=t.value*n}e=(i-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}b(r)}}(c);for(let t=0;t<p;++t){const e=Math.pow(.99,t),n=Math.max(1-e,(t+1)/p);m(c,e,n),g(c,e,n)}}(f),Lg(f),f}function g(t,n,r){for(let o=1,a=t.length;o<a;++o){const a=t[o];for(const t of a){let e=0,r=0;for(const{source:n,value:o}of t.targetLinks){let a=o*(t.layer-n.layer);e+=C(n,t)*a,r+=a}if(!(r>0))continue;let o=(e/r-t.y0)*n;t.y0+=o,t.y1+=o,x(t)}void 0===e&&a.sort(yg),v(a,r)}}function m(t,n,r){for(let o=t.length-2;o>=0;--o){const a=t[o];for(const t of a){let e=0,r=0;for(const{target:n,value:o}of t.sourceLinks){let a=o*(n.layer-t.layer);e+=S(t,n)*a,r+=a}if(!(r>0))continue;let o=(e/r-t.y0)*n;t.y0+=o,t.y1+=o,x(t)}void 0===e&&a.sort(yg),v(a,r)}}function v(e,n){const r=e.length>>1,a=e[r];y(e,a.y0-t,r-1,n),_(e,a.y1+t,r+1,n),y(e,i,e.length-1,n),_(e,o,0,n)}function _(e,n,r,o){for(;r<e.length;++r){const a=e[r],i=(n-a.y0)*o;i>1e-6&&(a.y0+=i,a.y1+=i),n=a.y1+t}}function y(e,n,r,o){for(;r>=0;--r){const a=e[r],i=(a.y1-n)*o;i>1e-6&&(a.y0-=i,a.y1-=i),n=a.y0-t}}function x({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(_g);for(const{target:{targetLinks:e}}of t)e.sort(vg)}}function b(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(_g),n.sort(vg)}function C(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:o,width:a}of e.sourceLinks){if(o===n)break;r+=a+t}for(const{source:t,width:o}of n.targetLinks){if(t===e)break;r-=o}return r}function S(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:o,width:a}of n.targetLinks){if(o===e)break;r+=a+t}for(const{target:t,width:o}of e.sourceLinks){if(t===n)break;r-=o}return r}return f.update=function(t){return Lg(t),t},f.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:mg(t),f):c},f.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:mg(t),f):u},f.nodeSort=function(t){return arguments.length?(e=t,f):e},f.nodeWidth=function(t){return arguments.length?(s=+t,f):s},f.nodePadding=function(e){return arguments.length?(l=t=+e,f):l},f.nodes=function(t){return arguments.length?(d="function"==typeof t?t:mg(t),f):d},f.links=function(t){return arguments.length?(h="function"==typeof t?t:mg(t),f):h},f.linkSort=function(t){return arguments.length?(n=t,f):n},f.size=function(t){return arguments.length?(r=o=0,a=+t[0],i=+t[1],f):[a-r,i-o]},f.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],o=+t[0][1],i=+t[1][1],f):[[r,o],[a,i]]},f.iterations=function(t){return arguments.length?(p=+t,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[t-1,e-6]]).nodeAlign(this._isRtl?fg:gg),{height:e,width:t}},e.prototype._populateNodeActualValue=function(t){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=t.value)})),t.nodes.forEach((function(t){t.actualValue=Math.max(Go(t.sourceLinks,(function(t){return t.unnormalizedValue})),Go(t.targetLinks,(function(t){return t.unnormalizedValue})))}))},e.prototype._normalizeSankeyData=function(t){this._nodesInColumn=this._populateNodeInColumns(t,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},e.prototype._populateNodeInColumns=function(t,e){e(t);var n={};return t.nodes.forEach((function(t){var e=t.layer;n[e]?n[e].push(t):n[e]=[t]})),n},e.prototype._adjustOnePercentHeightNodes=function(t){var e=this;Object.values(t).map((function(t){return Go(t,(function(t){return t.value}))})).forEach((function(n,r){var o=0;t[r].forEach((function(t){var e=t.value/n*100;t.actualValue=t.value,e<1?(t.value=.01*n,o+=1):o+=e}));var a=0!==o?o/100:1;a>1&&t[r].forEach((function(t){t.value=t.value/a,e._changeColumnValue(t,t.actualValue,t.value)}))}))},e.prototype._changeColumnValue=function(t,e,n){t.sourceLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r})),t.targetLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r}))},e.prototype._adjustPadding=function(t,e,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(t){var n=.3*e;n<e-Go(t,(function(t){return t.y1-t.y0}))&&(r=Math.min(r,n/(t.length-1)))})),r},e.prototype._createLinks=function(){var t=this,e=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var o,a=[{x:(o=n).source.x1,y0:o.y0+o.width/2,y1:o.y0-o.width/2},{x:o.target.x0,y0:o.y1+o.width/2,y1:o.y1-o.width/2}],i=Lf().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve(Ag),l="url(#gradient-".concat(t._linkId,"-").concat(r,")"),c=s.createElement("g",{key:"".concat(t._linkId,"-").concat(r)},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-".concat(t._linkId,"-").concat(r),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:i(a),id:xt("link"),fill:t._fillStreamColors(n,l),stroke:t._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:t._getOpacityStreamBorder(n),onMouseOver:t._onStreamHover.bind(t,n),onMouseOut:function(){t._onStreamLeave(n)},onFocus:t._onFocusLink.bind(t,n),onBlur:t._onBlur,fillOpacity:t._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));e.push(c)})),e},e.prototype._createNodes=function(t){var e=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(t,r){var o=t.y1-t.y0>0?t.y1-t.y0:0,a=8,i=0;if(o<36){a+=6;var l=zu(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(t.actualValue),null!==l.node()&&(a+=i=l.node().getComputedTextLength()),l.text(null),Xu(".tempText").remove()}var c=e._truncateText(t.name,116,a),u="..."===c.slice(-3),d=xt("tooltip"),h=zu("body").append("div").attr("id",d).attr("class",e._classNames.toolTip).style("opacity",0),p=xt("nodeBar"),f=s.createElement("g",{key:r,id:xt("nodeGElement")},s.createElement("rect",{x:t.x0,y:t.y0,height:o,width:t.x1-t.x0,fill:e._fillNodeColors(t),id:p,onMouseOver:e._onHover.bind(e,t),onMouseOut:function(){e._onLeave(t)},onFocus:e._onCloseCallout.bind(e),stroke:e._fillNodeBorder(t),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(t.name)+"with weight"+"".concat(t.actualValue),role:"img"}),t.y1-t.y0>24&&s.createElement("g",{className:e._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:"".concat(p,"-name"),x:t.x0,y:t.y0,dy:"1.2em",dx:"0.4em",textAnchor:e._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!e.state.selectedState||e.state.selectedState&&e.state.selectedNodes.has(t.index)&&e.state.selectedNode||e.state.selectedState&&!e.state.selectedNode?Pg:Mg,fontSize:10,onMouseOver:e._showTooltip.bind(e,t.name,u,h),onMouseOut:e._hideTooltip.bind(e,h)},c)),s.createElement("text",{x:o>36?t.x0:t.x1-i-8,y:t.y0,dy:o>36?"2em":"1em",dx:o>36?"0.4em":"0em",textAnchor:e._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!e.state.selectedState||e.state.selectedState&&e.state.selectedNodes.has(t.index)&&e.state.selectedNode||e.state.selectedState&&!e.state.selectedNode?Pg:Mg,fontSize:14},t.actualValue)));n.push(f)})),n},e.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},e.prototype._onHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(t),r=this._getSelectedNodes(n);r.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(n).map((function(t){return t.index}))),selectedNode:t,refSelected:e,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:t.actualValue})}},e.prototype._onStreamHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(t),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:e,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.unnormalizedValue.toString(),descriptionMessage:"from "+t.source.name})}},e.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},e.prototype._onFocusLink=function(t,e){e.persist(),this._onCloseCallout(),this.setState({refSelected:e.currentTarget,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.source.actualValue,descriptionMessage:"from "+t.source.name})},e.prototype._assignNodeColors=function(){var t,e;this.props.colorsForNodes&&this.props.borderColorsForNodes?(t=this.props.colorsForNodes,e=this.props.borderColorsForNodes):(t=Tg.map((function(t){return t.fillColor})),e=Tg.map((function(t){return t.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=t[n],r.borderColor=e[n]),n=(n+1)%t.length}))},e.prototype._fillStreamColors=function(t,e){return this.state.selectedState&&this.state.selectedLinks.has(t.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(t.index)?e:void 0},e.prototype._fillStreamBorder=function(t,e){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(t.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(t.index)?e:Dg:Dg},e.prototype._getSelectedNodes=function(t){var e=[];return t.forEach((function(t){e.push(t.target),-1===e.indexOf(t.source)&&e.push(t.source)})),e},e.prototype._getSelectedLinks=function(t){var e=new Array,n=new Set;for(t.sourceLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;)(r=e.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(t){n.add(t),e.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;){var r;(r=e.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(t){n.add(t),e.push(t)}))}return n},e.prototype._getSelectedLinksforStreamHover=function(t){var e=new Array,n=new Set,r=new Set;for(e.push(t.source),n.add(t);e.length>0;){var o=e.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(t){e.push(t.source),n.add(t)}))}for(e.push(t.target);e.length>0;)o=e.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(t){e.push(t.target),n.add(t)}));return{selectedLinks:n,selectedNodes:r}},e.prototype._getOpacityStream=function(t){if(this.state.selectedState){if(!this.state.selectedLinks.has(t.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(t.index)&&!this.state.selectedNode)return.3}return 1},e.prototype._getOpacityStreamBorder=function(t){return!this.state.selectedState||this.state.selectedLinks.has(t.index)||this.state.selectedNode?1:.5},e.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e=t.props.parentRef?t.props.parentRef:t.chartContainer,o=e.getBoundingClientRect().width,a=e.getBoundingClientRect().height;(n!==o||r!==a)&&t.setState({containerWidth:o,containerHeight:a})}))},e.prototype._truncateText=function(t,e,n){var r=e-n,o=0,a=zu(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(a.text(t),null!==a.node()&&a.node().getComputedTextLength()<=r)return t;a.text(null),a.text("..."),null!==a.node()&&(o=a.node().getComputedTextLength()),a.text(null);for(var i="",s=0;s<t.length;s++)if(i+=t[s],a.text(i),null!==a.node()&&a.node().getComputedTextLength()>=r-o){i=i.slice(0,-1),i+="...";break}return a.text(null),Xu(".tempText").remove(),i},e.prototype._showTooltip=function(t,e,n,r){e&&(n.style("opacity",.9),n.html(t).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},e.prototype._hideTooltip=function(t){t.style("opacity",0)},e}(s.Component),Ng=E(Fg,(function(t){var e,n,r,a=t.className,i=t.theme,s=t.pathColor,l=i.effects;return{root:[i.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},a],links:{stroke:s||i.palette.black,fill:i?i.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(e={},e[qn]={fill:"#000000"},e)},nodes:{fill:"#F5F5F5",selectors:(n={},n[qn]={fill:"#000000"},n)},toolTip:o(o({},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:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Vg(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Ig(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Hg)):void 0===e&&(e=Og);for(var n,r,o,a,i,s=new Wg(t),l=[s];n=l.pop();)if((o=e(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new Wg(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Rg)}function Og(t){return t.children}function Hg(t){return Array.isArray(t)?t[1]:null}function Bg(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Rg(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Wg(t){this.data=t,this.depth=this.height=0,this.parent=null}function zg(t,e){return t.parent===e.parent?1:2}function Yg(t){var e=t.children;return e?e[0]:t.t}function Ug(t){var e=t.children;return e?e[e.length-1]:t.t}function qg(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Xg(t,e,n){return t.a.parent===e.parent?t.a:n}function jg(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Wg.prototype=Ig.prototype={constructor:Wg,count:function(){return this.eachAfter(Vg)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(t.call(e,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,o=r&&r.length;--o>=0;)n+=r[o].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),o=null;for(t=n.pop(),e=r.pop();t===e;)o=t,t=n.pop(),e=r.pop();return o}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var o=r.length;t!==n;)r.splice(o,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Ig(this).eachBefore(Bg)},[Symbol.iterator]:function*(){var t,e,n,r,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(yield o,e=o.children)for(n=0,r=e.length;n<r;++n)a.push(e[n])}while(a.length)}},jg.prototype=Object.create(Wg.prototype);var Kg,Gg,Zg=ht(),$g=function(){function t(t,e,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=e,this._nodeElements=n,this._linkElements=r}return t.prototype.truncateText=function(t,e,n,r){var o,a=t.split(/\s+/).reverse(),i="",s=zu(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];i=a.pop();)if(l.push(i),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>e-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),Xu(".tempText").remove(),o},t.prototype.addNodeShapetoSVG=function(t,e,n,r,o,a,i,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(t,"\nsubText ").concat(e," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(s.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:i,key:"".concat(u).concat(this.styleClassNames.rectNode)})),e&&(e=this.truncateText(e,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),t=this.truncateText(t,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e);e||r||n?this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t))},t.prototype.createPathLink=function(t,e,n,r,o,a,i,s,l){var c="M".concat(n-a/2,",").concat(r-s," H").concat(l+a/2," M").concat(t,",").concat(r-s,"\n V").concat(e+i+s/2),u="M".concat(t,",").concat(e+i+s/2," V").concat(e+5*s,"\n H").concat(t-a/2," H").concat(t+a/2);return o?u:c},t.prototype.addLinktoSVG=function(t,e,n,r,o,a,i,l,c,u){void 0===u&&(u=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(e,n,r,o,a,i,l,c,u),key:"".concat(t).concat(this.styleClassNames.link)}))},t}(),Qg=function(t){function e(e,n,r,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=[]);var s=t.call(this,e,r,o,a)||this;return s.composition=n,s._treeTraversal=i,s}return r(e,t),e.prototype.createTree=function(t,e){var n,r,o,a,i,s,l=(t=t<65?65:t>90?90:t)||75,c=Ig(this.treeData,(function(t){return t.children})),u=(null==c?void 0:c.height)+1;(function(){var t=zg,e=1,n=1,r=null;function o(o){var l=function(t){for(var e,n,r,o,a,i=new jg(t,0),s=[i];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=e.children[o]=new jg(r[o],o)),n.parent=e;return(i.parent=new jg(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>d.depth&&(d=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,f=e/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return o}function a(e){var n=e.children,r=e.parent.children,o=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,o=t.children,a=o.length;--a>=0;)(e=o[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;o?(e.z=o.z+t(e._,o._),e.m=e.z-a):e.z=a}else o&&(e.z=o.z+t(e._,o._));e.parent.A=function(e,n,r){if(n){for(var o,a=e,i=e,s=n,l=a.parent.children[0],c=a.m,u=i.m,d=s.m,h=l.m;s=Ug(s),a=Yg(a),s&&a;)l=Yg(l),(i=Ug(i)).a=e,(o=s.z+d-a.z-c+t(s._,a._))>0&&(qg(Xg(s,e,r),e,o),c+=o,u+=o),d+=s.m,c+=a.m,h+=l.m,u+=i.m;s&&!Ug(i)&&(i.t=s,i.m+=d-u),a&&!Yg(l)&&(l.t=a,l.m+=c-h,r=e)}return r}(e,o,e.parent.A||r[0])}function i(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return o.separation=function(e){return arguments.length?(t=e,o):t},o.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],o):r?null:[e,n]},o.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],o):r?[e,n]:null},o})().nodeSize([l,l/1.5]).separation((function(t,e){return t.parent===c&&e.parent===c?3.5:1}))(c).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=e/2}));var d=[],h=0,p=function(t){var e,n;t.id=h,d.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(e=t.data)||void 0===e?void 0:e.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(n=t.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(t){p(t)})):c.eachBefore((function(t){p(t)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){var C=(f-m)/2,S=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var E=null===(n=d[x.parentID])||void 0===n?void 0:n.children,L=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,k=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,A=null===(a=d[x.parentID])||void 0===a?void 0:a.x,w=null===(i=E[0])||void 0===i?void 0:i.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?A:L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m)}}if((x.children||u<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){var M=Ko(E=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(t){return t.x})),P=jo(E,(function(t){return t.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},e}($g),Jg=function(t){function e(e){var n,r=this;return(r=t.call(this,e)||this)._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Zg(r,{theme:e,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},e.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var e=Xu("text"),n=Xu("rect"),r=Xu("path");0===this._nodeElements.length&&0===this._linkElements.length&&(e.remove(),n.remove(),r.remove()),this.createTreeChart()}},e.prototype.createTreeChart=function(){var t=[],e=[],n=new Qg(this._treeData,this._composition,this._classNames,t,e,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=t,this._linkElements=e},e.prototype.render=function(){var t;return s.createElement(qd,null,s.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},e}(s.Component),tm=E(Jg,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:o({fill:"black"},t.theme.fonts.large),rectSubText:o({fill:"#484644"},t.theme.fonts.medium),rectBodyText:o({fill:"#808080"},t.theme.fonts.xSmall),rectMetricText:o({fill:"#000000"},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Kg||(Kg={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Gg||(Gg={}));var em=ht(),nm=function(t){function e(e){var n=t.call(this,e)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80,_emptyChart:!1},n}return r(e,t),e.prototype.componentDidMount=function(){var t=this,e=!(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);if(this.state._emptyChart!==e)this.setState({_emptyChart:e});else{var n=Lf().x((function(e){return t.x(e.x)})).y0(this.state._height).y1((function(e){return t.y(e.y)})).curve(Bp);this.area=n;var r=zp().x((function(e){return t.x(e.x)})).y((function(e){return t.y(e.y)})).curve(Bp);this.line=r;var o=this.props.data.lineChartData[0].data,a=function(t,e){var n,r,o,a=t.length,i=-1;if(null==e){for(;++i<a;)if(null!=(n=t[i])&&n>=n)for(r=o=n;++i<a;)null!=(n=t[i])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++i<a;)if(null!=(n=e(t[i]))&&n>=n)for(r=o=n;++i<a;)null!=(n=e(t[i]))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]}(o,(function(t){return t.x})),i=a[0],s=a[1];this.x=Si().domain([i,s]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Si().domain([0,jo(o,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:o})}},e.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},e.prototype.render=function(){var t=em(this.props.styles,{theme:this.props.theme});return this.state._emptyChart?s.createElement("div",{id:xt("_SparklineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(qd,{direction:md.horizontal,isCircularNavigation:!0,className:t.inlineBlock},s.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},e}(s.Component),rm=E(nm,(function(t){return{inlineBlock:{display:"inline"},valueText:o(o({},t.theme.fonts.smallPlus),{fill:t.theme.palette.black})}})),om=ht(),am=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._getMargins=function(t){n.margins=t},n._renderContentForOnlyBars=function(t){var e,r,o,a=n.props.useSingleColor,i=void 0!==a&&a,l=0;return n.props.data.forEach((function(e,n){e.y===t.y&&(l=n)})),o=i?n.props.colors?n._createColors()(1):gf(1,0,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted):t.color?t.color:n.props.colors?n._createColors()(t.x):gf(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Sd,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:n.props.culture}))},n._renderCallout=function(t){return t?n._renderContentForOnlyBars(t):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(t,e,r,o,a,i){return n._bars=n._yAxisType===Zu.NumericAxis?n._createNumericBars(r,o,a,i):n._createStringBars(r,o,a,i)},n._refCallback=function(t,e){n._refArray.push({index:e,refElement:t})},n._getCalloutContentForBar=function(t){var e,r,o,a=[],i=n.props.useSingleColor,s=void 0!==i&&i,l=n.props.data,c=l.filter((function(e){return e.y===t.y})),u=0;return l.forEach((function(e,n){e.y===t.y&&(u=n)})),o=s?n.props.colors?n._createColors()(1):gf(1,0,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted):c[0].color?c[0].color:n.props.colors?n._createColors()(c[0].x):gf(u,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),a.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:t.yAxisCalloutData||t.y.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(t,e,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===t.legend){var o=n._getCalloutContentForBar(t),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){e===s&&n.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:n.props.useSingleColor?r:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:t.callOutAccessibilityData})}))}},n._getScales=function(t,e,r){if(r){var o=jo(n._points,(function(t){return t.x})),a=jo(n._points,(function(t){return t.y}));return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,e-n.margins.right]),yBarScale:i=Si().domain([0,a]).range([t-n.margins.bottom,n.margins.top])}}o=jo(n._points,(function(t){return t.x}));var i=Fc().domain(n._yAxisLabels).range([t-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).range([n.margins.left,e-n.margins.right]),yBarScale:i}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(t,e){var r=n.props.useSingleColor,a=[];return t.forEach((function(t,e){var o,i=r?n.props.colors?n._createColors()(1):gf(1,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):t.color,s={title:t.legend,color:i,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._onLegendHover(t.legend)},onMouseOutAction:function(t){n._onLegendLeave(t)}};a.push(s)})),s.createElement($h,o({legends:a,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._xMax=Math.max(e[e.length-1],n.props.xMaxValue||0)}},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.x,r=t.yAxisCalloutData||t.y;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._calloutId=xt("callout"),n._tooltipId=xt("HBCWATooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].x,!0):Gu.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].y,!1):Zu.StringAxis,n}return r(e,t),e.prototype.render=function(){var t=this;this._adjustProps();var e=i([],this._points,!0).reverse();this._yAxisLabels=e.map((function(t){return t.y})),this._xMax=Math.max(jo(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=om(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),_d(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._points,chartType:Ku.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:a,legendBars:n,barwidth:this._barHeight,focusZoneDirection:md.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return s.createElement(s.Fragment,null,s.createElement("g",null,t._bars))}}))},e.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]},e.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(e*o*this._xMax);return Si().domain(r).range(this._colors)},e.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForBar(t),o=r.YValueHover,a=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?e:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData}))},e.prototype._createNumericBars=function(t,e,n,r){var o=this,a=this.props.useSingleColor,l=void 0!==a&&a,c=this._getScales(t,e,!0),u=c.xBarScale,d=c.yBarScale,h=i([],this._points,!0);h.sort((function(t,e){var n="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof e.y?e.y:parseFloat(e.y))-n}));var p=h.map((function(t,n){var r,a,i,c=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(c=o.state.selectedLegendTitle===t.legend),o._classNames=om(o.props.styles,{theme:o.props.theme,legendColor:o.state.color,shouldHighlight:c}),Math.max(d(t.y),0)<1?s.createElement(s.Fragment,{key:t.x}," "):(i=l?o.props.colors?o._createColors()(1):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):gf(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{key:t.y,x:o._isRtl?u(t.x):o.margins.left,className:o._classNames.opacityChangeOnHover,y:d(t.y)-o._barHeight/2,"data-is-focusable":!0,width:o._isRtl?e-o.margins.right-Math.max(u(t.x),0):Math.max(u(t.x),0)-o.margins.left,height:o._barHeight,ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,i),"aria-label":o._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(o._calloutId),onMouseLeave:o._onBarLeave,onFocus:o._onBarFocus.bind(o,t,n,i),onBlur:o._onBarLeave,fill:t.color&&!l?t.color:i}))}));return p},e.prototype._tooltipOfYAxislabels=function(t){var e=this,n=t.tooltipCls,r=t.yAxis,o=t.id;if(null===r)return null;for(var a=zu("body").append("div").attr("id",o).attr("class",n).style("opacity",0),i=r.selectAll("#BaseSpan")._groups[0],s=i&&Object.keys(i).length,l=[],c=0;c<s;c++){var u=i[c].dataset&&Object.values(i[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(t){zu(d[t]).on("mouseover",(function(n){e.state.tooltipElement||(a.style("opacity",.9),a.html(l[t]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px"))})).on("mouseout",(function(t){a.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},e.prototype._createStringBars=function(t,e,n,r){var o=this,a=this._getScales(t,e,!1),i=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(t,n){var r,a,c;return Math.max(l(t.y),0)<1?s.createElement(s.Fragment,{key:t.x}," "):(c=u?o.props.colors?o._createColors()(1):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):gf(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?i(t.x):o.margins.left,y:l(t.y),width:o._isRtl?e-o.margins.right-Math.max(i(t.x),0):Math.max(i(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,n,c),fill:t.color&&!u?t.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=zu(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},e.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},e.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},e.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},e}(s.Component),im=E(am,(function(t){var e=t.shouldHighlight,n=t.theme;return{opacityChangeOnHover:{opacity:e?"":"0.1"},xAxisTicks:[],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));Br("@fluentui/react-charting","5.16.39"),FluentUIReactCharting=e}();
|
|
1
|
+
var FluentUIReactCharting;!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{AreaChart:function(){return Of},CartesianChart:function(){return Xp},ChartHoverCard:function(){return Sd},DataVizPalette:function(){return cf},DonutChart:function(){return Op},GroupedVerticalBarChart:function(){return ug},HeatMapChart:function(){return pg},HorizontalBarChart:function(){return ih},HorizontalBarChartVariant:function(){return _t},HorizontalBarChartWithAxis:function(){return im},Legends:function(){return $h},LineChart:function(){return xf},MultiStackedBarChart:function(){return Jf},MultiStackedBarChartVariant:function(){return zf},NodesComposition:function(){return Kg},PieChart:function(){return Xf},SankeyChart:function(){return Ng},Shape:function(){return Kh},Sparkline:function(){return rm},StackedBarChart:function(){return Gf},Textbox:function(){return af},TreeChart:function(){return tm},TreeTraverse:function(){return Gg},VerticalBarChart:function(){return rg},VerticalStackedBarChart:function(){return ig},getChartHoverCardStyles:function(){return Cd},getColorFromToken:function(){return mf},getNextColor:function(){return gf}});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function i(t,e,n){if(n||2===arguments.length)for(var r,o=0,a=e.length;o<a;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create;var s=React;function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var n={},r={},o=0,a=t;o<a.length;o++){var s=a[o];if(s)for(var c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var u=s.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[c],p=s[c];n[c]=void 0===h?p:i(i([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(t){if(r.hasOwnProperty(t)){var e=r[t];f[t]=function(t){return l.apply(void 0,e.map((function(e){return"function"==typeof e?e(t):e})))}}};for(var d in r)g(d)}return n}function c(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var u=void 0;try{u=window}catch(t){}function d(t){if(c()&&void 0!==u){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:u}}var h="__globalSettings__",p="__callbacks__",f=0,g=function(){function t(){}return t.getValue=function(t,e){var n=m();return void 0===n[t]&&(n[t]="function"==typeof e?e():e),n[t]},t.setValue=function(t,e){var n=m(),r=n[p],o=n[t];if(e!==o){n[t]=e;var a={oldValue:o,value:e,key:t};for(var i in r)r.hasOwnProperty(i)&&r[i](a)}return e},t.addChangeListener=function(t){var e=t.__id__,n=v();e||(e=t.__id__=String(f++)),n[e]=t},t.removeChangeListener=function(t){delete v()[t.__id__]},t}();function m(){var t,e=d()||{};return e[h]||(e[h]=((t={})[p]={},t)),e[h]}function v(){return m()[p]}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function t(){}return t.reset=function(){y.settings={},y.scopedSettings={}},t.applySettings=function(e){y.settings=o(o({},y.settings),e),t._raiseChange()},t.applyScopedSettings=function(e,n){y.scopedSettings[e]=o(o({},y.scopedSettings[e]),n),t._raiseChange()},t.getSettings=function(t,e,n){void 0===n&&(n=_);for(var r={},o=e&&n.scopedSettings[e]||{},a=e&&y.scopedSettings[e]||{},i=0,s=t;i<s.length;i++){var l=s[i];r[l]=o[l]||n.settings[l]||a[l]||y.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(t){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(t){x.push(t)},t.unobserve=function(t){x=x.filter((function(e){return e!==t}))},t._raiseChange=function(){t._suppressUpdates||x.forEach((function(t){return t()}))},t}(),C=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var S=["theme","styles"];function E(t,e,n,r,i){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?S:u,h=s.forwardRef((function(r,i){var u,h,p,f,g,m,v=s.useRef(),_=(u=d,h=c,p=s.useState(0)[1],f=function(){return p((function(t){return++t}))},g=s.useContext(C).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||b.observe(f),function(){m||b.unobserve(f)}}),[m]),b.getSettings(u,h,g)),y=_.styles,x=(_.dir,a(_,["styles","dir"])),S=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],L=r.styles;if(!v.current||y!==E[1]||L!==E[2]){var k=function(t){return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=[],o=0,a=e;o<a.length;o++){var i=a[o];i&&r.push("function"==typeof i?i(t):i)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(t,e,y,L)};k.__cachedInputs__=[e,y,L],k.__noStyleOverride__=!y&&!L,v.current=k}return s.createElement(t,o({ref:i},x,S,r,{styles:v.current}))}));h.displayName="Styled".concat(t.displayName||t.name);var p=i?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,k="__stylesheet__",A="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),w={};try{w=window||{}}catch(V){}var D=function(){function t(t,e){var n,r,a,i,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=o({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(n=null==e?void 0:e.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==e?void 0:e.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(a=this._config.classNameCache)&&void 0!==a?a:null==e?void 0:e.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(s=null==e?void 0:e.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==e?void 0:e.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(L=w[k])||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var e=(null==w?void 0:w.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);L=n,w[k]=n}return L},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=o(o({},this._config),t)},t.prototype.onReset=function(t){var e=this;return this._onResetCallbacks.push(t),function(){e._onResetCallbacks=e._onResetCallbacks.filter((function(e){return e!==t}))}},t.prototype.onInsertRule=function(t){var e=this;return this._onInsertRuleCallbacks.push(t),function(){e._onInsertRuleCallbacks=e._onInsertRuleCallbacks.filter((function(e){return e!==t}))}},t.prototype.getClassName=function(t){var e=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(e?e+"-":"").concat(n,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),r)switch(n){case 1:var o=r.sheet;try{o.insertRule(t,o.cssRules.length)}catch(t){}break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(t){return t()}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),A||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style"),n=null;e.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&e.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:t.childNodes[0]}return t.insertBefore(e,t.contains(n)?n:null),this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}();function T(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],r=[],o=D.getInstance();return function t(e){for(var a=0,i=e;a<i.length;a++){var s=i[a];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=o.argsFromClassName(s);l?t(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&r.push(s)}}(t),{classes:n,objects:r}}var M,P={},F={"user-select":1};function N(t,e){var n=function(){var t;if(!M){var e="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==n?void 0:n.userAgent)||void 0===t?void 0:t.toLowerCase();M=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return M}(),r=t[e];if(F[r]){var o=t[e+1];F[r]&&(n.isWebkit&&t.push("-webkit-"+r,o),n.isMoz&&t.push("-moz-"+r,o),n.isMs&&t.push("-ms-"+r,o),n.isOpera&&t.push("-o-"+r,o))}}var V,I=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function O(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var o=I.indexOf(n)>-1,a=n.indexOf("--")>-1,i=o||a?"":"px";t[e+1]="".concat(r).concat(i)}}var H="left",B="right",R="@noflip",W=((V={})[H]=B,V[B]=H,V),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Y(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var o=e[n+1];if("string"==typeof o&&o.indexOf(R)>=0)e[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(H)>=0)e[n]=r.replace(H,B);else if(r.indexOf(B)>=0)e[n]=r.replace(B,H);else if(String(o).indexOf(H)>=0)e[n+1]=o.replace(H,B);else if(String(o).indexOf(B)>=0)e[n+1]=o.replace(B,H);else if(W[r])e[n]=W[r];else if(z[o])e[n+1]=z[o];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return"".concat(e[0]," ").concat(e[3]," ").concat(e[2]," ").concat(e[1])}return t}(o);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}var U,q="displayName",X=/\:global\((.+?)\)/g;function j(t,e){return t.indexOf(":global(")>=0?t.replace(X,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function K(t,e,n,r){void 0===e&&(e={__order:[]}),0===n.indexOf("@")?G([r],e,n=n+"{"+t):n.indexOf(",")>-1?function(t){if(!X.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],o=e[2];return t.slice(0,n)+o+t.slice(r)}),t)}(n).split(",").map((function(t){return t.trim()})).forEach((function(n){return G([r],e,j(n,t))})):G([r],e,j(n,t))}function G(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=D.getInstance(),o=e[n];o||(o={},e[n]=o,e.__order.push(n));for(var a=0,i=t;a<i.length;a++){var s=i[a];if("string"==typeof s){var l=r.argsFromClassName(s);l&&G(l,e,n)}else if(Array.isArray(s))G(s,e,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&K(n,e,h,d[h])}else"object"==typeof u?null!==u&&K(n,e,c,u):void 0!==u&&("margin"===c||"padding"===c?Z(o,c,u):o[c]=u)}}return e}function Z(t,e,n){var r="string"==typeof n?function(t){for(var e=[],n=0,r=0,o=0;o<t.length;o++)switch(t[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&e.push(t.substring(n,o)),n=o+1)}return n<t.length&&e.push(t.substring(n)),e}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(t){return t+" !important"}))),t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function $(t,e){return e<=0?"":1===e?t:t+$(t,e-1)}function Q(t,e){if(!e)return"";var n,r,o,a=[];for(var i in e)e.hasOwnProperty(i)&&i!==q&&void 0!==e[i]&&a.push(i,e[i]);for(var s=0;s<a.length;s+=2)o=void 0,"-"!==(o=(n=a)[r=s]).charAt(0)&&(n[r]=P[o]=P[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),O(a,s),Y(t,a,s),N(a,s);for(s=1;s<a.length;s+=4)a.splice(s,1,":",a[s],";");return a.join("")}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=G(e),o=function(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,o=0,a=e.__order;o<a.length;o++){var i=a[o];n.push(i);var s=e[i];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(t,r);if(o){var a=D.getInstance(),i={className:a.classNameFromKey(o),key:o,args:e};if(!i.className){i.className=a.getClassName(function(t){var e=t&&t["&"];return e?e.displayName:void 0}(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,Q(t,r[u]))}i.rulesToInsert=s}return i}}function tt(t,e){void 0===e&&(e=1);var n=D.getInstance(),r=t.className,o=t.key,a=t.args,i=t.rulesToInsert;if(i){for(var s=0;s<i.length;s+=2){var l=i[s+1];if(l){var c=i[s];c=c.replace(/&/g,$(".".concat(t.className),e));var u="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,a,i)}}function et(t){if(c()&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}function nt(t){var e=null;try{var n=d();e=n?n.sessionStorage.getItem(t):null}catch(t){}return e}function rt(t){U!==t&&(U=t)}function ot(){return void 0===U&&(U="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),U}function at(){return{rtl:ot()}}U=ot();var it,st="isRTL";function lt(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===it){var e=nt(st);null!==e&&function(t,e){void 0===e&&(e=!1);var n=et();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr"),e&&function(t,e){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem(t,e)}catch(t){}}(st,t?"1":"0"),rt(it=t)}(it="1"===e);var n=et();void 0===it&&n&&rt(it="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!it}var ct=0,ut=D.getInstance();ut&&ut.onReset&&ut.onReset((function(){return ct++}));var dt="__retval__";function ht(t){void 0===t&&(t={});var e=new Map,n=0,r=0,o=ct;return function(a,i){var s;if(void 0===i&&(i={}),t.useStaticStyles&&"function"==typeof a&&a.__noStyleOverride__)return a(i);r++;var c=e,u=i.theme,h=u&&void 0!==u.rtl?u.rtl:lt(),p=t.disableCaching;if(o!==ct&&(o=ct,e=new Map,n=0),t.disableCaching||(c=ft(e,a),c=ft(c,i)),!p&&c[dt]||(c[dt]=void 0===a?{}:function(t,e){var n={subComponentStyles:{}};if(!t[0]&&t.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,t),o=[];for(var a in r)if(r.hasOwnProperty(a)){if("subComponentStyles"===a){n.subComponentStyles=r.subComponentStyles||{};continue}var i=T(r[a]),s=i.classes,c=i.objects;(null==c?void 0:c.length)?(h=J(e||{},{displayName:a},c))&&(o.push(h),n[a]=s.concat([h.className]).join(" ")):n[a]=s.join(" ")}for(var u=0,d=o;u<d.length;u++){var h;(h=d[u])&&tt(h,null==e?void 0:e.specificityMultiplier)}return n}(["function"==typeof a?a(i):a],{rtl:!!h,specificityMultiplier:t.useStaticStyles?5:void 0}),p||n++),n>(t.cacheSize||50)){var f=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),e.clear(),n=0,t.disableCaching=!0}return c[dt]}}function pt(t,e){return e=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(e),t.has(e)||t.set(e,new Map),t.get(e)}function ft(t,e){if("function"==typeof e)if(e.__cachedInputs__)for(var n=0,r=e.__cachedInputs__;n<r.length;n++)t=pt(t,r[n]);else t=pt(t,e);else if("object"==typeof e)for(var o in e)e.hasOwnProperty(o)&&(t=pt(t,e[o]));return t}var gt="__currentId__",mt="id__",vt=d()||{};void 0===vt[gt]&&(vt[gt]=0);var _t,yt=!1;function xt(t){if(!yt){var e=D.getInstance();e&&e.onReset&&e.onReset(bt),yt=!0}var n=vt[gt]++;return(void 0===t?mt:t)+n}function bt(t){void 0===t&&(t=0),vt[gt]=t}function Ct(t,e,n){void 0===n&&(n=0);for(var r=-1,o=n;t&&o<t.length;o++)if(e(t[o],o)){r=o;break}return r}function St(t,e){var n=Ct(t,e);if(!(n<0))return t[n]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(_t||(_t={}));var Et={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function Lt(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&(n=t)&&n._virtual&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function kt(t,e){return t&&t!==document.body?e(t)?t:kt(Lt(t),e):null}function At(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)if(t===e)r=!0;else for(r=!1;e;){var o=Lt(e);if(o===t){r=!0;break}e=o}else t.contains&&(r=t.contains(e));return r}var wt="data-is-focusable",Dt="data-is-visible",Tt="data-focuszone-id",Mt="data-is-sub-focuszone";function Pt(t,e){var n=Nt(t,t,!0,!1,!1,!0,void 0,void 0,e);return!!n&&(Wt(n),!0)}function Ft(t,e,n,r,o,a,i,s){if(!e||!i&&e===t)return null;var l=Vt(e);if(o&&l&&(a||!Ht(e)&&!Bt(e))){var c=Ft(t,e.lastElementChild,!0,!0,!0,a,i,s);if(c){if(s&&Ot(c,!0)||!s)return c;var u=Ft(t,c.previousElementSibling,!0,!0,!0,a,i,s);if(u)return u;for(var d=c.parentElement;d&&d!==e;){var h=Ft(t,d.previousElementSibling,!0,!0,!0,a,i,s);if(h)return h;d=d.parentElement}}}return n&&l&&Ot(e,s)?e:Ft(t,e.previousElementSibling,!0,!0,!0,a,i,s)||(r?null:Ft(t,e.parentElement,!0,!1,!1,a,i,s))}function Nt(t,e,n,r,o,a,i,s,l){if(!e||e===t&&o&&!i)return null;var c=(l?It:Vt)(e);if(n&&c&&Ot(e,s))return e;if(!o&&c&&(a||!Ht(e)&&!Bt(e))){var u=Nt(t,e.firstElementChild,!0,!0,!1,a,i,s,l);if(u)return u}return e===t?null:Nt(t,e.nextElementSibling,!0,!0,!1,a,i,s,l)||(r?null:Nt(t,e.parentElement,!1,!1,!0,a,i,s,l))}function Vt(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute(Dt);return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function It(t){return!!t&&Vt(t)&&!t.hidden&&"hidden"!==window.getComputedStyle(t).visibility}function Ot(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=t.getAttribute?t.getAttribute(wt):null,a=null!==r&&n>=0,i=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||a);return e?-1!==n&&i:i}function Ht(t){return!!(t&&t.getAttribute&&t.getAttribute(Tt))}function Bt(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(Mt))}var Rt=void 0;function Wt(t){if(t){if(Rt)return void(Rt=t);Rt=t;var e=d(t);e&&e.requestAnimationFrame((function(){Rt&&Rt.focus(),Rt=void 0}))}}function zt(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Yt(t,e){for(var n=o({},e),r=0,a=Object.keys(t);r<a.length;r++){var i=a[r];void 0===n[i]&&(n[i]=t[i])}return n}var Ut,qt,Xt,jt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++)for(var a=o[r],i=0,s=Array.isArray(a)?a:Object.keys(a);i<s.length;i++)n[s[i]]=1;return n},Kt=jt(["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"]),Gt=jt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Zt=jt(Gt,Kt),$t=(jt(Zt,["form"]),jt(Zt,["height","loop","muted","preload","src","width"])),Qt=(jt($t,["poster"]),jt(Zt,["start"]),jt(Zt,["value"]),jt(Zt,["download","href","hrefLang","media","rel","target","type"]),jt(Zt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Jt=(jt(Qt,["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"]),jt(Qt,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),jt(Qt,["form","multiple","required"]),jt(Zt,["selected","value"]),jt(Zt,["cellPadding","cellSpacing"]),jt(Zt,["rowSpan","scope"]),jt(Zt,["colSpan","headers","rowSpan","scope"]),jt(Zt,["span"]),jt(Zt,["span"]),jt(Zt,["acceptCharset","action","encType","encType","method","noValidate","target"]),jt(Zt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),jt(Zt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Zt);function te(t,e,n){for(var r=Array.isArray(e),o={},a=0,i=Object.keys(t);a<i.length;a++){var s=i[a];!(!r&&e[s]||r&&e.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(o[s]=t[s])}return o}function ee(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,o=t;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)n.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)n.push(a.toString());else for(var i in a)a[i]&&n.push(i)}return n.join(" ")}function ne(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return re.apply(this,[null,t].concat(e))}function re(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var o=0,a=n;o<a.length;o++){var i=a[o];if(i)for(var s in i)!i.hasOwnProperty(s)||t&&!t(s)||(e[s]=i[s])}return e}function oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(t,e){var n=T(t instanceof Array?t:[t]),r=n.classes,o=n.objects;return o.length&&r.push(function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=J.apply(void 0,i([t],e,!1));return r?(tt(r,t.specificityMultiplier),r.className):""}(e||{},o)),r.join(" ")}(t,at())}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(Ut||(Ut={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(qt||(qt={})),oe({overflow:"hidden !important"});var ae="data-is-scrollable";function ie(t){for(var e=t,n=et(t);e&&e!==n.body;){if("true"===e.getAttribute(ae))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute(ae)){var r=getComputedStyle(e),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return e}e=e.parentElement}return e&&e!==n.body||(e=d(t)),e}var se,le=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=t,this.right=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function ce(t,e,n){return{targetEdge:t,alignmentEdge:e,isAuto:n}}var ue=((se={})[Et.topLeftEdge]=ce(Ut.top,Ut.left),se[Et.topCenter]=ce(Ut.top),se[Et.topRightEdge]=ce(Ut.top,Ut.right),se[Et.topAutoEdge]=ce(Ut.top,void 0,!0),se[Et.bottomLeftEdge]=ce(Ut.bottom,Ut.left),se[Et.bottomCenter]=ce(Ut.bottom),se[Et.bottomRightEdge]=ce(Ut.bottom,Ut.right),se[Et.bottomAutoEdge]=ce(Ut.bottom,void 0,!0),se[Et.leftTopEdge]=ce(Ut.left,Ut.top),se[Et.leftCenter]=ce(Ut.left),se[Et.leftBottomEdge]=ce(Ut.left,Ut.bottom),se[Et.rightTopEdge]=ce(Ut.right,Ut.top),se[Et.rightCenter]=ce(Ut.right),se[Et.rightBottomEdge]=ce(Ut.right,Ut.bottom),se);function de(t,e){return!(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}function he(t,e){var n=[];return t.top<e.top&&n.push(Ut.top),t.bottom>e.bottom&&n.push(Ut.bottom),t.left<e.left&&n.push(Ut.left),t.right>e.right&&n.push(Ut.right),n}function pe(t,e){return t[Ut[e]]}function fe(t,e,n){return t[Ut[e]]=n,t}function ge(t,e){var n=ke(e);return(pe(t,n.positiveEdge)+pe(t,n.negativeEdge))/2}function me(t,e){return t>0?e:-1*e}function ve(t,e){return me(t,pe(e,t))}function _e(t,e,n){return me(n,pe(t,n)-pe(e,n))}function ye(t,e,n,r){void 0===r&&(r=!0);var o=pe(t,e)-n,a=fe(t,e,n);return r&&(a=fe(t,-1*e,pe(t,-1*e)-o)),a}function xe(t,e,n,r){return void 0===r&&(r=0),ye(t,n,pe(e,n)+me(n,r))}function be(t,e,n){return ve(n,t)>ve(n,e)}function Ce(t,e){for(var n=0,r=0,o=he(t,e);r<o.length;r++){var a=o[r];n+=Math.pow(_e(t,e,a),2)}return n}function Se(t,e,n,r){for(var o=0,a=t;o<a.length;o++){var i=a[o],s=void 0;r&&r===-1*i?(s=ye(e.elementRectangle,i,pe(n,i),!1),e.forcedInBounds=!0):be(s=xe(e.elementRectangle,n,i),n,-1*i)||(s=ye(s,-1*i,pe(n,-1*i),!1),e.forcedInBounds=!0),e.elementRectangle=s}return e}function Ee(t,e,n){var r=ke(e).positiveEdge;return ye(t,r,n-(ge(t,e)-pe(t,r)))}function Le(t,e,n,r,o){void 0===r&&(r=0);var a=new le(t.left,t.right,t.top,t.bottom),i=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return a=o?xe(a,e,s,r):function(t,e,n,r){void 0===r&&(r=0);var o=me(-1*n,r);return ye(t,-1*n,pe(e,n)+o)}(a,e,s,r),a=i?xe(a,e,i):Ee(a,l,ge(e,s))}function ke(t){return t===Ut.top||t===Ut.bottom?{positiveEdge:Ut.left,negativeEdge:Ut.right}:{positiveEdge:Ut.top,negativeEdge:Ut.bottom}}function Ae(t,e,n){return n&&Math.abs(_e(t,n,e))>Math.abs(_e(t,n,-1*e))?-1*e:e}function we(t,e,n,r,o,a,i,s){var l,c={},u=Me(e),d=a?n:-1*n,h=o||ke(n).positiveEdge;return i&&!function(t,e,n){return void 0!==n&&pe(t,e)===pe(n,e)}(t,(l=h,-1*l),r)||(h=Ae(t,h,r)),c[Ut[d]]=_e(t,u,d),c[Ut[h]]=_e(t,u,h),s&&(c[Ut[-1*d]]=_e(t,u,-1*d),c[Ut[-1*h]]=_e(t,u,-1*h)),c}function De(t,e,n){var r=ge(e,t),o=ge(n,t),a=ke(t),i=a.positiveEdge,s=a.negativeEdge;return r<=o?i:s}function Te(t,e,n,r,o,a,i){var s=Le(t,e,r,o,i);return de(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(t,e,n,r,o,a,i){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:t,targetEdge:r.targetEdge,alignmentEdge:s};a||i||(c=function(t,e,n,r,o){void 0===o&&(o=0);var a=[Ut.left,Ut.right,Ut.bottom,Ut.top];lt()&&(a[0]*=-1,a[1]*=-1);for(var i,s=t,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,h=0;h<4;h++){if(be(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=Ce(s,n);(!i||p<i)&&(i=p,u=l,d=c),a.splice(a.indexOf(l),1),a.length>0&&(a.indexOf(-1*l)>-1?l*=-1:(c=l,l=a.slice(-1)[0]),s=Le(t,e,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=Le(t,e,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(t,e,n,r,o));var u=he(c.elementRectangle,n),d=a?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var h=function(t,e,n,r){var o=t.alignmentEdge,a=t.targetEdge,i=-1*o;return{elementRectangle:Le(t.elementRectangle,e,{targetEdge:a,alignmentEdge:i},n,r),targetEdge:a,alignmentEdge:i}}(c,e,o,i);if(de(h.elementRectangle,n))return h;c=Se(he(h.elementRectangle,n),c,n,d)}else c=Se(u,c,n,d);else c=Se(u,c,n,d);return c}(s,e,n,r,o,a,i)}function Me(t){var e=t.getBoundingClientRect();return new le(e.left,e.right,e.top,e.bottom)}function Pe(t,e,n,r){var a=t.gapSpace?t.gapSpace:0,i=function(t,e){var n;if(e){if(e.preventDefault){var r=e;n=new le(r.clientX,r.clientX,r.clientY,r.clientY)}else if(e.getBoundingClientRect)n=Me(e);else{var o=e,a=o.left||o.x,i=o.top||o.y,s=o.right||a,l=o.bottom||i;n=new le(a,s,i,l)}if(!de(n,t))for(var c=0,u=he(n,t);c<u.length;c++){var d=u[c];n[Ut[d]]=t[Ut[d]]}}else n=new le(0,0,0,0);return n}(n,t.target),s=function(t,e,n,r,o){return t.isAuto&&(t.alignmentEdge=De(t.targetEdge,e,n)),t.alignTargetEdge=o,t}(function(t,e,n){if(void 0===t&&(t=Et.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=o({},ue[t]);return lt()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==e?ue[e]:r):r}(t.directionalHint,t.directionalHintForRTL,r),i,n,t.coverTarget,t.alignTargetEdge),l=Te(Me(e),i,n,s,a,t.directionalHintFixed,t.coverTarget);return o(o({},l),{targetRectangle:i})}function Fe(t,e,n,r,a){var i=t.isBeakVisible&&t.beakWidth||0,s=function(t){return Math.sqrt(t*t*2)}(i)/2+(t.gapSpace?t.gapSpace:0),l=t;l.gapSpace=s;var c,u,d,h,p,f,g,m,v,_=t.bounds?(v=t.bounds,new le(v.left,v.right,v.top,v.bottom)):new le(0,window.innerWidth-function(){if(void 0===Xt){var t=document.createElement("div");t.style.setProperty("width","100px"),t.style.setProperty("height","100px"),t.style.setProperty("overflow","scroll"),t.style.setProperty("position","absolute"),t.style.setProperty("top","-9999px"),document.body.appendChild(t),Xt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Xt}(),0,window.innerHeight),y=Pe(l,n,_,r),x=(c=y,u=function(t,e){var n=e.targetRectangle,r=ke(e.targetEdge),o=r.positiveEdge,a=r.negativeEdge,i=ge(n,e.targetEdge),s=new le(t/2,e.elementRectangle.width-t/2,t/2,e.elementRectangle.height-t/2),l=new le(0,t,0,t);return be(l=Ee(l=ye(l,-1*e.targetEdge,-t/2),-1*e.targetEdge,i-ve(o,e.elementRectangle)),s,o)?be(l,s,a)||(l=xe(l,s,a)):l=xe(l,s,o),l}(i,y),d=_,h=-1*c.targetEdge,p=new le(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=Ae(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:ke(h).positiveEdge,d),m=_e(c.elementRectangle,c.targetRectangle,h)>Math.abs(pe(u,h)),f[Ut[h]]=pe(u,h),f[Ut[g]]=_e(u,p,g),{elementPosition:o({},f),closestEdge:De(c.targetEdge,u,p),targetEdge:h,hideBeak:!m});return o(o({},function(t,e,n,r,o){return{elementPosition:we(t.elementRectangle,e,t.targetEdge,n,t.alignmentEdge,r,o,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(y,e,_,t.coverTarget,a)),{beakPosition:x})}var Ne=["TEMPLATE","STYLE","SCRIPT"];function Ve(t){var e=et(t);if(!e)return function(){};for(var n=[];t!==e.body&&t.parentElement;){for(var r=0,o=t.parentElement.children;r<o.length;r++){var a=o[r],i=a.getAttribute("aria-hidden");a!==t&&"true"!==(null==i?void 0:i.toLowerCase())&&-1===Ne.indexOf(a.tagName)&&n.push([a,i])}t=t.parentElement}return n.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var e=t[0],n=t[1];n?e.setAttribute("aria-hidden",n):e.removeAttribute("aria-hidden")}))}(n),n=[]}}var Ie=27,Oe=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,o=d(e);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0),r},t.prototype.clearImmediate=function(t,e){var n=d(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var o,a,i=e||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(e){var n=Date.now(),h=n-c,p=s?i-h:i;return h>=i&&(!e||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=t.apply(r._parent,a)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a=t,d(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var a,i,s=e||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(t){p&&(r.clearTimeout(p),p=null),h=t},g=function(e){f(e),a=t.apply(r._parent,i)},m=function(t){var e=Date.now(),n=!1;t&&(l&&e-d>=s&&(n=!0),d=e);var o=e-d,i=s-o,f=e-h,v=!1;return null!==u&&(f>=u&&p?v=!0:i=Math.min(i,u-f)),o>=s||v||n?g(e):null!==p&&t||!c||(p=r.setTimeout(m,i)),a},v=function(){return!!p},_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i=t,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),a},_.pending=v,_},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,o=d(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=o.requestAnimationFrame?o.requestAnimationFrame(a):o.setTimeout(a,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=d(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function He(){var t=s.useRef();return t.current||(t.current=new Oe),s.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.dispose(),t.current=void 0}}),[]),t.current}function Be(t,e,n,r){var o=s.useRef(n);o.current=n,s.useEffect((function(){var n=t&&"current"in t?t.current:t;if(n)return zt(n,e,(function(t){return o.current(t)}),r)}),[t,e,r])}function Re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.useCallback((function(e){n.current=e;for(var r=0,o=t;r<o.length;r++){var a=o[r];"function"==typeof a?a(e):a&&(a.current=e)}}),i([],t,!0));return n}var We=s.createContext({window:"object"==typeof window?window:void 0}),ze=function(){return s.useContext(We).window};function Ye(t){var e=t.originalElement,n=t.containsFocus;e&&n&&e!==d()&&setTimeout((function(){var t;null===(t=e.focus)||void 0===t||t.call(e)}),0)}var Ue=s.forwardRef((function(t,e){var n=Yt({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),r=s.useRef(),a=Re(r,e);!function(t,e){var n="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&e.current)return Ve(e.current)}),[e,n])}(n,r),function(t,e){var n=t.onRestoreFocus,r=void 0===n?Ye:n,o=s.useRef(),a=s.useRef(!1);s.useEffect((function(){return o.current=et().activeElement,function(t){var e=et(t),n=e&&e.activeElement;return!(!n||!At(t,n))}(e.current)&&(a.current=!0),function(){var t;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(t=et())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Be(e,"focus",s.useCallback((function(){a.current=!0}),[]),!0),Be(e,"blur",s.useCallback((function(t){e.current&&t.relatedTarget&&!e.current.contains(t.relatedTarget)&&(a.current=!1)}),[]),!0)}(n,r);var i=n.role,l=n.className,c=n.ariaLabel,u=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(t,e){var n=He(),r=s.useState(!1),o=r[0],a=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!t.style||!t.style.overflowY){var r=!1;if(e&&e.current&&(null===(n=e.current)||void 0===n?void 0:n.firstElementChild)){var i=e.current.clientHeight,s=e.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(n,r),m=s.useCallback((function(t){t.which===Ie&&f&&(f(t),t.preventDefault(),t.stopPropagation())}),[f]);return Be(ze(),"keydown",m),s.createElement("div",o({ref:a},te(n,Jt),{className:l,role:i,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:o({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function qe(t){var e=D.getInstance(),n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r,"{",Q(at(),t[r]),"}");var o=n.join(""),a=e.classNameFromKey(o);if(a)return a;var i=e.getClassName();return e.insertRule("@keyframes ".concat(i,"{").concat(o,"}"),!0),e.cacheClassName(i,o,[],["keyframes",o]),i}Ue.displayName="Popup";var Xe="cubic-bezier(.1,.9,.2,1)",je="cubic-bezier(.1,.25,.75,.9)",Ke="0.167s",Ge="0.267s",Ze="0.367s",$e="0.467s",Qe=qe({from:{opacity:0},to:{opacity:1}}),Je=qe({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),tn=Pn(-10),en=Pn(-20),nn=Pn(-40),rn=Pn(-400),on=Pn(10),an=Pn(20),sn=Pn(40),ln=Pn(400),cn=Fn(10),un=Fn(20),dn=Fn(-10),hn=Fn(-20),pn=Nn(10),fn=Nn(20),gn=Nn(40),mn=Nn(400),vn=Nn(-10),_n=Nn(-20),yn=Nn(-40),xn=Nn(-400),bn=Vn(-10),Cn=Vn(-20),Sn=Vn(10),En=Vn(20),Ln=qe({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=qe({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=qe({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=qe({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=qe({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=qe({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Mn(t,e,n){return{animationName:t,animationDuration:e,animationTimingFunction:n,animationFillMode:"both"}}function Pn(t){return qe({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(t){return qe({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(t){return qe({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Vn(t){return qe({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var In,On,Hn,Bn,Rn,Wn=function(t){var e={},n=function(n){var r;t.hasOwnProperty(n)&&Object.defineProperty(e,n,{get:function(){return void 0===r&&(r=oe(t[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)n(r);return e}({slideRightIn10:Mn("".concat(Qe,",").concat(tn),Ze,Xe),slideRightIn20:Mn("".concat(Qe,",").concat(en),Ze,Xe),slideRightIn40:Mn("".concat(Qe,",").concat(nn),Ze,Xe),slideRightIn400:Mn("".concat(Qe,",").concat(rn),Ze,Xe),slideLeftIn10:Mn("".concat(Qe,",").concat(on),Ze,Xe),slideLeftIn20:Mn("".concat(Qe,",").concat(an),Ze,Xe),slideLeftIn40:Mn("".concat(Qe,",").concat(sn),Ze,Xe),slideLeftIn400:Mn("".concat(Qe,",").concat(ln),Ze,Xe),slideUpIn10:Mn("".concat(Qe,",").concat(cn),Ze,Xe),slideUpIn20:Mn("".concat(Qe,",").concat(un),Ze,Xe),slideDownIn10:Mn("".concat(Qe,",").concat(dn),Ze,Xe),slideDownIn20:Mn("".concat(Qe,",").concat(hn),Ze,Xe),slideRightOut10:Mn("".concat(Je,",").concat(pn),Ze,Xe),slideRightOut20:Mn("".concat(Je,",").concat(fn),Ze,Xe),slideRightOut40:Mn("".concat(Je,",").concat(gn),Ze,Xe),slideRightOut400:Mn("".concat(Je,",").concat(mn),Ze,Xe),slideLeftOut10:Mn("".concat(Je,",").concat(vn),Ze,Xe),slideLeftOut20:Mn("".concat(Je,",").concat(_n),Ze,Xe),slideLeftOut40:Mn("".concat(Je,",").concat(yn),Ze,Xe),slideLeftOut400:Mn("".concat(Je,",").concat(xn),Ze,Xe),slideUpOut10:Mn("".concat(Je,",").concat(bn),Ze,Xe),slideUpOut20:Mn("".concat(Je,",").concat(Cn),Ze,Xe),slideDownOut10:Mn("".concat(Je,",").concat(Sn),Ze,Xe),slideDownOut20:Mn("".concat(Je,",").concat(En),Ze,Xe),scaleUpIn100:Mn("".concat(Qe,",").concat(Ln),Ze,Xe),scaleDownIn100:Mn("".concat(Qe,",").concat(An),Ze,Xe),scaleUpOut103:Mn("".concat(Je,",").concat(wn),Ke,je),scaleDownOut98:Mn("".concat(Je,",").concat(kn),Ke,je),fadeIn100:Mn(Qe,Ke,je),fadeIn200:Mn(Qe,Ge,je),fadeIn400:Mn(Qe,Ze,je),fadeIn500:Mn(Qe,$e,je),fadeOut100:Mn(Je,Ke,je),fadeOut200:Mn(Je,Ge,je),fadeOut400:Mn(Je,Ze,je),fadeOut500:Mn(Je,$e,je),rotate90deg:Mn(Dn,"0.1s",je),rotateN90deg:Mn(Tn,"0.1s",je)}),zn={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(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)"}(In||(In={})),function(t){t.Arabic="'".concat(In.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(In.Cyrillic,"'"),t.EastEuropean="'".concat(In.EastEuropean,"'"),t.Greek="'".concat(In.Greek,"'"),t.Hebrew="'".concat(In.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(In.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(In.Vietnamese,"'"),t.WestEuropean="'".concat(In.WestEuropean,"'"),t.Armenian="'".concat(In.Armenian,"'"),t.Georgian="'".concat(In.Georgian,"'")}(On||(On={})),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"}(Hn||(Hn={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(Bn||(Bn={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(Rn||(Rn={}));var Yn,Un="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",qn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",Xn="ms-Fabric--isFocusVisible";function jn(t,e,n,r,o,a,i,s){return function(t,e){var n,r;void 0===e&&(e={});var o=e.borderRadius,a=e.inset,i=void 0===a?0:a,s=e.width,l=void 0===s?1:s,c=e.position,u=void 0===c?"relative":c,d=e.highContrastStyle,h=e.borderColor,p=void 0===h?t.palette.white:h,f=e.outlineColor,g=void 0===f?t.palette.neutralSecondary:f,m=e.isFocusedOnly,v=void 0===m||m,_=e.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(Xn," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:i+1,top:i+1,bottom:i+1,right:i+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:Yn.FocusStyle,borderRadius:o,selectors:(r={},r[Un]=d,r)},n)}}(t,"number"!=typeof e&&e?e:{inset:e,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:i,borderRadius:s})}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(Yn||(Yn={}));var Kn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Gn=!1,Zn=0,$n={empty:!0},Qn={},Jn="undefined"==typeof WeakMap?null:WeakMap;function tr(){Zn++}function er(t,e,n){if(void 0===e&&(e=100),void 0===n&&(n=!1),!Jn)return t;if(!Gn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(tr),Gn=!0}var o,a=0,i=Zn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l,c=o;(void 0===o||i!==Zn||e>0&&a>e)&&(o=rr(),a=0,i=Zn),c=o;for(var u=0;u<r.length;u++){var d=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(Qn[l]||(Qn[l]={val:l}),Qn[l]):$n;c.map.has(d)||c.map.set(d,rr()),c=c.map.get(d)}return c.hasOwnProperty("value")||(c.value=t.apply(void 0,r),a++),!n||null!==c.value&&void 0!==c.value||(c.value=t.apply(void 0,r)),c.value}}function nr(t){if(!Jn)return t;var e=new Jn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return t(n);if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}}function rr(){return{map:Jn?new Jn:null}}var or=er((function(t,e){var n=D.getInstance();return e?Object.keys(t).reduce((function(e,r){return e[r]=n.getClassName(t[r]),e}),{}):t}));function ar(t,e,n){return or(t,void 0!==n?n:e.disableGlobalClassNames)}var ir,sr,lr=function(){return lr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},lr.apply(this,arguments)},cr="undefined"==typeof window?t.g:window,ur=cr&&cr.CSPSettings&&cr.CSPSettings.nonce,dr=((sr=cr.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(sr=lr({},sr,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),sr.registeredThemableStyles||(sr=lr({},sr,{registeredThemableStyles:[]})),cr.__themeState__=sr,sr);function hr(t){dr.theme=t,function(){if(dr.theme){for(var t=[],e=0,n=dr.registeredThemableStyles;e<n.length;e++){var r=n[e];t.push(r.themableStyle)}t.length>0&&(void 0===(a=1)&&(a=3),3!==a&&2!==a||(pr(dr.registeredStyles),dr.registeredStyles=[]),3!==a&&1!==a||(pr(dr.registeredThemableStyles),dr.registeredThemableStyles=[]),o=[].concat.apply([],t),dr.loadStyles?dr.loadStyles(fr(o).styleString,o):function(t){if("undefined"!=typeof document){var e=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=fr(t),o=r.styleString,a=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ur&&n.setAttribute("nonce",ur),n.appendChild(document.createTextNode(o)),dr.perf.count++,e.appendChild(n);var i=document.createEvent("HTMLEvents");i.initEvent("styleinsert",!0,!1),i.args={newStyle:n},document.dispatchEvent(i);var s={styleElement:n,themableStyle:t};a?dr.registeredThemableStyles.push(s):dr.registeredStyles.push(s)}}(o))}var o,a}()}function pr(t){t.forEach((function(t){var e=t&&t.styleElement;e&&e.parentElement&&e.parentElement.removeChild(e)}))}function fr(t){var e=dr.theme,n=!1;return{styleString:(t||[]).map((function(t){var r=t.theme;if(r){n=!0;var o=e?e[r]:void 0,a=t.defaultValue||"inherit";return e&&!o&&console&&!(r in e)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+a+'".'),o||a}return t.rawString})).join(""),themable:n}}!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)"}(ir||(ir={}));var gr,mr={elevation4:ir.depth4,elevation8:ir.depth8,elevation16:ir.depth16,elevation64:ir.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},vr="'Segoe UI', '".concat(In.WestEuropean,"'"),_r={ar:On.Arabic,bg:On.Cyrillic,cs:On.EastEuropean,el:On.Greek,et:On.EastEuropean,he:On.Hebrew,hi:On.Hindi,hr:On.EastEuropean,hu:On.EastEuropean,ja:On.Japanese,kk:On.EastEuropean,ko:On.Korean,lt:On.EastEuropean,lv:On.EastEuropean,pl:On.EastEuropean,ru:On.Cyrillic,sk:On.EastEuropean,"sr-latn":On.EastEuropean,th:On.Thai,tr:On.EastEuropean,uk:On.Cyrillic,vi:On.Vietnamese,"zh-hans":On.ChineseSimplified,"zh-hant":On.ChineseTraditional,hy:On.Armenian,ka:On.Georgian};function yr(t,e,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:e}}var xr,br,Cr="language",Sr=(xr=function(t){for(var e in _r)if(_r.hasOwnProperty(e)&&t&&0===e.indexOf(t))return _r[e];return vr}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===gr){var e=et(),n="localStorage"===t?function(t){var e=null;try{var n=d();e=n?n.localStorage.getItem(t):null}catch(t){}return e}(Cr):"sessionStorage"===t?nt(Cr):void 0;n&&(gr=n),void 0===gr&&e&&(gr=e.documentElement.getAttribute("lang")),void 0===gr&&(gr="en")}return gr}()),br="".concat(xr,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:yr(Hn.mini,Bn.regular,br),xSmall:yr(Hn.xSmall,Bn.regular,br),small:yr(Hn.small,Bn.regular,br),smallPlus:yr(Hn.smallPlus,Bn.regular,br),medium:yr(Hn.medium,Bn.regular,br),mediumPlus:yr(Hn.mediumPlus,Bn.regular,br),large:yr(Hn.large,Bn.regular,br),xLarge:yr(Hn.xLarge,Bn.semibold,br),xLargePlus:yr(Hn.xLargePlus,Bn.semibold,br),xxLarge:yr(Hn.xxLarge,Bn.semibold,br),xxLargePlus:yr(Hn.xxLargePlus,Bn.semibold,br),superLarge:yr(Hn.superLarge,Bn.semibold,br),mega:yr(Hn.mega,Bn.semibold,br)});function Er(t,e,n,r){!function(t){var e=D.getInstance(),n=Q(at(),t);if(!e.classNameFromKey(n)){var r=e.getClassName();e.insertRule("@font-face{".concat(n,"}"),!0),e.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(e,".woff2') format('woff2'),")+"url('".concat(e,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Lr(t,e,n,r,o){void 0===r&&(r="segoeui");var a="".concat(t,"/").concat(n,"/").concat(r);Er(e,a+"-light",Bn.light,o&&o+" Light"),Er(e,a+"-semilight",Bn.semilight,o&&o+" SemiLight"),Er(e,a+"-regular",Bn.regular,o),Er(e,a+"-semibold",Bn.semibold,o&&o+" SemiBold"),Er(e,a+"-bold",Bn.bold,o&&o+" Bold")}function kr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,o=e;r<o.length;r++)Ar(t||{},o[r]);return t}function Ar(t,e,n){for(var r in void 0===n&&(n=[]),n.push(e),e)if(e.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=e[r];if("object"!=typeof o||null===o||Array.isArray(o))t[r]=o;else{var a=n.indexOf(o)>-1;t[r]=a?o:Ar(t[r]||{},o,n)}}return n.pop(),t}function wr(t,e,n,r,a){return void 0===a&&(a=!1),function(t,e){var n="";return!0===e&&(n=" /* @deprecated */"),t.listTextColor=t.listText+n,t.menuItemBackgroundChecked+=n,t.warningHighlight+=n,t.warningText=t.messageText+n,t.successText+=n,t}(Dr(t,e,o({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),a)}function Dr(t,e,n,r,a){void 0===a&&(a=!1);var i={},s=t||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,S=s.neutralTertiary,E=s.neutralTertiaryAlt,L=s.neutralLighterAlt,k=s.accent;return l&&(i.bodyBackground=l,i.bodyFrameBackground=l,i.accentButtonText=l,i.buttonBackground=l,i.primaryButtonText=l,i.primaryButtonTextHovered=l,i.primaryButtonTextPressed=l,i.inputBackground=l,i.inputForegroundChecked=l,i.listBackground=l,i.menuBackground=l,i.cardStandoutBackground=l),c&&(i.bodyTextChecked=c,i.buttonTextCheckedHovered=c),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),h&&(i.linkHovered=h),p&&(i.primaryButtonBackgroundHovered=p),f&&(i.inputPlaceholderBackgroundChecked=f),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),m&&(i.bodyBackgroundHovered=m,i.buttonBackgroundHovered=m,i.buttonBackgroundDisabled=m,i.buttonBorderDisabled=m,i.primaryButtonBackgroundDisabled=m,i.disabledBackground=m,i.listItemBackgroundHovered=m,i.listHeaderBackgroundHovered=m,i.menuItemBackgroundHovered=m),_&&(i.primaryButtonTextDisabled=_,i.disabledSubtext=_),y&&(i.listItemBackgroundCheckedHovered=y),S&&(i.disabledBodyText=S,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,i.buttonTextDisabled=S,i.inputIconDisabled=S,i.disabledText=S),x&&(i.bodyText=x,i.actionLink=x,i.buttonText=x,i.inputBorderHovered=x,i.inputText=x,i.listText=x,i.menuItemText=x),L&&(i.bodyStandoutBackground=L,i.defaultStateBackground=L),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),C&&(i.buttonBorder=C),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),k&&(i.accentButtonBackground=k),(null==e?void 0:e.elevation4)&&(i.cardShadow=e.elevation4),!r&&(null==e?void 0:e.elevation8)?i.cardShadowHovered=e.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),o(o({},i),n)}!function(t){if(t){var e="".concat(t,"/fonts");Lr(e,In.Thai,"leelawadeeui-thai","leelawadeeui"),Lr(e,In.Arabic,"segoeui-arabic"),Lr(e,In.Cyrillic,"segoeui-cyrillic"),Lr(e,In.EastEuropean,"segoeui-easteuropean"),Lr(e,In.Greek,"segoeui-greek"),Lr(e,In.Hebrew,"segoeui-hebrew"),Lr(e,In.Vietnamese,"segoeui-vietnamese"),Lr(e,In.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Lr(e,On.Selawik,"selawik","selawik"),Lr(e,In.Armenian,"segoeui-armenian"),Lr(e,In.Georgian,"segoeui-georgian"),Er("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-semilight"),Bn.light),Er("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-bold"),Bn.semibold)}}(function(){var t,e,n=null===(t=d())||void 0===t?void 0:t.FabricConfig;return null!==(e=null==n?void 0:n.fontBaseUrl)&&void 0!==e?e:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var Tr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Mr(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=!!t.isInverted;return function(t,e){var n,r,o;void 0===e&&(e={});var a=kr({},t,e,{semanticColors:Dr(e.palette,e.effects,e.semanticColors,void 0===e.isInverted?t.isInverted:e.isInverted)});if((null===(n=e.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=e.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=e.palette.themePrimary),e.defaultFontStyle)for(var i=0,s=Object.keys(a.fonts);i<s.length;i++){var l=s[i];a.fonts[l]=kr(a.fonts[l],e.defaultFontStyle,null===(o=null==e?void 0:e.fonts)||void 0===o?void 0:o[l])}return a}({palette:zn,effects:mr,fonts:Sr,spacing:Tr,isInverted:n,disableGlobalClassNames:!1,semanticColors:wr(zn,mr,void 0,n,e),rtl:void 0},t)}var Pr=Mr({}),Fr=[],Nr="theme";function Vr(){var t,e,n,r=d();(null===(e=null==r?void 0:r.FabricConfig)||void 0===e?void 0:e.legacyTheme)?function(t,e){var n;void 0===e&&(e=!1),Pr=Mr(t,e),hr(o(o(o(o({},Pr.palette),Pr.semanticColors),Pr.effects),function(t){for(var e={},n=0,r=Object.keys(t.fonts);n<r.length;n++)for(var o=r[n],a=t.fonts[o],i=0,s=Object.keys(a);i<s.length;i++){var l=s[i],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=a[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),e[c]=u}return e}(Pr))),b.applySettings(((n={})[Nr]=Pr,n)),Fr.forEach((function(t){try{t(Pr)}catch(t){}}))}(r.FabricConfig.legacyTheme):b.getSettings([Nr]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Pr=Mr(r.FabricConfig.theme)),b.applySettings(((t={})[Nr]=Pr,t)))}Vr();var Ir,Or={},Hr=void 0;try{Hr=window}catch(t){}function Br(t,e){if(void 0!==Hr){var n=Hr.__packages__=Hr.__packages__||{};n[t]&&Or[t]||(Or[t]=e,(n[t]=n[t]||[]).push(e))}}function Rr(t){var e=s.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}Br("@fluentui/set-version","6.0.0"),Br("@fluentui/style-utilities","8.9.14"),Vr();var Wr=((Ir={})[Ut.top]=Wn.slideUpIn10,Ir[Ut.bottom]=Wn.slideDownIn10,Ir[Ut.left]=Wn.slideLeftIn10,Ir[Ut.right]=Wn.slideRightIn10,Ir),zr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Yr=["role","aria-roledescription"],Ur={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Et.bottomAutoEdge},qr=ht({disableCaching:!0});function Xr(t,e,n,r,a){var i=s.useState(),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(),h=He(),p=t.hidden,f=t.target,g=t.finalHeight,m=t.calloutMaxHeight,v=t.onPositioned,_=t.directionalHint;return s.useEffect((function(){if(!p){var i=h.requestAnimationFrame((function(){var i,s,h,p;if(e.current&&n){var _=o(o({},t),{target:r.current,bounds:a()}),y=n.cloneNode(!0);y.style.maxHeight=m?"".concat(m):"",y.style.visibility="hidden",null===(i=n.parentElement)||void 0===i||i.appendChild(y);var x=d.current===f?l:void 0,b=g?function(t,e,n,r){return function(t,e,n,r){return Fe(t,e,n,r,!0)}(t,e,n,r)}(_,e.current,y,x):function(t,e,n,r){return Fe(t,e,n,r)}(_,e.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Gr((h=l).elementPosition,p.elementPosition)||!Gr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&u.current<5?(u.current++,c(b)):u.current>0&&(u.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(i),d.current=void 0}}c(void 0),u.current=0}),[p,_,h,n,m,e,r,g,a,v,l,t,f]),l}var jr=s.memo(s.forwardRef((function(t,e){var n=Yt(Ur,t),r=n.styles,a=n.style,i=n.ariaLabel,l=n.ariaDescribedBy,c=n.ariaLabelledBy,u=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,L=void 0===E||E,k=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],F=M[1],N=s.useCallback((function(t){F(t)}),[]),V=Re(T,e),I=function(t,e){var n=s.useRef(),r=s.useRef(null),o=ze();if(!t||t!==n.current||"string"==typeof t){if(t)if("string"==typeof t){var a=et(null==e?void 0:e.current);r.current=a?a.querySelector(t):null}else r.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;n.current=t}return[r,o]}(n.target,{current:P}),O=I[0],H=I[1],B=function(t,e,n){var r=t.bounds,o=t.minPagePadding,a=void 0===o?Ur.minPagePadding:o,i=t.target,l=s.useState(!1),c=l[0],u=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||c){var t="function"==typeof r?n?r(i,n):void 0:r;!t&&n&&(t=function(t,e){return function(t,e){var n=void 0;if(e.getWindowSegments&&(n=e.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight};var r=0,o=0;if(null!==t&&t.getBoundingClientRect){var a=t.getBoundingClientRect();r=(a.left+a.right)/2,o=(a.top+a.bottom)/2}else null!==t&&(r=t.left||t.x,o=t.top||t.y);for(var i={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(i={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return i}(t,e)}(e.current,n),t={top:t.top+a,left:t.left+a,right:t.right-a,bottom:t.bottom-a,width:t.width-2*a,height:t.height-2*a}),d.current=t,c&&u(!1)}return d.current}),[r,a,i,e,n,c]),p=He();return Be(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(n,O,H),R=Xr(n,T,P,O,B),W=function(t,e,n){var r,o=t.calloutMaxHeight,a=t.finalHeight,i=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,u=s.useState(),d=u[0],h=u[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var t,n,r=null!==(t=e())&&void 0!==t?t:{},a=r.top,i=r.bottom;"number"==typeof f&&i?n=i-f:"number"==typeof g&&"number"==typeof a&&i&&(n=i-a-g),h(!o&&!c||o&&n&&o>n?n:o||void 0)}),[g,o,a,i,l,e,c,n,f]),d}(n,B,R),z=function(t,e,n,r,o){var a=t.hidden,i=t.onDismiss,l=t.preventDismissOnScroll,c=t.preventDismissOnResize,u=t.preventDismissOnLostFocus,d=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,p=t.preventDismissOnEvent,f=s.useRef(!1),g=He(),m=Rr([function(){f.current=!0},function(){f.current=!1}]),v=!!e;return s.useEffect((function(){var t=function(t){v&&!l&&m(t)},e=function(t){c||p&&p(t)||null==i||i(t)},s=function(t){u||m(t)},m=function(t){var e=t.composedPath?t.composedPath():[],a=e.length>0?e[0]:t.target,s=n.current&&!At(n.current,a);if(s&&f.current)f.current=!1;else if(!r.current&&s||t.target!==o&&s&&(!r.current||"stopPropagation"in r.current||d||a!==r.current&&!At(r.current,a))){if(p&&p(t))return;null==i||i(t)}},_=function(t){h&&((!p||p(t))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==i||i(t))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[zt(o,"scroll",t,!0),zt(o,"resize",e,!0),zt(o.document.documentElement,"focus",s,!0),zt(o.document.documentElement,"click",s,!0),zt(o,"blur",_,!0)];n((function(){r.forEach((function(t){return t()}))}))}}),0)}));return function(){y.then((function(t){return t()}))}}),[a,g,n,r,o,i,h,d,u,c,l,v,p]),m}(n,R,T,O,H),Y=z[0],U=z[1],q=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),X=o(o({},null==R?void 0:R.elementPosition),{maxHeight:W});if(q&&(X.bottom=void 0),function(t,e,n){var r=t.hidden,o=t.setInitialFocus,a=He(),i=!!e;s.useEffect((function(){if(!r&&o&&i&&n){var t=a.requestAnimationFrame((function(){return Pt(n)}),n);return function(){return a.cancelAnimationFrame(t)}}}),[r,i,a,n,o])}(n,R,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var j=x,K=d&&!!k,G=qr(r,{theme:n.theme,className:u,overflowYHidden:j,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=o(o({maxHeight:C||"100%"},a),j&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:V,className:G.container,style:$},s.createElement("div",o({},te(n,Jt,Yr),{className:ee(G.root,R&&R.targetEdge&&Wr[R.targetEdge]),style:R?o({},X):zr,tabIndex:-1,ref:N}),K&&s.createElement("div",{className:G.beak,style:Kr(R)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ue,o({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:i,ariaLabelledBy:c,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:Y,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:Z},D),h)))})),(function(t,e){return!(e.shouldUpdateWhenHidden||!t.hidden||!e.hidden)||function(t,e){if(!t||!e)return!t&&!e;for(var n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(var n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}(t,e)}));function Kr(t){var e,n,r=o(o({},null===(e=null==t?void 0:t.beakPosition)||void 0===e?void 0:e.elementPosition),{display:(null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Gr(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],o=e[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Zr(t){return{height:t,width:t}}jr.displayName="CalloutContentBase";var $r={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Qr=E(jr,(function(t){var e,n=t.theme,r=t.className,o=t.overflowYHidden,a=t.calloutWidth,i=t.beakWidth,s=t.backgroundColor,l=t.calloutMaxWidth,c=t.calloutMinWidth,u=t.doNotLayer,d=ar($r,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Yn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(e={},e[Un]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},e)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!a&&{width:a},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Zr(i),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Jr=s.createContext(void 0),to=()=>()=>{};Jr.Provider;var eo=ReactDOM;new WeakMap,new WeakMap;var no=s.createContext(void 0),ro=function(t){var e=t.providerRef,n=t.layerRoot,r=s.useState([])[0],o=s.useContext(no),a=void 0!==o&&!n,i=s.useMemo((function(){return a?void 0:{providerRef:e,registeredProviders:r,registerProvider:function(t){r.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var e=r.indexOf(t);e>=0&&r.splice(e,1)}}}),[e,r,o,a]);return s.useEffect((function(){if(i)return i.registerProvider(i.providerRef),function(){return i.unregisterProvider(i.providerRef)}}),[i]),i?s.createElement(no.Provider,{value:i},t.children):s.createElement(s.Fragment,null,t.children)};function oo(t,e){void 0===t&&(t={});var n=ao(e)?e:function(t){return function(e){return t?o(o({},e),t):e}}(e);return n(t)}function ao(t){return"function"==typeof t}var io=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return r(e,t),e.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},e.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},e.prototype.render=function(){var t=this,e=this.props.contextTransform;return s.createElement(C.Consumer,null,(function(n){var r=function(t,e){var n,r,a,i=(e||{}).customizations,s=void 0===i?{settings:{},scopedSettings:{}}:i;return{customizations:{settings:oo(s.settings,t.settings),scopedSettings:(n=s.scopedSettings,r=t.scopedSettings,void 0===n&&(n={}),(ao(r)?r:(void 0===(a=r)&&(a={}),function(t){var e=o({},t);for(var n in a)a.hasOwnProperty(n)&&(e[n]=o(o({},t[n]),a[n]));return e}))(n)),inCustomizerContext:!0}}}(t.props,n);return e&&(r=e(r)),s.createElement(C.Provider,{value:r},t.props.children)}))},e}(s.Component),so=ht(),lo=er((function(t,e){return Mr(o(o({},t),{rtl:e}))})),co=s.forwardRef((function(t,e){var n=t.className,r=t.theme,a=t.applyTheme,i=t.applyThemeToBody,l=t.styles,c=so(l,{theme:r,applyTheme:a,className:n}),u=s.useRef(null);return function(t,e,n){var r=e.bodyThemed;s.useEffect((function(){if(t){var e=et(n.current);if(e)return e.body.classList.add(r),function(){e.body.classList.remove(r)}}}),[r,t,n])}(i,c,u),s.createElement(s.Fragment,null,function(t,e,n,r){var a=e.root,i=t.as,l=void 0===i?"div":i,c=t.dir,u=t.theme,d=te(t,Jt,["dir"]),h=function(t){var e=t.theme,n=t.dir,r=lt(e)?"rtl":"ltr",o=lt()?"rtl":"ltr",a=n||r;return{rootDir:a!==r||a!==o?a:n,needsTheme:a!==r}}(t),p=h.rootDir,f=h.needsTheme,g=s.createElement(ro,{providerRef:n},s.createElement(l,o({dir:p},d,{className:a,ref:Re(n,r)})));return f&&(g=s.createElement(io,{settings:{theme:lo(u,"rtl"===c)}},g)),g}(t,c,u,e))}));co.displayName="FabricBase";var uo,ho={fontFamily:"inherit"},po={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},fo=E(co,(function(t){var e=t.applyTheme,n=t.className,r=t.preventBlanketFontInheritance,o=t.theme;return{root:[ar(po,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":ho,"& input":ho,"& textarea":ho},e&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),go="data-portal-element",mo={},vo={},_o="fluent-default-layer-host",yo="#".concat(_o),xo=c()?s.useLayoutEffect:s.useEffect,bo=ht(),Co=s.forwardRef((function(t,e){var n,r=null!==(n=s.useContext(Jr))&&void 0!==n?n:to,a=s.useRef(null),i=Re(a,e),l=s.useRef(),c=s.useRef(null),u=s.useContext(no),d=s.useState(!1),h=d[0],p=d[1],f=s.useCallback((function(t){var e,n=!!(null==(e=null==u?void 0:u.providerRef)?void 0:e.current)&&e.current.classList.contains(Xn);t&&n&&t.classList.add(Xn)}),[u]),g=t.children,m=t.className,v=t.eventBubblingEnabled,_=t.fabricProps,y=t.hostId,x=t.insertFirst,b=t.onLayerDidMount,C=void 0===b?function(){}:b,S=t.onLayerMounted,E=void 0===S?function(){}:S,L=t.onLayerWillUnmount,k=t.styles,A=t.theme,w=Re(c,null==_?void 0:_.ref,f),D=bo(k,{theme:A,className:m,isNotHost:!y}),T=function(){null==L||L();var t=l.current;l.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},M=function(){var t,e=et(a.current);if(e){var n=function(t){var e,n;if(y){var r=function(t){var e=vo[t];return e&&e[0]||void 0}(y);return r?null!==(e=r.rootRef.current)&&void 0!==e?e:null:null!==(n=t.getElementById(y))&&void 0!==n?n:null}var o=yo,a=o?t.querySelector(o):null;return a||(a=function(t){var e=t.createElement("div");return e.setAttribute("id",_o),e.style.cssText="position:fixed;z-index:1000000",null==t||t.body.appendChild(e),e}(t)),a}(e);if(n){T();var r=(null!==(t=n.ownerDocument)&&void 0!==t?t:e).createElement("div");r.className=D.root,r.setAttribute(go,"true"),function(t,e){var n=t,r=e;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==e){var a=o._virtual.children.indexOf(n);a>-1&&o._virtual.children.splice(a,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,p(!0)}}};return xo((function(){M(),y&&function(t,e){mo[t]||(mo[t]=[]),mo[t].push(e);var n=vo[t];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(y,M);var t=l.current?r(l.current):void 0;return function(){t&&t(),T(),y&&function(t,e){var n=mo[t];if(n){var r=n.indexOf(e);r>=0&&(n.splice(r,1),0===n.length&&delete mo[t])}var o=vo[t];if(o)for(var a=0,i=o;a<i.length;a++)i[a].notifyLayersChanged()}(y,M)}}),[y]),s.useEffect((function(){l.current&&h&&(null==E||E(),null==C||C(),p(!1))}),[h,E,C]),s.createElement("span",{className:"ms-layer",ref:i},l.current&&eo.createPortal(s.createElement(ro,{layerRoot:!0,providerRef:w},s.createElement(fo,o({},!v&&(uo||(uo={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return uo[t]=So}))),uo),_,{className:ee(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Co.displayName="LayerBase";var So=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Eo={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Lo=E(Co,(function(t){var e=t.className,n=t.isNotHost,r=t.theme,o=ar(Eo,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Yn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],e],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ko=s.forwardRef((function(t,e){var n=t.layerProps,r=t.doNotLayer,i=a(t,["layerProps","doNotLayer"]),l=s.createElement(Qr,o({},i,{doNotLayer:r,ref:e}));return r?l:s.createElement(Lo,o({},n),l)}));ko.displayName="Callout";var Ao=Array.prototype.slice;function wo(t){return t}var Do=1,To=2,Mo=3,Po=4,Fo=1e-6;function No(t){return"translate("+(t+.5)+",0)"}function Vo(t){return"translate(0,"+(t+.5)+")"}function Io(t){return function(e){return+t(e)}}function Oo(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function Ho(){return!this.__axis}function Bo(t,e){var n=[],r=null,o=null,a=6,i=6,s=3,l=t===Do||t===Po?-1:1,c=t===Po||t===To?"x":"y",u=t===Do||t===Mo?No:Vo;function d(d){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==o?e.tickFormat?e.tickFormat.apply(e,n):wo:o,f=Math.max(a,0)+s,g=e.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(e.bandwidth?Oo:Io)(e.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,e).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(c+"2",l*a)),L=L.merge(S.append("text").attr("fill","#000").attr(c,l*f).attr("dy",t===Do?"0em":t===Mo?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",Fo).attr("transform",(function(t){return isFinite(t=_(t))?u(t):this.getAttribute("transform")})),S.attr("opacity",Fo).attr("transform",(function(t){var e=this.parentNode.__axis;return u(e&&isFinite(e=e(t))?e:_(t))}))),C.remove(),x.attr("d",t===Po||t==To?"M"+l*i+","+m+"H0.5V"+v+"H"+l*i:"M"+m+","+l*i+"V0.5H"+v+"V"+l*i),b.attr("opacity",1).attr("transform",(function(t){return u(_(t))})),E.attr(c+"2",l*a),L.attr(c,l*f).text(p),y.filter(Ho).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===To?"start":t===Po?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Ao.call(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Ao.call(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(r=null==t?null:Ao.call(t),d):r&&r.slice()},d.tickFormat=function(t){return arguments.length?(o=t,d):o},d.tickSize=function(t){return arguments.length?(a=i=+t,d):a},d.tickSizeInner=function(t){return arguments.length?(a=+t,d):a},d.tickSizeOuter=function(t){return arguments.length?(i=+t,d):i},d.tickPadding=function(t){return arguments.length?(s=+t,d):s},d}function Ro(t){return Bo(To,t)}function Wo(t){return Bo(Mo,t)}function zo(t){return Bo(Po,t)}function Yo(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Uo(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Yo(e(t),n)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var a=r+o>>>1;t(e[a],n)<0?r=a+1:o=a}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var a=r+o>>>1;t(e[a],n)>0?o=a:r=a+1}return r}}}var qo=Uo(Yo);qo.right,qo.left;var Xo=Array.prototype;function jo(t,e){var n,r,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<o;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<o;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r}function Ko(t,e){var n,r,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<o;)null!=(n=t[a])&&r>n&&(r=n)}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<o;)null!=(n=e(t[a],a,t))&&r>n&&(r=n);return r}function Go(t,e){var n,r=t.length,o=-1,a=0;if(null==e)for(;++o<r;)(n=+t[o])&&(a+=n);else for(;++o<r;)(n=+e(t[o],o,t))&&(a+=n);return a}Xo.slice,Xo.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Zo=Math.sqrt(50),$o=Math.sqrt(10),Qo=Math.sqrt(2);function Jo(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,o);return o>=0?(a>=Zo?10:a>=$o?5:a>=Qo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=Zo?10:a>=$o?5:a>=Qo?2:1)}function ta(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=Zo?o*=10:a>=$o?o*=5:a>=Qo&&(o*=2),e<t?-o:o}function ea(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function na(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ra(t){let e,n,r;function o(t,r,o=0,a=t.length){if(o<a){if(0!==e(r,r))return a;do{const e=o+a>>>1;n(t[e],r)<0?o=e+1:a=e}while(o<a)}return o}return 2!==t.length?(e=ea,n=(e,n)=>ea(t(e),n),r=(e,n)=>t(e)-n):(e=t===ea||t===na?t:oa,n=t,r=t),{left:o,center:function(t,e,n=0,a=t.length){const i=o(t,e,n,a-1);return i>n&&r(t[i-1],e)>-r(t[i],e)?i-1:i},right:function(t,r,o=0,a=t.length){if(o<a){if(0!==e(r,r))return a;do{const e=o+a>>>1;n(t[e],r)<=0?o=e+1:a=e}while(o<a)}return o}}}function oa(){return 0}const aa=ra(ea),ia=aa.right;aa.left,ra((function(t){return null===t?NaN:+t})).center;var sa=ia;function la(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ca(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ua(){}var da=.7,ha=1/da,pa="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ma=/^#([0-9a-f]{3,8})$/,va=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),_a=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),ya=new RegExp("^rgba\\("+[pa,pa,pa,fa]+"\\)$"),xa=new RegExp("^rgba\\("+[ga,ga,ga,fa]+"\\)$"),ba=new RegExp("^hsl\\("+[fa,ga,ga]+"\\)$"),Ca=new RegExp("^hsla\\("+[fa,ga,ga,fa]+"\\)$"),Sa={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ea(){return this.rgb().formatHex()}function La(){return this.rgb().formatRgb()}function ka(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ma.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Aa(e):3===n?new Ta(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Ta(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Ta(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=va.exec(t))?new Ta(e[1],e[2],e[3],1):(e=_a.exec(t))?new Ta(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ya.exec(t))?wa(e[1],e[2],e[3],e[4]):(e=xa.exec(t))?wa(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ba.exec(t))?Na(e[1],e[2]/100,e[3]/100,1):(e=Ca.exec(t))?Na(e[1],e[2]/100,e[3]/100,e[4]):Sa.hasOwnProperty(t)?Aa(Sa[t]):"transparent"===t?new Ta(NaN,NaN,NaN,0):null}function Aa(t){return new Ta(t>>16&255,t>>8&255,255&t,1)}function wa(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ta(t,e,n,r)}function Da(t,e,n,r){return 1===arguments.length?((o=t)instanceof ua||(o=ka(o)),o?new Ta((o=o.rgb()).r,o.g,o.b,o.opacity):new Ta):new Ta(t,e,n,null==r?1:r);var o}function Ta(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ma(){return"#"+Fa(this.r)+Fa(this.g)+Fa(this.b)}function Pa(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Fa(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Na(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ia(t,e,n,r)}function Va(t){if(t instanceof Ia)return new Ia(t.h,t.s,t.l,t.opacity);if(t instanceof ua||(t=ka(t)),!t)return new Ia;if(t instanceof Ia)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Ia(i,s,l,t.opacity)}function Ia(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Oa(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ha(t,e,n,r,o){var a=t*t,i=a*t;return((1-3*t+3*a-i)*e+(4-6*a+3*i)*n+(1+3*t+3*a-3*i)*r+i*o)/6}function Ba(t){return function(){return t}}function Ra(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ba(isNaN(t)?e:t)}la(ua,ka,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ea,formatHex:Ea,formatHsl:function(){return Va(this).formatHsl()},formatRgb:La,toString:La}),la(Ta,Da,ca(ua,{brighter:function(t){return t=null==t?ha:Math.pow(ha,t),new Ta(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?da:Math.pow(da,t),new Ta(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ma,formatHex:Ma,formatRgb:Pa,toString:Pa})),la(Ia,(function(t,e,n,r){return 1===arguments.length?Va(t):new Ia(t,e,n,null==r?1:r)}),ca(ua,{brighter:function(t){return t=null==t?ha:Math.pow(ha,t),new Ia(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?da:Math.pow(da,t),new Ia(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Ta(Oa(t>=240?t-240:t+120,o,r),Oa(t,o,r),Oa(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Wa=function t(e){var n=function(t){return 1==(t=+t)?Ra:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ba(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Da(t)).r,(e=Da(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),i=Ra(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=a(e),t.opacity=i(e),t+""}}return r.gamma=t,r}(1);function za(t){return function(e){var n,r,o=e.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Da(e[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=t(a),i=t(i),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=i(t),r.b=s(t),r+""}}}function Ya(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=$a(t[n],e[n]);for(;n<r;++n)i[n]=e[n];return function(t){for(n=0;n<o;++n)i[n]=a[n](t);return i}}function Ua(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function qa(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Xa(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=$a(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}za((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],i=r>0?t[r-1]:2*o-a,s=r<e-1?t[r+2]:2*a-o;return Ha((n-r/e)*e,i,o,a,s)}})),za((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],i=t[(r+1)%e],s=t[(r+2)%e];return Ha((n-r/e)*e,o,a,i,s)}}));var ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ka=new RegExp(ja.source,"g");function Ga(t,e){var n,r,o,a=ja.lastIndex=Ka.lastIndex=0,i=-1,s=[],l=[];for(t+="",e+="";(n=ja.exec(t))&&(r=Ka.exec(e));)(o=r.index)>a&&(o=e.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:qa(n,r)})),a=Ka.lastIndex;return a<e.length&&(o=e.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Za(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(a){for(n=0;n<r;++n)o[n]=t[n]*(1-a)+e[n]*a;return o}}function $a(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?Ba(e):("number"===o?qa:"string"===o?(n=ka(e))?(e=n,Wa):Ga:e instanceof ka?Wa:e instanceof Date?Ua:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Ya:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Xa:qa:Za))(t,e)}function Qa(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Ja(t){return+t}var ti=[0,1];function ei(t){return t}function ni(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function ri(t,e,n){var r=t[0],o=t[1],a=e[0],i=e[1];return o<r?(r=ni(o,r),a=n(i,a)):(r=ni(r,o),a=n(a,i)),function(t){return a(r(t))}}function oi(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),a=new Array(r),i=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++i<r;)o[i]=ni(t[i],t[i+1]),a[i]=n(e[i],e[i+1]);return function(e){var n=sa(t,e,1,r)-1;return a[n](o[n](e))}}function ai(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ii(){return function(){var t,e,n,r,o,a,i=ti,s=ti,l=$a,c=ei;function u(){var t,e,n,l=Math.min(i.length,s.length);return c!==ei&&(t=i[0],e=i[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?oi:ri,o=a=null,d}function d(e){return null==e||isNaN(e=+e)?n:(o||(o=r(i.map(t),s,l)))(t(c(e)))}return d.invert=function(n){return c(e((a||(a=r(s,i.map(t),qa)))(n)))},d.domain=function(t){return arguments.length?(i=Array.from(t,Ja),u()):i.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),l=Qa,u()},d.clamp=function(t){return arguments.length?(c=!!t||ei,u()):c!==ei},d.interpolate=function(t){return arguments.length?(l=t,u()):l},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,u()}}()(ei,ei)}function si(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var li,ci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ui(t){if(!(e=ci.exec(t)))throw new Error("invalid format: "+t);var e;return new di({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function di(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 hi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function pi(t){return(t=hi(Math.abs(t)))?t[1]:NaN}function fi(t,e){var n=hi(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}ui.prototype=di.prototype,di.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return fi(100*t,e)},r:fi,s:function(t,e){var n=hi(t,e);if(!n)return t+"";var r=n[0],o=n[1],a=o-(li=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+hi(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function mi(t){return t}var vi,_i,yi,xi=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ci(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,o,a,i,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(i=Jo(t,e,n))||!isFinite(i))return[];if(i>0){let n=Math.round(t/i),r=Math.round(e/i);for(n*i<t&&++n,r*i>e&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)*i}else{i=-i;let n=Math.round(t*i),r=Math.round(e*i);for(n/i<t&&++n,r/i>e&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)/i}return r&&a.reverse(),a}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var o,a=ta(t,e,n);switch((r=ui(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pi(e)/3)))-pi(Math.abs(t)))}(a,i))||(r.precision=o),yi(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pi(e)-pi(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-pi(Math.abs(t)))}(a))||(r.precision=o-2*("%"===r.type))}return _i(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,a=e(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=Jo(l,c,n))===r)return a[i]=l,a[s]=c,e(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function Si(){var t=ii();return t.copy=function(){return ai(t,Si())},si.apply(t,arguments),Ci(t)}vi=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?mi:(e=xi.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(t.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[i=(i+1)%e.length];return a.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?mi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(xi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=ui(t)).fill,n=t.align,d=t.sign,h=t.symbol,p=t.zero,f=t.width,g=t.comma,m=t.precision,v=t.trim,_=t.type;"n"===_?(g=!0,_="g"):gi[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var y="$"===h?o:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?a:/[%p]/.test(_)?l:"",b=gi[_],C=/[defgprs%]/.test(_);function S(t){var o,a,l,h=y,S=x;if("c"===_)S=b(t)+S,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:b(Math.abs(t),m),v&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==d&&(E=!1),h=(E?"("===d?d:c:"-"===d||"("===d?"":d)+h,S=("s"===_?bi[8+li/3]:"")+S+(E&&"("===d?")":""),C)for(o=-1,a=t.length;++o<a;)if(48>(l=t.charCodeAt(o))||l>57){S=(46===l?i+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}g&&!p&&(t=r(t,1/0));var L=h.length+t.length+S.length,k=L<f?new Array(f-L+1).join(e):"";switch(g&&p&&(t=r(k+t,k.length?f-S.length:1/0),k=""),n){case"<":t=h+t+S+k;break;case"=":t=h+k+t+S;break;case"^":t=k.slice(0,L=k.length>>1)+h+t+S+k.slice(L);break;default:t=k+h+t+S}return s(t)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:d,formatPrefix:function(t,e){var n=d(((t=ui(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(pi(e)/3))),o=Math.pow(10,-r),a=bi[8+r/3];return function(t){return n(o*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_i=vi.format,yi=vi.formatPrefix;const Ei=1e3,Li=6e4,ki=36e5,Ai=864e5,wi=6048e5,Di=31536e6;var Ti=new Date,Mi=new Date;function Pi(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),e(n,a),t(n)}while(i<n&&n<r);return s},o.filter=function(n){return Pi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return Ti.setTime(+e),Mi.setTime(+r),t(Ti),t(Mi),Math.floor(n(Ti,Mi))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var Fi=Pi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Fi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Pi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Fi:null};var Ni=Fi,Vi=(Fi.range,Pi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Ei)}),(function(t,e){return(e-t)/Ei}),(function(t){return t.getUTCSeconds()}))),Ii=Vi,Oi=(Vi.range,Pi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ei)}),(function(t,e){t.setTime(+t+e*Li)}),(function(t,e){return(e-t)/Li}),(function(t){return t.getMinutes()}))),Hi=Oi,Bi=(Oi.range,Pi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ei-t.getMinutes()*Li)}),(function(t,e){t.setTime(+t+e*ki)}),(function(t,e){return(e-t)/ki}),(function(t){return t.getHours()}))),Ri=Bi,Wi=(Bi.range,Pi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Li)/Ai),(t=>t.getDate()-1))),zi=Wi;function Yi(t){return Pi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Li)/wi}))}Wi.range;var Ui=Yi(0),qi=Yi(1),Xi=Yi(2),ji=Yi(3),Ki=Yi(4),Gi=Yi(5),Zi=Yi(6),$i=(Ui.range,qi.range,Xi.range,ji.range,Ki.range,Gi.range,Zi.range,Pi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Qi=$i,Ji=($i.range,Pi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Ji.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var ts=Ji,es=(Ji.range,Pi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Li)}),(function(t,e){return(e-t)/Li}),(function(t){return t.getUTCMinutes()}))),ns=es,rs=(es.range,Pi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ki)}),(function(t,e){return(e-t)/ki}),(function(t){return t.getUTCHours()}))),os=rs,as=(rs.range,Pi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ai}),(function(t){return t.getUTCDate()-1}))),is=as;function ss(t){return Pi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/wi}))}as.range;var ls=ss(0),cs=ss(1),us=ss(2),ds=ss(3),hs=ss(4),ps=ss(5),fs=ss(6),gs=(ls.range,cs.range,us.range,ds.range,hs.range,ps.range,fs.range,Pi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),ms=gs,vs=(gs.range,Pi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));vs.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var _s=vs;function ys(t,e,n,r,o,a){const i=[[Ii,1,Ei],[Ii,5,5e3],[Ii,15,15e3],[Ii,30,3e4],[a,1,Li],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,ki],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ai],[r,2,1728e5],[n,1,wi],[e,1,2592e6],[e,3,7776e6],[t,1,Di]];function s(e,n,r){const o=Math.abs(n-e)/r,a=ra((([,,t])=>t)).right(i,o);if(a===i.length)return t.every(ta(e/Di,n/Di,r));if(0===a)return Ni.every(Math.max(ta(e,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:s(t,e,n),a=o?o.range(t,+e+1):[];return r?a.reverse():a},s]}vs.range;const[xs,bs]=ys(_s,ms,ls,is,os,ns),[Cs,Ss]=ys(ts,Qi,Ui,zi,Ri,Hi);var Es=new Date,Ls=new Date;function ks(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),e(n,a),t(n)}while(i<n&&n<r);return s},o.filter=function(n){return ks((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return Es.setTime(+e),Ls.setTime(+r),t(Es),t(Ls),Math.floor(n(Es,Ls))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var As=1e3,ws=6e4,Ds=36e5,Ts=864e5,Ms=6048e5;function Ps(t){return ks((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Ms}))}var Fs=Ps(0),Ns=Ps(1),Vs=Ps(2),Is=Ps(3),Os=Ps(4),Hs=Ps(5),Bs=Ps(6),Rs=(Fs.range,Ns.range,Vs.range,Is.range,Os.range,Hs.range,Bs.range,ks((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ts}),(function(t){return t.getUTCDate()-1}))),Ws=Rs;function zs(t){return ks((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ws)/Ms}))}Rs.range;var Ys=zs(0),Us=zs(1),qs=zs(2),Xs=zs(3),js=zs(4),Ks=zs(5),Gs=zs(6),Zs=(Ys.range,Us.range,qs.range,Xs.range,js.range,Ks.range,Gs.range,ks((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ws)/Ts}),(function(t){return t.getDate()-1}))),$s=Zs,Qs=(Zs.range,ks((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Qs.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ks((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Js=Qs,tl=(Qs.range,ks((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));tl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ks((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var el=tl;function nl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function rl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ol(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function al(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,a=t.days,i=t.shortDays,s=t.months,l=t.shortMonths,c=ml(o),u=vl(o),d=ml(a),h=vl(a),p=ml(i),f=vl(i),g=ml(s),m=vl(s),v=ml(l),_=vl(l),y={a:function(t){return i[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ol,e:Ol,f:zl,H:Hl,I:Bl,j:Rl,L:Wl,m:Yl,M:Ul,p:function(t){return o[+(t.getHours()>=12)]},Q:_c,s:yc,S:ql,u:Xl,U:jl,V:Kl,w:Gl,W:Zl,x:null,X:null,y:$l,Y:Ql,Z:Jl,"%":vc},x={a:function(t){return i[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:tc,e:tc,f:ac,H:ec,I:nc,j:rc,L:oc,m:ic,M:sc,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:_c,s:yc,S:lc,u:cc,U:uc,V:dc,w:hc,W:pc,x:null,X:null,y:fc,Y:gc,Z:mc,"%":vc},b={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:Al,e:Al,f:Fl,H:Dl,I:Dl,j:wl,L:Pl,m:kl,M:Tl,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Vl,s:Il,S:Ml,u:yl,U:xl,V:bl,w:_l,W:Cl,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:El,Y:Sl,Z:Ll,"%":Nl};function C(t,e){return function(n){var r,o,a,i=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(i.push(t.slice(l,s)),null!=(o=ul[r=t.charAt(++s)])?r=t.charAt(++s):o="e"===r?" ":"0",(a=e[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(t.slice(l,s)),i.join("")}}function S(t,e){return function(n){var r,o,a=ol(1900);if(E(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=rl(ol(a.y))).getUTCDay(),r=o>4||0===o?Ns.ceil(r):Ns(r),r=Ws.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=e(ol(a.y))).getDay(),r=o>4||0===o?Us.ceil(r):Us(r),r=$s.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?rl(ol(a.y)).getUTCDay():e(ol(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rl(a)):e(a)}}function E(t,e,n,r){for(var o,a,i=0,s=e.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=e.charCodeAt(i++))){if(o=e.charAt(i++),!(a=b[o in ul?e.charAt(i++):o])||(r=a(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(e,y),x.x=C(n,x),x.X=C(r,x),x.c=C(e,x),{format:function(t){var e=C(t+="",y);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",nl);return e.toString=function(){return t},e},utcFormat:function(t){var e=C(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t,rl);return e.toString=function(){return t},e}}}tl.range;var il,sl,ll,cl,ul={"-":"",_:" ",0:"0"},dl=/^\s*\d+/,hl=/^%/,pl=/[\\^$*+?|[\]().{}]/g;function fl(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(e)+o:o)}function gl(t){return t.replace(pl,"\\$&")}function ml(t){return new RegExp("^(?:"+t.map(gl).join("|")+")","i")}function vl(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function _l(t,e,n){var r=dl.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yl(t,e,n){var r=dl.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Sl(t,e,n){var r=dl.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function El(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ll(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function kl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Al(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function wl(t,e,n){var r=dl.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Dl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Tl(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ml(t,e,n){var r=dl.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=dl.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fl(t,e,n){var r=dl.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nl(t,e,n){var r=hl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Vl(t,e,n){var r=dl.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Il(t,e,n){var r=dl.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Ol(t,e){return fl(t.getDate(),e,2)}function Hl(t,e){return fl(t.getHours(),e,2)}function Bl(t,e){return fl(t.getHours()%12||12,e,2)}function Rl(t,e){return fl(1+$s.count(Js(t),t),e,3)}function Wl(t,e){return fl(t.getMilliseconds(),e,3)}function zl(t,e){return Wl(t,e)+"000"}function Yl(t,e){return fl(t.getMonth()+1,e,2)}function Ul(t,e){return fl(t.getMinutes(),e,2)}function ql(t,e){return fl(t.getSeconds(),e,2)}function Xl(t){var e=t.getDay();return 0===e?7:e}function jl(t,e){return fl(Ys.count(Js(t),t),e,2)}function Kl(t,e){var n=t.getDay();return t=n>=4||0===n?js(t):js.ceil(t),fl(js.count(Js(t),t)+(4===Js(t).getDay()),e,2)}function Gl(t){return t.getDay()}function Zl(t,e){return fl(Us.count(Js(t),t),e,2)}function $l(t,e){return fl(t.getFullYear()%100,e,2)}function Ql(t,e){return fl(t.getFullYear()%1e4,e,4)}function Jl(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fl(e/60|0,"0",2)+fl(e%60,"0",2)}function tc(t,e){return fl(t.getUTCDate(),e,2)}function ec(t,e){return fl(t.getUTCHours(),e,2)}function nc(t,e){return fl(t.getUTCHours()%12||12,e,2)}function rc(t,e){return fl(1+Ws.count(el(t),t),e,3)}function oc(t,e){return fl(t.getUTCMilliseconds(),e,3)}function ac(t,e){return oc(t,e)+"000"}function ic(t,e){return fl(t.getUTCMonth()+1,e,2)}function sc(t,e){return fl(t.getUTCMinutes(),e,2)}function lc(t,e){return fl(t.getUTCSeconds(),e,2)}function cc(t){var e=t.getUTCDay();return 0===e?7:e}function uc(t,e){return fl(Fs.count(el(t),t),e,2)}function dc(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Os(t):Os.ceil(t),fl(Os.count(el(t),t)+(4===el(t).getUTCDay()),e,2)}function hc(t){return t.getUTCDay()}function pc(t,e){return fl(Ns.count(el(t),t),e,2)}function fc(t,e){return fl(t.getUTCFullYear()%100,e,2)}function gc(t,e){return fl(t.getUTCFullYear()%1e4,e,4)}function mc(){return"+0000"}function vc(){return"%"}function _c(t){return+t}function yc(t){return Math.floor(+t/1e3)}il=al({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),sl=il.format,il.parse,ll=il.utcFormat,cl=il.utcParse;var xc="%Y-%m-%dT%H:%M:%S.%LZ";function bc(t){return new Date(t)}function Cc(t){return t instanceof Date?+t:+new Date(+t)}function Sc(t,e,n,r,o,a,i,s,l,c){var u=ii(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(t){return(l(t)<t?p:s(t)<t?f:i(t)<t?g:a(t)<t?m:r(t)<t?o(t)<t?v:_:n(t)<t?y:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,Cc)):h().map(bc)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,o=(t=t.slice()).length-1,a=t[r],i=t[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),t[r]=e.floor(a),t[o]=e.ceil(i),t}(n,t)):u},u.copy=function(){return ai(u,Sc(t,e,n,r,o,a,i,s,l,c))},u}function Ec(){return si.apply(Sc(Cs,Ss,ts,Qi,Ui,zi,Ri,Hi,Ii,sl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||ll(xc),+new Date("2000-01-01T00:00:00.000Z")||cl(xc);class Lc extends Map{constructor(t,e=Tc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Ac(this,t))}has(t){return super.has(Ac(this,t))}set(t,e){return super.set(wc(this,t),e)}delete(t){return super.delete(Dc(this,t))}}class kc extends Set{constructor(t,e=Tc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(Ac(this,t))}add(t){return super.add(wc(this,t))}delete(t){return super.delete(Dc(this,t))}}function Ac({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function wc({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Dc({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Tc(t){return null!==t&&"object"==typeof t?t.valueOf():t}const Mc=Symbol("implicit");function Pc(){var t=new Lc,e=[],n=[],r=Mc;function o(o){let a=t.get(o);if(void 0===a){if(r!==Mc)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Lc;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return Pc(e,n).unknown(r)},si.apply(o,arguments),o}function Fc(){var t,e,n=Pc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,h=d?i:a,p=d?a:i;t=(p-h)/Math.max(1,n-l+2*c),s&&(t=Math.floor(t)),h+=(p-h-t*(n-l))*u,e=t*(1-l),s&&(h=Math.round(h),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(o);++r<o;)a[r]=t+r*n;return a}(n).map((function(e){return h+t*e}));return o(d?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),d()):r()},n.range=function(t){return arguments.length?([a,i]=t,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(t){return[a,i]=t,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,d()):s},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),d()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),d()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,d()):c},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),d()):u},n.copy=function(){return Fc(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},si.apply(d(),arguments)}var Nc="http://www.w3.org/1999/xhtml",Vc={svg:"http://www.w3.org/2000/svg",xhtml:Nc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ic(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Vc.hasOwnProperty(e)?{space:Vc[e],local:t}:t}function Oc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Nc&&e.documentElement.namespaceURI===Nc?e.createElement(t):e.createElementNS(n,t)}}function Hc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Bc(t){var e=Ic(t);return(e.local?Hc:Oc)(e)}function Rc(){}function Wc(t){return null==t?Rc:function(){return this.querySelector(t)}}function zc(){return[]}var Yc=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Uc=document.documentElement;if(!Uc.matches){var qc=Uc.webkitMatchesSelector||Uc.msMatchesSelector||Uc.mozMatchesSelector||Uc.oMatchesSelector;Yc=function(t){return function(){return qc.call(this,t)}}}}var Xc=Yc;function jc(t){return new Array(t.length)}function Kc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Kc.prototype={constructor:Kc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Gc(t,e,n,r,o,a){for(var i,s=0,l=e.length,c=a.length;s<c;++s)(i=e[s])?(i.__data__=a[s],r[s]=i):n[s]=new Kc(t,a[s]);for(;s<l;++s)(i=e[s])&&(o[s]=i)}function Zc(t,e,n,r,o,a,i){var s,l,c,u={},d=e.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=c="$"+i.call(l,l.__data__,s,e),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+i.call(t,a[s],s,a)])?(r[s]=l,l.__data__=a[s],u[c]=null):n[s]=new Kc(t,a[s]);for(s=0;s<d;++s)(l=e[s])&&u[p[s]]===l&&(o[s]=l)}function $c(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Qc(t){return function(){this.removeAttribute(t)}}function Jc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tu(t,e){return function(){this.setAttribute(t,e)}}function eu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nu(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ru(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ou(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function au(t){return function(){this.style.removeProperty(t)}}function iu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function su(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function lu(t){return function(){delete this[t]}}function cu(t,e){return function(){this[t]=e}}function uu(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function du(t){return t.trim().split(/^|\s+/)}function hu(t){return t.classList||new pu(t)}function pu(t){this._node=t,this._names=du(t.getAttribute("class")||"")}function fu(t,e){for(var n=hu(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function gu(t,e){for(var n=hu(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function mu(t){return function(){fu(this,t)}}function vu(t){return function(){gu(this,t)}}function _u(t,e){return function(){(e.apply(this,arguments)?fu:gu)(this,t)}}function yu(){this.textContent=""}function xu(t){return function(){this.textContent=t}}function bu(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Cu(){this.innerHTML=""}function Su(t){return function(){this.innerHTML=t}}function Eu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Lu(){this.nextSibling&&this.parentNode.appendChild(this)}function ku(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Au(){return null}function wu(){var t=this.parentNode;t&&t.removeChild(this)}function Du(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Tu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}pu.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Mu={},Pu=null;function Fu(t,e,n){return t=Nu(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Nu(t,e,n){return function(r){var o=Pu;Pu=r;try{t.call(this,this.__data__,e,n)}finally{Pu=o}}}function Vu(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?e.length=o:delete this.__on}}}function Iu(t,e,n){var r=Mu.hasOwnProperty(t.type)?Fu:Nu;return function(o,a,i){var s,l=this.__on,c=r(e,a,i);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Ou(t,e,n){var r=ou(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Hu(t,e){return function(){return Ou(this,t,e)}}function Bu(t,e){return function(){return Ou(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Mu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Wu(t,e){this._groups=t,this._parents=e}function zu(t){return"string"==typeof t?new Wu([[document.querySelector(t)]],[document.documentElement]):new Wu([[t]],Ru)}Wu.prototype=function(){return new Wu([[document.documentElement]],Ru)}.prototype={constructor:Wu,select:function(t){"function"!=typeof t&&(t=Wc(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a,i,s=e[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(i=t.call(a,a.__data__,u,s))&&("__data__"in a&&(i.__data__=a.__data__),c[u]=i);return new Wu(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?zc:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],o=[],a=0;a<n;++a)for(var i,s=e[a],l=s.length,c=0;c<l;++c)(i=s[c])&&(r.push(t.call(i,i.__data__,c,s)),o.push(i));return new Wu(r,o)},filter:function(t){"function"!=typeof t&&(t=Xc(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a,i=e[o],s=i.length,l=r[o]=[],c=0;c<s;++c)(a=i[c])&&t.call(a,a.__data__,c,i)&&l.push(a);return new Wu(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,r=e?Zc:Gc,o=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],h=a[u],p=h.length,f=t.call(d,d&&d.__data__,u,o),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,e);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Wu(s,o))._enter=l,s._exit=c,s},enter:function(){return new Wu(this._enter||this._groups.map(jc),this._parents)},exit:function(){return new Wu(this._exit||this._groups.map(jc),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l,c=e[s],u=n[s],d=c.length,h=i[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)i[s]=e[s];return new Wu(i,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=$c);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,s=n[a],l=s.length,c=o[a]=new Array(l),u=0;u<l;++u)(i=s[u])&&(c[u]=i);c.sort(e)}return new Wu(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,a=e[n],i=0,s=a.length;i<s;++i)(o=a[i])&&t.call(o,o.__data__,i,a);return this},attr:function(t,e){var n=Ic(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Jc:Qc:"function"==typeof e?n.local?ru:nu:n.local?eu:tu)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?au:"function"==typeof e?su:iu)(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||ou(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?lu:"function"==typeof e?uu:cu)(t,e)):this.node()[t]},classed:function(t,e){var n=du(t+"");if(arguments.length<2){for(var r=hu(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?_u:e?mu:vu)(n,e))},text:function(t){return arguments.length?this.each(null==t?yu:("function"==typeof t?bu:xu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Cu:("function"==typeof t?Eu:Su)(t)):this.node().innerHTML},raise:function(){return this.each(Lu)},lower:function(){return this.each(ku)},append:function(t){var e="function"==typeof t?t:Bc(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Bc(t),r=null==e?Au:"function"==typeof e?e:Wc(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wu)},clone:function(t){return this.select(t?Tu:Du)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,a=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),i=a.length;if(!(arguments.length<2)){for(s=e?Iu:Vu,null==n&&(n=!1),r=0;r<i;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<i;++r)if((o=a[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Bu:Hu)(t,e))}};var Yu=0;function Uu(){this._="@"+(++Yu).toString(36)}function qu(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function Xu(t){return"string"==typeof t?new Wu([document.querySelectorAll(t)],[document.documentElement]):new Wu([null==t?[]:t],Ru)}Uu.prototype=function(){return new Uu}.prototype={constructor:Uu,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var ju,Ku,Gu,Zu,$u=ks((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*As)}),(function(t,e){return(e-t)/As}),(function(t){return t.getUTCSeconds()})),Qu=$u,Ju=($u.range,ks((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*As)}),(function(t,e){t.setTime(+t+e*ws)}),(function(t,e){return(e-t)/ws}),(function(t){return t.getMinutes()}))),td=Ju,ed=(Ju.range,ks((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*As-t.getMinutes()*ws)}),(function(t,e){t.setTime(+t+e*Ds)}),(function(t,e){return(e-t)/Ds}),(function(t){return t.getHours()}))),nd=ed,rd=(ed.range,ks((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),od=rd;function ad(t,e,n){var r=t.domainNRangeValues,o=t.showRoundOffXTickValues,a=void 0!==o&&o,i=t.xAxistickSize,s=void 0===i?6:i,l=t.tickPadding,c=void 0===l?10:l,u=t.xAxisCount,d=void 0===u?6:u,h=t.xAxisElement,p=Si().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);a&&p.nice();var f=Wo(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(t,e){var r="number"==typeof t?t:t.valueOf();return yd(r,n)}));return e===Ku.HorizontalBarChartWithAxis&&f.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&zu(h).call(f).selectAll("text").attr("aria-hidden","true"),p}function id(t,e,n,r,o,a){return void 0===a&&(a=!1),r===Ku.HorizontalBarChartWithAxis?function(t,e,n,r){var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=t.yAxisElement,s=void 0===i?null:i,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.margins,f=t.tickPadding,g=void 0===f?12:f,m=t.maxOfYVal,v=void 0===m?0:m,_=t.yAxisTickFormat,y=t.yAxisTickCount,x=void 0===y?4:y,b=v||a.endValue,C=b>c?b:c,S=a.startValue<d?0:d,E=Si().domain([S,C]).range([h-p.bottom,p.top]),L=(e?Ro(E):zo(E)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(_i(".2~s")),s&&zu(s).call(L).selectAll("text").attr("aria-hidden","true"),E}(t,e):function(t,e,n,r){void 0===r&&(r=!1);var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=t.yAxisElement,s=void 0===i?null:i,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.containerWidth,f=t.margins,g=t.tickPadding,m=void 0===g?12:g,v=t.maxOfYVal,_=void 0===v?0:v,y=t.yAxisTickFormat,x=t.yAxisTickCount,b=void 0===x?4:x,C=t.eventAnnotationProps,S=t.eventLabelHeight,E=_||a.endValue,L=E>c?E:c,k=a.startValue<d?0:d,A=function(t,e,n){for(var r=Math.ceil((t-e)/n),o=[e,e+r];o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(L,k,b),w=Si().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?S:0)]),D=(!e&&r||e&&!r?Ro(w):zo(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(_i(".2~s")),s&&zu(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(t,e,n,a)}rd.range,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"}(Ku||(Ku={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Gu||(Gu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Zu||(Zu={}));function sd(t){var e=[];t.forEach((function(t){var n=t.data.filter((function(t){return!t.hideCallout})).map((function(e){return o(o({legend:t.legend},e),{color:t.color,index:t.index})}));e=e.concat(n)}));var n,r=[];return e.forEach((function(t,n){t.x=t.x instanceof Date?t.x.getTime():t.x;var o=[{legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}];e.slice(n+1).forEach((function(e){e.x=e.x instanceof Date?e.x.getTime():e.x,t.x===e.x&&o.push({legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index})})),r.push({x:t.x,values:o})})),"x",(n=r).map((function(t){return t.x})).map((function(t,e,n){return n.indexOf(t)===e&&e})).filter((function(t){return n[t]})).map((function(t){return n[t]}))}function ld(t,e){var n=0;return t.forEach((function(t){var r=document.createElement("canvas").getContext("2d");r.font=window.getComputedStyle(e,null).getPropertyValue("font-size");var o=r.measureText(t.y).width;n=Math.max(o,n)})),n}function cd(t){var e=t.tooltipCls,n=t.xAxis,r=t.id;if(null===n)return null;for(var o=zu("body").append("div").attr("id",r).attr("class",e).style("opacity",0),a=n.selectAll("#BaseSpan")._groups[0],i=a&&Object.keys(a).length,s=[],l=0;l<i;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(t){zu(u[t]).on("mouseover",(function(e){o.style("opacity",.9),o.html(s[t]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px")})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ud(t){var e=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(e=t.data[0].x instanceof Date)})),e}function dd(t,e,n,r,o,a,s,l,c){var u;if(a===Gu.NumericAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(t,e,n,r){var o=Ko(t,(function(t){return Ko(t.data,(function(t){return t.x}))})),a=jo(t,(function(t){return jo(t.data,(function(t){return t.x}))})),i=e.left,s=n-e.right;return r?{dStartValue:a,dEndValue:o,rStartValue:i,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:i,rEndValue:s}}(t,e,n,o);break;case Ku.VerticalStackedBarChart:u=function(t,e,n,r,o){var a=Ko(t,(function(t){return t.x})),i=jo(t,(function(t){return t.x})),s=e.left+o/2,l=n-e.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case Ku.VerticalBarChart:u=function(t,e,n,r,o){var a=jo(t,(function(t){return t.x})),i=Ko(t,(function(t){return t.x})),s=e.left+o/2,l=n-e.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case Ku.HorizontalBarChartWithAxis:u=function(t,e,n,r,o){var a=jo(t,(function(t){return t.x})),i=r?e.left:e.left+o,s=r?n-e.right-o:n-e.right;return r?{dStartValue:a,dEndValue:0,rStartValue:i,rEndValue:s}:{dStartValue:0,dEndValue:a,rStartValue:i,rEndValue:s}}(t,e,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===Gu.DateAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(t,e,n,r,o){void 0===o&&(o=[]);var a=Ko(t,(function(t){return Ko(t.data,(function(t){return t.x}))})),s=jo(t,(function(t){return jo(t.data,(function(t){return t.x}))})),l=Ko(i(i([],o,!0),[a],!1)),c=jo(i(i([],o,!0),[s],!1)),u=e.left,d=n-e.right;return r?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(t,e,n,o,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Ku.VerticalStackedBarChart:case Ku.GroupedVerticalBarChart:case Ku.VerticalBarChart:case Ku.HeatMapChart:u=function(t,e,n){var r=t.left,o=e-t.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(e,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function hd(t,e,n){var r,o,a;switch(void 0===n&&(n=Zu.NumericAxis),e){case Ku.AreaChart:case Ku.LineChart:r=function(t){var e=jo(t,(function(t){return jo(t.data,(function(t){return t.y}))}));return{startValue:Ko(t,(function(t){return Ko(t.data,(function(t){return t.y}))})),endValue:e}}(t);break;case Ku.VerticalStackedBarChart:a=jo(o=t,(function(t){return t.y})),r={startValue:Ko(o,(function(t){return t.y})),endValue:a};break;case Ku.VerticalBarChart:r=function(t){var e=jo(t,(function(t){return t.y}));return{startValue:Ko(t,(function(t){return t.y})),endValue:e}}(t);break;case Ku.HorizontalBarChartWithAxis:r=function(t,e){if(void 0!==e&&e===Zu.NumericAxis){var n=jo(t,(function(t){return t.y}));return{startValue:Ko(t,(function(t){return t.y})),endValue:n}}return{startValue:0,endValue:0}}(t,n);break;default:r={startValue:0,endValue:0}}return r}var pd,fd,gd=function(t,e){if(e)switch(typeof t){case"string":return Gu.StringAxis;case"number":return Gu.NumericAxis;default:return Gu.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"}(pd||(pd={})),function(t){t[t.dottedLine=0]="dottedLine"}(fd||(fd={}));var md,vd=((ju={})[pd.circle]={widthRatio:1},ju[pd.square]={widthRatio:1},ju[pd.triangle]={widthRatio:1},ju[pd.diamond]={widthRatio:1},ju[pd.pyramid]={widthRatio:1},ju[pd.hexagon]={widthRatio:2},ju[pd.pentagon]={widthRatio:1.168},ju[pd.octagon]={widthRatio:2.414},ju),_d=function(t,e,n){return void 0===e&&(e="text"),void 0===n&&(n=!0),{role:e,"data-is-focusable":n,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},yd=function(t,e){return t?(e=e||void 0,"number"==typeof t?t.toLocaleString(e):"string"!=typeof t||window.isNaN(Number(t))?t:Number(t).toLocaleString(e)):t},xd=ht(),bd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.color,n=t.Legend,r=t.XValue,o=t.YValue,a=t.styles,i=t.theme,l=t.ratio,c=t.descriptionMessage,u=t.culture;return this._classNames=xd(a,{theme:i,color:e,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},yd(n,u)),s.createElement("div",{className:this._classNames.calloutContentY},yd(o,u))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},yd(l[0],u)),"/",s.createElement("span",{className:this._classNames.denominator},yd(l[1],u))))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},e}(s.Component),Cd=function(t){var e=t.color,n=t.XValue,r=t.theme,o=t.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid ".concat(e)}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:e||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:Bn.bold},denominator:{fontWeight:Bn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(r.semanticColors.menuDivider)}]}},Sd=E(bd,Cd);function Ed(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function Ld(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Ed(t,t[n],e[n]))}(t,{componentDidMount:kd,componentDidUpdate:Ad,componentWillUnmount:wd})}function kd(){Dd(this.props.componentRef,this)}function Ad(t){t.componentRef!==this.props.componentRef&&(Dd(t.componentRef,null),Dd(this.props.componentRef,this))}function wd(){Dd(this.props.componentRef,null)}function Dd(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}function Td(t,e){var n=kt(t,(function(t){return e===t||t.hasAttribute(go)}));return null!==n&&n.hasAttribute(go)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(md||(md={}));var Md,Pd="data-is-focusable",Fd="data-focuszone-id",Nd="tabindex",Vd="data-no-vertical-wrap",Id="data-no-horizontal-wrap",Od=999999999,Hd=-999999999;function Bd(t,e){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==e?void 0:e.ctrlKey,metaKey:null==e?void 0:e.metaKey,shiftKey:null==e?void 0:e.shiftKey,altKey:null==e?void 0:e.altKey,bubbles:null==e?void 0:e.bubbles,cancelable:null==e?void 0:e.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!e&&e.bubbles,!!e&&e.cancelable,window,0,0,0,0,0,!!e&&e.ctrlKey,!!e&&e.altKey,!!e&&e.shiftKey,!!e&&e.metaKey,0,null),t.dispatchEvent(n)}var Rd,Wd={},zd=new Set,Yd=["text","number","password","email","tel","url","search","textarea"],Ud=!1,qd=function(t){function e(n){var r,o,a,i,l,c=this;(c=t.call(this,n)||this)._root=s.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return l.resolver&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(e){for(var n=0,r=t.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(e):o&&(o.current=e)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var e,n=c.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,i=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=c._isImmediateDescendantOfZone(t.target);if(d)e=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(Ot(h)&&c._isImmediateDescendantOfZone(h)){e=h;break}h=Lt(h,Ud)}if(l&&t.target===c._root.current){var p=u&&"function"==typeof u&&c._root.current&&u(c._root.current);p&&Ot(p)?(e=p,p.focus()):(c.focus(!0),c._activeElement&&(e=null))}var f=!c._activeElement;e&&e!==c._activeElement&&((d||f)&&c._setFocusAlignment(e,!0,!0),c._activeElement=e,f&&c._updateTabIndexes()),r&&r(c._activeElement,t),(a||o)&&t.stopPropagation(),s?s(t):i&&i()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var e=t.target,n=[];e&&e!==c._root.current;)n.push(e),e=Lt(e,Ud);for(;n.length&&((e=n.pop())&&Ot(e)&&c._setActiveElement(e,!0),!Ht(e)););}},c._onKeyDown=function(t,e){if(!c._portalContainsElement(t.target)){var n=c.props,r=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,i=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(o||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(t)||a&&a(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Bt(t.target))return;if(!c.focusElement(Nt(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(r!==md.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(e)))break;return;case 39:if(r!==md.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(e)))break;return;case 38:if(r!==md.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(r!==md.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!i&&c._moveFocusPaging(!0))break;return;case 33:if(!i&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var u=!1;if(c._processingTabKey=!0,u=r!==md.vertical&&c._shouldWrapFocus(c._activeElement,Id)?(lt(e)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(e):c._moveFocusRight(e):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,u)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 d=c._root.current&&c._root.current.firstChild;if(c._root.current&&d&&c.focusElement(Nt(c._root.current,d,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var h=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(Ft(c._root.current,h,!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,e,n){var r=c._focusAlignment.left||c._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(e.bottom),i=Math.floor(n.bottom),s=Math.floor(e.top);return t&&o>a||!t&&i<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):c._shouldWrapFocus(c._activeElement,Vd)?Od:Hd},Ld(c),c._id=xt("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var u=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:e.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:u,c._shouldRaiseClicksOnSpace=null!==(i=n.shouldRaiseClicksOnSpace)&&void 0!==i?i:u,c}return r(e,t),e.getOuterZones=function(){return zd.size},e._onKeyDownCapture=function(t){9===t.which&&zd.forEach((function(t){return t._updateTabIndexes()}))},e.prototype.componentDidMount=function(){var t=this._root.current;if(Wd[this._id]=this,t){for(var n=Lt(t,Ud);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Ht(n)){this._isInnerZone=!0;break}n=Lt(n,Ud)}this._isInnerZone||(zd.add(this),this._root.current&&this._root.current.addEventListener("keydown",e._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()}},e.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if((this._activeElement&&!At(this._root.current,this._activeElement,Ud)||this._defaultFocusElement&&!At(this._root.current,this._defaultFocusElement,Ud))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&e&&this._lastIndexPath&&(e.activeElement===e.body||null===e.activeElement||e.activeElement===t)){var n=function(t,e){for(var n=t,r=0,o=e;r<o.length;r++){var a=o[r],i=n.children[Math.min(a,n.children.length-1)];if(!i)break;n=i}return Ot(n)&&Vt(n)?n:Nt(t,n,!0)||Ft(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},e.prototype.componentWillUnmount=function(){delete Wd[this._id],this._isInnerZone||(zd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",e._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},e.prototype.render=function(){var t=this,e=this.props,n=e.as,r=e.elementType,a=e.rootProps,i=e.ariaDescribedBy,l=e.ariaLabelledBy,c=e.className,u=te(this.props,Zt),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Pr=Mr({},h)),Pr);return s.createElement(d,o({"aria-labelledby":l,"aria-describedby":i},u,a,{className:ee((Md||(Md=oe({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Md),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},e.prototype.focus=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(Pd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Wd[n.getAttribute(Fd)];return!!r&&r.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&At(this._root.current,this._activeElement)&&Ot(this._activeElement)&&(!e||It(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Nt(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,e))}return!1},e.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(Ft(this._root.current,t,!0,!0,!0))}return!1},e.prototype.focusElement=function(t,e){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(t)||r&&!r(t)||!t||(this._setActiveElement(t,e),this._activeElement&&this._activeElement.focus(),0))},e.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(e.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),e.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=At(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=Lt(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},e.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},e.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(Ht(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},e.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},e.prototype._tryInvokeClickForFocusable=function(t,e){var n=t;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Pd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Bd(n,e),!0;n=Lt(n,Ud)}while(n!==this._root.current);return!1},e.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(Ht(t))return Wd[t.getAttribute(Fd)];for(var e=t.firstElementChild;e;){if(Ht(e))return Wd[e.getAttribute(Fd)];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},e.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var o=this._activeElement,a=-1,i=void 0,s=!1,l=this.props.direction===md.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,t))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=t?Nt(this._root.current,o):Ft(this._root.current,o),!l){i=o;break}if(o){var u=e(c,o.getBoundingClientRect());if(-1===u&&-1===a){i=o;break}if(u>-1&&(-1===a||u<a)&&(a=u,i=o),a>=0&&u<0)break}}while(o);if(i&&i!==this._activeElement)s=!0,this.focusElement(i);else if(this.props.isCircularNavigation&&r)return t?this.focusElement(Nt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ft(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},e.prototype._moveFocusDown=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var a=-1,i=Math.floor(o.top),s=Math.floor(r.bottom);return i<s?t._shouldWrapFocus(t._activeElement,Vd)?Od:Hd:((-1===e&&i>=s||i===e)&&(e=i,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var a=-1,i=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return i>l?t._shouldWrapFocus(t._activeElement,Vd)?Od:Hd:((-1===e&&i<=l||s===e)&&(e=s,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusLeft=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,Id);return!!this._moveFocus(lt(t),(function(r,o){var a=-1;return(lt(t)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&e.props.direction!==md.vertical?a=r.right-o.right:n||(a=Hd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusRight=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,Id);return!!this._moveFocus(!lt(t),(function(r,o){var a=-1;return(lt(t)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&e.props.direction!==md.vertical?a=o.left-r.left:n||(a=Hd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=ie(n);if(!r)return!1;var o=-1,a=void 0,i=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?Nt(this._root.current,n):Ft(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(t,c,u);if(t&&d>h+l||!t&&p<f-l)break;g>-1&&(t&&d>i?(i=d,o=g,a=n):!t&&p<s?(s=p,o=g,a=n):(-1===o||g<=o)&&(o=g,a=n))}}while(n);var m=!1;if(a&&a!==this._activeElement)m=!0,this.focusElement(a),this._setFocusAlignment(a,!1,!0);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(Nt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ft(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},e.prototype._setFocusAlignment=function(t,e,n){if(this.props.direction===md.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),o=r.left+r.width/2,a=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:a}),e&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=a)}},e.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},e.prototype._getOwnerZone=function(t){for(var e=Lt(t,Ud);e&&e!==this._root.current&&e!==this._getDocument().body;){if(Ht(e))return e;e=Lt(e,Ud)}return e},e.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&&!At(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Ot(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];Ht(r)?"true"===r.getAttribute(Pd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"0"))):(r.getAttribute&&"false"===r.getAttribute(Pd)&&r.setAttribute(Nd,"-1"),Ot(r)?this.props.disabled?r.setAttribute(Nd,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},e.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},e.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},e.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&Yd.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,o=t.value,a=t.readOnly;if(r||n>0&&!e&&!a||n!==o.length&&e&&!a||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},e.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||function(t,e){return"true"!==function(t,e){var n=kt(t,(function(t){return t.hasAttribute(e)}));return n&&n.getAttribute(e)}(t,e)}(t,e)},e.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Td(t,this._root.current)},e.prototype._getDocument=function(){return et(this._root.current)},e.defaultProps={isCircularNavigation:!1,direction:md.bidirectional,shouldRaiseClicks:!0},e}(s.Component);function Xd(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"}(Rd||(Rd={}));var jd,Kd=ht(),Gd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"==typeof t.content?s.createElement("p",{className:e._classNames.subText},t.content):s.createElement("div",{className:e._classNames.subText},t.content)},e}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.className,n=t.calloutProps,r=t.directionalHint,a=t.directionalHintForRTL,i=t.styles,l=t.id,c=t.maxWidth,u=t.onRenderContent,d=void 0===u?this._onRenderContent:u,h=t.targetElement,p=t.theme;return this._classNames=Kd(i,{theme:p,className:e||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:c}),s.createElement(ko,o({target:h,directionalHint:r,directionalHintForRTL:a},n,te(this.props,Jt,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},e.defaultProps={directionalHint:Et.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},e}(s.Component),Zd=E(Gd,(function(t){var e=t.className,n=t.beakWidth,r=void 0===n?16:n,o=t.gapSpace,a=void 0===o?0:o,i=t.maxWidth,s=t.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+a)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Wn.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:i,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},e],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(jd||(jd={}));var $d,Qd,Jd=ht(),th=function(t){function e(n){var r=t.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=xt("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var t=r.props.overflowMode;if(void 0!==t)switch(t){case Rd.Parent:return r._tooltipHost.current.parentElement;case Rd.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipContentFocus=function(t){e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(t){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var n=r.props,o=n.overflowMode,a=n.delay;if(e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,void 0!==o){var i=r._getTargetElement();if(i&&!Xd(i))return}if(!t.target||!Td(t.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==jd.zero){var s=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),e._currentVisibleTooltip===r&&(e._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ie||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(t)}))},r._getDelayTime=function(t){switch(t){case jd.medium:return 300;case jd.long:return 500;default:return 0}},Ld(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Oe(r),r}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.calloutProps,n=t.children,r=t.content,a=t.directionalHint,i=t.directionalHintForRTL,l=t.hostClassName,c=t.id,u=t.setAriaDescribedBy,d=void 0===u||u,h=t.tooltipProps,p=t.styles,f=t.theme;this._classNames=Jd(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=o(o({id:"".concat(m,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:i,calloutProps:ne({},e,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},te(this.props,Jt,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(t){return(null==t?void 0:t.content)?s.createElement(s.Fragment,null,t.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",o({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),n,y&&s.createElement(Zd,o({},v)),s.createElement("div",{hidden:!0,id:m,style:Kn},_))},e.prototype.componentWillUnmount=function(){e._currentVisibleTooltip&&e._currentVisibleTooltip===this&&(e._currentVisibleTooltip=void 0),this._async.dispose()},e.defaultProps={delay:jd.medium},e}(s.Component),eh={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},nh=E(th,(function(t){var e=t.className,n=t.theme;return{root:[ar(eh,n).root,{display:"inline"},e]}}),void 0,{scope:"TooltipHost"}),rh=function(t){function e(e){var n=t.call(this,e)||this;return n._tooltipChild=s.createRef(),n._checkTextOverflow=function(){var t=n._getTargetElement(),e=!!t&&Xd(t);e!==n.state.textOverflow&&n.setState({textOverflow:e})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Oe(n),n}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.className,n=t.content,r=t.accessibilityData;return s.createElement(nh,{overflowMode:Rd.Self,hostClassName:e,content:n},s.createElement("span",o({},_d(r),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),n))},e.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},e.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},e}(s.Component),oh=ht(),ah=function(t){function e(e){var n=t.call(this,e)||this;return n._isRTL=lt(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=oh(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},n._getChartDataText=function(t){return n.props.barChartCustomData?s.createElement("div",{role:"text"},n.props.barChartCustomData(t)):n._getDefaultTextData(t)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",emptyChart:!1},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xt("callout"),n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props,n=e.data,r=e.theme;this._adjustProps();var a=r.palette,i=0;return this.state.emptyChart?s.createElement("div",{id:xt("_HBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(e,n){i=e.chartData&&e.chartData[0]&&e.chartData[0].horizontalBarChartdata.x?e.chartData[0].horizontalBarChartdata.x:0,e.chartData[1]={legend:"",horizontalBarChartdata:{x:e.chartData[0].horizontalBarChartdata.y-i,y:e.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=t.props.variant===_t.AbsoluteScale?null:t._getChartDataText(e),o=t._createBars(e,a),l=t._uniqLineText+"_"+n,c=oh(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!e.chartData[0].data,variant:t.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:c.items},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:t._classNames.chartTitle},e.chartTitle&&s.createElement(rh,{className:t._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),r)),e.chartData[0].data&&t._createBenchmark(e),s.createElement(qd,{direction:md.horizontal,className:t._classNames.chartWrapper},s.createElement("svg",{className:t._classNames.chart,"aria-label":e.chartTitle},s.createElement("g",{id:l,key:l,ref:function(n){t._refCallback(n,e.chartData[0].legend)},onClick:function(){var t=e.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),s.createElement(ko,o({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Et.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Sd,{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}))))},e.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},e.prototype._hoverOn=function(t,e){if((!this.state.isCalloutVisible||this.state.legend!==e.legend)&&this._calloutAnchorPoint!==e){var n=St(this._refArray,(function(t){return t.index===e.legend}));this._calloutAnchorPoint=e,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:e.color,legend:e.legend,refSelected:n.refElement,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,barCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}},e.prototype._hoverOff=function(){},e.prototype._getDefaultTextData=function(t){var e=this.props.culture,n=this.props.chartDataMode||"default",r=t.chartData[0],a=r.horizontalBarChartdata.x,i=r.horizontalBarChartdata.y,l=_d(t.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",o({className:this._classNames.chartTitleRight},l),yd(a,e));case"fraction":return s.createElement("div",o({},l),s.createElement("span",{className:this._classNames.chartTitleRight},yd(a,e)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+yd(i,e)));case"percentage":var c="".concat(yd(Math.round(a/i*100),e),"%");return s.createElement("div",o({className:this._classNames.chartTitleRight},l),c)}},e.prototype._createBenchmark=function(t){var e=t.chartData[0].horizontalBarChartdata.y,n=t.chartData[0].data,r={left:"calc("+Math.round((n||0)/e*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},e.prototype._createBars=function(t,e){var n=this,r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],o=[],a=t.chartData.reduce((function(t,e){return t+(e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0)}),0),i=0,l=0,c=0;t.chartData.map((function(t,e){var n=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(l=n/a*100)<0?l=0:l<1&&0!==l&&(l=1),c+=l}));var u=0!==c?c/100:1,d=t.chartData.map((function(e,c){var d=e.color?e.color:r[Math.floor(4*Math.random()+1)],h=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;c>0&&(i+=l),(l=h/a*100)<0?l=0:l<1&&0!==l?l=1/u:l/=u,o.push(i);var p=e.horizontalBarChartdata.x;if(1===c&&n.props.variant===_t.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:c});var f=t.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:c,x:"".concat(n._isRTL?100-o[c]:o[c],"%"),y:n._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(n._isRTL?-4:4,")"),className:n._classNames.barLabel,"aria-hidden":!0},yi(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:c,x:"".concat(n._isRTL?100-o[c]-l:o[c],"%"),y:0,"data-is-focusable":""!==e.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==e.legend?n._hoverOn.bind(n,p,e):void 0,onFocus:""!==e.legend?n._hoverOn.bind(n,p,e):void 0,role:"img","aria-label":n._getAriaLabel(e),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},e}(s.Component),ih=E(ah,(function(t){var e=t.className,n=t.theme,r=t.width,a=t.barHeight,i=t.showTriangle,s=t.variant,l=t.hideLabels,c=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},e],items:{marginBottom:i||s===_t.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:a||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:o(o({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===_t.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Hn.medium,color:n.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:o(o({},n.fonts.small),{fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==_t.AbsoluteScale||l?0:40}}})),sh={host:"ms-HoverCard-host"},lh=function(){function t(e){this._id=t._uniqueId++,this._parent=e,this._eventRecords=[]}return t.raise=function(e,n,r,o){var a;if(t._isElement(e)){if("undefined"!=typeof document&&document.createEvent){var i=document.createEvent("HTMLEvents");i.initEvent(n,o||!1,!0),ne(i,r),a=e.dispatchEvent(i)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);e.fireEvent("on"+n,s)}}else for(;e&&!1!==a;){var l=e.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],h=0;!1!==a&&h<d.length;h++){var p=d[h];p.objectCallback&&(a=p.objectCallback.call(p.parent,r))}e=o?e.parent:null}return a},t.isObserved=function(t,e){var n=t&&t.__events__;return!!n&&!!n[e]},t.isDeclared=function(t,e){var n=t&&t.__declaredEvents;return!!n&&!!n[e]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,e,n){for(var r in e)e.hasOwnProperty(r)&&this.on(t,r,e[r],n)},t.prototype.on=function(e,n,r,o){var a=this;if(n.indexOf(",")>-1)for(var i=n.split(/[ ,]+/),s=0;s<i.length;s++)this.on(e,i[s],r,o);else{var l=this._parent,c={target:e,eventName:n,parent:l,callback:r,options:o};if((i=e.__events__=e.__events__||{})[n]=i[n]||{count:0},i[n][this._id]=i[n][this._id]||[],i[n][this._id].push(c),i[n].count++,t._isElement(e)){var u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!a._isDisposed){var n;try{if(!1===(n=r.apply(l,t))&&t[0]){var o=t[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,e.addEventListener?e.addEventListener(n,u,o):e.attachEvent&&e.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!a._isDisposed)return r.apply(l,t)};this._eventRecords.push(c)}},t.prototype.off=function(t,e,n,r){for(var o=0;o<this._eventRecords.length;o++){var a=this._eventRecords[o];if(!(t&&t!==a.target||e&&e!==a.eventName||n&&n!==a.callback||"boolean"==typeof r&&r!==a.options)){var i=a.target.__events__,s=i[a.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(a),1)):(s.count-=l.length,delete i[a.eventName][this._id]),s.count||delete i[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(o--,1)}}},t.prototype.raise=function(e,n,r){return t.raise(this._parent,e,n,r)},t.prototype.declare=function(t){var e=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)e[t]=!0;else for(var n=0;n<t.length;n++)e[t[n]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}($d||($d={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Qd||(Qd={}));var ch,uh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function dh(t){var e=(0,s.useRef)();return(0,s.useEffect)((function(){e.current=t})),e.current}function hh(t,e){var n=s.useRef(e);return n.current||(n.current=xt(t)),n.current}function ph(t){var e=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return xo((function(){e.current=t}),[t]),Rr((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.current.apply(void 0,t)}}))}!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(ch||(ch={}));var fh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},gh=s.forwardRef((function(t,e){var n,r,a,i=s.useRef(null),l=s.useRef(null),c=s.useRef(null),u=Re(i,e),d=function(){var t;return null===(t=s.useContext(We).window)||void 0===t?void 0:t.document}(),h=null===(n=dh(!1))||void 0===n||n,p=Yt(fh,t),f=Rr({hasFocus:!1,focusStackId:hh("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,k=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(t){t!==l.current&&t!==c.current&&Wt(t)}),[]),D=ph((function(){if(i.current){var t=f.previouslyFocusedElementInTrapZone;if(x&&t&&At(i.current,t))w(t);else{var e=null;if("string"==typeof C)e=i.current.querySelector(C);else if(C)e=C(i.current);else if(b){var n="string"==typeof b?b:b();e=i.current.querySelector("."+n)}e||(e=Nt(i.current,i.current.firstChild,!1,!1,!1,!0)),e&&w(e)}}})),T=function(t){if(!v&&i.current){var e,n=t===f.hasFocus?(void 0===(e=!1)&&(e=!0),Ft(i.current,c.current,e,!1,!0,!0,!1,!0)):function(t,e,n,r){return void 0===r&&(r=!0),Nt(t,e,r,!1,!1,!0,!1,!0)}(i.current,l.current,0,!1);n&&(n===l.current||n===c.current?D():n.focus())}},M=ph((function(t){if(gh.focusStack=gh.focusStack.filter((function(t){return f.focusStackId!==t})),d){var e=d.activeElement;E||"function"!=typeof(null==t?void 0:t.focus)||!At(i.current,e)&&e!==d.body||w(t)}})),P=ph((function(t){if(!v&&f.focusStackId===gh.focusStack.slice(-1)[0]){var e=t.target;e&&!At(i.current,e)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return s.useEffect((function(){var t=[];return y&&t.push(zt(window,"focus",P,!0)),L||t.push(zt(window,"click",P,!0)),function(){t.forEach((function(t){return t()}))}}),[y,L]),s.useEffect((function(){if(!v&&(h||y)&&i.current){gh.focusStack.push(f.focusStackId);var t=p.elementToFocusOnDismiss||d.activeElement;return _||At(i.current,t)||D(),function(){return M(t)}}}),[y,v]),s.useEffect((function(){if(!v&&k)return Ve(i.current)}),[v,k,i]),r=function(){delete f.previouslyFocusedElementInTrapZone},(a=s.useRef(r)).current=r,s.useEffect((function(){return function(){var t;null===(t=a.current)||void 0===t||t.call(a)}}),[]),function(t,e,n){s.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return e},focus:n}}),[n,e])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",o({"aria-labelledby":p.ariaLabelledBy},te(p,Jt),{ref:u,onFocusCapture:function(t){var e;null===(e=p.onFocusCapture)||void 0===e||e.call(p,t),t.target===l.current?T(!0):t.target===c.current&&T(!1),f.hasFocus=!0,t.target!==t.currentTarget&&t.target!==l.current&&t.target!==c.current&&(f.previouslyFocusedElementInTrapZone=t.target)},onBlurCapture:function(t){var e;null===(e=p.onBlurCapture)||void 0===e||e.call(p,t);var n=t.relatedTarget;null===t.relatedTarget&&(n=d.activeElement),At(i.current,n)||(f.hasFocus=!1)}}),s.createElement("div",o({},A,{ref:l})),g,s.createElement("div",o({},A,{ref:c})))}));gh.displayName="FocusTrapZone",gh.focusStack=[];var mh,vh=function(t){return s.createElement(ko,o({},t),s.createElement(gh,o({disabled:t.hidden},t.focusTrapProps),t.children))},_h=function(t){var e=t.gapSpace,n=void 0===e?0:e,r=t.directionalHint,a=void 0===r?Et.bottomLeftEdge:r,i=t.directionalHintFixed,l=t.targetElement,c=t.firstFocus,u=t.trapFocus,d=t.onLeave,h=t.className,p=t.finalHeight,f=t.content,g=t.calloutProps,m=o(o(o({},te(t,Jt)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:i,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,u?s.createElement(vh,o({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(ko,o({},m),f))},yh=ht(),xh=function(t){function e(e){var n=t.call(this,e)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(t){t.which===Ie&&n.props.onLeave&&n.props.onLeave(t)},n._onRenderCompactCard=function(){return s.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var t=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=t&&n.setState({needsScroll:!0})}))},n._async=new Oe(n),Ld(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(e,t),e.prototype.componentDidMount=function(){this._checkNeedsScroll()},e.prototype.componentWillUnmount=function(){this._async.dispose()},e.prototype.render=function(){var t=this.props,e=t.styles,n=t.compactCardHeight,r=t.expandedCardHeight,a=t.theme,i=t.mode,l=t.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=n+r;this._classNames=yh(e,{theme:a,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:i===ch.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(_h,o({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},e.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},e}(s.Component),bh=E(xh,(function(t){var e,n=t.theme,r=t.needsScroll,o=t.expandedCardFirstFrameRendered,a=t.compactCardHeight,i=t.expandedCardHeight,s=t.className,l=n.palette,c=ar(uh,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(e={},e[Un]={border:"1px solid WindowText"},e)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:a}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:i}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ch={root:"ms-PlainCard-root"},Sh=ht(),Eh=function(t){function e(e){var n=t.call(this,e)||this;return n._onKeyDown=function(t){t.which===Ie&&n.props.onLeave&&n.props.onLeave(t)},Ld(n),n}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.styles,n=t.theme,r=t.className;this._classNames=Sh(e,{theme:n,className:r});var a=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(_h,o({},this.props,{content:a,className:this._classNames.root}))},e}(s.Component),Lh=E(Eh,(function(t){var e,n=t.theme,r=t.className;return{root:[ar(Ch,n).root,{pointerEvents:"auto",selectors:(e={},e[Un]={border:"1px solid WindowText"},e)},r]}}),void 0,{scope:"PlainCard"}),kh=ht(),Ah=function(t){function e(e){var n=t.call(this,e)||this;return n._hoverCard=s.createRef(),n.dismiss=function(t){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),t?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(t){n._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===t.type&&(n._currentMouseTarget=t.currentTarget),n._executeCardOpen(t))},n._executeCardOpen=function(t){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:ch.compact,openMode:"keydown"===t.type?$d.hotKey:$d.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(t,e){if(t){if(!(e instanceof MouseEvent))return;if("keydown"===e.type&&e.which!==Ie)return;n.props.sticky||n._currentMouseTarget!==e.currentTarget&&e.which!==Ie||n.dismiss(!0)}else{if(n.props.sticky&&!(e instanceof MouseEvent)&&e.nativeEvent instanceof MouseEvent&&"mouseleave"===e.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:ch.compact,openMode:$d.hover})},n._instantOpenAsExpanded=function(t){n._async.clearTimeout(n._dismissTimerId),n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ch.expanded}}))},n._setEventListeners=function(){var t=n.props,e=t.trapFocus,r=t.instantOpenOnClick,o=t.eventListenerTarget,a=o?n._getTargetElement(o):n._getTargetElement(n.props.target),i=n._nativeDismissEvent;a&&(n._events.on(a,"mouseenter",n._cardOpen),n._events.on(a,"mouseleave",i),e?n._events.on(a,"keydown",n._cardOpen):(n._events.on(a,"focus",n._cardOpen),n._events.on(a,"blur",i)),r?n._events.on(a,"click",n._instantOpenAsExpanded):(n._events.on(a,"mousedown",i),n._events.on(a,"keydown",i)))},Ld(n),n._async=new Oe(n),n._events=new lh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:ch.compact,openMode:$d.hover},n}return r(e,t),e.prototype.componentDidMount=function(){this._setEventListeners()},e.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},e.prototype.componentDidUpdate=function(t,e){var n=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),e.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:ch.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ch.compact}),this.props.onCardHide&&this.props.onCardHide()))},e.prototype.render=function(){var t=this.props,e=t.expandingCardProps,n=t.children,r=t.id,a=t.setAriaDescribedBy,i=void 0===a||a,l=t.styles,c=t.theme,u=t.className,d=t.type,h=t.plainCardProps,p=t.trapFocus,f=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||xt("hoverCard");this._classNames=kh(l,{theme:c,className:u});var x=o(o({},te(this.props,Jt)),{id:y,trapFocus:!!p,firstFocus:f||_===$d.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=o(o(o({},e),x),{mode:v}),C=o(o({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===Qd.expanding?s.createElement(bh,o({},b)):s.createElement(Lh,o({},C))))},e.prototype._getTargetElement=function(t){switch(typeof t){case"string":return et().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},e.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},e.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Qd.expanding},e}(s.Component),wh=E(Ah,(function(t){var e=t.className,n=t.theme;return{host:[ar(sh,n).host,e]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(mh||(mh={}));var Dh=function(t){var e;void 0===t&&(e={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}});var n,r=t;function a(t,e){var n=r.getCachedMeasurement(t);if(void 0!==n)return n;var o=e();return r.addMeasurementToCache(t,o),o}function i(t,e,o){for(var i=t,s=a(t,o);s>n;){var l=e(i);if(void 0===l)return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};i=l}return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,e,s,l){if(void 0!==l||void 0!==e.dataToMeasure){if(l){if(n&&e.renderedData&&!e.dataToMeasure)return o(o({},e),function(t,e,r,a){var i;return i=t>n?a?{resizeDirection:"grow",dataToMeasure:a(r)}:{resizeDirection:"shrink",dataToMeasure:e}:{resizeDirection:"shrink",dataToMeasure:r},n=t,o(o({},i),{measureContainer:!1})}(l,t.data,e.renderedData,t.onGrowData));n=l}var c=o(o({},e),{measureContainer:!1});return e.dataToMeasure&&(c="grow"===e.resizeDirection&&t.onGrowData?o(o({},c),function(t,e,s,l){for(var c=t,u=a(t,s);u<n;){var d=e(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return o({resizeDirection:"shrink"},i(c,l,s))}(e.dataToMeasure,t.onGrowData,s,t.onReduceData)):o(o({},c),i(e.dataToMeasure,t.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==r.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:o({},t),resizeDirection:"grow",measureContainer:!0}}}},Th=s.createContext({isMeasured:!1}),Mh={position:"fixed",visibility:"hidden"},Ph={position:"relative"};function Fh(t,e){var n;switch(e.type){case"resizeData":return o({},e.value);case"dataToMeasure":return o(o({},t),{dataToMeasure:e.value,resizeDirection:"grow",measureContainer:!0});default:return o(o({},t),((n={})[e.type]=e.value,n))}}var Nh={isMeasured:!0},Vh=s.forwardRef((function(t,e){var n=s.useRef(null),r=Re(n,e),a=function(t,e){var n=Rr(Dh),r=s.useRef(null),a=s.useRef(null),i=s.useRef(!1),l=He(),c=function(t,e,n){var r=Rr((function(){return e.getInitialResizeGroupState(t.data)})),a=s.useReducer(Fh,r),i=a[0],l=a[1];s.useEffect((function(){l({type:"dataToMeasure",value:t.data})}),[t.data]);var c=s.useRef(r);return c.current=o({},i),[c,s.useCallback((function(t){t&&l({type:"resizeData",value:t})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(t,n,e),u=c[0],d=c[1],h=c[2];s.useEffect((function(){var e;u.current.renderedData&&(i.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,u.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var o=void 0;if(u.current.measureContainer&&e.current){var s=e.current.getBoundingClientRect();o=t.direction===mh.vertical?s.height:s.width}var l=n.getNextState(t,u.current,(function(){var e=i.current?a:r;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===mh.vertical?n.height:n.width}),o);d(l)}),e.current)})),Be(ze(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!i.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,r,a,p,f]}(t,n),i=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];s.useImperativeHandle(t.componentRef,(function(){return{remeasure:c}}),[c]);var f=t.className,g=t.onRenderData,m=te(t,Jt,["data"]);return s.createElement("div",o({},m,{className:f,ref:r}),s.createElement("div",{style:Ph},h&&!p&&s.createElement("div",{style:Mh,ref:d},s.createElement(Th.Provider,{value:Nh},g(i))),s.createElement("div",{ref:u,style:p?Mh:void 0,"data-automation-id":"visibleContent"},p?g(i):l&&g(l))))}));Vh.displayName="ResizeGroupBase";var Ih,Oh=Vh;!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"}(Ih||(Ih={}));var Hh=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,e){void 0===e&&(e=!1);var n=t;e||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(e?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=e?Ih.PERSISTED_KEYTIP_ADDED:Ih.KEYTIP_ADDED;lh.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(t,e){var n=this.addParentOverflow(t),r=this._getUniqueKtp(n,e),o=this.keytips[e];o&&(r.keytip.visible=o.keytip.visible,this.keytips[e]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||lh.raise(this,Ih.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(t,e,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[e]:delete this.keytips[e],!n&&delete this.sequenceMapping[t.keySequences.toString()];var r=n?Ih.PERSISTED_KEYTIP_REMOVED:Ih.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||lh.raise(this,r,{keytip:t,uniqueID:e})},t.prototype.enterKeytipMode=function(){lh.raise(this,Ih.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){lh.raise(this,Ih.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(e){return t.keytips[e].keytip}))},t.prototype.addParentOverflow=function(t){var e=i([],t.keySequences,!0);if(e.pop(),0!==e.length){var n=this.sequenceMapping[e.toString()];if(n&&n.overflowSetSequence)return o(o({},t),{overflowSetSequence:n.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,e){lh.raise(this,Ih.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:e})},t.prototype._getUniqueKtp=function(t,e){return void 0===e&&(e=xt()),{keytip:o({},t),uniqueID:e}},t._instance=new t,t}(),Bh=function(t,e,n){for(var r=0,o=t;r<o.length;r++){var a=o[r];n[e.register(a,!0)]=a}},Rh=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];t.unregister(e[o],o,!0),delete e[o]}},Wh=function(t){var e=Hh.getInstance(),n=t.className,r=t.overflowItems,a=t.keytipSequences,i=t.itemSubMenuProvider,l=t.onRenderOverflowButton,c=Rr({}),u=s.useCallback((function(t){return i?i(t):t.subMenuProps?t.subMenuProps.items:void 0}),[i]),d=s.useMemo((function(){var t=[],n=[];return a?null==r||r.forEach((function(r){var i,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(r)?(l.onExecute=e.menuExecute.bind(e,a,null===(i=null==r?void 0:r.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,t.push(l);var c=o(o({},r),{keytipProps:o(o({},s),{overflowSetSequence:a})});null==n||n.push(c)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:t}}),[r,u,e,a]),h=d.modifiedOverflowItems;return function(t,e,n){var r=dh(t);s.useEffect((function(){r&&(Rh(n,r),Bh(e,n,t))})),s.useEffect((function(){return Bh(e,n,t),function(){Rh(n,t)}}),[])}(c,d.keytipsToRegister,e),s.createElement("div",{className:n},l(h))},zh=ht(),Yh=s.forwardRef((function(t,e){var n=s.useRef(null),r=Re(n,e);!function(t,e){s.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,n){var r=!1;return e.current&&(r=Pt(e.current,n)),r},focusElement:function(t){var n=!1;return!!t&&(e.current&&At(e.current,t)&&(t.focus(),n=document.activeElement===t),n)}}}),[e])}(t,n);var a=t.items,i=t.overflowItems,l=t.className,c=t.styles,u=t.vertical,d=t.role,h=t.overflowSide,p=void 0===h?"end":h,f=t.onRenderItem,g=zh(c,{className:l,vertical:u}),m=!!i&&i.length>0;return s.createElement("div",o({},te(t,Jt),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(Wh,o({},t,{className:g.overflowButton})),a&&a.map((function(t,e){return s.createElement("div",{className:g.item,key:t.key,role:"none"},f(t))})),"end"===p&&m&&s.createElement(Wh,o({},t,{className:g.overflowButton})))}));Yh.displayName="OverflowSet";var Uh,qh={flexShrink:0,display:"inherit"},Xh=E(Yh,(function(t){var e=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},e],item:["ms-OverflowSet-item",qh],overflowButton:["ms-OverflowSet-overflowButton",qh]}}),void 0,{scope:"OverflowSet"}),jh=((Uh={})["".concat(pd[pd.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Uh["".concat(pd[pd.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Uh["".concat(pd[pd.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Uh["".concat(pd[pd.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Uh["".concat(pd[pd.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Uh["".concat(pd[pd.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Uh["".concat(pd[pd.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Uh["".concat(pd[pd.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Uh["".concat(fd[fd.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Uh),Kh=function(t){var e=t.svgProps,n=t.pathProps,r=t.shape,a=t.classNameForNonSvg;return-1===Object.keys(jh).indexOf(r)?s.createElement("div",{className:a}):s.createElement("svg",o({width:14,height:14,viewBox:"-1 -1 14 14"},e,{transform:"rotate(".concat(r===pd[pd.diamond]?45:r===pd[pd.pyramid]?180:0,", 0, 0)")}),s.createElement("path",o({d:jh[r]},n)))},Gh=ht(),Zh=function(t){function e(e){var n=t.call(this,e)||this;return n._isLegendSelected=!1,n._onRenderData=function(t){var e=n.props,r=e.overflowProps,a=e.allowFocusOnLegends,i=void 0===a||a,l=e.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(qd,o({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),s.createElement(Xh,o({items:t.primary,overflowItems:t.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:o(o({},u),null==r?void 0:r.styles)})))},n._onReduceData=function(t){if(0!==t.primary.length){var e=i(i([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:e}}},n._onGrowData=function(t){if(0!==t.overflow.length){var e=t.overflow.slice(1);return{primary:i(i([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:e}}},n._canSelectMultipleLegends=function(t){var e=o({},n.state.selectedLegends);e[t.title]?delete e[t.title]:(e[t.title]=!0,Object.keys(e).length===n.props.legends.length&&(e={})),n.setState({selectedLegends:e})},n._canSelectOnlySingleLegend=function(t){n.state.selectedLegend===t.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.title})},n._onClick=function(t){if(t.action){var e=n.props.canSelectMultipleLegends;void 0!==e&&e?n._canSelectMultipleLegends(t):n._canSelectOnlySingleLegend(t),t.action()}},n._onRenderCompactCard=function(t){var e=n.props,r=e.allowFocusOnLegends,a=void 0===r||r,i=e.className,l=e.styles,c=e.theme,u=e.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=Gh(l,{theme:c,className:i});return t.renderData.forEach((function(t,e){var r=n._renderButton(t,e,!0);h.push(r)})),s.createElement(qd,o({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:md.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(t){var e=n.props.allowFocusOnLegends,r=void 0===e||e,a=[];t.forEach((function(t,e){a.push({key:e.toString(),name:t.title,onClick:t.action})}));var i={renderData:t},l=n.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=Gh(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:i},g=h||"more";return s.createElement(wh,{type:Qd.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var e=St(t,(function(t){return t.title===n.state.activeLegend}));e&&(n.setState({activeLegend:""}),e.onMouseOutAction&&e.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",o({className:p.overflowIndicationTextStyle,ref:function(t){return n._hoverCardRef=t}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":"".concat(a.length," ").concat(g)},{"data-is-focusable":r}),a.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(t){t.hoverAction&&(n.setState({activeLegend:t.title}),t.hoverAction())},n._onLeave=function(t){t.onMouseOutAction&&(n.setState({activeLegend:""}),t.onMouseOutAction())},n._renderButton=function(t,e,r){var a=n.props.allowFocusOnLegends,i=void 0===a||a,l={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},c=n._getColor(l.title,l.color),u=n.props,d=u.theme,h=u.className,p=u.styles,f=u.canSelectMultipleLegends,g=void 0!==f&&f,m=Gh(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,c);return s.createElement("button",o({},i&&{"aria-selected":g?!!n.state.selectedLegends[l.title]:n.state.selectedLegend===l.title,role:"option","aria-label":"".concat(l.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&o({},t.nativeButtonProps),{key:e,className:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":i}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(e,t),e.prototype.render=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Gh(r,{theme:e,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):s.createElement(Oh,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},e.prototype._generateData=function(){var t=this,e=this.props.allowFocusOnLegends,n=void 0===e||e;return{primary:this.props.legends.map((function(e,r){return o(o({},n&&{nativeButtonProps:te(e,Qt,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":r+1}),{title:e.title,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,color:e.color,shape:e.shape,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity,key:r})})),overflow:[]}},e.prototype._getShape=function(t,e,n){var r={className:t.shape},o={fill:n,strokeWidth:2,stroke:e.color};return s.createElement(Kh,{svgProps:r,pathProps:o,shape:e.shape,classNameForNonSvg:t.rect})},e.prototype._getColor=function(t,e){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===t||this.state.selectedLegends[t]?e:n.white:this.state.activeLegend===t||""===this.state.activeLegend?e:n.white},e}(s.Component),$h=E(Zh,(function(t){var e,n,r=t.className,a=t.theme,i=t.isLineLegendInBarChart,s=void 0!==i&&i,l=a,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:a.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[jn(a,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(e={},e[Un]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===c.white?"0.6":""},e),width:"12px",height:s?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==a?void 0:a.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===c.white?"0.6":t.opacity?t.opacity:"",selectors:(n={},n[Un]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},n)},text:o(o({},u.small),{lineHeight:"16px",color:null==a?void 0:a.semanticColors.bodyText,opacity:t.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:c.black},overflowIndicationTextStyle:[jn(a,d),o(o({cursor:"pointer",color:null==a?void 0:a.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[jn(a,d)]}}}}));function Qh(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jh(t){return function(){return t}}function tp(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ep(t){return t}Array.prototype.slice;var np=Math.abs,rp=Math.atan2,op=Math.cos,ap=Math.max,ip=Math.min,sp=Math.sin,lp=Math.sqrt,cp=1e-12,up=Math.PI,dp=up/2,hp=2*up;function pp(t){return t>=1?dp:t<=-1?-dp:Math.asin(t)}function fp(){var t=ep,e=tp,n=null,r=Jh(0),o=Jh(hp),a=Jh(0);function i(i){var s,l,c,u,d,h=(i=Qh(i)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(hp,Math.max(-hp,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,a.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+t(i[s],s,i))>0&&(p+=d);for(null!=e?f.sort((function(t,n){return e(g[t],g[n])})):null!=n&&f.sort((function(t,e){return n(i[t],i[e])})),s=0,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:i[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return i.value=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),i):t},i.sortValues=function(t){return arguments.length?(e=t,n=null,i):e},i.sort=function(t){return arguments.length?(n=t,e=null,i):n},i.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jh(+t),i):r},i.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jh(+t),i):o},i.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Jh(+t),i):a},i}var gp=Math.PI,mp=2*gp,vp=1e-6,_p=mp-vp;function yp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xp(){return new yp}yp.prototype=xp.prototype={constructor:yp,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-t,l=r-e,c=a-t,u=i-e,d=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>vp)if(Math.abs(u*s-l*c)>vp&&o){var h=n-a,p=r-i,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((gp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>vp&&(this._+="L"+(t+y*c)+","+(e+y*u)),this._+="A"+o+","+o+",0,0,"+ +(u*h>c*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,o,a){t=+t,e=+e;var i=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+i,c=e+s,u=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vp||Math.abs(this._y1-c)>vp)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%mp+mp),d>_p?this._+="A"+n+","+n+",0,1,"+u+","+(t-i)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vp&&(this._+="A"+n+","+n+",0,"+ +(d>=gp)+","+u+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var bp=xp;function Cp(t){return t.innerRadius}function Sp(t){return t.outerRadius}function Ep(t){return t.startAngle}function Lp(t){return t.endAngle}function kp(t){return t&&t.padAngle}function Ap(t,e,n,r,o,a,i){var s=t-n,l=e-r,c=(i?a:-a)/lp(s*s+l*l),u=c*l,d=-c*s,h=t+u,p=e+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-a,C=h*g-f*p,S=(y<0?-1:1)*lp(ap(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,k=(C*y+_*S)/x,A=(-C*_+y*S)/x,w=E-m,D=L-v,T=k-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=k,L=A),{cx:E,cy:L,x01:-u,y01:-d,x11:E*(o/b-1),y11:L*(o/b-1)}}function wp(){var t=Cp,e=Sp,n=Jh(0),r=null,o=Ep,a=Lp,i=kp,s=null;function l(){var l,c,u,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=o.apply(this,arguments)-dp,f=a.apply(this,arguments)-dp,g=np(f-p),m=f>p;if(s||(s=l=bp()),h<d&&(c=h,h=d,d=c),h>cp)if(g>hp-cp)s.moveTo(h*op(p),h*sp(p)),s.arc(0,0,h,p,f,!m),d>cp&&(s.moveTo(d*op(f),d*sp(f)),s.arc(0,0,d,f,p,m));else{var v,_,y=p,x=f,b=p,C=f,S=g,E=g,L=i.apply(this,arguments)/2,k=L>cp&&(r?+r.apply(this,arguments):lp(d*d+h*h)),A=ip(np(h-d)/2,+n.apply(this,arguments)),w=A,D=A;if(k>cp){var T=pp(k/d*sp(L)),M=pp(k/h*sp(L));(S-=2*T)>cp?(b+=T*=m?1:-1,C-=T):(S=0,b=C=(p+f)/2),(E-=2*M)>cp?(y+=M*=m?1:-1,x-=M):(E=0,y=x=(p+f)/2)}var P=h*op(y),F=h*sp(y),N=d*op(C),V=d*sp(C);if(A>cp){var I,O=h*op(x),H=h*sp(x),B=d*op(b),R=d*sp(b);if(g<up&&(I=function(t,e,n,r,o,a,i,s){var l=n-t,c=r-e,u=i-o,d=s-a,h=d*l-u*c;if(!(h*h<cp))return[t+(h=(u*(e-a)-d*(t-o))/h)*l,e+h*c]}(P,F,B,R,O,H,N,V))){var W=P-I[0],z=F-I[1],Y=O-I[0],U=H-I[1],q=1/sp(((u=(W*Y+z*U)/(lp(W*W+z*z)*lp(Y*Y+U*U)))>1?0:u<-1?up:Math.acos(u))/2),X=lp(I[0]*I[0]+I[1]*I[1]);w=ip(A,(d-X)/(q-1)),D=ip(A,(h-X)/(q+1))}}E>cp?D>cp?(v=Ap(B,R,P,F,h,D,m),_=Ap(O,H,N,V,h,D,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),D<A?s.arc(v.cx,v.cy,D,rp(v.y01,v.x01),rp(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,D,rp(v.y01,v.x01),rp(v.y11,v.x11),!m),s.arc(0,0,h,rp(v.cy+v.y11,v.cx+v.x11),rp(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,D,rp(_.y11,_.x11),rp(_.y01,_.x01),!m))):(s.moveTo(P,F),s.arc(0,0,h,y,x,!m)):s.moveTo(P,F),d>cp&&S>cp?w>cp?(v=Ap(N,V,O,H,d,-w,m),_=Ap(P,F,B,R,d,-w,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<A?s.arc(v.cx,v.cy,w,rp(v.y01,v.x01),rp(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,w,rp(v.y01,v.x01),rp(v.y11,v.x11),!m),s.arc(0,0,d,rp(v.cy+v.y11,v.cx+v.x11),rp(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,w,rp(_.y11,_.x11),rp(_.y01,_.x01),!m))):s.arc(0,0,d,C,b,m):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-up/2;return[op(r)*n,sp(r)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Jh(+t),l):n},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Jh(+t),l):r},l.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jh(+t),l):o},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Jh(+t),l):a},l.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:Jh(+t),l):i},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}var Dp=function(t){var e=t.color,n=t.href,r=t.theme;return{root:{fill:e,cursor:n?"pointer":"default",stroke:zn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}},Tp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.currentRef=s.createRef(),e._isRTL=lt(),e._hoverOff=function(){e.props.hoverLeaveCallback()},e._onBlur=function(){e.props.onBlurCallback()},e._getAriaLabel=function(){var t,n=e.props.data.data,r=n.xAxisCalloutData||n.legend,o=n.yAxisCalloutData||n.data||0;return(null===(t=n.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},e._renderArcLabel=function(t){var n=e.props,r=n.arc,o=n.data,a=n.innerRadius,i=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue;if(n.hideLabels||Math.abs(o.endAngle-o.startAngle)<Math.PI/12)return null;var u=r.centroid(o),d=u[0],h=u[1],p=Math.sqrt(d*d+h*h),f=Math.max(a,i)+2,g=(o.startAngle+o.endAngle)/2,m=o.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==e._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},l?_i(".0%")(0===c?0:m/c):yi(m<1e3?".2~":".1",m)(m))},e}return r(e,t),e.getDerivedStateFromProps=function(t){return Mp(t),null},e.prototype.updateChart=function(t){Mp(t)},e.prototype.render=function(){var t,e=this.props,n=e.arc,r=e.href,o=e.focusedArcId,a=ht()(Dp,{color:this.props.color,href:r,theme:this.props.theme}),i=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!o&&o===i&&s.createElement("path",{id:i+"focusRing",d:n(this.props.focusData),className:a.focusRing}),s.createElement("path",{id:i,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,i),className:a.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(a.arcLabel))},e.prototype._onFocus=function(t,e){this.props.onFocusCallback(t,e,this.currentRef.current)},e.prototype._hoverOn=function(t,e){e.persist(),this.props.hoverOnCallback(t,e)},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={arc:wp()},e}(s.Component);function Mp(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Pp=function(t){var e,n=t.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(e={},e[qn]={fill:"rgb(179, 179, 179)"},e)}}},Fp=ht(),Np=function(t){function e(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e,r,o){var a=t&&t.data&&t.data.color;return s.createElement(Tp,{key:e,data:t,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:o,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(t,e,r){n.props.onFocusCallback(t,e,r)},n._computeTotalValue=function(){var t=0;return n.props.data.forEach((function(e){t+=e.data})),t},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=fp().sort(null).value((function(t){return t.data})).padAngle(0),n}return r(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=this._pieForFocusRing(r),a=n(r),i="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=Fp(Pp,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:i},a.map((function(e,n){return t.arcGenerator(e,n,o[n],t.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},e.prototype.componentDidUpdate=function(){var t,e,n;t=Fp(Pp,{theme:this.props.theme}).insideDonutString,e=2*this.props.innerRadius-5,n=0,Xu(".".concat(t)).each((function(){for(var t=zu(this),r=t.text().split(/\s+/).reverse(),o="",a=[],i=0,s=t.attr("y"),l=t.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em");o=r.pop();)a.push(o),l.text(a.join(" ")+" "),l.node().getComputedTextLength()>e&&a.length>1&&(a.pop(),l.text(a.join(" ")+" "),a=[o],l=t.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em").text(o));n+=1}))},e.prototype._hoverCallback=function(t,e){this.props.hoverOnCallback(t,e)},e.defaultProps={pie:fp().sort(null).value((function(t){return t.data})).padAngle(.02)},e}(s.Component),Vp=ht(),Ip=function(t){function e(e){var n=t.call(this,e)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(t,e,r){n._currentHoverElement=r,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:e,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},n._hoverCallback=function(t,e){n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n._currentHoverElement=e,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:"",emptyChart:!1},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=xt("callout"),n._uniqText=xt("_Pie_"),n}return r(e,t),e.getDerivedStateFromProps=function(t,e){var n,r;return t.width&&t.width!==e._width&&(n={_width:t.width}),t.height&&t.height!==e._height&&(r={_height:t.height-40}),o(o({},n),r)},e.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40});var t=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t,e=this,n=this.props,r=n.data,a=n.hideLegend,i=void 0!==a&&a,l=this.props.theme.palette;this._classNames=Vp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(r,l),u=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-u,this.state._height-d)/2,p=r&&(null===(t=r.chartData)||void 0===t?void 0:t.filter((function(t){return t.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return this.state.emptyChart?s.createElement("div",{id:xt("_DonutChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t},onMouseLeave:this._handleChartMouseLeave},s.createElement(qd,{direction:md.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(t){return e._setViewBox(t)}},s.createElement(Np,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(ko,o({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Et.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!i&&s.createElement("div",{className:this._classNames.legendContainer},c))},e.prototype._setViewBox=function(t){var e,n;if(null!==t){var r=t.parentElement?t.parentElement.clientWidth:this.state._width,o=t.parentElement&&(null===(e=t.parentElement)||void 0===e?void 0:e.offsetHeight)>this.state._height?null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,a="0 0 ".concat(r," ").concat(o);t.setAttribute("viewBox",a)}},e.prototype._createLegends=function(t,e){var n=this,r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=t&&t.chartData.map((function(t,e){var o=t.color?t.color:r[Math.floor(4*Math.random()+1)];return{title:t.legend,color:o,action:function(){n.state.selectedLegend===t.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement($h,o({legends:a,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},e.prototype._hoverLeave=function(){},e.prototype._valueInsideDonut=function(t,e){var n=this._getHighlightedLegend();if(void 0===t||""===n||this.state.showHover)return t;var r=t;return e.map((function(t,e){t.legend===n&&(r=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),r},e.prototype._toLocaleString=function(t){var e=yd(t,this.props.culture);return e?null==e?void 0:e.toString():t},e.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},e.defaultProps={innerRadius:0,hideLabels:!0},e}(s.Component),Op=E(Ip,(function(t){var e=t.className,n=t.width,r=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},e],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}}));function Hp(t){this._context=t}function Bp(t){return new Hp(t)}function Rp(t){return t[0]}function Wp(t){return t[1]}function zp(t,e){var n=Jh(!0),r=null,o=Bp,a=null;function i(i){var s,l,c,u=(i=Qh(i)).length,d=!1;for(null==r&&(a=o(c=bp())),s=0;s<=u;++s)!(s<u&&n(l=i[s],s,i))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(l,s,i),+e(l,s,i));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?Rp:Jh(t),e="function"==typeof e?e:void 0===e?Wp:Jh(e),i.x=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),i):t},i.y=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),i):e},i.defined=function(t){return arguments.length?(n="function"==typeof t?t:Jh(!!t),i):n},i.curve=function(t){return arguments.length?(o=t,null!=r&&(a=o(r)),i):o},i.context=function(t){return arguments.length?(null==t?r=a=null:a=o(r=t),i):r},i}Hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Yp=ht(),Up=function(t){function e(e){var n,r,a,i,l,c,u,d,h,p,f,g,m,v,_=this;return(_=t.call(this,e)||this).minLegendContainerHeight=32,_._isRtl=lt(),_._multiValueCallout=function(t){var e=_._yValueHoverSubCountsExists(t.YValueHover);return s.createElement("div",{className:_._classNames.calloutContentRoot},s.createElement("div",{className:_._classNames.calloutDateTimeContainer,style:e?{marginBottom:"11px"}:{}},s.createElement("div",o({className:_._classNames.calloutContentX},_d(t.xAxisCalloutAccessibilityData,"text",!1)),yd(t.hoverXValue,_.props.culture))),s.createElement("div",{className:_._classNames.calloutInfoContainer,style:e?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,n,r){var a=n+1===r.length,i=t.shouldDrawBorderBottom,l=void 0!==i&&i;return s.createElement("div",o({},_d(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(n),style:o(e?{display:"inline-block"}:{},l&&{borderBottom:"1px solid ".concat(_.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),_._getCalloutContent(t,n,e,a))})),!!t.descriptionMessage&&s.createElement("div",{className:_._classNames.descriptionMessage},t.descriptionMessage)))},_._getData=function(t,e){_.props.getGraphData&&_.props.getGraphData(t,e,_.state.containerHeight-_.state._removalValueForTextTuncate,_.state.containerWidth,_.xAxisElement,_.yAxisElement)},_._onChartLeave=function(){_.props.onChartMouseLeave&&_.props.onChartMouseLeave()},_.state={containerHeight:0,containerWidth:0,_width:_.props.width||600,_height:_.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},_.idForGraph=xt("chart_"),_.margins={top:null!==(r=null===(n=_.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(i=null===(a=_.props.margins)||void 0===a?void 0:a.bottom)&&void 0!==i?i:35,right:_._isRtl?null!==(c=null===(l=_.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(d=null===(u=_.props.margins)||void 0===u?void 0:u.right)&&void 0!==d?d:null===(h=_.props)||void 0===h?void 0:h.secondaryYScaleOptions)?40:20,left:_._isRtl?(null!==(f=null===(p=_.props.margins)||void 0===p?void 0:p.right)&&void 0!==f?f:null===(g=_.props)||void 0===g?void 0:g.secondaryYScaleOptions)?40:20:null!==(v=null===(m=_.props.margins)||void 0===m?void 0:m.left)&&void 0!==v?v:40},_}return r(e,t),e.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=ld(this.props.points,this.yAxisElement);this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},e.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},e.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===Gu.StringAxis){var e=function(t){var e=t.node,n=t.xAxis;if(null!==e&&null!==n){var r=0,o=[];zu(e).call(n).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var e=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===e.length&&(o.push(e[0]),this.setAttribute("transform","translate(".concat(e[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),a=n&&n.height;a>r&&(r=a)}));var a=0;return zu(e).call(n).selectAll(".tick").each((function(){o.length>a&&(this.setAttribute("transform","translate(".concat(o[a],",").concat(r/2,")rotate(-45)")),a+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==e+this.margins.bottom&&e>0&&this.setState({_removalValueForTextTuncate:e+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=ld(this.props.points,this.yAxisElement);this.state.startFromX!==n&&this.setState({startFromX:n})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},e.prototype.render=function(){var t,e,n,r,a,i,l=this,c=this.props,u=c.calloutProps,d=c.points,h=c.chartType,p=c.chartHoverProps,f=c.svgFocusZoneProps,g=c.svgProps,m=c.culture,v=c.dateLocalizeOptions,_=c.timeFormatLocale,y=c.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var x=o({},this.margins);this.props.chartType===Ku.HorizontalBarChartWithAxis&&(this._isRtl?x.right+=this.state.startFromX:x.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(x);var b,C,S,E={domainNRangeValues:dd(d,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,h,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},L={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:hd(d,h,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0};switch(this.props.xAxisType){case Gu.NumericAxis:b=ad(E,this.props.chartType,m);break;case Gu.DateAxis:b=function(t,e,n,r,o,a){var i=t.domainNRangeValues,s=t.xAxisElement,l=t.tickPadding,c=void 0===l?6:l,u=t.xAxistickSize,d=void 0===u?6:u,h=t.xAxisCount,p=void 0===h?6:h,f=Ec().domain([i.dStartValue,i.dEndValue]).range([i.rStartValue,i.rEndValue]),g=Wo(f).tickSize(d).tickPadding(c).ticks(p);if(a)g.tickFormat((function(t,e){return a(t)}));else if(n&&r)g.tickFormat((function(t,e){return t.toLocaleString(n,r)}));else if(o){var m=al(o);g.tickFormat((function(t,e){return function(t,e){var n=e.format(".%L"),r=e.format(":%S"),o=e.format("%I:%M"),a=e.format("%I %p"),i=e.format("%a %d"),s=e.format("%b %d"),l=e.format("%B"),c=e.format("%Y");return(Qu(t)<t?n:td(t)<t?r:nd(t)<t?o:$s(t)<t?a:od(t)<t?Ys(t)<t?i:s:Js(t)<t?l:c)(t)}(t,m)}))}return e.tickValues&&g.tickValues(e.tickValues),void 0===n&&e.tickFormat&&g.tickFormat(sl(e.tickFormat)),s&&zu(s).call(g).selectAll("text").attr("aria-hidden","true"),f}(E,this.props.tickParams,m,v,_,y);break;case Gu.StringAxis:b=function(t,e,n,r){var o=t.domainNRangeValues,a=t.xAxisCount,i=void 0===a?6:a,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,u=void 0===c?10:c,d=t.xAxisPadding,h=void 0===d?.1:d,p=t.xAxisInnerPadding,f=t.xAxisOuterPadding,g=Fc().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Wo(g).tickSize(l).tickPadding(u).ticks(i).tickFormat((function(t,e){return yd(n[e],r)}));return t.xAxisElement&&zu(t.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),g}(E,this.props.tickParams,this.props.datasetForXAxisDomain,m);break;default:b=ad(E,this.props.chartType,m)}if(this._xScale=b,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var k={node:this.xAxisElement,xAxis:b,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},A=b&&function(t){var e=t.node,n=t.xAxis,r=t.noOfCharsToTruncate,o=t.showXAxisLablesTooltip;if(null!==e){var a=zu(e).call(n),i=0,s=[];return a.selectAll(".tick text").each((function(){var t=zu(this),e=t.text(),n="".concat(t.text().slice(0,r),"..."),l=t.text().length,c=t.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=t.attr("y"),f=parseFloat(t.attr("dy")),g=t.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",e);if(o&&l>r)g=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(o&&l<=r)g=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(e);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;a.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),e=t&&t.getBoundingClientRect(),n=e&&e.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),i=(m-_)*v}})),i>0?i:0}}(k);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==A&&this.setState({_removalValueForTextTuncate:A,isRemoveValCalculated:!1})}var w,D,T,M,P,F,N={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Zu.StringAxis?C=function(t,e,n,r,o,a){return r===Ku.HorizontalBarChartWithAxis?function(t,e,n,r,o){var a=t.containerHeight,i=t.tickPadding,s=void 0===i?12:i,l=t.margins,c=t.yAxisTickFormat,u=t.yAxisElement,d=Fc().domain(e).range([a-l.bottom-r/2,l.top+r/2]),h=(n?Ro(d):zo(d)).tickPadding(s).ticks(e);return c&&h.tickFormat(c),u&&zu(u).call(h).selectAll("text"),d}(t,e,n,o):function(t,e,n){var r=t.containerHeight,o=t.tickPadding,a=void 0===o?12:o,i=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,u=void 0===c?0:c,d=Fc().domain(e).range([r-i.bottom,i.top]).padding(u),h=(n?Ro(d):zo(d)).tickPadding(a).tickValues(e).tickSize(0);return s&&h.tickFormat(s),l&&zu(l).call(h).selectAll("text"),d}(t,e,n)}(L,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(t=this.props)||void 0===t?void 0:t.secondaryYScaleOptions)&&(S=id({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===(e=this.props.secondaryYScaleOptions)||void 0===e?void 0:e.yMinValue)||0,yMaxValue:null!==(r=null===(n=this.props.secondaryYScaleOptions)||void 0===n?void 0:n.yMaxValue)&&void 0!==r?r:100,tickPadding:10,maxOfYVal:null!==(i=null===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMaxValue)&&void 0!==i?i:100,yMinMaxValues:hd(d,h),yAxisPadding:this.props.yAxisPadding},this._isRtl,N,h,this.props.barwidth,!0)),C=id(L,this._isRtl,N,h,this.props.barwidth)),this.props.chartType===Ku.HorizontalBarChartWithAxis&&C&&(w=this.yAxisElement,D=C,T=this.props.noOfCharsToTruncate||4,M=this.props.showYAxisLablesTooltip||!1,P=this.state.startFromX,F=this._isRtl,null!==w&&zu(w).call(D).selectAll(".tick text").each((function(){var t=zu(this),e=t.text(),n="".concat(t.text().slice(0,T),"..."),r=t.text().length,o=M?1.5:1,a=t.attr("y"),i=t.attr("x"),s=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",i).attr("y",a).attr("id","BaseSpan").attr("dy",s+"em").attr("data-",e),M&&r>T?t.append("tspan").attr("id","showDots").attr("x",i).attr("y",a).attr("dy",s).attr("dx",o+0+"em").text(n):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",F?P:i).attr("y",a).attr("dx",o+0+"em").text(e)}))),this.props.getAxisData&&this.props.getAxisData(N),this._getData(b,C),this._classNames=Yp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var V,I={width:this.state.containerWidth,height:this.state.containerHeight},O=this.props.children(o(o({},this.state),{xScale:b,yScale:C,yScaleSecondary:S}));return V=this.props.focusZoneDirection===md.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:md.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return l.chartContainer=t},onMouseLeave:this._onChartLeave},s.createElement(qd,o({direction:V},f),s.createElement("svg",o({width:I.width,height:I.height,"aria-label":this.props.chartTitle,style:{display:"block"}},g),s.createElement("g",{ref:function(t){l.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(I.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),s.createElement("g",{ref:function(t){l.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?I.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&s.createElement("g",{ref:function(t){l.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:I.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),O)),!this.props.hideLegend&&s.createElement("div",{ref:function(t){return l.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(ko,o({hidden:!(!this.props.hideTooltip&&u.isCalloutVisible),shouldUpdateWhenHidden:!0},u),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(u),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(Sd,o({XValue:u.XValue,Legend:u.legend,YValue:u.YValue,color:u.color,culture:this.props.culture},p))))},e.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},e.prototype._getCalloutContent=function(t,e,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,i=Yp(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:a}),l=this.props.culture,c=yd(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var u=t.yAxisCalloutData;return s.createElement("div",{style:o},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(u).map((function(t){return s.createElement("div",{key:t,className:i.calloutBlockContainer},s.createElement("div",{className:i.calloutlegendText}," ",yd(t,l)),s.createElement("div",{className:i.calloutContentY},yd(u[t],l)))})))}return s.createElement("div",{style:n?o:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),s.createElement("div",{id:"".concat(e,"_").concat(t.y),className:i.calloutBlockContainer},a&&s.createElement(Kh,{svgProps:{className:i.shapeStyles},pathProps:{fill:t.color},shape:pd[t.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",t.legend),s.createElement("div",{className:i.calloutContentY},yd(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,l)))))},e.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e;if(t.props.hideLegend)e=0;else{var o=t.legendContainer&&getComputedStyle(t.legendContainer);e=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var a=t.props.parentRef?t.props.parentRef:t.chartContainer,i=a.getBoundingClientRect().width,s=a.getBoundingClientRect().height>e?a.getBoundingClientRect().height:350;(n!==i||r!==s-e)&&t.setState({containerWidth:i,containerHeight:s-e})}}))},e}(s.Component),qp=function(){var t,e=d();return!!(null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&e.navigator.userAgent.indexOf("rv:11.0")>-1}(),Xp=E(Up,(function(t){var e,n,r,a,i,s,l,c,u=t.className,d=t.theme,h=t.isRtl,p=t.shouldHighlight,f=t.href,g=t.lineColor,m=void 0===g?"transparent":g,v=t.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[qn]={fill:"rgb(179, 179, 179)"},e)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(a={},a[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},a)},g:[h&&!qp&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[o(o({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(i={},i[Un]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:o(o({},_.small),{lineHeight:"16px",selectors:(s={},s[qn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[o(o({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[qn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[qn]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),jp=nr((function(t){return nr((function(e){var n=nr((function(t){return function(n){return e(n,t)}}));return function(r,o){return t(r,o?n(o):e)}}))}));function Kp(t,e){return jp(t)(e)}var Gp=function(t){if(void 0===t)return 0;var e=0;return"scrollTop"in t?e=t.scrollTop:"scrollY"in t&&(e=t.scrollY),Math.ceil(e)},Zp=function(t,e){"scrollTop"in t?t.scrollTop=e:"scrollY"in t&&t.scrollTo(t.scrollX,e)},$p="spacer-",Qp={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Jp=function(t){return t.getBoundingClientRect()},tf=Jp,ef=Jp,nf=function(t){function e(e){var n=t.call(this,e)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(t,e){return t.items!==n.props.items||t.renderCount!==n.props.renderCount||t.startIndex!==n.props.startIndex||t.version!==n.props.version||!e.hasMounted&&n.props.renderEarly&&c()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(t,e)):e},n._onRenderRoot=function(t){var e=t.rootRef,n=t.surfaceElement,r=t.divProps;return s.createElement("div",o({ref:e},r),n)},n._onRenderSurface=function(t){var e=t.surfaceRef,n=t.pageElements,r=t.divProps;return s.createElement("div",o({ref:e},r),n)},n._onRenderPage=function(t,e){for(var r,i=n.props,l=i.onRenderCell,c=i.onRenderCellConditional,u=i.role,d=t.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=a(t,["page"]),m=void 0===u?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=c?c:l,S=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;c&&!S||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},S))}return s.createElement("div",o({},g),v)},Ld(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Oe(n),n._events=new lh(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(e,t),e.getDerivedStateFromProps=function(t,e){return e.getDerivedStateFromProps(t,e)},Object.defineProperty(e.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),e.prototype.scrollToIndex=function(t,e,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),a=this._allowedRect,i=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,a),u=c.height;if(s=c.itemCount,l<=t&&l+s>t){if(e&&this._scrollElement){for(var d=ef(this._scrollElement),h=Gp(this._scrollElement),p={top:h,bottom:h+d.height},f=t-l,g=0;g<f;++g)i+=e(l+g);var m=i+e(t);switch(n){case 1:return void Zp(this._scrollElement,i);case 2:return void Zp(this._scrollElement,m-d.height);case 3:return void Zp(this._scrollElement,(i+m-d.height)/2)}if(i>=p.top&&m<=p.bottom)return;i<p.top||m>p.bottom&&(i=m-d.height)}return void(this._scrollElement&&Zp(this._scrollElement,i))}i+=u}},e.prototype.getStartItemIndexInView=function(t){for(var e=0,n=this.state.pages||[];e<n.length;e++){var r=n[e];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!t){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var a=0,i=r.startIndex;i<r.startIndex+r.itemCount;i++){if(o=t(i),r.top+a<=this._scrollTop&&this._scrollTop<r.top+a+o)return i;a+=o}}}return 0},e.prototype.componentDidMount=function(){this._scrollElement=ie(this._root.current),this._scrollTop=0,this.setState(o(o({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},e.prototype.componentDidUpdate=function(t,e){var n=this.props,r=this.state;this.state.pagesVersion!==e.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},e.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},e.prototype.shouldComponentUpdate=function(t,e){var n=this.state.pages,r=e.pages,o=!1;if(!e.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&n.length===r.length)for(var a=0;a<n.length;a++){var i=n[a],s=r[a];if(i.key!==s.key||i.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},e.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)},e.prototype.getTotalListHeight=function(){return this._surfaceRect.height},e.prototype.render=function(){for(var t=this.props,e=t.className,n=t.role,r=void 0===n?"list":n,a=t.onRenderSurface,i=t.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=te(this.props,Jt),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=a?Kp(a,this._onRenderSurface):this._onRenderSurface;return(i?Kp(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:o(o({},u),{className:ee("ms-List",e),role:c.length>0?r:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},e.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var e=t.onShouldVirtualize;return!e||e(t)},e.prototype._invalidatePageCache=function(){this._pageCache={}},e.prototype._renderPage=function(t){var e,n=this,r=this.props.usePageCache;if(r&&(e=this._pageCache[t.key])&&e.pageElement)return e.pageElement;var o=this._getPageStyle(t),a=this.props.onRenderPage,i=(void 0===a?this._onRenderPage:a)({page:t,className:"ms-List-page",key:t.key,ref:function(e){n._pageRefs[t.key]=e},style:o,role:"presentation"},this._onRenderPage);return r&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:i}),i},e.prototype._getPageStyle=function(t){var e=this.props.getPageStyle;return o(o({},e?e(t):{}),t.items?{}:{height:t.height})},e.prototype._onFocus=function(t){for(var e=t.target;e!==this._surface.current;){var n=e.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}e=Lt(e)}},e.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},e.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},e.prototype._onAsyncScroll=function(){var t,e;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,e=this._materializedRect,t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right)||this.setState(this._updatePages(this.props,this.state))},e.prototype._onAsyncIdle=function(){var t=this.props,e=t.renderedWindowsAhead,n=t.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,a=Math.min(e,r+1),i=Math.min(n,o+1);a===r&&i===o||(this._requiredWindowsAhead=a,this._requiredWindowsBehind=i,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(e>a||n>i)&&this._onAsyncIdle()},e.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},e.prototype._onAsyncResize=function(){this.forceUpdate()},e.prototype._updatePages=function(t,e){this._requiredRect||this._updateRenderRects(t,e);var n=this._buildPages(t,e),r=e.pages;return this._notifyPageChanges(r,n.pages,this.props),o(o(o({},e),n),{pagesVersion:{}})},e.prototype._notifyPageChanges=function(t,e,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var a={},i=0,s=t;i<s.length;i++)(u=s[i]).items&&(a[u.startIndex]=u);for(var l=0,c=e;l<c.length;l++){var u;(u=c[l]).items&&(a[u.startIndex]?delete a[u.startIndex]:this._onPageAdded(u))}for(var d in a)a.hasOwnProperty(d)&&this._onPageRemoved(a[d])}},e.prototype._updatePageMeasurements=function(t){var e=!1;if(!this._shouldVirtualize())return e;for(var n=0;n<t.length;n++){var r=t[n];r.items&&(e=this._measurePage(r)||e)}return e},e.prototype._measurePage=function(t){var e=!1,n=this._pageRefs[t.key],r=this._cachedPageHeights[t.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(e=t.height!==o.height,t.height=o.height,this._cachedPageHeights[t.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return e},e.prototype._onPageAdded=function(t){var e=this.props.onPageAdded;e&&e(t)},e.prototype._onPageRemoved=function(t){var e=this.props.onPageRemoved;e&&e(t)},e.prototype._buildPages=function(t,e){var n=t.renderCount,r=t.items,a=t.startIndex,i=t.getPageHeight;n=this._getRenderCount(t);for(var s=o({},Qp),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=a+n,f=this._shouldVirtualize(t),g=0===this._estimatedPageHeight&&!i,m=this._allowedRect,v=function(n){var o=_._getPageSpecification(t,n,m),i=o.height,v=o.data,y=o.key;c=o.itemCount;var x,b,C=u+i-1,S=Ct(e.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,E=!m||C>=m.top&&u<=m.bottom,L=!_._requiredRect||C>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(L||E&&S)||!f||h>=n&&h<n+c||n===a){d&&(l.push(d),d=null);var k=Math.min(c,p-n),A=_._createPage(y,r.slice(n,n+k),n,void 0,void 0,v);A.top=u,A.height=i,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(A),L&&_._allowedRect&&(x=s,b={top:u,bottom:C,height:i,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage($p+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-u)+1,d.itemCount+=c;if(u+=C-u+1,g&&f)return"break"},_=this,y=a;y<p&&"break"!==v(y);y+=c);return d&&(d.key=$p+"end",l.push(d)),this._materializedRect=s,o(o({},e),{pages:l,measureVersion:this._measureVersion})},e.prototype._getPageSpecification=function(t,e,n){var r=t.getPageSpecification;if(r){var o=r(e,n),a=o.itemCount,i=void 0===a?this._getItemCountForPage(e,n):a,s=o.height;return{itemCount:i,height:void 0===s?this._getPageHeight(e,n,i):s,data:o.data,key:o.key}}return{itemCount:i=this._getItemCountForPage(e,n),height:this._getPageHeight(e,n,i)}},e.prototype._getPageHeight=function(t,e,n){if(this.props.getPageHeight)return this.props.getPageHeight(t,e,n);var r=this._cachedPageHeights[t];return r?r.height:this._estimatedPageHeight||30},e.prototype._getItemCountForPage=function(t,e){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,e):10)||10},e.prototype._createPage=function(t,e,n,r,o,a,i){void 0===n&&(n=-1),void 0===r&&(r=e?e.length:0),void 0===o&&(o={}),t=t||"page-"+n;var s=this._pageCache[t];return s&&s.page?s.page:{key:t,startIndex:n,itemCount:r,items:e,style:o,top:0,height:0,data:a,isSpacer:i||!1}},e.prototype._getRenderCount=function(t){var e=t||this.props,n=e.items,r=e.startIndex,o=e.renderCount;return void 0===o?n?n.length-r:0:o},e.prototype._updateRenderRects=function(t,e,n){var r=t.renderedWindowsAhead,a=t.renderedWindowsBehind,i=e.pages;if(this._shouldVirtualize(t)){var s=this._surfaceRect||o({},Qp),l=function(t){if(void 0===t)return 0;var e=0;return"scrollHeight"in t?e=t.scrollHeight:"document"in t&&(e=t.document.documentElement.scrollHeight),e}(this._scrollElement),c=Gp(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=tf(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),h=d(this._root.current),p={top:u,left:s.left,bottom:u+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=rf(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=rf(p,a,r),this._visibleRect=p}},e.defaultProps={startIndex:0,onRenderCell:function(t,e,n){return s.createElement(s.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},e}(s.Component);function rf(t,e,n){var r=t.top-e*t.height,o=t.height+(e+n)*t.height;return{top:r,bottom:r+o,height:o,left:t.left,right:t.right,width:t.width}}var of,af=function(t){var e=s.useRef(null);s.useEffect((function(){if(e.current){var n=zu(e.current),r=t.text.split(/\s+/),o=[],a=n.append("tspan"),i=0;return r.forEach((function(e){o.push(e),a.text(o.join(" "));var r=a.node();r&&r.getComputedTextLength()>t.width&&o.length>1&&(i++,o.pop(),a.text(o.join(" ")),o=[e],a=n.append("tspan").text(e).attr("dy",t.lineHeight).attr("x",t.x))})),n.attr("dy",-i*t.lineHeight),function(){n.selectAll("tspan").remove()}}})),t.lineHeight;var n=a(t,["lineHeight"]);return s.createElement("text",o({ref:e},n))},sf=function(t){var e,n=s.useRef(null),r=s.useState(!1),o=r[0],a=r[1],i=null;if(o){var l=t.labelDef.aggregatedIdx.map((function(e){return t.lineDefs[e].onRenderCard})).filter((function(t){return!!t}));l.length>0&&(i=s.createElement(ko,{target:n.current,onDismiss:function(){return a(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(qd,{isCircularNavigation:!0,direction:md.vertical},s.createElement(nf,{items:l,onRenderCell:function(t){return s.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var c=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":t.textColor;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return a(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(af,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:c})),i)},lf=function(t){var e=t.labelWidth?t.labelWidth:105,n=t.chartYTop-20,r=n+7,a=t.scale.range(),i=t.events.map((function(e){return o(o({},e),{x:t.scale(e.date)})}));i.sort((function(t,e){return+t.date-+e.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":t.strokeColor,c=function(t,e){for(var n=[],r=[],o=0,a=t;o<a.length;o++){var i=a[o],s=e(i);-1===n.indexOf(s)&&(r.push(i),n.push(s))}return r}(i,(function(t){return t.date.toString()})).map((function(e,n){return s.createElement("line",{key:n,x1:e.x,x2:e.x,y1:r,y2:t.chartYBottom,stroke:l,strokeDasharray:"8"})})),u=function(t,e,n,r){var o=function(r,o){if(o===t.length)return[];var i=t[o].x,s=i-e;return i<r?[]:o===t.length-1?r<s?[{x:i,anchor:"end",aggregatedIdx:[o]}]:i+e<n?[{x:i,anchor:"start",aggregatedIdx:[o]}]:[]:a(o,r<s?"end":"start")},a=function(r,a){var i="end"===a?t[r].x:t[r].x+e,s=Ct(t,(function(t){return t.x>i&&(t.x-e>=i||t.x+e<n)}),r+1);-1===s&&(s=t.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(i,s);return u.unshift({x:t[r].x,anchor:a,aggregatedIdx:l}),u};return o(r,0)}(i,e+5,a[1],a[0]).map((function(r,a){return s.createElement(sf,o({key:a},{lineDefs:i,labelDef:r,textY:n,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return s.createElement(s.Fragment,null,c,u)},cf={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},uf={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},df={qualitative:uf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},hf=Object.values(uf),pf=Object.values(cf),ff=function(t,e){if(0===t.length)return"";var n=Number(e);return n<t.length?t[n]:t[0]},gf=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var r=hf[(t+e)%hf.length];return ff(r,n)},mf=function(t,e){if(void 0===e&&(e=!1),pf.indexOf(t)>=0){var n=t.split("."),r=n[0],o=n[1],a=df[r][o];return ff(a,e)}return t},vf=ht();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(of||(of={}));var _f=Uo((function(t){return t.x})).left,yf=function(t){function e(e){var n=t.call(this,e)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(t){var e=n.props.allowMultipleShapesForPoints,r=void 0!==e&&e;return t?t.map((function(t,e){var a,i,s;return s=void 0===t.color?gf(e,0,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted):mf(t.color,null===(i=n.props.theme)||void 0===i?void 0:i.isInverted),o(o({},t),{index:r?e:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(t){n.margins=t},n._initializeLineChartData=function(t,e,r,o,a){n._xAxisScale=t,n._yAxisScale=e,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(a,r)},n._handleSingleLegendSelectionAction=function(t){n.state.selectedLegend===t.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(t,null)):(n.setState({selectedLegend:t.legend}),n._handleLegendClick(t,t.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(t,e,r){var o=n.props,a=o.allowMultipleShapesForPoints,i=void 0!==a&&a,s=o.strokeWidth,l=void 0===s?4:s,c=n.state.activePoint;return i?c===t?of.hoverSize:1===e||r?2.5*l:of.invisibleSize:c===t?of.hoverSize:of.invisibleSize},n._getPath=function(t,e,r,o,a,i){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,o,a),u=l?i%Object.keys(vd).length:0,d=vd[u].widthRatio;return function(t,e,n,r){return["M".concat(t-n/2," ").concat(e,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(t+n/2," ").concat(e,"\n M").concat(t-n/2," ").concat(e,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(t+n/2," ").concat(e,"\n "),"M".concat(t-n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e+n/2,"\n Z"),"M".concat(t-n/2," ").concat(e-.2886*n,"\n H ").concat(t+n/2,"\n L").concat(t," ").concat(e+.5774*n," Z"),"M".concat(t," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e,"\n L").concat(t," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.5774*n,"\n L").concat(t+n/2," ").concat(e+.2886*n,"\n L").concat(t-n/2," ").concat(e+.2886*n," Z"),"M".concat(t-.5*n," ").concat(e-.866*n,"\n L").concat(t+.5*n," ").concat(e-.866*n,"\n L").concat(t+n," ").concat(e,"\n L").concat(t+.5*n," ").concat(e+.866*n,"\n L").concat(t-.5*n," ").concat(e+.866*n,"\n L").concat(t-n," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.851*n,"\n L").concat(t+.6884*n," ").concat(e-.2633*n,"\n L").concat(t+.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.6884*n," ").concat(e-.2633*n,"\n Z"),"M".concat(t-.5001*n," ").concat(e-1.207*n,"\n L").concat(t+.5001*n," ").concat(e-1.207*n,"\n L").concat(t+1.207*n," ").concat(e-.5001*n,"\n L").concat(t+1.207*n," ").concat(e+.5001*n,"\n L").concat(t+.5001*n," ").concat(e+1.207*n,"\n L").concat(t-.5001*n," ").concat(e+1.207*n,"\n L").concat(t-1.207*n," ").concat(e+.5001*n,"\n L").concat(t-1.207*n," ").concat(e-.5001*n,"\n Z")][r]}(t,e,c=d>1?c/d:c,u)},n._getPointFill=function(t,e,r,o){var a=n.state.activePoint,i=n.props,s=i.theme;return i.allowMultipleShapesForPoints,a===e?s.palette.white:t},n._createColorFillBars=function(t){var e,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var o=hd(n._points,Ku.LineChart),a=0;a<n._colorFillBars.length;a++){var i=n._colorFillBars[a],l=xt(i.legend.replace(/\W/g,"")),c=mf(i.color,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted);i.applyPattern&&r.push(n._getStripePattern(c,a));for(var u=0;u<i.data.length;u++){var d=i.data[u].startX,h=i.data[u].endX,p=n._legendHighlighted(i.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(i):.1;r.push(s.createElement("rect",{fill:i.applyPattern?"url(#".concat(n._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(o.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return r},n._getStripePattern=function(t,e){return s.createElement("pattern",{id:"".concat(n._colorFillBarPatternId,"_").concat(e),width:16,height:16,key:"".concat(n._colorFillBarPatternId,"_").concat(e),patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},n._checkInGap=function(t,e,n){for(var r=n,o=!1;r<e.length&&t>e[r].endIndex;)r++;return r<e.length&&t>e[r].startIndex&&t<=e[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},n._onMouseOverLargeDataset=function(t,e,r){r.persist();var o=n.props.data.lineChartData,a=n._xAxisScale.invert(qu(document.getElementById(n._rectId),r)[0]),i=_f(o[t].data,a),s=o[t].data[i-1],l=o[t].data[i],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=i;else if(void 0!==s&&void 0===l)c=s.x,u=i-1;else{var d=void 0,h=void 0,p=void 0;switch(gd(o[t].data[0].x,!0)){case Gu.DateAxis:d=new Date(a).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?i:i-1;break;case Gu.NumericAxis:d=a,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?i:i-1}}var f=o[t].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=c instanceof Date?c.toLocaleString():c,_=c instanceof Date?c.getTime():c,y=St(n._calloutPoints,(function(t){return t.x===_})),x=o[t].data[u],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#".concat(n._staticHighlightCircle,"_").concat(t),zu("#".concat(n._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(n._xAxisScale(x.x))).attr("cy","".concat(n._yAxisScale(x.y))).attr("visibility","visibility"),zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(n._xAxisScale(x.x),", ").concat(n._yAxisScale(x.y),")")})).attr("visibility","visibility").attr("y2","".concat(e-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#".concat(n._staticHighlightCircle,"_").concat(t),stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:t})},n._handleFocus=function(t,e,r,o,a){n._uniqueCallOutID=o;var i=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=St(n._calloutPoints,(function(t){return t.x===s}));if(l){var c=n;zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(e),", 0)")})).attr("visibility","visibility"),n._refArray.forEach((function(e){e.index===t&&n.setState({isCalloutVisible:!0,refSelected:e.refElement,hoverXValue:r||""+i,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:a})}))}else n.setState({activePoint:o})},n._handleHover=function(t,e,r,o,a,i,s){s.persist();var l=t instanceof Date?t.toLocaleDateString():t,c=t instanceof Date?t.getTime():t,u=n,d=St(n._calloutPoints,(function(t){return t.x===c}));d?(zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(t),", ").concat(u._yAxisScale(e),")")})).attr("visibility","visibility").attr("y2","".concat(r-u._yAxisScale(e))),n._uniqueCallOutID!==a&&(n._uniqueCallOutID=a,n.setState({isCalloutVisible:!0,refSelected:"#".concat(a),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:a,xAxisCalloutAccessibilityData:i,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:a,nearestCircleToHighlight:null,activeLine:null})},n._getClickHandler=function(t){return t?{onClick:t}:{}},n._handleMouseOut=function(){zu("#".concat(n._verticalLine)).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(t,e){t.onLegendClick&&t.onLegendClick(e)},n._handleMultipleLineLegendSelectionAction=function(t){var e,r=n.state.selectedLegendPoints.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);e=-1===r?i(i([],n.state.selectedLegendPoints,!0),[t],!1):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&e.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():e.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:e,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=e.map((function(t){return t.legend}));n._handleLegendClick(t,o)},n._handleMultipleColorFillBarLegendSelectionAction=function(t){var e,r=n.state.selectedColorBarLegend.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);(e=-1===r?i(i([],n.state.selectedColorBarLegend,!0),[t],!1):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():e.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:e,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=e.map((function(t){return t.legend}));n._handleLegendClick(t,o)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},n._getAriaLabel=function(t,e){var r,o=n._points[t],a=o.data[e],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null,emptyChart:!1},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=sd(n._points)||[],n._circleId=xt("circle"),n._lineId=xt("lineID"),n._borderId=xt("borderID"),n._verticalLine=xt("verticalLine"),n._colorFillBarPatternId=xt("colorFillBarPattern"),n._tooltipId=xt("LineChartTooltipId_"),n._rectId=xt("containerRectLD"),n._staticHighlightCircle=xt("staticHighlightCircle"),e.eventAnnotationProps&&e.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=e.eventAnnotationProps.labelHeight),n}return r(e,t),e.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=sd(this._points)||[])},e.prototype.componentDidMount=function(){var t=!(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);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props,n=e.tickValues,r=e.tickFormat,a=e.eventAnnotationProps,i=e.legendProps,l=e.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=ud(this._points),u=this._points;i&&i.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=sd(u));var d=this._createLegends(this._points),h=o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:n,tickFormat:r};return this.state.emptyChart?s.createElement("div",{id:xt("_LineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Ku.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Gu.DateAxis:Gu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:e.containerHeight,stroke:"#C8C8C8",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?s.createElement("rect",{id:t._rectId,width:e.containerWidth,height:e.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,t._renderedColorFillBars,t.lines),a&&s.createElement(lf,o({},a,{scale:e.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:e.containerHeight-35}))))}}))},e.prototype._createLegends=function(t){var e=this,n=this.props,r=n.legendProps,a=n.allowMultipleShapesForPoints,l=void 0!==a&&a,c=!(!r||!r.canSelectMultipleLegends),u=t.map((function(t){var n=t.color;return o(o({title:t.legend,color:n,action:function(){c?e._handleMultipleLineLegendSelectionAction(t):e._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){e.setState({activeLegend:""})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),l&&{shape:pd[t.index%Object.keys(vd).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(t,n){var r,o=t.legend,a=mf(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:a,action:function(){c?e._handleMultipleColorFillBarLegendSelectionAction(t):e._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){e.setState({activeLegend:""})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:o})},opacity:e._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return s.createElement($h,o({legends:i(i([],u,!0),d,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},c&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},e.prototype._createLines=function(t,e){var n,r,a,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,S,E,L,k,A,w,D=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var M=function(t){var M=[],F=[],N=[],V=P._points[t].legend,I=P._points[t].color,O=P.state.activePoint,H=P.props.theme,B=e-P.margins.bottom+6;if(1===P._points[t].data.length){var R=P._points[t].data[0],W=R.x,z=R.y,Y=R.xAxisCalloutData,U=R.xAxisCalloutAccessibilityData,q="".concat(P._circleId,"_").concat(t);N.push(s.createElement("circle",o({id:q,key:q,r:O===q?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===q?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseOut:P._handleMouseOut,strokeWidth:O===q?4:0,stroke:O===q?I:"",role:"img","aria-label":P._getAriaLabel(t,0),"data-is-focusable":!0,ref:function(t){D._refCallback(t,q)},onFocus:function(){return D._handleFocus(q,W,Y,q,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[t].data[0].onDataPointClick))))}var X=0,j=null!==(r=null===(n=P._points[t].gaps)||void 0===n?void 0:n.sort((function(t,e){return t.startIndex-e.startIndex})))&&void 0!==r?r:[];if(P.props.optimizeLargeData&&P._points[t].data.length>1){for(var K=zp().x((function(t){return D._xAxisScale(t[0])})).y((function(t){return D._yAxisScale(t[1])})).curve(Bp),G="".concat(P._lineId,"_").concat(t),Z="".concat(P._borderId,"_").concat(t),$=(null===(a=P._points[t].lineOptions)||void 0===a?void 0:a.strokeWidth)||P.props.strokeWidth||4,Q=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,J=[],tt=0;tt<P._points[t].data.length;tt++)J.push([P._points[t].data[tt].x instanceof Date?P._points[t].data[tt].x.getTime():P._points[t].data[tt].x,P._points[t].data[tt].y]);if(Q){var et=(null===(l=P._points[t].lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(P._points[t].lineOptions.lineBorderWidth.toString()):0;et>0&&F.push(s.createElement("path",{id:Z,key:Z,d:K(J),fill:"transparent",strokeLinecap:null!==(u=null===(c=P._points[t].lineOptions)||void 0===c?void 0:c.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat($.toString())+et,stroke:(null===(d=P._points[t].lineOptions)||void 0===d?void 0:d.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("path",o({id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(p=null===(h=P._points[t].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==p?p:"round",onMouseMove:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOut:P._handleMouseOut},P._getClickHandler(P._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(V,", series ").concat(t+1," of ").concat(P._points.length," with ").concat(P._points[t].data.length," data points.")})))}else M.push(s.createElement("path",{id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(g=null===(f=P._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==g?g:"round",opacity:.1,role:"img","aria-label":"".concat(V,", series ").concat(t+1," of ").concat(P._points.length," with ").concat(P._points[t].data.length," data points.")}));var nt=null!==P.state.activeLine&&P.state.activeLine===t;N.push(s.createElement("circle",{id:"".concat(P._staticHighlightCircle,"_").concat(t),key:"".concat(P._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:I,visibility:nt?"visibility":"hidden",onMouseMove:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,t,B),onMouseOut:P._handleMouseOut}))}else if(!P.props.optimizeLargeData)for(var rt=function(e){var n=P._checkInGap(e,j,X),r=n.isInGap;X=n.gapIndex;var a="".concat(P._lineId,"_").concat(t,"_").concat(e),i="".concat(P._borderId,"_").concat(t,"_").concat(e),l="".concat(P._circleId,"_").concat(t,"_").concat(e),c=P._points[t].data[e-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=P._points[t].data[e],g=f.x,T=f.y,R=P._getPath(P._xAxisScale(u),P._yAxisScale(d),l,e,!1,P._points[t].index),W=(null===(m=P._points[t].lineOptions)||void 0===m?void 0:m.strokeWidth)||P.props.strokeWidth||4,z=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,Y=P._points[t].hideNonActiveDots&&O!==l;if(N.push(s.createElement("path",o({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,u,h,l,p)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[t].data[e-1].onDataPointClick),{opacity:z&&!Y?1:.01,fill:P._getPointFill(I,l,e,!1),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(t,e-1)}))),e+1===P._points[t].data.length){var U="".concat(l).concat(e,"L"),q=P._points[t].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,e,!0,P._points[t].index);var K=P._points[t].data[e],G=K.xAxisCalloutData,Z=K.xAxisCalloutAccessibilityData;N.push(s.createElement("path",o({id:U,key:U,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,g,G,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[t].data[e].onDataPointClick),{opacity:z&&!q?1:.01,fill:P._getPointFill(I,U,e,!0),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(t,e)})))}if(z){if(!r){var $=(null===(v=P._points[t].lineOptions)||void 0===v?void 0:v.lineBorderWidth)?Number.parseFloat(P._points[t].lineOptions.lineBorderWidth.toString()):0;$>0&&F.push(s.createElement("line",{id:i,key:i,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeLinecap:null!==(y=null===(_=P._points[t].lineOptions)||void 0===_?void 0:_.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(W.toString())+$,stroke:(null===(x=P._points[t].lineOptions)||void 0===x?void 0:x.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("line",o({id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,ref:function(t){D._refCallback(t,a)},onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,stroke:I,strokeLinecap:null!==(C=null===(b=P._points[t].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==C?C:"round",strokeDasharray:null===(S=P._points[t].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(E=P._points[t].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},P._getClickHandler(P._points[t].onLineClick))))}}else r||M.push(s.createElement("line",{id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,stroke:I,strokeLinecap:null!==(k=null===(L=P._points[t].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=P._points[t].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(w=P._points[t].lineOptions)||void 0===w?void 0:w.strokeDashoffset,opacity:.1}))},ot=1;ot<P._points[t].data.length;ot++)rt(ot);T.push.apply(T,i(i(i([],F,!1),M,!1),N,!1))},P=this,F=this._points.length-1;F>=0;F--)M(F);var N=vf(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 V=zu(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var I={tooltipCls:N.tooltip,id:this._tooltipId,xAxis:V};V&&cd(I)}return T},e.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},e}(s.Component),xf=E(yf,(function(t){return{tooltip:o(o({},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"})}}));function bf(t,e){if((o=t.length)>1)for(var n,r,o,a=1,i=t[e[0]],s=i.length;a<o;++a)for(r=i,i=t[e[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Cf(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Sf(t,e){return t[e]}function Ef(t){const e=[];return e.key=t,e}function Lf(t,e,n){var r=null,o=Jh(!0),a=null,i=Bp,s=null;function l(l){var c,u,d,h,p,f=(l=Qh(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==a&&(s=i(p=bp())),c=0;c<=f;++c){if(!(c<f&&o(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+t(h,c,l),v[c]=+e(h,c,l),s.point(r?+r(h,c,l):m[c],n?+n(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return zp().defined(o).curve(i).context(a)}return t="function"==typeof t?t:void 0===t?Rp:Jh(+t),e="function"==typeof e?e:Jh(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Wp:Jh(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Jh(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Jh(+t),l):n},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(n)},l.lineX1=function(){return c().x(r).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:Jh(!!t),l):o},l.curve=function(t){return arguments.length?(i=t,null!=a&&(s=i(a)),l):i},l.context=function(t){return arguments.length?(null==t?a=s=null:s=i(a=t),l):a},l}function kf(t){return t<0?-1:1}function Af(t,e,n){var r=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(r||o<0&&-0),i=(n-t._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(kf(a)+kf(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function wf(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Df(t,e,n){var r=t._x0,o=t._y0,a=t._x1,i=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,o+s*e,a-s,i-s*n,a,i)}function Tf(t){this._context=t}function Mf(t){this._context=t}function Pf(t){return new Tf(t)}Tf.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:Df(this,this._t0,wf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Df(this,wf(this,n=Af(this,t,e)),n);break;default:Df(this,this._t0,n=Af(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new Mf(t)}.prototype=Object.create(Tf.prototype)).point=function(t,e){Tf.prototype.point.call(this,e,t)},Mf.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,a){this._context.bezierCurveTo(e,t,r,n,a,o)}};var Ff,Nf=ht(),Vf=Uo((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Ff||(Ff={}));var If=function(t){function e(e){var n=t.call(this,e)||this;return n._getMargins=function(t){n.margins=t},n._onRectMouseMove=function(t){t.persist();var e=n.props.data.lineChartData,r=n._xAxisRectScale.invert(qu(document.getElementById(n._rectId),t)[0]),o=Vf(e[0].data,r),a=e[0].data[o-1],i=e[0].data[o],s=null,l=null,c=null;if(void 0===a&&void 0!==i)l=i.x,c=o;else if(void 0!==a&&void 0===i)l=a.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=gd(e[0].data[0].x,!0)){case Gu.DateAxis:u=new Date(r).getTime(),d=a.x.getTime(),h=i.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case Gu.NumericAxis:u=r,d=a.x,h=i.x,l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=e[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=St(n._calloutPoints,(function(t){return t.x===v})),y=s===Gu.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Ff.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Ff.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Ff.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(t,e){var r=function(){var t=Jh([]),e=Cf,n=bf,r=Sf;function o(o){var a,i,s=Array.from(t.apply(this,arguments),Ef),l=s.length,c=-1;for(const t of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(t,s[a].key,c,o)]).data=t;for(a=0,i=Qh(e(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Jh(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:Jh(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?Cf:"function"==typeof t?t:Jh(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?bf:t,o):n},o}().keys(t)(e),o=jo(r[r.length-1],(function(t){return t[1]})),a=[];return r.forEach((function(t){var e=[];t.forEach((function(t){e.push({values:t,xVal:t.data.xVal})})),a.push(e)})),n._isMultiStackChart=!!(a&&a.length>1),{stackedData:a,maxOfYVal:o}},n._createDataSet=function(t){var e=[],r=[],o=[],a=[],i=sd(t);t&&t.length&&t.forEach((function(t){o.push(t.color),a.push(t.opacity||1),e.push.apply(e,t.data)}));for(var s=e,l=function(){var t=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,e=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)===t})),n={};e.forEach((function(t,e){n.xVal=t.x,n["chart".concat(e)]=t.y})),r.push(n);var o=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==o}))};s.length;)l();for(var c=r&&Object.keys(r[0]).length,u=[],d=0;d<c-1;d++){var h="chart".concat(d);u.push(h)}var p=n._getStackedData(u,r);return{colors:o,opacity:a,keys:u,stackedInfo:p,calloutPoints:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(t,e,r,o,a){n._chart=n._drawGraph(r,t,e,a)},n._getLegendData=function(t){var e=[];return t.forEach((function(t){var r=t.color;if(!(e.filter((function(e){return e.title===t.legend&&e.color===r})).length>0)){var o={title:t.legend,color:r,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};e.push(o)}})),s.createElement($h,o({legends:e,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(t){t&&t(),n.setState({isCircleClicked:!0})},n._getOpacity=function(t){return n._isMultiStackChart?n._legendHighlighted(t)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(t){if(n._isMultiStackChart){var e=.3;return n.state.isCalloutVisible&&(e=1),n._noLegendHighlighted()||(e=n._legendHighlighted(t)?0:.1),e}return 1},n._updateCircleFillColor=function(t,e,r){var o=e;return n.state.nearestCircleToHighlight!==t&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(o=n.props.theme.palette.white)),o},n._drawGraph=function(t,e,r,a){var i,l=n._addDefaultColors(n.props.data.lineChartData),c=n.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Lf().x((function(t){return e(t.xVal)})).y0((function(t){return r(t.values[0])})).y1((function(t){return r(t.values[1])})).curve(Pf),p=zp().x((function(t){return e(t.xVal)})).y((function(t){return r(t.values[1])})).curve(Pf),f=[];n._stackedData.forEach((function(t,a){f.push(s.createElement(s.Fragment,{key:"".concat(a,"-graph-").concat(n._uniqueIdForGraph)},s.createElement("path",o({id:"".concat(a,"-line-").concat(n._uniqueIdForGraph),d:p(t),fill:"transparent",strokeWidth:3,stroke:n._colors[a],opacity:n._getLineOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[a].lineOptions)),1===t.length?s.createElement("circle",{id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),cx:e(t[0].xVal),cy:r(t[0].values[1]),r:6,stroke:n._colors[a],strokeWidth:3,fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",o({id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),d:h(t),fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":!0,role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;n._stackedData.forEach((function(t,a){l.length!==a&&(n.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,c){var d=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(n.state.nearestCircleToHighlight===d){var h="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c);i=l[a].color,f.push(s.createElement("circle",o({key:h,id:h,cx:e(t.xVal),cy:r(t.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(d,i,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick)},u,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:"".concat(a,"-dots-").concat(n._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,c){var d="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return i=l[a].color,s.createElement("circle",o({key:d,id:d,"data-is-focusable":!0,cx:e(t.xVal),cy:r(t.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(h,i,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick),onFocus:function(){return n._handleFocus(a,c,d)},onBlur:n._handleBlur},u,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(a,c)}))})))))})),f.push(s.createElement("line",o({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:i,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Nf(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=zu(a).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&cd(_)}return f},n._getCircleRadius=function(t,e,r){var o=n.state,a=o.isCircleClicked,i=o.nearestCircleToHighlight,s=o.activePoint;return a&&i===t?1:i===t||s===r?e:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(t){return t?t.map((function(t,e){var r,a,i;return i=void 0===t.color?gf(e,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):mf(t.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),o(o({},t),{color:i})})):[]},n._handleFocus=function(t,e,r){var o=n.props.data.lineChartData[t].data[e],a=o.x,i=o.y,s=o.xAxisCalloutData,l=a instanceof Date?a.toLocaleString():a,c=a instanceof Date?a.getTime():a,u=n._calloutPoints.find((function(t){return t.x===c}));u.values=u.values.filter((function(t){return t.y===i})),n.setState({refSelected:"#".concat(r),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(t,e){var r,o=n.props.data.lineChartData[t],a=o.data[e],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n._createSet=er(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Ff.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,emptyChart:!(n.props.data&&n.props.data.lineChartData&&n.props.data.lineChartData.length>0&&0===n.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length),activePoint:""},n._uniqueIdForGraph=xt("areaChart_"),n._verticalLineId=xt("verticalLine_"),n._circleId=xt("circle"),n._rectId=xt("rectangle"),n._tooltipId=xt("AreaChartTooltipID"),n}return r(e,t),e.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){var e=this.props.data,n=e.lineChartData,r=e.chartTitle,a=this._addDefaultColors(n),i=this._createSet(a),l=i.colors,c=i.opacity,u=i.stackedInfo,d=i.calloutPoints;this._calloutPoints=d;var h=ud(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(Xp,o({},this.props,{chartTitle:r,points:a,chartType:Ku.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Gu.DateAxis:Gu.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){t._xAxisRectScale=e.xScale;var n=t._xAxisRectScale.ticks(),r=t._xAxisRectScale(n[n.length-1]),o=e.containerHeight-t.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:t._rectId,width:r,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),s.createElement("g",null,t._chart))}}))}return s.createElement("div",{id:xt("_AreaChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e}(s.Component),Of=E(If,(function(t){return{tooltip:o(o({},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"})}})),Hf=function(t){return{root:{fill:t.color,stroke:zn.white,strokeWidth:2}}},Bf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.updateChart=function(t){Wf(t)},e}return r(e,t),e.getDerivedStateFromProps=function(t){return Wf(t),null},e.prototype.render=function(){var t,e=this.props,n=e.color,r=e.arc,o=ht()(Hf,{color:n});return s.createElement("path",{d:r(this.props.data),className:o.root,onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},e.defaultProps={arc:wp()},e}(s.Component),Rf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var e=this.props,n=e.data,r=e.arc,o=e.culture,a=r.centroid(n),i=a[0],l=a[1],c="translate(".concat(i,", ").concat(l,")");return s.createElement("g",{className:"arc"},t.prototype.render.call(this),s.createElement("text",{transform:c,textAnchor:"middle"},n.data.x,"-",yd(n.data.y,o)))},e}(Bf);function Wf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var zf,Yf=function(t){function e(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e){return s.createElement(Rf,{culture:n.props.culture,key:e,data:t,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(e))})},n}return r(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.colors,o=e.data,a=e.width,i=e.height,l=e.chartTitle;this.colors=Pc().range(r);var c=n(o),u="translate(".concat(a/2,", ").concat(i/2,")");return s.createElement("svg",{width:a,height:i,"aria-label":l},s.createElement("g",{transform:u},c.map((function(e,n){return t.arcGenerator(e,n)}))))},e.defaultProps={pie:fp().sort(null).value((function(t){return t.y}))},e}(s.Component),Uf=ht(),qf=function(t){function e(e){var n=t.call(this,e)||this;return n.state={emptyChart:!1},n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this.props,e=t.data,n=t.width,r=t.height,o=t.colors,a=t.chartTitle,i=this.props,l=i.theme,c=i.className,u=i.styles,d=i.culture;this._classNames=Uf(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return this.state.emptyChart?s.createElement("div",{id:xt("_PieChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(Yf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:e,colors:o,chartTitle:a}))},e.defaultProps={data:[],width:600,height:350},e}(s.Component),Xf=E(qf,(function(t){var e=t.className,n=t.theme,r=t.width+30,a=t.height+10;return{root:[n.fonts.medium,"ms-PieChart",e,{width:r+40}],chart:[{padding:20,width:r,height:a,boxSizing:"content-box"}],chartTitle:[o({textAlign:"center"},n.fonts.mediumPlus)]}})),jf=ht(),Kf=function(t){function e(e){var n=t.call(this,e)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",emptyChart:!1},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xt("callout"),n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){if(!this.state.emptyChart){this._adjustProps();var t=this.props,e=t.data,n=t.benchmarkData,r=t.targetData,a=t.hideNumberDisplay,i=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,u=i||e.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||c.neutralTertiary),r&&(r.color=r.color||c.neutralSecondary);var d=this._createBarsAndLegends(e,u,c,n,r),h=!1===a&&!i&&2===e.chartData.length,p=!1===a&&!i&&1===e.chartData.length,f=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(i||e.chartData.length>2);this._classNames=jf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return yd(e.chartData[0].data?e.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(rh,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),h&&s.createElement("div",o({},_d(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(f,l))),p&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(e.chartDataAccessibilityData,"text",!1)),_())),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(qd,{direction:md.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},s.createElement("g",null,d[0]),s.createElement(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Et.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))}return s.createElement("div",{id:xt("_SBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._adjustProps=function(){this._classNames=jf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},e.prototype._createBarsAndLegends=function(t,e,n,r,a){var i=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],c=[],u=[],d=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),h=0,p=0,f=0;t.chartData.map((function(t,e){var n=t.data?t.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=t.chartData.map((function(t,n){var r=t.color?t.color:l[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,a={title:t.legend,color:r,action:d>0?function(){i._onClick(t.legend)}:void 0,hoverAction:d>0?function(){i._handleChartMouseLeave(),i._onHover(t.legend)}:void 0,onMouseOutAction:d>0?function(){i._onLeave()}:void 0};t.placeHolder||c.push(a),n>0&&(h+=p),(p=o/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,u.push(h);var f=i.props.styles,m=!(!i._legendHighlighted(t.legend)&&!i._noLegendHighlighted());return i._classNames=jf(f,{theme:i.props.theme,shouldHighlight:m,href:i.props.href}),s.createElement("g",{key:n,className:i._classNames.opacityChangeOnHover,ref:function(t){i._refCallback(t,a.title)},"data-is-focusable":!i.props.hideTooltip,onFocus:i._onBarFocus.bind(i,o,r,t),onBlur:i._onBarLeave,"aria-label":i._getAriaLabel(t),role:"img",onMouseOver:i._onBarHover.bind(i,o,r,t),onMouseMove:i._onBarHover.bind(i,o,r,t),onMouseLeave:i._onBarLeave,pointerEvents:"all",onClick:i.props.href?i._redirectToUrl.bind(i,i.props.href):t.onClick},s.createElement("rect",{key:n,x:u[n]+"%",y:0,width:p+"%",height:e,fill:r}))}));this._addLegend(c,r),this._addLegend(c,a);var v=s.createElement($h,o({legends:c,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(e,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},e.prototype._onBarFocus=function(t,e,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},e.prototype._addLegend=function(t,e){if(e){var n={title:e.legend,color:e.color,shape:"triangle"};t.push(n)}},e.prototype._generateEmptyBar=function(t,e){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:e}))},e.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},e.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onHover=function(t){this.setState({activeLegend:t})},e.prototype._onLeave=function(){this.setState({activeLegend:""})},e.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},e.prototype._onBarLeave=function(){},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},e}(s.Component),Gf=E(Kf,(function(t){var e,n,r=t.className,a=t.width,i=t.barHeight,s=t.shouldHighlight,l=t.theme,c=t.href,u=t.benchmarkColor,d=t.benchmarkRatio,h=t.targetColor,p=t.targetRatio,f=t.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:a||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:i||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:o(o({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:c?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u,marginBottom:"4px",selectors:(e={},e[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},e)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},n)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(zf||(zf={}));var Zf,$f=ht(),Qf=function(t){function e(e){var n=t.call(this,e)||this;return n._isRTL=lt(),n._adjustProps=function(){var t=n.props,e=t.theme,r=t.className,o=t.styles,a=t.width,i=t.barHeight;n._classNames=$f(o,{legendColor:n.state.color,theme:e,width:a,className:r,barHeight:i})},n._getLegendData=function(t,e,r){var a=[r.blueLight,r.blue,r.blueMid,r.red,r.black],i=[];return t.forEach((function(t,r){var o=t.chartData.filter((function(t){return!t.placeHolder}));o.length<3?void 0!==e[r]&&e[r]&&o.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var r={title:t.legend,color:e,action:function(){n._onClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(t.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}})):o.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var r={title:t.legend,color:e,action:function(){n._onClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(t.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}}))})),s.createElement($h,o({legends:i,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n._computeLongestBarTotalValue=function(){var t=0;return n.props.data.forEach((function(e){var n=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0);t=Math.max(t,n)})),t},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",emptyChart:!1},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xt("callout"),n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length})).length);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){var e=this.props,n=e.data,r=e.theme,a=e.culture;this._adjustProps();var i=r.palette,l=this._getLegendData(n,this.props.hideRatio,i),c=this.state.isCalloutVisible;this._classNames=$f(this.props.styles,{legendColor:this.state.color,theme:r,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=n.map((function(e,n){var r=t._createBarsAndLegends(e,t.props.barHeight,i,t.props.hideRatio[n],t.props.hideDenominator[n],t.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:Et.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return s.createElement("div",{id:xt("_MSBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._createBarsAndLegends=function(t,e,n,r,a,i){var l=this,c=this.props.culture,u=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),p=this.props.variant===zf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(t.chartData.map((function(t,e){var n=t.data?t.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===zf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=t.chartData.map((function(t,r){var o=t.color?t.color:t.placeHolder?n.neutralLight:u[Math.floor(4*Math.random()+1)],a=t.data?t.data:0;r>0&&(v+=_),(_=a/p*100?a/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var c=l.props.styles,h=!(!l._legendHighlighted(t.legend)&&!l._noLegendHighlighted());return l._classNames=$f(c,{theme:l.props.theme,shouldHighlight:h,href:i,variant:l.props.variant,hideLabels:l.props.hideLabels}),s.createElement("g",{key:r,className:t.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(e){l._refCallback(e,t.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,o,t),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:l._onBarHover.bind(l,a,o,t),onMouseMove:t.placeHolder?void 0:l._onBarHover.bind(l,a,o,t),onMouseLeave:t.placeHolder?void 0:l._onBarLeave,onClick:i?t.placeHolder?void 0:l._redirectToUrl.bind(l,i):t.onClick},s.createElement("rect",{key:r,x:"".concat(l._isRTL?100-d[r]-_:d[r],"%"),y:0,width:_+"%",height:e,fill:o}))}));this.props.variant===zf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_,"%"),y:e/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(h),role:"img"},yi(h<1e3?".2~":".1",h)(h))):(0===t.chartData.length&&y.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:n.neutralLight}))),0===h&&y.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:n.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==zf.AbsoluteScale&&!x&&2===t.chartData.length,C=this.props.variant!==zf.AbsoluteScale&&!x&&1===t.chartData.length,S=function(){return yd(t.chartData[0].data?t.chartData[0].data:0,c)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(rh,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),b&&s.createElement("div",o({},_d(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},S()),!a&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(h,c))),C&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(t.chartDataAccessibilityData,"text",!1)),S()))),s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},y))))},e.prototype._onBarFocus=function(t,e,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},e.prototype._refCallback=function(t,e){this.state.refArray.push({legendText:e,refElement:t})},e.prototype._onHover=function(t){this.setState({activeLegend:t})},e.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLeave=function(){this.setState({activeLegend:""})},e.prototype._onBarHover=function(t,e,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},e.prototype._onBarLeave=function(){},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},e}(s.Component),Jf=E(Qf,(function(t){var e=t.className,n=t.width,r=t.barHeight,a=t.shouldHighlight,i=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[i.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},e],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:o(o({},i.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:i.palette.neutralPrimary,marginBottom:l===zf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===zf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:s?"pointer":"default",stroke:i.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:i.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:i.palette.neutralPrimary},placeHolderOnHover:{opacity:a?"":"0.1",cursor:"default",stroke:i.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},chartWrapper:{paddingRight:l!==zf.AbsoluteScale||c?0:40}}}));!function(t){t.show="visibility",t.hide="hidden"}(Zf||(Zf={}));var tg,eg=ht(),ng=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._createLine=function(t,e,r,o,a){var i;void 0===r&&(r=0),void 0===o&&(o=0);var l=n._xAxisType===Gu.NumericAxis,c=n._getScales(r,o,l).xBarScale,u=n._createColors(),d=n.props.theme,h=n.props,p=h.data,f=h.lineLegendColor,g=void 0===f?d.palette.yellow:f,m=h.lineLegendText,v=[],_=[];p&&p.forEach((function(t,e){var n;t.lineData&&t.lineData.y&&v.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(n=t.lineData.useSecondaryYScale)&&void 0!==n&&n,point:t,index:e})}));var y=zp().x((function(e){return l?t(e.x):c(e.x)+.5*c.bandwidth()})).y((function(t){return t.useSecondaryYScale&&a?a(t.y):e(t.y)})),x=!(!n._legendHighlighted(m)&&!n._noLegendHighlighted()),b=(null===(i=n.props.lineOptions)||void 0===i?void 0:i.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;b>0&&_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var C=v.map((function(r,o){var i;return s.createElement("circle",{key:o,cx:l?t(r.x):c(r.x)+.5*c.bandwidth(),cy:r.useSecondaryYScale&&a?a(r.y):e(r.y),onMouseOver:n._onBarHover.bind(n,r.point,u(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:g,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?Zf.show:Zf.hide,onClick:null===(i=r.point.lineData)||void 0===i?void 0:i.onClick})}));return s.createElement(s.Fragment,null,_,C)},n._checkForLine=function(){return n.props.data.some((function(t){var e;return void 0!==(null===(e=null==t?void 0:t.lineData)||void 0===e?void 0:e.y)}))},n._getMargins=function(t){n.margins=t},n._renderContentForBothLineAndBars=function(t){var e=n._getCalloutContentForLineAndBar(t),r=e.YValueHover,a=e.hoverXValue,i=r.map((function(t,e){return s.createElement(Sd,o({key:e,Legend:t.legend},0===e&&{XValue:"".concat(a||t.data)},{color:t.color,YValue:t.data||t.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,i)},n._renderContentForOnlyBars=function(t){var e=n.props.useSingleColor,r=void 0!==e&&e;return s.createElement(s.Fragment,null,s.createElement(Sd,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!r&&t.color?t.color:n._createColors()(t.y),culture:n.props.culture}))},n._renderCallout=function(t){return t?n._isHavingLine?n._renderContentForBothLineAndBars(t):n._renderContentForOnlyBars(t):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(t,e,r,o,a){return n._bars=n._xAxisType===Gu.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._refCallback=function(t,e){n._refArray.push({index:e,refElement:t})},n._getCalloutContentForLineAndBar=function(t){var e,r,o,a,i=[],s=n.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(e){return e.x===t.x}));return n._isHavingLine&&void 0!==(null===(e=m[0].lineData)||void 0===e?void 0:e.y)&&i.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(a=m[0].lineData)||void 0===a?void 0:a.yAxisCalloutData}),i.push({legend:m[0].legend,y:m[0].y,color:u?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:t.xAxisCalloutData||t.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(t,e,r){var o=n._getCalloutContentForLineAndBar(t),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){o.index===t.legend&&e===s&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||r,xCalloutValue:t.xAxisCalloutData||t.x.toString(),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:t.callOutAccessibilityData})}))},n._getScales=function(t,e,r){if(r){var o=jo(n._points,(function(t){return t.x})),a=Ko(n._points,(function(t){return t.x}));return{xBarScale:Si().domain(n._isRtl?[o,a]:[a,o]).nice().range([n.margins.left+n._domainMargin,e-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Si().domain([0,n._yMax]).range([0,t-n.margins.bottom-n.margins.top])}}return{xBarScale:Fc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Si().domain([0,n._yMax]).range([0,t-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(t,e){var r=n.props,a=r.theme,i=r.useSingleColor,l=n.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(t.forEach((function(t,e){var r=i?n._createColors()(1):t.color,o={title:t.legend,color:r,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(o)})),n._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){n._onLegendClick(c)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(c)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement($h,o({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._yMax=Math.max(e[e.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,r,o,a=t.xAxisCalloutData||t.x,i=t.legend,s=t.yAxisCalloutData||t.y,l=n.props.lineLegendText||"Line",c=(null===(e=t.lineData)||void 0===e?void 0:e.yAxisCalloutData)||(null===(r=t.lineData)||void 0===r?void 0:r.y);return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(a,". ")+(i?"".concat(i,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},n._getDomainMargins=function(t){if(n._xAxisType!==Gu.NumericAxis){var e=t-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,e>=a?n._domainMargin+=(e-a)/2:r=e/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=xt("callout"),n._tooltipId=xt("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].x,!0):Gu.StringAxis,n._domainMargin=8,n}return r(e,t),e.prototype.componentDidMount=function(){var t=this.state.emptyChart||0===this._points.length||jo(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(jo(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=eg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=o(o(o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),_d(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xt("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:this._points,chartType:Ku.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:e,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:md.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return s.createElement(s.Fragment,null,s.createElement("g",null,t._bars),t._isHavingLine&&s.createElement("g",null,t._createLine(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine()},e.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(e*o*this._yMax);return Si().domain(r).range(this._colors)},e.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForLineAndBar(t),o=r.YValueHover,a=r.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||e,xCalloutValue:t.xAxisCalloutData||t.x.toString(),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData}))},e.prototype._createNumericBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,i=this._getScales(t,e,!0),l=i.xBarScale,c=i.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=eg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var i=Math.max(c(e.y),0);if(i<1)return s.createElement(s.Fragment,{key:e.x}," ");var d=l(e.x),h=t-r.margins.bottom-c(e.y);return s.createElement("g",{key:e.x},s.createElement("rect",{x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:i,ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(d,h,e.y))}));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=zu(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&cd(p)}return d},e.prototype._createStringBars=function(t,e,n){var r=this,o=this._getScales(t,e,!1),a=o.xBarScale,i=o.yBarScale,l=this._createColors(),c=this._points.map((function(e,n){var o=Math.max(i(e.y),0);if(o<1)return s.createElement(s.Fragment,{key:e.x}," ");var c=a(e.x),u=t-r.margins.bottom-i(e.y);return s.createElement("g",{key:e.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},s.createElement("rect",{x:c,y:u,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(e),role:"img",ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,l(e.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,e,n,l(e.y)),fill:e.color?e.color:l(e.y)}),r._renderBarLabel(c,u,e.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=zu(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&cd(d)}return c},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._renderBarLabel=function(t,e,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:t+this._barWidth/2,y:e-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},yi(n<1e3?".2~":".1",n)(n))},e}(s.Component),rg=E(ng,(function(t){var e=t.shouldHighlight,n=t.theme;return{opacityChangeOnHover:{opacity:e?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}}})),og=ht();!function(t){t.show="visibility",t.hide="hidden"}(tg||(tg={}));var ag=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._toFocusWholeStack=function(t){var e=n.props.isCalloutForStack,r=void 0!==e&&e;return t?""===n.state.selectedLegend:r},n._getFormattedLineData=function(t){var e=[],n={};return t.forEach((function(t,n){t.lineData&&t.lineData.forEach((function(r){e.push(o(o({},r),{index:n,xItem:t}))}))})),e.forEach((function(t){n[t.legend]?n[t.legend].push(t):n[t.legend]=[t]})),n},n._getLineLegends=function(t){var e=n._lineObject,r=[];return Object.keys(e).forEach((function(t){r.push({title:t,color:e[t][0].color})})),r},n._createLines=function(t,e,r,a,i){var l,c=n._xAxisType===Gu.NumericAxis,u=n._getScales(r,a,c).xBarScale,d=n._getFormattedLineData(n.props.data),h=[],p=[],f=[],g=n.props.theme,m=(null===(l=n.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,v=c?0:u.bandwidth()/2;return Object.keys(d).forEach((function(r,a){for(var l=n._legendHighlighted(r)||n._noLegendHighlighted(),f=1;f<d[r].length;f++){var _=c?t(d[r][f-1].xItem.xAxisPoint):u(d[r][f-1].xItem.xAxisPoint),y=d[r][f-1].useSecondaryYScale&&d[r][f].useSecondaryYScale&&i,x=y?i(d[r][f-1].y):e(d[r][f-1].y),b=c?t(d[r][f].xItem.xAxisPoint):u(d[r][f].xItem.xAxisPoint),C=y?i(d[r][f].y):e(d[r][f].y);m>0&&p.push(s.createElement("line",{key:"".concat(a,"-").concat(f,"-BorderLine"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.palette.white,transform:"translate(".concat(v,", 0)")})),h.push(s.createElement("line",o({key:"".concat(a,"-").concat(f,"-line"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:d[r][f].color,transform:"translate(".concat(v,", 0)")},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,d[r][f-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(d).forEach((function(r,a){d[r].forEach((function(l,d){f.push(s.createElement("circle",o({key:"".concat(a,"-").concat(d,"-dot"),cx:c?t(l.xItem.xAxisPoint):u(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&i?i(l.y):e(l.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,l):n._onStackHover.bind(n,l.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(v,", 0)")})))}))})),s.createElement(s.Fragment,null,p,h,f)},n._getCircleVisibilityAndRadius=function(t,e){var r=n.state,o=r.selectedLegend,a=r.activeXAxisDataPoint;return""!==o?t===a&&o===e?{visibility:tg.show,radius:8}:o===e?{visibility:tg.show,radius:.3}:{visibility:tg.hide,radius:0}:{visibility:a===t?tg.show:tg.hide,radius:8}},n._getMargins=function(t){n.margins=t},n._getCustomizedCallout=function(){var t=n.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!t?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(t,e){e.persist(),n.setState({refSelected:e,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(t,e,r,a){var i=n.props,l=i.barCornerRadius,c=void 0===l?0:l,u=i.barMinimumHeight,d=void 0===u?0:u,h=n.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(a,i){var l=r-n.margins.bottom,u=t((n._xAxisType,Gu.NumericAxis,a.xAxisPoint)),h=n._xAxisType===Gu.NumericAxis?0:(t.bandwidth()-n._barWidth)/2,f=0,g=a.chartData.filter((function(t){return t.data>0}));if(g.length){var m=n._getBarGapAndScale(g,e),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(t,e){var r=t.color?t.color:n._colors[e],m={},y=!(!n._legendHighlighted(t.legend)&&!n._noLegendHighlighted());n._classNames=og(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a,t),onMouseOver:n._onRectHover.bind(n,a.xAxisPoint,t,r),onMouseMove:n._onRectHover.bind(n,a.xAxisPoint,t,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,t,a.xAxisPoint,r,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,t),role:"img"},b=_*t.data;return b<d&&(b=d),l=l-b-(e?v:0),f+=t.data,c&&b>c&&e===g.length-1?s.createElement("path",o({key:e+i+"".concat(p),className:n._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(n._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-n._barWidth,"\n z\n "),fill:r,ref:function(t){return m.refElement=t},transform:"translate(".concat(h,", 0)")},x)):b<1?s.createElement(s.Fragment,{key:e+i}," "):s.createElement("rect",o({key:e+i,className:n._classNames.opacityChangeOnHover,x:u,y:l,width:n._barWidth,height:b,fill:r,ref:function(t){return m.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a),onMouseOver:n._onStackHover.bind(n,a),onMouseMove:n._onStackHover.bind(n,a),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,a,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,a),role:"img"};return s.createElement("g",{key:i+"".concat(p)},s.createElement("g",o({id:"".concat(i,"-singleBar"),ref:function(t){return x.refElement=t}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:u+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-label":"Total: ".concat(f),role:"img",transform:"translate(".concat(h,", 0)")},yi(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=zu(a).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&cd(m)}return f.filter((function(t){return!!t}))},n._getScales=function(t,e,r){var o=n._yMax,a=Si().domain([0,o]).range([0,t-n.margins.bottom-n.margins.top]);if(r){var i=jo(n._dataset,(function(t){return t.x})),s=Ko(n._dataset,(function(t){return t.x}));return{xBarScale:Si().domain(n._isRtl?[i,s]:[s,i]).nice().range([n.margins.left+n._domainMargin,e-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:a}}return{xBarScale:Fc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:a}},n._createNumericBars=function(t,e,r){var o=n._getScales(t,e,!0),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,t,r)},n._createStringBars=function(t,e,r){var o=n._getScales(t,e,!1),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,t,r)},n._getGraphData=function(t,e,r,o,a){return n._bars=n._xAxisType===Gu.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._yMax=Math.max(e[e.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t,e){var n,r,o;if(!e){var a=t.xAxisCalloutData||t.xAxisPoint,i=t.chartData.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data;return"".concat(e,", ").concat(n,".")})).join(" "),s=null===(n=t.lineData)||void 0===n?void 0:n.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data||t.y;return"".concat(e,", ").concat(n,".")})).join(" ");return(null===(r=t.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(a,". ").concat(i)+(s?" ".concat(s):"")}var l=t.xAxisCalloutData||e.xAxisCalloutData||t.xAxisPoint,c=e.legend,u=e.yAxisCalloutData||e.data;return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},n._getDomainMargins=function(t){if(n._xAxisType!==Gu.NumericAxis){var e=t-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,e>=a?n._domainMargin+=(e-a)/2:r=e/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:"",emptyChart:!(n.props.data&&n.props.data.length>0&&0===n.props.data.filter((function(t){return 0===t.chartData.length})).length)},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xt("callout"),n._tooltipId=xt("VSBCTooltipId_"),n.props.data&&n.props.data.length&&!n.props.data.filter((function(t){return void 0===t.xAxisPoint})).length?(n._adjustProps(),n._dataset=n._createDataSetLayer()):n.state=o(o({},n.state),{emptyChart:!0}),n._createLegendsForLine=er((function(t){return n._getLineLegends(t)})),n._domainMargin=8,n}return r(e,t),e.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){this._adjustProps();var e=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),n=this._toFocusWholeStack(e),r=this.props.isCalloutForStack,a=void 0!==r&&r;this._dataset=this._createDataSetLayer();var i=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=og(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),_d(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._dataset,chartType:Ku.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:i,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:a||e?md.horizontal:md.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,t._bars),s.createElement("g",null,e&&t._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))}return s.createElement("div",{id:xt("_VSBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=gd(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},e.prototype._createDataSetLayer=function(){var t=[],e=this._points.map((function(e){var n=0;return e.chartData.forEach((function(t){n+=t.data})),t.push(e.xAxisPoint),{x:e.xAxisPoint,y:n}}));return this._xAxisLabels=t,e},e.prototype._renderCallout=function(t){return t?s.createElement(Sd,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._getLegendData=function(t,e,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var a=[e.blueLight,e.blue,e.blueMid,e.red,e.black],i=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;t.forEach((function(t){t.chartData.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};i.push(n)}}))}));var u=[];n&&n.length>0&&n.forEach((function(t){var e={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(t.title)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};u.push(e)}));var d=u.concat(i);return s.createElement($h,o({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},e.prototype._onRectHover=function(t,e,n,r){r.persist(),this._onRectFocusHover(t,e,n,r)},e.prototype._onRectFocusHover=function(t,e,n,r){this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:n,xCalloutValue:e.xAxisCalloutData?e.xAxisCalloutData:t,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},e.prototype._onStackHover=function(t,e){e.persist(),this._onStackHoverFocus(t,e)},e.prototype._onStackHoverFocus=function(t,e){var n=t.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:e,isCalloutVisible:!0,YValueHover:r?i(i([],n.sort((function(t,e){return t.data<e.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},e.prototype._onRectFocus=function(t,e,n,r){r.refElement&&this._onRectFocusHover(e,t,n,r.refElement)},e.prototype._onStackFocus=function(t,e){e.refElement&&this._onStackHoverFocus(t,e.refElement)},e.prototype._onClick=function(t,e){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,e,t),this.props.href&&(window.location.href=this.props.href)},e.prototype._getBarGapAndScale=function(t,e,n){var r=this.props.barGapMax,o=void 0===r?0:r,a=t.reduce((function(t,e){return t+e.data}),0),i=null!=n?n:e(a),s=o&&t.length-1,l=s&&Math.max(1,Math.min(o,.2*i/s));return{gapHeight:l,heightValueScale:(i-l*s)/a}},e}(s.Component),ig=E(ag,(function(t){var e=t.shouldHighlight,n=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:e?"":"0.1",cursor:n?"pointer":"default"},tooltip:o(o({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}})),sg=ht(),lg=.1/.9,cg=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._getGraphData=function(t,e,r,o,a){var i=n._createX0Scale(o),s=n._createX1Scale(i),l=[];n._datasetForBars.forEach((function(t){l.push(n._buildGraph(t,i,s,r,a))})),n._groupedVerticalBarGraph=l},n._getMargins=function(t){return n.margins=t},n._createDataSetOfGVBC=function(t){var e=[],r=t.map((function(t){return t.name}));t[0].series.forEach((function(t){e.push(t.key)}));var o=n._createDataset(t);return{keys:e,xAxisLabels:r,datasetForBars:o}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(t){return n._legendHighlighted(t)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(t,e,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:n.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(t,e,r){n._refArray.forEach((function(o,a){o.index===t.legend&&r===a&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:n.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData})}))},n._redirectToUrl=function(t){t&&(window.location.href=t)},n._buildGraph=function(t,e,r,o,a){var i=[],l=[],c=Si().domain([0,n._yMax]).range([0,o-n.margins.bottom-n.margins.top]),u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(e,a){var d=t.indexNum*u.length+a,h=t[e],p=r(e),f=Math.max(o-n.margins.bottom-c(h.data),0);h.data&&i.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(t){n._refCallback(t,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,t),onMouseMove:n._onBarHover.bind(n,h,t),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,t,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},yi(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=zu(a).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(t){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&cd(h)}return s.createElement("g",{key:t.indexNum,transform:"translate(".concat(e(t.xAxisPoint),", 0)")},i,l)},n._createDataset=function(t){var e=[],r=[];return t.forEach((function(t,n){var a={},i={},s=[];t.series.forEach((function(t){a[t.key]=t.data,i[t.key]=o({},t),s.push(t)})),i.xAxisPoint=t.name,i.indexNum=n,i.groupSeries=s,i.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,e.push(i),r.push(a)})),n._dataset=r,e},n._createX0Scale=function(t){return Fc().domain(n._xAxisLabels).range(n._isRtl?[t-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*lg))},n._createX1Scale=function(t){var e=t.bandwidth();return Fc().domain(n._keys).range(n._isRtl?[e,0]:[0,e]).paddingInner(.1)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(t,e){var r=t,a=[e.blueLight,e.blue,e.blueMid,e.red,e.black],i=[];return r.forEach((function(t){t.series.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var r={title:t.legend,color:e,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};i.push(r)}}))})),s.createElement($h,o({legends:i,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._yMax=Math.max(e[e.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t,e){var n,r=t.xAxisCalloutData||e,o=t.legend,a=t.yAxisCalloutData||t.data;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(a,".")},n._getDomainMargins=function(t){var e=t-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),a=n._keys.length*r+(n._keys.length-1)*lg*r,i=n._xAxisLabels.length*a+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,e>=i?n._domainMargin+=(e-i)/2:r=(a=e/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*lg))))/(n._keys.length+(n._keys.length-1)*lg),n._barWidth=r,o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=er((function(t){return n._createDataSetOfGVBC(t)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:"",emptyChart:!1},n._refArray=[],n._calloutId=xt("callout"),n._tooltipId=xt("GVBCTooltipId_"),n._domainMargin=8,n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props.data,n=this._createSet(e),r=n.keys,a=n.xAxisLabels,i=n.datasetForBars;this._keys=r,this._xAxisLabels=a,this._datasetForBars=i,this._xAxisType=gd(e[0].name,!0);var l=this._getLegendData(e,this.props.theme.palette),c=jo(this._dataset,(function(e){return jo(t._keys,(function(t){return e[t]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=sg(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=o(o(o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),_d(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xt("_GVBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:this._datasetForBars,chartType:Ku.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:md.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*lg),xAxisOuterPadding:0,children:function(){return s.createElement("g",null,t._groupedVerticalBarGraph)}}))},e.prototype._refCallback=function(t,e,n){this._refArray[n]={index:e,refElement:t}},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e}(s.Component),ug=E(cg,(function(t){var e=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:o(o({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:e.palette.neutralPrimary}}})),dg=ht(),hg=function(t){function e(e){var n=t.call(this,e)||this;n._rectRefArray={},n._getXandY=function(){var t="",e="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return t=n.data[0].x,e=n.data[0].y,{x:t,y:e}})),{x:t,y:e}},n._getOpacity=function(t){return n._legendHighlighted(t)||n._noLegendHighlighted()?"1":"0.1"},n._rectRefCallback=function(t,e,r){n._rectRefArray[e]={data:r,refElement:t}},n._onRectFocus=function(t,e){n.setState({target:n._rectRefArray[t].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:n._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData})},n._onRectMouseOver=function(t,e,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({target:n._rectRefArray[t].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:n._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var t=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(e,r){n._dataSet[e].forEach((function(e,o){var a="".concat(r).concat(o),i=s.createElement("g",{key:a,role:"img","aria-label":n._getAriaLabel(e),"data-is-focusable":!0,fillOpacity:n._getOpacity(e.legend),transform:"translate(".concat(n._xAxisScale(e.x),", ").concat(n._yAxisScale(e.y),")"),ref:function(t){n._rectRefCallback(t,a,e)},onFocus:n._onRectFocus.bind(n,a,e),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,a,e),onMouseOut:n._onRectBlurOrMouseOut},s.createElement("rect",{fill:n._colorScale(e.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:e.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate(".concat(n._xAxisScale.bandwidth()/2,", ").concat(n._yAxisScale.bandwidth()/2,")")},yd(e.rectText,n.props.culture)));t.push(i)}))})),t},n._onLegendHover=function(t){n.setState({activeLegend:t})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(t){n.state.selectedLegend===t?n.setState({selectedLegend:""}):n.setState({selectedLegend:t})},n._createLegendBars=function(){var t=n.props,e=t.data,r=t.legendProps,a=[];return e.forEach((function(t){var e={title:t.legend,color:n._colorScale(t.value),action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(t.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(e)})),s.createElement($h,o({},r,{legends:a}))},n._getColorScale=function(){var t=n.props,e=t.domainValuesForColorScale,r=t.rangeValuesForColorScale;return Si().domain(e).range(r)},n._getXIndex=function(t){return n._xAxisType===Gu.DateAxis?"".concat(t.getTime()):n._xAxisType===Gu.StringAxis?t:n._xAxisType===Gu.NumericAxis?"".concat(t):""},n._getYIndex=function(t){return n._yAxisType===Zu.DateAxis?"".concat(t.getTime()):n._yAxisType===Zu.StringAxis?t:n._yAxisType===Zu.NumericAxis?"".concat(t):""},n._createNewDataSet=function(t,e,r,a,s){var l=[];t.forEach((function(t){t.data.forEach((function(e){l.push(o(o({},e),{legend:t.legend}))}))}));var c={},u={},d={};return l.forEach((function(t){var e=n._getXIndex(t.x),r=n._getYIndex(t.y);d[e]="1",u[r]="1",c[r]?c[r]=i(i([],c[r],!0),[t],!1):c[r]=[t]})),Object.keys(c).forEach((function(t){c[t].sort((function(t,e){return n._xAxisType===Gu.StringAxis?t.x.toLowerCase()>e.x.toLowerCase()?1:-1:n._xAxisType===Gu.DateAxis?t.x.getTime()-e.x.getTime():n._xAxisType===Gu.NumericAxis?+t.x>+e.x?1:-1:t.x>e.x?1:-1})).forEach((function(t){n._xAxisType===Gu.DateAxis&&(t.x=n._getStringFormattedDate(t.x,e)),n._xAxisType===Gu.NumericAxis&&(t.x=n._getStringFormattedNumber(t.x,r)),n._xAxisType===Gu.StringAxis&&(t.x=n._getFormattedLabelForXAxisDataPoint(t.x)),n._yAxisType===Zu.DateAxis&&(t.y=n._getStringFormattedDate(t.y,a)),n._yAxisType===Zu.NumericAxis&&(t.y=n._getStringFormattedNumber(t.y,s)),n._yAxisType===Zu.StringAxis&&(t.y=n._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(c).forEach((function(t){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(t,a)]=c[t]:n._yAxisType===Zu.NumericAxis?c["".concat(n._getStringFormattedNumber(t,s))]=c[t]:c[n._getFormattedLabelForYAxisDataPoint(t)]=c[t]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return n._xAxisType===Gu.DateAxis||n._xAxisType===Gu.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return n._xAxisType===Gu.DateAxis?n._getStringFormattedDate(t,n.props.xAxisDateFormatString):n._xAxisType===Gu.NumericAxis?n._getStringFormattedNumber(t,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(t)}))},n._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return n._yAxisType===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(t,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(t,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(t)}))},n._getStringFormattedDate=function(t,e){var n=new Date;return n.setTime(+t),sl(e||"%b/%d")(n)},n._getStringFormattedNumber=function(t,e){return _i(e||".2~s")(+t)},n._getFormattedLabelForXAxisDataPoint=function(t){var e=n.props.xAxisStringFormatter;return e?e(t):t},n._getFormattedLabelForYAxisDataPoint=function(t){var e=n.props.yAxisStringFormatter;return e?e(t):t},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.x,r=t.y,o=t.legend,a=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,i=t.descriptionMessage;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(a,".")+(i?" ".concat(i,"."):"")};var r=n._getXandY(),a=r.x,l=r.y;return n._xAxisType=gd(a,!0),n._yAxisType=gd(l,!1),n._createSet=er((function(t,e,r,o,a){return n._createNewDataSet(t,e,r,o,a)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:"",emptyChart:!1},n}return r(e,t),e.prototype.componentDidMount=function(){var t=!(this.props.data&&this.props.data.length>0);this.state.emptyChart!==t&&this.setState({emptyChart:t})},e.prototype.render=function(){var t=this,e=this.props,n=e.data,r=e.xAxisDateFormatString,a=e.xAxisNumberFormatString,i=e.yAxisDateFormatString,l=e.yAxisNumberFormatString;this._colorScale=this._getColorScale();var c=this._createSet(n,r,a,i,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=dg(this.props.styles,{theme:this.props.theme});var p=o(o(o(o({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:Et.topAutoEdge,onDismiss:this._closeCallout}),_d(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=o(o({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this.state.emptyChart?s.createElement("div",{id:xt("_HeatMap_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:n,chartType:Ku.HeatMapChart,xAxisType:Gu.StringAxis,yAxisType:Zu.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:md.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,t._createRectangles()}}))},e}(s.Component),pg=E(hg,(function(t){var e=t.theme;return{root:{},text:[e.fonts.medium,{pointerEvents:"none",fill:e.palette.white,fontWeight:Bn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function fg(t,e){return e-1-t.height}function gg(t,e){return t.sourceLinks.length?t.depth:e-1}function mg(t){return function(){return t}}function vg(t,e){return yg(t.source,e.source)||t.index-e.index}function _g(t,e){return yg(t.target,e.target)||t.index-e.index}function yg(t,e){return t.y0-e.y0}function xg(t){return t.value}function bg(t){return t.index}function Cg(t){return t.nodes}function Sg(t){return t.links}function Eg(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Lg({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}class kg{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Ag(t){return new kg(t,!0)}var wg=ht(),Dg="#757575",Tg=[{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"}],Mg="#323130",Pg="#FFFFFF",Fg=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(t){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(t.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?t.color:void 0:t.color},n._fillNodeBorder=function(t){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(t.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(t.index),t.borderColor):t.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1,emptyChart:!(n.props.data&&n.props.data.SankeyChartData&&n.props.data.SankeyChartData.nodes.length>0&&n.props.data.SankeyChartData.links.length>0)},n._calloutId=xt("callout"),n._linkId=xt("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=er((function(t){return n._normalizeSankeyData(t)})),n}return r(e,t),e.prototype.componentDidMount=function(){this._fitParentContainer()},e.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},e.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},e.prototype.render=function(){var t=this;if(!this.state.emptyChart){var e=this.props,n=e.theme,r=e.className,a=e.styles,i=e.pathColor;this._classNames=wg(a,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:i,className:r});var l,c=this._preRenderLayout(),u=c.height,d=c.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,u-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(e){return t.chartContainer=e},onMouseLeave:this._onCloseCallout},s.createElement(qd,{direction:md.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:u,id:xt("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(ko,o({},f),s.createElement(Sd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))}return s.createElement("div",{id:xt("_SankeyChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._preRenderLayout=function(){var t=this.state.containerWidth-this._margins.right,e=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let t,e,n,r=0,o=0,a=1,i=1,s=24,l=8,c=bg,u=gg,d=Cg,h=Sg,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const r=new Map(t.map(((e,n)=>[c(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:o}=n;"object"!=typeof e&&(e=n.source=Eg(r,e)),"object"!=typeof o&&(o=n.target=Eg(r,o)),e.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:r}of t)e.sort(n),r.sort(n)}(f),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(Go(e.sourceLinks,xg),Go(e.targetLinks,xg)):e.fixedValue}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,o=0;for(;n.size;){for(const t of n){t.depth=o;for(const{target:e}of t.sourceLinks)r.add(e)}if(++o>e)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,o=0;for(;n.size;){for(const t of n){t.height=o;for(const{source:e}of t.targetLinks)r.add(e)}if(++o>e)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:t}){const n=jo(t,(t=>t.depth))+1,o=(a-r-s)/(n-1),i=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(u.call(null,e,n))));e.layer=t,e.x0=r+t*o,e.x1=e.x0+s,i[t]?i[t].push(e):i[t]=[e]}if(e)for(const t of i)t.sort(e);return i}(n);t=Math.min(l,(i-o)/(jo(c,(t=>t.length))-1)),function(e){const n=Ko(e,(e=>(i-o-(e.length-1)*t)/Go(e,xg)));for(const r of e){let e=o;for(const o of r){o.y0=e,o.y1=e+o.value*n,e=o.y1+t;for(const t of o.sourceLinks)t.width=t.value*n}e=(i-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}b(r)}}(c);for(let t=0;t<p;++t){const e=Math.pow(.99,t),n=Math.max(1-e,(t+1)/p);m(c,e,n),g(c,e,n)}}(f),Lg(f),f}function g(t,n,r){for(let o=1,a=t.length;o<a;++o){const a=t[o];for(const t of a){let e=0,r=0;for(const{source:n,value:o}of t.targetLinks){let a=o*(t.layer-n.layer);e+=C(n,t)*a,r+=a}if(!(r>0))continue;let o=(e/r-t.y0)*n;t.y0+=o,t.y1+=o,x(t)}void 0===e&&a.sort(yg),v(a,r)}}function m(t,n,r){for(let o=t.length-2;o>=0;--o){const a=t[o];for(const t of a){let e=0,r=0;for(const{target:n,value:o}of t.sourceLinks){let a=o*(n.layer-t.layer);e+=S(t,n)*a,r+=a}if(!(r>0))continue;let o=(e/r-t.y0)*n;t.y0+=o,t.y1+=o,x(t)}void 0===e&&a.sort(yg),v(a,r)}}function v(e,n){const r=e.length>>1,a=e[r];y(e,a.y0-t,r-1,n),_(e,a.y1+t,r+1,n),y(e,i,e.length-1,n),_(e,o,0,n)}function _(e,n,r,o){for(;r<e.length;++r){const a=e[r],i=(n-a.y0)*o;i>1e-6&&(a.y0+=i,a.y1+=i),n=a.y1+t}}function y(e,n,r,o){for(;r>=0;--r){const a=e[r],i=(a.y1-n)*o;i>1e-6&&(a.y0-=i,a.y1-=i),n=a.y0-t}}function x({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(_g);for(const{target:{targetLinks:e}}of t)e.sort(vg)}}function b(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(_g),n.sort(vg)}function C(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:o,width:a}of e.sourceLinks){if(o===n)break;r+=a+t}for(const{source:t,width:o}of n.targetLinks){if(t===e)break;r-=o}return r}function S(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:o,width:a}of n.targetLinks){if(o===e)break;r+=a+t}for(const{target:t,width:o}of e.sourceLinks){if(t===n)break;r-=o}return r}return f.update=function(t){return Lg(t),t},f.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:mg(t),f):c},f.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:mg(t),f):u},f.nodeSort=function(t){return arguments.length?(e=t,f):e},f.nodeWidth=function(t){return arguments.length?(s=+t,f):s},f.nodePadding=function(e){return arguments.length?(l=t=+e,f):l},f.nodes=function(t){return arguments.length?(d="function"==typeof t?t:mg(t),f):d},f.links=function(t){return arguments.length?(h="function"==typeof t?t:mg(t),f):h},f.linkSort=function(t){return arguments.length?(n=t,f):n},f.size=function(t){return arguments.length?(r=o=0,a=+t[0],i=+t[1],f):[a-r,i-o]},f.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],o=+t[0][1],i=+t[1][1],f):[[r,o],[a,i]]},f.iterations=function(t){return arguments.length?(p=+t,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[t-1,e-6]]).nodeAlign(this._isRtl?fg:gg),{height:e,width:t}},e.prototype._populateNodeActualValue=function(t){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=t.value)})),t.nodes.forEach((function(t){t.actualValue=Math.max(Go(t.sourceLinks,(function(t){return t.unnormalizedValue})),Go(t.targetLinks,(function(t){return t.unnormalizedValue})))}))},e.prototype._normalizeSankeyData=function(t){this._nodesInColumn=this._populateNodeInColumns(t,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},e.prototype._populateNodeInColumns=function(t,e){e(t);var n={};return t.nodes.forEach((function(t){var e=t.layer;n[e]?n[e].push(t):n[e]=[t]})),n},e.prototype._adjustOnePercentHeightNodes=function(t){var e=this;Object.values(t).map((function(t){return Go(t,(function(t){return t.value}))})).forEach((function(n,r){var o=0;t[r].forEach((function(t){var e=t.value/n*100;t.actualValue=t.value,e<1?(t.value=.01*n,o+=1):o+=e}));var a=0!==o?o/100:1;a>1&&t[r].forEach((function(t){t.value=t.value/a,e._changeColumnValue(t,t.actualValue,t.value)}))}))},e.prototype._changeColumnValue=function(t,e,n){t.sourceLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r})),t.targetLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r}))},e.prototype._adjustPadding=function(t,e,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(t){var n=.3*e;n<e-Go(t,(function(t){return t.y1-t.y0}))&&(r=Math.min(r,n/(t.length-1)))})),r},e.prototype._createLinks=function(){var t=this,e=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var o,a=[{x:(o=n).source.x1,y0:o.y0+o.width/2,y1:o.y0-o.width/2},{x:o.target.x0,y0:o.y1+o.width/2,y1:o.y1-o.width/2}],i=Lf().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve(Ag),l="url(#gradient-".concat(t._linkId,"-").concat(r,")"),c=s.createElement("g",{key:"".concat(t._linkId,"-").concat(r)},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-".concat(t._linkId,"-").concat(r),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:i(a),id:xt("link"),fill:t._fillStreamColors(n,l),stroke:t._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:t._getOpacityStreamBorder(n),onMouseOver:t._onStreamHover.bind(t,n),onMouseOut:function(){t._onStreamLeave(n)},onFocus:t._onFocusLink.bind(t,n),onBlur:t._onBlur,fillOpacity:t._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));e.push(c)})),e},e.prototype._createNodes=function(t){var e=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(t,r){var o=t.y1-t.y0>0?t.y1-t.y0:0,a=8,i=0;if(o<36){a+=6;var l=zu(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(t.actualValue),null!==l.node()&&(a+=i=l.node().getComputedTextLength()),l.text(null),Xu(".tempText").remove()}var c=e._truncateText(t.name,116,a),u="..."===c.slice(-3),d=xt("tooltip"),h=zu("body").append("div").attr("id",d).attr("class",e._classNames.toolTip).style("opacity",0),p=xt("nodeBar"),f=s.createElement("g",{key:r,id:xt("nodeGElement")},s.createElement("rect",{x:t.x0,y:t.y0,height:o,width:t.x1-t.x0,fill:e._fillNodeColors(t),id:p,onMouseOver:e._onHover.bind(e,t),onMouseOut:function(){e._onLeave(t)},onFocus:e._onCloseCallout.bind(e),stroke:e._fillNodeBorder(t),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(t.name)+"with weight"+"".concat(t.actualValue),role:"img"}),t.y1-t.y0>24&&s.createElement("g",{className:e._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:"".concat(p,"-name"),x:t.x0,y:t.y0,dy:"1.2em",dx:"0.4em",textAnchor:e._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!e.state.selectedState||e.state.selectedState&&e.state.selectedNodes.has(t.index)&&e.state.selectedNode||e.state.selectedState&&!e.state.selectedNode?Pg:Mg,fontSize:10,onMouseOver:e._showTooltip.bind(e,t.name,u,h),onMouseOut:e._hideTooltip.bind(e,h)},c)),s.createElement("text",{x:o>36?t.x0:t.x1-i-8,y:t.y0,dy:o>36?"2em":"1em",dx:o>36?"0.4em":"0em",textAnchor:e._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!e.state.selectedState||e.state.selectedState&&e.state.selectedNodes.has(t.index)&&e.state.selectedNode||e.state.selectedState&&!e.state.selectedNode?Pg:Mg,fontSize:14},t.actualValue)));n.push(f)})),n},e.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},e.prototype._onHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(t),r=this._getSelectedNodes(n);r.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(n).map((function(t){return t.index}))),selectedNode:t,refSelected:e,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:t.actualValue})}},e.prototype._onStreamHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(t),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:e,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.unnormalizedValue.toString(),descriptionMessage:"from "+t.source.name})}},e.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},e.prototype._onFocusLink=function(t,e){e.persist(),this._onCloseCallout(),this.setState({refSelected:e.currentTarget,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.source.actualValue,descriptionMessage:"from "+t.source.name})},e.prototype._assignNodeColors=function(){var t,e;this.props.colorsForNodes&&this.props.borderColorsForNodes?(t=this.props.colorsForNodes,e=this.props.borderColorsForNodes):(t=Tg.map((function(t){return t.fillColor})),e=Tg.map((function(t){return t.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=t[n],r.borderColor=e[n]),n=(n+1)%t.length}))},e.prototype._fillStreamColors=function(t,e){return this.state.selectedState&&this.state.selectedLinks.has(t.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(t.index)?e:void 0},e.prototype._fillStreamBorder=function(t,e){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(t.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(t.index)?e:Dg:Dg},e.prototype._getSelectedNodes=function(t){var e=[];return t.forEach((function(t){e.push(t.target),-1===e.indexOf(t.source)&&e.push(t.source)})),e},e.prototype._getSelectedLinks=function(t){var e=new Array,n=new Set;for(t.sourceLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;)(r=e.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(t){n.add(t),e.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;){var r;(r=e.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(t){n.add(t),e.push(t)}))}return n},e.prototype._getSelectedLinksforStreamHover=function(t){var e=new Array,n=new Set,r=new Set;for(e.push(t.source),n.add(t);e.length>0;){var o=e.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(t){e.push(t.source),n.add(t)}))}for(e.push(t.target);e.length>0;)o=e.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(t){e.push(t.target),n.add(t)}));return{selectedLinks:n,selectedNodes:r}},e.prototype._getOpacityStream=function(t){if(this.state.selectedState){if(!this.state.selectedLinks.has(t.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(t.index)&&!this.state.selectedNode)return.3}return 1},e.prototype._getOpacityStreamBorder=function(t){return!this.state.selectedState||this.state.selectedLinks.has(t.index)||this.state.selectedNode?1:.5},e.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e=t.props.parentRef?t.props.parentRef:t.chartContainer,o=e.getBoundingClientRect().width,a=e.getBoundingClientRect().height;(n!==o||r!==a)&&t.setState({containerWidth:o,containerHeight:a})}))},e.prototype._truncateText=function(t,e,n){var r=e-n,o=0,a=zu(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(a.text(t),null!==a.node()&&a.node().getComputedTextLength()<=r)return t;a.text(null),a.text("..."),null!==a.node()&&(o=a.node().getComputedTextLength()),a.text(null);for(var i="",s=0;s<t.length;s++)if(i+=t[s],a.text(i),null!==a.node()&&a.node().getComputedTextLength()>=r-o){i=i.slice(0,-1),i+="...";break}return a.text(null),Xu(".tempText").remove(),i},e.prototype._showTooltip=function(t,e,n,r){e&&(n.style("opacity",.9),n.html(t).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},e.prototype._hideTooltip=function(t){t.style("opacity",0)},e}(s.Component),Ng=E(Fg,(function(t){var e,n,r,a=t.className,i=t.theme,s=t.pathColor,l=i.effects;return{root:[i.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},a],links:{stroke:s||i.palette.black,fill:i?i.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(e={},e[qn]={fill:"#000000"},e)},nodes:{fill:"#F5F5F5",selectors:(n={},n[qn]={fill:"#000000"},n)},toolTip:o(o({},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:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Vg(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Ig(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Hg)):void 0===e&&(e=Og);for(var n,r,o,a,i,s=new Wg(t),l=[s];n=l.pop();)if((o=e(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new Wg(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Rg)}function Og(t){return t.children}function Hg(t){return Array.isArray(t)?t[1]:null}function Bg(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Rg(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Wg(t){this.data=t,this.depth=this.height=0,this.parent=null}function zg(t,e){return t.parent===e.parent?1:2}function Yg(t){var e=t.children;return e?e[0]:t.t}function Ug(t){var e=t.children;return e?e[e.length-1]:t.t}function qg(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Xg(t,e,n){return t.a.parent===e.parent?t.a:n}function jg(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Wg.prototype=Ig.prototype={constructor:Wg,count:function(){return this.eachAfter(Vg)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(t.call(e,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,o=r&&r.length;--o>=0;)n+=r[o].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),o=null;for(t=n.pop(),e=r.pop();t===e;)o=t,t=n.pop(),e=r.pop();return o}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var o=r.length;t!==n;)r.splice(o,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Ig(this).eachBefore(Bg)},[Symbol.iterator]:function*(){var t,e,n,r,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(yield o,e=o.children)for(n=0,r=e.length;n<r;++n)a.push(e[n])}while(a.length)}},jg.prototype=Object.create(Wg.prototype);var Kg,Gg,Zg=ht(),$g=function(){function t(t,e,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=e,this._nodeElements=n,this._linkElements=r}return t.prototype.truncateText=function(t,e,n,r){var o,a=t.split(/\s+/).reverse(),i="",s=zu(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];i=a.pop();)if(l.push(i),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>e-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),Xu(".tempText").remove(),o},t.prototype.addNodeShapetoSVG=function(t,e,n,r,o,a,i,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(t,"\nsubText ").concat(e," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(s.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:i,key:"".concat(u).concat(this.styleClassNames.rectNode)})),e&&(e=this.truncateText(e,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),t=this.truncateText(t,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e);e||r||n?this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t))},t.prototype.createPathLink=function(t,e,n,r,o,a,i,s,l){var c="M".concat(n-a/2,",").concat(r-s," H").concat(l+a/2," M").concat(t,",").concat(r-s,"\n V").concat(e+i+s/2),u="M".concat(t,",").concat(e+i+s/2," V").concat(e+5*s,"\n H").concat(t-a/2," H").concat(t+a/2);return o?u:c},t.prototype.addLinktoSVG=function(t,e,n,r,o,a,i,l,c,u){void 0===u&&(u=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(e,n,r,o,a,i,l,c,u),key:"".concat(t).concat(this.styleClassNames.link)}))},t}(),Qg=function(t){function e(e,n,r,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=[]);var s=t.call(this,e,r,o,a)||this;return s.composition=n,s._treeTraversal=i,s}return r(e,t),e.prototype.createTree=function(t,e){var n,r,o,a,i,s,l=(t=t<65?65:t>90?90:t)||75,c=Ig(this.treeData,(function(t){return t.children})),u=(null==c?void 0:c.height)+1;(function(){var t=zg,e=1,n=1,r=null;function o(o){var l=function(t){for(var e,n,r,o,a,i=new jg(t,0),s=[i];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=e.children[o]=new jg(r[o],o)),n.parent=e;return(i.parent=new jg(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>d.depth&&(d=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,f=e/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return o}function a(e){var n=e.children,r=e.parent.children,o=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,o=t.children,a=o.length;--a>=0;)(e=o[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;o?(e.z=o.z+t(e._,o._),e.m=e.z-a):e.z=a}else o&&(e.z=o.z+t(e._,o._));e.parent.A=function(e,n,r){if(n){for(var o,a=e,i=e,s=n,l=a.parent.children[0],c=a.m,u=i.m,d=s.m,h=l.m;s=Ug(s),a=Yg(a),s&&a;)l=Yg(l),(i=Ug(i)).a=e,(o=s.z+d-a.z-c+t(s._,a._))>0&&(qg(Xg(s,e,r),e,o),c+=o,u+=o),d+=s.m,c+=a.m,h+=l.m,u+=i.m;s&&!Ug(i)&&(i.t=s,i.m+=d-u),a&&!Yg(l)&&(l.t=a,l.m+=c-h,r=e)}return r}(e,o,e.parent.A||r[0])}function i(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return o.separation=function(e){return arguments.length?(t=e,o):t},o.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],o):r?null:[e,n]},o.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],o):r?[e,n]:null},o})().nodeSize([l,l/1.5]).separation((function(t,e){return t.parent===c&&e.parent===c?3.5:1}))(c).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=e/2}));var d=[],h=0,p=function(t){var e,n;t.id=h,d.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(e=t.data)||void 0===e?void 0:e.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(n=t.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(t){p(t)})):c.eachBefore((function(t){p(t)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){var C=(f-m)/2,S=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var E=null===(n=d[x.parentID])||void 0===n?void 0:n.children,L=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,k=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,A=null===(a=d[x.parentID])||void 0===a?void 0:a.x,w=null===(i=E[0])||void 0===i?void 0:i.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?A:L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m)}}if((x.children||u<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){var M=Ko(E=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(t){return t.x})),P=jo(E,(function(t){return t.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},e}($g),Jg=function(t){function e(e){var n,r=this;return(r=t.call(this,e)||this)._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Zg(r,{theme:e,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},e.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var e=Xu("text"),n=Xu("rect"),r=Xu("path");0===this._nodeElements.length&&0===this._linkElements.length&&(e.remove(),n.remove(),r.remove()),this.createTreeChart()}},e.prototype.createTreeChart=function(){var t=[],e=[],n=new Qg(this._treeData,this._composition,this._classNames,t,e,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=t,this._linkElements=e},e.prototype.render=function(){var t;return s.createElement(qd,null,s.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},e}(s.Component),tm=E(Jg,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:o({fill:"black"},t.theme.fonts.large),rectSubText:o({fill:"#484644"},t.theme.fonts.medium),rectBodyText:o({fill:"#808080"},t.theme.fonts.xSmall),rectMetricText:o({fill:"#000000"},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Kg||(Kg={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Gg||(Gg={}));var em=ht(),nm=function(t){function e(e){var n=t.call(this,e)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80,_emptyChart:!1},n}return r(e,t),e.prototype.componentDidMount=function(){var t=this,e=!(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);if(this.state._emptyChart!==e)this.setState({_emptyChart:e});else{var n=Lf().x((function(e){return t.x(e.x)})).y0(this.state._height).y1((function(e){return t.y(e.y)})).curve(Bp);this.area=n;var r=zp().x((function(e){return t.x(e.x)})).y((function(e){return t.y(e.y)})).curve(Bp);this.line=r;var o=this.props.data.lineChartData[0].data,a=function(t,e){var n,r,o,a=t.length,i=-1;if(null==e){for(;++i<a;)if(null!=(n=t[i])&&n>=n)for(r=o=n;++i<a;)null!=(n=t[i])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++i<a;)if(null!=(n=e(t[i]))&&n>=n)for(r=o=n;++i<a;)null!=(n=e(t[i]))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]}(o,(function(t){return t.x})),i=a[0],s=a[1];this.x=Si().domain([i,s]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Si().domain([0,jo(o,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:o})}},e.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},e.prototype.render=function(){var t=em(this.props.styles,{theme:this.props.theme});return this.state._emptyChart?s.createElement("div",{id:xt("_SparklineChart_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(qd,{direction:md.horizontal,isCircularNavigation:!0,className:t.inlineBlock},s.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},e}(s.Component),rm=E(nm,(function(t){return{inlineBlock:{display:"inline"},valueText:o(o({},t.theme.fonts.smallPlus),{fill:t.theme.palette.black})}})),om=ht(),am=function(t){function e(e){var n=t.call(this,e)||this;return n._isRtl=lt(),n._getMargins=function(t){n.margins=t},n._renderContentForOnlyBars=function(t){var e,r,o,a=n.props.useSingleColor,i=void 0!==a&&a,l=0;return n.props.data.forEach((function(e,n){e.y===t.y&&(l=n)})),o=i?n.props.colors?n._createColors()(1):gf(1,0,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted):t.color?t.color:n.props.colors?n._createColors()(t.x):gf(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Sd,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:n.props.culture}))},n._renderCallout=function(t){return t?n._renderContentForOnlyBars(t):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(t,e,r,o,a,i){return n._bars=n._yAxisType===Zu.NumericAxis?n._createNumericBars(r,o,a,i):n._createStringBars(r,o,a,i)},n._refCallback=function(t,e){n._refArray.push({index:e,refElement:t})},n._getCalloutContentForBar=function(t){var e,r,o,a=[],i=n.props.useSingleColor,s=void 0!==i&&i,l=n.props.data,c=l.filter((function(e){return e.y===t.y})),u=0;return l.forEach((function(e,n){e.y===t.y&&(u=n)})),o=s?n.props.colors?n._createColors()(1):gf(1,0,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted):c[0].color?c[0].color:n.props.colors?n._createColors()(c[0].x):gf(u,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),a.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:t.yAxisCalloutData||t.y.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(t,e,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===t.legend){var o=n._getCalloutContentForBar(t),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){e===s&&n.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:n.props.useSingleColor?r:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:t.callOutAccessibilityData})}))}},n._getScales=function(t,e,r){if(r){var o=jo(n._points,(function(t){return t.x})),a=jo(n._points,(function(t){return t.y}));return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,e-n.margins.right]),yBarScale:i=Si().domain([0,a]).range([t-n.margins.bottom,n.margins.top])}}o=jo(n._points,(function(t){return t.x}));var i=Fc().domain(n._yAxisLabels).range([t-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).range([n.margins.left,e-n.margins.right]),yBarScale:i}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(t,e){var r=n.props.useSingleColor,a=[];return t.forEach((function(t,e){var o,i=r?n.props.colors?n._createColors()(1):gf(1,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):t.color,s={title:t.legend,color:i,action:function(){n._onLegendClick(t.legend)},hoverAction:function(){n._onLegendHover(t.legend)},onMouseOutAction:function(t){n._onLegendLeave(t)}};a.push(s)})),s.createElement($h,o({legends:a,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;n._xMax=Math.max(e[e.length-1],n.props.xMaxValue||0)}},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.x,r=t.yAxisCalloutData||t.y;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._calloutId=xt("callout"),n._tooltipId=xt("HBCWATooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].x,!0):Gu.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].y,!1):Zu.StringAxis,n}return r(e,t),e.prototype.render=function(){var t=this;this._adjustProps();var e=i([],this._points,!0).reverse();this._yAxisLabels=e.map((function(t){return t.y})),this._xMax=Math.max(jo(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=om(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Et.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),_d(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._points,chartType:Ku.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:a,legendBars:n,barwidth:this._barHeight,focusZoneDirection:md.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return s.createElement(s.Fragment,null,s.createElement("g",null,t._bars))}}))},e.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]},e.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(e*o*this._xMax);return Si().domain(r).range(this._colors)},e.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForBar(t),o=r.YValueHover,a=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?e:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData}))},e.prototype._createNumericBars=function(t,e,n,r){var o=this,a=this.props.useSingleColor,l=void 0!==a&&a,c=this._getScales(t,e,!0),u=c.xBarScale,d=c.yBarScale,h=i([],this._points,!0);h.sort((function(t,e){var n="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof e.y?e.y:parseFloat(e.y))-n}));var p=h.map((function(t,n){var r,a,i,c=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(c=o.state.selectedLegendTitle===t.legend),o._classNames=om(o.props.styles,{theme:o.props.theme,legendColor:o.state.color,shouldHighlight:c}),Math.max(d(t.y),0)<1?s.createElement(s.Fragment,{key:t.x}," "):(i=l?o.props.colors?o._createColors()(1):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):gf(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{key:t.y,x:o._isRtl?u(t.x):o.margins.left,className:o._classNames.opacityChangeOnHover,y:d(t.y)-o._barHeight/2,"data-is-focusable":!0,width:o._isRtl?e-o.margins.right-Math.max(u(t.x),0):Math.max(u(t.x),0)-o.margins.left,height:o._barHeight,ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,i),"aria-label":o._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(o._calloutId),onMouseLeave:o._onBarLeave,onFocus:o._onBarFocus.bind(o,t,n,i),onBlur:o._onBarLeave,fill:t.color&&!l?t.color:i}))}));return p},e.prototype._tooltipOfYAxislabels=function(t){var e=this,n=t.tooltipCls,r=t.yAxis,o=t.id;if(null===r)return null;for(var a=zu("body").append("div").attr("id",o).attr("class",n).style("opacity",0),i=r.selectAll("#BaseSpan")._groups[0],s=i&&Object.keys(i).length,l=[],c=0;c<s;c++){var u=i[c].dataset&&Object.values(i[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(t){zu(d[t]).on("mouseover",(function(n){e.state.tooltipElement||(a.style("opacity",.9),a.html(l[t]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px"))})).on("mouseout",(function(t){a.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},e.prototype._createStringBars=function(t,e,n,r){var o=this,a=this._getScales(t,e,!1),i=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(t,n){var r,a,c;return Math.max(l(t.y),0)<1?s.createElement(s.Fragment,{key:t.x}," "):(c=u?o.props.colors?o._createColors()(1):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):gf(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?i(t.x):o.margins.left,y:l(t.y),width:o._isRtl?e-o.margins.right-Math.max(i(t.x),0):Math.max(i(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,n,c),fill:t.color&&!u?t.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=zu(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},e.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},e.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},e.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},e}(s.Component),im=E(am,(function(t){var e=t.shouldHighlight,n=t.theme;return{opacityChangeOnHover:{opacity:e?"":"0.1"},xAxisTicks:[],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));Br("@fluentui/react-charting","5.16.41"),FluentUIReactCharting=e}();
|